Development and validation of a novel AI framework using NLP with LLM integration for relevant clinical data extraction through automated chart review

Sci Rep. 2024 Nov 5;14(1):26783. doi: 10.1038/s41598-024-77535-y.

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.

Publication types

  • Validation Study

MeSH terms

  • Algorithms*
  • Artificial Intelligence
  • Electronic Health Records*
  • Humans
  • Natural Language Processing*