Improving Surgical Site Infection Prediction Using Machine Learning: Addressing Challenges of Highly Imbalanced Data
Open Access
- 19 February 2025
- journal article
- research article
- Published by MDPI AG in Diagnostics
- Vol. 15 (4) , 501
Abstract
Background: Surgical site infections (SSIs) lead to higher hospital readmission rates and healthcare costs, representing a significant global healthcare burden. Machine learning (ML) has demonstrated potential in predicting SSIs; however, the challenge of addressing imbalanced class ratios remains. Objectives: The aim of this study is to evaluate and enhance the predictive capabilities of machine learning models for SSIs by assessing the effects of feature selection, resampling techniques, and hyperparameter optimization. Methods: Using routine SSI surveillance data from multiple hospitals in Saudi Arabia, we analyzed a dataset of 64,793 surgical patients, of whom 1632 developed SSI. Seven machine learning algorithms were created and tested: Decision Tree (DT), Gaussian Naive Bayes (GNB), Support Vector Machine (SVM), Logistic Regression (LR), Random Forest (RF), Stochastic Gradient Boosting (SGB), and K-Nearest Neighbors (KNN). We also improved several resampling strategies, such as undersampling and oversampling. Grid search five-fold cross-validation was employed for comprehensive hyperparameter optimization, in conjunction with balanced sampling techniques. Features were selected using a filter method based on their relationships with the target variable. Results: Our findings revealed that RF achieves the highest performance, with an MCC of 0.72. The synthetic minority oversampling technique (SMOTE) is the best-performing resampling technique, consistently enhancing the performance of most machine learning models, except for LR and GNB. LR struggles with class imbalance due to its linear assumptions and bias toward the majority class, while GNB’s reliance on feature independence and Gaussian distribution make it unreliable for under-represented minority classes. For computational efficiency, the Instance Hardness Threshold (IHT) offers a viable alternative undersampling technique, though it may compromise performance to some extent. Conclusions: This study underscores the potential of ML models as effective tools for assessing SSI risk, warranting further clinical exploration to improve patient outcomes. By employing advanced ML techniques and robust validation methods, these models demonstrate promising accuracy and reliability in predicting SSI events, even in the face of significant class imbalances. In addition, using MCC in this study ensures a more reliable and robust evaluation of the model’s predictive performance, particularly in the presence of an imbalanced dataset, where other metrics may fail to provide an accurate evaluation.Keywords
This publication has 42 references indexed in Scilit:
- Handling imbalanced medical datasets: review of a decade of researchArtificial Intelligence Review, 2024
- Machine-learning models for predicting surgical site infections using patient pre-operative risk and surgical procedure factorsAmerican Journal of Infection Control, 2022
- DTP-Net: A convolutional neural network model to predict threshold for localizing the lesions on dermatological macro-imagesComputers in Biology and Medicine, 2022
- Health care–associated infections studies project: an American Journal of Infection Control and National Healthcare Safety Network data quality collaborationAmerican Journal of Infection Control, 2020
- The impact of class imbalance in classification performance metrics based on the binary confusion matrixPattern Recognition, 2019
- Enhanced neonatal surgical site infection prediction model utilizing statistically and clinically significant variables in combination with a machine learning algorithmThe American Journal of Surgery, 2018
- Comparing the Behavior of Oversampling and Undersampling Approach of Class Imbalance Learning by Combining Class Imbalance Problem with Noise2017
- Impact of surgical site infection on healthcare costs and patient outcomes: a systematic review in six European countriesJournal of Hospital Infection, 2017
- Learning from class-imbalanced data: Review of methods and applicationsExpert Systems with Applications, 2017
- An Application of Oversampling, Undersampling, Bagging and Boosting in Handling Imbalanced Datasets2013