Applications of machine-learning in medical diagnostics in obstetrics