Hostname: page-component-76d6cb85b7-5qg8f Total loading time: 0 Render date: 2026-07-17T16:17:41.448Z Has data issue: false hasContentIssue false

Can machine learning support infection control measures by predicting carbapenemase-producing Enterobacterales colonization at admission?

Published online by Cambridge University Press:  21 April 2026

Shuk-Ching Wong
Affiliation:
Infection Control Team, Queen Mary Hospital, Hong Kong West Cluster, Hong Kong Special Administrative Region, China School of Nursing, Li Ka Shing Faculty of Medicine, The University of Hong Kong, Pokfulam, Hong Kong Special Administrative Region, China Department of Microbiology, School of Clinical Medicine, Li Ka Shing Faculty of Medicine, Pokfulam, The University of Hong Kong, Hong Kong Special Administrative Region, China
Edwin Kwan-Yeung Chiu
Affiliation:
Infection Control Team, Queen Mary Hospital, Hong Kong West Cluster, Hong Kong Special Administrative Region, China Department of Microbiology, School of Clinical Medicine, Li Ka Shing Faculty of Medicine, Pokfulam, The University of Hong Kong, Hong Kong Special Administrative Region, China Department of Microbiology, Queen Mary Hospital, Hong Kong Special Administrative Region, China
Jonathan Daniel Ip
Affiliation:
Department of Microbiology, School of Clinical Medicine, Li Ka Shing Faculty of Medicine, Pokfulam, The University of Hong Kong, Hong Kong Special Administrative Region, China Department of Microbiology, Queen Mary Hospital, Hong Kong Special Administrative Region, China
Simon Yung-Chun So
Affiliation:
Department of Microbiology, Queen Mary Hospital, Hong Kong Special Administrative Region, China
Kelvin Hei-Yeung Chiu
Affiliation:
Infection Control Team, Queen Mary Hospital, Hong Kong West Cluster, Hong Kong Special Administrative Region, China Department of Microbiology, School of Clinical Medicine, Li Ka Shing Faculty of Medicine, Pokfulam, The University of Hong Kong, Hong Kong Special Administrative Region, China Department of Microbiology, Queen Mary Hospital, Hong Kong Special Administrative Region, China
Edmond Siu-Keung Ma
Affiliation:
Centre for Health Protection, Department of Health, Hong Kong Special Administrative Region, China
Kwok-Yung Yuen
Affiliation:
Department of Microbiology, School of Clinical Medicine, Li Ka Shing Faculty of Medicine, Pokfulam, The University of Hong Kong, Hong Kong Special Administrative Region, China
Vincent Chi-Chung Cheng*
Affiliation:
Infection Control Team, Queen Mary Hospital, Hong Kong West Cluster, Hong Kong Special Administrative Region, China Department of Microbiology, School of Clinical Medicine, Li Ka Shing Faculty of Medicine, Pokfulam, The University of Hong Kong, Hong Kong Special Administrative Region, China Department of Microbiology, Queen Mary Hospital, Hong Kong Special Administrative Region, China
*
Corresponding author: Vincent Chi-Chung Cheng; Email: vcccheng@hku.hk
Rights & Permissions [Opens in a new window]

Abstract

Background:

Early identification of patients with carbapenemase-producing Enterobacterales (CPE) colonization is crucial for infection control; however, microbiological testing may delay detection and be costly. Machine learning may enhance predictive analytics for timely identification of at-risk patients.

Methods:

Four machine learning models: Decision Tree, Random Forest, Gradient Boosting, and XGBoost, were used to predict CPE colonization within 48 hours of admission using microbiological and demographic data. Model performance was assessed through sensitivity, specificity, and area under the receiver operating characteristic curve (AUROC). Uniform Manifold Approximation and Projection (UMAP) evaluated topological separability of CPE-positive cases and CPE-negative controls.

Results:

From January 1, 2015 to December 31, 2024, 453,372 fecal specimens were submitted for CPE screening, with 194,917 (43.0%) collected within 48 hours of admission, comprising 3,328 CPE-positive cases (1.7%) and 191,589 CPE-negative controls. The Gradient Boosting classifier showed the best performance, achieving an AUROC of 0.598, sensitivity of 54.4%, and specificity of 59.1%. Demographic factors (age ≥ 75 and male sex), history of hospitalization, and known CPE colonization in the past year, and admission specialty (general medicine and general surgery) were consistently included in all models as top predictors. UMAP revealed significant overlap between CPE-positive and CPE-negative patients, indicating challenges in differentiating the risk profiles.

Conclusions:

This study highlights the complexities of using machine learning to predict CPE colonization within 48 hours of admission. The low AUROC values suggest that the models may not effectively predict CPE colonization at the patient level, potentially due to inherent rarity of events and overlapping risk profiles.

Information

Type
Original Article
Creative Commons
Creative Common License - CCCreative Common License - BY
This is an Open Access article, distributed under the terms of the Creative Commons Attribution licence (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted re-use, distribution and reproduction, provided the original article is properly cited.
Copyright
© The Author(s), 2026. Published by Cambridge University Press on behalf of The Society for Healthcare Epidemiology of America
Figure 0

Figure 1. Figure 1 long description.Selection of the study cohort for machine learning. Flow diagram showing inclusion and exclusion of fecal specimens and patient episodes submitted for CPE screening between January 1, 2015 and December 31, 2024, and identification of eligible admission episodes with specimens collected within 48 hours of admission. Data collected from 2015 to 2016 was excluded from the analysis because it served as baseline information for detecting epidemiological parameters related to exposures in the past year. CPE, carbapenemase-producing Enterobacterales.

Figure 1

Table 1. Baseline characteristics of patients screened for carbapenemase-producing Enterobacterales (CPE) within 48 hours of admission as input features for machine learning modelsTable 1 long description.

Figure 2

Figure 2. Figure 2 long description.Model performance in predicting CPE colonization within 48 hours of admission. Receiver operating characteristic (ROC) curves for the machine learning classifiers (Gradient Boosting, XGBoost, Random Forest, Decision Tree) and the logistic regression baseline. (A) random split validation: performance on a randomly selected 20% hold-out test set. (B) Temporal validation: performance when training on early study period (2017–2022) and testing on subsequent period (2023–2024). CPE, carbapenemase-producing Enterobacterales.

Figure 3

Table 2. Performance of machine learning models compared with the statistical baselineTable 2 long description.

Figure 4

Figure 3. Figure 3 long description.SHAP bar plots illustrating global feature importance for the prediction of CPE colonization. The bars represent the mean absolute SHAP values, indicating the average magnitude of impact each feature has on the model’s output. Only the top predictors of CPE colonization within 48 hours of admission in each model are shown. Features are color-coded by clinical category (Demographics, healthcare exposure, comorbidities, admission specialty, and medications and procedures). CPE, carbapenemase-producing Enterobacterales; RCHE, residential care homes for the elderly; SHAP, SHapley Additive exPlanations.

Figure 5

Figure 4. Figure 4 long description.Uniform Manifold Approximation and Projection (UMAP) visualization of the study cohort. Each dot represents a unique patient admission case projected into a two-dimensional space based on the input clinical and demographic features. Red dots represent CPE-positive cases, and blue dots represent CPE-negative controls. Interpretation: the plot reveals a high degree of topological overlap, with CPE-positive cases diffusely distributed throughout the CPE-negative controls rather than forming distinct clusters. This lack of separability visually corroborates the low AUROC values, indicating that the available admission variables are insufficient to distinctively characterize the risk profile of CPE colonization.