Skip to main content
Canadian Urological Association Journal logoLink to Canadian Urological Association Journal
. 2025 Feb 24;19(6):182–187. doi: 10.5489/cuaj.9020

Use of artificial intelligence-generated multiple-choice questions for the examination of surgical subspecialty residents

Report of feasibility and psychometric analysis

Jin Kyu Kim 1,2,✉, Michael E Chua 1,2, Armando J Lorenzo 1,2, Mandy Rickard 2, Laura Andreacchi 1, Michael Kim 1, Douglas Cheung 1, Yonah Krakowsky 1,3, Jason Y Lee 1,4
PMCID: PMC12158464  PMID: 40031953

Abstract

INTRODUCTION

Multiple-choice questions (MCQs) are essential in medical education and widely used by licensing bodies. They are traditionally created with intensive human effort to ensure validity. Recent advances in artificial intelligence (AI), particularly large language models (LLMs), offer the potential to streamline this process. This study aimed to develop and test a GPT-4 model with customized instructions for generating MCQs to assess urology residents.

METHODS

A GPT-4 model was embedded using guidelines from medical licensing bodies and reference materials specific to urology. This model was tasked with generating MCQs designed to mimic the format and content of the 2023 urology examination outlined by the Royal College of Physicians and Surgeons of Canada (RCPSC). Following generation, a selection of MCQs underwent expert review for validity and suitability.

RESULTS

From an initial set of 123 generated MCQs, 60 were chosen for inclusion in an exam administered to 15 urology residents at the University of Toronto. The exam results demonstrated a general increasing performance with level of training cohorts, suggesting the MCQs’ ability to effectively discriminate knowledge levels among residents. The majority (33/60) of the questions had discriminatory value that appeared acceptable (discriminatory index 0.2–0.4) or excellent (discriminatory index >0.4).

CONCLUSIONS

This study highlights AI-driven models like GPT-4 as efficient tools to aid with MCQ generation in medical education assessments. By automating MCQ creation while maintaining quality standards, AI can expedite processes. Future research should focus on refining AI applications in education to optimize assessments and enhance medical training and certification outcomes.

INTRODUCTION

Multiple-choice questions (MCQs) have been widely used for testing across many disciplines.1 In urology, along with most other medical specialties, examination for board certification and licensure in North America relies on this type of testing.2,3

Creating a well-formulated MCQ is a difficult task, especially for use in high-level and high-stake examinations such as medical licensure;4 however, there are principles to creating suitable MCQs in the context of medical licensing exams;5,6 these principles include having a clear leadin question that is of appropriate difficulty with clinically relevant scenarios, adequate testing application of medical knowledge, and generating fair distractors.

The task of generating MCQs demands qualified individuals spend several hours formulating such questions and discussing their validity;7 however, with the “rules” available to make appropriate MCQs, artificial intelligence (AI), specifically large language models (LLMs) such as ChatGPT, may be instructed to create questions per these regulations. Previous studies have shown the utility and limitations of LLMs in medical education, including generating and answering MCQs across various disciplines.8 Moreover, with the advent of newer AI models that can analyze the contents of files such as PDF, LLMs can now access additional knowledge to support the creation of MCQ with reliable content.

Herein, we report on the creation of high-level MCQs using a GPT-4 model with customized instructions to test the knowledge of urology residents.

METHODS

Following institutional research ethics board approval (#1000081309), a GPT-4 model using ChatGPT-4 from OpenAI (openai.com) was created. Specific instructions were to create MCQs based on established guidelines on how to write well-designed MCQ items, available from the Royal College of Physicians and Surgeons of Canada (RCPSC) and the National Board of Medical Examiners (NBME®). Custom instructions included rules for MCQ building, recommendations for drafting good stems and lead-ins, description of suitable distractors, and number of options, which was limited to four (Appendix A; available at cuaj.ca).

The customized model was provided with a PDF of publicly available guidelines and reference study materials according to the 2023 RCPSC urology examination. Through retrieval-augmented generation (RAG), LLMs such as GPT-4 extract relevant text data from uploaded documents to generate responses. In RAG, the model retrieves information from external documents and combines it with its existing knowledge base to create more contextually accurate outputs. This approach enables the model to use specific, credible sources, thereby ensuring that the generated MCQs are well-aligned with current guidelines.9

We included Canadian Urological Association (CUA) clinical guidelines, CUA best practice reports, and CUAJ review articles (example sample question creation: https://chatgpt.com/share/45e7bab5-d942-4c21-9ebd-3742de166a7d; for this specific question, CUA guideline for neurogenic lower urinary tract dysfunction was uploaded to LLM chat).10 While not explicitly stated as a reference study material by RCPSC, European Association of Urology (EAU) guidelines were also used. The American Urological Association (AUA) guidelines were not included due to a new policy enforcing restrictions on AUA-related content exposure to LLM models.

Generated MCQs were screened by one or more Royal College-certified author(s) for content validity. Questions of appropriate difficulty were identified and a randomly selected 60-question MCQ exam was created, with its contents mimicking the anticipated proportion of question topics as the 2023 RCPSC urology exam. This exam was distributed among urology residents training at the University of Toronto in a monitored setting.

The proportion of questions answered correctly was evaluated by year of training and topic for psychometric analysis, which included difficulty assessment, discriminatory index calculation (formula defined as % correct by top 27th percentile performers minus % correct by bottom 27th percentile performers; top/bottom 27th percentile cutoff were used per previously established conventional cutoff for high- and low-performers in literature), and functional distractor evaluation (defined as options chosen by >5% of participants).11–13

Privacy concerns surrounding LLM use was addressed by opting out of model training based on contents provided by the user account, as well as using the ChatGPT Team account, on which OpenAI guarantees privacy without training based on uploaded content.14

RESULTS

Exam construction

A total of 123 sample questions were generated using our GPT-4 model. Following screening, six questions (4.9%) had undergone modifications per at least one screener’s suggestion due to possible ambiguity of clinical scenario (3/6, 50%) or answer choices (3/6, 50%). The remaining 117 questions appeared suitable for testing, with good construct validity. (Questions requiring modifications to improve ambiguity are shown in Supplementary Table 1; available at cuaj.ca.)

Of the 123 questions, 60 were chosen for testing by the author group. Questions were selected based on topic distribution suggested by the 2023 RCPSC urology exam and randomly chosen within our bank of 123 questions. The proportion of topics in this exam are summarized in Figure 1 and the examined questions are shown in Supplementary Table 1 (available at cuaj.ca).

Figure 1.

Figure 1

Breakdown of proportion of examination content (percentages within brackets are the suggested proportion of questions according to the 2023 Royal College urology exam).

Participants

Fifteen urology residents training at the University of Toronto were tested using the GPT-4-generated MCQ exam on June 7, 2024. Tested cohorts were from postgraduate years (PGY) 1–4, near the end of their academic year (July 1, 2023 to June 30, 2024). The median score was 37/60 (range 31–44).

Five PGY1s wrote the exam; among this cohort, two were international medical graduates (IMG) who had already completed urology residency training in another country before joining our PGY1 cohort and were evaluated separately from their non-IMG peers. In addition, three PGY2s, four PGY3s, and three PGY4s wrote the exam. PGY5s were not tested, as they already completed their RCSPC examination and contributed to screening the questions.

Psychometric analysis

Among the questions, 21 were deemed difficult, with a <50% correct response rates. In contrast, 14 questions were deemed easy, with >80% correct response rates.

The discriminatory index was calculated for each question. Twenty-seven questions (45%) had poor discriminatory value (<0.2) and 33 questions 65% had acceptable or excellent discriminatory values (20 acceptable [0.2–0.4], 13 excellent [>0.4]).

There were 98 functional distractors (98/180, 54%), with >5% selection rates from participants. There was poor correlation with number of functional distractors and discriminatory index of a question. (Pearson r=0.150) (Supplementary Figure 1; available at cuaj.ca).

When evaluating the percentage of correct replies per topic, residents performed well on pediatrics, trauma/fistula, and basic sciences, with >70% average score. In contrast, they performed poorly on transplantation/nephrology/renovascular disease, diagnostic imaging, infection/inflammation, and neurology/voiding dysfunction, with <60% correct rate (Figure 2).

Figure 2.

Figure 2

Summary of the proportion of questions correct per topic.

There was no significant correlation between the discriminatory index and the proportions of correct questions in each topic; however, there was a significant correlation between the median functional distractors per topic and the proportion of questions correct per topic (Pearson r=−0.759, p=0.004) (Supplementary Table 2; available at cuaj.ca).

Exam results

The scores per cohort showed progressive improvement based on the level of training (Figure 3A, Table 1). The PGY1 IMGs, with more experience than their peers, had scores comparable to the senior residents. While PGY3s performed very well, the PGY4s performed with less variation in their scores. When excluding MCQs with poor discriminatory index, there was a noticeable stepwise increase in scores with progressing PGY level (Figure 3B).

Figure 3.

Figure 3

Summary of raw scores per postgraduate year training cohort: (A) summary of results for all questions (n=60); (B) summary of results for questions with acceptable and high discriminatory value (n=33).

Table 1.

Summary of test results

Results (all questions)
Year of training Median score (out of 60) 25th percentile 75th percentile

PGY1 33 32.5 35

PGY1 IMG 37.5 37.25 37.75

PGY2 35 34 38

PGY3 38.5 34.75 41.75

PGY4 38 37 40

Results (with poor discriminatory index questions removed)
Year of training Median score (out of 33) 25th percentile 75th percentile

PGY1 17 16.5 19.5

PGY1 IMG 20.5 20.25 20.75

PGY2 20 18 24

PGY3 22 25.75 19

PGY4 23 22 27

IMG: international medical graduate; PGY: postgraduate year.

DISCUSSION

Until now, LLMs have been primarily used to answer MCQs to assess performance on standardized exams. Recent GPT-4 models have performed remarkably well on standardized examination questions, suggesting they can be well-trained on various topics, including medicine. 15 The accuracies are often reported to be beyond the passing score of 70% across several disciplines.16–19 This suggests that LLMs, such as ChatGPT, have significant contextual data and can create clinically relevant and reasonable questions for examinees.

We have seen improved performance of LLMs in examinations specific to urology, although still inferior to top-performing human counterparts.20,21 There are preliminary reports on the use of GPT-4 to create MCQs to test surgical subspecialty residents; however, these studies did not customize the GPT-4 model with specific instructions around MCQ building, nor did they provide appropriate reference materials. This led to increased susceptibility to “hallucination” and poorer question quality, with only 25% of their questions reaching discriminatory index value of >0.2.22

To our knowledge, ours is the first study to create high-level MCQs designed for testing medical subspecialty residents and evaluate the feasibility of implementing this in a formal examination setting.

Our study showed that the exam did have some discriminatory value in evaluating the knowledge of urology residents based on their training year. Due to the small number of participants, evaluation of statistical differences among cohorts was not performed.

Some improvements can be made. There were nine questions (15%) on the exam that were of limited utility in evaluating resident knowledge, as there was 100% or 0% correct rates, with 45% of questions having poor discrimination. Moreover, some topics were more difficult than others, likely due to the higher proportion of functional distractors present in questions covering those topics. As there were fewer numbers of questions on some of these topics, caution is needed to interpret resident knowledge based on these questions alone; however, this may also reflect the design of the residency program exposure (early exposure to pediatric rotations, surgical foundations, and trauma rotation as a PGY1/2 leading to higher marks).

Additional evaluation of “difficult” and “easy” questions showed that more difficult questions were testing concepts not frequently encountered or tested during clinical settings, such as pheochromocytoma followup and different catheter types. Despite this, most of the questions were acceptable or excellent in discriminatory index classification, suggesting there may be great value in using LLMs to support MCQ creation.

This is further corroborated when evaluating performance based on questions with acceptable or excellent discriminatory value. There is a clear trend toward higher scores in the more senior cohort; while PGY3s performed better than the PGY4s on average, there was less variation across PGY4 marks, suggesting that as a complete cohort, they may be better prepared compared to the PGY3s.

Drafting MCQs for examination is a complex process and there are measures by organizations, such as the American Board of Urology, to experiment with a proportion of their MCQ exam to safeguard question quality. It is undisclosed how many such questions become testable questions in the future, but our custom GPT performed well in creating a good mix of easy, moderate, and difficult questions.23

The correlation analysis reveals key factors that contribute to both the difficulty of a question and its discriminatory power. A strong negative correlation (−0.78) between the percentage of correct responses and the number of functional distractors suggests that questions with more effective distractors are generally harder, as fewer respondents can choose the correct answer. Regarding discriminatory power, the data indicate that the number of functional distractors has a positive correlation (0.15) with the discriminatory index, suggesting that questions with more plausible distractors are better at distinguishing between high- and low-performing respondents. The relatively weak correlations between the discriminatory index and other factors, such as the percentage of correct responses (−0.15), indicate that the ability of a question to discriminate between performance levels is not solely dependent on how many people answer correctly, but rather on the quality of the distractors.

Future LLMs used for this purpose should be modified to ensure that at least one or more plausible distractors are included in its options (with or without the help of humans) to enhance its discriminatory index. Moreover, this may be an opportunity to study the functional distractors that are frequently chosen by residents to identify potential common misconceptions and create tailored educational content. By augmenting LLMs to assess individual trainee weaknesses, we can potentially create a system that generates personalized questions to address these gaps.

Barriers to using presented GPT-4-based models in the future include the low custom GPT-4 use by non-subscribers to OpenAI’s ChatGPT service. There have also been privacy concerns with LLMs, with models being trained on subscription or propriety content without permission. In the era of AI and LLMs, there have been increasing efforts to protect propriety data. The AUA, whose guideline contents are also testable resources according to the RCPSC, released a recent policy that their contents should not be uploaded to LLMs without permission.

The results of our study suggest that the creation of useable MCQs can be made significantly less cumbersome with LLMs. Thus, agencies that may benefit from such increased efficiency should aim to develop partnerships with those with expertise in LLM, as well as organizations that have propriety content of interest to ensure the creation of appropriate MCQs without a breach of privacy policies.

Limitations

There are several limitations to this investigation. While it shows the feasibility of LLM use in the creation of useable and high-quality MCQs for subspecialty resident examination, this evaluation was performed on a small cohort of 15 individuals from a single residency program in Canada. Further internal and external validity for ongoing reliable use of such tools is necessary prior to routine use.

Moreover, this investigation did not include the graduating cohort of PGY5s, who have already passed their licensing examination and would be the ideal gold standard to assess whether the exam is representative of the RCPSC urology examination. There may also be a selection bias with the questions chosen; however, we aimed to minimize this by selecting the questions randomly from the database of questions deemed appropriate by screeners.

Furthermore, when using a LLM, one must be aware of how it was trained and developed.24 While it is uncertain what training data GPT-4 models had access to, we augmented our custom GPT with reliable resources. Moreover, RAG is a complex process that relies on the model to locate and extract the most pertinent information in a vast array of data, which is particularly challenging due to the “needle-in-a-hay-stack” nature of identifying the most relevant information from extensive data sources. It has been shown that LLMs may miss information, especially when the provided content is longer.25 Nonetheless, we suspect that LLMs’ capacity to perform RAG will continue to improve with advanced techniques such as improved indexing, relevance ranking, and context-aware retrieval strategies.9,26

As the use of AI in medical education becomes increasingly common, there may be benefits in collaboration with computer scientists and AI experts to evolve our methodology and create higher-level use of LLMs through computer programming. We hope to continue validating our tool in our residency program cohorts, as well as in other institutions for external validation.

CONCLUSIONS

This study highlights the feasibility and utility of AI-driven models, such as GPT-4, in the creation of MCQs for medical education and assessment. By leveraging AI, the process of MCQ generation can be expedited while maintaining standards of validity and relevance. One should be cognizant of ethics around the use of LLMs and ensure questions are developed from reliable sources. Future research could further explore and refine AI applications in educational assessment, potentially revolutionizing the efficiency and effectiveness of medical training and certification examinations.

KEY MESSAGES.

  • ■ A GPT-4 model trained using urology-related guidelines and reference materials produced 123 MCQs; 60 were used for a formal exam administered to residents in various postgraduate years.

  • ■ Results showed a correlation between resident performance and level of training, with a noticeable progression of scores by cohort. The study also analyzed the difficulty, discriminatory power, and effectiveness of distractors in the questions.

  • ■ AI-driven models like GPT-4 can enhance the efficiency of MCQ creation for medical exams while maintaining question quality, although ethical considerations and further validation are essential for implementation.

Supplementary Information

9020_Appendix.pdf (239.2KB, pdf)

Footnotes

Appendix available at cuaj.ca

See related commentary on page 188

COMPETING INTERESTS: Dr. Krakowsky has participated in advisory boards for Acerus, Felix Pharma, and Viatris; is a speakers’ bureau member for Humber River Hospital; and has received grants/honoraria from Coloplast. Dr. Lee has received consulting/speaker fees from Medtronic. The remaining authors do not report any competing personal or financial interests related to this work.

REFERENCES

  • 1.National Education Association. History of standardized testing in the United States. NEA; 2020. [Accessed June 6, 2024]. Available at: https://www.nea.org/resource-library/history-standardized-testing-united-states. [Google Scholar]
  • 2.Royal College of Physicians and Surgeons of Canada. Multiple-choice question (MCQ) format information. Royal College of Physicians and Surgeons of Canada; 2019. [Accessed June 6, 2024]. Available at: https://www.royalcollege.ca/en/credentials-exams/assessment-documents/multiple-choice-question-format-information.html. [Google Scholar]
  • 3.American Board of Urology. Qualifying (Part 1) exam content. American Board of Urology; [Accessed June 6, 2024]. Available at: https://abu.org/certification/qualifying-examination/exam-content. [Google Scholar]
  • 4.Javaeed A. Assessment of higher ordered thinking in medical education: Multiple-choice questions and modified essay questions. MedEdPublish. 2018;7:128. doi: 10.15694/mep.2018.0000128.1. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 5.Royal College of Physicians and Surgeons of Canada. Guidelines for the development of multiple-choice questions. Royal College of Physicians and Surgeons of Canada; 2008. [Accessed June 6, 2024]. Available at: https://www.canadiancriticalcare.org/resources/Documents/GuidelinesforDevelopmentMCQRoyalCollege.pdf. [Google Scholar]
  • 6.National Board of Medical Examiners (NBME) NBME; [Accessed June 6, 2024]. [Accessed June 6, 2024]. Item writing guide. Available at. https://www.ucns.org/common/Uploaded%20files/Help/NBME%20Item%20Writing%20Guide.pdf . [Google Scholar]
  • 7.Jørgensen M, Savran MM, Christakopoulos C, et al. Development and validation of a multiple-choice questionnaire-based theoretical test in direct ophthalmoscopy. Acta Ophthalmol. 2019;97:700–6. doi: 10.1111/aos.14065. [DOI] [PubMed] [Google Scholar]
  • 8.Cheung BHH, Lau GKK, Wong GTC, et al. ChatGPT versus human in generating medical graduate exam multiple-choice questions—a multinational prospective study (Hong Kong S.A.R., Singapore, Ireland, and the United Kingdom) PLoS One. 2023;18:e0290691. doi: 10.1371/journal.pone.0290691. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Lewis P, Perez E, Piktus A, et al. Retrieval-augmented generation for knowledge-intensive NLP tasks. Adv Neural Inf Process Syst. 2020;33:9459–74. [Google Scholar]
  • 10.Kavanagh A, Baverstock R, Campeau L, et al. Canadian Urological Association guideline: diagnosis, management, and surveillance of neurogenic lower urinary tract dysfunction— full text. Can Urol Assoc J. 2019;13:E157–76. doi: 10.5489/cuaj.5912. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Rezigalla AA, Eleragi AMESA, Elhussein AB, et al. Item analysis: The impact of distractor efficiency on the difficulty index and discrimination power of multiple-choice items. BMC Med Educ. 2024;24:445. doi: 10.1186/s12909-024-05433-y. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 12.Kumar D, Jaipurkar R, Shekhar A, et al. Item analysis of multiple-choice questions: a quality assurance test for an assessment tool. Med J Armed Forces India. 2021;77:S85–9. doi: 10.1016/j.mjafi.2020.11.007. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13.Tarrant M, Ware J, Mohammed AM. An assessment of functioning and non-functioning distractors in multiple-choice questions: A descriptive analysis. BMC Med Educ. 2009;9:40. doi: 10.1186/1472-6920-9-40. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.OpenAI. How your data is used to improve model performance. OpenAI Help Center; [Accessed June 6, 2024]. Available at: https://help.openai.com/en/articles/5722486-how-your-data-is-used-to-improve-model-performance. [Google Scholar]
  • 15.Newton P, Xiromeriti M. ChatGPT performance on multiple-choice question examinations in higher education: A pragmatic scoping review. Assess Eval High Educ. 2024:1–18. doi: 10.1080/02602938.2023.2299059. [DOI] [Google Scholar]
  • 16.Alexandrou M, Mahtani AU, Rempakos A, et al. Performance of ChatGPT on ACC/SCAI interventional cardiology certification simulation exam. JACC Cardiovasc Interv. 2024;17:1292–3. doi: 10.1016/j.jcin.2024.03.012. [DOI] [PubMed] [Google Scholar]
  • 17.Alessandri-Bonetti M, Liu HY, Donovan JM, et al. A comparative analysis of ChatGPT, ChatGPT-4, and Google Bard performances at the Advanced Burn Life Support Exam. J Burn Care Res. 2024 doi: 10.1093/jbcr/irae044. [DOI] [PubMed] [Google Scholar]
  • 18.Rojas M, Rojas M, Burgess V, et al. Exploring the performance of ChatGPT versions 3.5, 4, and 4 with vision in the Chilean Medical Licensing Examination: Observational study. JMIR Med Educ. 2024;10:e55048. doi: 10.2196/55048. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 19.Abbas A, Rehman MS, Rehman SS. Comparing the performance of popular large language models on the National Board of Medical Examiners sample questions. Cureus. 2024;16:e55991. doi: 10.7759/cureus.55991. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Sherazi A, Canes D. Comprehensive analysis of the performance of GPT-3.5 and GPT-4 on the American Urological Association self-assessment study program exams from 2012–2023. Can Urol Assoc J. 2023 doi: 10.5489/cuaj.8526. Epub ahead of print. [DOI] [PubMed] [Google Scholar]
  • 21.Touma NJ, Caterini J, Liblk K. Performance of artificial intelligence on a simulated Canadian urology board exam: Is ChatGPT ready for primetime? Can Urol Assoc J. 2024;18:329–32. doi: 10.5489/cuaj.8800. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22.Touma NJ, Skinner T, Leveridge M, et al. Artificial intelligence as a discriminator of competence in urologic training: Are we there? J Urol. 2024 doi: 10.1097/JU.0000000000004453. Epub ahead of print. [DOI] [PubMed] [Google Scholar]
  • 23.The American Board of Urology. Qualifying (Part 1) exam content. The American Board of Urology; 2024. [Accessed June 25, 2024]. Available at: https://www.abu.org/certification/qualifying-examination/exam-content. [Google Scholar]
  • 24.Kim JK, Chua M, Rickard M, et al. ChatGPT and large language model (LLM) chatbots: The current state of acceptability and a proposal for guidelines on utilization in academic medicine. J Pediatr Urol. 2023;19:598–604. doi: 10.1016/j.jpurol.2023.05.018. [DOI] [PubMed] [Google Scholar]
  • 25.Chaudhury S, Dan S, Das P, et al. Needle in the haystack for memory-based large language models. arXiv preprint arXiv:2407.01437. 2024 [Google Scholar]
  • 26.Karpukhin V, Oğuz B, Min S, et al. Dense passage retrieval for open-domain question answering. 2020 doi: 10.18653/v1/2020.emnlp-main.550. [DOI] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

9020_Appendix.pdf (239.2KB, pdf)

Articles from Canadian Urological Association Journal are provided here courtesy of Canadian Urological Association

RESOURCES