MSAF is typically diagnosed during labor when the amniotic fluid is observed to be greenish or brownish in color. It can also be detected during routine ultrasound examinations if meconium particles are seen floating in the amniotic fluid. In some cases, a test called amnioscopy may be performed to visualize the amniotic fluid.