Med AD πŸ’Š - AI-Powered Medicine Recommendation System

Version Python Dash AI License

πŸ₯ Med AD is an intelligent medicine recommendation system powered by Advanced AI and Machine Learning. Get instant medicine recommendations, AI health insights, and skin condition analysis!

πŸš€ Features

AI-Powered Capabilities πŸ€–

  • 🧠 Hugging Face Inference API: Advanced translation & health insights
  • πŸ”¬ Skininve Cloud AI: Professional-grade skin condition analysis
  • 🌐 Smart Translation: Hindi/Hinglish to English using NLLB-200 model
  • πŸ’‘ AI Health Advisor: Powered by Microsoft Phi-3 model
  • πŸ“Έ Image Analysis: Upload skin photos for AI diagnosis

Core Functionality

  • πŸ€– Advanced ML Model: TF-IDF vectorization with 15K features, n-grams 1-4
  • πŸ’Š Massive Database: 248,000+ medicines with comprehensive information
  • 🧠 60+ Disease Categories: Cancer, Heart Disease, Diabetes, COVID, and more
  • πŸ“Š Real-time Analytics: ML-based disease prevalence & severity calculation
  • πŸ’¬ Interactive Chat: Natural conversation-based medicine search

User Experience

  • 🎨 Modern UI: Sleek navy blue gradient theme with glassmorphism effects
  • πŸ’¬ Interactive Chat: Natural conversation-based medicine search
  • 🏷️ Quick Symptom Buttons: 14 one-click symptom categories
  • 🚨 Emergency Mode: Quick access to emergency contacts
  • πŸ—ΊοΈ Pharmacy Finder: Locate nearby pharmacies (OpenStreetMap integration)
  • πŸ‘€ User Accounts: Optional login/registration (or use as guest)

🧠 ML Technologies

  • TF-IDF Vectorization: Advanced text matching with 15,000 features
  • Cosine Similarity: Accurate medicine-symptom matching algorithm
  • Smart Filtering: Body-part detection & symptom mapping
  • Dynamic Analytics: Real-time prevalence calculation from 248K database
  • Synonym Expansion: Comprehensive symptom synonym dictionary (30+ categories)

πŸ“Š Database Scale

  • Primary Dataset: 248,218 medicines
  • Secondary Dataset: 50,000 inventory items
  • Disease Coverage: 60+ supported conditions
  • Symptom Categories: 30 with extensive synonyms

🎯 Tech Stack

Technology Purpose
Python Dash Web framework
scikit-learn Machine learning (TF-IDF, cosine similarity)
Hugging Face API AI translation & text generation
Skininve Cloud AI Skin condition image analysis
Pandas & NumPy Data processing & analysis
Plotly Interactive data visualization
Flask-Login User authentication
SQLite User data storage

AI Models Used πŸ€–

  1. Translation: facebook/nllb-200-distilled-600M

    • Multilingual translation (200+ languages)
    • Hindi/Hinglish to English conversion
  2. Health Insights: microsoft/Phi-3-mini-4k-instruct

    • Medical advice generation
    • Symptom-based recommendations
  3. Skin Analysis: Skininve Cloud AI

    • Dermatological condition detection
    • Professional-grade image analysis
    • Treatment recommendations

πŸ’» How to Use

Setup API Keys (Required)

  1. Hugging Face API (Free tier available)

  2. Skininve Cloud AI (Optional, for skin analysis)

Using the App

  1. Describe Symptoms: Type your symptoms in the chat (e.g., "headache and fever")
  2. Get Recommendations: AI will find matching medicines from 248K+ database
  3. View Analytics: See disease statistics, recovery rates, and severity levels
  4. AI Insights: Click "AI Insights" for personalized health advice
  5. Skin Analysis: Upload skin photos for AI-powered condition detection
  6. Find Pharmacies: Locate nearby pharmacies for purchasing medicines

Quick Symptom Search

Click any of the 14 quick symptom buttons for instant results:

  • Headache, Fever, Cold & Cough, Stomach Pain
  • Back Pain, Joint Pain, Allergy, Diabetes
  • BP Issues, Anxiety, Skin Issues, Eye Problems
  • Infection, Emergency

🌐 Multilingual Support

The app supports Hinglish (Hindi-English mix):

  • "Sir dard" β†’ "headache"
  • "Bukhar" β†’ "fever"
  • "Pet dard" β†’ "stomach pain"

πŸ”’ Privacy & Security

  • βœ… Optional user accounts with secure password hashing
  • βœ… Guest mode available (no registration required)
  • βœ… Session-based authentication
  • βœ… No personal health data stored permanently

⚠️ Important Disclaimer

This application is for informational purposes only.

  • Not a substitute for professional medical advice
  • Always consult qualified healthcare professionals for diagnosis and treatment
  • In case of emergency, contact local emergency services immediately
  • Medicine recommendations are based on keyword matching, not medical diagnosis

πŸ“ Version History

v4.1 (Current - AI-Powered)

  • βœ… Integrated Hugging Face Inference API for translation & health insights
  • βœ… Added Skininve Cloud AI for professional skin analysis
  • βœ… Using NLLB-200 model for multilingual translation
  • βœ… Using Microsoft Phi-3 for AI health advice
  • βœ… Real-time image analysis with dermatological recommendations
  • βœ… Optimized for Hugging Face Spaces deployment

v4.0 HF (Previous)

  • Local rule-based translation & health advice
  • Removed external API dependencies
  • Disabled image analysis

v3.5

  • Integrated Google Gemini AI
  • MedAd 2.0 modules

🀝 Contributing

Contributions welcome! This is an educational project aimed at:

  • Learning ML-based recommendation systems
  • Exploring healthcare applications of AI
  • Building user-friendly health tech solutions

πŸ“„ License

MIT License - See LICENSE file for details

πŸ™ Acknowledgments

  • Medicine database compiled from public healthcare resources
  • Built with Dash by Plotly
  • ML powered by scikit-learn
  • Inspired by the need for accessible healthcare information

Made with ❀️ for better healthcare accessibility

For support or queries, please open an issue on the repository

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support