Using GenAI to Assess Design Patterns in Student-Written Code

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 paper 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 (SaaS) (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 GenAI recommendations align with educational standards and advocate for open-source cloudlets as 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.

Authors

Institutions

Publication Details

Journal
IEEE Transactions on Learning Technologies
Published
2025-01-01
DOI
https://doi.org/10.1109/tlt.2025.3604054
Citations
1
Primary Topic
Software Engineering Techniques and Practices
Type
article
Field-Weighted Citation Impact
3.25
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Using GenAI to Assess Design Patterns in Student-Written Code

Lorina Negreanu, Alexandru-Corneliu Olteanu, Daniel-Florin Dosaru, Diana-Maria Simion et al.
1 citations
IEEE Transactions on Learning Technologies
Software Engineering Techniques and Practices
3.25
article

Using GenAI to Assess Design Patterns in Student-Written Code

Lorina Negreanu, Alexandru-Corneliu Olteanu, Daniel-Florin Dosaru, Diana-Maria Simion, Andrei-Horia Ignat
article en
1 citations

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 paper 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 (SaaS) (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 GenAI recommendations align with educational standards and advocate for open-source cloudlets as 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.

IEEE Transactions on Learning TechnologiesVol. 18
Universitatea Națională de Știință și Tehnologie Politehnica București (RO)
Quality Education
Openalex Percentile: Top 7%
Software Engineering Techniques and Practices
3.25
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.