AI Systems
Healthcare Translation App
Disclaimer
This is a portfolio demo, not a certified medical interpreter or medical device. Do not rely on it for clinical decisions or enter real patient information. Always use a qualified interpreter for patient care.
Overview
A browser-based clinical translation tool built for the moment a provider and patient do not share a language. One person speaks, their words are transcribed, translated, and read back aloud. On top of that core flow sits a pronunciation-intelligence layer aimed at the thing speech systems get wrong most often in medicine: drug names and medical terms. Every transcribed word carries a confidence score, risky medical terms and out-of-vocabulary words are flagged for review, detected medical terms show their correct pronunciation (IPA plus a plain-English guide), and any mistake can be corrected in one click and stored to improve future transcripts. It is deployed on Hugging Face Spaces and usable today.
The Problem
In healthcare, a language barrier is a safety risk: symptoms get missed, instructions are misheard, and consent is unclear. But there is a second, subtler failure that generic translation tools ignore: speech recognition reliably mangles medical terminology. A model that confidently hears 'atorvastatin' as 'asturvastatin' is dangerous precisely because it sounds sure of itself. Professional interpreters are not always available on short notice, and family members translating sensitive medical information is unreliable. The gap needed bridging at the point of care, with the accuracy and review safeguards that medical vocabulary demands.
How It Works
- 01
Capture: The speaker records in the browser (MediaRecorder + the Web Audio API, with a live waveform and silence auto-stop). The audio is sent to faster-whisper, a local Whisper speech-to-text model, for accurate medical transcription.
- 02
Confidence scoring: faster-whisper returns a probability for every word. Uncertain words are flagged amber, and medical terms held to a stricter threshold are flagged red, so a reviewer's eye goes straight to what needs checking.
- 03
Pronunciation (G2P): Detected medical terms are annotated with their IPA and a readable syllable-and-stress guide via a grapheme-to-phoneme layer, with a curated 90-term medical dictionary taking priority over an automatic engine. Hover any term to hear it spoken.
- 04
Out-of-vocabulary detection: Words the recognizer likely struggled with (rare terms, misheard non-words, drug-name patterns like '-statin' or '-pril') are detected and logged with the reason they were flagged.
- 05
Human-in-the-loop corrections: Any flagged word can be clicked and corrected; corrections are stored in SQLite, re-applied to future transcripts, and exportable as a dataset.
- 06
Translate and speak back: The transcript is translated into the target language and read aloud with text-to-speech, with both original and translated text kept on screen.
Outcome
- Deployed and publicly usable at https://anjolakab-healthcare-translation.hf.space/, no install required.
- Surfaces transcription uncertainty instead of hiding it, with per-word confidence and high-risk medical flagging.
- Builds a feedback loop: human corrections are stored and reused, so the system improves with use.
- Treats pronunciation as a first-class problem, the failure point that breaks voice tools on names and medical terms.
faster-whisper (local)
Speech-to-text
90 terms (IPA)
Medical dictionary
STT + confidence + G2P + OOV
Pipeline
Live
Status