Discrimination between digits and outliers in handwritten documents applied to the extraction of numerical fields

Clément Chatelain, Laurent Heutte, Thierry Paquet2006

TL;DR

This paper tackles the challenge of extracting numerical fields from unconstrained handwritten documents by proposing a two-stage outlier rejection strategy for digit classifiers. This approach significantly improves the accuracy of numerical field extraction by effectively distinguishing between digits and various types of "outliers" in the handwritten text.

What Problem Does This Paper Address?

Extracting information from handwritten documents is a notoriously difficult task due to the inherent variability in handwriting styles. While systems for constrained documents (like checks or forms) exist, processing unconstrained documents with free layouts and cursive handwriting presents a major hurdle. Specifically, identifying numerical fields within such documents is challenging because numerical data can appear anywhere and doesn't follow strict linguistic rules. The core problem this paper addresses is how to reliably distinguish actual digits that form numerical fields from other handwritten elements (words, word fragments, noise, etc.) that can interfere with the extraction process.

Methods

The paper proposes a numerical field extraction system that combines a "segmentation driven by recognition" stage with a "syntactical analysis." The key innovation lies in the outlier rejection strategy for the digit classifier, which is crucial for the recognition stage. This strategy is a two-stage process:

  1. Obvious Outlier Rejection: This initial filter uses a lightweight, two-class classifier (trained on a restricted feature set) to quickly identify and reject "obvious outliers" – those with shapes significantly different from digits. The goal here is to reject as many outliers as possible while accepting all true digits. Several classifiers were evaluated, with Support Vector Machines (SVMs) showing the best performance in terms of ROC curves.
  2. Ambiguous Outlier Rejection: Patterns that pass the first stage are then fed into a more sophisticated digit classifier. This stage is designed to handle "ambiguous outliers" – those that resemble digits but are not. The paper uses a combination of two Multi-Layer Perceptrons (MLPs) with a 117-structural/statistical feature set and a 128-feature set extracted from chaincode. A "look-up table" (LUT) is employed to estimate a confidence value for the "reject" class based on the confidence of the digit classifier's top proposition. This allows for a soft decision, differentiating between digits and ambiguous outliers.

The overall system then uses a syntactical analysis to filter sequences that conform to predefined numerical field models (e.g., phone numbers, ZIP codes).

Datasets

The paper mentions using a database of 7,500 patterns (5,000 outliers, 2,500 digits) for training and evaluating the outlier rejection classifiers. For the final system evaluation, they used a database of 293 real incoming mail documents provided by a French firm. This latter dataset is not publicly available due to private information.

Key Insights and Ideas

  • Two-Stage Outlier Rejection is Crucial: The paper highlights that a single-stage outlier rejection is insufficient for unconstrained handwriting. Differentiating between "obvious" and "ambiguous" outliers and using specialized strategies for each is key to improving performance.
  • SVM as an Effective "Obvious Outlier" Filter: The SVM classifier proved to be highly effective in the first stage, achieving a good trade-off between rejecting outliers and accepting digits, even with a relatively fast processing time for this specific task.
  • MLP Combination for Ambiguous Outliers: Combining two MLPs with a rich feature set and using a LUT for reject confidence estimation provides a robust way to handle the difficult task of distinguishing ambiguous outliers from actual digits.
  • Cost-Sensitive Learning Matters: The paper demonstrates that tuning a cost parameter for false rejection vs. false acceptance in the outlier rejection stage is critical for optimizing the overall recall-precision trade-off of the numerical field extraction system.

Key Results

  • The two-stage outlier rejection strategy, with SVM as the initial filter, significantly improves the ROC curve for outlier rejection compared to using only the digit classifier. The break-even point (where false acceptance rate equals false rejection rate) was 9%, meaning the system could reject 91% of outliers while accepting 91% of digits.
  • The paper evaluated their approach on a database of 293 real incoming mail documents. While specific quantitative results for the entire extraction system are presented as recall-precision trade-off curves influenced by the cost parameter, the paper emphasizes that the two-stage outlier rejection leads to a better trade-off.
  • The combined MLP classifier achieved high recognition rates on a test database of 60,000 digits: 98.44% (TOP1), 99.48% (TOP2), and 99.75% (TOP3).

Limitations and Future Work

  • Dataset Availability: The primary dataset used for evaluating the full system (293 real incoming mail documents) is not publicly available due to privacy concerns, limiting direct comparison with other research.
  • SVM Processing Time: While SVM performed well, its processing time (around 6 seconds for 7500 patterns) was noted as slower than other classifiers, though still considered reasonable for the initial filtering stage.
  • Future Work: The authors plan to explore using an Area Under ROC Curve (AUC) criterion for SVM learning to potentially improve outlier rejection capacity. They also aim to combine this system with an alternative approach developed in their previous work to further enhance global performance.

Summary updated

Abstract

In this article, we propose a numerical field extraction system from unconstrained handwritten documents. The system is based on a segmentation driven by recognition stage followed by a syntactical analysis which detects the sequences that may compose a numerical field. We focus here on the design of a digit classifier embedded in the segmentation/recognition process able to discriminate digits from outliers such as words, fragment of words, noise, etc. For that, we have developed a light classifier used as prior to a standard digit classifier in order to reject “obvious outliers”. Several classifiers have been compared in terms of ROC curve and processing time. 1
BibTeX
@misc{chatelain2006discrimination,
  author = {Clément Chatelain and Laurent Heutte and Thierry Paquet},
  title = {{Discrimination between digits and outliers in handwritten documents applied to the extraction of numerical fields}},
  year = {2006},
}
Figure