New device can keep foetus log