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

Structured Extraction of Diffraction Data from Covalent Organic Frameworks

Shenghan Gao, Zhiling ZhengarXiv 2026

TL;DR

Researchers have developed a hybrid pipeline that combines the layout-understanding capabilities of Vision Large Language Models (V-LLMs) with the geometric precision of classical computer vision to "resurrect" experimental data from scientific figures. Applied to thousands of articles on Covalent Organic Frameworks (COFs), the system extracted over 11,000 calibrated Powder X-ray Diffraction (PXRD) curves, creating the open-access COF-PEAK database and enabling large-scale analysis of material crystallinity that was previously impossible.

What Problem Does This Paper Address?

Powder X-ray diffraction (PXRD) is the "gold standard" for identifying the structure and crystallinity of materials like COFs. However, the vast majority of this data is "dead"—trapped as static images in PDF publications. While text mining can extract specific peak values mentioned in the prose, these lists are often incomplete and lack critical information about peak shape and relative intensity.

The challenge for automation is that scientific figures are messy. They often feature "stacked" curves, multiple panels, insets, and complex labels that traditional computer vision (CV) struggles to parse. Conversely, while humans can digitize these manually using tools like WebPlotDigitizer, it doesn't scale to the thousands of papers published every year.

Figure 1. Peak positions reported in the text compared with the curves in the figures. (a) Figure 1 of ref. [8], in which five of six panels show PXRD patterns, 30 curves of one COF in all; the article’s main text, however, reports no 2θ value for this COF and describes the outlined panel f only qualitatively. (b) Number of 2θ values in the text for each of 668 materials (447 papers); purple bars mark materials with three or fewer angles. (c) Share of each material’s plotted 2θ range above the highest angle named in the text, a measure of unreported range, not of omitted peaks; the dashed line marks the median. Panel a is adapted from Figure 1 of ref. [8] (© 2022 The Authors) under a CC BY 4.0 license, with panel f outlined and the text box added.

Methods

The authors propose a "division of labor" between AI and traditional algorithms:

  1. Vision LLM (GPT-5.5): Acts as the "eyes" and "brain" of the operation. It identifies the location of diffraction panels on a page, counts the curves, reads the x-axis tick values, and provides a "coarse anchor"—a rough sketch of each curve's path.
  2. Classical Computer Vision (OpenCV): Provides the "surgical precision." It detects the exact pixel coordinates of the plot frame, calibrates the axis by matching LLM-read values to detected tick marks, and performs "ink snapping." This process refines the LLM's rough sketch by snapping it onto the actual dark pixels (the "ink") of the curve.
  3. Acceptance Gates: A set of automated fidelity checks (precision, recall, and confidence) ensures that the extracted trace actually matches the original image. If the LLM's proposal contradicts the pixels, the data is rejected.
Figure 2. Overview of the extraction pipeline, from articles to released curves. (a) The corpus, from 3,954 processed articles to the 2,554 papers kept after panel location. (b) Curve extraction, with LLM tasks in blue, CV steps in green, and inputs in gray. The LLM locates each candidate panel and reports its plot box, curves, x-axis tick values, and anchors; CV detects the plot frame (the drawn axis rectangle), fits the pixel-to-2θ mapping, and snaps each anchor onto the ink (ink snapping). Axis arbitration (dashed outline) runs only when no calibration fit is accepted; the acceptance gates check each trace against the pixels. (c) Outcomes of imaging mining workflow, in which 4,664 stored figures yield 11,445 calibrated curves.

Datasets

  • Primary Corpus: 3,954 COF-related articles sourced from Web of Science.
  • COF-PEAK Database: The resulting dataset containing 11,445 calibrated diffraction curves extracted from 2,554 papers.
  • Evaluation Benchmarks:
    • Hand Digitization: 60 panels digitized manually by a human operator to measure real-world accuracy.
  • Synthetic Panels: 60 computer-generated panels with known "ground truth" peak positions to test the pipeline's numerical limits.
  • Author Text: Comparison against peak lists extracted from the same papers' text.

Key Insights and Ideas

  • LLMs are "Blind" but Smart: The authors' ablation study revealed that while LLMs are essential for understanding complex layouts (finding panels and counting curves), they lack the geometric precision needed for calibration. They are "blind" to the sub-pixel details required for scientific accuracy.
  • CV is Precise but "Dumb": Classical CV excels at finding lines and ticks but fails when figures are crowded or unconventional. The hybrid approach uses the LLM to "guide" the CV to the right spot.
  • The "Unreported Range" Problem: A striking finding was that for the median material, the published text names no diffraction angles in the upper 50.6% of the plotted range. This highlights how much experimental evidence is lost when we rely solely on text mining.
  • Crystallinity Tracking: By digitizing full curves, the researchers could track "peak prominence"—a marker of how well-ordered a crystal is—across different synthesis conditions (like reaction time and temperature), a feat impossible with simple peak lists.

Key Results

  • Scale: The pipeline processed nearly 4,000 articles to yield 11,445 high-quality curves.
  • Accuracy: Extracted peak positions differed from human-digitized versions by a median of only 0.07°. Against synthetic ground truth, the error was even lower (0.03°).
  • Efficiency: Excluding the initial panel location, the processing took a median of under 1 minute per figure attempt.
  • Discovery: The team identified "synthesis ladders" in 51 papers, statistically confirming that increasing reaction time or temperature generally improves COF crystallinity.

Limitations and Future Work

  • Inset Handling: The system occasionally struggles with curves inside small insets, sometimes incorrectly calibrating them using the main panel's axis.
  • Text-Figure Linking: About 10% of curves showed large discrepancies (>5°) with the text, often due to errors in the separate AI workflow used to parse the text or ambiguous naming of materials in the papers.
  • Future Directions: The authors suggest this "division of labor" model could be applied to other types of scientific data, such as UV-Vis spectra or voltammograms. They envision these digitized curves feeding into "agentic AI systems" for autonomous scientific discovery and predictive material synthesis.

Summary updated

BibTeX
@misc{gao2026structured,
  author = {Shenghan Gao and Zhiling Zheng},
  title = {{Structured Extraction of Diffraction Data from Covalent Organic Frameworks}},
  year = {2026},
  eprint = {2611.23680},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.23680},
}
Figure