{"title":"Using GenAI to Assess Design Patterns in Student-Written Code","authors":"Daniel-Florin Dosaru;Diana-Maria Simion;Andrei-Horia Ignat;Lorina-Cristina Negreanu;Alexandru-Corneliu Olteanu","doi":"10.1109/TLT.2025.3604054","DOIUrl":null,"url":null,"abstract":"As programming education scales, evaluating student code becomes increasingly challenging. In object-oriented programming (OOP) courses, design patterns are crucial for teaching maintainable reusable solutions that meet industry standards. While traditional automated assessment tools have successfully addressed code correctness and quality, automating the detection of design patterns presents a distinct challenge. Current methods, such as static code analysis combined with graph similarity, have proven effective for library code but often struggle with the variability of student submissions. This article investigates the application of generative artificial intelligence (GenAI) models to improve accuracy in detecting design patterns in student-written code. Our research addresses two key questions: 1) Which of the current GenAI models offer optimal performance, accuracy, and reasoning capabilities for design pattern assessment? and 2) How does a cloud-based Software as a Service solution (such as ChatGPT) compare to a cloudlet solution (local model deployed on the University’s cluster) in terms of reliability and scalability? We assess the effectiveness of these approaches using a representative sample of student assignments specifically crafted to require design pattern implementation. Our findings discuss the educational utility of GenAI in reducing instructors’ grading burdens, enhancing students’ self-assessment opportunities, and its potential to guide industry practitioners in design pattern evaluation. We highlight human-in-the-loop supervision to ensure that GenAI recommendations align with educational standards and advocate for open-source cloudlets as a scalable cost-effective infrastructure for universities. Our study provides guidelines for integrating GenAI into OOP coursework and highlights the implications for teaching, industry applicability, and future research directions.","PeriodicalId":49191,"journal":{"name":"IEEE Transactions on Learning Technologies","volume":"18 ","pages":"869-876"},"PeriodicalIF":7.4000,"publicationDate":"2025-08-29","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"https://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=11144915","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"IEEE Transactions on Learning Technologies","FirstCategoryId":"95","ListUrlMain":"https://ieeexplore.ieee.org/document/11144915/","RegionNum":3,"RegionCategory":"教育学","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q2","JCRName":"COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS","Score":null,"Total":0}
引用次数: 0
Abstract
As programming education scales, evaluating student code becomes increasingly challenging. In object-oriented programming (OOP) courses, design patterns are crucial for teaching maintainable reusable solutions that meet industry standards. While traditional automated assessment tools have successfully addressed code correctness and quality, automating the detection of design patterns presents a distinct challenge. Current methods, such as static code analysis combined with graph similarity, have proven effective for library code but often struggle with the variability of student submissions. This article investigates the application of generative artificial intelligence (GenAI) models to improve accuracy in detecting design patterns in student-written code. Our research addresses two key questions: 1) Which of the current GenAI models offer optimal performance, accuracy, and reasoning capabilities for design pattern assessment? and 2) How does a cloud-based Software as a Service solution (such as ChatGPT) compare to a cloudlet solution (local model deployed on the University’s cluster) in terms of reliability and scalability? We assess the effectiveness of these approaches using a representative sample of student assignments specifically crafted to require design pattern implementation. Our findings discuss the educational utility of GenAI in reducing instructors’ grading burdens, enhancing students’ self-assessment opportunities, and its potential to guide industry practitioners in design pattern evaluation. We highlight human-in-the-loop supervision to ensure that GenAI recommendations align with educational standards and advocate for open-source cloudlets as a scalable cost-effective infrastructure for universities. Our study provides guidelines for integrating GenAI into OOP coursework and highlights the implications for teaching, industry applicability, and future research directions.
期刊介绍:
The IEEE Transactions on Learning Technologies covers all advances in learning technologies and their applications, including but not limited to the following topics: innovative online learning systems; intelligent tutors; educational games; simulation systems for education and training; collaborative learning tools; learning with mobile devices; wearable devices and interfaces for learning; personalized and adaptive learning systems; tools for formative and summative assessment; tools for learning analytics and educational data mining; ontologies for learning systems; standards and web services that support learning; authoring tools for learning materials; computer support for peer tutoring; learning via computer-mediated inquiry, field, and lab work; social learning techniques; social networks and infrastructures for learning and knowledge sharing; and creation and management of learning objects.