Using GenAI to Assess Design Patterns in Student-Written Code

IF 7.4 3区 教育学 Q2 COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS
Daniel-Florin Dosaru;Diana-Maria Simion;Andrei-Horia Ignat;Lorina-Cristina Negreanu;Alexandru-Corneliu Olteanu
{"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.
使用GenAI来评估学生编写的代码中的设计模式
随着编程教育规模的扩大,评估学生的代码变得越来越具有挑战性。在面向对象编程(OOP)课程中,设计模式对于教授符合行业标准的可维护、可重用的解决方案至关重要。虽然传统的自动化评估工具已经成功地解决了代码的正确性和质量问题,但是设计模式的自动化检测提出了一个明显的挑战。目前的方法,如结合图形相似性的静态代码分析,已被证明对库代码有效,但经常与学生提交的可变性作斗争。本文研究了生成式人工智能(GenAI)模型的应用,以提高在学生编写的代码中检测设计模式的准确性。我们的研究解决了两个关键问题:1)当前哪种GenAI模型为设计模式评估提供了最佳的性能、准确性和推理能力?2)基于云的软件即服务解决方案(如ChatGPT)在可靠性和可扩展性方面与cloudlet解决方案(部署在大学集群上的本地模型)相比如何?我们使用一个典型的学生作业样本来评估这些方法的有效性,这些作业是专门为要求设计模式实现而精心设计的。我们的研究结果讨论了GenAI在减轻教师评分负担、增加学生自我评估机会以及指导行业从业者进行设计模式评估方面的教育效用。我们强调人在循环的监督,以确保GenAI建议与教育标准保持一致,并倡导开源云作为大学可扩展的经济高效的基础设施。我们的研究提供了将GenAI整合到面向对象课程中的指导方针,并强调了对教学、行业适用性和未来研究方向的影响。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
求助全文
约1分钟内获得全文 求助全文
来源期刊
IEEE Transactions on Learning Technologies
IEEE Transactions on Learning Technologies COMPUTER SCIENCE, INTERDISCIPLINARY APPLICATIONS-
CiteScore
7.50
自引率
5.40%
发文量
82
审稿时长
>12 weeks
期刊介绍: 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.
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信
小红书