Background: Medication harm is a significant healthcare challenge in hospitalised adult patients. Machine learning (ML) approaches offer the potential to improve prediction accuracy for medication harm by capturing complex relationships among clinical risk factors that traditional statistical models may not detect. Objective: To develop and evaluate ML models for predicting medication harm in hospitalised adult patients. Design: ML study involving secondary use of a prospectively collected hospital cohort dataset. Methods: This study used data from 279 adult patients admitted to general medical and geriatric wards of a tertiary hospital, among whom 40 experienced 51 medication harm events. Eight ML models were trained and evaluated for identifying patients at risk of medication harm. Medication harm cases were identified through detailed chart reviews, trigger tools, voluntary incident reporting, and International Classification of Diseases version 10 discharge coding. Data were pre-processed with missing values imputed using median imputation. Ten predictive features were selected using recursive feature elimination and clinical expert opinion. Models were trained using stratified 10-fold cross-validation with an 80/20 train-test split. Class imbalance was addressed using an oversampling approach. Results: A random forest model demonstrated the highest performance, achieving an area under the receiver operating characteristic curve of 0.76, precision of 0.50, recall of 0.62, F1 score of 0.54, accuracy of 0.86, specificity of 0.90, and an area under the precision-recall curve of 0.47. Predictive features of importance included length of stay, depression, dementia, insulin use, number of medications (⩾15), age (⩾65), opioid use, and antibiotic use. Conclusion: This study highlights the potential of ML models to predict medication harm, enabling early identification of high-risk patients for preventive interventions. Interdisciplinary collaboration is essential in developing robust, clinically relevant models that can be used to improve patient safety.
Lam et al. (Thu,) studied this question.
Synapse has enriched 5 closely related papers on similar clinical questions. Consider them for comparative context: