Related Experiment Video
Updated: Oct 22, 2025

Pore-scale Imaging and Characterization of Hydrocarbon Reservoir Rock Wettability at Subsurface Conditions Using X-ray Microtomography
Published on: October 21, 2018
ChemPix: automated recognition of hand-drawn hydrocarbon structures using deep learning
Hayley Weir1,2, Keiran Thompson1,2, Amelia Woodward1
1Department of Chemistry, Stanford University Stanford CA 94305 USA toddjmartinez@gmail.com.
ChemPix uses machine learning to recognize hand-drawn hydrocarbon structures from images, converting them into machine-readable data. This tool simplifies chemical structure input, making chemistry software more accessible.
Area of Science:
- Computational chemistry
- Machine learning applications in chemistry
- cheminformatics
Background:
- Current methods for inputting molecular structures into chemistry software demand specialized knowledge and resources.
- There is a need for user-friendly tools to bridge the gap between chemical drawings and digital representations.
Purpose of the Study:
- To develop ChemPix, an offline tool for recognizing hand-drawn hydrocarbon structures using machine learning.
- To simplify the process of converting chemical drawings into machine-readable formats like SMILES (Simplified Molecular Input Line Entry System).
Main Methods:
- A neural image captioning model, combining a convolutional neural network (CNN) encoder and a long short-term memory (LSTM) decoder, was employed.
- Training datasets were created using RDKit-generated molecular images with augmentations and a crowd-sourced set of hand-drawn structures.
- An ensemble approach, using a committee of neural networks, was utilized to improve prediction accuracy and confidence.
Main Results:
- The ensemble model achieved 76% accuracy in recognizing hand-drawn hydrocarbon structures.
- Considering the top 3 predictions increased the accuracy to 86%.
- The system provides a confidence value for each prediction based on the agreement within the network committee.
Conclusions:
- ChemPix effectively recognizes hand-drawn hydrocarbon structures, significantly lowering the barrier to entry for computational chemistry.
- The developed tool demonstrates the potential of machine learning in automating chemical structure representation.
- This approach enhances accessibility to chemistry software by removing the need for domain expertise or expensive tools for structure input.
Related Concept Videos
Structure of Alkanes
Hydrocarbons are the simplest organic compounds composed of carbons and hydrogens. Based on the bond order between carbons, the hydrocarbons are further classified into alkanes, alkenes, and alkynes.
Alkanes are the simplest hydrocarbons with sp3 hybrid carbon atoms....
Aromatic Hydrocarbon Anions: Structural Overview
Due to the absence of continuous...
Aromatic Hydrocarbon Cations: Structural Overview
Removing one hydrogen from the intervening CH2 group...
Fischer Projections
Molecular Models
Structures of Carboxylic Acid Derivatives
Carboxylic acid derivatives contain an acyl group attached to a heteroatom such as chlorine, oxygen, or nitrogen. The carbonyl carbon and oxygen are both sp2-hybridized with an unhybridized p orbital.
The three sp2 orbitals of the carbonyl carbon form three σ bonds, one each with the carbonyl oxygen, the α carbon, and the heteroatom, whereas the other two sp2 orbitals of the carbonyl oxygen are occupied by the lone pairs. Further, the...

