Leveraging Large Language Models for Automated Scoring of Open-Ended Questions in Educational Assessment: A Case Study of Obafemi Awolowo University
Abstract
Assessment is crucial in education as it quantifies learning outcomes and offers feedback that informs instructional practices. The evaluation of open-ended responses remains challenging due to issues of subjectivity, inconsistency, and the extensive time required for manual assessment. The predominant Computer-Based Testing (CBT) systems at Obafemi Awolowo University focus primarily on objective questions and lack mechanisms to assess essay-style responses that evaluate higher-order skills such as critical thinking and reasoning. This study addressed the gap by developing an enhanced CBT system that utilises Large Language Models (LLMs) for the automatic grading of open-ended questions. The system incorporates a Kotlin-based frontend, a NestJS backend, MongoDB and Redis for data management, and GPT-4 for AI-powered grading. Human-assigned scores served as benchmarks for the data derived from undergraduate students essay responses in CSC507 (Computers in Society). The Root Mean Square Error (RMSE) of 2.23 indicated strong numerical alignment, while the Quadratic Weighted Kappa (QWK) score of 0.71 reflected substantial agreement and fairness across score levels. The findings indicated that integrating GPT-4 into computer-based testing enhanced its utility beyond multiple-choice assessments by enabling precise, effective, and comprehensible grading of open-ended responses. The study demonstrated that LLM-powered systems can enhance the scalability and transparency of educational assessment in higher education, improve grading consistency, and reduce lecturers workload.