Seedlabs
Source research

DECIMER-Segmentation: Automated extraction of chemical structure depictions from scientific literature

Kohulan Rajan, Henning Otto Brinkhaus, Maria Sorokina, Achim Zielesny, Christoph Steinbeck · 2021 · 33 citationsRead the paper

Chemistry looks back at many decades of publications on chemical compounds, their structures and properties, in scientific articles. Liberating this knowledge (semi-)automatically and making it available to the world in open-access databases is a current challenge. Apart from mining textual information, Optical Chemical Structure Recognition (OCSR), the translation of an image of a chemical structure into a machine-readable representation, is part of this workflow. As the OCSR process requires an image containing a chemical structure, there is a need for a publicly available tool that automatically recognizes and segments chemical structure depictions from scientific publications. This is especially important for older documents which are only available as scanned pages. Here, we present DECIMER (Deep lEarning for Chemical IMagE Recognition) Segmentation, the first open-source, deep learning-based tool for automated recognition and segmentation of chemical structures from the scientific literature. The workflow is divided into two main stages. During the detection step, a deep learning model recognizes chemical structure depictions and creates masks which define their positions on the input page. Subsequently, potentially incomplete masks are expanded in a post-processing workflow. The performance of DECIMER Segmentation has been manually evaluated on three sets of publications from different publishers. The approach operates on bitmap images of journal pages to be applicable also to older articles before the introduction of vector images in PDFs. By making the source code and the trained model publicly available, we hope to contribute to the development of comprehensive chemical data extraction workflows. In order to facilitate access to DECIMER Segmentation, we also developed a web application. The web application, available at https://decimer.ai , lets the user upload a pdf file and retrieve the segmented structure depictions.

What the full text shows

Working prototype
  • Complete segmentation of chemical structures increased significantly with the addition of mask expansion. — 99.8% complete vs. 81.6% without expansion (Evaluated on 887 segments from Molecules, Phytochemistry, and Journal of Natural Products)
  • The model successfully detected the majority of chemical structures across different publishers. — 91.3% average detection rate (Evaluated on 75 articles from three different journals)
  • Mask expansion increased the inclusion of non-structure objects (e.g., labels, arrows). — 11.2% of segments contained additional objects (Final output with mask expansion)
  • Processing speed for full articles. — 1.89 min per article (avg 10.4 pages) (Parallel processing on four threads)
Setup
Model trained on 1,820 pages (9,992 annotated regions) from the Journal of Natural Products; validated on 75 articles (777 pages) from three different journals.
How
A Mask R-CNN deep learning model was trained to detect chemical structures and generate binary masks, followed by a custom mask expansion algorithm using binarization, binary dilation, and seed-based recursive expansion. The system accepts PDF inputs, converts pages to images, and outputs cropped grayscale images of the segmented structures.
Limitations
Mask expansion can lead to the inclusion of surrounding labels or reaction arrows. · Binary dilation may connect nearby unrelated objects if the kernel is too large. · Detection accuracy is dependent on the training dataset size.

Summarized by Gemma 4 from the open-access full text · 30 Oct 2026. Read it