Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

11 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MediGuard AI (Arogyaसेतू)

A multilingual healthcare triage and geospatial system with AI-powered disease prediction.

🚀 Quick Start

Fastest Way (Recommended)

.\start.ps1

This will start both backend and frontend servers automatically!

Manual Start

Backend:

cd backend
uvicorn app.main:app --reload

Frontend:

cd frontend
npm run dev

Medicine Reminder Service:

cd backend
python medicine_reminder_service.py

Runs on http://localhost:8001

Access Points:


⚡ Performance

First-time startup: ~20-40 seconds (trains ML model, caches RSS feeds)
Subsequent startups: ~2-5 seconds ✅

The app automatically caches the trained ML model and pre-warms RSS feeds for blazing-fast performance after the first run.

📖 See PERFORMANCE_OPTIMIZATION.md for details.


📚 Documentation


🌐 Features

Implemented ✅

  • Multilingual Support - 6 languages (English, Hindi, Marathi, Punjabi, Tamil, Sanskrit)
  • Disease Prediction - AI-powered symptom analysis with SVM model
  • Wellness Hub - RSS feeds from CNN Health, NYT Health, BBC Health
  • Health Videos - Curated YouTube content
  • Drug Interactions - Medication safety checker
  • Geospatial Heatmap - Disease outbreak tracking
  • Performance Optimizations - Model caching, RSS pre-warming

In Progress 🚧

  • User authentication
  • Prescription OCR
  • Voice input in native languages

🛠️ Setup Instructions

Prerequisites

  • Python 3.8+
  • Node.js 18+
  • PostgreSQL with PostGIS (optional, for heatmap feature)

1. Backend Setup

cd backend
python -m venv venv
.\venv\Scripts\activate  # Windows
# source venv/bin/activate  # Linux/Mac
pip install -r requirements.txt

2. Frontend Setup

cd frontend
npm install

3. Database Setup (Optional)

For the heatmap feature, you need PostgreSQL with PostGIS:

  1. Install PostgreSQL: Download
  2. Install PostGIS: Use Stack Builder
  3. Create Database:
    CREATE USER mediguard WITH PASSWORD 'mediguard_password';
    CREATE DATABASE mediguard_db;
    \c mediguard_db
    CREATE EXTENSION postgis;

🧪 Testing

Backend API

# Health check
curl http://localhost:8000/health

# Get symptoms list
curl http://localhost:8000/api/v1/triage/symptoms

# Analyze symptoms
curl -X POST http://localhost:8000/api/v1/triage/analyze \
  -H "Content-Type: application/json" \
  -d '{"symptoms": ["fever", "headache"], "language": "en"}'

Frontend

Visit http://localhost:3000 and test:

  • Language switcher (top right)
  • Symptom checker
  • Wellness hub
  • Drug interactions

📦 Tech Stack

Frontend:

  • Next.js 16 (App Router)
  • React 19
  • TypeScript
  • Tailwind CSS 4
  • Leaflet (maps)
  • i18next (translations)

Backend:

  • FastAPI
  • scikit-learn (ML)
  • pandas, numpy
  • feedparser (RSS)
  • deep-translator (i18n)
  • SQLAlchemy + PostGIS (optional)

🤝 Contributing

  1. Check ARCHITECTURE.md for system design
  2. Follow the existing code style
  3. Test multilingual features in all supported languages
  4. Update documentation for new features

📄 License

This project is part of the Arogyaसेतू healthcare initiative.


🆘 Troubleshooting

App is slow on startup:

  • First run takes longer (trains ML model)
  • Check PERFORMANCE_OPTIMIZATION.md
  • Verify backend/app/data/disease/trained_model.pkl exists after first run

RSS feeds not loading:

  • Check internet connection
  • Backend pre-warms cache on startup (wait 10-15 seconds)

Translations not working:

  • Verify public/locales/ folder exists in frontend
  • Check browser console for errors

For more help, see QUICK_FIX_GUIDE.md

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages