From Black Box to Glass Box: The World's First AR-Enabled, Blockchain-Audited Drug Repurposing Agent.
Drug repurposing is the fastest way to bring treatments to market, but traditional AI tools fail to gain researcher trust due to three fatal flaws:
- "Black Box" Answers: AI predicts a drug but can't explain why, leading to zero clinical trust.
- Business Blindness: AI suggests drugs that are biologically sound but commercially unviable (e.g., highly toxic or under strict competitor patents).
- The Audit Void: No immutable proof of discovery exists for FDA audits or IP filings.
CuraNova AI is an explainable, agentic decision-support platform. It utilizes a LangGraph-powered "Master Agent" to orchestrate specialized sub-agents (Literature, Clinical, Patent) to find, validate, and audit drug candidates in seconds.
- 🛑 The "Negative Logic" Engine (Why Not? Panel): Unlike standard AI that only looks for success, our system actively rejects candidates based on deterministic gates. The UI explicitly shows alternative drugs flagged for "High Toxicity" or "Active Competitor Patents."
- 👓 3D Immersive Validation (AR): Built with WebXR (
<model-viewer>), researchers can launch a 3D AR view of the molecular protein structure directly from the dashboard to physically inspect molecular docking. - 🎛️ Human-in-the-Loop Live Steering: Researchers can adjust the weight of Evidence (Literature vs. Trials vs. Patents) using live UI sliders. The overall confidence score recomputes instantly client-side without costly backend calls.
- 🛡️ Immutable Audit Trail: Every AI decision and confidence score is cryptographically hashed (SHA-256) upon generation, creating a "Proof of Discovery" timestamp for patent protection.
- 🔍 100% Traceable "Glass Box" Graph: An interactive D3.js Knowledge Graph where every edge click reveals the exact structured evidence (PubMed snippet, Trial ID) used to make the biological connection.
graph LR
%% Styles
classDef frontend fill:#f9f9f9,stroke:#333,stroke-width:2px;
classDef backend fill:#e1f5fe,stroke:#01579b,stroke-width:2px;
classDef agents fill:#fff9c4,stroke:#fbc02d,stroke-width:2px;
User((User Input<br/>Drug + Disease)):::frontend
subgraph "FastAPI Backend (The Brain)"
Master[Master Agent<br/>LangGraph Supervisor]:::backend
Lit[Literature Agent]:::agents
Trial[Clinical Agent]:::agents
Patent[Patent & Market Agent]:::agents
Aggregator{Negative Logic Filter<br/>& Scoring Engine}:::backend
end
subgraph "Vanilla JS Frontend (The Glass Box)"
UI[Clinical Dashboard<br/>Live Steering & Export]:::frontend
Graph[D3.js XAI Graph<br/>Clickable Evidence]:::frontend
AR[WebXR AR Modal<br/>3D Molecule View]:::frontend
end
User --> Master
Master --> Lit & Trial & Patent
Lit & Trial & Patent --> Aggregator
Aggregator -- "JSON + SHA-256 Hash" --> UI
UI --> Graph
UI --> AR
🛠️ Enterprise-Grade Tech Stack Backend (Intelligence Layer) Framework: Python, FastAPI, Uvicorn Orchestration: LangGraph (Multi-Agent Routing) Validation: Pydantic (Request/Response schemas) Data Ingestion: PubMed/NCBI Entrez APIs, ClinicalTrials.gov API v2, Local cached raw evidence. Security/Audit: hashlib (SHA-256 IP Timestamping)
Frontend (Presentation Layer) Architecture: Vanilla HTML5, CSS3, JavaScript (No heavy frameworks for maximum performance). Typography & Icons: Inter font (Google Fonts), Font Awesome. Data Visualization: D3.js (Interactive graph/XAI visualizations). Immersive Tech: Google for WebXR/AR integration. Reporting: HTML report generation + jsPDF (UMD build) for clinician-style exportable documents.
🚀 Getting Started Prerequisites Python 3.10+ A modern web browser (Chrome/Edge/Safari)
- Backend Setup DOS
git clone [https://github.com/sanashk19/CuraNova-AI.git](https://github.com/sanashk19/CuraNova-AI.git)
cd CuraNova-AI/backend
python -m venv venv
venv\Scripts\activate # Windows command
pip install -r requirements.txt
# Start the FastAPI server
uvicorn main:app --reload
The API will be live at http://localhost:8000
- Frontend Setup Because the frontend is built with pure Vanilla HTML/JS, you do not need Node.js or npm! Open the frontend/ folder. Use a local development server to avoid CORS issues. If you have VS Code, simply right-click index.html (or your main dashboard file) and select "Open with Live Server". Alternatively, use Python's built-in server:
DOS
cd frontend
python -m http.server 3000
The UI will be accessible at http://localhost:3000
🧪 Core Workflow & Features Drug + Disease Research Query: Enter a drug (e.g., Terazosin) and disease (ALS). Modular Agent Analysis: Backend agents asynchronously scrape and parse literature, trials, and patent data. Score & Reject: The Aggregator compiles an Overall Repurposing Score, actively catching bad candidates using the Toxicity/Patent gates. Interactive Dashboard: View the result, see the rejected alternatives in the "Why Not?" panel, and use sliders to steer the AI's weighting. Explore & Validate: Click the AI Knowledge Graph to read the source literature, or click "View in AR" to inspect the .glb protein model. Export: Generate a structured, judge-ready clinical HTML/PDF report.
👥 The Team CuraNova AI - Building Tomorrow’s Solutions for Today’s India. Developed for EY Techathon 6.0.