| Literature DB >> 32751155 |
Soumitra Samanta1, Steve O'Hagan2, Neil Swainston1, Timothy J Roberts1, Douglas B Kell1,3.
Abstract
Molecular similarity is an elusive but core "unsupervised" cheminformatics concept, yet different "fingerprint" encodings of molecular structures return very different similarity values, even when using the same similarity metric. Each encoding may be of value when applied to other problems with objective or target functions, implying that a priori none are "better" than the others, nor than encoding-free metrics such as maximum common substructure (MCSS). We here introduce a novel approach to molecular similarity, in the form of a variational autoencoder (VAE). This learns the joint distribution p(z|x) where z is a latent vector and x are the (same) input/output data. It takes the form of a "bowtie"-shaped artificial neural network. In the middle is a "bottleneck layer" or latent vector in which inputs are transformed into, and represented as, a vector of numbers (encoding), with a reverse process (decoding) seeking to return the SMILES string that was the input. We train a VAE on over six million druglike molecules and natural products (including over one million in the final holdout set). The VAE vector distances provide a rapid and novel metric for molecular similarity that is both easily and rapidly calculated. We describe the method and its application to a typical similarity problem in cheminformatics.Entities:
Keywords: SMILES; cheminformatics; deep learning; molecular similarity; variational autoencoder
Year: 2020 PMID: 32751155 PMCID: PMC7435890 DOI: 10.3390/molecules25153446
Source DB: PubMed Journal: Molecules ISSN: 1420-3049 Impact factor: 4.411
Tanimoto similarity to clozapine using nine different RDKit encodings and their ability to inhibit clozapine transport (data extracted from [26]). A shaded cell means that the molecule was not judged to be in the “top 50” using that encoding.
| Drug | % Inhiclozapine Uptake | TS Atom Pair | TS Avalon | TS Feat Morgan | TS Layered | TS MACCS | TS Morgan | TS Pattern | TS RDKit | TS Torsion |
|---|---|---|---|---|---|---|---|---|---|---|
| Olanzapine | 41 | 0.68 | 0.47 | 0.55 | 0.77 | 0.8 | 0.53 | 0.81 | 0.74 | 0.66 |
| Chlorpromazine | 75 | 0.53 | - | 0.35 | - | 0.66 | 0.3 | 0.74 | - | 0.33 |
| Quetiapine | 65 | 0.51 | 0.57 | 0.42 | 0.78 | - | 0.35 | 0.8 | - | 0.48 |
| Prazosin | 94 | - | - | - | - | - | - | - | - | 0.37 |
| Lamotrigine | 26 | - | - | - | - | - | - | - | - | - |
| Indatraline | 35 | - | - | - | - | - | - | - | - | - |
| Veraapamil | 83 | - | - | - | - | - | - | - | - | - |
| Rhein | 39 | - | - | - | - | - | - | - | - | - |
Figure 1Tanimoto similarities of various molecules to clozapine using the Torsion encoding from RDKit.
Figure 2Two kinds of neural architecture. (A) A classical multilayer perceptron representing a supervised learning system in which molecules encoded as SMILES strings can be used as paired inputs with outputs of interest (whether a classification or a regression). The trained model may then be interrogated with further molecules and the output ascertained. (B) A variational autoencoder, is a supervised means of fitting distributions of discrete models in a way that reconstructs them via a vector in a latent space. (C) The variational autoencoder (VAE) architecture used in the present work.
Data partitioning of training, validation and test sets, and their generalization.
| Data Partition | Total Samples | Valid Reconstructed Samples | Accuracy |
|---|---|---|---|
| Train | 3,101,207 | 2,964,749 | 95.60 |
| Validation | 1,240,483 | 1,170,827 | 94.38 |
| Test | 1,860,725 | 1,757,079 | 94.42 |
Figure 3Top similarities between drugs and metabolites as judged by a fingerprint encoding (RDKit patterned) and our new VAE-Sim metric. (A) Rank ordering. (B) Heatmap for Tanimoto similarities using RDKit patterned encoding. (C) Heatmap of Euclidean similarities E-Sim (Equation (1)) for VAE-Sim in the 100-dimensional latent vector). (D) Heatmap of Euclidean similarities EU-Sim (Equation (2)) for VAE-Sim in 2-dimensional uniform manifold approximation and projection (UMAP) space.
Figure 4Comparison of similarities between two RDKit fingerprint methods and VAE-Sim Using Tanimoto similarity for fingerprints and Euclidean d100 similarity for VAE-Sim. (A) Patterned encoding. (B) MACCS encoding.
Figure 5Similarity of drugs to clozapine as judged by the VAE. (A) Rank order of Euclidean similarity in 100 dimensions (E-Sim) or two UMAP dimensions (EU-Sim) as in Figure 3. Some of the “most similar” drugs are labelled, as are some of those in Table 1. (B) Structures of some of the drugs mentioned, together with their Euclidean distances as judged by VAE-Sim.