← All projects

Grades a patient’s urgency with the Manchester triage protocol (C1–C5) from what they say, by text or voice: an LLM extracts and explains the symptoms and a machine learning model predicts the priority.

Discipline
LLM · machine learning
Year
2026
Stack
  • Python
  • FastAPI
  • Pydantic
  • LLM
  • Whisper
  • scikit-learn
  • pandas
  • Apache Airflow
  • n8n
  • PostgreSQL
  • Neon
  • MinIO
  • Docker
  • Next.js
  • React
  • TypeScript
  • Tailwind CSS
  • Vercel
  1. 13FastAPI microservices
  2. 272real clinical interviews in the dataset
  3. C1–C5Manchester urgency levels
TriageIA grading chest pain as C1, with the ML prediction, the LLM’s reasoning and the pipeline

The problem

In an emergency room, the first classification depends on a quick conversation under pressure. Anything that helps avoid underrating a serious case matters, especially when the patient is very distressed.

How I solved it

  1. Transcription

    Whisper

    A full clinical pipeline: transcription, symptom extraction with an LLM, normalization to a closed dictionary of Manchester terms, explained labelling, anxiety score, ML prediction and ethics audit.

  2. Symptoms

    LLM · Groq · OpenRouter

    A TF-IDF and logistic regression classifier, checked with stratified cross-validation and measured on what matters in an ER: recall on the critical levels and the under-triage rate.

  3. Classification

    TF-IDF · logistic regression

    A dataset built by labelling 272 real clinical transcripts with an LLM, extended with synthetic cases to balance the minority classes.

  4. Orchestration

    Airflow · n8n

    13 FastAPI microservices orchestrated with Apache Airflow (7 DAGs) and n8n for alerts, with PostgreSQL and MinIO, all on Docker Compose.

  5. A serverless version on Vercel: services ported to Next.js API routes, the model exported to JSON and run in TypeScript with the same probabilities as in Python, Postgres on Neon, and automatic LLM fallback when one runs out of quota.

Result

A public demo that proposes an explained triage level in seconds and warns when a patient’s anxiety may be lowering their urgency. Meant to support medical staff, not replace them. Built together with a classmate.

Need something similar?
AMZ CreativesNext project · Client platform · NetnifyAMZ Creatives interface