Constructing a predictive model for acute mastitis in lactating women based on machine learning
Authors:
Open Access
- 22 August 2025
- journal article
- research article
- Published by Springer Nature in Scientific Reports
- Vol. 15 (1) , 1-8
Abstract
Acute lactational mastitis is a frequently occurring complication for lactating women, exerting a certain degree of influence on their physical condition, breastfeeding, mental health, and daily life. The etiology of this disease is complex, and the early symptoms lack typicality. Delayed diagnosis often occurs, which further progresses to abscess or more severe infections, adversely affecting the therapeutic effect and eventually leading to a prolonged recovery process and triggering other complications. Nevertheless, currently, the research regarding the risk factors of acute mastitis that occurs during lactation remains unfinished. This study employed a retrospective case-control study approach and collected relevant data from 369 patients with acute mastitis and 447 healthy controls. The involved data covered indicators such as age, parity, history of breast surgery, etc. By using machine learning (ML) algorithms (Logistic Regression (LR), Naive Bayes (NB), XGBoost, Multilayer Perceptron (MLP)) to train and validate the above data, it aimed to construct a predictive model of the risk factors for the occurrence of acute mastitis in lactating women, and simultaneously analyzed the other influences and effects of these factors on acute mastitis. The ML model demonstrated high accuracy in differentiating patients with acute mastitis from non-patients. We evaluated twelve indicators, namely age, primiparity, history of breast surgery, cracked, external breast trauma, puerperium, gestational diabetes, C-reactive protein (CRP), procalcitonin (PCT), neutrophils (NE), white blood cells (WBC), and abnormal nipple discharge, to determine their influence on the occurrence of acute mastitis in lactating women. Prediction models were established using four different ML algorithms. Through analysis, when comparing the four distinct ML models on the test set, the MLP model performed optimally across various evaluation metrics, including the highest area under the receiver operating characteristic (ROC) curve (AUROC) (0.898), sensitivity (0.820), test specificity (0.863), and F1 score (0.849), with an accuracy of 0.840. Decision Curve Analysis (DCA) indicates that within the majority of threshold ranges, the MLP can achieve the highest net benefit. Among these twelve indicators, five are significantly related to the occurrence of acute mastitis, namely age, cracked, CRP, NE, and WBC. We have successfully developed a prediction model for acute lactational mastitis and identified five key indicators closely related to its occurrence. This study effectively predicts the occurrence of acute lactational mastitis and provides a reference for the timely implementation of targeted clinical interventions as well as accurate diagnosis and treatment.Keywords
Funding Information
- Specific Research Project of Guangxi for Research Bases and Talents (AC22080002, AC22080002, AC22080002)
- Key Research and Development Program Project in Guangxi (AB22035080, AB22035080)
This publication has 39 references indexed in Scilit:
- Differentiation of Malignancy and Idiopathic Granulomatous Mastitis Presenting as Non-mass Lesions on MRI: Radiological, Clinical, Radiomics, and Clinical-Radiomics ModelsAcademic Radiology, 2024
- Three-dimensional augmentation for hyperspectral image data of water quality: An Integrated approach using machine learning and numerical modelsWater Research, 2024
- Benchmarking of Machine Learning classifiers on plasma proteomic for COVID-19 severity prediction through interpretable artificial intelligenceArtificial Intelligence in Medicine, 2023
- T cell activation and effector function in the human Jurkat T cell model2022
- Mechanism of transepithelial migration of lymphocytes into the milk in porcine mammary glandsJournal of Reproductive Immunology, 2022
- Supervised machine learning-based prediction for in-hospital pressure injury development using electronic health records: A retrospective observational cohort study in a university hospital in JapanInternational Journal of Nursing Studies, 2021
- Effect of Mycoplasma bovis on bovine neutrophilsVeterinary Immunology and Immunopathology, 2017
- Management of Lactational Mastitis and Breast Abscesses: Review of Current Knowledge and PracticeIndian Journal of Surgery, 2012
- Immunopathology of Mastitis: Insights into Disease Recognition and ResolutionJournal of Mammary Gland Biology and Neoplasia, 2011
- Neutrophil recruitment in endotoxin-induced murine mastitis is strictly dependent on mammary alveolar macrophagesVeterinary Research, 2009