FocusFlow AI:以 Presage SmartSpectra 驅動的私隱優先即時人體感測與自適應專注助手
FocusFlow AI: Privacy-First Real-Time Human-Sensing & Adaptive Focus Companion Powered by Presage SmartSpectra
FocusFlow AI 以 Presage SmartSpectra SDK 和標準網絡攝影機即時追蹤生理及行為訊號,提供專注與身心健康支援,並採用本機處理和明確的用戶同意。系統會按眨眼、呼吸及 HRV 數據觸發護眼提醒或 AURA 引導呼吸,並在深度專注時抑制非緊急提示。遇上低光或低 FPS,系統會調整分析流程並切換至輕量模式。
Prize Categories
I am submitting FocusFlow AI for:
- Best Overall Human-Sensing Experience
- Best Thoughtful Real-World Use (applied to developer/knowledge-worker focus, eye strain prevention, and stress regulation with strict local-only privacy and explicit opt-in consent)
What I Built
FocusFlow AI is a contactless, real-time desktop focus and wellness companion featuring AURA, an interactive voice-guided assistant powered by the Presage SmartSpectra SDK.
Instead of passive dashboards or intrusive wearables, FocusFlow AI uses a standard webcam to capture live physiological and behavioral signals—Pulse (BPM), Breathing Rate (br/min), Heart Rate Variability (HRV), Blink Rate (/min), and Estimated Stress—and responds dynamically through a deterministic JSON Rule & Cooldown Engine:
-
Visual Fatigue Detection (
Blinks < 8/min): Triggers gentle audio-visual reminders to rest the eyes during intense screen sessions. -
Cognitive Overload (
Breathing > 20 BPMorHRV < 20%): Activates AURA's Guided Breathing mode, pacing an interactive inhale/exhale animation synchronized with bilingual voice coaching (English & Spanish). -
Deep Flow Protection (
Pulse 55–85 BPM+Breathing 10–16): Suppresses non-urgent nudges so the user stays in uninterrupted flow. - Automatic Low-Light / Low-FPS Resilience: Continuously monitors camera frame rate and lighting; if FPS drops below reliable thresholds, the app automatically restarts the pipeline and switches to a lightweight mode without crashing or blocking the UI.
Demo
- Demo Video: https://youtu.be/i4944-TU-q8
- Public Code Repository: https://github.com/jv4214331-del/focusflow-ai
(Note on hardware and camera performance: The webcam used during the recording is fairly low-end and struggles with low lighting and frame rate stability, which resulted in low/fluctuating FPS during capture and kept some pulse and HRV readings from stabilizing—while still showing the consent flow, live signal tracking, low-FPS fallback handling, and AURA's guided breathing experience.)
How I Used Presage SmartSpectra SDK
- Real-Time Multi-Signal Pipeline: Integrated the Presage SmartSpectra SDK to extract continuous, contactless physiological streams (pulse, breathing rate, HRV, facial landmarks, and blink frequency) from standard webcam frames.
- Bounded Queue & Cooldown Architecture: Connected SmartSpectra's live telemetry to an event-driven rule evaluator with per-rule cooldown timers so AURA never spams the user with repetitive alerts.
-
Graceful Frame-Rate Adaptation: Built real-time telemetry health checks around the SDK stream (
FPSand illumination diagnostics) that automatically toggle facial analysis when hardware lighting drops, preserving core respiratory tracking.
Setup Instructions
- Clone the repository:
bash
git clone [https://github.com/jv4214331-del/focusflow-ai.git](https://github.com/jv4214331-del/focusflow-ai.git)
cd focusflow-ai
來源:DEV Community · dev.to