edgemed-api / README.md
Mahdiya's picture
Upload 4 files
b4b38b5 verified
metadata
title: EdgeMed API
emoji: πŸ₯
colorFrom: blue
colorTo: indigo
sdk: docker
pinned: false

EdgeMed Clinical BERT API

FastAPI backend for the EdgeMed edge-intelligence emergency routing framework.

Endpoints

Method Path Description
GET / Health check
POST /triage CAG + BERT triage pipeline
POST /route KAG hospital routing
GET /zones Zone + availability info

Model

Fine-tuned Mahdiya/edgemed-clinical-bert on 1,267 KTAS-ED patients.
Accuracy: 71.7% Β· ESI classification (ESI-1 to ESI-5)

Pipeline

Symptom text
    └─► CAG keyword check
            β”œβ”€ ESI-1 / ESI-2 hit β†’ BYPASS BERT β†’ immediate routing
            └─ No critical hit   β†’ BERT inference β†’ ESI 3/4/5
                                        └─► Ξ±-weighted KAG routing