A Large Language Model-Based Approach for Coding Information from Free-Text Reported in Fall Risk Surveillance Systems: New Opportunities for In-Hospital Risk Management
- PMID: 40095488
- PMCID: PMC11900557
- DOI: 10.3390/jcm14051580
A Large Language Model-Based Approach for Coding Information from Free-Text Reported in Fall Risk Surveillance Systems: New Opportunities for In-Hospital Risk Management
Abstract
Background/Objectives: Falls are the most common adverse in-hospital event, resulting in a considerable social and economic burden on individuals, their families, and the healthcare system. This study aims to develop and implement an automatic coding system using large language models (LLMs) to extract and categorize free-text information (including the location of the fall and any resulting injury) from in-hospital fall records. Methods: The study used the narrative description of the falls reported through the Incident Reporting system to the Risk Management Service of an Italian Local Health Authority in Italy (name not disclosed as per research agreement). The OpenAI application programming interface (API) was used to access the generative pre-trained transformers (GPT) models, extract data from the narrative description of the falls, and perform the classification task. The GPT-4-turbo models were used for the classification task. Two independent reviewers manually coded the information, representing the gold standard for the classification task. Sensitivity, specificity, and accuracy were calculated to evaluate the performance of the task. Results: The analysis included 187 fall records with free-text event descriptions detailing the location of the fall and 93 records providing information about the presence or absence of an injury. GPT-4-turbo showed excellent performance, with specificity, sensitivity, and accuracy values of at least 0.913 for detecting the location and 0.953 for detecting the injury. Conclusions: The GPT models effectively extracted and categorized the information, even though the text was not optimized for GPT-based analysis. This shows their potential for the use of LLMs in clinical risk management research.
Keywords: free text; in-hospital falls; large language models; risk management.
Conflict of interest statement
The authors declare no conflicts of interest.
Similar articles
-
The Transformative Potential of Large Language Models in Mining Electronic Health Records Data: Content Analysis.JMIR Med Inform. 2025 Jan 2;13:e58457. doi: 10.2196/58457. JMIR Med Inform. 2025. PMID: 39746191 Free PMC article.
-
Privacy-ensuring Open-weights Large Language Models Are Competitive with Closed-weights GPT-4o in Extracting Chest Radiography Findings from Free-Text Reports.Radiology. 2025 Jan;314(1):e240895. doi: 10.1148/radiol.240895. Radiology. 2025. PMID: 39807977
-
Large language models can accurately populate Vascular Quality Initiative procedural databases using narrative operative reports.J Vasc Surg. 2025 Apr;81(4):973-982. doi: 10.1016/j.jvs.2024.12.002. Epub 2024 Dec 16. J Vasc Surg. 2025. PMID: 39694151
-
The Accuracy and Capability of Artificial Intelligence Solutions in Health Care Examinations and Certificates: Systematic Review and Meta-Analysis.J Med Internet Res. 2024 Nov 5;26:e56532. doi: 10.2196/56532. J Med Internet Res. 2024. PMID: 39499913 Free PMC article.
-
A systematic review of natural language processing for classification tasks in the field of incident reporting and adverse event analysis.Int J Med Inform. 2019 Dec;132:103971. doi: 10.1016/j.ijmedinf.2019.103971. Epub 2019 Oct 5. Int J Med Inform. 2019. PMID: 31630063
References
-
- World Health Organization . Global Patient Safety Action Plan 2021–2030: Towards Eliminating Avoidable Harm in Health Care. World Health Organization; Geneva, Switzerland: 2021.
-
- Appeadu M.K., Bordoni B. StatPearls [Internet] StatPearls Publishing; Treasure Island, FL, USA: 2023. Falls and Fall Prevention in the Elderly. - PubMed
LinkOut - more resources
Full Text Sources