MolGrapher: Graph-based Visual Recognition of Chemical Structures
About
The automatic analysis of chemical literature has immense potential to accelerate the discovery of new materials and drugs. Much of the critical information in patent documents and scientific articles is contained in figures, depicting the molecule structures. However, automatically parsing the exact chemical structure is a formidable challenge, due to the amount of detailed information, the diversity of drawing styles, and the need for training data. In this work, we introduce MolGrapher to recognize chemical structures visually. First, a deep keypoint detector detects the atoms. Second, we treat all candidate atoms and bonds as nodes and put them in a graph. This construct allows a natural graph representation of the molecule. Last, we classify atom and bond nodes in the graph with a Graph Neural Network. To address the lack of real training data, we propose a synthetic data generation pipeline producing diverse and realistic results. In addition, we introduce a large-scale benchmark of annotated real molecule images, USPTO-30K, to spur research on this critical topic. Extensive experiments on five datasets show that our approach significantly outperforms classical and learning-based methods in most settings. Code, models, and datasets are available.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Molecular structure recognition | JPO (450) | Accuracy67.5 | 19 | |
| Optical Chemical Structure Recognition | UOB (5740) | Exact Match Accuracy94.9 | 12 | |
| Optical Chemical Structure Recognition | CLEF 992 | Exact Match Accuracy90.5 | 12 | |
| Optical Chemical Structure Recognition | USPTO-10K | Accuracy (Exact Match)93.3 | 12 | |
| Optical Chemical Structure Recognition | WildMol-10K | Exact Match Accuracy45.5 | 12 | |
| Optical Chemical Structure Recognition | USPTO (5719) | Exact Match Accuracy91.5 | 12 | |
| Optical Chemical Structure Recognition | Indigo 5719 | Exact Match Accuracy76.4 | 9 | |
| Optical Chemical Structure Recognition | ChemDraw 5719 | Exact Match Accuracy76.5 | 9 | |
| Optical Chemical Structure Recognition | ACS 331 | Exact Match Accuracy41.4 | 9 | |
| Optical Chemical Structure Recognition | Staker 50000 | Exact Match Accuracy0.00e+0 | 9 |