Skip Navigation
Skip to contents

PHRP : Osong Public Health and Research Perspectives



Page Path
HOME > Osong Public Health Res Perspect > Volume 8(3); 2017 > Article
Original Article
Prevalence and Determinants of Preterm Birth in Tehran, Iran: A Comparison between Logistic Regression and Decision Tree Methods
Payam Aminia, Saman Maroufizadeha, Reza Omani Samania, Omid Hamidib, Mahdi Sepidarkisha
Osong Public Health and Research Perspectives 2017;8(3):195-200.
Published online: June 30, 2017

aDepartment of Epidemiology and Reproductive Health, Reproductive Epidemiology Research Center, Royan Institute for Reproductive Biomedicine, ACECR, Tehran, Iran

bDepartment of Science, Hamadan University of Technology, Hamadan, Iran

Corresponding author: Reza Omani Samani, E-mail:
• Received: April 10, 2017   • Accepted: May 17, 2017

Copyright ©2017, Korea Centers for Disease Control and Prevention

This is an open access article under the CC BY-NC-ND license (

  • 36 Download
  • 9 Crossref
  • 12 Scopus
  • Objectives
    Preterm birth (PTB) is a leading cause of neonatal death and the second biggest cause of death in children under five years of age. The objective of this study was to determine the prevalence of PTB and its associated factors using logistic regression and decision tree classification methods.
  • Methods
    This cross-sectional study was conducted on 4,415 pregnant women in Tehran, Iran, from July 6–21, 2015. Data were collected by a researcher-developed questionnaire through interviews with mothers and review of their medical records. To evaluate the accuracy of the logistic regression and decision tree methods, several indices such as sensitivity, specificity, and the area under the curve were used.
  • Results
    The PTB rate was 5.5% in this study. The logistic regression outperformed the decision tree for the classification of PTB based on risk factors. Logistic regression showed that multiple pregnancies, mothers with preeclampsia, and those who conceived with assisted reproductive technology had an increased risk for PTB (p < 0.05).
  • Conclusion
    Identifying and training mothers at risk as well as improving prenatal care may reduce the PTB rate. We also recommend that statisticians utilize the logistic regression model for the classification of risk groups for PTB.
Preterm birth (PTB) is defined by the World Health Organization as ‘any birth before 37 completed weeks of gestation, or fewer than 259 days since the first day of the women’s last menstrual period (LMP)’; PTB can also be subdivided on the basis of gestational age: extremely preterm (< 28 weeks), very preterm (28 to < 32 weeks), and moderate to late preterm (32 to < 37 weeks) [1]. It is a leading cause of infant mortality and is the second largest cause of child deaths in children under the age of 5 years [2]. PTB has lifelong impacts on neurodevelopmental functioning, including increased risk of impaired learning, cerebral palsy, and visual disorders. PTB also increases the risk for chronic disease in adulthood [3,4]. An estimated 15 million preterm neonates were born in 2010 worldwide, representing, on average, 11.1% of all live births, ranging from about 5% in several European countries to 18% in some African countries [4].
The rates of PTB have risen in most countries in the past two to three decades, despite advancing knowledge of the possible risk factors and its pathological mechanisms. This trend may be due to the increasing rates of multiple births, greater use of assisted reproductive technology (ART), and more obstetric interventions [4,5]. The known risk factors for PTB include multiple pregnancies, infection, young or advanced maternal age, short interval between pregnancies, low maternal body mass index (BMI) before pregnancy, poor maternal nutrition, use of ART, maternal psychological health, and lifestyle factors such as alcohol consumption, smoking, and excessive physical work [68].
Classification methods can be used to classify new births as PTB or non-PTB based on several risk factors and covariates. For instance, acute kidney injury as a predictable outcome can be managed if the early risk factors are identified using classification methods [9]. Several methods have been introduced and evaluated, including data mining (machine learning) techniques [10]. To determine the best classifier methods, several tools are available for accuracy assessment. One technique splits the training and testing sets by using two-thirds of the sample for training. To do so, the training dataset determines the best-fitting model. The testing sample later evaluates the resulting model [11]. Several statistics, such as accuracy, sensitivity, and specificity, can be used to compare the performance of different methods.
Several classification methods can be used to classify a new case into one of the response categories, including logistic regression (LR), decision trees (DTs), artificial neural networks, genetic algorithms, and so on. Among the different classification methods and based on its ease of use and interpretation, LR is the most popular parametric approach to classify discrete response variables using several factors and covariates. However, the non-parametric DT is preferable when the subjects are described through a predetermined set of attributes, the response variable is binary or multinomial, and disjunctive results are needed [12].
It is important to predict PTB due to its potential for adverse long-term consequences. Therefore, this study was conducted to identify the high-risk groups for PTB based on several factors and covariates in order to reduce the risk of PTB. To do so, we performed and compared the results of LR and DT classification methods.
1. Participants and study design
This cross-sectional study was carried out on 4,419 pregnant women referred to maternity hospitals across Tehran province, affiliated with Tehran University of Medical Sciences, Shahid Beheshti University of Medical Sciences, Iran University of Medical Sciences, or Islamic Azad University between July 6 and 21, 2015.
2. Ethical approval
This study was approved by the Ethics Committee of Royan Institute, Tehran, Iran. The aim and objective of the study and the confidentiality of the data were explained verbally to the women by nurses and midwives prior to their participation. Written informed consent was obtained from all participants before completing the measures.
3. Measures
A checklist was used for data collection, which contained the mother’s demographic information, obstetrical data, and newborn’s information. The checklists were completed during a direct interview of the mothers and a review of their cases in the delivery room by a nurse or trained obstetrician. The checklists contained information such as mother’s age (years), education (academic, non-academic), and occupation (housewife, employed), socio-economic status, BMI (kg/m2), pregnancy type (wanted, unwanted), type of delivery (natural, Cesarean), preeclampsia (no, yes), history of abortion (no, yes), history of stillbirth (no, yes), history of multiple pregnancies (no, yes), and use of ART (no, yes). These variables were used to classify PTB. The criterion for PTB was gestational age of fewer than 37 weeks of pregnancy after the LMP, while the criterion for preeclampsia was having a blood pressure reading of more than 140/90 mmHg and the presence of an excess of proteins in the urine (proteinuria).
4. Statistical analysis
The dataset was randomly divided into two subsamples. Model fitting was carried out using the training dataset (70% of cases). The resulting models were then assessed using the test sample (30% of cases). The LR and DT methods were fitted to the data.
LR: The most common parametric tool to model binary outcomes is LR. The model can be written as:
In this model, xi’s are the covariates or factors and the α and βi’s are “k+1” regression coefficients stating the measure of the size effect. The response variable can take two values (0 as non-PTB and 1 as PTB). The term, π1-π, indicates the odds of classifying the response in category one than zero.
DT: One of the most popular and appealing methods in classification and discriminant analysis is DT. This method can be performed on most medical data for the purpose of diagnosis and prediction [13,14]. Subjects can also be identified by DT as high-risk based on their characteristics [15]. A DT contains three main parts: decision nodes, branches, and leaves. The tree starts with a node and extends to the leaf. The risky paths are identified and shown in several nodes. The main characteristic of DT is the graphical display of the choices. This advantage provides alternatives for each decision and possible outcomes and allows comparisons of different alternatives [15].
The accuracy of the classifications was checked by indices such as sensitivity, specificity, diagnostic accuracy, positive predictive value, negative predictive value, and area under the curve (AUC). McNemar’s test was used to check for differences in proportions between two performed methods. To evaluate the reliability of the predictions, the Kappa statistic was calculated. All statistical analyses were performed using R version 3.2.3 ( All statistical tests were two-tailed and a p-value less than 0.05 was considered statistically significant.
Of the 4,415 births included in the study, 244 (5.5%) were PTB. Of the participants, 67.2% were non-academic, 87.8% were housewives, 80.7% had wanted pregnancies, 19.3% had a history of abortion, 1.7% had a history of stillbirth, 72.4% had Caesarian section delivery, 1.4% had multiple pregnancies, 5.3% had preeclampsia, and 7.5% have conceived via ART. The mean age of the mothers was 29.18 ± 5.35 years. Table 1 shows the descriptive characteristics of the mothers as well as the comparison between the PTB and non-PTB groups. The mother’s age was significantly higher in the PTB group (p < 0.05). Moreover, educated mothers, those who underwent Caesarian section delivery, had multiple pregnancies, had preeclampsia, and had used ART were statistically associated with the incidence of PTB.
The LR model used variable to fit the training data. After a stepwise variable selection, mother’s age, BMI, multiple pregnancy, preeclampsia, and ART were identified as significant variables affecting PTB. In order to test the resulting variables, the LR model was fitted using the testing subsample. The results are shown in Table 2. Mother’s age and BMI were not associated with PTB. The findings show that multiple pregnancies were a significant predictor for PTB (odds ratio [OR] = 28.63, 95% confidence interval [CI]: 10.448–78.42). Mothers with preeclampsia (OR = 4.42, 95% CI: 2.124–9.18) and those who conceived using ART (OR = 3.23, 95% CI: 1.69–6.19) had an increased risk for PTB.
The results of the DT method showed that mother’s age, preeclampsia, and use of ART were the most important variables for the classification of PTB. The details about the rules and the proportion of PTB in several resultant nodes are shown in Figure 1.
Table 3 shows the comparison of sensitivity, specificity, positive probability value, negative probability value, accuracy, and the AUC for the training and testing sets of classification methods. The LR model resulted in a higher accuracy of predictions compared to that of DT. The accuracy of LR for classifying PTB was 0.85, significantly different from that of the DT method. Mc-Namara’s test showed a significant difference in proportions of the two methods (p < 0.001). In order to evaluate the association of the method predictions and observed preterm value, kappa statistics were calculated. The kappa coefficients for the association of observed values with the LR and DT predicted values were 0.04 (p = 0.005) and 0.18 (p < 0.001), respectively, which indicate significant statistical reliabilities. Moreover, the AUC showed significantly higher classification accuracy for LR than for DT (Figure 2).
PTB is as one of the leading causes of newborn deaths in every population and several factors are associated with its occurrence. The prevalence of PTB in this study was 5.6%, which is consistent with reported rates in Nordic and some developed countries, but lower than reported rates in some developing countries and poor regions. Based on 184 countries, the global average PTB prevalence rate in 2010 was 11.1% [4]. These differences may be due to geographic and ethnic diversity and nutritional differences.
Multiple pregnancy is a strong predictor for PTB, though the mechanisms may differ from those in women with singleton pregnancies. Nearly 60% of all twins are born preterm. The suggested cause for these PTBs is over-distension of the uterus [16]. Consistent with prior literature, women with preeclampsia had higher rates of PTB than non-preeclampsia [6,17]. We observed that women who conceived with ART had an increased risk for PTB, which is consistent with previous study findings [18,19].
In this study, no statistically significant relationships were observed between PTB and factors such as mother’s occupation, socio-economic status, BMI, parity, history of abortion and stillbirth. While a significant correlation was observed between these factors and PTB in some similar studies [2022], those findings may be due to differences in the characteristics of the studied populations.
To classify births as PTB or non-PTB, we compared two different classification methods. Despite the numerous advantages in utilizing a distribution-free method such as DT, our study showed that the LR model provided more accurate results. The DT method uses an intuitive graphical tool which has been utilized in a number of medical and clinical problems [23,24]. The DT method can accommodate noisy data in addition to providing accurate and precise prediction and classification [25]. However, the parametric LR method requires some distributional assumptions and the results can be interpreted in a more scientific and epidemiologic pattern [26]. The LR model is more accurate in classifying patients when there are low proportions of missing data and outliers [27]. In this study, the LR model performed better than the DT approach. Similar results were reported by Long et al. [28] for classifying patients as having acute cardiac ischemia. In 2011, Chen [29] predicted corporate financial distress based on integration of DT classification and LR. Several conclusions were made according to different situations in the dataset. The authors observed out that in some conditions, the LR or DT methods can outperform. Khemphila and Boonjing [30] classified patients with heart disease using artificial neural network, DT, and LR methods. They found that artificial neural networks had the lowest error rate and the highest accuracy while the DT and LR did not show a considerable difference in performance. The same results were reported by Li et al. [31] in predicting peripheral neuropathy in type 2 diabetes mellitus. In contrast to our study, some studies reported a better performance for the DT method than that for LR such as the study by Samanta et al. [32] who preferred the classifications made by the DT over the LR model. The same results were shown by Safiarian et al. [33] in identifying risk groups for bleeding after coronary artery bypass graft surgery and by Sledjeski et al. [34] in a study using risk assessment to predict recurrent maltreatment. Despite its limitations such as low prevalence of PTB, this study compared two different methods, suggesting LR as the best classifier model, a finding that may help policymakers in determining preterm risk factors.
PTB is a main cause of infant deaths that also results in high costs to national health care systems of the country. Therefore, the rate of PTB needs to be diminished. The results of this study revealed maternal and neonatal factors that contribute to PTB, some of which are changeable and preventable; thus, the implementation of activities such as the identification of mothers at risk, necessary training, and improved prenatal care can reduce premature birth rates.
Moreover, based on our findings, the LR method had a better performance in classifying PTB compared to the DT method.
This study was supported by the Royan Institute for Reproductive Biomedicine, ACECR, Tehran, Iran. The authors thank the women for their participation in this study and the staff of the hospitals of Tehran University of Medical Science, Shahid Beheshti University of Medical Sciences, Iran University of Medical Science, and Islamic Azad University for their contributions to this study.


No potential conflict of interest relevant to this article was reported.

Figure 1
Decision tree results for the evaluation of preterm birth based on mothers’ characteristics.
ART, assisted reproductive technology.
Figure 2
Area under the curve analysis of the logistic regression and decision tree methods.
DT, decision trees; LR, logistic regression; AUC, area under the curve.
Table 1
Demographic and clinical characteristics of the participants
Variable PTB (n = 244) Non-PTB (n = 4,171) p-value
Mother’s age (y) 30.51 ± 5.96 29.10 ± 5.31 < 0.001
SES 0.17 ± 2.11 0.022 ± 2.03 0.272
Mother’s BMI (kg/m2) 25.00 ± 4.13 24.99 ± 5.61 0.970
Parity 1.65 ± 0.78 1.65 ± 0.76 0.989
Mother’s education 0.035
 Non-academic 149 (61.1) 2,820 (67.6)
 Academic 95 (38.9) 1,351 (32.4)
Mother’s occupation 0.314
 Housewife 209 (85.7) 3,666 (87.9)
 Employed 35 (14.3) 505 (12.1)
Type of pregnancy 0.617
 Wanted 194 (79.5) 3,369 (80.8)
 Unwanted 50 (20.5) 802 (19.2)
History of abortion 0.243
 No 190 (77.9) 3,373 (80.9)
 Yes 54 (22.1) 798 (19.1)
History of stillbirth 0.199
 No 237 (97.1) 4,101 (98.3)
 Yes 7 (2.9) 70 (1.7)
Infant sex 0.131
 Male 136 (55.7) 2,115 (50.7)
 Female 108 (44.3) 2,056 (49.3)
Caesarian section 0.022
 No 52 (21.3) 1,167 (28.0)
 Yes 192 (78.7) 3,004 (72.0)
Multiple pregnancy < 0.001
 No 210 (86.1) 4,143 (99.3)
 Yes 34 (13.9) 28 (0.7)
Preeclampsia < 0.001
 No 198 (81.1) 3,982 (95.5)
 Yes 46 (18.9) 189 (4.5)
ART < 0.001
 No 197 (80.7) 3,886 (93.2)
 Yes 47 (19.3) 285 (6.8)

Values are presented as mean ± standard deviation or number (%).

PTB, preterm birth; SES, socioeconomic status; BMI, body mass index; ART, assisted reproductive technology.

Table 2
The results of logistic regression assessing PTB based on mothers’ characteristics
Variable AOR (95% CI) p-value
Age 1.00 (0.96–1.05) 0.889
BMI 0.99 (0.94–1.04) 0.648
Multiple pregnancy 28.63 (10.45–78.42) < 0.001
Preeclampsia 4.42 (2.12–9.18) < 0.001
ART 3.23 (1.69–6.19) < 0.001

PTB, preterm birth; AOR, adjusted odds ratio; CI, confidence interval; BMI, body mass index; ART, assisted reproductive technology.

Table 3
Accuracy measures of logistic regression and decision tree methods in training and testing subsamples
Model Training sample Testing sample

Sensitivity 0.46 0.69 0.41 0.57

Specificity 0.83 0.59 0.88 0.59

Positive predictive value 0.13 0.09 0.18 0.08

Negative predictive value 0.96 0.97 0.96 0.96

Accuracy 0.80 0.59 0.85 0.59

LR, logistic regression; DT, decision tree.

Figure & Data



    Citations to this article as recorded by  
    • Application of data mining combined with power data in assessment and prevention of regional atmospheric pollution
      Qichun Xu, Liang Ning, Tianmeng Yuan, Haotian Wu
      Energy Reports.2023; 9: 3397.     CrossRef
    • Associations Among Multimorbid Conditions in Hospitalized Middle-aged and Older Adults in China: Statistical Analysis of Medical Records
      Yan Zhang, Chao Chen, Lingfeng Huang, Gang Liu, Tingyu Lian, Mingjuan Yin, Zhiguang Zhao, Jian Xu, Ruoling Chen, Yingbin Fu, Dongmei Liang, Jinmei Zeng, Jindong Ni
      JMIR Public Health and Surveillance.2022; 8(11): e38182.     CrossRef
    • Iranian midwives’ awareness and performance of respectful maternity care during labor and childbirth
      Simin Haghdoost, Fatemeh Abdi, Azam Amirian
      European Journal of Midwifery.2021; 5(December): 1.     CrossRef
    • A diagnostic profile on the PartoSure test
      Safoura Rouholamin, Maryam Razavi, Mahroo Rezaeinejad, Mahdi Sepidarkish
      Expert Review of Molecular Diagnostics.2020; 20(12): 1163.     CrossRef
    • Comparison of Multivariable Logistic Regression and Other Machine Learning Algorithms for Prognostic Prediction Studies in Pregnancy Care: Systematic Review and Meta-Analysis
      Herdiantri Sufriyana, Atina Husnayain, Ya-Lin Chen, Chao-Yang Kuo, Onkar Singh, Tso-Yang Yeh, Yu-Wei Wu, Emily Chia-Yu Su
      JMIR Medical Informatics.2020; 8(11): e16503.     CrossRef
    • Analysis of Spontaneous Preterm Labor and Birth and Its Major Causes Using Artificial Neural Network
      Yun-Sook Kim
      Journal of Korean Medical Science.2019;[Epub]     CrossRef
    • A systematic review shows no performance benefit of machine learning over logistic regression for clinical prediction models
      Evangelia Christodoulou, Jie Ma, Gary S. Collins, Ewout W. Steyerberg, Jan Y. Verbakel, Ben Van Calster
      Journal of Clinical Epidemiology.2019; 110: 12.     CrossRef
    • Comparison of three data mining models for prediction of advanced schistosomiasis prognosis in the Hubei province
      Guo Li, Xiaorong Zhou, Jianbing Liu, Yuanqi Chen, Hengtao Zhang, Yanyan Chen, Jianhua Liu, Hongbo Jiang, Junjing Yang, Shaofa Nie, Michael French
      PLOS Neglected Tropical Diseases.2018; 12(2): e0006262.     CrossRef
    • Algorithm on age partitioning for estimation of reference intervals using clinical laboratory database exemplified with plasma creatinine
      Xiaoxia Peng, Yaqi Lv, Guoshuang Feng, Yaguang Peng, Qiliang Li, Wenqi Song, Xin Ni
      Clinical Chemistry and Laboratory Medicine (CCLM).2018; 56(9): 1514.     CrossRef

    • PubReader PubReader
    • Cite
      export Copy
    • XML DownloadXML Download

    PHRP : Osong Public Health and Research Perspectives