Source-linked AI summary

A selectional auto-encoder approach for document image binarization

Jorge Calvo-Zaragoza, Antonio-Javier Gallego

arXiv:1706.10241v3cs.CVcs.DL

TL;DR

Document binarization is a difficult but important early step because degradations and heterogeneous document styles challenge existing methods. The paper trains a fully convolutional Selectional Auto-Encoder to map document images to per-pixel foreground-selection values, then thresholds them into binary images. Across document domains, the SAE outperforms existing binarization strategies, while performance depends on the similarity between training and test data.

  • Problem

    Document binarization must handle degradations and heterogeneous document styles, while pixel-wise learning also incurs high computational cost and wastes neighboring-label context.

  • Method

    A fully convolutional Selectional Auto-Encoder learns an end-to-end image-to-image map producing per-pixel foreground-selection values that are thresholded into binary labels.

  • Results

    83.41 F-measure, compared with 75.48 for the best average performance of existing strategies.

  • Takeaways & Limitations

    SAE performance is directly related to train–test similarity, with good results obtained when an appropriate training set is available for the domain.

  • Takeaways & Limitations

    The hyper-parameter study is restricted to the D16 dataset, so the selected configuration is treated as representative rather than individually optimized for every case.

Abstract

from arXiv · show

Binarization plays a key role in the automatic information retrieval from document images. This process is usually performed in the first stages of documents analysis systems, and serves as a basis for subsequent steps. Hence it has to be robust in order to allow the full analysis workflow to be successful. Several methods for document image binarization have been proposed so far, most of which are based on hand-crafted image processing strategies. Recently, Convolutional Neural Networks have shown an amazing performance in many disparate duties related to computer vision. In this paper we discuss the use of convolutional auto-encoders devoted to learning an end-to-end map from an input image to its selectional output, in which activations indicate the likelihood of pixels to be either foreground or background. Once trained, documents can therefore be binarized by parsing them through the model and applying a threshold. This approach has proven to outperform existing binarization strategies in a number of document domains.

1. Introduction

Document binarization is an important early step in document analysis, but heterogeneous document styles and degradations make robust general-purpose methods difficult. The paper therefore studies a CNN-based, ground-truth-trained framework across multiple document types.

  • Motivation: Binarization assigns each pixel to foreground or background and supports downstream document analysis operations.It can reduce task complexity and support morphological operations, connected-component detection, and histogram analysis.
  • Challenges: Document degradations such as irregular leveling, blots, and bleed-through can cause binarization to fail.
  • Motivation: A single method often struggles across heterogeneous document styles, motivating models trained with document-type-specific ground truth.The proposed framework uses examples with ground-truth binarizations to train a model for each document type.
  • Approach: The paper uses image-to-image CNNs trained to transform document images into their binarized versions.CNN parameters are adjusted through training, and the architecture is applied to document binarization.
  • Evaluation: Experiments cover Latin text, palm leaf scripts, Persian documents, and music scores, with comparisons against classical and state-of-the-art algorithms.The authors report a significant improvement for the proposed approach.

2. Background

Traditional binarization methods range from global and adaptive thresholds to multi-step image-processing pipelines and supervised pixel classifiers. Pixel-wise learning can be costly and discard neighborhood context, motivating a fully convolutional patchwise alternative.

  • Classical methods: Global thresholding is simple, but increasing document complexity can produce poor or irregular binarization.Otsu’s method automatically estimates a global threshold from the input image.
  • Classical methods: Adaptive methods compute local thresholds from neighborhood statistics, with Sauvola’s and Wolf et al.’s methods extending Niblack’s approach.Niblack’s threshold is T = m + k · s, using local mean, standard deviation, and a tunable parameter.
  • Classical methods: Later methods add filtering, region estimation, contrast or edge analysis, post-processing, and energy minimization to handle document degradations.
  • Learning-based methods: Pixel-wise supervised learning labels each pixel independently after feature extraction, commonly using multilayer perceptrons or CNNs.
  • Learning-based methods: Pixel-wise approaches require one prediction per image pixel and waste contextual information from neighboring labels.These drawbacks create computational cost and motivate a patchwise fully convolutional auto-encoder.

3. Selectional auto-encoder for document image binarization

The paper proposes a fully convolutional Selectional Auto-Encoder that maps image patches to per-pixel foreground-selection values. Thresholding these outputs produces binary documents while processing all pixels together and incorporating image context indirectly.

  • Task formulation: The framework formulates document binarization as pixel-level two-class classification into foreground and background.
  • Architecture: Unlike independent pixel classification, the model performs image-to-image processing in one step and indirectly uses neighboring-label context.All pixels in the input image are processed simultaneously, improving efficiency relative to independent predictions.
  • Selectional auto-encoder: The model learns a selectional map b: R^(w×h) → [0, 1]^(w×h) rather than the identity function of a traditional auto-encoder.Each activation reflects whether the corresponding pixel belongs to document foreground or background.
  • Architecture: The SAE encodes an image through convolutional down-sampling, then decodes it through convolutional up-sampling to predict a [0, 1] selectional value for every input pixel.The encoder learns an intermediate representation, while the decoder reconstructs the image-sized output.
  • Binarization procedure: After inference, a global threshold converts per-pixel neural activations into foreground and background labels.Pixels exceeding the threshold are labeled foreground; the remaining pixels are labeled background.
  • Binarization procedure: Large documents are split into fixed-size pieces, processed independently, and reassembled without further processing.The paper reports no recurring edge errors or discontinuities near piece boundaries in its experimental analysis.
  • Implementation: The study examines CAE, SWWAE, and RED-Net topologies, using five encoding and five decoding layers with 2 × 2 sampling operators.

4. Experiments

Experiments show that SAE performance depends on configuration, training data, and document-domain similarity. Across diverse corpora, specialized training produced the strongest results, while global training remained competitive and the approach improved over existing methods.

  • Hyper-parameter selection: SAE performance remained within 88 to 91 Fm across configurations, with RED-Net using 256×256 windows, 64 filters, and 7×7 kernels achieving the best evaluated result.A 5×5 kernel was selected because 7×7 produced only an insignificant improvement while requiring a much larger network.
  • Hyper-parameter selection: Around 4% Fm improvement came from data augmentation, with gains stabilizing at an augmentation factor of 3.The factor of 3 was retained because larger sample counts increased training cost without consistent additional benefit.
  • Comparative assessment: Specialized SAE training increased average performance from 75.48 to 83.41 and outperformed global training across the evaluated datasets.The improvement was especially notable on P-I and P-II, where existing methods encountered greater difficulty.
  • Comparative assessment: Global SAE training improved existing algorithms on many datasets and raised average Fm from 75.48 to 75.92 despite heterogeneous document types.The authors report that this generalization may reduce the need for manuscript-specific ground-truth data in new document types.
  • Comparative assessment: SAE achieved the best p-Fm performance on all datasets with specific training, although its improvement was less pronounced than for classical Fm.The authors suggest this difference may result from optimizing the SAE with classical Fm rather than p-Fm.
  • Comparative assessment: Compared with existing methods, SAE was especially effective at discarding false negatives while maintaining a similar level of true-positive detection.The benefit was particularly associated with background regions in complex documents.
  • Error analysis: Error locations generally showed no fixed position pattern within input windows, except for palm-leaf and music-score documents where errors followed ink concentration.For D14, evenly distributed ink produced no regular error-map pattern; for PL-I, errors followed two text lines held by the window.
  • Cross-document adaptation: Performance was strongest when training and test documents belonged to similar domains, while models trained on palm-leaf documents performed very poorly on other document types.This sensitivity was observed across text, palm-leaf, and musical-score document groups.

5. Conclusions

The paper presents a Selectional Auto-Encoder that learns an end-to-end, pixel-level transformation for document image binarization. Across varied datasets and comparisons, it reports stronger performance than existing methods, while showing that results depend on training-data suitability and motivating future extensions.

  • Approach: The Selectional Auto-Encoder learns an end-to-end transformation from fixed-size image patches to per-pixel foreground-confidence values, which are thresholded into binary results.The model produces a selectional value for each pixel rather than assigning one label to the entire input patch.
  • Results: 83.41 versus 75.48, the SAE increased the best average existing performance in F-measure across comparisons with classical and state-of-the-art algorithms.The reported comparison identifies the SAE as outperforming the other binarization algorithms.
  • Results: Error analysis found that the SAE detects background accurately, with errors concentrated around foreground strokes rather than tied directly to input/output-window position.The analysis examined both the location of errors and their relationship to the processing window.
  • Data dependence: Performance was directly related to similarity between training and test data, with good results obtained when an appropriate domain-specific training set was available.Using domain-specific data performed better, while using all available data still achieved fair performance.
  • Future work: Future work proposes incorporating prior information to favor continuous ink strokes and recurrent connections for documents too large for a single processing window.These extensions are intended to reduce broken foreground shapes and connect information across document areas.
Loading 1706.10241v3…