I. Scope and Meaning of the Outputs
1.1 What a BCG heart-rate and respiration inversion algorithm processes
| Item | Scope of this guide |
|---|---|
| Linked entry | BCG heart-rate and respiration inversion algorithms (bcg-heart-rate-and-respiration-inversion-algorithms), local entryId 1400, WSIC 4.4.1 |
| Input | A BCG or related pressure, acceleration, or displacement time series mechanically coupled through a mattress, bed frame, or bed leg, with sampling rate, channel, clock, and sensor-placement metadata |
| Main output | Estimated heart rate, respiratory rate, or adjacent cardiac and respiratory intervals under specified window and quality conditions, together with valid-data coverage and low-quality or missing-data flags |
| Outside this entry | The BCG sensor hardware itself, ECG diagnosis, sleep staging, sleep-apnea diagnosis, oxygen saturation, and treatment decisions |
A ballistocardiogram (BCG) captures small body movements associated with cardiac ejection and blood flow. In a bed recording, slower respiratory motion and much larger movements during turning or bed exit also enter the sensor. BCG is a mechanical signal, whereas ECG records cardiac electrical activity; a BCG J peak must not be relabeled as an ECG R peak. Bed-leg, under-mattress film, force-sensitive resistor, and accelerometer arrangements have different mechanical coupling, so waveform amplitude and morphology cannot be compared across devices without qualification.[1][4][5]
“Inversion” here means estimating heart and breathing rates from a mixed mechanical signal. It does not imply unique reconstruction of an ECG, airflow, or complete respiratory physiology from one waveform. Every output should state whether it is an interbeat interval, an average rate over a stated window, or an overnight summary. Heartbeats per minute (bpm) and breaths per minute must remain distinct; timestamps, time zone, and window alignment should accompany the results.[1][2]
1.2 Separate adjacent algorithms and clinical uses
Entry 1399 concerns extraction of features from the cardiac-impact signal. This entry takes usable waveforms and estimates two physiological rates. Heart-rate and respiratory-rate sequences alone do not determine sleep stage, an apnea or hypopnea event, arrhythmia, or hypoxemia. The American Academy of Sleep Medicine position statement explains that consumer sleep technology lacking validation for its intended use and the relevant oversight cannot replace diagnosis or treatment of sleep disorders.[7] Any medical claim needs validation for its specified population, device, and setting.
II. Signal Chain and Estimation Steps
2.1 From raw waveform to analyzable segments
| Step | Design choice to record | Typical failure and response |
|---|---|---|
| Acquisition and synchronization | Sensor model and position, sampling rate, clock, mattress and bed-frame structure, and one or multiple occupants | Clock drift and changed bed transmission require calibration and synchronization evidence |
| Occupancy and motion gating | Occupancy, turning and bed exit, start and end of valid segments, and stabilization after re-entry | A turning spike can become a false beat, or a rate can persist after bed exit |
| Component separation | Cardiac and respiratory preprocessing, band-pass or low-pass filters, wavelets, autocorrelation, or template parameters | Overlapping frequencies, respiratory modulation, and motor vibration contaminate components |
| Cycle localization | Candidate J or correlation peaks, respiratory peaks, interval plausibility, missed and extra detections | Multiple peaks per heartbeat and irregular rhythm can cause doubled rates or missed beats |
| Output and quality | Window length, update interval, smoothing, confidence, rejection, missing-value code, and latency | Error calculated only on successful windows hides unusable periods |
Published pipelines differ; no filter setting is universal across beds and people. A 2019 study of bed-mounted load cells improved beat-to-beat recognition using an unsupervised pattern method. It reported 83.9% overall beat detection for seven volunteers in four lying positions, not a clinical detection rate for every BCG system.[5] A 2023 study of force-sensitive resistor strips under a mattress used wavelet and filter processing for heart and respiratory rates in 20 participants, showing why sensor placement and the processing chain need joint evaluation.[3]
An implementation should preserve the raw waveform and acquisition metadata before baseline removal, noise reduction, and component separation. Automatic exclusion rules must be reproducible. Fix motion-gating rules before calculating error, and report the excluded fraction. Authors of a 2024 natural-sleep BCG dataset marked movement and bed exit with sliding windows and described gaps and imputation in reference data. Such steps change the analyzable sample and must not be mistaken for unaltered ground truth.[1]
2.2 Locate cardiac and respiratory cycles separately
The cardiac branch may use candidate J peaks, templates, envelopes, autocorrelation, or spectra to find cardiac cycles. Successive intervals can yield beat-to-beat rate, while spectral or count methods can yield a window average. J peaks are delayed relative to ECG R peaks for physiological and equipment reasons, so validation must synchronize signals and define a matching tolerance; direct sample-by-sample subtraction is inappropriate. When waveform changes, irregular rhythm, or motion exceed the validated range, the algorithm should reject or downgrade the estimate instead of forcing a smooth number.[5][6]
The respiratory branch may derive a breathing cycle from lower-frequency bed displacement, pressure variation, or modulation of the BCG component, and then convert cycles or a window estimate to respiratory rate. Sensor types emphasize different components. A 2015 comparison of film force sensors and accelerometers beneath a mattress topper or at bed posts found that placement and sensor type change sensitivity and waveform quality.[4] A single frequency band cannot be assumed to work equally under a thick mattress, adjustable bed, or shared bed. A respiratory belt commonly provides a reference for chest and abdominal movement; a BCG-derived rate is not a direct airflow measurement.[1][2]
III. Data, References, and Validation
3.1 Describe datasets together with their reference signals
| Evidence or check | What it can support | What it cannot establish |
|---|---|---|
| 2024 natural-sleep dataset | Multi-night piezoelectric-film BCG and cardiac and respiratory reference data from 32 young healthy adults, useful for testing a pipeline in that setting [1] | Validation for older adults, arrhythmias, hospitalized patients, or every bed design |
| 2009 passive-bed study | Overnight recordings from 40 healthy participants, with 30-second heart- and breathing-rate comparisons to ECG, oximetry, and respiratory inductance bands [2] | Error of another system or of beat-to-beat estimates |
| 2025 diverse-pathology BCG dataset | Synchronized Holter ECG in 46 people with different cardiovascular states, useful for cardiac robustness testing [6] | Respiratory ground truth or proven performance of a breathing algorithm |
| Independent local evaluation | Subject- and night-separated splits, continuous time series, several devices and bed types, and separate rate errors and coverage | Randomly splitting adjacent windows from one person and calling the result external validation |
Heart-rate validation should state the ECG or qualified reference device, beat-label quality, synchronization, and matching rule. Respiratory-rate validation should state whether the reference is a belt, airflow, or another measure and how it was sampled. Li and colleagues' dataset covers 32 healthy adults aged 19-27 over multiple natural-sleep nights. Its authors report strong agreement for their extracted heart and respiratory rates against their reference sensors; those results belong to that population, sensor, and pipeline rather than every marketed system.[1] Where cardiac or respiratory reference samples are missing, distinguish original observations, imputation, and data eligible for scoring.
The 2009 passive-system study compared 30-second-window heart rate with ECG and breathing rate with respiratory inductance bands used in polysomnography among 40 healthy participants. It reported errors below 2.72 bpm and 2.10 breaths/min, respectively.[2] Those values retain the system, window, and population conditions; they are not beat-to-beat errors, pediatric errors, or apnea-detection accuracy. A 2025 dataset pairs overnight BCG with ECG in a cohort including irregular rhythms, which can support a cardiac robustness test. Without an independent respiratory reference, it cannot by itself validate breathing-rate estimates.[6]
3.2 Report error and times with no valid estimate
For windowed heart and respiratory rates, report mean absolute error, bias, the error distribution, and agreement limits separately, with window size, update interval, coverage, and latency. For beat-to-beat output, also report matching rate, missed beats, and extra detections; window-average error is not beat-level performance. Stratify by supine and side positions, after turning, mattress type, one or two occupants, breathing-rate changes, and irregular rhythm. Give both participant counts and valid-window counts in each group.[1][4][5][6]
Separate training, tuning, and test sets by person and night; adjacent windows from one person should not leak across sets. When reported accuracy covers only times at which the model produces an answer, also show time rejected for movement, bed exit, poor signal-to-noise ratio, or missing reference data. A value copied forward from the previous window must be flagged as imputed, not presented as a fresh measurement. Home monitoring should also test clock drift, sensor displacement, mattress replacement, and firmware changes.[1][6]
IV. Setting Differences and Risk Controls
4.1 Bed, person, and environment change the waveform
Bed-leg load cells, under-mattress film, and mattress-embedded sensors sample different mechanical transmission paths. The 2015 sensor comparison and 2023 under-mattress resistor study both indicate a placement effect; the latter found a thoracic-region configuration preferable within its tested setup.[3][4] That does not prescribe one location for all devices. Document mattress thickness and material, frame, sensor fastening, sleep position, bed partner and pets, vibrating equipment, and bed-exit movements in deployment.
Movement can be much larger than heartbeat recoil, and a turn can change waveform morphology. A bed partner's rhythms or environmental vibration may contaminate a single-channel estimate. The algorithm should detect a failed one-occupant assumption, pause the estimate, and request repositioning or review. If populations with arrhythmia, obesity, older age, childhood, or acute illness were not validated, state that performance is unknown. A 2024 dataset of young healthy adults cannot substitute for testing in those groups.[1][6]
4.2 Abnormal results and data governance
First investigate occupancy, sensor status, clocks, and reference equipment when quality is poor, data are missing, or rates change abruptly. Such findings alone do not diagnose apnea, bradycardia, or another condition. A medical-monitoring or alarm use requires an intended indication, suitable clinical validation, and explicit failure and human-review procedures; a consumer overnight trend is context for discussion with a clinician.[7] Acute symptoms require the agreed clinical or local emergency response, not a wait for the bed algorithm to correct itself.
Continuous BCG and overnight timestamps can reveal sleep timing, bed exit, and health changes. Delivery should document consent scope, collection purpose, retention, access controls, de-identification, and deletion. Check research dataset licenses and participant privacy limitations before reuse. A source paper's open publication or shared data does not automatically authorize every commercial training use of participant waveforms.[1][6]
V. Procurement, Delivery, and Claim Limits
Procurement should request sensor configuration, sampling rate, installation limits, preprocessing and motion gating, output window, rejection rule, firmware history, and independent validation tied to the actual hardware and software versions. Heart- and respiratory-rate error and valid-time coverage must be listed separately, alongside participants, nights, beds, and disease strata. “Contactless,” “high accuracy,” or a single correlation coefficient cannot establish long-term availability. The published 83.9% beat-detection figure and healthy-participant window errors can be quoted only with their original study conditions.[2][5]
At delivery, keep raw BCG, filtered waveform, quality mask, beat or breath intervals, windowed rates, and overnight summaries distinct, with processing versions and aligned timestamps. When a display has no valid value, the user should be able to distinguish bed exit, low quality, device failure, and no acquisition; do not make a prior value appear to be live monitoring. Sleep staging, apnea, and arrhythmia functions each require separate evidence and defined intended uses; they do not follow automatically from estimation of two rates. This is a .[7]
VI. References and Use Limits
[1] Li et al.: A ballistocardiogram dataset with reference sensor signals in long-term natural sleep environments. Used for multi-night BCG, cardiac and respiratory references, movement, and missing-data handling in 32 young healthy people; not general performance evidence for other populations or products.
[2] Mack et al.: Development and preliminary validation of heart rate and breathing rate detection using a passive, ballistocardiography-based sleep monitoring system. Used for the 40-healthy-participant, 30-second-window comparison with ECG and respiratory inductance; not extrapolated to beat-to-beat, pediatric, or diagnostic performance.
[3] Validating Force Sensitive Resistor Strip Sensors for Cardiorespiratory Measurement during Sleep: A Preliminary Study. Used as an under-mattress resistor, placement, and processing example; a preliminary study of 20 healthy participants, not validation of every bed type.
[4] Vehkaoja et al.: Effects of sensor type and sensor location on signal quality in bed mounted ballistocardiographic heart rate and respiration monitoring. Used for the original comparison of sensor and placement effects on waveform quality; it does not specify a universal installation point.
[5] Albukhari et al.: Bed-Embedded Heart and Respiration Rates Detection by Longitudinal Ballistocardiography and Pattern Recognition. Used for a bed-load-cell and beat-recognition example with seven volunteers and four positions; the detection rate is not assigned to other systems.
[6] A ballistocardiogram dataset with reference ECG signals for bed-based heart rhythm assessment. Used for an overnight BCG and synchronized ECG dataset in 46 people, including irregular rhythms, and the cardiac-validation boundary; it does not provide the respiratory ground truth required here.
[7] American Academy of Sleep Medicine: Consumer Sleep Technology Position Statement. Used to frame why consumer sleep outputs cannot directly replace sleep-disorder diagnosis or treatment; it does not determine the regulatory status of a particular product.