Using mathematical probability theory for foetal monitoring