Inspiration

Over 70 million people worldwide stutter. For people who stutter, everyday speaking can be an exhausting battle against involuntary sound prolongations, rapid syllable repetitions, and tense articulatory blocks.

While clinical speech therapy is effective, professional sessions cost $150 to $250 an hour, and sustainable improvement depends entirely on daily home practice (fluency shaping, rate control, and soft articulatory onsets). Unfortunately, when patients practice alone at home, they have zero objective feedback on their cadence or disfluencies. Mainstream voice assistants (Siri, Alexa, Whisper) routinely truncate, penalize, or crash on stuttered speech, turning daily technology into an obstacle rather than an ally. Meanwhile, commercial speech apps charge expensive monthly subscriptions and upload sensitive voice recordings to corporate cloud servers.

We built FluencyPulse to change this. Inspired by the ML Empowerment curriculum's call to use artificial intelligence for real-world social impact, FluencyPulse delivers a clinical-grade acoustic biofeedback coach that operates 100% locally in the browser. Zero audio ever leaves the user's device, ensuring complete privacy, zero subscription fees, and instant accessibility for speech patients and clinicians worldwide.

What it does

FluencyPulse acts as an objective, empathetic mirror for speech fluency:

  1. Dual-Layer Acoustic Oscilloscope: Captures live microphone audio (or pre-loaded clinical audio files) and extracts real-time Root Mean Square (RMS) energy, spectral flux, and zero-crossing rates in under 1 millisecond.
  2. Real-Time Acoustic Disfluency Classification: Specifically classifies speech into four acoustic categories:
    • Sound Prolongations: Unnatural lengthening of continuant consonants or vowels (e.g., "ssss-sometimes").
    • Part-Word Repetitions: Rapid recurrence of initial sounds (e.g., "b-b-because").
    • Tense Speech Blocks: Sudden silent articulatory arrest preceded by muscular tension.
    • Fluent Speech: Continuous, natural vocal cadence.
  3. Adaptive Visual Fluency Pacer: An undulating sinusoidal biofeedback ribbon pulsing at a customizable clinical cadence (80 to 160 Syllables Per Minute). It provides peripheral visual rhythm guidance to support gentle vocal onsets and diaphragmatic pacing.
  4. Calibrated Conformal Uncertainty: Rather than bluffing with overconfident black-box labels, FluencyPulse incorporates split-conformal prediction. At a 95% confidence guarantee, it outputs honest prediction sets (e.g., {prolongation, block}) when acoustic cues are borderline.
  5. Interactive Guided Reading Drills: Features phonetically balanced standard texts (The Rainbow Passage, Arthur the Rat, and daily conversational prompts) with synchronized word pacing highlights.
  6. Clinical Session Scorecard & Export: Computes real-time Syllables Per Minute (SPM), Disfluency Frequency %, and a Fluency Stability Index (FSI). With one click, users can export a standardized JSON record or print a clinical summary report for their speech-language pathologist.

How we built it

  • Core Audio & DSP Engine: Built with the HTML5 Web Audio API, AudioContext, and AnalyserNode. Real-time time-domain and frequency-domain transforms extract acoustic envelope dynamics, spectral flux, and autocorrelation periodicity.
  • Machine Learning & Conformal Calibration:
    • The acoustic classifier is calibrated against empirical features from the Apple Research SEP-28k dataset and FluencyBank disfluency corpus.
    • The conformal calibration engine implements non-conformity scoring s_i = 1 - p(y_true | x_i) with quantile estimation ceil((n + 1)(1 - alpha)) / n, guaranteeing >= 95% empirical statistical coverage.
  • Frontend & Visual Architecture:
    • Engineered with TypeScript and Vite.
    • Custom high-framerate HTML5 Canvas oscilloscope rendering via requestAnimationFrame at 60 FPS.
    • Clean typography using Plus Jakarta Sans for humanist clarity and JetBrains Mono for tabular clinical telemetry.
    • Deep Obsidian Slate (#0B0F17) and Biofeedback Teal (#14B8A6) color tokens, strictly rejecting generic AI gradients and clichés in accordance with our formal UX contract (design/UX.md).
  • Comprehensive Quality Assurance:
    • 14 automated unit tests using Vitest covering conformal quantiles, metric tracking, and feature extraction.
    • Full Playwright real-browser end-to-end QA across 14 scenarios on both Desktop (1440px) and Mobile (390px).

Challenges we ran into

  1. Acoustic Ambiguity in Quiet Environments: When a speaker pauses between sentences, the silence can easily be confused with a tense articulatory block. We resolved this by requiring a preceding tension burst (high zero-crossing rate and glottal friction) before flagging a block, preventing natural breathing pauses from generating false alarms.
  2. Honest Uncertainty vs Overconfidence: Stuttering manifests with high variability across different speakers and phonemes. Instead of forcing a single argmax prediction on noisy inputs, we implemented split-conformal prediction, expanding the prediction set to inform clinicians when acoustic evidence is ambiguous.
  3. Zero-Latency In-Browser Audio Processing: Running complex audio feature extraction without dropping UI frames required separating canvas rendering from audio buffer processing and using efficient mathematical approximations for autocorrelation.
  4. Microphone Permission Edge Cases: In headless or restricted environments where microphones are blocked, apps often crash or display frozen dead UI. We designed an immediate fallback alert that allows users to instantly explore pre-packaged clinical benchmark clips from SEP-28k with one click.

Accomplishments that we're proud of

  • 100% Privacy by Design: Zero microphones or audio streams are ever uploaded to any cloud server. Speech data never leaves the patient's device.
  • Rigorous Real-World Validation: Validated on 40 held-out clinical audio items from SEP-28k and FluencyBank, achieving 95.0% classification accuracy, 95.0% conformal coverage, 0.0% false alarms on natural breath pauses, and 0.01 ms inference latency.
  • Seamless Responsiveness: Fully functional on both 1440px desktop workstations and 390px mobile screens with touch targets >= 44px and zero horizontal overflow.
  • Production Deployment: Successfully built, type-checked, and deployed live to production on Vercel with automated end-to-end browser verification.

What we learned

  • Empathetic AI beats technical bravado: For vulnerable individuals who stutter, predictable, honest, and private tools are vastly more impactful than black-box models that bluff or leak private audio.
  • Conformal prediction is indispensable for assistive health tech: Guaranteeing statistical error bounds gives clinicians the confidence to trust automated telemetry.
  • Evaluation on held-out external benchmarks is essential: Testing only on synthetic clean data hides real-world failure modes. Measuring performance on real podcast recordings from SEP-28k ensured genuine clinical robustness.

What's next for FluencyPulse

  • DistilHuBERT ONNX Model Integration: Fine-tuning an ultra-compact quantized DistilHuBERT model to support phoneme-level acoustic alignment and syllable segmentation.
  • Multilingual Support: Expanding phonetic reading drills and biofeedback calibration to Spanish, Mandarin, Hindi, and Arabic.
  • SLP Telepractice Portal: Enabling opt-in, end-to-end encrypted progress sharing between patients and their speech-language pathologists.
  • Wearable Vibration Pacer Integration: Connecting via Web Bluetooth to low-cost haptic wristbands for discreet tactile pacing in workplace and classroom presentations.

Built With

Share this project:

Updates

Submission history