File size: 1,603 Bytes
ca48c71
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Transformer-CNN for QSAR/QSPR Modeling

## Resume
Transformer-CNN is a hybrid deep learning architecture designed for chemical property prediction directly from SMILES strings. It combines a Transformer encoder to generate rich contextual character embeddings with a 1D Convolutional Neural Network (CharNN) to extract local chemical motifs.

### Common Use Cases:
* **Antimicrobial Activity Prediction (MIC90/MIC50):** Classifying molecules into active or inactive compounds.
* **ADMET & Toxicity Profiling:** Predicting mutagenicity, solubility, and pharmacokinetic properties.
* **Virtual Screening:** Rapidly scoring compound libraries directly from SMILES without pre-computing molecular descriptors.

## Content

### 1. Core Architecture
The model processes tokenized SMILES strings through two sequential stages:
* **Transformer Encoder:** Applies multi-head self-attention across the SMILES sequence to capture long-range dependencies (such as ring closures and branching).
* **1D Convolutional Block (CharNN):** Applies parallel convolutional filters of varying kernel sizes followed by global max-pooling to detect functional groups and substructures.

### 2. SMILES Data Augmentation
Using RDKit, a single molecule can be represented by multiple valid non-canonical SMILES strings. Generating multiple random SMILES per compound during training acts as a powerful regularization technique for small datasets.

### References
* Karpov, P., Godin, G., & Tetko, I. V. (2020). *Transformer-CNN: Swiss knife for QSAR modeling and interpretation*. Journal of Cheminformatics.