TY - JOUR
T1 - ChemScraper
T2 - leveraging PDF graphics instructions for molecular diagram parsing
AU - Shah, Ayush Kumar
AU - Amador, Bryan
AU - Dey, Abhisek
AU - Creekmore, Ming
AU - Ocampo, Blake
AU - Denmark, Scott
AU - Zanibbi, Richard
N1 - Publisher Copyright:
© The Author(s), under exclusive licence to Springer-Verlag GmbH Germany, part of Springer Nature 2024.
PY - 2024/9
Y1 - 2024/9
N2 - Most molecular diagram parsers recover chemical structure from raster images (e.g., PNGs). However, many PDFs include commands giving explicit locations and shapes for characters, lines, and polygons. We present a new parser that uses these born-digital PDF primitives as input. The parsing model is fast and accurate, and does not require GPUs, Optical Character Recognition (OCR), or vectorization. We use the parser to annotate raster images and then train a new multi-task neural network for recognizing molecules in raster images. We evaluate our parsers using SMILES and standard benchmarks, along with a novel evaluation protocol comparing molecular graphs directly that supports automatic error compilation and reveals errors missed by SMILES-based evaluation. On the synthetic USPTO benchmark, our born-digital parser obtains a recognition rate of 98.4% (1% higher than previous models) and our relatively simple neural parser for raster images obtains a rate of 85% using less training data than existing neural approaches (thousands vs. millions of molecules).
AB - Most molecular diagram parsers recover chemical structure from raster images (e.g., PNGs). However, many PDFs include commands giving explicit locations and shapes for characters, lines, and polygons. We present a new parser that uses these born-digital PDF primitives as input. The parsing model is fast and accurate, and does not require GPUs, Optical Character Recognition (OCR), or vectorization. We use the parser to annotate raster images and then train a new multi-task neural network for recognizing molecules in raster images. We evaluate our parsers using SMILES and standard benchmarks, along with a novel evaluation protocol comparing molecular graphs directly that supports automatic error compilation and reveals errors missed by SMILES-based evaluation. On the synthetic USPTO benchmark, our born-digital parser obtains a recognition rate of 98.4% (1% higher than previous models) and our relatively simple neural parser for raster images obtains a rate of 85% using less training data than existing neural approaches (thousands vs. millions of molecules).
KW - Chemoinformatics
KW - Data generation
KW - Evaluation
KW - Graphics recognition
KW - PDF
UR - http://www.scopus.com/inward/record.url?scp=85197665002&partnerID=8YFLogxK
UR - http://www.scopus.com/inward/citedby.url?scp=85197665002&partnerID=8YFLogxK
U2 - 10.1007/s10032-024-00486-7
DO - 10.1007/s10032-024-00486-7
M3 - Article
AN - SCOPUS:85197665002
SN - 1433-2833
VL - 27
SP - 395
EP - 414
JO - International Journal on Document Analysis and Recognition
JF - International Journal on Document Analysis and Recognition
IS - 3
ER -