Development and validation of a novel AI framework using NLP with LLM integration for relevant clinical data extraction through automated chart review
- PMID: 39500759
- PMCID: PMC11538412
- DOI: 10.1038/s41598-024-77535-y
Development and validation of a novel AI framework using NLP with LLM integration for relevant clinical data extraction through automated chart review
Abstract
The accurate extraction of surgical data from electronic health records (EHRs), particularly operative notes through manual chart review (MCR), is complex, crucial, and time-intensive, limited by human error due to fatigue and the level of training. This study aimed to develop and validate a novel Natural Language Processing (NLP) algorithm integrated with a Large Language Model (LLM; GPT4-Turbo) to automate the extraction of spinal surgery data from EHRs. The algorithm employed a two-stage approach. Initially, a rule-based NLP framework reviewed and classified candidate segments from the text, preserving their reference segments. These segments were then verified in the second stage through the LLM. The primary outcomes of this study were the accurate extraction of surgical data, including the type of surgery, levels operated, number of disks removed, and presence of intraoperative incidental durotomies. Secondary objectives explored time efficiency, tokenization lengths, and costs. The performance of the algorithm was assessed across two validation databases, analyzing metrics such as accuracy, sensitivity, discrimination, F1-score, and precision, with 95% confidence intervals calculated using percentile-based bootstrapping. The NLP + LLM algorithm markedly outperformed all performance metrics, demonstrating significant improvements in time and cost efficiency. These results suggest the potential for widespread adoption of this technology.
Keywords: Artificial intelligence; Data science; Electronic health records; Humans; Natural language processing; Quality improvement.
© 2024. The Author(s).
Conflict of interest statement
An intellectual property disclosure has been made in accordance with the University of Pennsylvania’s institutional policies and contracts, without any relation to the present work at the time of submission. The Penn Center for Innovation has opted to proceed with copyright protection and is currently evaluating the patentability and potential financial interests in line with their standard procedures.
Figures


References
-
- Baumann, L. A., Baker, J. & Elshaug, A. G. The impact of electronic health record systems on clinical documentation times: a systematic review. Health Polic. 122, 827–836 (2018). - PubMed
-
- Häyrinen, K., Saranto, K. & Nykänen, P. Definition, structure, content, use and impacts of electronic health records: a review of the research literature. Int. J. Med. Inform. 77, 291–304 (2008). - PubMed
-
- Overhage, J. M. & McCallie, D. Jr Physician time spent using the electronic health record during outpatient encounters: a descriptive study. Ann. Intern. Med. 172, 169–174 (2020). - PubMed
Publication types
MeSH terms
Grants and funding
LinkOut - more resources
Full Text Sources