When SMILES have Language: Drug Classification using Text Classification Methods on Drug SMILES Strings
Azmine Toushik Wasi, Šerbetar Karlo, Raima Islam, Taki Hasan Rafi, Dong-Kyu Chae
TL;DR
By reframing SMILES as text and applying a bag-of-$n$-gram representation to feed an MLP classifier, the study demonstrates that simple NLP approaches can compete with specialized cheminformatics methods for drug-class prediction. The work compares 1- to 5-$gram$ configurations and analyzes TopK token selection, showing a best trade-off around $TopK=1250$. Fingerprint-based models (Morgan, MACCS, AtomPair) provide a strong baseline, with some achieving higher accuracy and ROC-AUC than the NLP baseline. The findings highlight the practicality and accessibility of text-based classification for SMILES, and they offer a lightweight, interpretable alternative to more complex graph- or fingerprint-centric models.
Abstract
Complex chemical structures, like drugs, are usually defined by SMILES strings as a sequence of molecules and bonds. These SMILES strings are used in different complex machine learning-based drug-related research and representation works. Escaping from complex representation, in this work, we pose a single question: What if we treat drug SMILES as conventional sentences and engage in text classification for drug classification? Our experiments affirm the possibility with very competitive scores. The study explores the notion of viewing each atom and bond as sentence components, employing basic NLP methods to categorize drug types, proving that complex problems can also be solved with simpler perspectives. The data and code are available here: https://github.com/azminewasi/Drug-Classification-NLP.
