Validation of the Use of a Large Language Model for Detecting Sentiment in Student Course Evaluation
Year: 2026
Type: article
Abstract: BACKGROUND AND OBJECTIVES: The use of large language models and natural language processing (NLP) in medical education has expanded rapidly in recent years. Because of the documented risks of bias and errors, these artificial intelligence (AI) tools must be validated before being used for research or education. Traditional and novel conceptual frameworks can be used. This study aimed to validate the application of an NLP method, bidirectional encoder representations from transformers (BERT) model, to identify the presence and patterns of sentiment in end-of-course evaluations from M3 (medical school year 3) core clerkships at multiple institutions. METHODS: We used the Patino framework, designed for the use of artificial intelligence in health professions education, as a guide for validating the NLP. Written comments from de-identified course evaluations at four schools were coded by teams of two human coders, and human-human interrater reliability statistics were calculated. Humans identified key terms to train the BERT model. The trained BERT model predicted the sentiments of a set of comments, and human-NLP interrater reliability statistics were calculated. RESULTS: A total of 364 discrete comments were evaluated in the human phase. The range of positive (30.6%-61.0%), negative (4.9%-39.5%), neutral (9.8%-19.0%), and mixed (1.7%-27.5%) sentiments varied by school. Human-human and human-AI interrater reliability also varied by school. Human-human and human-AI reliability were comparable. CONCLUSIONS: Several conceptual frameworks offer models for validation of AI tools in health professions education. A BERT model, with training, can detect sentiment in medical student course evaluations with an interrater reliability similar to human coders.
Source: Family Medicine
Authors: Kate Rowland, Ling Wang, Kirstie Bash, Lori DeShetler, Sarah Vick, Emma Nguyen, Michelle Rogers-Johnson, Lauren Anderson, Michelle Sweet, Kimberly Fasula, Stefanie Carter
Institutions: Rush University Medical Center, Michigan State University, University of Nebraska Medical Center, University of Toledo, University of Kentucky, University of Kansas, Eastern Virginia Medical School, Old Dominion University, Rosalind Franklin University of Medicine and Science, Nova Southeastern University
Language: English
Subfield: Artificial Intelligence
Field: Computer Science
Domain: Physical Sciences
Open Access status: diamond
OpenAlex ID: W7128727389
