SubGrapher: Visual Fingerprinting of Chemical Structures
Lucas Morin, Gerhard Ingmar Meijer, Valéry Weber, Luc Van Gool, Peter W. J. Staar
TL;DR
SubGrapher tackles visual fingerprinting of chemical structures by directly converting molecule and Markush structure images into substructure-based fingerprints, bypassing full molecular graph reconstruction. It employs two Mask-RCNN segmentation networks to detect 1,534 functional groups and 27 carbon backbone patterns, builds a substructure-graph, and encodes it into a count-based continuous fingerprint (SVMF). This one-step image-to-fingerprint approach yields superior substructure detection and molecule/Markush retrieval performance compared with state-of-the-art OCSR and fingerprinting methods across multiple benchmarks, including Markush structures, and remains robust to real-world patent imagery. The authors provide synthetic training data, model weights, and benchmarks publicly, enabling practical retrieval tasks and downstream predictive analyses from image collections.
Abstract
Automatic extraction of chemical structures from scientific literature plays a crucial role in accelerating research across fields ranging from drug discovery to materials science. Patent documents, in particular, contain molecular information in visual form, which is often inaccessible through traditional text-based searches. In this work, we introduce SubGrapher, a method for the visual fingerprinting of chemical structure images. Unlike conventional Optical Chemical Structure Recognition (OCSR) models that attempt to reconstruct full molecular graphs, SubGrapher focuses on extracting molecular fingerprints directly from chemical structure images. Using learning-based instance segmentation, SubGrapher identifies functional groups and carbon backbones, constructing a substructure-based fingerprint that enables chemical structure retrieval. Our approach is evaluated against state-of-the-art OCSR and fingerprinting methods, demonstrating superior retrieval performance and robustness across diverse molecular depictions. The dataset, models, and code are publicly available.
