Prenaital ApS has filed a patent for technology that may identify risks of spontaneous pre-term birth. Spontaneous preterm birth (sPTB) is usually defined as birth occurring before 37 weeks of gestation. The invention relates to a method for predicting potential preterm birth from medical scan data, which may be used in practice by medical professionals for risk analysis and prognosis of potential pathologies.