An intelligent diagnostic assistant for analyzing medical images (X-rays, CT scans, MRIs, and ultrasounds), generating detailed reports, and offering follow-up actions such as doctor search and chat-based explanations.
| Area | Tech Used |
|---|---|
| Frontend | Vite β‘, React π§©, TailwindCSS π¨, Leaflet πΊοΈ, ShadCN-UI π§±, PDF generator π |
| Backend | FastAPI π, PyTorch π₯, Pydicom π§¬, OpenCV πΌοΈ, Gemini Pro AI β¨ |
| ML Models | Pretrained vision models via timm, Torch models |
| Auth & Utils | Clerk π, FastAPI Users βοΈ, Geopy for location-based doctor search |
Medical-Assistant-1/
βββ frontend/ # React + Vite + Tailwind UI
βββ backend/ # FastAPI + Torch inference
β βββ main.py # All backend routes
β βββ services/ # Contains model processing scripts
βββ requirements.txt # Backend dependencies
βββ package.json # Frontend dependencies
- π©» Medical Image Upload: Supports X-ray, CT (2D & 3D), MRI, and Ultrasound.
- π Detailed AI Report Generation: Uses LLM to generate PDF-style medical reports.
- π Real-time Doctor Search: Location-aware map and appointment integration.
- π€ Chat with Report: Query the report using Gemini AI.
- π PDF Download: Export the generated report with branding & watermark.
Upload an X-ray image to get disease predictions.
Returns the most recent X-ray prediction output.
Supports xray, ct, ultrasound, mri. Returns AI-generated diagnosis report.
Get the last generated report for a given modality.
Upload 2D CT slices and get prediction + report.
Returns the latest CT 2D report.
Upload 3D NIfTI CT scan for volumetric analysis.
Returns the latest CT 3D report.
Upload 3D MRI file to analyze and extract findings.
Returns the most recent MRI 3D report.
Ultrasound image upload + diagnostic summary.
Send a question related to the report and get AI-powered insights using Gemini Pro.
cd backend
pip install -r requirements.txt
uvicorn main:app --reloadcd frontend
npm install
npm run devfastapi,uvicorn,torch,torchvisionpydicom,opencv-python,scikit-learnnumpy,pillow,pydantic,timmfastapi-users,geopy,dotenv, etc.
- React, Vite, Tailwind, Framer Motion
- Leaflet (map view), @react-pdf/renderer (PDF generation)
- ShadCN UI (Radix based UI components)
- Routing via
react-router-dom
- Landing Page
- Sumit Singh (Model Training + Backend Development)
- Somil Gupta (Frontend + Backend Integrations)
- Abhishek (Prompt Designing + chatbot)
MIT License Β© 2025
- Real-time WebSocket updates for predictions
- Patient medical history & storage
- Admin dashboard for logs, analytics, and moderation
- Google Calendar integration for booking
- Multi-language report generation
- Fork the repo
- Create your branch (
git checkout -b feature/xyz) - Commit your changes (
git commit -am 'Add xyz') - Push to the branch (
git push origin feature/xyz) - Open a Pull Request π
π§± Design and Developed by Team CodeGenius βοΈ


