Problem Statement: A Continuous Health Telemetry Platform
Frames the system as a safety-adjacent medical telemetry pipeline, not a generic fitness tracker backend.
Problem Statement
Design a health wearable telemetry system that continuously collects physiological data—heart rate, step count, sleep stages, blood oxygen saturation, electrocardiogram traces—from wrist-worn devices, aggregates it in the cloud, runs real-time anomaly detection for conditions such as atrial fibrillation or sustained tachycardia, and notifies the wearer or their physician when clinically significant thresholds are exceeded. The platform optionally integrates with telehealth services and emergency contact triggers.
This is not a simple fitness counter. A missed arrhythmia alert can delay emergency intervention by minutes that matter. The design therefore separates data completeness (every sample eventually arrives) from alert timeliness (a dangerous rhythm triggers notification within seconds) and clinical accuracy (the anomaly detector does not cry wolf). These three properties pull in different architectural directions and must be explicitly balanced.
Why This Problem Is Distinctive
A social-media backend can drop a like. A telemetry system cannot silently drop a ventricular tachycardia episode. The design separates three concerns:
- Ingestion fidelity: Every sensor sample must be durably captured even through Bluetooth disconnections, phone crashes, and cellular dead zones. Loss is bounded and recoverable.
- Detection latency: A sustained heart rate above 180 bpm at rest, or an irregular RR-interval pattern consistent with atrial fibrillation, must surface an alert within a bounded time budget—not after a nightly batch job.
- Clinical safety: False positives erode trust and overwhelm physicians. False negatives risk lives. The detection pipeline must be tunable, auditable, and gated by regulatory considerations.
The Four Architectural Planes
- Device plane: Sensor acquisition, local buffering, Bluetooth Low Energy sync to companion phone, on-device pre-filtering.
- Ingestion plane: Phone relay or direct-to-cloud upload, stream processing, schema validation, deduplication.
- Analytics plane: Time-series storage, rolling aggregates, anomaly detection models, trend computation.
- Action plane: Alert routing, user notification, physician portal sync, emergency escalation, telehealth handoff.
A strong answer keeps these planes separate. The ingestion plane degrades gracefully under load without blocking the action plane. The analytics plane can reprocess historical data without affecting real-time alerting. The device plane operates correctly for hours without any cloud connectivity.
Public Operating Baseline
Apple reports that Apple Watch has detected atrial fibrillation in users who were previously undiagnosed, validated through the Apple Heart Study with over 400,000 participants at Stanford Medicine. Fitbit, acquired by Google in 2021, reports over 30 million active users generating continuous heart-rate data. Whoop reports approximately 1 million subscribers producing 24/7 heart-rate variability streams. Our design targets a mature platform at scale; specific capacity numbers are stated assumptions unless attributed to a published source.
What This Interview Covers
We design the end-to-end pipeline: device-to-phone sync, phone-to-cloud upload, stream ingestion, time-series storage, anomaly detection, alert delivery, physician dashboard, and HIPAA-compliant data governance. We do not design the hardware sensor, the Bluetooth radio firmware, the clinical validation trial, or the FDA 510(k) submission process—though we define the interfaces and data contracts those dependencies impose.
Key Highlights
- •The cloud may aggregate and analyze, but the device must buffer locally through multi-hour connectivity loss.
- •Alert latency and ingestion completeness are separate SLOs with separate mechanisms.
- •Four planes: device, ingestion, analytics, action—each degrades independently.
- •False-positive rate is a first-class design constraint, not an afterthought.
- •HIPAA governs every dataset once a physician relationship exists.
Section Rescue Kit
Buzzwords to use:
Safe statements:
- "I will separate data completeness from alert latency because they require different mechanisms and have different failure consequences."
- "Before selecting databases, let me define which decisions happen on-device, in the stream processor, and only in the analytics layer."