Related Experiment Video
Updated: Oct 11, 2025

Constructing and Visualizing Models using Mime-based Machine-learning Framework
Published on: July 22, 2025
Machine Learning Approach to Predict Positive Screening of Methicillin-Resistant Staphylococcus aureus During
Yohei Hirano1, Keito Shinmoto2, Yohei Okada3
1Department of Emergency and Critical Care Medicine, Juntendo University Urayasu Hospital, Chiba, Japan.
Abstract:
Background: Mechanically ventilated patients are susceptible to nosocomial infections such as ventilator-associated pneumonia. To treat ventilated patients with suspected infection, clinicians select appropriate antibiotics. However, decision-making regarding the use of antibiotics for methicillin-resistant Staphylococcus aureus (MRSA) is challenging, because of the lack of evidence-supported criteria. This study aims to derive a machine learning model to predict MRSA as a possible pathogen responsible for infection in mechanically ventilated patients. Methods: Data were collected from the Medical Information Mart for Intensive Care (MIMIC)-IV database (an openly available database of patients treated at the Beth Israel Deaconess Medical Center in the period 2008-2019). Of 26,409 mechanically ventilated patients, 809 were screened for MRSA during the mechanical ventilation period and included in the study. The outcome was positivity to MRSA on screening, which was highly imbalanced in the dataset, with 93.9% positive outcomes. Therefore, after dividing the dataset into a training set (n = 566) and a test set (n = 243) for validation by stratified random sampling with a 7:3 allocation ratio, synthetic datasets with 50% positive outcomes were created by synthetic minority over-sampling for both sets individually (synthetic training set: n = 1,064; synthetic test set: n = 456). Using these synthetic datasets, we trained and validated an XGBoost machine learning model using 28 predictor variables for outcome prediction. Model performance was evaluated by area under the receiver operating characteristic (AUROC), sensitivity, specificity, and other statistical measurements. Feature importance was computed by the Gini method. Results: In validation, the XGBoost model demonstrated reliable outcome prediction with an AUROC value of 0.89 [95% confidence interval (CI): 0.83-0.95]. The model showed a high sensitivity of 0.98 [CI: 0.95-0.99], but a low specificity of 0.47 [CI: 0.41-0.54] and a positive predictive value of 0.65 [CI: 0.62-0.68]. Important predictor variables included admission from the emergency department, insertion of arterial lines, prior quinolone use, hemodialysis, and admission to a surgical intensive care unit. Conclusions: We were able to develop an effective machine learning model to predict positive MRSA screening during mechanical ventilation using synthetic datasets, thus encouraging further research to develop a clinically relevant machine learning model for antibiotics stewardship.
Insights
This study developed a machine learning model to predict methicillin-resistant Staphylococcus aureus (MRSA) in mechanically ventilated patients. The model aids in early detection and antibiotic stewardship for these high-risk infections.
Area of Science:
- Infectious Diseases
- Medical Informatics
- Critical Care Medicine
Background:
- Mechanically ventilated patients face high risks of nosocomial infections, including ventilator-associated pneumonia.
- Antibiotic selection for suspected infections in these patients is complicated by the lack of clear criteria for methicillin-resistant Staphylococcus aureus (MRSA).
- Accurate prediction of MRSA is crucial for effective treatment and antibiotic stewardship.
Purpose of the Study:
- To develop and validate a machine learning model for predicting MRSA in mechanically ventilated patients.
- To identify key predictors associated with MRSA infection in this patient population.
- To support clinical decision-making and antibiotic stewardship efforts.
Main Methods:
- Utilized the MIMIC-IV database, including 26,409 mechanically ventilated patients.
- Developed an XGBoost machine learning model using 28 predictor variables on synthetic datasets to address data imbalance (93.9% positive outcomes).
- Validated model performance using AUROC, sensitivity, specificity, and positive predictive value.
Main Results:
- The XGBoost model achieved a reliable AUROC of 0.89 (95% CI: 0.83-0.95).
- Demonstrated high sensitivity (0.98) but lower specificity (0.47) and positive predictive value (0.65).
- Key predictors included emergency department admission, arterial line insertion, prior quinolone use, hemodialysis, and surgical ICU admission.
Conclusions:
- An effective machine learning model was developed to predict MRSA screening positivity in mechanically ventilated patients.
- The use of synthetic datasets proved effective in handling imbalanced data for model training.
- Further research is encouraged to refine this model for clinical application in antibiotic stewardship.

