Evaluating performance of large language models for atrial fibrillation management using different prompting strategies and languages
Authors:
Open Access
- 30 May 2025
- journal article
- research article
- Published by Springer Nature in Scientific Reports
- Vol. 15 (1) , 1-10
Abstract
This study evaluated large language models (LLMs) using 30 questions, each derived from a recommendation in the 2024 European Society of Cardiology (ESC) guidelines for atrial fibrillation (AF) management. These recommendations were stratified by class of recommendation and level of evidence. The primary objective was to assess the reliability and consistency of LLM-generated classifications compared to those in the ESC guidelines. Additionally, the study assessed the impact of different prompting strategies and working languages on LLM performance. Three prompting strategies were tested: Input-output (IO), 0-shot-Chain of thought (0-COT) and Performed-Chain of thought (P-COT) prompting. Each question, presented in both English and Chinese, was input into three LLMs: ChatGPT-4o, Claude 3.5 Sonnet, and Gemini 1.5 Pro. The reliability of the different LLM-prompt combinations showed moderate to substantial agreement (Fleiss kappa ranged from 0.449 to 0.763). Claude 3.5 with P-COT prompting had the highest recommendation classification consistency (60.3%). No significant differences were observed between English and Chinese across most LLM-prompt combinations. Bias analysis of inconsistent outcomes revealed a propensity towards more recommended treatments and stronger evidence levels across most LLM-prompt combinations. The characteristics of clinical questions potentially influence LLM performance. This study highlights the limitations in the accuracy of LLM responses to AF-related questions. To gather more comprehensive insights, conducting repeated queries is advisable. Future efforts should focus on expanding the use of diverse prompting strategies, conducting ongoing model evaluation and refinement, and establishing a comprehensive, objective benchmarking system.Keywords
Funding Information
- 1.3.5 Project for Disciplines of Excellence-Clinical Research Incubation Project, West China Hospital of Sichuan University (2023HXFH002, 2023HXFH002, 2023HXFH002, 2023HXFH002, 2023HXFH002, 2023HXFH002)
- Sichuan Science and Technology Program (2024YFFK0046, 2024YFFK0046, 2024YFFK0046, 2024YFFK0046, 2024YFFK0046, 2024YFFK0046)
This publication has 40 references indexed in Scilit:
- Evaluation of LLMs accuracy and consistency in the registered dietitian exam through prompt engineering and knowledge retrievalScientific Reports, 2025
- Benchmarking the performance of large language models in uveitis: a comparative analysis of ChatGPT-3.5, ChatGPT-4.0, Google Gemini, and Anthropic Claude3Eye, 2024
- Polite AI mitigates user susceptibility to AI hallucinationsErgonomics, 2024
- Evaluating prompt engineering on GPT-3.5’s performance in USMLE-style medical calculations and clinical scenarios generated by GPT-4Scientific Reports, 2024
- Prompt engineering in consistency and reliability with the evidence-based guideline for LLMsnpj Digital Medicine, 2024
- ChatGPT-4: An assessment of an upgraded artificial intelligence chatbot in the United States Medical Licensing ExaminationMedical Teacher, 2023
- Artificial Intelligence in Intensive Care Medicine: Toward a ChatGPT/GPT-4 Way?Annals of Biomedical Engineering, 2023
- ChatGPT: not all languages are equalNature, 2023
- AI for life: Trends in artificial intelligence for biotechnologyNew Biotechnology, 2023
- Prevalence and risk of atrial fibrillation in China: A national cross-sectional epidemiological studyThe Lancet Regional Health - Western Pacific, 2022