Evaluating the Efficacy of ChatGPT in Navigating the Spanish Medical Residency Entrance Examination (MIR): Promising Horizons for AI in Clinical Medicine

Paul Barach, Inés Aguinaga-Ontoso, Sara Guillén-Aguinaga, Laura Guillén-Aguinaga, Rosa Alas-Brun, Francisco Guillén‐Grima, Luc Onambele, Wilfrido Ortega, Rocío Montejo, Enrique Aguinaga-Ontoso
2023-11-20

SCID:  54.1/z73dwsn5
The rapid progress in artificial intelligence, machine learning, and natural language processing has led to increasingly sophisticated large language models (LLMs) for use in healthcare. This study assesses the performance of two LLMs, the GPT-3.5 and GPT-4 models, in passing the MIR medical examination for access to medical specialist training in Spain. Our objectives included gauging the model's overall performance, analyzing discrepancies across different medical specialties, discerning between theoretical and practical questions, estimating error proportions, and assessing the hypothetical severity of errors committed by a physician. MATERIAL AND METHODS: We studied the 2022 Spanish MIR examination results after excluding those questions requiring image evaluations or having acknowledged errors. The remaining 182 questions were presented to the LLM GPT-4 and GPT-3.5 in Spanish and English. Logistic regression models analyzed the relationships between question length, sequence, and performance. We also analyzed the 23 questions with images, using GPT-4's new image analysis capability. RESULTS: = 0.250). Among medical specialties, GPT-4 achieved a 100% correct response rate in several areas, and the Pharmacology, Critical Care, and Infectious Diseases specialties showed lower performance. The error analysis revealed that while a 13.2% error rate existed, the gravest categories, such as "error requiring intervention to sustain life" and "error resulting in death", had a 0% rate. CONCLUSIONS: GPT-4 performs robustly on the Spanish MIR examination, with varying capabilities to discriminate knowledge across specialties. While the model's high success rate is commendable, understanding the error severity is critical, especially when considering AI's potential role in real-world medical practice and its implications for patient safety.
Publication Details
Publication Date
2023-11-20
Journal
Publisher
ISSN
Access Type
Author Information
Authors
Paul Barach
Inés Aguinaga-Ontoso
Sara Guillén-Aguinaga
Laura Guillén-Aguinaga
Rosa Alas-Brun
Francisco Guillén‐Grima
Luc Onambele
Wilfrido Ortega
Rocío Montejo
Enrique Aguinaga-Ontoso
Explore More Research
Use the citation graph to discover related papers and expand your research horizons.
Click any node to explore
Download PDF
100%