SciFig2Data: A Workflow for Recovering Structured Data from Scientific Figures

Xinhe Wu, Yicheng Ye, Yadong JinarXiv 2026

TL;DR

Humanity’s collective experimental knowledge is largely trapped as static pixels inside academic PDFs, making it invisible to modern machine learning. SciFig2Data is an automated engineering pipeline that hunts through thousands of papers, slices complex multi-panel figures into individual charts, extracts the underlying numbers using vision-language models, and reconnects those numbers to their experimental context. It turns dead graphics back into live, structured datasets ready for AI-driven discovery.

What Problem Does This Paper Address?

If you want to train an AI model to predict nanoparticle toxicity or design better mRNA delivery vehicles, you need massive amounts of structured tabular data. Yet, decades of experimental results aren't sitting in neat CSV files—they are locked away as line plots and bar charts inside scholarly PDFs.

You might think, "Just throw a Multimodal Large Language Model (MLLM) at the page!" Unfortunately, scientific figures are rarely simple. They are usually compound figures—dense visual collages mixing Panels A through F, combining microscopy images with overlapping scatter plots and tiny logarithmic axes. Feeding a whole compound figure directly into an MLLM creates visual interference, leading to hallucinated numbers and missed data series. Furthermore, raw numbers ("73.5%") are scientifically useless without their experimental context (Which cell line? What assay? How many hours?), which usually lives separately in the figure caption. Recovering data at literature scale requires an end-to-end system that handles layout, visual decluttering, numerical reading, and context-matching all at once.

Methods

Instead of relying on a single magic model, the authors built a six-stage assembly line that progressively filters and simplifies visual data before asking an MLLM to do the heavy lifting.

  1. Layout Detection: PDF pages are scanned using a standard DocLayout-YOLO detector to find figures, tables, and captions, adding padding so peripheral axis labels aren't accidentally guillotine-cropped.
  2. Pre-Decomposition Semantic Filtering: To avoid wasting compute on schematic diagrams or pure microscopy, Tesseract OCR reads text horizontally and rotated 90° (catching vertical axes). A figure only survives if it contains both an independent variable keyword (e.g., "dose") and a dependent readout keyword (e.g., "viability").
  3. Compound Figure Decomposition: Retained figures are sliced into individual panels (A, B, C...) using a pretrained YOLOv2 subfigure separator. What’s new here is the authors' post-processing: they estimate visual complexity using Canny edge density to adaptively expand tight bounding boxes (saving cut-off tick labels) and geometrically sort panels to restore natural top-to-bottom, left-to-right reading order.
  4. Panel Filtering & Chart Classification: Separated panels get a second, more relaxed OCR check (needing only one target keyword, in case panels share axes) and are categorized by a fine-tuned Swin Transformer (Swin-chart) into five chart types (horizontal/vertical bar, line, scatter, scatter-line). Non-charts are dropped.
  5. Instruction-Guided Reconstruction: Surviving charts go to an MLLM (gemini-3.1-pro) paired with custom geometric prompts—telling it, for instance, to anchor on explicit marker shapes rather than interpolated lines, or to verify logarithmic scaling.
  6. Metadata Integration: Finally, the resulting Markdown tables are merged with experimental conditions parsed from the figure captions, creating complete, self-contained scientific records.
Figure 2: Workflow execution on an LNP-mediated mRNA delivery study from Science Advances. The pipeline handles heterogeneous subfigure formats, identifies a bar chart (Panel E, Spleen), and supports numerical reconstruction from bar charts enriched with formulation, organ, and dosage metadata.

Datasets

Rather than introducing a synthetic benchmark, the authors evaluated SciFig2Data in the wild on two pilot biomedical literature corpora:

  • Toxicology & Pharmacology Corpus: 605 scholarly PDF articles.
  • Lipid Nanoparticle (LNP) Corpus: 551 scholarly PDF articles.

No new training datasets were introduced; the system orchestrates existing pretrained detectors and classifiers alongside off-the-shelf MLLMs.

Key Insights and Ideas

  • Cascaded Gating Saves Compute: Literature harvesting has a massive class-imbalance problem—most figures in a paper aren't the quantitative charts you're looking for. Using cheap OCR keyword checks and lightweight vision classifiers before calling expensive MLLM APIs makes corpus-scale mining economically and computationally practical.
  • Strict Macro, Relaxed Micro Filtering: Requiring both X- and Y-axis keywords at the whole-figure level ruthlessly prunes irrelevant graphics early. Relaxing that rule to "either/or" after slicing the panels prevents throwing away valid sub-charts that rely on a neighbor's shared axis label.
  • Decluttering Unlocks MLLM Precision: By isolating a single panel and telling the MLLM what kind of chart it is looking at, the model can accurately handle tricky visual math—like translating pixel heights on a logarithmic axis ($10^0$ to $10^8$) without assuming linear spacing.

Key Results

The funnel statistics across the 1,156 total papers highlight just how selective the pipeline is:

Table 2: Batch-processing statistics across the toxicology and LNP literature corpora.
  • Across both corpora, 8,060 initial candidate figures were narrowed down to just 715 relevant, high-confidence quantitative charts—eliminating over 90% of visual noise before hitting the MLLM.
  • Once filtered, MLLM tabular extraction succeeded nearly 100% of the time: 468 out of 473 charts in Toxicology (98.9%) and 242 out of 242 charts in LNP (100%).
  • Qualitative case studies showed the system accurately recovering multi-series nanoparticle toxicity curves (e.g., $\text{ZnO}$ at $12.5\ \mu\text{g/mL}$ yielding $20.3\%$ viability) and separating quantitative spleen biodistribution bar charts from adjacent fluorescence images, automatically tagging rows with organ type, dosage, and administration time.

Limitations and Future Work

The authors are candid about what this engineering workflow doesn't yet solve:

  • No Ground-Truth Accuracy Audit Yet: While the pipeline mechanically succeeded in producing 710 structured tables, the paper does not systematically benchmark the exact numerical error rate of those extracted values against original author spreadsheets across the full corpora.
  • Limited Chart Vocabulary: It currently only handles five standard plot types; heatmaps, box plots, violin plots, and survival curves are left behind.
  • Lexicon Blind Spots: Because early filtering relies on domain-specific keyword lists, papers using unconventional terminology or obscure abbreviations get silently skipped.
  • Human Cleanup Still Required: Extracted tables still need human-in-the-loop post-processing to normalize chemical synonyms and merge related records. Future iterations aim to broaden chart types, move beyond rigid keyword lists, and bake in source-level provenance tracking.

Summary updated

Abstract

Scientific measurements reported in scholarly articles are often embedded in compound figures rather than available as machine-readable data. Recovering these measurements at literature scale requires an integrated workflow for figure localization, panel decomposition, chart identification, numerical reconstruction, and experimental context association. We present \textit{SciFig2Data}, an automated, high-throughput workflow for harvesting structured experimental data from scientific PDF repositories. The system integrates multi-scale document element detection, adaptive compound figure decomposition, two-stage OCR-based semantic filtering, Swin-based chart classification, and instruction-guided multimodal large language model (MLLM) reconstruction. It further incorporates directory-level batch execution, caching, and structured logging to support large-scale processing. We demonstrate the workflow on two biomedical literature corpora comprising 605 toxicology and pharmacology articles and 551 lipid nanoparticle (LNP) articles. The pipeline successfully reconstructed 468 and 242 tabular outputs from the respective corpora, illustrating its practical applicability to literature-scale scientific data harvesting. By associating reconstructed measurements with caption-derived experimental metadata, SciFig2Data provides a workflow for transforming graphical evidence in scholarly publications into structured, context-enriched data records for downstream AI4Science applications.
BibTeX
@misc{wu2026scifig,
  author = {Xinhe Wu and Yicheng Ye and Yadong Jin},
  title = {{SciFig2Data: A Workflow for Recovering Structured Data from Scientific Figures}},
  year = {2026},
  eprint = {2611.31787},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.31787},
}
Figure