Skip to content

Prashant-zHere/MedMinds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

31 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

🧠 MedMinds.AI

Breaking Medical Language Barriers with Artificial Intelligence


πŸ₯ Hackathon Submission Overview

Project Name: MedMinds.AI
Category / Theme: Healthcare | AI for Social Good
Development Environment: Kiro IDE
AI Model / API Used: Google Gemini API


πŸ”— Links


🩺 Problem Statement

Medical reports, prescriptions, and diagnostic results are usually written in complex medical terminology that is difficult for common people to understand.

Challenges faced by patients:

  • ❌ Medical jargon is not user-friendly
  • ❌ No clear indication of whether a condition is normal or critical
  • ❌ Language barriers for non-English speakers

These issues can lead to confusion, anxiety, delayed treatment, and poor health awareness.


πŸ’‘ Solution Overview

MedMinds.AI is an AI-powered healthcare assistant designed to simplify medical information and make it understandable for everyone.

What MedMinds.AI does:

  • Accepts medical data as text
  • Supports PDF uploads of medical reports

Using Google Gemini API, MedMinds.AI:

  • 🧠 Converts medical jargon into simple layman language
  • 🚦 Classifies health parameters as Critical / High / Normal / Low
  • πŸ“Š Provides an overall health severity summary
  • 🌍 Supports multi-language explanations

⚠️ Disclaimer: This application is for general awareness only and does not replace professional medical advice.


πŸš€ Features

  • πŸ“„ Upload medical reports (PDF / TEXT)
  • πŸ” OCR-based text extraction (Tesseract + PyMuPDF)
  • πŸ€– AI-powered medical report explanation
  • 🟒 Highlights normal values
  • πŸ”΄ Highlights abnormal values
  • 🌐 REST API support

πŸ› οΈ Tech Stack

  • Backend: Flask (Python)
  • AI: Google Gemini API
  • Frontend: HTML, CSS, JavaScript
  • Others: Flask-CORS, Pillow

πŸ“ Project Structure

MedMinds/
│── app.py
│── README.md
│── requirements.txt
│── .env
│── routes/
β”‚   │── __init__.py
β”‚   │── explain_report.py
│── services/
β”‚   │── __init__.py
β”‚   │── ocr_service.py
β”‚   │── gemini_service.py
│── static/
β”‚   │── css/
β”‚   β”‚   β”œβ”€β”€ chat.css
β”‚   β”‚   β”œβ”€β”€ index.css
β”‚   │── js/
β”‚   β”‚   β”œβ”€β”€ chat.js
β”‚   β”‚   β”œβ”€β”€ index.js
β”‚   │── images/
β”‚   β”‚   └── doctor-illustration.png
│── templates/
β”‚   │── index.html
β”‚   │── chat.html

βš™οΈ Installation & Setup

1️⃣ Clone the repository

git clone https://github.com/your-username/medminds-ai.git
cd medminds-ai

2️⃣ Create virtual environment

python -m venv venv
venv\Scripts\activate   # Windows
source venv/bin/activate # Linux/Mac

3️⃣ Install dependencies

pip install -r requirements.txt

4️⃣ Setup Environment Variables

Create a .env file:

GEMINI_API_KEY=your_api_key_here
PORT=5000

5️⃣ Run the application

python app.py

App will run at: http://localhost:5000


πŸ“€ API Endpoint

POST /explain-report

Request:

  • Form-data

    • file: PDF

Response:

{
  "patient_name": "Ramesh Kumar",
  "summary": "Blood sugar levels are high",
  "tests": [
    {
      "name": "Post Prandial Blood Sugar",
      "value": "240 mg/dL",
      "status": "High"
    }
  ]
}

πŸ” Rate Limit Note

If you face 429 Quota Exceeded errors:

  • Check Gemini API usage
  • Reduce request frequency
  • Upgrade API plan if required

🎯 Use Cases

  • Patients understanding lab reports
  • Rural health workers (ASHA)
  • Hackathons & health-tech demos
  • Medical awareness platforms

πŸ“œ License

This project is for educational and hackathon use.


✨ Built with the goal of making medical reports simple for everyone.

first_photo

Project_screenshot2

project3

About

Breaking Medical Language Barriers with Artificial Intelligence | Turns medical jargons into simple laymen language

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors