
Why we need generative AI in drug discovery?
As conventional approaches cannot efficiently explore the chemical space of 60 billion possible drug like molecules
The drug discovery process
We explained the different steps in drug discovery
Hit identification methods
How a new drug is identified for a specific condition
Workflow of Virtual Screening
We explained the conventional computational methods of drug discovery
What is AI, ML, DL and Gen AI?
We talked about the the AI – ML – DL – GenAI hierarchy
Workflow of a Gen AI model (LSTM) for de novo drug design
We explained how an a general AI workflow for a de novo drug design work showing LSTM as basic example
How Gen AI models learn Chemistry?
We talked about how AI models learn chemistry. How data is collected, prepared and processed by an AI model
Difference between Discriminative and Generative AI models
We discussed the differences between Discriminative and Generative AI models and its use cases in drug discovery
What is a Neural Network?
We explained what is a neural network and how does it work similar to neurons
How does NN learn and understand the data?
How NN process and understand the input data and learn from it
What are weights and biases?
We explained what are weights and biases and why it is important for learning of the NN
What is an RNN?
We talked about RNN in detail and how is it different from ANN
What are the key components of an unfolded RNN?
We talked about a basic RNN unit, unfolded it and explained its individual components
What are the pros and cons of RNN?
What are the advantages and disadvantages of RNN models
How we will train an LSTM (an improved version of RNN) model?
We explained how we will teach chemistry to LSTM model (an improved version of RNN)
What is active learning?
We thoroughly talked about AL and how it will be used to finetune our LSTM model
What is LSTM?
We explained LSTM and its underlying mechanism in detail
How molecules are presented to Machines?
We explained the different methods used for molecules representations
What are SMILES?
We talked about SMILES in detail
What is an fingerprints?
We talked about molecular fingerprints
How is a SMILES dataset processed?
We talked about general processing of SMILES
Drop Null
Drop duplicates
Standardize
Length filter
QED filter
The following topics are covered in this lecture
1. Load libraries
2. Load CSV
3. Print head() and tail()
4. Drop null and duplicates
5. Get first 10 rows and assign new dataframe
6. Print specific row and column
7. Print description of the dataframe
8. Drop specific row and column
9. Add a new column to the dataframe
10. Rename a column
11. Visualize a molecule
12. Check validity of molecule
13. Cannonicalize molecule
14. Calculate morgan fingerprints
15. Visualize substructures
16. calculate morgan fingerprints
16.1 Visualize substructures
17. Basic molecular descriptors
18. Add mol column
19. MACCS fingerprints and add it to the df
20. Avalon fingerprints
21. Atom pair fingerprints
22. Topological Torsion fingerprints
23. RDkit fingerprints
24. Tanimoto similarity
1. Load libraries
2. Load CSV
3. Print head() and tail()
4. Drop null and duplicates
5. Get first 10 rows and assign new dataframe
6. Print specific row and column
7. Print description of the dataframe
8. Drop specific row and column
9. Add a new column to the dataframe
10. Rename a column
11. Visualize a molecule
12. Check validity of molecule
13. Cannonicalize molecule
14. Calculate morgan fingerprints
15. Visualize substructures
16. calculate morgan fingerprints
16.1 Visualize substructures
17. Basic molecular descriptors
18. Add mol column
19. MACCS fingerprints and add it to the df
20. Avalon fingerprints
21. Atom pair fingerprints
22. Topological Torsion fingerprints
23. RDkit fingerprints
24. Tanimoto similarity
1. Load libraries
2. Load CSV
3. Print head() and tail()
4. Drop null and duplicates
5. Get first 10 rows and assign new dataframe
6. Print specific row and column
7. Print description of the dataframe
8. Drop specific row and column
9. Add a new column to the dataframe
10. Rename a column
11. Visualize a molecule
12. Check validity of molecule
13. Cannonicalize molecule
14. Calculate morgan fingerprints
15. Visualize substructures
16. calculate morgan fingerprints
16.1 Visualize substructures
17. Basic molecular descriptors
18. Add mol column
19. MACCS fingerprints and add it to the df
20. Avalon fingerprints
21. Atom pair fingerprints
22. Topological Torsion fingerprints
23. RDkit fingerprints
24. Tanimoto similarity
In this lecture, we focused on streamlining the preparation of the ChEMBL dataset for training an LSTM model. We emphasized modular code design using Python functions to handle data loading, cleaning, feature engineering, and filtering. This approach ensures reproducibility, efficiency, and robustness, especially for bioinformatics workflows involving large CSV files (e.g., millions of compounds).
Key optimizations included proper error handling with try-except blocks, pandas for data manipulation, and NumPy for sequence lengths, reducing runtime from hours to minutes on standard hardware.
Introduced Modular Functions for Workflow Efficiency
CSV File Loading with Error Handling
Removing Null Values
Deduplication Process
Adding Length Column
Filtering by Sequence Length
End-to-End Pipeline Integration
Performance Tips and Best Practices
This lecture is a continuation of lecture_07:
In lecture 07-08 we focused on streamlining the preparation of the ChEMBL dataset for training an LSTM model. We emphasized modular code design using Python functions to handle data loading, cleaning, feature engineering, and filtering. This approach ensures reproducibility, efficiency, and robustness, especially for bioinformatics workflows involving large CSV files (e.g., millions of compounds).
Key optimizations included proper error handling with try-except blocks, pandas for data manipulation, and NumPy for sequence lengths, reducing runtime from hours to minutes on standard hardware.
Introduced Modular Functions for Workflow Efficiency
CSV File Loading with Error Handling
Removing Null Values
Deduplication Process
Adding Length Column
Filtering by Sequence Length
End-to-End Pipeline Integration
Performance Tips and Best Practices
In this lecture, we preprocess the raw ChEMBL dataset of bioactive molecules, encode SMILES strings into integers for a seq2seq deep learning model, and train a fast GRU architecture (chosen over LSTM for quicker training with fewer gates—students should compare both).
Key Steps
Load ChEMBL; drop nulls/duplicates.
Filter: SMILES length 50-120, QED > 0.6.
Build char2index/index2char vocab (~50 tokens).
Encode SMILES into input-target pairs (shifted sequences).
GRU model: Embedding + GRU(256) + Dense(vocab_size).
Train 50-100 epochs; save best model.
In this lecture, we leverage the pre-trained Gated Recurrent Unit (GRU) model from the previous session to generate novel molecular structures represented as SMILES strings. These generated molecules undergo rigorous evaluation using key metrics, validity (ensuring correct chemical syntax and parsability), Quantitative Estimate of Drug-likeness (QED, scoring similarity to known oral drugs based on properties like molecular weight, logP, and hydrogen bond donors/acceptors), and Synthetic Accessibility (SA, assessing ease of synthesis on a 1-10 scale) to filter for candidates meeting basic drug-like criteria.
in this lecture, we use active learning to fine-tune a pre-trained Gated Recurrent Unit (GRU) model for generating molecules that target KRAS, a notoriously challenging oncoprotein in cancer drug discovery. Unlike passive training on static datasets, active learning creates a dynamic, iterative loop: Train → Generate → Evaluate → Select → Train. This back-and-forth cycle efficiently guides the model into the desired chemical space, maximizing data efficiency and focusing on high-value KRAS inhibitors with desirable properties like potency, selectivity, and synthesizability.
Why Active Learning Shines for Molecular Generation
Sample Efficiency: KRAS datasets are sparse and expensive to label (e.g., via wet-lab assays). Active learning queries only the most informative molecules, reducing oracle costs by 50-80% compared to random sampling.
Exploration-Exploitation Balance: It adapts to the model's uncertainty, exploring novel chemical spaces while exploiting known good regions.
Real-World Fit: Integrates seamlessly with cheminformatics tools (e.g., RDKit for validity checks, docking scores for binding affinity).
The Iterative Active Learning Cycle
Train: Fine-tune the GRU on an initial labeled dataset of KRAS binders/non-binders (e.g., from ChEMBL or internal screens).
Generate: Use the model to produce a batch of candidate SMILES strings, sampling from the learned distribution.
Evaluate: Score candidates on multiple criteria—e.g., predicted binding affinity (ΔGΔG), synthetic accessibility (SA score), novelty (Tanimoto similarity to training set), and validity.
Select: Apply an acquisition function to pick the top-k most uncertain or promising molecules (e.g., BALD for uncertainty or expected improvement).
Oracle Query & Retrain: Synthesize/test the selected molecules in silico/on lab (oracle), label them, and augment the dataset for the next training round.
Repeat 5-10 cycles until convergence (e.g., when generated molecules consistently score >7/10 on a KRAS inhibition metric).
This course explores how generative artificial intelligence is transforming de novo drug design and small molecules discovery. It introduces the fundamental principles behind generative AI-driven molecule generation using basic Deep Learning architectures such as Long Short Term Memory (LSTM) / / GRU (Gated Recurrent Units) trained on chemical representations like SMILES. Participants will learn how Long Short Term Memory models enable the creation of novel, synthetically feasible compounds with optimized physio chemical and pharmaco kinetic properties.
A key focus of this course will be on target specific fine tuning of the pre trained models where we will use active learning strategies that iteratively guide the model to generate molecules with desired pharmacological profile training based on physics based calculations such as structure–activity relationships. Through hands-on exercises, students will apply techniques that integrate molecular docking, property prediction, and active learning to refine compound generation toward specific therapeutic targets.
By the end of the course, participants will gain practical experience in building a generative AI model for de novo drug design from the scratch and sequential fine tuning of the pre trained models for target specific molecule generation with desired pharmacological profile implemented in real-world drug discovery workflows, bridging the gap between computational design and experimental validation.