CoolFace
Apppublic

Maryam-Taherzadeh/agentic-ai-mdm2-p53

sourceHugging Faceupdated 4mo agoView on Hugging Face
0likes
App README

Agentic AI Drug Discovery Workflow for MDM2โ€“p53 Inhibitor Prioritization

Live App

๐Ÿ”— Try the app on Hugging Face Spaces

Overview

This project is an end-to-end machine learning and agentic AI workflow for MDM2โ€“p53 inhibitor prioritization.

The workflow combines ChEMBL bioactivity data collection, RDKit molecular descriptor generation, machine learning model development, pIC50 prediction, Lipinski drug-likeness evaluation, rule-based candidate recommendation, and deployment as an interactive Streamlit application.

The current deployed version supports live pIC50 prediction directly from SMILES using RDKit molecular descriptors and an optimized XGBoost regression model.

The final goal is to build a decision-support system for early-stage AI-driven drug discovery that can later integrate classical machine learning, graph neural networks, SMILES-based transformer models, ADMET prediction, docking, and cloud-based deployment.


Featured Project Summary

Agentic-AI-Drug-Discovery-MDM2-P53 is an end-to-end agentic AI drug discovery workflow for MDM2โ€“p53 inhibitor prioritization. The project includes ChEMBL bioactivity processing, RDKit descriptor generation, live pIC50 prediction from SMILES using XGBoost, Lipinski drug-likeness evaluation, rule-based candidate recommendation, and a deployed Streamlit app on Hugging Face Spaces.


Project Pipeline

This project is organized into 7 main steps.

Part 01 โ€” ChEMBL Bioactivity Data Collection

Bioactivity data for MDM2 inhibitors was collected from ChEMBL.

The dataset includes compounds with reported IC50 values against the MDM2 target. These values were transformed into pIC50 values for regression-based machine learning modeling.

Part 02 โ€” RDKit Feature Generation

Molecular features were generated using RDKit.

These features include chemically meaningful descriptors such as:

  • โ€”Molecular weight
  • โ€”LogP
  • โ€”Hydrogen bond donors
  • โ€”Hydrogen bond acceptors
  • โ€”TPSA
  • โ€”Rotatable bonds
  • โ€”Ring counts
  • โ€”Aromatic ring counts

These RDKit descriptors enable direct prediction from SMILES in the deployed app.

Part 03 โ€” PaDEL Descriptor Generation

PaDEL descriptors and molecular fingerprints were generated to numerically represent molecular structures.

These descriptors were used in the original model development and comparison workflow.

Part 04 โ€” Random Forest Baseline Model

A Random Forest regression model was trained as the baseline model for predicting pIC50 values.

This model served as the first benchmark for evaluating predictive performance.

Part 05 โ€” Model Comparison

Multiple classical machine learning models were compared, including:

  • โ€”Random Forest
  • โ€”Support Vector Regression
  • โ€”XGBoost

The goal was to identify the strongest model for pIC50 prediction.

Part 06 โ€” XGBoost Optimization

XGBoost was selected as the final optimized classical machine learning model.

The optimized PaDEL-based model was evaluated using standard regression metrics.

Original PaDEL-XGBoost model performance:

MetricValue
Rยฒ Score0.732
MSE0.543
RMSE0.737
MAE0.539

Part 07 โ€” Agentic AI Workflow and Streamlit App

An agentic AI-style decision-support workflow was developed for MDM2โ€“p53 inhibitor prioritization.

The workflow:

  1. 1.Accepts a candidate molecule as a SMILES string
  2. 2.Generates RDKit molecular descriptors
  3. 3.Predicts pIC50 using a trained XGBoost regression model
  4. 4.Classifies the compound as Active, Intermediate, or Inactive
  5. 5.Evaluates Lipinski drug-likeness
  6. 6.Generates a rule-based next-step recommendation

The deployed app uses RDKit descriptors because they allow live prediction directly from SMILES.


Live RDKit-XGBoost Deployment Model

To support interactive deployment, a second deployment-friendly model was trained using RDKit molecular descriptors.

This enables the Streamlit app to perform live pIC50 prediction directly from a user-provided SMILES string.

Deployment model performance:

MetricValue
Rยฒ Score0.769
MSE0.484
RMSE0.696
MAE0.499

Streamlit App Features

The deployed Streamlit app includes:

  • โ€”SMILES input
  • โ€”Example candidate dropdown
  • โ€”Live RDKit descriptor generation
  • โ€”Live pIC50 prediction using XGBoost
  • โ€”Activity classification
  • โ€”Lipinski drug-likeness evaluation
  • โ€”Rule-based recommendation
  • โ€”Model performance summary
  • โ€”Clean, light-themed interface
  • โ€”Hugging Face Spaces deployment

Example App Output

For a candidate molecule, the app returns:

OutputExample Result
Predicted pIC505.06
Activity ClassIntermediate
Lipinski Violations0
Drug-likeYes
RecommendationKeep as a secondary candidate. Consider optimization before prioritization.

Current Technology Stack

  • โ€”Python
  • โ€”RDKit
  • โ€”Pandas
  • โ€”NumPy
  • โ€”Scikit-learn
  • โ€”XGBoost
  • โ€”Joblib
  • โ€”Streamlit
  • โ€”Hugging Face Spaces

Planned Version 3 โ€” Multi-Model AI Drug Discovery Workflow

Future versions will extend the current RDKit-XGBoost app into a multi-model AI workflow.

Planned models:

  • โ€”Random Forest
  • โ€”Support Vector Regression
  • โ€”XGBoost
  • โ€”Graph Neural Network
  • โ€”ChemBERTa
  • โ€”Multi-model consensus scoring

The planned model selection interface will allow users to choose:

text
RDKit-XGBoost
Random Forest
GNN
ChemBERTa
Consensus Model