A Comparative Analysis of Privacy-Preserving Large Language Models For Automated Echocardiography Report Analysis

Elham Mahmoudi,Sanaz Vahdati,Chieh-Ju Chao,Bardia Khosravi,Ajay Misra,Francisco Lopez-Jimenez,Bradley J. Erickson
DOI: https://doi.org/10.1101/2024.12.19.24319181
2024-12-22
Abstract:Background: Automated data extraction from echocardiography reports could facilitate large-scale registry creation and clinical surveillance of valvular heart diseases (VHD). We evaluated the performance of open-source Large Language Models (LLMs) guided by prompt instructions and chain of thought (CoT) for this task. Methods: From consecutive transthoracic echocardiographies performed in our center, we utilized 200 random reports from 2019 for prompt optimization and 1000 from 2023 for evaluation. Five instruction-tuned LLMs (Qwen2.0-72B, Llama3.0-70B, Mixtral8-46.7B, Llama3.0-8B, and Phi3.0-3.8B) were guided by prompt instructions with and without CoT to classify prosthetic valve presence and VHD severity. Performance was evaluated using classification metrics against expert-labeled ground truth. Mean Squared Error (MSE) was also calculated for predicted severity`s deviation from actual severity. Results: With CoT prompting, Llama3.0-70B and Qwen2.0 achieved the highest performance (accuracy: 99.1% and 98.9% for VHD severity; 100% and 99.9% for prosthetic valve; MSE: 0.02 and 0.05, respectively). Smaller models showed lower accuracy for VHD severity (54.1-85.9%) but maintained high accuracy for prosthetic valve detection (>96%). CoT reasoning yielded higher accuracy for larger models while increasing processing time from 2-25 to 67-154 seconds per report. Based of CoT reasonings, the wrong predictions were mainly due to model outputs being influenced by irrelevant information in the text or failure to follow the prompt instructions. Conclusions: Our study demonstrates the near-perfect performance of open-source LLMs for automated echocardiography report interpretation with purpose of registry formation and disease surveillance. While larger models achieved exceptional accuracy through prompt optimization, practical implementation requires balancing performance with computational efficiency.
What problem does this paper attempt to address?