Skip to main content
QUICK REVIEW

[Paper Review] IMG2SMI: Translating Molecular Structure Images to Simplified Molecular-input Line-entry System

Daniel Campos, Heng Ji|arXiv (Cornell University)|Sep 3, 2021
Biomedical Text Mining and OntologiesBiochemistry, Genetics and Molecular Biology52 references9 citations
TL;DR

IMG2SMI proposes a deep learning model that translates 2D molecular structure images into SMILES strings using a ResNet-101 backbone for feature extraction and a Transformer-based encoder-decoder architecture for sequence generation. It achieves a 163% improvement in molecular similarity prediction over OSRA, with a MACCS Tanimoto similarity of 0.9475, and introduces a new 81-million-molecule dataset (MOLCAP) for benchmarking.

ABSTRACT

Like many scientific fields, new chemistry literature has grown at a staggering pace, with thousands of papers released every month. A large portion of chemistry literature focuses on new molecules and reactions between molecules. Most vital information is conveyed through 2-D images of molecules, representing the underlying molecules or reactions described. In order to ensure reproducible and machine-readable molecule representations, text-based molecule descriptors like SMILES and SELFIES were created. These text-based molecule representations provide molecule generation but are unfortunately rarely present in published literature. In the absence of molecule descriptors, the generation of molecule descriptors from the 2-D images present in the literature is necessary to understand chemistry literature at scale. Successful methods such as Optical Structure Recognition Application (OSRA), and ChemSchematicResolver are able to extract the locations of molecules structures in chemistry papers and infer molecular descriptions and reactions. While effective, existing systems expect chemists to correct outputs, making them unsuitable for unsupervised large-scale data mining. Leveraging the task formulation of image captioning introduced by DECIMER, we introduce IMG2SMI, a model which leverages Deep Residual Networks for image feature extraction and an encoder-decoder Transformer layers for molecule description generation. Unlike previous Neural Network-based systems, IMG2SMI builds around the task of molecule description generation, which enables IMG2SMI to outperform OSRA-based systems by 163% in molecule similarity prediction as measured by the molecular MACCS Fingerprint Tanimoto Similarity. Additionally, to facilitate further research on this task, we release a new molecule prediction dataset. including 81 million molecules for molecule description generation

Motivation & Objective

  • Address the challenge of extracting machine-readable molecule representations from chemistry literature, which is predominantly visual and lacks SMILES strings.
  • Overcome the limitations of rule-based systems like OSRA and ChemSchematicResolver that require manual corrections and are unsuitable for large-scale, unsupervised mining.
  • Develop an end-to-end neural network model capable of generating accurate SMILES strings directly from molecular structure images.
  • Provide a large-scale, publicly available dataset (MOLCAP) to support future research in chemical document analysis and molecule representation learning.

Proposed method

  • Utilizes a ResNet-101 backbone to extract visual features from 2D molecular structure images.
  • Employs a Transformer-based encoder-decoder architecture to generate SMILES strings from the extracted image features.
  • Leverages the image captioning paradigm, adapting it to the task of molecule description generation.
  • Trains the model on a synthetic dataset of 81 million molecules generated from SMILES strings using RDKIT to vary image style, rotation, and layout.
  • Applies data augmentation techniques such as cropping, rotation, and noise injection to improve robustness to distribution shift.
  • Combines the model with existing document segmentation tools to enable end-to-end molecule extraction from scientific papers.

Experimental results

Research questions

  • RQ1Can a deep learning model trained on synthetic molecular images generate accurate SMILES strings without relying on handcrafted rules?
  • RQ2How does the performance of a vision-language model for molecule description compare to traditional rule-based systems like OSRA in terms of molecular similarity?
  • RQ3To what extent does data augmentation and model architecture choice improve generalization across diverse molecular structures and image variations?
  • RQ4Can a large-scale, publicly released dataset of molecule images and SMILES pairs enable better pre-training and transfer learning in chemical AI?

Key findings

  • IMG2SMI outperforms OSRA by 163% in molecular similarity prediction using the MACCS Tanimoto similarity metric, achieving a score of 0.9475.
  • The model achieves a ROUGE-L score of 0.63, indicating strong recall of tokens, though precision is low due to inclusion of extra or incorrect tokens.
  • Exact match accuracy is only 7.24%, indicating a significant gap between semantic similarity and syntactic correctness.
  • Fingerprint-based metrics (MACCS, Morgan, Path) show consistent directional trends but differ in magnitude, with MACCS being less sensitive due to fewer substructures.
  • The model performs poorly on short molecules (<40 tokens), where traditional systems like OSRA are more accurate, suggesting a need for hybrid approaches.
  • The release of the MOLCAP dataset—comprising 81 million molecule-image pairs—provides a large-scale benchmark for future research in chemical document AI.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.