Automated structured data extraction from intraoperative echocardiography reports using large language models
- PMID: 40037947
- PMCID: PMC12106877
- DOI: 10.1016/j.bja.2025.01.028
Automated structured data extraction from intraoperative echocardiography reports using large language models
Abstract
Background: Consensus-based large language model (LLM) ensembles might provide an automated solution for extracting structured data from unstructured text in echocardiography reports.
Methods: This cross-sectional study utilised 600 intraoperative transoesophageal reports (100 for prompt engineering; 500 for testing) randomly sampled from 7106 adult patients undergoing cardiac surgery at two hospitals within the University of Pennsylvania Healthcare System. Three echocardiographic parameters (left ventricular ejection fraction, right ventricular systolic function, and tricuspid regurgitation) were extracted from both the presurgical and postsurgical sections of the reports. LLM ensembles were generated using five open-source LLMs and four voting strategies: (1) unanimous (five out of five in agreement); (2) supermajority (four or more of five in agreement); (3) majority (three or more of five in agreement); and (4) plurality (two or more of five in agreement). Returned LLM ensemble responses were compared with the reference standard dataset to calculate raw accuracy, consensus accuracy, error rate, and yield.
Results: Of the four LLM ensembles, the unanimous LLM ensemble achieved the highest consensus accuracies (99.4% presurgical; 97.9% postsurgical) and the lowest error rates (0.6% presurgical; 2.1% postsurgical) but had the lowest data extraction yields (81.7% presurgical; 80.5% postsurgical) and the lowest raw accuracies (81.2% presurgical; 78.9% postsurgical). In contrast, the plurality LLM ensemble achieved the highest raw accuracies (96.1% presurgical; 93.7% postsurgical) and the highest data extraction yields (99.4% presurgical; 98.9% postsurgical) but had the lowest consensus accuracies (96.7% presurgical; 94.7% postsurgical) and highest error rates (3.3% presurgical; 5.3% postsurgical).
Conclusions: A consensus-based LLM ensemble successfully generated structured data from unstructured text contained in intraoperative transoesophageal reports.
Keywords: artificial intelligence (AI); cardiac surgery; echocardiography; large language models; perioperative medicine.
Copyright © 2025 British Journal of Anaesthesia. Published by Elsevier Ltd. All rights reserved.
Conflict of interest statement
Declaration of interest The authors declare that they have no conflicts of interest.
References
-
- Nicoara A., Skubas N., Ad N., et al. Guidelines for the use of transesophageal echocardiography to assist with surgical decision-making in the operating room: a surgery-based approach: from the American Society of Echocardiography in collaboration with the Society of Cardiovascular Anesthesiologists and the Society of Thoracic Surgeons. J Am Soc Echocardiogr. 2020;33:692–734. - PubMed
-
- Silva F., Arruda R., Nobre A., et al. Impact of intraoperative transesophageal echocardiography in cardiac surgery: retrospective analysis of a series of 850 examinations. Rev Port Cardiol. 2010;29:1363–1382. - PubMed
-
- Zoghbi W.A., Chambers J.B., Dumesnil J.G., et al. Recommendations for evaluation of prosthetic valves with echocardiography and Doppler ultrasound: a report from the American society of echocardiography's guidelines and standards committee and the task force on prosthetic valves, developed in conjunction with the American College of Cardiology cardiovascular imaging committee, cardiac imaging committee of the American heart association, the European association of echocardiography, a registered branch of the European society of Cardiology, the Japanese society of echocardiography and the Canadian society of echocardiography, endorsed by the American College of Cardiology foundation, American heart association, European association of echocardiography, a registered branch of the European society of Cardiology, the Japanese society of echocardiography, and Canadian society of echocardiography. J Am Soc Echocardiogr. 2009;22:975–1014. - PubMed
MeSH terms
Grants and funding
LinkOut - more resources
Full Text Sources
