CHARTER: heatmap-based multi-type chart data extraction

Joseph Shtok, Sivan Harary, Ophir Azulai, Adi Raz Goldfarb, Assaf Arbelle, Leonid KarlinskyarXiv 2021

Introduction

While Optical Character Recognition (OCR) has successfully digitized vast amounts of textual data, a significant portion of information remains trapped in "dark data"—embedded graphics such as bar, pie, and line charts. Traditional chart-to-data systems often rely on standard object detectors using rectangular bounding boxes. However, these methods struggle with non-rectangular elements like curved pie slices or winding line graphs.

CHARTER introduces a unified end-to-end pipeline that moves beyond simple bounding boxes by utilizing auxiliary heatmaps to precisely localize geometric elements, enabling robust data extraction across multiple chart types.

The CHARTER Pipeline

To address the limitations of existing systems, the authors developed a four-stage architecture designed to handle complex layouts and varied chart geometries within a single framework.

The four-stage CHARTER pipeline for chart data extraction, from document page to structured JSON output.
  1. Chart Region Detection: A Faster-RCNN model identifies the chart's general area, including its title, legend, and axis labels.
  2. Graphical Element Detection: This core innovation utilizes a modified CenterNet architecture to produce heatmaps. These heatmaps identify "fiducials"—specific geometric points like pie centers, bar corners, and line "knee-points"—allowing for much higher precision than bounding boxes.
  3. OCR Engine: Using the CRAFT detector and Clova AI, the system extracts text, with specialized logic for rotated axis labels and scientific notation.
  4. Analysis Module: Geometric rules are applied to stitch the detected elements together, matching legend colors to chart segments and converting pixel coordinates back into original numerical data.

Key Innovation: Heatmaps Over Bounding Boxes

The primary breakthrough of CHARTER is the realization that charts are geometric constructs. While a bounding box might encompass a pie slice, it does not describe its functional geometry. By using heatmaps to represent center points and radial lines, the detector becomes structurally aware of the chart's composition.

Visualizing heatmap-based detection and localization for pie segments and scatter plots.

To train this system without massive manual labeling, the team utilized synthetic data. They extended the FigureQA dataset with complex textures and random styling, ensuring the model could generalize to the messy, varied visuals found in real-world scientific papers.

Results and Evaluation

CHARTER was evaluated against a manually annotated set of 743 document pages, including web content and PubMed COVID-19 articles. The results demonstrated significant improvements over prior state-of-the-art methods:

  • Detection Accuracy: The system achieved an Average Precision (AP) of 98% for bar charts and 97.8% for pie charts.
  • Numerical Precision: In extracting actual values, CHARTER reached 60.3% accuracy for pie charts at a strict 5% error tolerance, a major leap over previous models.
  • Ablation Studies: The inclusion of heatmaps specifically improved pie chart angle extraction by up to 10% compared to using sector bounding boxes alone.

Conclusion and Future Work

CHARTER successfully demonstrates that a unified, heatmap-based approach can effectively bridge the gap between chart images and raw tabular data. While the current system faces some resolution limits and challenges with textured (cross-hatched) legends, it represents a significant step toward fully automated, high-precision data retrieval from scientific literature. Future iterations aim to move toward an even more end-to-end neural approach, reducing the reliance on logic-heavy post-processing.

Summary updated

BibTeX
@misc{shtok2021charter,
  author = {Joseph Shtok and Sivan Harary and Ophir Azulai and Adi Raz Goldfarb and Assaf Arbelle and Leonid Karlinsky},
  title = {{CHARTER: heatmap-based multi-type chart data extraction}},
  year = {2021},
  eprint = {2111.14103},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2111.14103},
}
Figure