Skip to content

SK4LEGENDS/Smart_Eye

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

👁️ Smart Eye Care: AI-Powered Retinal Health System

A comprehensive, research-grade ophthalmology platform integrating Deep Learning (Ensemble Models), RAG-powered AI Assistance, and Role-Specific Clinical Dashboards.


🚀 Core Features

🧠 Advanced AI Diagnostics

  • Dual-Model Ensemble: Combines AlexNet and ResNet50 for high-accuracy classification of 6 retinal conditions (Cataract, Diabetic Retinopathy, Glaucoma, etc.).
  • Explainable AI (Grad-CAM): Generates heatmaps to highlight exactly where the AI "sees" disease markers, enhancing clinical trust.
  • Uncertainty Quantification: AI provides confidence scores to ensure safe screening.

🤖 Agent-C (Multi-Agent C3-RAG)

  • Multi-Agent Orchestration: Powered by Llama-3.1 and a specialized routing layer that delegates tasks to Diagnostician, Researcher, and Risk Analyst agents.
  • C3-RAG Engine: Clinical Context-Constrained Retrieval Augmented Generation ensures zero-hallucination medical grounding against AAO guidelines.
  • Action-Aware: Agents can modify doctor availability, view patient histories, and trigger real-time UI updates via natural language.

🏥 Role-Specific Portals

  • Patient Dashboard: View AI reports, track appointment history, and book lab tests.
  • Doctor Portal: Manage schedules, accept/reject appointments, and review detailed diagnostic findings with AI heatmaps.
  • Lab Technician Interface: High-throughput retinal scan processing and verification.

🔬 Research-Grade AI Portfolio (Latest v2.5 Upgrades)

To align with clinical standards, we have implemented five advanced research modules:

  1. Clinical Metrics Dashboard: Professional-grade evaluation showing Accuracy, Precision, Recall, F1, and interactive ROC Curves/Confusion Matrices for the ensemble.
  2. Multi-Modal AI Integration: High-fidelity diagnostics combining Fundus Image embeddings with OCR-extracted clinical text and doctor notes via a weighted evidence fusion engine.
  3. Counterfactual Explainability: A causal "What-If" simulation tool that allows clinicians to mask identified lesions (using Grad-CAM) and observe the AI's re-prediction, providing proof of diagnostic focus.
  4. Disease Progression Trajectory: Predictive analysis of patient history using Slope-based risk calculation to forecast 90-day disease progression.
  5. Multi-Agent Clinical Co-Pilot: Specialized assistant personas (Diagnostician, Researcher, Risk Analyst) with automated routing to provide role-specific medical context.

🛠️ Tech Stack

  • Backend: Python (Flask), SQLAlchemy, SQLite
  • AI/ML: PyTorch (AlexNet, ResNet50), Scipy
  • Frontend: Next.js, Tailwind CSS, Framer Motion
  • Knowledge Base: Groq/HuggingFace API, Custom RAG Implementation
  • Remote Access: DuckDNS & ngrok integration

💻 Getting Started

1. Backend Setup

# Clone the repository
git clone https://github.com/SK4LEGENDS/Smart_Eye.git
cd Smart_Eye

# Create .env file (see Environment Variables section)
# Install dependencies
pip install -r requirements.txt

# Run the server
python app.py

2. Frontend Setup

cd frontend
npm install
npm run dev

3. Environment Variables

To enable AI features, create a .env file in the root with:

  • HF_TOKEN: Your HuggingFace API Token.
  • DUCKDNS_TOKEN: For permanent external access.
  • SECRET_KEY: Your Flask secret key.

👥 Meet the Team

Smart Eye Care is developed with passion by:

  • Jayaharini
  • Kailash
  • Jerlin John

📜 Disclaimer

This system is designed for screening and "Clinical Decision Support." It is intended for research and educational purposes and should not replace professional medical diagnosis.

About

AI-Powered Smart Eye Care system with dual-model ensemble diagnostics, clinical dashboards, and a RAG-powered medical assistant.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors