CoolFace
Apppublic

ramakrishna7288/explainable-drug-env

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

๐Ÿงฌ Explainable AI Drug Screening Environment

๐Ÿš€ Overview

This project implements a multi-step AI environment for drug screening and repurposing using protein sequence similarity.

The system simulates how an AI agent selects the best drug for a given protein target using filtering, ranking, and explainable reasoning.


๐ŸŒ Real-World Motivation

Drug discovery is expensive and time-consuming. This environment mimics real-world computational drug screening where AI can:

  • โ€”Identify suitable drugs
  • โ€”Rank candidate molecules
  • โ€”Suggest optimal drug choices
  • โ€”Provide explanations for decisions

๐Ÿง  Environment Design

๐Ÿ”น Observation Space

  • โ€”Protein name
  • โ€”Target protein sequence
  • โ€”List of drug candidates (sequence-based)

๐Ÿ”น Action Space

  • โ€”filter โ†’ remove weak drugs
  • โ€”rank โ†’ rank drugs by similarity
  • โ€”select โ†’ choose best drug
  • โ€”explain โ†’ justify decision

๐Ÿ”„ Workflow

  1. 1.AI receives protein + drug sequences
  2. 2.Filters low-similarity drugs
  3. 3.Ranks remaining candidates
  4. 4.Selects best drug
  5. 5.Provides explanation

๐ŸŽฏ Tasks

TaskDescriptionDifficulty
FilteringRemove weak drugsEasy
RankingRank drugs by similarityMedium
Selection + ExplanationSelect best drug and explainHard

๐ŸŽ Reward System

The reward is multi-step:

  • โ€”+0.3 โ†’ correct filtering
  • โ€”+0.3 โ†’ correct ranking
  • โ€”+0.4 โ†’ correct selection
  • โ€”+0.2 โ†’ explanation

๐Ÿงช Example

Input

Protein: EGFR Sequence: MTEYKLVVVGAGG

Drugs:

  • โ€”A โ†’ MTEYKLVVV
  • โ€”B โ†’ GGGAVVTKLSA
  • โ€”C โ†’ TTYYGGCCAAA

Output

Best Drug: A Reason: Highest sequence similarity


โš™๏ธ Setup

bash
pip install -r requirements.txt
python inference.py