Abstract
Background: The impact of prompt engineering in large language models (LLMs) on text-based questions has shown variability, whereas its influence on image-based diagnostic tasks remains largely unexplored. Purpose: This study aims to evaluate the diagnostic performance of various prompts in GPT-4 for the assessment of renal cystic masses (CRMs) using contrast-enhanced ultrasound (CEUS) Bosniak classification and to test the ability of ChatGPT-4 prompts to assist radiologists with different experience levels. Materials and Methods: This retrospective study included 103 images of CRMs from patients who underwent CEUS and CT. GPT-4 and six radiologists (three experts and three novices) were independently tasked with assigning the Bosniak classification (BC) based on original CEUS images. Radiologists then reassessed images after viewing GPT-4's prompt-generated BCs. Diagnostic performance was quantified using the area under the receiver operating characteristic curve (AUC). Results: GPT-4 prompts achieved AUCs from 0.549 to 0.778. Reflection of Thoughts (ROT) prompting achieved the highest AUC (0.778), comparable to novices (0.820, P = 0.39). ROT prompting significantly improved novice AUCs (e.g., from 0.714 to 0.834), allowing them to approach expert-level performance. Conclusion: GPT-4 with ROT prompting can aid novices in improving their diagnostic performance to an expert level.
Introduction
Cystic renal masses (CRMs) are a common clinical finding, appearing in over half of the population over age 70. Accurate classification using the Bosniak system is essential for determining whether a patient requires surgical intervention or can be managed with observation. While Contrast-Enhanced Ultrasound (CEUS) provides high-resolution imaging for this task, interpretation is often subjective and dependent on the radiologist's experience. Novice radiologists frequently face challenges in distinguishing between benign and malignant cysts, a gap that this study seeks to bridge using artificial intelligence.
Methods and Prompt Engineering
The study analyzed 103 CRM cases (50 benign, 53 malignant) confirmed by pathology or long-term follow-up. The researchers evaluated seven distinct prompting strategies to optimize GPT-4's diagnostic output. These strategies ranged from simple direct instructions to complex multi-step reasoning frameworks.
The most sophisticated strategy, Reflection of Thoughts (ROT), simulates a collaborative environment where the model acts as multiple experts debating a case to reach a self-corrected consensus. Following the AI's independent assessment, three expert and three novice radiologists reviewed the images, first independently and then with the assistance of the ROT-generated classifications.
Key Insights
- Prompting as a Performance Driver: The study demonstrated that the "software" of LLMs—the prompt—is as critical as the underlying model. Simple prompts yielded poor results, while structured reasoning significantly enhanced diagnostic accuracy.
- The "Digital Consultant" Model: GPT-4 did not replace human experts. Instead, it functioned as a force multiplier for less experienced clinicians, providing a structured "second opinion."
- Bridging the Proficiency Gap: The most significant finding was the elimination of the statistical performance gap between novices and experts when novices were supported by the ROT prompt.
Results
The ROT prompting strategy emerged as the superior method, achieving an AUC of 0.778. While this was lower than the baseline for expert radiologists (AUC 0.901), it was statistically comparable to the baseline performance of novices (AUC 0.820).
Crucially, when novices integrated the AI's suggestions into their workflow, their diagnostic performance improved markedly. For instance, Novice 1's AUC rose from 0.714 to 0.834. This improvement allowed novices to achieve results that were not statistically different from the experts' initial performance, effectively elevating them to expert-level accuracy.
Limitations and Future Directions
While promising, the study has limitations. GPT-4 analyzed static images rather than the dynamic video clips typically used in clinical CEUS. Furthermore, the AI lacked access to broader clinical context, such as patient history. Future research should focus on integrating multi-modal data and testing these prompting strategies across multiple institutions to ensure robustness.
Conclusion
Prompt engineering, specifically the Reflection of Thoughts strategy, transforms GPT-4 into a powerful decision-support tool. By providing structured reasoning and self-reflection, AI can help novice radiologists navigate complex diagnostic tasks, ensuring higher standards of care and more accurate management of cystic renal masses.
Summary updated