Prediction of novel mouse TLR9 agonists using a random forest approach

BMC Mol Cell Biol. 2019 Dec 20;20(Suppl 2):56. doi: 10.1186/s12860-019-0241-0.


Background: Toll-like receptor 9 is a key innate immune receptor involved in detecting infectious diseases and cancer. TLR9 activates the innate immune system following the recognition of single-stranded DNA oligonucleotides (ODN) containing unmethylated cytosine-guanine (CpG) motifs. Due to the considerable number of rotatable bonds in ODNs, high-throughput in silico screening for potential TLR9 activity via traditional structure-based virtual screening approaches of CpG ODNs is challenging. In the current study, we present a machine learning based method for predicting novel mouse TLR9 (mTLR9) agonists based on features including count and position of motifs, the distance between the motifs and graphically derived features such as the radius of gyration and moment of Inertia. We employed an in-house experimentally validated dataset of 396 single-stranded synthetic ODNs, to compare the results of five machine learning algorithms. Since the dataset was highly imbalanced, we used an ensemble learning approach based on repeated random down-sampling.

Results: Using in-house experimental TLR9 activity data we found that random forest algorithm outperformed other algorithms for our dataset for TLR9 activity prediction. Therefore, we developed a cross-validated ensemble classifier of 20 random forest models. The average Matthews correlation coefficient and balanced accuracy of our ensemble classifier in test samples was 0.61 and 80.0%, respectively, with the maximum balanced accuracy and Matthews correlation coefficient of 87.0% and 0.75, respectively. We confirmed common sequence motifs including 'CC', 'GG','AG', 'CCCG' and 'CGGC' were overrepresented in mTLR9 agonists. Predictions on 6000 randomly generated ODNs were ranked and the top 100 ODNs were synthesized and experimentally tested for activity in a mTLR9 reporter cell assay, with 91 of the 100 selected ODNs showing high activity, confirming the accuracy of the model in predicting mTLR9 activity.

Conclusion: We combined repeated random down-sampling with random forest to overcome the class imbalance problem and achieved promising results. Overall, we showed that the random forest algorithm outperformed other machine learning algorithms including support vector machines, shrinkage discriminant analysis, gradient boosting machine and neural networks. Due to its predictive performance and simplicity, the random forest technique is a useful method for prediction of mTLR9 ODN agonists.

Keywords: CpG; Imbalanced data; Machine learning; Oligonucleotides; Random Forest; Toll-like receptor 9.

MeSH terms

  • Adjuvants, Immunologic / chemistry*
  • Adjuvants, Immunologic / pharmacology
  • Algorithms*
  • Amino Acid Motifs
  • Animals
  • Drug Discovery / methods*
  • Mice
  • Neural Networks, Computer
  • Oligodeoxyribonucleotides / chemistry*
  • Oligodeoxyribonucleotides / pharmacology
  • Reproducibility of Results
  • Structure-Activity Relationship
  • Toll-Like Receptor 9 / agonists*
  • Toll-Like Receptor 9 / chemistry
  • Toll-Like Receptor 9 / metabolism


  • Adjuvants, Immunologic
  • CPG-oligonucleotide
  • Oligodeoxyribonucleotides
  • Tlr9 protein, mouse
  • Toll-Like Receptor 9