Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Generative AI for Drug Discovery
Rating: 4.2 out of 5(3 ratings)
23 students

Generative AI for Drug Discovery

De novo Drug Design with Generative AI Models
Created byShahzeb Khan
Last updated 2/2026
Urdu

What you'll learn

  • Understand the drug discovery process and the role of AI in this field.
  • Understand the basics of LSTM (Long Short-Term Memory) / GRU (Gated Recurrent Units)
  • Implement a generative LSTM / GRU model for drug design using Python and relevant libraries.
  • Fine Tuning by Active Learning

Course content

1 section • 11 lectures • 12h 45m total length
  • Introduction to drug discovery process and ML58:46
    1. Why we need generative AI in drug discovery?

      1. As conventional approaches cannot efficiently explore the chemical space of 60 billion possible drug like molecules

    2. The drug discovery process

      1. We explained the different steps in drug discovery

    3. Hit identification methods

      1. How a new drug is identified for a specific condition

    4. Workflow of Virtual Screening

      1. We explained the conventional computational methods of drug discovery

    5. What is AI, ML, DL and Gen AI?

      1. We talked about the the AI – ML – DL – GenAI hierarchy

    6. Workflow of a Gen AI model (LSTM) for de novo drug design

      1. We explained how an a general AI workflow for a de novo drug design work showing LSTM as basic example

    7. How Gen AI models learn Chemistry?

      1. We talked about how AI models learn chemistry. How data is collected, prepared and processed by an AI model

    8. Difference between Discriminative and Generative AI models

      1. We discussed the differences between Discriminative and Generative AI models and its use cases in drug discovery

  • Introduction to Recurrent Neural Networks1:19:22
    1. What is a Neural Network?

      1. We explained what is a neural network and how does it work similar to neurons

    2. How does NN learn and understand the data?

      1. How NN process and understand the input data and learn from it

    3. What are weights and biases?

      1. We explained what are weights and biases and why it is important for learning of the NN

    4. What is an RNN?

      1. We talked about RNN in detail and how is it different from ANN

    5. What are the key components of an unfolded RNN?

      1. We talked about a basic RNN unit, unfolded it and explained its individual components

    6. What are the pros and cons of RNN?

      1. What are the advantages and disadvantages of RNN models

    7. How we will train an LSTM (an improved version of RNN) model?

      1. We explained how we will teach chemistry to LSTM model (an improved version of RNN)

    8. What is active learning?

      1. We thoroughly talked about AL and how it will be used to finetune our LSTM model

  • Introduction to Long Short Term Memory1:06:23
    1. What is LSTM?

      1. We explained LSTM and its underlying mechanism in detail

    2. How molecules are presented to Machines?

      1. We explained the different methods used for molecules representations

    3. What are SMILES?

      1. We talked about SMILES in detail

    4. What is an fingerprints?

      1. We talked about molecular fingerprints

    5. How is a SMILES dataset processed?

      1. We talked about general processing of SMILES

        1. Drop Null

        2. Drop duplicates

        3. Standardize

        4. Length filter

        5. QED filter

  • Introduction to Python/Rdkit Basics1:14:28

    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

  • rdkit basics part 011:03:32

    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

  • rdkit basics part 021:08:20

    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

  • Data Preparation for LSTM/GRU Pre-Training_011:11:54

    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

  • Data Preparation for LSTM/GRU Pre-Training_021:14:27

    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

  • Training a GRU Model1:10:48

    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.

  • De Novo Molecules Generation with Pre-Trained GRU1:08:40

    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.

  • Active Learning FienTuning of GRU1:08:40

    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

    1. Train: Fine-tune the GRU on an initial labeled dataset of KRAS binders/non-binders (e.g., from ChEMBL or internal screens).

    2. Generate: Use the model to produce a batch of candidate SMILES strings, sampling from the learned distribution.

    3. 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.

    4. Select: Apply an acquisition function to pick the top-k most uncertain or promising molecules (e.g., BALD for uncertainty or expected improvement).

    5. 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).

Requirements

  • Basic knowledge of Python, Machine Learning and CADD

Description

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.

Who this course is for:

  • Life Sciences, Bioinformaticians, Pharmaceutical Science, AI and Data science