A Saliency-Based Convolutional Neural Network for Table and Chart Detection in Digitized Documents

Isaak Kavasidis, Carmelo Pino, Simone Palazzo, Francesco Rundo, Daniela Giordano, P. Messina, Concetto SpampinatoICIAP 2018 · DOI

TL;DR

This paper introduces a novel approach for automatically detecting tables and charts in digitized documents by combining deep convolutional neural networks (DCNNs) with visual saliency principles and graphical models. Their method achieves state-of-the-art performance by leveraging a saliency-based DCNN to identify potential regions of interest, followed by a Conditional Random Field (CRF) for refinement, outperforming existing models on a challenging benchmark.

What Problem Does This Paper Address?

The explosion of digital documents has created a massive information overload. While Natural Language Processing (NLP) excels at text extraction, crucial information is often embedded in tables and charts, which are difficult for automated systems to accurately locate and segment. Existing object detection methods, primarily trained on natural images, struggle with the unique characteristics of document layouts. Furthermore, traditional methods often fail to capture the long-range dependencies needed to distinguish complex table structures or to detect charts effectively, leading to significant information loss. This paper aims to bridge this gap by developing a robust system for precise table and chart detection in digitized documents.

Methods

The core of the proposed method is a saliency-based fully-convolutional neural network (FCNN). Instead of directly classifying objects, the network is trained to predict saliency maps – essentially heatmaps indicating the likelihood of each pixel belonging to a specific object category (tables, pie charts, line charts, bar charts). This approach is inspired by how humans visually scan documents, focusing on salient elements.

Key methodological innovations include:

  • Multi-scale Reasoning with Dilated Convolutions: To capture long-range dependencies crucial for document elements, the FCNN employs dilated convolutions. This allows the network to have a larger receptive field without increasing computational cost or losing spatial resolution, which is vital for dense pixel-wise prediction.
  • Saliency-driven Pre-training and Fine-tuning: The network is initially pre-trained on general saliency detection datasets to learn basic visual cues. It is then fine-tuned on document-specific data.
  • Classification Loss for Enhanced Saliency: To ensure that saliency maps accurately delineate entire objects (not just salient parts), an additional classification loss is introduced. This loss encourages the saliency detector to produce maps that are useful for downstream binary classifiers, which are trained to distinguish between object categories.
  • Fully-Connected Conditional Random Field (CRF) for Refinement: The raw output from the FCNN is further processed by a fully-connected CRF. This graphical model smooths the predicted segmentation masks, corrects minor errors, and enhances the boundaries of detected objects, leading to more precise localization.

Datasets

  • Training Data: A custom dataset was created by web crawling for images related to "tables in documents," "pie charts," "bar charts," and "line charts." This resulted in approximately 50,466 images.
  • Testing Data: The standard ICDAR 2013 dataset was used for table detection. For chart detection, this dataset was extended to include annotations for pie, line, and bar charts.
  • Validation Data: 10% of the web-gathered dataset was used for validation.

Key Insights and Ideas

  • Saliency as a Proxy for Document Object Detection: The paper's central insight is that visual saliency, often associated with natural scenes, can be effectively adapted to identify document elements like tables and charts. Their organized structure makes them inherently salient within a text-heavy document.
  • Dilated Convolutions are Crucial for Document Layouts: The success of the model hinges on its ability to capture long-range spatial relationships, which is precisely what dilated convolutions enable in FCNNs for dense prediction tasks. This is a significant advantage over standard CNNs that might lose such information through pooling.
  • Joint Saliency and Classification Training: By using the classification task to provide an additional loss signal to the saliency detector, the model is guided to produce more complete and accurate object masks, rather than just highlighting visually striking features. This "teaching" mechanism is key to improving overall detection.
  • CRF as a Powerful Post-processing Step: While the DCNN provides the initial detection, the CRF plays a vital role in refining these predictions, particularly for complex or noisy outputs, leading to a significant boost in performance.

Key Results

The proposed ALL configuration (saliency detection + classification loss + CRF) achieved state-of-the-art performance:

  • Table Detection (ICDAR 2013): An average F1 score of 97.8%, outperforming existing methods like DeepDeSRT (96.7%), Tran (95.8%), and Hao (94.6%).
  • Chart Detection (Extended ICDAR 2013): An average F1 score of 93.4%.
  • Ablation Study: The paper demonstrates the contribution of each component:
  • SAL (Saliency only): 69.0% F1 score.
  • SAL-CRF (Saliency + CRF): 78.1% F1 score (a ~9% increase).
  • SAL-CL (Saliency + Classification): 87.0% F1 score (a ~18% increase over SAL).
  • ALL (Full system): 93.4% F1 score.

Qualitatively, the results show that the CRF module is particularly effective in filling gaps and smoothing boundaries, especially for tables and pie charts, while the classification loss helps differentiate between similar chart types like bar and line charts.

Limitations and Future Work

  • Limitations:
    • The performance of the saliency detector alone was not sufficient for high accuracy, highlighting the need for the classification loss and CRF.
  • The paper notes that while the CRF module significantly improves recall, it has a less pronounced effect on precision, particularly for tables with large white areas.
  • The training dataset, while large, might not encompass all possible document styles and complexities.
  • Future Work:
    • The authors suggest that further improvements could be made by exploring more advanced CRF models or alternative post-processing techniques.
  • Investigating methods to further improve the precision of the saliency detector itself, especially for challenging cases like tables with large white spaces, is a promising direction.
  • Expanding the dataset to include a wider variety of document types and graphical elements could enhance the model's generalization capabilities.

Summary updated

BibTeX
@inproceedings{kavasidis2018saliency,
  author = {Isaak Kavasidis and Carmelo Pino and Simone Palazzo and Francesco Rundo and Daniela Giordano and P. Messina and Concetto Spampinato},
  title = {{A Saliency-Based Convolutional Neural Network for Table and Chart Detection in Digitized Documents}},
  booktitle = {ICIAP},
  year = {2018},
  doi = {10.1007/978-3-030-30645-8\_27},
}
Figure