[Paper Review] ScanSSD: Scanning Single Shot Detector for Mathematical Formulas in PDF Document Images
ScanSSD is a deep learning-based, visual-only detector for mathematical formulas in PDF document images, using a Single Shot Detector with sliding windows and voting-based pooling to detect formulas at multiple scales. It achieves a 0.925 F-score for character-level math detection and 0.796 F-score (IOU ≥ 0.5) for formula detection, demonstrating strong performance on the TFD-ICDAR2019v2 benchmark without relying on layout, font, or OCR data.
We introduce the Scanning Single Shot Detector (ScanSSD) for locating math formulas offset from text and embedded in textlines. ScanSSD uses only visual features for detection: no formatting or typesetting information such as layout, font, or character labels are employed. Given a 600 dpi document page image, a Single Shot Detector (SSD) locates formulas at multiple scales using sliding windows, after which candidate detections are pooled to obtain page-level results. For our experiments we use the TFD-ICDAR2019v2 dataset, a modification of the GTDB scanned math article collection. ScanSSD detects characters in formulas with high accuracy, obtaining a 0.926 f-score, and detects formulas with high recall overall. Detection errors are largely minor, such as splitting formulas at large whitespace gaps (e.g., for variable constraints) and merging formulas on adjacent textlines. Formula detection f-scores of 0.796 (IOU $\\geq0.5$) and 0.733 (IOU $\\ge 0.75$) are obtained. Our data, evaluation tools, and code are publicly available.
Motivation & Objective
- To develop a formula detection system that works on both born-digital and scanned PDFs without relying on structural or formatting metadata such as layout, font, or character labels.
- To create a robust, end-to-end visual detection pipeline for mathematical expressions in document images, applicable to both displayed and embedded formulas.
- To introduce a new benchmark dataset (TFD-ICDAR2019v2) and evaluation tools for formula detection, derived from the GTDB dataset with improved annotations for scale and translation.
- To enable high-accuracy detection of mathematical symbols and formula regions using only image-level features, supporting future indexing and retrieval of mathematical content.
Proposed method
- A Single Shot Detector (SSD) is applied to 600 dpi document page images using sliding windows to detect formula regions at multiple scales.
- Default boxes of size 1×5 are used to better fit wide mathematical expressions with large aspect ratios and reduce noise from square receptive fields.
- Candidate detections from multiple scales and windows are pooled using a voting and thresholding procedure to produce page-level formula detections.
- The method relies solely on visual features—no OCR, font information, or layout metadata is used during detection.
- A modified version of the GTDB dataset is created with new bounding box annotations to address scale and translation discrepancies in the original collection.
- The model is trained and evaluated on the TFD-ICDAR2019v2 dataset using IOU thresholds of 0.5 and 0.75 for formula detection performance.
Experimental results
Research questions
- RQ1Can a deep learning detector achieve high-accuracy formula detection in document images using only visual features, without access to layout, font, or OCR data?
- RQ2How effective is a sliding-window SSD approach with custom default boxes for detecting mathematical formulas of varying sizes and aspect ratios?
- RQ3To what extent do pooling strategies based on voting and thresholding reduce false positives and negatives in formula detection?
- RQ4How do detection errors such as splitting or merging formulas correlate with visual characteristics like whitespace gaps or proximity?
- RQ5Can a visual-only detector achieve competitive performance on a new benchmark dataset for mathematical formula detection?
Key findings
- ScanSSD achieves a 0.925 F-score for character-level detection of mathematical symbols, indicating high precision and recall in identifying math content within detected regions.
- The formula detection F-score reaches 0.796 at IOU ≥ 0.5 and 0.733 at IOU ≥ 0.75, demonstrating strong performance on the TFD-ICDAR2019v2 benchmark.
- Detection errors are primarily due to splitting formulas at large whitespace gaps (e.g., for constraints) or merging adjacent formulas, rather than spurious or missed detections.
- The use of 1×5 default boxes significantly improves detection of wide mathematical expressions compared to square receptive fields, reducing noise and improving alignment with formula geometry.
- The method successfully detects matrices and rejects non-mathematical numbers such as equation numbers and page numbers, indicating robustness to common document artifacts.
- The authors release the TFD-ICDAR2019v2 dataset, evaluation tools, and code, enabling reproducibility and future benchmarking in mathematical formula detection.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.