Using AI to predict risks for pregnancy and delivery