← All work

R.E.A.C.H.

Emergency response platform — a Whisper fine-tune for telephony-band audio, and a voice path that degrades without losing the report

Role
Co-founder · team of 5
Timeline
Apr 2025 – Aug 2026
Context
IITM Nirmaan cohort

The outcome

  1. WER on telephony-band degraded audio cut from 23.76% to 21.20%: −2.56 pp, 95% CI [−3.85, −1.31] over 10,000 paired bootstrap resamples, with a LoRA (r=32, α=64 on q_proj/v_proj) over whisper-base, 2000 training and 300 eval utterances on a Kaggle T4.
  2. The specialisation cost measured rather than omitted: clean WER 4.37% → 5.24%, +0.87 pp, CI [+0.35, +1.40]. The model narrowed mildly; a LoRA that had collapsed onto the channel would put clean WER in the teens.
  3. Scored through Whisper's own EnglishTextNormalizer, so the numbers compare with the published model card rather than with a bespoke scoring function.
  4. 49 tests that assert signal properties rather than that the code runs; one caught a single 2nd-order lowpass leaving ~10% of a 6 kHz tone standing.
  5. A self-audit found the per-utterance SNR labels were measured before the channel and scored after it, a labelled 10 dB spanning 2–33 dB in reality, and documented what that does and does not invalidate.
  6. A voice-report path that degrades without losing data: the recording reaches the incident feed whether transcription succeeds, times out at 20 s, or is unreachable.
  7. A map stack with no API keys or billing: OSM tiles, Overpass hospital search raced across three public mirrors with a 5-minute cache, and OSRM routing for the tracking simulation.
  8. EXIF-GPS screening of bystander photos against the claimed location within a 3 km Haversine tolerance, failing open on stripped or unreadable metadata.
  9. Selected from 200+ startups into the IITM NIRMAAN cohort as a five-person team.

The challenge

An emergency response platform we started as a five-person team in the IITM Nirmaan cohort and then built out as working code: a live incident map, responder tracking over Socket.IO on OSRM routes, EXIF screening of bystander photos, and a voice-report path. Spoken reports are transcribed by reach-asr, a separate service running whisper-base with a LoRA adapter fine-tuned for telephony-band noisy speech. The fine-tune is measured as a full 2×2 against the zero-shot model with paired bootstrap intervals, and the evaluation ships with an audit of its own methodology.

Dispatch depends on someone parsing a distressed caller in real time, and stock speech models are trained mostly on clean read speech. The obvious fix, training on real emergency calls, is not available: 911 recordings are legally restricted almost everywhere and no public corpus exists. So the acoustic condition has to be constructed from public corpora, named as constructed, and the gain measured against a baseline on identical utterances. The platform around the model carries a matching constraint: a transcription outage must never cost a responder the report itself.

The system

Three independent paths share one Next.js app, split by what each needs from its runtime. On the voice path, VoiceReport records up to 30 s with MediaRecorder, creates a blob URL for the clip before uploading it, and posts it to /api/transcribe, which forwards it to reach-asr under a 20 s abort. reach-asr is a FastAPI process that loads whisper-base at startup, merges the LoRA adapter into the base weights, and serialises requests through a semaphore of one, running generate() on a worker thread so /health keeps answering while the GPU is busy. It sits outside Next.js because a resident ~290 MB model wants a GPU for the process lifetime, the opposite shape from a route handler that scales to zero. Failures are mapped at the boundary: bad audio stays a 422, any other upstream error becomes a 502, and a timeout or unreachable service becomes a 503 marked degraded, while in every case the recording still lands in the incident feed, playable. Tracking runs on a separate Express and Socket.IO server: a client joins an incident room, the server fetches a driving route from the public OSRM router, interpolates ten points per segment, slows on sharp turns, and emits position and bearing to the room, clearing the timer when the last client leaves. Bystander photos go through /api/verify-media, which reads EXIF GPS with exifr and flags anything more than 3 km (Haversine) from the claimed location, accepting when metadata is missing. The incidents themselves are seeded mock data relocated to the user's GPS fix and the tracked responder is simulated; neither is a live dispatch feed.

multipartPOST /transcribeto_threadtextalways attachedjoinIncidentrouteposition·bearingphoto + lat/lngVoiceReportMediaRecorder · 30 s cap/api/transcribeNext.js · 20 s abortreach-asrFastAPI · semaphore(1)whisper-base + LoRAadapter merged at loadRecording blobcreated before uploadIncident feedEventModal transcriptResponderLocsocket.io-clientTracking serverExpress + Socket.IOOSRM public routerdriving polylineResponder markerLeaflet · incident room/submitphoto + claimed location/api/verify-mediaexifr · Haversine 3 km
R.E.A.C.H. — voice report, responder tracking and photo screening as three separate paths

The hard parts

  1. The training condition had to be built, and said to be built

    No public corpus of real emergency-call audio exists, so we built the channel from stages that each model something specific: a 300–3400 Hz bandpass for the telephone passband, 8 kHz G.711 μ-law for the PSTN codec, ESC-50 noise from 15 emergency-relevant categories for the sirens and traffic behind a call, and packet loss over 20 ms frames, where Whisper tends to hallucinate fluent text across the gap. Source speech is LibriSpeech, and train and eval draw from disjoint noise clips so the model cannot memorise the sirens it is scored on. The claim that survives is "fine-tuned for telephony-band noisy speech", and it is the only one made.

  2. The first run got worse while its loss fell

    whisper-small on the milder default channel went from 5.52% to 11.89% WER while training loss fell from 1.82 to 0.71. The targets were raw LibriSpeech, all caps and unpunctuated, so the model spent its capacity learning a formatting change that the scoring normaliser then stripped; and that channel left only 2.5 points of headroom to recover. The fixes were to normalise training targets with the same EnglishTextNormalizer that scores them, and to measure headroom before training: a seven-minute probe showed a 19.2-point gap for whisper-base at −5 to 10 dB, which is what made the full run worth doing.

  3. Reporting the cell that hurts

    Clean zero-shot (4.37%) is the ceiling, degraded zero-shot (23.76%) the baseline, degraded fine-tuned (21.20%) the result. Without clean audio through the tuned model, "learned phone audio" and "learned only phone audio" are indistinguishable, so we ran it: 5.24%, a +0.87 pp regression. Both deltas carry 95% paired bootstrap intervals over 10,000 resamples, paired because both systems score byte-identical seeded audio, and neither interval contains zero. The fine-tune recovered 2.56 of the 19.39 points the channel cost, about 13% of the gap; in relative terms the trade inverts (−10.8% degraded against +19.9% clean), and both framings are reported.

  4. Auditing the evaluation, and finding it mislabelled

    degrade() measured SNR at 16 kHz full-band and only then band-limited and encoded the mix, so each manifest label described the audio before the channel rather than the file that was scored. Band-limiting moves speech and noise by different amounts, so at a labelled 10 dB the post-channel SNR ran from 2 dB (an in-band siren) to 33 dB (hiss above 4 kHz). The same audit measured the filter: the cascaded biquads put the flat band near 500–2500 Hz, not the documented 300–3400. The headline pair is untouched because the bootstrap never reads the SNR label; the per-bucket breakdown has to be rebuilt on post-channel, active-speech SNR and is not quoted as a finding until it is.

  5. An inference outage must not delete someone's report

    The audio is the report and the transcript is an enrichment, so VoiceReport creates the blob URL before the upload is tried, and every failure branch (non-OK response, empty transcript, unreachable service, 20 s abort) still hands the recording up with failed: true. The route keeps the service's 422 distinct from an outage, so bad audio asks for a re-record while an outage never looks like the responder's mistake. A GET on the same route proxies the service's health check so the UI can say transcription is offline up front; recording is deliberately not gated on it. On the service side the model loads in the lifespan hook, so the process does not accept traffic it cannot yet serve.

What I took from it

  • When the real data is unobtainable, construct the condition and say so. "Fine-tuned on emergency calls" would not survive one question about the dataset; "fine-tuned for telephony-band noisy speech", with the four channel stages named, does.
  • A falling loss measures the objective you set, not the one you meant. Only the split WER showed the first run was learning a formatting change instead of the channel.
  • Measure the cell that makes the result look worse, and give every delta an interval. Without both, robustness and narrowing look the same, and a 300-utterance, one-seed delta is only a direction.
  • Decide what is load-bearing and protect it in the control flow. The audio is the report, so the blob exists before the upload is tried and every failure path still carries it.

Stack

Speech
Whisper (whisper-base), LoRA / PEFT, torchaudio, EnglishTextNormalizer
Channel simulation
Bandpass 300–3400 Hz, G.711 μ-law, ESC-50 noise, Packet loss
Evaluation
jiwer, Paired bootstrap, pytest, Kaggle T4
Serving
FastAPI, uvicorn, ffmpeg decode, Next.js route proxy, MediaRecorder
Realtime & Maps
Express, Socket.IO, OSRM, Leaflet / OpenStreetMap, Overpass API
Media Verification
exifr, Haversine geofencing

Timeline

  1. Apr 2025

    Founded; selected into the IITM Nirmaan cohort.

  2. 2025

    First platform build: incident reporting, dispatch dashboard, responder flows.

  3. Aug 2026

    Rebuilt dispatch/tracking on a fully free stack (Socket.IO, OSRM, Overpass, Leaflet); EXIF-based media verification with a fail-open rule.

  4. Aug 2026

    reach-asr: telephony degradation pipeline, Whisper LoRA fine-tune and WER evaluation; voice-report flow wired into the incident modal with degraded-mode handling.

  5. Sep 2026

    Paired bootstrap intervals, the 2×2 specialisation check, and an audit of the evaluation's own methodology.

Download resume