Predicting and preventing spontaneous preterm birth