Text this: Development of an efficient algorithm for fetal heart rate detection: a hardware approach