Optimizing Diagnostic Performance of ChatGPT: The Impact of Prompt Engineering on Thoracic Radiology Cases
Authors:
Open Access
- 9 May 2024
- journal article
- research article
- Published by Springer Nature in Cureus
- Vol. 16 (5) , e60009
Abstract
Background Recent studies have highlighted the diagnostic performance of ChatGPT 3.5 and GPT-4 in a text-based format, demonstrating their radiological knowledge across different areas. Our objective is to investigate the impact of prompt engineering on the diagnostic performance of ChatGPT 3.5 and GPT-4 in diagnosing thoracic radiology cases, highlighting how the complexity of prompts influences model performance. Methodology We conducted a retrospective cross-sectional study using 124 publicly available Case of the Month examples from the Thoracic Society of Radiology website. We initially input the cases into the ChatGPT versions without prompting. Then, we employed five different prompts, ranging from basic task-oriented to complex role-specific formulations to measure the diagnostic accuracy of ChatGPT versions. The differential diagnosis lists generated by the models were compared against the radiological diagnoses listed on the Thoracic Society of Radiology website, with a scoring system in place to comprehensively assess the accuracy. Diagnostic accuracy and differential diagnosis scores were analyzed using the McNemar, Chi-square, Kruskal-Wallis, and Mann-Whitney U tests. Results Without any prompts, ChatGPT 3.5's accuracy was 25% (31/124), which increased to 56.5% (70/124) with the most complex prompt (P < 0.001). GPT-4 showed a high baseline accuracy at 53.2% (66/124) without prompting. This accuracy increased to 59.7% (74/124) with complex prompts (P = 0.09). Notably, there was no statistical difference in peak performance between ChatGPT 3.5 (70/124) and GPT-4 (74/124) (P = 0.55). Conclusions This study emphasizes the critical influence of prompt engineering on enhancing the diagnostic performance of ChatGPT versions, especially ChatGPT 3.5.Keywords
This publication has 24 references indexed in Scilit:
- Accuracy of Large Language Models in Answering ESUR Guidelines on Contrast Media-Related QuestionsAcademic Radiology, 2024
- The Role of Prompt Engineering in Radiology Applications of Generative AIAcademic Radiology, 2024
- Assessing the diagnostic performance of large language models with European Diploma in Musculoskeletal Radiology (EDiMSK) examination sample questionsJapanese Journal of Radiology, 2024
- Diagnostic Accuracy of Large Language Models in the European Board of Interventional Radiology Examination (EBIR) Sample QuestionsCardioVascular and Interventional Radiology, 2024
- Assessing the Capability of ChatGPT, Google Bard, and Microsoft Bing in Solving Radiology Case VignettesIndian Journal of Radiology and Imaging, 2023
- Radiological Differential Diagnoses Based on Cardiovascular and Thoracic Imaging Patterns: Perspectives of Four Large Language ModelsIndian Journal of Radiology and Imaging, 2023
- ChatGPT: A brief narrative reviewCogent Business & Management, 2023
- Performance evaluation of ChatGPT, GPT-4, and Bard on the official board examination of the Japan Radiology SocietyJapanese Journal of Radiology, 2023
- Comparison of the Diagnostic Performance from Patient’s Medical History and Imaging Findings between GPT-4 based ChatGPT and Radiologists in Challenging Neuroradiology CasesmedRxiv, 2023
- Large language models in medicineNature Medicine, 2023