Electronic fetal heart monitoring is done during pregnancy, labor, and delivery. It keeps track of the heart rate of the baby (fetus).