Skip to content

Ds0uz4/Gradpred

Repository files navigation

πŸ‘οΈ NetraAI β€” Intelligent Eye Report Generation Platform

Live Demo β€’ Project Video β€’ Slides

AI-Powered Ophthalmic Diagnostics and Automated Report Generation

Built with AI Model Storage License


🧠 Problem Statement

Retinal diseases like glaucoma, diabetic retinopathy, and macular degeneration are often impossible to detect early, even by experienced ophthalmologists. Subtle retinal layer changes β€” invisible to the naked eye β€” are only captured through OCT (Optical Coherence Tomography) scans. Yet, interpreting OCT data is complex, time-consuming, and prone to human variability.

Millions lose their vision not because treatment doesn’t exist, but because signs were missed early. Additionally, inconsistent diagnostic standards and scattered OCT data lead to poor data integrity and hinder long-term patient tracking.

πŸ’‘ Our Vision

We envision a world where no one goes blind because of late detection β€” regardless of where they live or how much they earn. Our mission is to democratize precision eye diagnostics using accessible AI tools that assist doctors, empower clinics, and make retinal screening part of every basic eye check-up.

πŸ”¬ The Solution

NetraAI is an AI-powered retinal disease detection platform that identifies invisible, early-stage eye disorders using standard fundus images β€” no expensive OCT required.

How It Works:

  • Clinics Register β†’ Verified clinics sign up on the platform.
  • Upload Retinal Images β†’ Health workers capture fundus images using low-cost fundus cameras or smartphones with adapters.
  • AI Diagnosis β†’ Our proprietary model analyzes retinal images and detects early signs of diseases like diabetic retinopathy or glaucoma β€” often before visible symptoms appear.
  • Doctor Assist Dashboard β†’ Doctors receive structured reports, highlighting risk zones, confidence levels, and AI recommendations β€” designed to assist, not replace clinical judgment.
  • Patient Insights β†’ Patients get a simplified report with next-step guidance (visit specialist, follow-up, etc.).

πŸ—οΈ Architecture

Architecture Diagram


🌍 Dual-Model Approach: Impact + Sustainability

We operate on a hybrid CSR-driven model:

  1. Rural & Semi-Urban Clinics
  • Partner with government/CSR-backed hospitals and NGOs.
  • Free screening for patients holding ESI cards or verified under economically unstable categories.
  • AI-assisted reports and awareness sessions for early intervention. Verified access ensures services are limited to eligible individuals.
  1. Urban Subscription Model
  • Clinics and hospitals subscribe to VisionSight D++ β€” a premium AI diagnostic assistant.
  • Offers faster reports, patient management dashboards, and deeper analytics.
  • Revenue from this model fuels free screening initiatives in rural sectors.

✨ What Makes It Stand Out

  • πŸ‘οΈ AI-Powered Diagnostics β€” Upload an eye image and get automated AI insights with visual heatmaps.
  • πŸ₯ Clinic Verification System β€” Clinics get verified using license or QR-based authentication.
  • πŸ“„ Automated Report Generation β€” Doctors can link reports to patient profiles and export them seamlessly.
  • πŸ“Š Interactive Dashboard β€” Manage patients, reports, uploads, and AI metrics in one clean interface.
  • πŸ” Secure Auth System β€” Only verified clinics can access and generate reports.
  • πŸ’« Modern, Responsive UI β€” Sleek design with smooth animations and modular components.

πŸ” Core Components

Module Description
Frontend (Next.js) Handles routing, dashboards, and dynamic rendering.
AI Pipeline Analyzes images, generates diagnostic overlays, and interprets results.
API Routes (Next.js) Serverless endpoints for verification, AI reports, and data handling.
Database (Supabase) Stores clinic, patient, and report metadata securely.

βš™οΈ Tech Stack

🧩 Frameworks & Libraries

  • Next.js 14 (App Router) β€” Modern SSR/ISR frontend architecture.
  • React 18 β€” Component-based UI development.
  • Tailwind CSS β€” Utility-first styling framework.
  • Framer Motion β€” Smooth, fluid animations.

πŸ€– AI & Logic

  • Custom Computer Vision Model β€” Detects eye-related features and abnormalities.
  • AI Inference Scripts β€” Python-based inference pipeline integrated via API.

☁️ Storage & Backend

  • Supabase β€” Handles authentication, database, and object storage.
  • Cloud Storage β€” Manages high-resolution image uploads and retrieval.

🧠 Utilities

  • Zustand β€” Lightweight state management.
  • ESLint & PostCSS β€” Linting and CSS optimization.

πŸ—‚οΈ Folder Structure

netraai/
β”œβ”€β”€ README.md
β”œβ”€β”€ package.json
β”œβ”€β”€ next.config.mjs
└── src/
    β”œβ”€β”€ app/
    β”‚   β”œβ”€β”€ (auth)/login, signup
    β”‚   β”œβ”€β”€ (dashboard)/layout, ai-report
    β”‚   β”œβ”€β”€ api/verify-clinic/route.js
    β”‚   └── globals.css
    β”œβ”€β”€ components/
    β”‚   β”œβ”€β”€ core/ (buttons, forms, modals)
    β”‚   └── ui/ (dashboard, dialogs)
    β”œβ”€β”€ hooks/ (custom React hooks)
    β”œβ”€β”€ lib/ (helpers, utils, constants)
    └── modules/
        β”œβ”€β”€ ai-report/
        └── dashboard/

⚑ Getting Started

1️⃣ Prerequisites

  • Node.js 18+
  • npm or yarn
  • Supabase project setup

2️⃣ Installation

git clone https://github.com/appajidheeraj/netraai.git
cd netraai
npm install

3️⃣ Environment Variables

Create a .env.local file:

NEXT_PUBLIC_SUPABASE_URL=your_supabase_url
NEXT_PUBLIC_SUPABASE_ANON_KEY=your_anon_key
AI_MODEL_ENDPOINT=your_model_endpoint

4️⃣ Run Development Server

npm run dev

Visit http://localhost:3000


🧬 Core Workflows

πŸ₯ Clinic Verification

sequenceDiagram
    participant C as Clinic
    participant A as App
    participant API as Verification Service
    C->>A: Upload License / QR
    A->>API: Validate License Data
    API-->>A: Verified / Rejected
    A-->>C: Access Granted / Denied
Loading

Purpose: Ensures only licensed clinics can generate patient reports.


πŸ‘οΈ AI Report Generation

sequenceDiagram
    participant D as Doctor
    participant A as App
    participant AI as Model API
    participant DB as Supabase

    D->>A: Upload Eye Image + Patient Details
    A->>AI: Send Image for Analysis
    AI-->>A: Return Feed Map + Health Insights
    A->>DB: Store Report Metadata
    A-->>D: Display AI-Generated Report
Loading

Outcome: Doctors receive AI-analyzed reports with feedmaps and predictions.


πŸ“Š Dashboard Flow

graph TD
A[Dashboard] --> B[AI Reports]
A --> C[Patients]
A --> D[Upload Stats]
B --> E[Generate Reports]
C --> F[View Patient Data]
Loading

Includes:

  • Report History
  • Patient Records
  • Upload Analytics
  • Clinic Profile

🎨 UI Walkthrough

  • Login / Signup β€” Secure authentication for clinics.
  • Dashboard β€” Access reports, patients, and insights.
  • AI Report Page β€” Upload, analyze, and generate reports.
  • Dialog Components β€” Patient and report input modals.

πŸ”’ Security & Privacy

  • βœ… Verified Access Only β€” Clinics are validated before access.
  • πŸ” Encrypted Uploads β€” Sensitive patient images are secured.
  • 🧾 Supabase Auth β€” Robust session and access management.
  • 🧠 Anonymized Data β€” Patient data used in AI inference remains private.

🧭 Future Roadmap

  • πŸ“œ PDF Report Export
  • πŸ”— Blockchain-based Record Verification
  • βš•οΈ Fine-tuned AI Models with Real Data
  • 🌐 Multi-Language Support

πŸ’‘ Inspiration

We wanted to bridge the gap between AI innovation and accessible healthcare β€” empowering clinics to diagnose faster and smarter.


πŸ‘οΈ NetraAI β€” Making Eye Diagnostics Smarter, Faster, and More Accessible

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors