The ultrasound pelvis test creates the picture of the baby on the screen using high-frequency waves. If the test is done during 14 to 22 weeks of the pregnancy, it might identify the gender of the baby.