Predicting Childbirth Complications in High-Risk Pregnant Women Using Machine Learning
DOI:
https://doi.org/10.59247/jahir.v4i1.412Keywords:
Machine Learning, Labor Complications, SHAP, Medical Prediction, Optimization of Midwifery CareAbstract
Childbirth complications remain one of the leading causes of high maternal mortality rates in Indonesia, primarily due to delayed detection at referral healthcare facilities, which hinders timely intervention. Most previous machine learning studies have focused on predicting a single outcome, even though high-risk pregnancies are prone to experiencing multiple complications simultaneously. This study aims to develop an explainable machine learning-based multi-class classification model utilizing Electronic Medical Record (EMR) data to support the early identification of six major childbirth complications: hypertension, preeclampsia, prolonged labor, premature rupture of membranes, hemorrhage, and infection. The study employed a retrospective cohort design involving 10,644 maternal records from the 2020–2024 period at Margono Soekarjo General Hospital. A total of 16 maternal, obstetric, clinical, and laboratory variables were analyzed using the Extreme Gradient Boosting (XGBoost) algorithm. The dataset was divided into training (80%) and testing (20%) sets, with class imbalance addressed through oversampling. Model evaluation was performed using accuracy, F1-score, and AUC, while interpretability was analyzed using Shapley Additive Explanations (SHAP). The model achieved an accuracy of 70%, a macro F1-score of 0.65, and a macro-AUC of 0.92, demonstrating good discriminatory ability. SHAP analysis identified metabolic, hemodynamic, and hematological factors as the primary predictors. These findings suggest the model’s potential as a tool for early risk stratification and clinical decision support, although external validation is still required
References
M. Syairaji, D. S. Nurdiati, B. S. Wiratama, Z. D. Prüst, K. W. M. Bloemenkamp, And K. J. C. Verschueren, “Trends And Causes Of Maternal Mortality In Indonesia: A Systematic Review,” Bmc Pregnancy Childbirth, Vol. 24, No. 1, P. 515, Jul. 2024, Doi: 10.1186/S12884-024-06687-6.
F. Fadjryani Et Al., “Modeling The Duration Of Maternal Labor At Anutapura Hammer Hospital Using Lin-Ying Additive Hazard Regression,” Barekeng: Jurnal Ilmu Matematika Dan Terapan, Vol. 20, No. 1, Pp. 0523–0540, Nov. 2025, Doi: 10.30598/barekengvol20iss1pp0523-0540.
S. Martafiyah, C. Supriadi, And T. Saifudin, “Modeling The Maternal Mortality Rate In Indonesia Using Geographically Weighted Poisson Regression Approach,” 2023, P. 080011. Doi: 10.1063/5.0181066.
M. I. A. Akbar Et Al., “The Inapres (Indonesia Preeclampsia Study): Impact Of Eclampsia On Maternal And Perinatal Outcomes Among Women With Preeclampsia: Findings From A National Multicenter Cohort,” Ajog Global Reports, Vol. 6, No. 1, P. 100596, Feb. 2026, Doi: 10.1016/j.xagr.2025.100596.
V. Pebri Giena, R. Maiseptya Sari, F. Nuraini Sasmita, And I. Rahmawati, “Developing A Mobile Application As A Learning Medium On Maternal Emergencies Related To Postpartum Hemorrhage,” Journal Of Public Health And Development, Vol. 20, No. 1, Pp. 38–50, Jan. 2022, Doi: 10.55131/jphd/2022/200104.
A. Yoseph, Y. S. Berego, M. Belayneh, And F. Guillen-Grima, “Explainable Machine Learning Algorithms For Predicting Maternal Obstetric Complications In Ethiopia: Evidence From A Retrospective Cohort In Southern Ethiopia,” Health Informatics J., Vol. 32, No. 1, Jan. 2026, Doi: 10.1177/14604582261428317.
A. C. Gimovsky, S. S. Rasiah, C. Vergara-Lopez, P. Has, N. K. Ayala, And L. R. Stroud, “Psyche: The 5th ‘P’ And Its Associated Impact On The Second Stage Of Labor.,” R. I. Med. J. (2013), Vol. 107, No. 1, Pp. 37–44, Jan. 2024.
A. Rahmawati, R. T. D. Judistiani, D. A. Setiawati, R. Fajri, S. Putri, And R. Ruslami, “Pulmonary Tuberculosis Cases In Pregnancy: Perinatal Outcomes And Health Promotion Challenges In Indonesia,” The Journal Of Infection In Developing Countries, Vol. 16, No. 08, Pp. 1372–1375, Aug. 2022, Doi: 10.3855/Jidc.15476.
L. Vasudevan Et Al., “Machine Learning Models To Predict Risk Of Maternal Morbidity And Mortality From Electronic Medical Record Data: Scoping Review,” J. Med. Internet Res., Vol. 27, Pp. E68225–E68225, Aug. 2025, Doi: 10.2196/68225.
X. Zhou Et Al., “Machine Learning Techniques For Prediction In Pregnancy Complicated By Autoimmune Rheumatic Diseases: Applications And Challenges,” Int. Immunopharmacol., Vol. 134, P. 112238, Jun. 2024, Doi: 10.1016/J.Intimp.2024.112238.
Y. Chen Et Al., “Machine-Learning Predictive Model Of Pregnancy-Induced Hypertension In The First Trimester,” Hypertension Research, Vol. 46, No. 9, Pp. 2135–2144, Sep. 2023, Doi: 10.1038/S41440-023-01298-8.
F. Darsareh, A. Ranjbar, M. V. Farashah, V. Mehrnoush, M. Shekari, And M. S. Jahromi, “Application Of Machine Learning To Identify Risk Factors Of Birth Asphyxia,” Bmc Pregnancy Childbirth, Vol. 23, No. 1, P. 156, Mar. 2023, Doi: 10.1186/S12884-023-05486-9.
M. Akazawa, K. Hashimoto, N. Katsuhiko, And Y. Kaname, “Machine Learning Approach For The Prediction Of Postpartum Hemorrhage In Vaginal Birth,” Sci. Rep., Vol. 11, No. 1, P. 22620, Nov. 2021, Doi: 10.1038/S41598-021-02198-Y.
Q. Sun Et Al., “Machine Learning-Based Prediction Model Of Preterm Birth Using Electronic Health Record,” J. Healthc. Eng., Vol. 2022, Pp. 1–12, Apr. 2022, Doi: 10.1155/2022/9635526.
R. Raja, I. Mukherjee, And B. K. Sarkar, “A Machine Learning-Based Prediction Model For Preterm Birth In Rural India,” J. Healthc. Eng., Vol. 2021, Pp. 1–11, Jun. 2021, Doi: 10.1155/2021/6665573.
Y. Shi Et Al., “Ultrasound-Based Radiomics Xgboost Model To Assess The Risk Of Central Cervical Lymph Node Metastasis In Patients With Papillary Thyroid Carcinoma: Individual Application Of Shap,” Front. Oncol., Vol. 12, Aug. 2022, Doi: 10.3389/Fonc.2022.897596.
K. Wang Et Al., “Interpretable Prediction Of 3-Year All-Cause Mortality In Patients With Heart Failure Caused By Coronary Heart Disease Based On Machine Learning And Shap,” Comput. Biol. Med., Vol. 137, P. 104813, Oct. 2021, Doi: 10.1016/J.Compbiomed.2021.104813.
P. Zhang, Y. Jia, And Y. Shang, “Research And Application Of Xgboost In Imbalanced Data,” Int. J. Distrib. Sens. Netw., Vol. 18, No. 6, P. 155013292211069, Jun. 2022, Doi: 10.1177/15501329221106935.
T. Chen And C. Guestrin, “Xgboost: A Scalable Tree Boosting System,” In Proceedings Of The 22nd Acm Sigkdd International Conference On Knowledge Discovery And Data Mining, 2016, Pp. 785–794, Doi: 10.1145/2939672.2939785.
M. Liu, C. Guo, And S. Guo, “An Explainable Knowledge Distillation Method With Xgboost For Icu Mortality Prediction,” Comput. Biol. Med., Vol. 152, P. 106466, Jan. 2023, Doi: 10.1016/J.Compbiomed.2022.106466.
O. Rainio, J. Teuho, And R. Klén, “Evaluation Metrics And Statistical Tests For Machine Learning,” Sci. Rep., Vol. 14, No. 1, P. 6086, Mar. 2024, Doi: 10.1038/S41598-024-56706-X.
Q. Ren And J. Wang, “Research On Enterprise Digital-Level Classification Based On Xgboost Model,” Sustainability, Vol. 15, No. 3, P. 2699, Feb. 2023, Doi: 10.3390/Su15032699.
F. Baldo, J. Grando, Y. Yamada Correa, And D. Amorim Policarpo, “Adaptive Fast Xgboost For Multiclass Classification,” Journal Of Information And Data Management, Vol. 14, No. 1, Oct. 2023, Doi: 10.5753/Jidm.2023.3150.
S. Lonang, A. Fatoni, D. Putra, F. Syuhada, A. A. Firdaus, And A. Masitha, “Hybrid Feature Selection For Effective Heart Disease Detection: A Multi-Algorithm Machine Learning Approach,” Scientific Journal Of Informatics, Vol. 13, No. 1, 2026, Doi: 10.15294/Sji.V13i1.38815.
S. A. Hicks Et Al., “On Evaluation Metrics For Medical Applications Of Artificial Intelligence,” Sci. Rep., Vol. 12, No. 1, P. 5979, Apr. 2022, Doi: 10.1038/S41598-022-09954-8.
J. S. Aguilar-Ruiz And M. Michalak, “Classification Performance Assessment For Imbalanced Multiclass Data,” Sci. Rep., Vol. 14, No. 1, P. 10759, May 2024, Doi: 10.1038/S41598-024-61365-Z.
G. M. Foody, “Challenges In The Real World Use Of Classification Accuracy Metrics: From Recall And Precision To The Matthews Correlation Coefficient,” Plos One, Vol. 18, No. 10, P. E0291908, Oct. 2023, Doi: 10.1371/Journal.Pone.0291908.
M. Heydarian, T. E. Doyle, And R. Samavi, “Mlcm: Multi-Label Confusion Matrix,” Ieee Access, Vol. 10, Pp. 19083–19095, 2022, Doi: 10.1109/Access.2022.3151048.
K. Singh, “Product Review Classification Using Machine Learning And Statistical Data Analysis,” International Journal Of Recent Technology And Engineering (Ijrte), Vol. 12, No. 2, Pp. 91–96, Jul. 2023, Doi: 10.35940/Ijrte.A7530.0712223.
A. M. Carrington Et Al., “Deep Roc Analysis And Auc As Balanced Average Accuracy, For Improved Classifier Selection, Audit And Explanation,” Ieee Trans. Pattern Anal. Mach. Intell., Vol. 45, No. 1, Pp. 329–341, Jan. 2023, Doi: 10.1109/Tpami.2022.3145392.
R. Numminen, I. Montoya Perez, I. Jambor, T. Pahikkala, And A. Airola, “Quicksort Leave-Pair-Out Cross-Validation For Roc Curve Analysis,” Comput. Stat., Vol. 38, No. 3, Pp. 1579–1595, Sep. 2023, Doi: 10.1007/S00180-022-01288-3.
Y. Ning Et Al., “Shapley Variable Importance Cloud For Interpretable Machine Learning,” Patterns, Vol. 3, No. 4, P. 100452, Apr. 2022, Doi: 10.1016/J.Patter.2022.100452.
A. Moore And M. Bell, “Xgboost, A Novel Explainable Ai Technique, In The Prediction Of Myocardial Infarction: A Uk Biobank Cohort Study,” Clin. Med. Insights Cardiol., Vol. 16, Jan. 2022, Doi: 10.1177/11795468221133611.
J. Chen, J. Xiong, Y. Wang, Q. Xin, And H. Zhou, “Implementation Of An Ai-Based Mrd Evaluation And Prediction Model For Multiple Myeloma,” Feb. 2024.
F. Yi Et Al., “Xgboost-Shap-Based Interpretable Diagnostic Framework For Alzheimer’s Disease,” Bmc Med. Inform. Decis. Mak., Vol. 23, No. 1, P. 137, Jul. 2023, Doi: 10.1186/S12911-023-02238-9.
S. U. Chowdhury, S. Sayeed, I. Rashid, Md. G. R. Alam, A. K. M. Masum, And M. A. A. Dewan, “Shapley-Additive-Explanations-Based Factor Analysis For Dengue Severity Prediction Using Machine Learning,” J. Imaging, Vol. 8, No. 9, P. 229, Aug. 2022, Doi: 10.3390/jimaging8090229.
Downloads
Published
How to Cite
Issue
Section
License
Copyright (c) 2026 Surtiningsih Surtiningsih, Linda Yanti, Hadi Jayuman

This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.
All articles published in the JAHIR Journal are licensed under the Creative Commons Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license. This license grants the following permissions and obligations:
1. Permitted Uses:
- Sharing – You may copy and redistribute the material in any medium or format.
- Adaptation – You may remix, transform, and build upon the material for any purpose, including commercial use.
2. Conditions of Use:
- Attribution – You must give appropriate credit to the original author(s), provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in a way that suggests the licensor endorses you or your use.
- ShareAlike – If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original (CC BY-SA 4.0).
- No Additional Restrictions – You may not apply legal terms or technological measures that legally restrict others from doing anything the license permits.
3. Disclaimer:
- The JAHIR Journal and the authors are not responsible for any modifications, interpretations, or derivative works made by third parties using the published content.
- This license does not affect the ownership of copyrights, and authors retain full rights to their work.
For further details, please refer to the official Creative Commons Attribution-ShareAlike 4.0 International License.



