Objective
Software engineering students often draw diagrams in the Unified Modeling Language (UML), a standard set of drawings used to plan software. Examples include class diagrams (which show the parts of a program and how they connect), sequence diagrams (which show messages passed over time) and state diagrams (which show the states something moves through). Checking a large class's diagrams by hand takes expertise and time.
The authors had already built a neural network (a computer program that learns patterns from many examples) that looks at a picture and decides two things: is this a UML diagram at all, and if so, what type. This paper tests that tool in a real course. It asks whether the tool can help teachers check student work.
The authors set out to see whether the tool could:
- check that students handed in the diagram type the assignment required;
- spot diagrams that look wrong, using the tool's confidence score;
- find duplicate submissions that may point to copying;
- show where it succeeds and where it struggles on real student images.
The main idea is to support instructors and give students early signals, not to replace human grading.
Methods
This was a technical evaluation of an existing tool on real coursework, not an experiment with a comparison group. It can show how well the software sorts images. It cannot show whether students learn more because of it.
The tool had been trained earlier. The model described here was a multi-layer perceptron (a basic type of neural network) built with Keras. It was trained on a balanced set of 1500 images per category across five categories, 7500 images in all, split 80/20 into 6000 for training and 1500 for validation. The data came from a public GitHub repository, UML specification examples, educational websites and internet searches. It included non-UML diagrams such as business process, data flow and entity relationship drawings, so the tool could learn to reject them.
The test took place at the University POLITEHNICA of Bucharest, in a third-year bachelor course on software engineering. Students worked in teams of 2 or 3 on a project that included UML designs and a Java program, and uploaded their diagrams to Moodle. The 237 students were in three cohorts, called AA, AB and AC, with 92, 88 and 57 students. In total the authors collected 881 diagrams of eight types: use case, activity, class, component, communication, deployment, state machine and sequence. No cleanup was done before the tool classified them.
A diagram was flagged for human review if the tool's confidence fell below 80%, if the predicted type did not match the assignment, if it looked like a duplicate, or if the format was unsupported, such as a handwritten drawing. To find duplicates, the authors recorded scores to three decimals, since identical images get identical scores. A human then reviewed every flagged case and recorded why. Performance was reported with macro-averaged precision, recall, specificity and F1 (averages that give each category equal weight, which suits uneven numbers of diagrams). The paper does not give an ethics approval statement.
Key Findings
Overall, the tool classified student diagrams with high macro-average scores, but it sent a large share of diagrams to a person.
Flagged submissions
- In cohort AA, 125 of 352 diagrams (35%) were flagged. In cohort AB, 124 of 312 (39%). In cohort AC, 87 of 217 (40%).
- Many flagged diagrams were correct. For example, in AA, 24 use case diagrams and 23 activity diagrams were fully correct UML but got confidence scores below 80%, ranging from 56% to 79% for use case diagrams. The authors say these borderline cases make up a significant part of the flagged group.
What the tool caught
- It found duplicates. In cohort AA there were 26 duplicate use case diagrams, where 2 or 3 students handed in the same image. The authors found 7 duplicates in cohort AB and 17 in cohort AC, each time 2 or 3 identical images. They add that two different diagrams can still score alike, so a match is a reason to look, not proof of copying.
- It flagged diagrams missing a system boundary (the box that shows a system's scope). In AA, 16 use case diagrams lacked one, with 14 getting low scores from 58% to 67% and 2 classed as non-UML.
- It flagged diagrams with odd formats. A handwritten use case diagram was labeled non-UML, as were diagrams split across two image files, because the tool was not built for those cases. An image with inverted colors got a score of only 48%.
Accuracy numbers
- On the flagged data in the performance table, the macro averages were precision 0.97, recall 0.95, specificity 0.94 and F1 0.96. Precision of 0.97 means almost all diagrams given a type label had the right label.
- Class diagrams reached 1 on all four scores. Sequence diagrams were weaker, with specificity of 0.8 and F1 of 0.93, likely because they look like communication diagrams.
- In the confusion table for class diagrams, 30 were correctly identified and none were missed. For sequence diagrams the table shows 15 correct, 1 missed and 1 wrongly accepted.
- The authors found that the tool does best on well-structured diagrams and worse when images are poor, cropped, low resolution or drawn with unusual notation.
Implications
The authors present the tool as a decision-support aid for teachers, not a replacement for them.
Instructors
- The authors suggest the tool could handle routine checks, such as whether the right diagram type was submitted, and save a teacher's time for unclear cases.
- They suggest the duplicate check could point teachers to submissions worth a closer look.
Students
- The authors suggest students could use the tool for quick feedback outside class and get early signals that a diagram needs revision.
Developers
- The authors say the tool should learn to handle one diagram split over several images, and that handwritten and split diagrams, and more UML types, need to be handled before it fits classroom use.
Our reading (not the authors' recommendation):
- Because the 80% rule flagged 35% to 40% of work and many of those were fine, a teacher should expect a review pile of that size, not a short exception list.
- A low score should not be shown to students as proof their diagram is wrong. In this study many low scores were on correct diagrams.
- A tool like this checks the form of a diagram, such as type and notation. The paper does not test whether it can judge if a design is good, so a teacher still needs to judge design quality.
- A duplicate flag only means the images match. A teacher still has to decide what that means.
Limitations
The authors name three limits. The student work contained only UML diagrams, so the tool's ability to reject non-UML images could not be fully checked on student data. The tool does not support handwritten diagrams or diagrams split into two files, and these were treated as non-UML or got low scores. And the tool cannot explain why a diagram scored low, so a human expert is needed to find the reason.
The paper does not mention, but the headline scores in the performance table were reported on the flagged diagrams. Those are the ones sent for review, so the figures may not describe the full set of 881 diagrams.
The paper does not mention, but the work comes from one course at one university, so results may differ for other courses, tools or ways of drawing.
The paper does not mention, but nobody tested whether teachers graded faster or students learned more with the tool. The claim about saving teacher time is an expectation, not a measured result.
The paper does not mention, but the human review of flagged cases was done by the research team, and there is no report of a second reviewer checking their calls. The authors also say the student project theme was not collected.
Future Directions
The authors say the next step is to put the tool to work in teaching and to widen what it can do. Specific directions they list:
- Extend the classifier to more UML diagram types that appear in coursework.
- Add more varied student diagrams, including handwritten and tool-made ones, so the tool handles real classroom variety.
- Move beyond naming the diagram type, toward spotting specific UML syntax mistakes and patterns of similarity between submissions.
- Study the effect on teaching, including adaptive feedback and a smooth fit into digital learning environments.
Questions the study leaves open include whether students who get this feedback revise their diagrams better, whether teachers trust a flag enough to act on it, and whether lowering or raising the 80% cutoff would cut the review pile without missing real problems.
The bottom line: In a real software engineering course with 237 students and 881 diagrams, a neural network sorted UML diagrams with an average F1 of 0.96 on the flagged diagrams and caught duplicates, missing boundaries and unusual formats. But it flagged 35% to 40% of submissions, and many flagged diagrams were correct. This is evidence that the tool can work as a first-pass filter in one course. It does not show better learning or accurate grading, so a teacher should still make the final call.
Comments 0
No comments yet. Be the first to share a thought.
Get new research summaries by email
Every new summary each morning, a weekly digest, or a monthly report. You choose, and you can unsubscribe in one click.