Skip to main content
Canadian Medical Education Journal logoLink to Canadian Medical Education Journal
. 2023 Dec 30;14(6):128–130. doi: 10.36834/cmej.77644

ChatGPT and medical education: a new frontier for emerging physicians

ChatGPT et l'éducation médicale : une nouvelle frontière pour les médecins émergents

Ethan Waisberg 1,2,, Joshua Ong 3, Mouayad Masalkhi 4, Nasif Zaman 5, Sharif Amit Kamran 5, Prithul Sarker 5, Andrew G Lee 6,7, Alireza Tavakkoli 5
PMCID: PMC10787866  PMID: 38226297

Introduction

Since its release in late November 2022, ChatGPT (Open AI, USA) has rapidly gained attention for its detailed answers and human-like writing ability (Figure 1).1 GPT refers to a generative pre-trained transformer architecture, in which a transformer neural network generates text. ChatGPT is a large language model (LLM) which generates human-like text from deep-learning techniques, in which a large dataset is analyzed to infer the relationship of words. ChatGPT has already been capable of tasks such as generating artificial intelligence (AI algorithms), or generating images based on patient descriptions of complex neuro-ophthamic visual phenomena.2

Figure 1.

Figure 1

Worldwide Google searches for ChatGPT. Since its November 2022 release, searches for ChatGPT and its uses have grown exponentially.

AI is any technique leveraging machines to mimic human intelligence.3 AI technologies are rapidly evolving and are expected to revolutionize the field of medicine. AI can make medicine more efficient and safer when applied correctly: such as with precision medicine, improved diagnostic imaging or preventing medication errors. As these technologies reach clinical use, skills to interpret and use AI in a medical setting will become essential for doctors. The World Medical Association now advocates for the medical curriculum to foster an improved understanding of healthcare AI for medical students.4 This knowledge will allow for a more rapid and informed implementation of AI technologies in the future. As well, physicians must be informed for the potential biases and errors that AI algorithms can produce and how to mitigate these effects.

We asked ChatGPT to advise on how to build an AI to classify optical coherence tomography (OCT) images (Figure 2). As a combined health and computer science team that conducts NASA-funded machine learning research, we examined this recommendation.57 The general recommended steps to design an AI to classify OCT images are correct, which includes: collecting the OCT images, preprocessing data, labelling, splitting, training, testing, refining and deploying the AI.

Figure 2.

Figure 2

Generated from ChatGPT from the text prompt “how can I build an AI to classify OCTs.”

We then asked ChatGPT to code an AI to classify mammography scans (Figure 3).

Figure 3.

Figure 3

Generated from ChatGPT from the text prompt “write code for an AI to analyze mammography scans.”

ChatGPT coded a convolutional neural network with two fully connected layers and four convolutional layers to analyze mammography images and predict whether breast cancer is present in a scan. While this is a sample code and would need further adaptations prior to being implemented clinically, this represents an amazing start for a medical student’s AI journey.

ChatGPT has certain restrictions and drawbacks as an AI language model. Since a large corpus of material, including web pages, books, and other sources, was used to train ChatGPT, it may provide replies that are completely or partially identical to already published writings.

Furthermore, ChatGPT may not have been trained with the most recent data and may provide replies that are inaccurate or outdated. It is also possible that the model will not be able to comprehend the context of a query or discussion, which might result in misunderstandings and mistakes.

Other ChatGPT pitfalls have also been outlined in a previous study; those include self-plagiarism when asked a question many times, and a high degree of direct or “word-for-word” plagiarism from internet sources such as Wikipedia and LinkedIn.1 A number of actions that may be taken in order to prevent or lessen these pitfalls. This includes validating the results obtained from ChatGPT by comparing it with the most up-to-date clinical guidelines/resources, giving more context when posing questions to or conversing with ChatGPT so that the model can better comprehend the context of the query.

Finally, despite the efforts to increase AI teaching worldwide, artificial intelligence is yet to be incorporated in the medical education process. In a study examining the exposure to artificial intelligence in Canadian medical education, 85% of respondents indicated that there was no formal educational opportunities regarding AI.8 All things considered, ChatGPT can potentially be a useful tool in medical education to improve students’ understanding of AI, but employing it beyond educational purposed should be approached with caution.

Funding Statement

Funding

NASA Grant [80NSSC20K183]: A Non-intrusive Ocular Monitoring Framework to Model Ocular Structure and Functional Changes due to Long-term Spaceflight.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  • 1.Alser M, Waisberg E. Concerns with the usage of ChatGPT in academia and medicine: a viewpoint. Am J Med Open. Feb 2023:100036. 10.1016/j.ajmo.2023.100036 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 2.Waisberg E, Ong J, Masalkhi M, et al. Text-to-image artificial intelligence to aid clinicians in perceiving unique neuro-ophthalmic visual phenomena. Ir J Med Sci. Feb 14, 2023. 10.1007/s11845-023-03315-8 [DOI] [PubMed] [Google Scholar]
  • 3.Waisberg E, Ong J, Paladugu P, et al. Challenges of artificial intelligence in space medicine. Space Sci Technol. 2022;2022:1-7. 10.34133/2022/9852872 [DOI] [Google Scholar]
  • 4.World Medical Association . WMA statement on augmented intelligence in medical care. Oct 2019. Available from https://www.wma.net/policies-post/wma-statement-on-augmented-intelligence-in-medical-care/ [Accessed Feb 28, 2023].
  • 5.Waisberg E, Ong J, Kamran SA, et al. Transfer learning as an AI-based solution to address limited datasets in space medicine. Life Sci Space Res. 2023;36:36-38. 10.1016/j.lssr.2022.12.002 [DOI] [PubMed] [Google Scholar]
  • 6.Waisberg E, Ong J, Zaman N, Kamran SA, Lee AG, Tavakkoli A. A non-invasive approach to monitor anemia during long-duration spaceflight with retinal fundus images and deep learning. Life Sci Space Res. 2022;33:69-71. 10.1016/j.lssr.2022.04.004 [DOI] [PubMed] [Google Scholar]
  • 7.Waisberg E, Ong J, Paladugu P, et al. Advances in machine learning to detect preventable causes of blindness. Eye. Dec 10, 2022. 10.1038/s41433-022-02354-2 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Pucchio A, Rathagirishnan R, Caton N, et al. Exploration of exposure to artificial intelligence in undergraduate medical education: a Canadian cross-sectional mixed-methods study. BMC Med Educ. 2022;22(1):815. 10.1186/s12909-022-03896-5 [DOI] [PMC free article] [PubMed] [Google Scholar]

Articles from Canadian Medical Education Journal are provided here courtesy of University of Saskatchewan

RESOURCES