Skip to content
jaycodes18Public

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Regimen

Live well with every medicine you take.

Regimen is a plain-language medication companion for polypharmacy — especially older adults and caregivers. Add your full med list, see drug–drug conflicts explained in everyday English, connect how you feel to possible med/conflict bridges, get today’s food rules + a safety checklist, and share a pharmacist-ready card.

Built for Vitalitics 2026.

Live demo: regimen-alpha.vercel.app
API health: backend-beta-five-40.vercel.app/api/health

Why not just ChatGPT?

Chatbots can talk about interactions, but they don’t keep a structured regimen, don’t return severity from a trained model + clinical knowledge base, and don’t give you a measurable demo metric. Regimen is decision support with a reproducible engine — not free-form medical chat.

Product

Guided flow: Welcome → Profile → Meds → Processing → Conflicts → Symptoms → Today → Dashboard

Area Job
Conflicts Core: plain-English cards (What / Why / Do this), KB vs ML badges, “What changed?” for new OTC
Share card Copy / print a pharmacist discussion summary
Symptoms Multi-select + custom note → bridges (never a diagnosis)
Today Diet rules + safety checklist + local streak
Profile / science Local profile + held-out F1 / Major-class F1 / per-class bars

Demo path (video): Margaret — warfarin stack + Advil → bleeding risk.

Stack

  • Frontend: Vite + React + TypeScript (Fraunces / Plus Jakarta Sans), neo + glass UI
  • Backend: FastAPI
  • ML: scikit-learn GradientBoostingClassifier on drug/class pair features → severity 0–3
  • Data: curated geriatric-relevant catalog (~50 drugs) with plain_name, side effects, diet rules, symptom tags

Held-out metrics live in backend/artifacts/metrics.json and in the UI (weighted F1 ≈ 0.63; Major-class F1 ≈ 0.73).

Repo layout

backend/          FastAPI app, engine, training scripts, data, model artifacts
frontend/         Vite React app
DEVPOST.md        Devpost submission draft + video script
SUBMIT.md         Submit checklist

API

  • POST /api/insights — meds + profile + optional symptoms → conflicts, effects, diet, checklist, symptom bridges, model summary
  • POST /api/check — conflict check
  • POST /api/symptoms/match — symptom bridging
  • POST /api/plan/today — diet + checklist
  • GET /api/demo/profiles — Margaret / Robert / Elena
  • GET /api/metrics/summary — catalog size + F1 / accuracy / per-class

Run locally

Backend

cd backend
python -m venv .venv
# Windows:
.\.venv\Scripts\activate
pip install -r requirements.txt
python scripts/build_dataset.py
python scripts/train_model.py
uvicorn app.main:app --reload --host 127.0.0.1 --port 8000

Frontend

cd frontend
npm install
npm run dev -- --host 127.0.0.1 --port 5173

Open http://127.0.0.1:5173. Vite proxies /api → :8000.

For production builds, set VITE_API_URL (see frontend/.env.production).

Optional OCR

Install Tesseract OCR and pip install pytesseract for label photos. Search + confirm always works without it.

Demo video script (≤5 min) — Margaret

  1. Problem: many meds + a new OTC — families don’t speak DrugBank.
  2. Welcome → Try a demo → Margaret.
  3. Processing → Conflicts: Bleeding risk + KB badge + What changed?
  4. Share with pharmacist — copy/print card.
  5. Symptoms: bruising / stomach pain → bridge.
  6. Today: vitamin K / greens consistency checklist.
  7. Credibility: weighted F1 + Major-class F1.
  8. Disclaimer: education only.

Disclaimer

Regimen does not diagnose, prescribe, or replace a licensed clinician or pharmacist. Educational decision-support prototype only.

Data note

Interaction KB is a curated clinical demo set (anticoagulants, QT risk, serotonergic stacking, ACEI/ARB + potassium, PDE5 + nitrates, etc.) plus an ML severity model. For production, expand with licensed public corpora (e.g. TWOSIDES / DrugBank DDI) and cite openFDA/SIDER-class sources.

License

Prototype for hackathon / education. Add a license file if you open-source for production use.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages