NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Cascade Network with Deformable Composite Backbone for Formula Detection in Scanned Document Images

Khurram Azeem Hashmi, Alain Pagani, Marcus Liwicki, Didier Stricker, Muhammad Zeshan Afzal

TL;DR

This paper introduces a novel deep learning architecture for accurately detecting mathematical formulas in scanned documents, a crucial step for information extraction. By enhancing the Cascade Mask R-CNN with a deformable composite backbone and a lightweight pre-processing step, the authors achieve state-of-the-art results on challenging datasets, significantly improving detection accuracy and reducing errors.

What Problem Does This Paper Address?

Extracting information from scanned documents is vital across many fields. While Optical Character Recognition (OCR) systems are adept at handling standard text, they often struggle with specialized content like mathematical formulas. These formulas, whether presented on their own lines (isolated) or embedded within text, pose a significant challenge due to their complex structure, varied symbols, and potential for misinterpretation with regular text or other graphical elements like tables and figures. Accurately identifying these formulas is a prerequisite for their subsequent interpretation and extraction.

Methods

The core of this work is an enhanced Cascade Mask R-CNN framework. The authors introduce two key modifications:

  • Deformable Composite Backbone: Instead of standard convolutional layers, they employ deformable convolutions within a dual backbone architecture (based on ResNeXt-101). Deformable convolutions allow the network to adapt its receptive field to the shape of the object being detected, leading to better localization of formulas. The "composite" aspect refers to a novel way these dual backbones are connected, allowing parallel stages to inform each other, enriching the feature extraction process.
  • Lightweight Dilation Pre-processing: Before feeding images into the network, a simple dilation transformation is applied. This process thickens the foreground pixels (characters) in binarized images, effectively grouping semantically related regions and creating a more robust input for the feature extraction network. This is concatenated with the original image, increasing the input channels.

The overall pipeline is end-to-end trainable, meaning the entire system learns to detect formulas from raw images to final bounding boxes and masks.

Datasets

The proposed method was evaluated on two publicly available datasets:

  • ICDAR-2017 POD (Page Object Detection): This dataset contains document images annotated for various page objects, including formulas. The authors used a corrected version of this dataset for direct comparison with prior work.
  • Marmot: This dataset, while smaller, specifically focuses on mathematical formulas, providing annotations for both isolated and embedded expressions.

Key Insights and Ideas

  • Deformable Convolutions are Key for Formula Localization: The paper strongly suggests that the ability of deformable convolutions to adapt their shape is crucial for accurately bounding the often irregular shapes of mathematical formulas, outperforming standard convolutions.
  • Dual Backbones Enhance Feature Representation: The composite connection between two parallel ResNeXt-101 backbones appears to provide a richer set of features, enabling the network to better distinguish formulas from other document elements.
  • Lightweight Pre-processing is Sufficient: The authors demonstrate that a simple dilation technique, rather than complex hand-crafted features or heavy pre-processing, is effective in preparing the images for the deep learning model, simplifying the pipeline.
  • End-to-End Learning Simplifies the Process: By creating a single, trainable network, the need for separate, manually tuned components for different stages of formula detection is eliminated.

Key Results

The proposed method achieved state-of-the-art performance on both datasets:

  • ICDAR-2017 POD: Achieved an F1-score of 0.917 at a higher IoU threshold (0.8), representing a 7.8% reduction in relative error compared to prior methods.
  • Marmot: Demonstrated a correct detection accuracy of 81.3% for embedded formulas, a 30% reduction in relative error. For isolated formulas, the system achieved 93% correct detection accuracy.

Qualitative results showed accurate bounding boxes for a high percentage of formulas, with only a small number of false positives and negatives.

Limitations and Future Work

  • Limitations: The paper acknowledges that while performance is state-of-the-art, deeper backbones could potentially yield even better results in terms of IoU and reducing false positives.
  • Future Work: The authors suggest extending their experiments to detect other graphical page objects like figures, charts, and headings. They also propose exploring deeper backbone architectures for further performance gains.

Summary updated

BibTeX
@inproceedings{hashmi2021cascade,
  author = {Khurram Azeem Hashmi and Alain Pagani and Marcus Liwicki and Didier Stricker and Muhammad Zeshan Afzal},
  title = {{Cascade Network with Deformable Composite Backbone for Formula Detection in Scanned Document Images}},
  booktitle = {Applied Sciences},
  year = {2021},
  doi = {10.3390/app11167610},
}
Figure