Checking the heartbeat of babies in the womb is set to become more accurate and less stressful for expectant mothers thanks to research.