Skip to content

Navigation Menu

Sign in
Sign up

Latest commit

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

MIRA

MIRA — Medical Intelligence Robotic Automation

AI-powered health prediction platform for clinical biomarker analysis

Python Streamlit Groq SQLite License Status

🔗 Live Demo: mira-health-app.streamlit.app


Overview

MIRA is a full-stack health prediction web application that combines Artificial Intelligence, Machine Learning, and Predictive Analytics to assess patient health risk from clinical biomarker data. Built as part of the MIRA — Medical Intelligence Robotic Automation platform, it automates health risk classification and generates AI-powered clinical assessments using Groq's LLaMA 3.3 70B model.

⚠️ Disclaimer: MIRA is a demonstration application for technical evaluation. It is not a certified medical device and must not be used for clinical diagnosis. Always consult a qualified healthcare professional.


Features

Feature Description
🔬 AI Health Assessment LLaMA 3.3 70B via Groq API generates clinical risk assessments from biomarker data
📊 Risk Classification Automatic Low / Moderate / High risk scoring based on standard clinical thresholds
🗄️ Full CRUD Create, Read, Update, Delete patient records with persistent SQLite storage
🔍 Patient Search Live search by name or email across all records
Input Validation Email format, DOB range, and numeric biomarker range validation
📱 Responsive UI Premium dark-theme interface with custom HTML/CSS built on Streamlit
🔒 Secure No API keys committed — environment-based secret management

Tech Stack

┌─────────────────────────────────────────────────┐
│ MIRA Stack │
├──────────────┬──────────────────────────────────┤
│ Frontend │ Streamlit + Custom HTML/CSS │
│ Backend │ Python 3.10+ │
│ Database │ SQLite (persistent local storage)│
│ AI Engine │ Groq API — LLaMA 3.3 70B │
│ Validation │ Custom Python utilities │
└──────────────┴──────────────────────────────────┘

Biomarkers Analysed

Biomarker Unit Normal Range High Risk Threshold
Fasting Glucose mg/dL 70 – 99 ≥ 126 (Diabetic range)
Haemoglobin g/dL 12.0 – 17.5 < 8.0 (Severe anaemia)
Total Cholesterol mg/dL < 200 ≥ 240 (High)

Project Structure

MIRA-Medical-Automation/
│
├── app.py # Main Streamlit application — UI, routing, pages
├── database.py # SQLite CRUD operations — create, read, update, delete, search
├── groq_client.py # Groq LLaMA 3.3 70B API integration — health prediction engine
├── utils.py # Input validation — email, DOB, numeric range checks
├── requirements.txt # Python dependencies
├── .gitignore # Excludes secrets, DB files, pycache
└── .streamlit/
 └── secrets.toml # API key config — NOT committed to GitHub

Local Setup

Prerequisites

1. Clone the repository

git clone https://github.com/Rosesharma13/MIRA-Medical-Automation.git
cd MIRA-Medical-Automation

2. Install dependencies

pip install -r requirements.txt

3. Configure your Groq API key

Create the secrets file:

mkdir .streamlit

Add your key inside .streamlit/secrets.toml:

GROQ_API_KEY = "your_groq_api_key_here"

4. Run the app

streamlit run app.py

Open → http://localhost:8501


Deployment — Streamlit Cloud (Free)

  1. Push this repo to GitHub
  2. Go to share.streamlit.io and sign in with GitHub
  3. Click New app → select this repository → set main file to app.py
  4. Go to Settings → Secrets and add:
GROQ_API_KEY = "your_groq_api_key_here"
  1. Click Deploy — live URL generated instantly

Security

  • No API keys or credentials are stored in this repository
  • Patient data remains in local SQLite — not transmitted to any external server
  • Only anonymised biomarker values (no PII) are sent to Groq for AI analysis
  • .streamlit/secrets.toml and *.db files are excluded via .gitignore

Author

Rose Sharma

👩‍💻 Author

GitHub


Built with Python · Streamlit · Groq · LLaMA 3.3 70B

About

MIRA – AI-powered patient health prediction platform using Python, Streamlit, SQLite, and Groq AI (LLaMA 3.3) for biomarker analysis and AI-powered clinical risk assessment.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /