Skip to main content
QUICK REVIEW

[Paper Review] Automatic Assessment of the Design Quality of Python Programs with Personalized Feedback

J. Walker Orr, Nathaniel Russell|arXiv (Cornell University)|Jun 2, 2021
Software Engineering ResearchComputer Science11 references6 citations
TL;DR

This paper proposes a neural network ensemble model that automatically assesses the design quality of Python programs using abstract syntax tree (AST) features and generates personalized feedback by comparing a program’s features to those of high-quality examples. The system achieves 83.67% to 94.27% accuracy in predicting instructor-assessed design scores and led to a 19.58% average improvement in student program design scores after feedback application.

ABSTRACT

The assessment of program functionality can generally be accomplished with straight-forward unit tests. However, assessing the design quality of a program is a much more difficult and nuanced problem. Design quality is an important consideration since it affects the readability and maintainability of programs. Assessing design quality and giving personalized feedback is very time consuming task for instructors and teaching assistants. This limits the scale of giving personalized feedback to small class settings. Further, design quality is nuanced and is difficult to concisely express as a set of rules. For these reasons, we propose a neural network model to both automatically assess the design of a program and provide personalized feedback to guide students on how to make corrections. The model's effectiveness is evaluated on a corpus of student programs written in Python. The model has an accuracy rate from 83.67% to 94.27%, depending on the dataset, when predicting design scores as compared to historical instructor assessment. Finally, we present a study where students tried to improve the design of their programs based on the personalized feedback produced by the model. Students who participated in the study improved their program design scores by 19.58%.

Motivation & Objective

  • To address the challenge of manually assessing program design quality, which is time-consuming and context-dependent in educational settings.
  • To develop an automated system that predicts design quality scores with high accuracy using AST-based features.
  • To generate interpretable, personalized feedback that guides students in improving their program design.
  • To evaluate the effectiveness of the feedback in enhancing student learning outcomes through a controlled study.
  • To explore the feasibility of training assignment-specific models and leveraging ensemble learning for improved stability and performance.

Proposed method

  • The model uses a feed-forward neural network ensemble trained on AST representations of student programs to predict a design quality score between 0 and 1.
  • Each input feature is derived from statistical analysis of the AST, such as function length, number of arguments, and use of global variables, ensuring interpretability.
  • Personalized feedback is generated by comparing each feature value in a student’s program to the average value in high-scoring programs, suggesting increases or decreases to improve design.
  • The system employs an ensemble of models to improve prediction stability, especially on complex or variable datasets like 'Craps'.
  • Models are trained per assignment to account for context-specific design standards, enhancing accuracy and relevance.
  • Feedback is delivered as human-readable comments indicating which features to adjust, enabling actionable improvements.

Experimental results

Research questions

  • RQ1Can a neural network model accurately predict the design quality of student Python programs as assessed by instructors?
  • RQ2How does the performance of a neural network ensemble compare to single models and traditional regression in design quality prediction?
  • RQ3To what extent can personalized feedback based on feature comparison improve student program design scores?
  • RQ4Does training assignment-specific models lead to better prediction accuracy than a single general model?
  • RQ5How stable and reliable are the model predictions across diverse programming assignments with varying design expectations?

Key findings

  • The neural network ensemble achieved prediction accuracy ranging from 83.67% to 94.27% across different datasets, with the highest accuracy on 'Travel' and 'Budget' assignments.
  • The ensemble model outperformed both single neural networks and linear regression, particularly on the 'Craps' dataset, where it reduced error by 5% compared to the single model.
  • Students who received personalized feedback improved their program design scores by an average of 19.58%, with a statistically significant p-value of 0.001.
  • The study observed a noticeable reduction in common design flaws such as global variable usage and 'magic numbers' after feedback application.
  • Training models per assignment yielded better performance than a single model, suggesting context-specific calibration is essential for accuracy.
  • The system’s feedback was effective and interpretable, with students able to make targeted improvements based on feature-level suggestions.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.