Text this: Rule based signal processing for ambulatory fetal monitoring