Diagnosis often involves a combination of physical examinations, urine tests, blood tests, and vaginal swabs. For specific infections like Group B Streptococcus, a swab from the vagina and rectum is usually taken between 35-37 weeks of pregnancy. Ultrasounds may also be used to monitor the baby's health.