The body speaks in waves.
Deep dives into the engineering behind wearable health tech — BCG signal processing, sleep-stage AI, sensor design, and the systems that make non-invasive monitoring possible.
What your body is telling you
Latest writing
Why your BCG J-peak keeps drifting: a field guide to R→J delay variation
After aligning hundreds of nights of ECG and BCG data, the ±50ms beat-level variation in R-to-J delay isn't noise — it's physiology.
AI / MLKnowledge distillation: teaching a BCG model with ECG labels
When your teacher model is 85% accurate and your student input is noisier, you use that gap intentionally.
Sensor HardwarePVDF vs capacitive: which sensor survives a restless sleeper?
Two sensor modalities, one hostile environment. After six months of field testing, here is what actually breaks.
HealthTechThe engineering stack behind contactless vitals: from PVDF film to sleep stage
Sensor physics, ADC design, embedded firmware, cloud DSP, and the ML inference layer that ties it together.
HealthTechBLE for overnight ECG: what the spec sheets don't tell you
Bluetooth Low Energy looks ideal for overnight biosignal recording. The spec sheet omits the parts that will break your study.
Deep LearningTransformers for biosignals: what the hype gets right (and wrong)
Attention mechanisms are genuinely useful for long-context physiological signals. The implementation details are where most papers quietly fail.
BCG / HRVBuilding a Signal Quality Index from scratch
An SQI is the immune system of your BCG pipeline. Here is how to build one that actually rejects bad data without being paranoid.
BCG / HRVSnoring detection from BCG: separating breath from ballistic noise
Snoring produces a characteristic vibration signature in BCG. Isolating it from cardiac and respiratory signals requires understanding all three simultaneously.
The person behind the signal
-
ECG–BCG Synchronization Pipeline
Full-stack system aligning Polar H10 ECG with POD4 PVDF BCG. Cross-correlation global sync + R-to-J peak matching, ±50ms delay handling, drift logging, interactive alignment UI.
- Python
- NumPy/SciPy
- asyncio/BLE
- Polar H10
- PVDF
-
Sleep Staging Transformer (BCG)
Transformer trained on SHHS for 4-class sleep staging per 30s epoch. Knowledge distillation from ECG teacher (85% acc) to BCG student model.
- PyTorch
- SHHS
- Transformer
- Distillation
- HRV
-
iOS Background ECG Recorder
Swift app for overnight BLE ECG from Polar H10. Solved 7-year epoch offset bug, timestamp reconstruction, 5-min rotation, iOS background execution constraints.
- Swift
- CoreBluetooth
- Background Tasks
-
Signal Quality Index (SQI)
Pre-training classifier for BCG segment quality. SNR + template correlation + Isolation Forest motion detection. Adaptive threshold replacing GMM.
- scikit-learn
- Isolation Forest
- CWT/Ricker
- 8–20Hz BPF