Artificial intelligence approach to optimise safety for hospitalised patients with dementia
- PMID: 40903180
- PMCID: PMC12414173
- DOI: 10.1136/bmjoq-2024-003270
Artificial intelligence approach to optimise safety for hospitalised patients with dementia
Abstract
Background: The aim of the study is to develop a machine learning (ML) model to identify contributing factors to dementia-related safety events using patient safety event report data.
Method: This study uses dementia-related safety event reports from a patient safety reporting system of a 10-hospital health system in the USA. Contributing factors to safety events were coded using the Yorkshire contributory factors framework based on free-text descriptions in the reports. The coded event reports were used to develop two ML models using eXtreme Gradient Boosting (XGBoost), one to classify situational patient factors and another to classify active failures relating to human error.
Results: We used 1387 safety event reports for model development, 989 (71.3%) reports related to situational factors and 119 (8.6%) reports related to active failures. The model for situational factors achieved a precision of 0.843 and a recall of 0.826. The F1 score was 0.834, indicating a balance of precision and recall performance. The specificity of the model was 0.639 and the area under the receiver operating characteristic curve (ROC AUC) was 0.833. The final model for active failure achieved a precision of 0.333 and a recall of 0.056. The F1 score was 0.095, reflective of imbalanced precision and recall performance. The specificity of the model was 0.992, indicating a strong ability to identify negative cases, and the ROC AUC was 0.817.
Conclusion: ML techniques can provide insights into situational factors and active failures that drive dementia-related safety events. These insights can inform targeted interventions such as specialised staff training for behavioural symptoms management and pharmacist-led medication optimisation, to enhance care and safety for hospitalised people living with dementia.
Keywords: Adverse events, epidemiology and detection; Chart review methodologies; Healthcare quality improvement; Human error; Human factors.
© Author(s) (or their employer(s)) 2025. Re-use permitted under CC BY-NC. No commercial re-use. See rights and permissions. Published by BMJ Group.
Conflict of interest statement
Competing interests: None declared.
Figures

Similar articles
-
Supervised Machine Learning Models for Predicting Sepsis-Associated Liver Injury in Patients With Sepsis: Development and Validation Study Based on a Multicenter Cohort Study.J Med Internet Res. 2025 May 26;27:e66733. doi: 10.2196/66733. J Med Internet Res. 2025. PMID: 40418571 Free PMC article.
-
Prescription of Controlled Substances: Benefits and Risks.2025 Jul 6. In: StatPearls [Internet]. Treasure Island (FL): StatPearls Publishing; 2025 Jan–. 2025 Jul 6. In: StatPearls [Internet]. Treasure Island (FL): StatPearls Publishing; 2025 Jan–. PMID: 30726003 Free Books & Documents.
-
Proposal for Using AI to Assess Clinical Data Integrity and Generate Metadata: Algorithm Development and Validation.JMIR Med Inform. 2025 Jun 30;13:e60204. doi: 10.2196/60204. JMIR Med Inform. 2025. PMID: 40587839 Free PMC article.
-
Signs and symptoms to determine if a patient presenting in primary care or hospital outpatient settings has COVID-19.Cochrane Database Syst Rev. 2022 May 20;5(5):CD013665. doi: 10.1002/14651858.CD013665.pub3. Cochrane Database Syst Rev. 2022. PMID: 35593186 Free PMC article.
-
Systemic pharmacological treatments for chronic plaque psoriasis: a network meta-analysis.Cochrane Database Syst Rev. 2021 Apr 19;4(4):CD011535. doi: 10.1002/14651858.CD011535.pub4. Cochrane Database Syst Rev. 2021. Update in: Cochrane Database Syst Rev. 2022 May 23;5:CD011535. doi: 10.1002/14651858.CD011535.pub5. PMID: 33871055 Free PMC article. Updated.
References
MeSH terms
Grants and funding
LinkOut - more resources
Full Text Sources
Medical