Skip to main content
QUICK REVIEW

[Paper Review] BAGS: An automatic homework grading system using the pictures taken by smart phones

Xiaoshuo Li, Tiezhu Yue|arXiv (Cornell University)|Jun 10, 2019
Advanced Image and Video Retrieval TechniquesComputer Science22 references6 citations
TL;DR

BAGS is an automatic homework grading system that uses smartphone-captured images to detect and recognize handwritten answers via two modified DeepLabv3+ semantic segmentation networks for answer area underlines (AAU). It achieves 91% accuracy in locating and recognizing answers across 6,068 answer areas, outperforming traditional line detection methods like Hough Transform and LSD in complex, distorted backgrounds.

ABSTRACT

Homework grading is critical to evaluate teaching quality and effect. However, it is usually time-consuming to grade the homework manually. In automatic homework grading scenario, many optical mark reader (OMR)-based solutions which require specific equipments have been proposed. Although many of them can achieve relatively high accuracy, they are less convenient for users. In contrast, with the popularity of smart phones, the automatic grading system which depends on the image photographed by phones becomes more available. In practice, due to different photographing angles or uneven papers, images may be distorted. Moreover, most of images are photographed under complex backgrounds, making answer areas detection more difficult. To solve these problems, we propose BAGS, an automatic homework grading system which can effectively locate and recognize handwritten answers. In BAGS, all the answers would be written above the answer area underlines (AAU), and we use two segmentation networks based on DeepLabv3+ to locate the answer areas. Then, we use the characters recognition part to recognize students' answers. Finally, the grading part is designed for the comparison between the recognized answers and the standard ones. In our test, BAGS correctly locates and recognizes the handwritten answers in 91% of total answer areas.

Motivation & Objective

  • To develop a convenient, real-time automatic homework grading system that uses only smartphone-captured images, eliminating the need for specialized scanning equipment.
  • To address challenges in answer area detection caused by image distortion, complex backgrounds, and student-drawn auxiliary lines in smartphone-captured images.
  • To improve the accuracy of handwritten answer detection and recognition in real-world, unconstrained imaging conditions.
  • To provide immediate feedback to students and teachers through an accessible, mobile-friendly grading pipeline.

Proposed method

  • Two modified DeepLabv3+ semantic segmentation networks are used to detect answer area underlines (AAU) and rectangular borderlines separately, with enhanced decoder design to recover fine details at output stride 2.
  • The AAU segmentation model is trained to locate thin, horizontal lines in images with distortions, background textures, and user-drawn lines, outperforming traditional methods.
  • The system processes images by first detecting AAUs, then isolating answer areas, followed by handwritten character recognition using a dedicated recognition module.
  • The grading engine compares recognized answers to standard answers using Levenshtein distance, with accuracy calculated as 1 - (Levenshtein distance / label length).
  • The pipeline separates rectangular borderlines and AAU segmentation to improve accuracy, especially when answer sheets occupy a small image region.
  • A public dataset is released to support future research in automatic grading, hosted at https://github.com/boxfish-ai/BAGS.

Experimental results

Research questions

  • RQ1Can a deep learning-based semantic segmentation approach outperform traditional line detection methods like Hough Transform and LSD in detecting answer areas from smartphone-captured homework images?
  • RQ2How effective is a modified DeepLabv3+ model in segmenting thin, horizontal answer area underlines (AAU) under real-world imaging conditions such as distortion and complex backgrounds?
  • RQ3What is the impact of separating the segmentation of rectangular borderlines and AAUs on overall grading accuracy?
  • RQ4To what extent do image quality, handwriting clarity, and user-drawn lines affect the performance of automatic homework grading systems in real-world settings?
  • RQ5Can a system using only smartphone-captured images achieve high accuracy in both answer area localization and handwritten text recognition without specialized hardware?

Key findings

  • BAGS successfully locates and recognizes handwritten answers in 91% of all 6,068 answer areas tested on a real-world dataset of 383 smartphone-captured images.
  • The AAU segmentation model achieved 76.3% recall and 70.5% precision, significantly outperforming Hough Transform (max 40.9% recall) and LSD (max 66.5% recall) under the same conditions.
  • Traditional line detection methods like Hough Transform and LSD were highly sensitive to background textures and user-drawn lines, while BAGS remained robust in such scenarios.
  • Of the 274 failed cases, 52 were due to segmentation errors, 68 to recognition errors, and 154 to factors like low image quality or ambiguous handwriting.
  • The system's performance is stable and reliable in real-world conditions, with most failures attributable to image quality or handwriting clarity rather than core algorithmic flaws.
  • The public release of the dataset at https://github.com/boxfish-ai/BAGS supports reproducibility and future research in automatic grading systems.

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.