How Logix Pulse analyses a Polar H10 recording:
every step, the strap’s built-in filter,
and what the results can support
LOGIXMOTION
Version 2, 24 November 2026
Abstract
The Polar H10 chest strap streams a single-lead electrocardiogram (ECG) at 130 Hz and three-axis acceleration, recorded at 25 Hz. We specify, with every equation and parameter, the analysis the Logix Pulse app applies to them: beat detection and correction, heart rate variability, the detrended-fluctuation exponent with a threshold estimate, breathing rate, beat-interval irregularity, and wavelet delineation of QRS, QT and PR. On one strap on the bench, the built-in high-pass filter was close to first order with a corner near 0.98 Hz (0.90 or below to 1.06 Hz across estimators), not the stated 0.7 Hz; in simulation, undoing it before locating the T-wave end restored the QT agreement that public ECGs lost through a model of that filter. A breathing rate from the accelerometer alone, shown only when two estimators agree, appeared in 14 % of still windows of eight held-out people of a public data set, 2.5 % of them more than 2 breaths min−1 off (app windows; 3.8 % over all 15, 0 to 40 % by person). On public data, beat detection reached 99.6 % sensitivity; the threshold read on average 19.5 bpm above the gas-exchange threshold in 15 of 16 adolescent athletes and did not track it. Nothing was validated on a worn strap against a reference ECG. The software is not a medical device.
Contents
Changes since version 1 (21 November 2026)
This version describes server version 0.13.0 of 24 November 2026, whose one change to the analysis is that it shows no QT and no QTc for a recording whose single beats disagree (M11). M11, Supplementary Methods S4 and Supplementary Table S4 give the rule, the Discussion its basis and limits, and Code availability the server version the research program runs. Every benchmark number now comes from the benchmark run of 24 November 2026: the four FDA rows of Table 4 count the QTs shown and moved, the table adds the share of QTs withheld and the agreement of the QTs still shown, and no other benchmark number changed.
1 Introduction
Chest straps that sense the heart’s electrical activity are common heart-rate sensors in sport. The Polar H10 among them has been compared with electrocardiographs at rest and during exercise: its beat-to-beat intervals agreed closely with the ECG1,2, although the short-term scaling exponent of detrended fluctuation analysis (DFA)3 computed from them showed wider bias at high intensity2.
DFA describes how the beat-to-beat intervals are correlated over spans of 4 to 16 beats: near 1.0 at rest and low intensity, it falls towards 0.5, the value of uncorrelated noise, as intensity rises, and has been proposed as an indicator of exercise intensity4. Its fall through 0.75, midway between the two, has been proposed as a marker of the first ventilatory threshold5 and lay close to it in treadmill runners and in cycling women5,6, although agreement varies between studies and populations7. Rogers, Schaffarczyk and Gronwald then averaged this DFA threshold with a threshold read from breathing rate derived from the ECG, which reduced the mean bias against the gas-exchange threshold from and bpm to bpm in 20 adults, 16 of whom had an DFA threshold8.
The H10 also streams its raw single-lead ECG at a nominal 130 Hz and a three-axis accelerometer9. These signals hold more than beat times: the shape of each beat, the modulation of the ECG by breathing, and the chest’s breathing movement. Logix Pulse, an Android app, records them, and an analysis server turns each recording into beat-interval measures, breathing rate, DFA , a threshold estimate from an incremental test, an irregularity score of the beat intervals, and ECG intervals (QRS, QT, QTc, PR). This paper documents that analysis as the code of server version 0.13.0 implements it: every step with its equations and parameter values, the published method each step follows and every point where it departs from it, what each step was tested against, and what is not known. Rules too detailed to read in sequence are numbered steps in the Supplementary Methods.
Two parts of the pipeline are specific to the strap. First, the H10 passes its ECG through a built-in high-pass filter that the manufacturer specifies only as a 0.7 Hz lower band limit9. We measured it on one strap, found it close to a first-order filter with a corner near 0.98 Hz, and undo it before the end of the T wave is located. Second, the app computes breathing rate on the phone from the accelerometer alone, with an acceptance rule fixed before it was scored. Both parts rest on small samples, which we state where they matter.
The analysis is also given to research groups as a program that runs it on their own recordings on their own computer (Code availability). That use, in particular a comparison with the threshold method of Rogers, Schaffarczyk and Gronwald8,10, is why the Discussion compares the threshold pipeline with theirs step by step.
2 Results
2.1 One recording through the analysis
Figure 1 shows the data flow; the Methods specify each step (M1–M13). Beats are detected in every gap-free segment of the ECG, the beats of the first 6 s are then discarded, and the corrected beat intervals feed heart rate variability, the irregularity score and DFA ; breathing rate comes from the ECG and the accelerometer, the threshold estimate from DFA and breathing rate, and a wavelet delineator measures QRS, QT, QTc and PR on a 250 Hz copy of the ECG; QT and QTc are shown only when the single beats agree.
2.2 Validation on public data
Tables 1 and 2 give what each step was tested against, and Table 3 the wave delineation. The benchmarks run the analysis code on public recordings resampled to the H10’s 130 Hz; they test the algorithms at the strap’s rate and units, not the strap. Numbers come from one benchmark run of the code described here unless marked study; Supplementary Methods S8 gives the protocols and every rule of a recording that a benchmark bypasses.
Beat detection is close to complete on hospital and Holter ECGs, and in electrode-motion noise it adds extra beats rather than missing real ones. On the strap, our beat intervals agree with the strap’s own to within the strap’s whole-millisecond resolution (Table 1; eight recordings of one person). Beat correction flags far fewer of MIT-BIH’s ectopic beats than the published method found on its own data11; whether frequent ectopy explains the whole difference has not been tested. The correction keeps occasional ectopic beats out of HRV; it does not count ectopy.
The irregularity score (COSEn) separates chaotic from regular rhythm well, on MIT-BIH, where its limit was chosen, and on held-out data, but it flags only about half of the windows with other irregular rhythms.
The server’s breathing rate (M8) is supported at rest lying still and fails in sitting daily life, with either of its two halves (Table 2).
The DFA threshold estimate read on average 19.5 bpm above the heart rate at the first ventilatory threshold in the 15 of 16 young athletes that had an estimate and did not track it across people (Fig. 2, Table 2; Discussion).
Delineation matched cardiologists’ QRS boundaries closely when the better of two leads is chosen, as in the published protocol; a single lead, which is what a strap gives, was markedly worse, above all for the T end, and even on the better lead our T-end scatter is twice the published one (Table 3). Its QT recording medians count every QT the delineator measures, also those that the server withholds because the beats disagree (M11); Table 4 gives the share withheld and the agreement of the QTs still shown.
| Data (n) | Reference | Result |
|---|---|---|
| Beat detection (M2) | ||
| MIT-BIH Arrhythmia13,14, 44 records, 83 978 beats | Cardiologists’ beat labels; bxb port | Se 99.6 %, +P 99.8 % |
| MIT-BIH Noise Stress Test15,16, records 118 and 119, 3577 beats per level | As above | Se / +P: 12 dB 99.97 / 94.3 %; 6 dB 98.4 / 79.0 %; 0 dB 91.6 / 68.8 % |
| 8 H10 recordings of one person (ours): rest, morning check, paced breathing, two cycling workouts; current detector | The strap’s own RR, whole ms | 2842 intervals between two normal beats: median 0.33–0.39 ms per recording, 95th percentile 0.84–1.21 ms; 20 differed by more than 2 ms, one by 26 ms. Same electrodes: timing only |
| Beat correction (M3) | ||
| MIT-BIH, as above | Reference beat classes | Labelled other than normal: 1.6 % of normal beats, 15.2 % of ectopic beats. Earlier detector, per record: isolated ectopic beats mostly labelled (records 100, 116, 118: 28 of 30, 87 of 98, 87 of 99), frequent ones almost never (119: 8 of 364; 232: 6 of 1168). Published method on its own data: 96.96 % of ectopic beats found, specificity 99.94 %11 |
| HRV and DFA (M4, M6, M7) | ||
| MIT-BIH records 100, 103, 113, 119, 122, reference beats | NeuroKit2 0.2.1317 | Largest relative difference: RMSSD 0.0, SDNN 0.0, pNN50 0.1, pNN20 0.1, DFA 0.1 %; arithmetic only |
| Irregularity (M5); strap gates not scored | ||
| MIT-BIH Arrhythmia, 48 records, 2-min windows; limit chosen here | Rhythm labels (chaotic: atrial fibrillation or flutter) | Chaotic vs regular: area under the ROC curve 0.983 (0.958–0.997, bootstrap over records, study), 96.2 % found, 95.1 % of regular windows clear; any irregular rhythm 0.785 (0.611–0.925, study), 48.1 % found; 2 false 5-min runs in 17 h |
| MIT-BIH Atrial Fibrillation18,19, 23 records; held out | Rhythm labels | Area 0.996; 91.8 % found, 99.5 % clear; 19 of 21 records with min of chaotic rhythm reported (71–97 %); 2 false runs in 138 h |
| CinC 201720,21, 6653 strips of 9–61 s scored whole; held out | Strip labels (A vs N) | Area 0.942; 65.6 % of A strips found, 97.9 % of N strips clear |
| Data (n) | Reference | Result |
|---|---|---|
| Breathing rate, server (M8) | ||
| BIDMC22,23, 53 eight-minute intensive-care recordings, ECG only | Two annotators’ rates per 60-s window where they agree (365 of 424) | 127 of 424 windows reported (30 %), 110 with a reference: 97.3 % within 2 (92–99 %), 88.2 % within 1 breaths min−1, MAE 0.67, bias breaths min−1; resting rate in 21 of 53 recordings, within 1 breaths min−1 in 18 of 20 compared (70–97 %) |
| Fantasia24,25 test half (20 people, 2 h supine), Apnea-ECG26,27 (8 nights), CEBS28,29 (20 people supine), BIDMC; study | Respiration belt (breath detector of Charlton et al.30); BIDMC annotators | Off 8.0 % pooled (Fantasia 8.2, Apnea-ECG 8.6, CEBS 4.3, BIDMC 2.7 %); MAE 0.94 breaths min−1; a value in 24 % of windows with a reference |
| PPG-DaLiA31,32, still windows (sitting, desk work, driving, lunch); study | Respiration belt, same detector | All 15 people: fused value off 49 % (shown in 60 % of windows); ECG half alone 31 % (15 %); accelerometer half alone 14 % (26 %). 8 held-out people, each half at its own quality limit: ECG 65.4 % off (shown in 16 %), accelerometer 26.3 % (15 %) |
| Breathing rate, phone, accelerometer only (M13) | ||
| PPG-DaLiA, 8 held-out people, study windows | Respiration belt, same detector | 163 of 1148 still windows shown (14 %); off 1.2 % (0–3 % by person, 95 %); MAE 0.42; bias ( to ) breaths min−1 |
| PPG-DaLiA, all 15 people, app windows at six start offsets, pooled | As above | 1352 of 12 624 shown (10.7 %); off 3.8 % (51 windows, 24 separate events; 95 % interval from resampling people 1.6–7.0 %; by person 0 to 40 %, and two of 15 people got no value); 8 held-out people 956 of 6878 shown (13.9 %), off 2.5 %; 7 development people 396 of 5746, off 6.8 %. Counts of the study’s code on the app’s windows; the app’s engine shows 955 of 6878 |
| Paced H10 recordings of one person (ours), two recordings, 5–20 breaths min−1 | Metronome | Study windows: 9 of 9 and 14 of 14 paced windows shown, largest error 0.2 and 0.4 breaths min−1 (Supplementary Fig. S1). App windows: 22 of 23 shown at the app’s own offset (79–99 %), largest error 1.3 breaths min−1; 139 of 140 over six offsets |
| Threshold estimate, DFA half (M9); the breathing half is not scored | ||
| ACTES12, 18 cycle-ergometer ramps of athletes aged 12–18, RR of a 12-lead ECG; 16 scored | Heart rate within s of the gas-exchange VT1 | Estimate in 15 of 16. Estimate bpm (range 145.9–164.9), laboratory bpm (125.7–150.6); error bpm (95 % confidence interval of the mean to ; limits of agreement to ), MAE 19.5 bpm, 4 of 15 within 10 bpm; ( to ). Windows left out, and why subject 17 has no estimate: Supplementary Methods S8 |
| For comparison: Rogers et al.8, 20 adults (16 for HRVT1), Movesense ECG, Kubios | Heart rate at VT1 | Published: HRVT1 bias bpm; EDRT1 ; combined |
| Boundary | Martínez et al., QT Database, better lead | QT Database, better lead | QT Database, each lead | LUDB, each lead |
| P onset | 0.5 20.2 (96.7 %) | 0.4 26.4 (90.5 %) | 13.2 28.8 (90.4 %) | |
| P end | 7.7 20.7 | 13.1 25.8 | 10.3 24.5 | |
| QRS onset | 3.3 10.9 (100.0 %) | 5.7 19.5 (100.0 %) | 0.2 17.0 (99.9 %) | |
| QRS end | 1.0 12.9 | 2.1 24.9 | 2.6 17.2 | |
| T end | 0.5 35.8 (99.97 %) | 0.2 57.5 (99.4 %) | 8.7 49.7 (98.4 %) | |
| Recording medians within 20 ms (QRS duration / QT / PR) and levels within 25 µV (R / J / ST60 / T) | ||||
| QT Database34,35, 105 records 2 leads | 81.4 / 67.5 / 80.0 %; 73.3 / 41.4 / 87.6 / 70.4 %; T direction 93.5 % | |||
| LUDB36,37, 200 recordings 12 leads | 80.5 / 77.1 / 77.6 %; 70.0 / 71.1 / 94.7 / 87.6 %; T direction 96.0 % | |||
| PTB-XL38,39, 21 799 ECGs 12 leads | Within 20 ms of Glasgow: QRS 78.5, QT 65.4, PR 55.3 %; of GE 12SL: PR 63.8 %. Within 25 µV of GE 12SL / Glasgow: J 56.0 / 47.5, R 54.6 / 58.6, T 69.1 / 75.3 %. The two machines agree with each other on J 60, T 82, R 86 and PR 91 % (study) | |||
Hospital and Holter ECGs resampled to 130 Hz, not strap recordings. Martínez et al.’s values are their Table III33: their own detector, signals at 250 Hz, the first cardiologist’s 3194 P, 3623 QRS and 3542 T marks; the tolerances between experts they cite (two standard deviations) are 10.2, 12.7, 6.5, 11.6 and 30.6 ms for P onset, P end, QRS onset, QRS end and T end. Ours use our own beat detector, the 130 Hz signal resampled to 250 Hz and the P rule of M10 chosen after seeing results; in the development study the same benchmark at 250 Hz was within 1 ms of every 130 Hz figure, so the sampling rate does not explain the T-end scatter. Known causes of the QT tails: T and U waves merging, flat T waves, QT beyond the T search window; a “P wave” is also found in noise or atrial fibrillation. The QT figures count every QT measured, also where the server withholds it (M11, Table 4).
2.3 The strap’s built-in high-pass filter
The H10’s ECG passes a high-pass filter before it is sent. Played calibrated multisines on the bench, one H10 pod behaved, to within about 1 % of a step, as a first-order high-pass with a corner near 0.98 Hz (Methods M12); estimators on the same recordings ranged from 0.90 Hz or below to 1.06 Hz, and the corner did not depend on amplitude from 0.2 to 2 mV. A held-out square wave preferred lower corners: the model fitted to the first series passed its limit of 1 % of the step, the model refitted on the repeat missed it narrowly, and with that model’s corner varied the error was smallest at 0.90 Hz, the lowest corner tried (Supplementary Methods S5). The manufacturer states a 0.7 Hz lower band limit without order, type or phase9. Below a few hertz such a filter attenuates and advances slow waves (Fig. 3a): it bends the ST segment and the T wave40, and can create a dip after the T wave that a delineator may read as the T end.
Undoing the filter (Eq. 20) and leaving a 0.05 Hz first-order high-pass, the standard AC coupling of diagnostic electrocardiographs41,42, removed that dip on a bench loop of a public ECG played into the pod (Fig. 3b): QT read 388 ms on the pod’s recording, 396 ms on the played signal and 396 ms after restoration. That equals the reading on the played signal and is 8 ms further from the cardiologists’ 382 ms than the unrestored reading: the restoration returns what the delineator reads without the strap’s filter, not a more accurate QT. On a flat-T loop QT changed from 448 to 444 ms (448 ms on the played signal), 4 ms nearer the cardiologists’ 326 ms and still about 120 ms longer; that error is the delineator’s, not the strap’s. These two loops on one pod are the whole evidence from a real strap.
Because restoring the whole signal also amplified baseline wander and changed amplitudes and the PR interval in an earlier version, the server uses the restored signal only to locate the T end. Passed through a model of the strap’s filter, public 12-lead and Holter ECGs lost QT agreement with cardiologists’ or reference measurements, and the restoration brought it back to about the level of the unfiltered records at every corner from 0.70 to 1.15 Hz; in two FDA drug studies with long QT intervals the share of long QTs shown too short fell, but remains large (Table 4). This is a simulation: the distortion and its inverse come from the same first-order model, so it shows that the restoration tolerates a wrong corner, baseline wander, offset and gaps, not that it is right for a worn strap; no model in it holds the slow component measured on the bench. All of this rests on one pod measured on the bench, without skin; a worn strap has never been compared with a simultaneous reference ECG.
Since server 0.13.0 the server withholds the QT of a recording whose single beats disagree (M11). In the benchmark run this left out part of the QTs of every data set, most on PTB-XL, hospital ECGs of patients, and least on the FDA studies, healthy volunteers in sinus rhythm. On LUDB, the QT Database and PTB-XL, with or without the strap model, the QTs still shown agreed with the reference more often than all QTs measured did (Table 4).
| Measure (reference) | Without the filter | Not restored, 0.98 Hz (study) | Restored, model at 0.70 / 0.98 / 1.15 Hz with gaps |
|---|---|---|---|
| QT recording medians within 20 ms, every QT measured | |||
| LUDB, 200 recordings 12 leads (cardiologists) | 77.1 % | 64.5 % | 78.2 / 77.7 / 76.9 % |
| QT Database, 105 records 2 leads (cardiologists) | 67.5 % | 50.2 % | 65.0 / 65.0 / 64.6 % |
| PTB-XL, per lead (Glasgow program) | 65.4 % | 50.8 % | 65.9 / 63.9 / 62.0 % |
| QT withheld because the beats disagree (M11), share of the QTs measured | |||
| LUDB | 18.7 % | 18.7 / 18.9 / 20.2 % | |
| QT Database | 19.9 % | 19.9 / 22.3 / 22.3 % | |
| PTB-XL | 29.4 % | 28.7 / 29.6 / 29.3 % | |
| QTs still shown, within 20 ms of the same references | |||
| LUDB | 85.3 % | 85.9 / 85.3 / 84.5 % | |
| QT Database | 75.2 % | 72.7 / 72.5 / 70.0 % | |
| PTB-XL | 76.7 % | 76.8 / 74.2 / 71.5 % | |
| FDA studies, 113 160 leads with the study’s QT; model at 0.70 / 0.98 Hz; shares of the QTs shown unless stated | |||
| QT withheld, share of the QTs measured | 4.5 / 4.2 % | ||
| Reference QTc ms shown ms short | 38.7 % | 25.7 / 29.3 % | |
| Reference QTc ms shown ms short | 49.6 % | 35.0 / 40.5 % | |
| Reference QTc ms shown at ms | 5.12 % | 1.2 / 1.0 % | |
| QT within 20 ms of the study’s | 86.7 / 85.3 % | ||
| QT shown and within 20 ms, of all leads | 68.7 % | 81.7 / 80.6 % | |
The FDA benchmark was not run without the filter model, so the share that is the delineator’s and not the filter’s is unknown. The benchmark scores a lead from 5 beats, where the server needs 10 to show a QT (Supplementary Methods S8). The development study’s column predates the withhold rule: nothing was withheld there, so its FDA shares are of every measured QT.
2.4 Breathing rate from the accelerometer alone
The phone’s accelerometer-only breathing rate (Methods M13) shows a value only when two different estimators agree within 2 breaths min−1, a quality index reaches 0.7, the wearer is still and enough samples arrived. It was built after a study had found the server’s estimate wrong in sitting daily life (Table 2), and its rule was fixed before scoring, on 7 of the 15 people of a public daily-life data set recorded with a different chest device31. On the other 8 people, and on paced breathing of one person from 5 to 20 breaths min−1, seated and lying, at ordinary depth and shallow, few shown values were more than 2 breaths min−1 off (Table 2, Supplementary Fig. S1); how few depends on where the windows fall, so every breathing number names its window placement (study windows or app windows, Supplementary Methods S7). The price is coverage: a value in a small share of still daily-life windows and none during movement. Without the rule, on the held-out people’s study windows, the first estimator alone was off in 19.3 % of the values it showed and the second, ungated, in 43.6 %. A value comes at the earliest 73 s after the start; on the paced recordings, started at arbitrary moments, the first window after the start showed a value in 0 of 46 starts in one recording and in 43 of 72 in the other.
3 Discussion
This paper adds a specification, not new methods. Each step follows a published method, adapted where the strap’s 130 Hz ECG, its built-in filter and its noise required it; most constants of the pipeline are ours (Supplementary Table S4). For beat-interval measures alone, established tools exist, among them NeuroKit217 and Kubios HRV43; this analysis exists because the app needs one pipeline that runs on the strap’s raw ECG and accelerometer, and the paper is meant to let others check it step by step.
The weakest result is the threshold estimate. On the one data set it was scored on, it was close to a constant while the laboratory values ranged over 25 bpm: it did not track individual thresholds, and its error after removing the mean bias was larger than the spread of the laboratory values (Table 2). Rogers et al. reported a much smaller bias for adults with their own pipeline8, and the agreement of such thresholds varies between studies and populations7. One difference between the two pipelines can be tried on the same data, and we tried it: applying the smoothness-priors detrending to the corrected intervals resampled at 4 Hz, with the trend read back at the beats, instead of to the beat-indexed series moved the bias from to bpm (, 15 estimates, ), and no detrending gave bpm (14 estimates). The detrending domain therefore explains little of the bias. Whether the rest comes from age, from the beat intervals of a different recorder, from our beat correction, which left windows out (M7), or from other parts of our pipeline cannot be told without Kubios on the same data. The breathing half has been tried on one ramp of one person only: 3 of 31 two-minute windows passed the breathing quality limit during exercise, the ECG estimate jumped between 6 and 40 breaths min−1, and the accelerometer was gated out by motion. A threshold test therefore in practice returns the DFA half alone, with confidence “poor”. We found no public data set that holds an exercise ramp with both ECG and gas exchange; ramps recorded with an ECG, gas exchange and a Kubios analysis, such as those of Rogers et al., are the test this estimate needs.
For sport scientists:
DFA describes how the beat-to-beat intervals fluctuate over spans of 4 to 16 beats, near 1.0 when the fluctuations are correlated, as at easy intensity, and falling towards 0.5, the value of random fluctuations, as intensity rises; the heart rate at which it crosses 0.75 has been proposed as a marker of the first ventilatory threshold5. On the only data set we could score, 15 young athletes cycling a ramp, our estimate of that heart rate read about 20 bpm above the laboratory threshold and did not follow it from one athlete to the next. On present evidence it is therefore no basis for setting training zones, subtracting 20 bpm does not make it one, and its breathing half has not been scored.
Since server 0.13.0 a recording whose single beats disagree shows no QT (M11). Such disagreement is not the QT’s own variation: in healthy adults at rest the standard deviation of the QT from beat to beat averages 3.3 ms (meta-analysis of 23 studies with 1190 adults)44, so when the middle half of the beats spans more than 40 ms of QTcF, the T end was most likely found unreliably or the RR intervals vary too much for a rate correction. For these two cases the AHA/ACCF/HRS recommendations state that “rate correction of the QT interval should not be attempted when RR interval variability is large, as often occurs with atrial fibrillation, or when identification of the end of the T wave is unreliable”45. The rule turns that advice into one number; it hides QTs and repairs none (Limitations).
3.1 Deviations from published methods
Supplementary Table S4 gives the source of every constant, and Supplementary Table S3 compares the threshold pipeline step by step with the method of Rogers, Schaffarczyk and Gronwald5,8,10. The adaptations with the largest effect are the 10-ms floor on the beat-correction thresholds, the cap on the detector’s signal level, the recording-wide R-polarity vote, the restoration of the strap’s filter before the T end is sought, and the acceptance rules of both breathing estimates. Pan and Tompkins’ second RR average and their halving of the thresholds for irregular heart rates are not implemented46; on the recordings of one person (ours) on which this was checked, neither had a measurable effect. Martínez et al. adapt the filter bank to other sampling rates, where we resample the signal33; Lake and Moorman let the tolerance vary, where we fix it47; and QTc uses each beat’s own preceding RR interval, where the recommendations for athletes advise averages when the rate varies with breathing48.
3.2 Limitations
- •
One strap, one person. The filter was measured on one H10 pod on the bench, without skin, at one firmware version. The paced breathing recordings, the server’s fusion limits, the 6-s settling rule, the correction floor and the timing check against the strap’s own RR come from one person. No H10 recording has been compared with a simultaneous reference ECG.
- •
Never tested. Sleep and lying on the side with the phone’s rule; breathing rate during exercise beyond one ramp of one person; the threshold estimate’s breathing half; DFA during exercise against an ECG recorded at a high rate (at 130 Hz the R-peak timing decides DFA when beat-to-beat variation falls to a few milliseconds); other H10 units, firmware versions and straps. Every waveform benchmark used hospital or Holter ECGs resampled to 130 Hz.
- •
The strap’s orientation. The R polarity is decided once per recording from the first eight beats, settling time included. A wrong vote turns the whole recording over for delineation: QT is then read on an inverted T wave and every amplitude changes sign. Nothing in the analysis detects such a vote; this is open in server 0.13.0.
- •
Two missed beats in a row. After a beat labelled missed, the decision loop skips the next beat (Supplementary Methods S2); if the next interval also lacks a beat, it stays doubled in the corrected series that DFA uses.
- •
The server’s breathing rate. Two estimates that agree within 2 breaths min−1 are accepted whatever their quality, and their search bands begin at 6 (ECG) and 4.8 breaths min−1 (accelerometer), so weak estimates tend to agree at slow rates: on PPG-DaLiA, 80 % of the 224 values accepted on agreement alone that had a reference were wrong (study).
- •
Accelerometer breathing. Coverage is low by design and depends on the activity: on the app windows, 42 % of sitting windows got a value, 20 % at a desk, 1 % at lunch and none while driving. The quality threshold sits where the error rate changes steeply (on the app windows, 23 of 248 shown values off at quality 0.70–0.75, 28 of 1104 above). Rhythmic movement at a breathing frequency can be read as breathing (in a simulation, a 1-m sine at 45 per minute was shown as 45 breaths min−1 in 21 of 39 windows).
- •
Irregularity. The limit was chosen on MIT-BIH; the score also rises with frequent early beats and cannot see regular rhythms of abnormal origin; no public data set holds the strap’s RR stream or its contact flag, so the confirmation gates are not scored, and a strap or a file without the flag can never confirm a stretch. The score describes beat intervals and names no condition.
- •
The QT withheld when the beats disagree. About four in ten withheld QTs were right, within 20 ms of the reference (35 to 46 % on the four public data sets, study). A QT wrong the same way in every beat, with its T end always found too early or too late, has a small spread and stays shown, so a long QT is still often shown too short (Table 4). The decision is taken once for the whole recording, from as few as five QTc values: a recording can lose its QT although most of its single minutes would keep it, for example when its heart rate changes (8 of the 46 withheld leads of the whole QT Database records, study). The rule was tuned and confirmed on data sets the benchmarks use, so the shares withheld in Table 4 are a check, not independent evidence.
- •
Choices made after seeing results. Several rules were chosen after their benchmarks had been run, among them the threshold test’s method and window grid, the T-wave width factor, the P-wave rule and the restoration’s design (Supplementary Methods S9). The FDA benchmark guards against regressions and is not independent evidence; the QT “less certain” mark can rest on as few as ten beats and can change when a recording is analysed again.
This analysis is for research. It is not a medical device, its measures are not diagnoses, and its reference limits come from recommendations written for the 12-lead ECG.
Methods
Every equation and constant below is taken from the analysis code of server version 0.13.0; Supplementary Table S4 collects the constants and their sources, and the Supplementary Methods give the rules of M2, M3, M10, M11, M12 and M13 that are too detailed to read in sequence (S1 to S7) and the protocols of the benchmarks (S8). Module versions are those the server stores with every result: beat detection 4, beat correction lt2019.3, beat-interval entropy 1, time-domain HRV 7, DFA 5, breathing 4, threshold rogers2023.4, delineation 2, intervals 4. Where we write “ours” a rule was designed for this pipeline and has no published source. Where a step follows a published method, what we describe is always the implementation. Times are in milliseconds unless stated, is the nominal ECG sampling rate (130 Hz for the H10) and rounds half away from zero; 1 m is a thousandth of the standard acceleration of gravity, 9.81 mm s−2.
M1 Recording, time base and segmentation
The H10 sends the ECG through Polar’s measurement-data service9 in frames of 73 samples (about 0.56 s at the packet size the app negotiates), each sample a 24-bit integer in microvolts (the app configures a resolution of 14 bit), each frame stamped by the strap’s own clock in nanoseconds at its last sample. The accelerometer arrives the same way as 16-bit values in m per axis at a nominal 25 Hz, the rate and the range the app requests. Independently, the standard Bluetooth heart-rate characteristic (0x2A37) carries the strap’s own heart rate and RR intervals in units of 1/1024 s, about once per second, with no device time stamp; the app rounds each RR value to a whole millisecond before storing it. The app places the samples of each frame evenly between the previous frame’s time stamp and its own (at the nominal period, ending at the frame’s stamp, for the first frame and after a gap), and stamps every RR value of a notification with the time of the newest ECG sample on its arrival; in rest recordings of one person (ours) that stamp lay 1.5–3.1 s after the beat it describes. The strap’s clock and sampling rate drift: on our bench one strap sampled at 129.96 Hz against a calibrated generator, and its rate fell by about 5 ppm per minute over half an hour. The analysis therefore takes every beat time from the sample time stamps, while filters, windows and resampling use the nominal rate.
Gaps.
Lost Bluetooth frames show only as a jump in the time stamps. Where two consecutive ECG time stamps differ by more than (11.5 ms at 130 Hz) or by zero or less, the recording is split into gap-free segments. Beat detection restarts in each segment, the first beat after a gap is labelled an artefact (M3), no RR interval spans a gap, and delineation and filter restoration run per segment.
Settling.
Beats are detected on each whole segment; the beats in the first 6 s of the recording are then discarded (60 s for the morning check, a short resting recording whose first minute the app reserves for lying still). The polarity vote of M2 is taken before this cut and includes the settling time. The 6 s rule is ours: in seven resting recordings of one person (ours), 7 to 88 s long, every disagreement between five beat detectors fell within the first 3.5 s and every beat whose shape correlated less than 0.9 with its neighbours within the first 6 s.
Session kinds.
A recording is analysed as rest, morning check, workout or threshold test. The kind changes only the following: the settling time; the whole-recording irregularity score and the comparison of intervals with reference limits (morning check only); the resting breathing rate (rest and morning check); and, for the threshold test, the detrending before DFA (M6), the length of the breathing windows (M8) and the threshold estimate itself (M9).
M2 Beat detection
Beats are found with the decision rules of Pan and Tompkins46, ported line by line from the app’s live detector and run on each gap-free segment (µV). The signal passes a second-order Butterworth low-pass at 15 Hz and a second-order Butterworth high-pass at 5 Hz (Pan and Tompkins’ 5–15 Hz pass band; the Butterworth design is ours), each designed by the bilinear transform with prewarping. With and ,
| low-pass: | (1) | |||||
| high-pass: | (2) |
in direct form II transposed, with each filter’s state set to the steady state of a constant input equal to the first sample. The band-passed signal is differentiated, squared and integrated over a moving window of samples (20 at 130 Hz):
| (3) |
The integrated signal and the band-passed signal each keep a signal level SPK and a noise level NPK with threshold
| (4) |
Every local maximum of is a candidate beat; a candidate is rejected as a T wave by Pan and Tompkins’ slope test or by a width test (ours), is a beat when it exceeds both thresholds, and is otherwise kept for search-back after 1.66 mean RR intervals. Supplementary Methods S1 gives the candidates, the learning phase (2 s, as in Pan and Tompkins), the level updates and every decision as numbered steps. Ours: the Butterworth design; the start of SPK and NPK at half the maximum and half the mean of the learning phase and its restart when the band-passed signal stays below 50 µV; the width test; relearning after 8 s without a beat; and a cap of the signal level at three times itself, because strap spikes of 7 to 24 mV, seen in workout recordings of one person (ours), would otherwise lift both thresholds above every following beat for seconds.
R-peak position and polarity.
From the band-pass peak shifted back by the filters’ group delay at Hz (5 samples at 130 Hz), the raw signal is searched ms for its first maximum and its first minimum. Each beat votes for the extremum that comes first (ours; the rule assumes that on the strap’s lead the R wave precedes the S wave also where , and that a strap worn turned over reverses the order). The first eight beats of the recording, settling time included, each take their own vote; from the ninth beat on, the majority of those eight votes fixes the R polarity for the whole recording, ties counting as upright, and that polarity also decides whether the signal is turned over for delineation (M10). The R time is refined below one sample by a parabola through the peak sample and its neighbours,
| (5) |
applied when is a strict local extremum, with the time stamp on the side of . The beat’s QRS amplitude is the range (maximum minus minimum) of the raw samples from 40 ms before to 80 ms after the R peak.
M3 Beat correction
Beats are labelled and the RR series corrected with the classification of Lipponen and Tarvainen11, the method Kubios HRV Premium43 calls “automatic” correction10. The beats are first cut into runs wherever a beat follows a gap or an interval exceeds 2500 ms (a heart rate below 24 bpm is signal loss); the first beat of every run after the first is labelled artefact (artifact in the research program’s tables). In each run of beats with times :
| (6) | ||||||
| (7) | ||||||
| (8) | ||||||
| (9) |
with , the quartile deviation over the 91 values centred on and the median of the 11 values centred on (windows truncated at the ends of the run; quantile of values by linear interpolation between the sorted values at position counted from 0, numpy’s default). The order is as written: is formed and its negative values doubled first, and is then computed from the absolute values of the doubled series. Every quantity of this section (, , the 91- and 11-beat windows, the reflection below and the interpolation of the correction) is computed within one run and never reaches into the next. The floor of 10 ms is ours: in six workout recordings of one person (ours) at 130–140 bpm, the quartile-based thresholds fell to 4–9 ms and 59 of the 76 beats flagged were ordinary beat-to-beat changes that the strap’s own RR showed within 1 ms. Two neighbourhood features are formed, with indices outside the run reflected at its ends (, ):
| (10) | ||||
A beat is ectopic when and lies beyond the lines (, ); long or short when and lies beyond , or when ; and among those, extra or missed when merging or halving the interval matches the local median within . Supplementary Methods S2 gives the decision loop, how it advances and the rule for the end of a run.
Correction.
Within each run: extra beats are removed; a missed beat is inserted halfway between the beat before it and itself, and both resulting intervals carry the label missed; the two intervals around an ectopic beat and the interval ending at a long/short beat are replaced by linear interpolation (in interval index) between the nearest intact intervals of the same run (neither beat ectopic, the end beat not long/short), or copied from the only intact neighbour at the end of a run; corrected intervals keep their end times. An interval is accepted (normal-to-normal) only if both its beats were detected and labelled normal, also one across a removed extra beat. Accepted intervals feed HRV (M4), the irregularity score (M5) and the ECG breathing signal (M8); DFA (M7) uses the whole corrected series, the runs concatenated in time. The server warns of low signal quality when more than 5 % of detected beats are not normal, and compares the corrected series with the strap’s own RR values: each strap value stamped at time is matched to the corrected interval, among those ending between and ms, that minimises the summed absolute difference over it and two neighbours on each side; a warning follows when more than 5 % of matched pairs differ by more than 20 ms.
M4 Time-domain heart rate variability
Over the accepted intervals (with any interval ending in an irregular window removed, M5), the mean heart rate is , SDNN the sample standard deviation (denominator ), and from the successive differences of adjacent accepted intervals (definitions of the HRV standards49; pNN20 after Mietus et al.50)
| (11) |
being the number of differences. HRV is reported only if the accepted intervals span at least 60 s (from the start of the first to the end of the last); a recording without a single pair of adjacent accepted intervals fails with a message.
M5 Irregularity of beat intervals
Analysis windows of 120 s start at the first analysed beat and every 30 s after it, as long as they end before the last beat; an interval belongs to the window in which it ends. A window is scored if its accepted intervals sum to at least 60 s. For the accepted intervals of a window, in seconds, the sample entropy51 with template length and tolerance s counts, among the first values, the pairs with () and among those the pairs with also (), and the coefficient of sample entropy47 is
| (12) |
undefined when . A window is irregular when , the 95th percentile of regular-rhythm windows in the MIT-BIH Arrhythmia Database13 in our study (95 % specificity). Irregular windows are removed from HRV and DFA , and HRV is withheld when at least half of the scored windows are irregular. A window is confirmed when, in addition, the strap’s own RR values stamped in it (at least 30) give a COSEn above the limit and at least 90 % of those entries that carry a skin-contact flag report contact (ours). When no entry carries the flag the share counts as zero, so a window without contact flags, or without the strap’s RR stream, is never confirmed; the seven H10 test recordings of the analysis code carry the flag in every entry. Only runs of at least seven consecutive confirmed windows (5 min) are reported, as stretches of irregular beat intervals, with the app’s one alert sentence: “Beat-interval irregularity was outside your limits for [duration]. If the strap was worn correctly and this doesn’t match what you were doing, consider talking to a doctor.” Overlapping or touching runs are merged and the duration of their union is reported. The false-alert rate of this rule was measured only on arrhythmia databases (Table 1), never on recordings of healthy people. For the morning check the whole recording is also scored, if it holds at least 20 s and 10 accepted intervals, and an irregular score withholds HRV.
M6 Smoothness-priors detrending
For the threshold test only, the corrected RR series of the whole recording is detrended before DFA by the smoothness-priors method52 with , the Kubios43 setting that Rogers et al. kept8:
| (13) |
with the second-difference matrix (rows ). The system is pentadiagonal and positive definite and is solved by a banded Cholesky factorisation. The series is indexed by beat, so the filter’s dB point, , lies at 0.0089 cycles per beat: 0.009 Hz at 60 bpm and 0.022 Hz at 150 bpm (on a series resampled at 4 Hz it would lie at 0.035 Hz).
M7 DFA
DFA is computed in the analysis windows of M5. A window is used if it is not irregular, at least 100 corrected intervals end in it, and at most 5 % of the detected beats inside it carry a label other than normal. (Rogers et al. found 1–3 % of missed beats to bias slightly and 6 % by up to 19 % with Kubios’s medium-threshold correction, while the mean threshold heart rate stayed within 1 bpm53; in their threshold study they excluded recordings with more than 5 % artefact from the DFA thresholds8.) Supplementary Methods S8 gives the windows these rules left out on ACTES. For the window’s corrected intervals (detrended in a threshold test), the profile , with the window mean, is cut, for each box size , into non-overlapping boxes from the start; a least-squares line in the beat index is removed in each box, and
| (14) |
over the 13 box sizes3. The window’s heart rate is over its corrected intervals as measured (not detrended).
M8 Breathing rate from the ECG and the accelerometer (server)
Breathing windows last 60 s (120 s, the analysis windows, in a threshold test) and step by 30 s from the first analysed beat. Each window gets up to two estimates, one from the ECG and one from the accelerometer, which are then fused54,55.
Band spectrum and peak.
For samples at rate , a symmetric Hann window is applied and the power
| (15) |
is normalised to sum to one. The 0.005 Hz grid interpolates the spectrum; it does not add resolution (about 0.017 Hz for a 60-s window). The rate is at the largest power , and the quality is the share of power within Hz ( bins) of .
ECG.
Two series carry the breath: the QRS amplitudes of normal beats at their R times, and the accepted RR intervals at their end times (respiratory sinus arrhythmia). A window needs accepted intervals covering 80 % of it. Each series is interpolated linearly at 4 Hz over the window (values held beyond its ends), its least-squares line removed, and its band spectrum taken from 0.1 Hz to Hz, half the window’s beat rate, above which a beat-sampled modulation aliases (no estimate if the band is narrower than 0.06 Hz). The two normalised spectra are averaged before the peak is read.
Accelerometer.
The three axes are interpolated linearly onto a 25 Hz grid from the first accelerometer sample. Per axis, a gravity estimate (second-order Butterworth low-pass at 0.04 Hz, started at the first value) is subtracted and the remainder low-passed at 0.7 Hz; an activity signal is the magnitude high-passed at 0.7 Hz (both second-order Butterworth, Eqs. 1–2, at 25 Hz). A window is estimated only if at least 80 % of its expected samples arrived and the root mean square of the activity signal is at most 15 m (ours: on a paced recording of one person, ours, windows without a posture change stayed below 10 m and the two holding the change from sitting to lying reached 69 m). The window’s three filtered axes are projected on the largest principal axis of their covariance matrix (cyclic Jacobi rotations), the approach of using the principal direction of three-axis chest movement56, and the band spectrum is taken from 0.08 to 0.6 Hz.
Fusion.
With , the qualities of the ECG and accelerometer estimates:
- •
only the ECG estimate: kept if ; only the accelerometer estimate: kept if ;
- •
both, within 2 breaths min−1: the quality-weighted mean with quality , kept whatever the qualities;
- •
both, further apart: the window is rejected unless exactly one estimate has quality , which is then kept.
The three limits are ours and rest on one paced recording of one person. For rest and the morning check, the resting rate is the quality-weighted mean of the kept windows.
M9 Threshold estimate from an incremental test
The effort ends at the “stopped” stage marker (or the last ECG sample); only analysis windows that end by then are used. Valid windows are the DFA windows (M7, detrended) and the kept breathing windows (M8) with quality that have a heart rate. At least 8 distinct valid windows are required, and their window heart rates must span at least 40 bpm; otherwise the analysis fails with a message saying which condition was not met.
DFA estimate.
In the sequence of valid DFA windows (windows left out by M7 do not break it), the crossing is the first window with and in windows , and (three windows, 60 s of steps, so that one noisy window does not decide); without such a window, or if no window before the crossing has , there is no estimate. The drop runs from the last window before the crossing with to the first window at or after the crossing with , or, if none of the windows from the crossing to the end of the effort reaches 0.5, to the first window with the lowest among them; it includes every valid window between its two ends, also windows that rise again. With at least three windows in the drop, is regressed on window heart rate by least squares; if the slope is negative, the threshold heart rate is
| (16) |
over the drop windows, the heart rate at which the fitted line crosses 0.755,8.
Breathing estimate.
The valid breathing windows give points (window heart rate , breathing rate ), sorted by . For each knot equal to the heart rate of the third to the third-last point, the hinge model
| (17) |
is fitted by least squares (33 normal equations, Gaussian elimination with partial pivoting; a pivot below of the largest diagonal element counts as singular). Among the fits with (breathing rate rising faster above the knot), the knot with the smallest residual sum of squares is the breathing threshold . The hinge is not compared with a single straight line, so with six or more noisy points some knot will usually qualify: the rule can return a knot for noise. During exercise the accelerometer is mostly removed by M8’s 15-m activity limit and the ECG band ends at 42 breaths min−1 (0.7 Hz); on the one ramp it was tried on, few windows passed (Discussion).
Combination.
With both estimates the result is , with confidence “good” if they differ by at most 8 bpm, “fair” up to 15 bpm and “poor” beyond; with one estimate it is that estimate, confidence “poor”; with none the analysis fails with a message. The confidence classes are ours.
M10 Wave delineation
P, QRS and T boundaries are found per beat by a re-implementation of the wavelet delineator of Martínez et al.33, following the rules and constants of its implementation wavedet as distributed in the ecg-kit toolbox57 (Supplementary Table S2 gives every constant with its name there). The beats are those detected in M2 after the settling cut of M1, normal or not. The method’s filters and windows are defined at 250 Hz. Martínez et al. adapt the filter bank to other sampling rates; we instead turn each gap-free segment upright if the R polarity (M2) is negative and resample it from to 250 Hz, by a Kaiser-windowed sinc evaluated at the exact output instants (128 taps, , dB at of the lower Nyquist frequency, taps normalised to unit sum, edges extended with the first and last sample, outputs from samples). Each beat’s R peak is the highest resampled sample within samples (2 at 130 Hz) of its detected position.
Wavelet transform.
The dyadic transform , , uses the quadratic-spline prototype filters of Mallat and Zhong58, as in the delineators of Li et al.59 and Martínez et al.33, in the algorithme à trous: and ; scale is dilated times (zeros inserted between taps) convolved with dilated times. Each equivalent filter has even length and is antisymmetric, so that index of describes the slope between samples and ; samples beyond the ends repeat the first and last sample. A wave appears as a pair of modulus maxima of opposite sign with a zero crossing at its peak; its onset and end lie where the modulus falls below a fraction of the outer maxima, or at the modulus’s first local minimum, searched over a limited window.
Waves.
The QRS is read at scale within ms of the R peak, with up to two adjoining waves before and after the R wave and zero crossings at scale ; the T wave at scale (else ) in a window that ends running mean RR intervals after the R peak (600 ms in the ordinary case), at least before the next R peak; the P wave at scale (else ) from 340 to 50 ms before the QRS onset. Supplementary Methods S3 gives every rule as numbered steps. Ours: a P wave found only at takes its boundaries from (at the onset fell 40–100 ms early on LUDB; chosen after seeing results); a P whose onset search runs out of window is not reported.
Amplitudes.
The isoelectric level is the mean of the 5 samples (20 ms at 250 Hz) that end 3 samples (12 ms) before the QRS onset, starting no earlier than the P end; R height, J point (at the QRS end), ST60 (15 samples, 60 ms, after it) and T height (at the T peak) are read against it on the upright signal. Wavelet indices map back to session time by linear interpolation of the original sample time stamps at the position . No gain of the recorder is undone anywhere in the analysis: every amplitude is reported in the recorder’s own microvolts. For the one H10 pod we measured, these were about 0.81 times the input voltage (M12), so its amplitudes, and their comparison with the µV limits of M11, are on that scale.
M11 Interval summary
Per normal beat with a delineated QRS: QRS duration, QT T end QRS onset, PR QRS onset P onset, and the amplitudes. QTc uses each beat’s own preceding RR interval in seconds (both beats normal, no gap between them), by Fridericia60 and by Bazett61; Fridericia’s is the headline because it corrects for heart rate better than Bazett’s62:
| (18) |
Each quantity is summarised by its median (the headline), mean, standard deviation and beat count, and only from 10 beats on; PR is reported only if a P wave was found in at least half of the beats. A QT that is shown is marked less certain when the per-beat QTs form two groups (ours): the sorted values are split where two groups, each at least 20 % of the beats, have the smallest summed squared deviation from their means, and the mark is set when the group medians lie at least 40 ms apart and each group’s interquartile range is under half that distance. For the morning check only, the headline values are compared with limits drawn from the international recommendations for ECG interpretation in athletes48 (Supplementary Methods S4); a withheld QTc (below) is not compared. Those recommendations define the QTc limits on Bazett-corrected values, 470 ms for men and 480 ms for women; the analysis applies 470 ms to both sexes (it is not told the sex) and to both the Bazett and the Fridericia median, which is a deviation. The limits are written for the standard 12 leads, not for the strap’s chest lead, so a value beyond them is reported as outside the reference, never as a finding; no benchmark scores these comparisons.
QT withheld when the beats disagree.
Since server 0.13.0 the QT, QTcF and QTcB of a recording are withheld, and the app shows them as “not measurable”, when its single beats disagree: when the interquartile range of the per-beat QTcF of Eq. 18 is above 40 ms, from at least 5 values (fewer decide nothing), with the quartiles of M3 (position , linear interpolation). A withheld QT is not marked less certain; QRS duration, PR and the amplitudes are still reported. The rule and its limit are ours. They were chosen on public reference data under a protocol written before any candidate was scored (study): every record passed through the model of the strap’s filter at 0.98 Hz (Supplementary Methods S8) and was analysed as an H10 recording; the candidates, each on a fixed grid, were spreads of the per-beat QT and QTcF, the beat-to-beat change of the QT, the T-wave amplitude, the share of beats with a T end and the two-group mark. On the QT Database and LUDB (tuning) the rule chosen was the one that halved the share of shown QTs more than 40 ms from the reference while withholding at most a quarter of them, at the smallest share withheld: 13.9 to 6.8 % at 20.0 % withheld (mean of the two sets). It was then frozen and confirmed once, by a test also fixed in advance (the share more than 40 ms off cut by at least a third, the share withheld at most 1.5 times its tuning value), on PTB-XL against the Glasgow program and on the two FDA studies against their own QT: 9.5 to 4.2 % at 16.9 % withheld. The Discussion gives the rule’s basis and what it cannot do; Table 4 gives its effect in the benchmark run.
M12 The strap’s high-pass filter: measurement, model and restoration
Bench.
One H10 pod (firmware 5.0.0) was driven by the arbitrary waveform generator of an oscilloscope calibrated in April 2021 through a resistive divider (attenuation 1/1001, so 2 V became 2 mV), without skin or electrode gel. Test signals were two periodic multisines (0.045–8 Hz and 0.72–59.4 Hz), used for the fit, and a square wave and loops of two LUDB36,37 lead-II recordings, held out from it. Two series were recorded on 18 November 2026, a hand-held one and a repeat with fixed contacts; Supplementary Methods S5 gives the set-up, the signals and the folding of the samples.
Model.
A gain times a high-pass times a low-pass, built from analogue first- and second-order sections, was fitted to both multisines of the first series together; of 12 candidate orders the Bayesian information criterion chose a first-order high-pass, , with Hz, and a six-pole low-pass of three second-order sections (flat within % from 5 to 25 Hz, dB near 42 Hz). The fit’s formal standard error of the corner (0.014 Hz, scaled by ) understates the uncertainty: the reduced was 276, so the misfit is far larger than the measurement noise; the scaled error mainly reflects the low-pass part of the model, and two runs gave corners that differ by 15 to 50 times their within-run errors. Other estimators on the same recordings ranged from 0.90 Hz or below to 1.06 Hz, and a slow component of about 0.15 % of a step remained 12–21 s after a step: the pod’s high-pass is close to, but not exactly, one first-order section (Supplementary Methods S5 gives each estimator). We take the corner as 0.98 Hz, the joint fit’s value; the code was not changed to the 1.004 Hz that the estimator declared in advance for the repeat gave, because QT agreement is flat from 0.70 to 1.15 Hz (Table 4). The manufacturer states a bandwidth of 0.7–40 Hz without the filter’s order, type or phase9. The pod also added a slowly settling offset after its high-pass (from about to µV over ten minutes in the first series) and scaled the signal by about 0.81 (0.83 in the first series, 0.81 in the repeat).
Restoration.
Only where the recorder is an H10 at 130 Hz, the first-order high-pass at Hz is undone and replaced by one at Hz, the first-order AC coupling that standards for diagnostic electrocardiographs specify41,42; even that filter shifts the ST segment measurably40. With the bilinear transform and prewarping each corner has the pole
| (19) |
identical to the exact dB design of Abächerli et al. (their Eq. 11). The inverse filter is their Eq. 3 with and :
| (20) |
At 130 Hz, and ; the gain is 19.60 (25.8 dB) at DC, 4.0 at 0.25 Hz, 1.40 at 1 Hz and 1 at the Nyquist frequency. Why the result is a 0.05 Hz high-pass: the bilinear first-order high-pass with pole is
The cancellation is exact if the strap’s filter is that bilinear model with the assumed corner; for an analogue first-order filter at 0.98 Hz the cascade differs from the 0.05 Hz high-pass by at most 0.002 dB and 0.22∘ up to 20 Hz. If the true corner is 0.90 Hz, the cascade is 0.07 to 0.73 dB too high and 0.5 to 2.4∘ late between 0.1 and 3 Hz; if it is 1.06 Hz, 0.07 to 0.68 dB too low and 0.4 to 2.2∘ early. Abächerli et al. suggest a maximal DC gain of about 125 dB, from which their restoration of a 0.05 Hz filter is bit-exact, and note that 100 dB keeps the error below 5 least significant bits41; our DC gain is 25.8 dB because we restore only down to 0.05 Hz, and a near-ideal inverse would amplify the pod’s own offset after its high-pass roughly -fold. Every gap-free segment starts as if its input had always been at the mean of its first 5 s (650 samples at 130 Hz; one breath at rest), i.e. and , the steady state of Eq. 20. The restored segment is resampled and transformed exactly like the recorded one (M10), and the whole T-wave search of M10 is repeated on its transform; only the T end found there is kept, and a beat with no T wave there has no T end, even if the recorded signal showed one. Every other boundary and every amplitude, the T peak included, comes from the signal as recorded.
Evaluation.
The restoration was evaluated by passing public ECGs through a model of the strap and restoring them (Supplementary Methods S8); the distortion and the restoration come from the same first-order model, so the evaluation shows tolerance to a wrong corner, wander, offset and gaps, not correctness for a worn strap.
M13 Breathing rate from the accelerometer alone (phone)
The app’s heart-rate-and-breathing mode computes a breathing rate on the phone from the strap’s accelerometer alone, live, every 30 s for the preceding 60 s window. The samples are interpolated linearly onto a 25 Hz grid on the strap’s clock, starting at the first sample; a grid point counts as a real sample if it coincides with a sample or lies between two samples at most 100 ms apart. Gaps of up to 180 s are bridged in this way; after a longer gap, whole 30-s steps are cut from the time line until the gap left is at most 180 s, and the windows inside the cut are not computed and read “not enough samples”. Windows of 60 s start at the first sample and every 30 s after it; a window holds the grid points with ( in seconds from the first sample). Two estimators run on each window; Supplementary Methods S6 gives both in full, with the filter and resampler building blocks they share.
The two estimators.
Estimator A, after Schipper et al.63, runs continuously: gravity is tracked on a 16 Hz stream, the acceleration is projected onto two horizontal axes, normalised, low-passed at 0.8 Hz and projected on a weight vector learned by Oja’s rule; its rate is the -weighted mean rate of the 30-s spectral frames (every 5 s, at 4 Hz) whose centre lies in the window and whose peak height exceeds 0.8, and is the mean of the window’s usable frames. Estimator B projects the window’s three detrended, low-passed axes on their principal axis, as in Schipper et al.’s block-wise analysis, band-passes the projection to 4–60 breaths min−1 and counts breaths by the advanced counting method64 as assessed by Charlton et al.30; it gives the rate and , the population standard deviation of the breath durations over their mean.
Quality and rule.
The quality is
| (21) |
The regularity part follows the observation that variable breath durations need long observation for a precise rate65. A window shows a rate only if at least 80 % of its grid points are real samples, the root mean square of the magnitude high-passed at 0.7 Hz (as in M8) is at most 15 m, both estimators give a rate, , and the two rates differ by at most 2 breaths min−1; the shown rate is their mean. Otherwise the window says why it shows none, in that order: not enough samples, moving, quality too low, estimators disagree. Each window’s result is available 12.84 s after its end (the last frame and the zero-phase resamplers look ahead), so the first value comes at the earliest 72.84 s after the first sample.
Choice and scoring.
How the rule was chosen and scored, the reference rate, and the two window placements that every breathing number names (study windows and app windows) are in Supplementary Methods S7.
Statements
Ethics and data
Every validation figure, table and figure of this paper rests on public data sets, used under their licences, and on recordings the author made of himself (paced breathing, short resting and exercise test recordings, one exercise ramp) or of a signal generator on the bench. No other person’s recording is shown, counted or used in any result reported here. As the author recorded only himself, no ethics approval was sought.
Data availability
The public data sets used are on PhysioNet66: the MIT-BIH Arrhythmia Database13,14, the MIT-BIH Noise Stress Test Database15,16, the MIT-BIH Atrial Fibrillation Database18,19, the QT Database34,35, the Lobachevsky University Electrocardiography Database (LUDB)36,37, PTB-XL38,67 and PTB-XL+39,68, the BIDMC PPG and Respiration Dataset22,23, the Fantasia Database24,25, the Apnea-ECG Database26,27, the CEBS database28,29, the PhysioNet/Computing in Cardiology Challenge 2017 training set20,21, the ACTES cycloergometer data set12 and the two FDA ECG studies69,70,71,72; PPG-DaLiA is in the UCI Machine Learning Repository31,32. The author’s own H10 recordings and the bench recordings are not yet public; they are to be published, with the benchmark record behind every validation figure, the data behind each figure and the scripts that produce them, in a public repository for this paper.
Code availability
The analysis code is not public at present. Research groups receive it as a self-contained program (Logix Pulse Lab, working name) that runs the analysis on their own recordings; it serves its screen to a browser on the same computer and contacts no other address. Its released version, 0.2.0-rc1, runs the analysis code of server version 0.12.0, which differs from that of server 0.13.0 described here in one rule only: where server 0.13.0 withholds the QT because the beats disagree (M11), the program still shows QT and QTc, marked less certain only when the per-beat QTs form two groups. Every result lists where its run departs from the server’s path for an app recording: recording details supplied when no metadata were given; an ECG from another recorder converted to whole microvolts and, unless recorded at 130 Hz, resampled to 130 Hz per gap-free stretch with the resampler of M10; beat intervals instead of an ECG (beat times from the file’s time column where it increases, else summed from the intervals; rows without a positive interval skipped; the settling cut applied), from which correction, irregularity (never confirmed), HRV, DFA and the DFA half of the threshold run, but not breathing rate or the waveform intervals; the H10 filter restoration, on by default only for an H10, switched by the user; a laboratory ramp analysed from 6 s before its start, so that the first analysed beat falls at the ramp start, with a “stopped” marker at its end; a gas analyser’s file placed on the recording’s clock, used only for comparisons and read-offs; and tables per window and per beat from additional calls of the same functions. The program also reads time, power and oxygen uptake off at a threshold and the line of M9 at (not a server output), and compares results with a reference table (bias, limits of agreement, mean absolute difference, correlation, intraclass correlations).
Author contributions
A.P. designed the analysis, made the recordings and wrote the paper.
Competing interests
The author works for LOGIXMOTION, which develops the Logix Pulse app and the analysis described here. The Logix Pulse app is free of charge on Android.
References
- [1] Rahel Gilgen-Ammann, Theresa Schweizer, and Thomas Wyss. RR interval signal quality of a heart rate monitor and an ECG Holter at rest and during exercise. European Journal of Applied Physiology, 119(7):1525–1532, 2019. doi:10.1007/s00421-019-04142-5. Cited on page 2.
- [2] Marcelle Schaffarczyk, Bruce Rogers, Rüdiger Reer, and Thomas Gronwald. Validity of the Polar H10 Sensor for Heart Rate Variability Analysis during Resting State and Incremental Exercise in Recreational Men and Women. Sensors, 22(17):6536, 2022. doi:10.3390/s22176536. Cited on page 2.
- [3] C.-K. Peng, Shlomo Havlin, H. Eugene Stanley, and Ary L. Goldberger. Quantification of scaling exponents and crossover phenomena in nonstationary heartbeat time series. Chaos: An Interdisciplinary Journal of Nonlinear Science, 5(1):82–87, 1995. doi:10.1063/1.166141. Cited on pages 2, 17 and 45.
- [4] Thomas Gronwald, Bruce Rogers, and Olaf Hoos. Fractal Correlation Properties of Heart Rate Variability: A New Biomarker for Intensity Distribution in Endurance Exercise and Training Prescription? Frontiers in Physiology, 11:550572, 2020. doi:10.3389/fphys.2020.550572. Cited on page 2.
- [5] Bruce Rogers, David Giles, Nick Draper, Olaf Hoos, and Thomas Gronwald. A New Detection Method Defining the Aerobic Threshold for Endurance Exercise and Training Prescription Based on Fractal Correlation Properties of Heart Rate Variability. Frontiers in Physiology, 11:596567, 2021. doi:10.3389/fphys.2020.596567. Cited on pages 2, 11, 19, 44 and 45.
- [6] Marcelle Schaffarczyk, Bruce Rogers, Rüdiger Reer, and Thomas Gronwald. Validation of a non-linear index of heart rate variability to determine aerobic and anaerobic thresholds during incremental cycling exercise in women. European Journal of Applied Physiology, 123(2):299–309, 2023. doi:10.1007/s00421-022-05050-x. Cited on page 2.
- [7] Sebastian Kaufmann, Thomas Gronwald, Fabian Herold, and Olaf Hoos. Heart Rate Variability-Derived Thresholds for Exercise Intensity Prescription in Endurance Sports: A Systematic Review of Interrelations and Agreement with Different Ventilatory and Blood Lactate Thresholds. Sports Medicine - Open, 9:59, 2023. doi:10.1186/s40798-023-00607-2. Cited on pages 2 and 10.
- [8] Bruce Rogers, Marcelle Schaffarczyk, and Thomas Gronwald. Improved Estimation of Exercise Intensity Thresholds by Combining Dual Non-Invasive Biomarker Concepts: Correlation Properties of Heart Rate Variability and Respiratory Frequency. Sensors, 23(4):1973, 2023. doi:10.3390/s23041973. Cited on pages 2, 3, 6, 10, 11, 17, 19, 44 and 45.
- [9] Polar Electro Oy. H10 ECG explained, Polar BLE SDK technical documentation. GitHub, 2019. https://github.com/polarofficial/polar-ble-sdk/blob/master/technical_documentation/H10_ECG_Explained.docx. Cited on pages 2, 7, 8, 13 and 22.
- [10] Bruce Rogers, Marcelle Schaffarczyk, and Thomas Gronwald. Estimation of Respiratory Frequency in Women and Men by Kubios HRV Software Using the Polar H10 or Movesense Medical ECG Sensor during an Exercise Ramp. Sensors, 22(19):7156, 2022. doi:10.3390/s22197156. Cited on pages 3, 11, 15 and 44.
- [11] Jukka A. Lipponen and Mika P. Tarvainen. A robust algorithm for heart rate variability time series artefact correction using novel beat classification. Journal of Medical Engineering & Technology, 43(3):173–181, 2019. doi:10.1080/03091902.2019.1640306. Cited on pages 3, 5, 15 and 45.
- [12] Clovis Chabert, Denis Mongin, Eric Hermand, Aurélie Collado, and Olivier Hue. Cardiorespiratory measurement from graded cycloergometer exercise testing (version 1.0.0). PhysioNet, 2022. doi:10.13026/2qs3-kh43. Cited on pages 4, 6, 24 and 39.
- [13] George B. Moody and Roger G. Mark. MIT-BIH Arrhythmia Database (version 1.0.0). PhysioNet, 2005. doi:10.13026/C2F305. Cited on pages 5, 16, 24 and 39.
- [14] George B. Moody and Roger G. Mark. The impact of the MIT-BIH Arrhythmia Database. IEEE Engineering in Medicine and Biology Magazine, 20(3):45–50, 2001. doi:10.1109/51.932724. Cited on pages 5, 24 and 39.
- [15] George B. Moody, W. E. Muldrow, and Roger G. Mark. MIT-BIH Noise Stress Test Database (version 1.0.0). PhysioNet, 1992. doi:10.13026/C2HS3T. Cited on pages 5, 24 and 39.
- [16] George B. Moody, W. E. Muldrow, and Roger G. Mark. A noise stress test for arrhythmia detectors. In Computers in Cardiology, volume 11, pages 381–384, 1984. Cited on pages 5, 24 and 39.
- [17] Dominique Makowski et al. NeuroKit2: A Python toolbox for neurophysiological signal processing. Behavior Research Methods, 53(4):1689–1696, 2021. doi:10.3758/s13428-020-01516-y. Cited on pages 5, 10 and 39.
- [18] George B. Moody and Roger G. Mark. MIT-BIH Atrial Fibrillation Database (version 1.0.0). PhysioNet, 1992. doi:10.13026/C2MW2D. Cited on pages 5 and 24.
- [19] George B. Moody and Roger G. Mark. A new method for detecting atrial fibrillation using R-R intervals. In Computers in Cardiology, volume 10, pages 227–230, 1983. Cited on pages 5 and 24.
- [20] Gari D. Clifford et al. AF Classification from a Short Single Lead ECG Recording: the Physionet Computing in Cardiology Challenge 2017. In Computing in Cardiology, volume 44, pages 1–4, 2017. doi:10.22489/CinC.2017.065-469. Cited on pages 5, 24 and 39.
- [21] Gari D. Clifford et al. AF Classification from a Short Single Lead ECG Recording: The PhysioNet/Computing in Cardiology Challenge 2017 (version 1.0.0). PhysioNet, 2017. doi:10.13026/d3hm-sf11. Cited on pages 5, 24 and 39.
- [22] Marco A. F. Pimentel et al. Toward a Robust Estimation of Respiratory Rate From Pulse Oximeters. IEEE Transactions on Biomedical Engineering, 64(8):1914–1923, 2017. doi:10.1109/TBME.2016.2613124. Cited on pages 6, 24 and 39.
- [23] Marco Pimentel et al. BIDMC PPG and Respiration Dataset (version 1.0.0). PhysioNet, 2018. doi:10.13026/C2208R. Cited on pages 6, 24 and 39.
- [24] Nikhil Iyengar, C.-K. Peng, Raymond Morin, Ary L. Goldberger, and Lewis A. Lipsitz. Fantasia Database (version 1.0.0). PhysioNet, 1994. doi:10.13026/C2RG61. Cited on pages 6 and 24.
- [25] N. Iyengar, C.-K. Peng, R. Morin, A. L. Goldberger, and L. A. Lipsitz. Age-related alterations in the fractal scaling of cardiac interbeat interval dynamics. American Journal of Physiology-Regulatory, Integrative and Comparative Physiology, 271(4):R1078–R1084, 1996. doi:10.1152/ajpregu.1996.271.4.R1078. Cited on pages 6 and 24.
- [26] Thomas Penzel, George B. Moody, Roger G. Mark, Ary L. Goldberger, and J. Hermann Peter. Apnea-ECG Database (version 1.0.0). PhysioNet, 2000. doi:10.13026/C23W2R. Cited on pages 6 and 24.
- [27] T. Penzel, G. B. Moody, R. G. Mark, A. L. Goldberger, and J. H. Peter. The Apnea-ECG database. In Computers in Cardiology, volume 27, pages 255–258, 2000. doi:10.1109/CIC.2000.898505. Cited on pages 6 and 24.
- [28] Miguel Angel García-González, Ariadna Argelagós-Palau, Mireya Fernández-Chimeno, and Juan Ramos-Castro. Combined measurement of ECG, Breathing and Seismocardiograms (CEBS database) (version 1.0.0). PhysioNet, 2013. doi:10.13026/C2KW23. Cited on pages 6 and 24.
- [29] M. A. García-González, A. Argelagós-Palau, M. Fernández-Chimeno, and J. Ramos-Castro. A comparison of heartbeat detectors for the seismocardiogram. In Computing in Cardiology Conference (CinC), 2013. http://www.cinc.org/archives/2013/pdf/0461.pdf. Cited on pages 6 and 24.
- [30] Peter H Charlton et al. An assessment of algorithms to estimate respiratory rate from the electrocardiogram and photoplethysmogram. Physiological Measurement, 37(4):610–626, 2016. doi:10.1088/0967-3334/37/4/610. Cited on pages 6, 23, 38 and 46.
- [31] Attila Reiss, Ina Indlekofer, Philip Schmidt, and Kristof Van Laerhoven. Deep PPG: Large-Scale Heart Rate Estimation with Convolutional Neural Networks. Sensors, 19(14):3079, 2019. doi:10.3390/s19143079. Cited on pages 6, 10, 24 and 38.
- [32] Attila Reiss and Ina Indlekofer. PPG-DaLiA. UCI Machine Learning Repository, 2019. doi:10.24432/C53890. Cited on pages 6, 24 and 38.
- [33] J. P. Martínez, R. Almeida, S. Olmos, A. P. Rocha, and P. Laguna. A Wavelet-Based ECG Delineator: Evaluation on Standard Databases. IEEE Transactions on Biomedical Engineering, 51(4):570–581, 2004. doi:10.1109/TBME.2003.821031. Cited on pages 7, 11, 19, 20 and 46.
- [34] Pablo Laguna, Roger G. Mark, Ary L. Goldberger, and George B. Moody. QT Database (version 1.0.0). PhysioNet, 1997. doi:10.13026/C24K53. Cited on pages 7, 24 and 40.
- [35] Pablo Laguna, Roger G. Mark, Ary L. Goldberger, and George B. Moody. A database for evaluation of algorithms for measurement of QT and other waveform intervals in the ECG. In Computers in Cardiology, volume 24, pages 673–676, 1997. doi:10.1109/CIC.1997.648140. Cited on pages 7, 24 and 40.
- [36] Alena I. Kalyakulina et al. LUDB: A New Open-Access Validation Tool for Electrocardiogram Delineation Algorithms. IEEE Access, 8:186181–186190, 2020. doi:10.1109/ACCESS.2020.3029211. Cited on pages 7, 8, 21, 24 and 40.
- [37] Alena Kalyakulina et al. Lobachevsky University Electrocardiography Database (version 1.0.1). PhysioNet, 2021. doi:10.13026/eegm-h675. Cited on pages 7, 8, 21, 24 and 40.
- [38] Patrick Wagner et al. PTB-XL, a large publicly available electrocardiography dataset. Scientific Data, 7(1):154, 2020. doi:10.1038/s41597-020-0495-6. Cited on pages 7, 24 and 40.
- [39] Nils Strodthoff et al. PTB-XL+, a comprehensive electrocardiographic feature dataset. Scientific Data, 10(1):279, 2023. doi:10.1038/s41597-023-02153-8. Cited on pages 7, 24 and 40.
- [40] Jonas Isaksen et al. Quantification of the first-order high-pass filter’s influence on the automatic measurements of the electrocardiogram. Computer Methods and Programs in Biomedicine, 139:163–169, 2017. doi:10.1016/j.cmpb.2016.11.003. Cited on pages 7 and 22.
- [41] Roger Abächerli et al. Digital DC-Reconstruction of AC-Coupled Electrophysiological Signals with a Single Inverting Filter. PLOS ONE, 11(3):e0150207, 2016. doi:10.1371/journal.pone.0150207. Cited on pages 7, 22 and 46.
- [42] Paul Kligfield et al. Recommendations for the Standardization and Interpretation of the Electrocardiogram: Part I: The Electrocardiogram and Its Technology. Circulation, 115(10):1306–1324, 2007. doi:10.1161/CIRCULATIONAHA.106.180200. Cited on pages 7, 22 and 46.
- [43] Mika P. Tarvainen, Juha-Pekka Niskanen, Jukka A. Lipponen, Perttu O. Ranta-aho, and Pasi A. Karjalainen. Kubios HRV – Heart rate variability analysis software. Computer Methods and Programs in Biomedicine, 113(1):210–220, 2014. doi:10.1016/j.cmpb.2013.07.024. Cited on pages 10, 15, 17 and 44.
- [44] Mathias Baumert et al. QT interval variability in body surface ECG: measurement, physiological basis, and clinical value: position statement and consensus guidance endorsed by the European Heart Rhythm Association jointly with the ESC Working Group on Cardiac Cellular Electrophysiology. Europace, 18(6):925–944, 2016. doi:10.1093/europace/euv405. Cited on page 11.
- [45] Pentti M. Rautaharju, Borys Surawicz, and Leonard S. Gettes. AHA/ACCF/HRS Recommendations for the Standardization and Interpretation of the Electrocardiogram: Part IV: The ST Segment, T and U Waves, and the QT Interval. Circulation, 119(10):e241–e250, 2009. doi:10.1161/CIRCULATIONAHA.108.191096. Cited on page 11.
- [46] Jiapu Pan and Willis J. Tompkins. A Real-Time QRS Detection Algorithm. IEEE Transactions on Biomedical Engineering, BME-32(3):230–236, 1985. doi:10.1109/TBME.1985.325532. Cited on pages 11, 14, 32 and 45.
- [47] Douglas E. Lake and J. Randall Moorman. Accurate estimation of entropy in very short physiological time series: the problem of atrial fibrillation detection in implanted ventricular devices. American Journal of Physiology-Heart and Circulatory Physiology, 300(1):H319–H325, 2011. doi:10.1152/ajpheart.00561.2010. Cited on pages 11, 16 and 45.
- [48] Sanjay Sharma et al. International Recommendations for Electrocardiographic Interpretation in Athletes. Journal of the American College of Cardiology, 69(8):1057–1075, 2017. doi:10.1016/j.jacc.2017.01.015. Cited on pages 11, 20, 35 and 46.
- [49] Task Force of the European Society of Cardiology and the North American Society of Pacing and Electrophysiology. Heart Rate Variability: Standards of Measurement, Physiological Interpretation, and Clinical Use. Circulation, 93(5):1043–1065, 1996. doi:10.1161/01.CIR.93.5.1043. Cited on pages 16 and 45.
- [50] J. E. Mietus, C.-K. Peng, I. Henry, R. L. Goldsmith, and A. L. Goldberger. The pNNx files: re-examining a widely used heart rate variability measure. Heart, 88(4):378–380, 2002. doi:10.1136/heart.88.4.378. Cited on pages 16 and 45.
- [51] Joshua S. Richman and J. Randall Moorman. Physiological time-series analysis using approximate entropy and sample entropy. American Journal of Physiology-Heart and Circulatory Physiology, 278(6):H2039–H2049, 2000. doi:10.1152/ajpheart.2000.278.6.H2039. Cited on page 16.
- [52] M.P. Tarvainen, P.O. Ranta-aho, and P.A. Karjalainen. An advanced detrending method with application to HRV analysis. IEEE Transactions on Biomedical Engineering, 49(2):172–175, 2002. doi:10.1109/10.979357. Cited on pages 17 and 45.
- [53] Bruce Rogers, David Giles, Nick Draper, Laurent Mourot, and Thomas Gronwald. Influence of Artefact Correction and Recording Device Type on the Practical Application of a Non-Linear Heart Rate Variability Biomarker for Aerobic Threshold Determination. Sensors, 21(3):821, 2021. doi:10.3390/s21030821. Cited on page 17.
- [54] Alexander M. Chan, Nima Ferdosi, and Ravi Narasimhan. Ambulatory respiratory rate detection using ECG and a triaxial accelerometer. In 2013 35th Annual International Conference of the IEEE Engineering in Medicine and Biology Society (EMBC), pages 4058–4061, 2013. doi:10.1109/EMBC.2013.6610436. Cited on page 17.
- [55] Walter Karlen, S. Raman, J. M. Ansermino, and G. A. Dumont. Multiparameter Respiratory Rate Estimation From the Photoplethysmogram. IEEE Transactions on Biomedical Engineering, 60(7):1946–1953, 2013. doi:10.1109/TBME.2013.2246160. Cited on page 17.
- [56] Guan-Zheng Liu, Yan-Wei Guo, Qing-Song Zhu, Bang-Yu Huang, and Lei Wang. Estimation of Respiration Rate from Three-Dimensional Acceleration Data Based on Body Sensor Network. Telemedicine and e-Health, 17(9):705–711, 2011. doi:10.1089/tmj.2011.0022. Cited on page 18.
- [57] Andrés Julio Demski and Mariano Llamedo Soria. ecg-kit: a Matlab Toolbox for Cardiovascular Signal Processing. Journal of Open Research Software, 4(1):e8, 2016. doi:10.5334/jors.86. Cited on pages 19 and 43.
- [58] S. Mallat and S. Zhong. Characterization of signals from multiscale edges. IEEE Transactions on Pattern Analysis and Machine Intelligence, 14(7):710–732, 1992. doi:10.1109/34.142909. Cited on pages 20 and 46.
- [59] Cuiwei Li, Chongxun Zheng, and Changfeng Tai. Detection of ECG characteristic points using wavelet transforms. IEEE Transactions on Biomedical Engineering, 42(1):21–28, 1995. doi:10.1109/10.362922. Cited on page 20.
- [60] L. S. Fridericia. Die Systolendauer im Elektrokardiogramm bei normalen Menschen und bei Herzkranken. Acta Medica Scandinavica, 53(1):469–486, 1920. doi:10.1111/j.0954-6820.1920.tb18266.x. Cited on page 20.
- [61] H. C. Bazett. An analysis of the time-relations of electrocardiograms. Heart, 7:353–370, 1920. Cited on page 20.
- [62] Bert Vandenberk et al. Which QT Correction Formulae to Use for QT Monitoring? Journal of the American Heart Association, 5(6):e003264, 2016. doi:10.1161/JAHA.116.003264. Cited on page 20.
- [63] Fons Schipper et al. Estimation of respiratory rate and effort from a chest-worn accelerometer using constrained and recursive principal component analysis. Physiological Measurement, 42(4):045004, 2021. doi:10.1088/1361-6579/abf01f. Cited on pages 23, 36, 38 and 46.
- [64] Axel Schäfer and Karl W. Kratky. Estimation of Breathing Rate from Respiratory Sinus Arrhythmia: Comparison of Various Methods. Annals of Biomedical Engineering, 36(3):476–485, 2008. doi:10.1007/s10439-007-9428-1. Cited on pages 23 and 38.
- [65] Gordon B. Drummond et al. Classifying signals from a wearable accelerometer device to measure respiratory rate. ERJ Open Research, 7(2):00681-2020, 2021. doi:10.1183/23120541.00681-2020. Cited on page 23.
- [66] Tom Pollard et al. PhysioNet as a global platform for biomedical research. Nature Health, 1(8):792–795, 2026. doi:10.1038/s44360-026-00096-z. Cited on page 24.
- [67] Patrick Wagner, Nils Strodthoff, Ralf-Dieter Bousseljot, Wojciech Samek, and Tobias Schaeffter. PTB-XL, a large publicly available electrocardiography dataset (version 1.0.3). PhysioNet, 2022. doi:10.13026/kfzx-aw45. Cited on pages 24 and 40.
- [68] Nils Strodthoff et al. PTB-XL+, a comprehensive electrocardiographic feature dataset (version 1.0.1). PhysioNet, 2023. doi:10.13026/g6h6-7g88. Cited on pages 24 and 40.
- [69] Jose Vicente, Lars Johannesen, and David G. Strauss. ECG Effects of Ranolazine, Dofetilide, Verapamil, and Quinidine (version 1.0.0). PhysioNet, 2016. doi:10.13026/C2HP45. Cited on pages 24 and 40.
- [70] Jose Vicente, Lars Johannesen, and David G. Strauss. ECG Effects of Dofetilide, Moxifloxacin, Dofetilide+Mexiletine, Dofetilide+Lidocaine and Moxifloxacin+Diltiazem (version 1.0.0). PhysioNet, 2016. doi:10.13026/C2D016. Cited on pages 24 and 40.
- [71] Lars Johannesen et al. Differentiating Drug-Induced Multichannel Block on the Electrocardiogram: Randomized Study of Dofetilide, Quinidine, Ranolazine, and Verapamil. Clinical Pharmacology & Therapeutics, 96(5):549–558, 2014. doi:10.1038/clpt.2014.155. Cited on pages 24 and 40.
- [72] Lars Johannesen et al. Late sodium current block for drug-induced long QT syndrome: Results from a prospective clinical trial. Clinical Pharmacology & Therapeutics, 99(2):214–223, 2016. doi:10.1002/cpt.205. Cited on pages 24 and 40.
- [73] Association for the Advancement of Medical Instrumentation. ANSI/AAMI EC57:2012 (R2020) Testing and reporting performance results of cardiac rhythm and ST segment measurement algorithms. AAMI, Arlington, VA, 2012. Cited on page 39.
- [74] George Moody, Tom Pollard, and Benjamin Moody. WFDB Software Package (version 10.7.0). PhysioNet, 2022. doi:10.13026/gjvw-1m31. Cited on page 39.
- [75] J. Martin Bland and Douglas G. Altman. Statistical methods for assessing agreement between two methods of clinical measurement. The Lancet, 327(8476):307–310, 1986. doi:10.1016/S0140-6736(86)90837-8. Cited on page 40.
- [76] Bruce Rogers, Marcelle Schaffarczyk, Martina Clauß, Laurent Mourot, and Thomas Gronwald. The Movesense Medical Sensor Chest Belt Device as Single Channel ECG for RR Interval Detection and HRV Analysis during Resting State and Incremental Exercise: A Cross-Sectional Validation Study. Sensors, 22(5):2032, 2022. doi:10.3390/s22052032. Cited on page 44.
- [77] Bruce Rogers, David Giles, Nick Draper, Laurent Mourot, and Thomas Gronwald. Detection of the Anaerobic Threshold in Endurance Sports: Validation of a New Method Using Correlation Properties of Heart Rate Variability. Journal of Functional Morphology and Kinesiology, 6(2):38, 2021. doi:10.3390/jfmk6020038. Cited on page 44.
- [78] Troy J. Cross, Norman R. Morris, Donald A. Schneider, and Surendran Sabapathy. Evidence of break-points in breathing pattern at the gas-exchange thresholds during incremental cycling in young, healthy subjects. European Journal of Applied Physiology, 112(3):1067–1076, 2012. doi:10.1007/s00421-011-2055-4. Cited on page 44.
Supplementary information
Supplementary Methods
The numbered steps below complete the Methods; symbols and constants are those of the section named.
S1 Beat detection: candidates and decisions (M2)
Steps 1–7 · Per gap-free segment, sample by sample:
- 1.
Candidates. Every local maximum of ( and ) is offered; while a candidate is pending, a larger maximum replaces it, and the pending candidate is judged samples (26 at 130 Hz) after its maximum. For a candidate at , over : its integrated value , its slope , its band-pass height (the derivative’s delay of two samples), and its width , the number of consecutive samples around the band-pass peak with .
- 2.
Learning. The first samples form a learning phase (Pan and Tompkins’ 2 s46). At its end and over the phase, and the same for (ours); if µV, the phase restarts at the next sample. Candidates that are due during the learning phase are queued and judged in order when it ends.
- 3.
T-wave test. If a previous beat exists and the candidate lies less than samples after it, the candidate is a T wave when (slope test46) or when , and (width test, ours); and belong to the previous beat.
- 4.
Beat. A candidate that is not a T wave is a beat when and (Eq. 4). A beat updates, for both signals, with its peak and ; its distance to the previous beat (in samples) joins the last eight RR intervals; it sets (first beat) or updates it with weight 0.125, but only if it lies at least samples after the previous beat; and stored candidates at or before it are discarded.
- 5.
Rejection. Any other candidate updates for both signals and, unless it is a T wave, is stored for search-back.
- 6.
Search-back. At every sample after learning, if at least one RR interval is known, candidates are stored, and more than 1.66 times the mean of the last (up to) eight RR intervals has passed since the anchor (the last beat, the end of learning, or the last search-back that found nothing), the stored candidate with the largest among those with and becomes a beat as in step 4 with . If none qualifies, the stored candidates are discarded and the anchor moves to the current sample.
- 7.
Relearning. When more than samples have passed since the last beat (or since the end of learning, before the first beat), learning restarts at the next sample; this also clears the RR history, the stored candidates, the previous beat and .
S2 Beat correction: the decision loop (M3)
All beats of a run start as normal; a run of fewer than four beats keeps them so.
Decision loop (i)–(iii) · Then, for starting at 1 while :
- (i)
if and and either or , beat , the one between intervals and , is ectopic and ;
- (ii)
otherwise, if and , ;
- (iii)
otherwise the candidates are beat and, if , also beat , examined in that order.
A candidate is long if and short if ; if it is neither and it stays normal; otherwise it is extra if short and (never the last beat of a run, which has no ), missed if long and , and long/short in every other case. If a candidate is extra or missed, and the remaining candidate is not examined; otherwise advances by the number of candidates (1 or 2). After the loop, every beat from the final to the end of the run with is labelled by the same candidate test (ours: without it a strap spike that ends a run before a detector drop-out passes as normal), skipping the next beat after an extra or missed one. Beat 0 of a run, which has no measured interval, stays normal unless the run follows a split (artefact). In the correction, interval indices count after the removals and insertions, and an interval to be interpolated keeps its measured value if its run holds no intact interval.
S3 Wave delineation (M10)
At 250 Hz, with . A modulus maximum of of a given sign is an index with , and of that sign; a zero crossing is the first sign change (), at whichever of the two samples is nearer zero. The onset search from a slope at walks back at most samples to the first sample with or, from the second step on, to the sample after the first local minimum of ; if neither occurs it returns the window’s start as “not reached”. The end search mirrors it forward (the sample before the local minimum; the window’s end if neither occurs). Running mean RR: it starts at the median of the segment’s R-to-R intervals; at each later beat an interval within 0.5 to 1.5 times it (exclusive) updates it as .
Rules Q1–Q10 · QRS, with ms:
- Q1.
A beat closer than to either end of the segment is not delineated. within of the R peak. The R wave’s slopes are the nearest local extrema of before and after the peak within ; without both, there is no QRS.
- Q2.
If the two slopes have the same sign, the larger of the first opposite-signed maximum within after the later slope and the last opposite-signed maximum within 70 ms before the earlier slope replaces its same-signed counterpart.
- Q3.
The earliest same-signed maximum with within 70 ms before the earlier slope replaces it; the latest one within 130 ms after the later slope replaces that.
- Q4.
First wave before: the zero crossing of within 80 ms before the earlier slope; the nearest opposite-signed maximum of within 80 ms before that crossing is its slope, moved to the earliest same-signed maximum with within a further 80 ms (its modulus the larger of the two); it counts if its modulus is at least . Second wave before: the same from the first wave’s slope, without the move, counting from .
- Q5.
First wave after: the zero crossing within 130 ms after the later slope (of if the R wave is positive, of if negative); the nearest opposite-signed maximum within 80 ms after it, moved to the latest same-signed maximum with within a further 100 ms; it counts from . Second wave after: the same from the first wave’s slope with , without the move, counting from .
- Q6.
A first wave without a second whose zero crossing lies more than 160 ms from the R peak is dropped, and a second wave more than 160 ms beyond the first’s crossing.
- Q7.
With all four waves present, the second wave with the smaller modulus is dropped. Then, with a first wave on both sides: a second wave after is dropped if its modulus is at most that of the first wave before, else the first wave before is dropped; otherwise a second wave before is dropped if its modulus is at most that of the first wave after, else the first wave after is dropped.
- Q8.
The first wave is the second wave before, else the first wave before (sign opposite to the R wave), else the R wave; the last wave likewise after.
- Q9.
Onset: onset search from the first wave’s slope over 80 ms with (positive first wave) or 15 (negative). If the first wave is not the R wave and the onset lies at least 120 ms before the R peak, or at least 50 ms (negative first wave) or 80 ms (positive) before that wave’s zero crossing, the onset is searched again from the R wave’s earlier slope with the R wave’s divisor.
- Q10.
End: end search from the last wave’s slope over 80 ms with (positive last wave) or 8 (negative). If the last wave is a negative wave other than the R wave and the end lies more than 270 ms after the R peak or more than 150 ms after that wave’s crossing, the end is searched again from the R wave’s later slope with the R wave’s divisor, and the R peak counts as the last wave’s crossing.
Rules T1–T6 · T wave:
- T1.
The window starts at the later of the R peak plus and the sample after the QRS end. Its length from the R peak is , or 600 ms when s and the next RR lies within 0.5 to 1.5 times (exclusive); it is shortened to if that is shorter, and, for the last beat of a segment, to ms. The window thus ends that length after the R peak. A window shorter than 100 ms holds no T wave.
- T2.
At scale (zero crossings at ) and, if no T wave is found there, at (crossings at ): the largest positive and the largest negative modulus maxima in the window (for a sign without one, a window end whose value has that sign); the larger in modulus is the main slope. It must exceed a quarter of the root mean square of the scale from the R peak to the next R peak (to the segment’s end for the last beat).
- T3.
The nearest opposite-signed maximum before the main slope and the nearest after it (failing one, the window’s edge if its value has the opposite sign) are further slopes if they reach of the main modulus and lie within 200 ms of it. If both qualify, only the larger is kept unless the smaller reaches of the main modulus.
- T4.
T peak: the zero crossing of the finer scale (else of the scale itself, else the midpoint) between the main slope and its partner (the earlier one when both are kept). With the main slope alone, the crossing towards the nearest opposite-signed maximum before it, else the nearest local extremum of the scale before it.
- T5.
T end: end search from the last slope over 120 ms with , clipped at the window’s end.
- T6.
Rules P1–P4 · P wave:
- P1.
The window runs from 340 ms before the QRS onset, but not before the previous beat’s R peak or last wave end (T end, else QRS end), to 50 ms before the QRS onset; shorter than 100 ms, it holds no P wave.
- P2.
At , then : the largest positive and the largest negative modulus maxima in the window (window ends as in T2) must both exist, lie less than 110 ms apart and each exceed 0.02 times the root mean square of the scale from the previous R peak to this one.
- P3.
At the nearest maxima of the same signs at replace them, if both exist and keep their order (ours).
- P4.
Onset: onset search from the earlier slope over with ; if it runs out of window there is no P wave. End: end search from the later slope over with .
S4 Reference limits of the morning check (M11)
A headline value is outside the reference when it lies strictly beyond: QRS duration above 140 ms; PR above 400 ms or below 120 ms; J point or ST60 below µV; an upright T wave in fewer than 90 % of beats; mean heart rate below 30 or above 100 bpm; QTcF or QTcB above 470 ms or below 320 ms48. A QTc withheld because the beats disagree (M11) is not compared and cannot be listed as outside the reference.
S5 The bench (M12)
The pod’s snap contacts were driven by the arbitrary waveform generator of a PicoScope 2205A (8-bit buffer of 4096 samples, zero-order hold, DC-coupled, calibrated in April 2021) through a divider of 100 k and 100 , the wires held in or pinched onto the snaps (hand-held series) or pinched under them (repeat); the app stored the strap’s samples with their time stamps. Test signals: two periodic multisines (25 lines from 0.045 to 8 Hz; 43 lines from 0.72 to 59.4 Hz; 2 mV peak to peak), a 2 mV square wave with a step every 22.4 s, and loops of two LUDB lead-II recordings. The hand-held series lasted 10.3 min (80 154 samples, none lost), the repeat 32.3 min (251 777 samples, none lost) and included amplitudes of 0.2 and 0.5 mV. The first 20 s of every run were discarded; samples were folded on the generator period, the period fitted from the data, with one free time shift per run (absolute latency cannot be measured this way). Second-order high-pass candidates of the model collapsed onto the first-order one. Corner estimates: in the repeat, the estimator declared in advance (a first-order fit per run on the slow multisine’s lines from 0.2 to 8 Hz) gave 1.004 Hz (0.993 to 1.024 over four runs), independent of amplitude from 0.2 to 2 mV; the same fit on other bands gave 0.993 to 1.017 Hz; the fast multisine alone 1.03 to 1.06 Hz; the twelve-candidate model refitted on the repeat 0.968 Hz. The square wave, which no fit had seen, stayed within its limit of 1 % of the step with the model fitted to the first series (corner 0.979 Hz; 0.5 and 0.9 % after the two edges), whose corner varied gave the best match at 0.93–0.95 Hz. The model refitted on the repeat (corner 0.968 Hz, reduced 310) missed the limit narrowly (1.01 and 1.07 %); with its corner varied, the errors were 1.09 and 1.15 % at 0.98 Hz, 1.02 and 1.08 % at 0.97 Hz, 0.83 and 0.88 % at 0.94 Hz and 0.69 and 0.70 % at 0.90 Hz, the lowest corner tried: the time-domain steps prefer 0.90 Hz or lower, the fast multisine’s lines 1.03 to 1.06 Hz.
S6 The phone’s two breathing estimators (M13)
Both estimators use two standard building blocks of the reference implementation in Python’s SciPy, which the app reproduces sample for sample: a polyphase resampler by the rational factor (FIR low-pass of taps, Kaiser window with , cutoff at of the Nyquist frequency, gain , the signal taken as zero outside its ends, output sample at input time with no delay, outputs from inputs), and Butterworth filters as SciPy’s butter designs them (the analogue Butterworth low-pass of the stated order with its corner prewarped to ; for the band-pass, both edges prewarped and the low-pass turned into a band-pass centred at their geometric mean with their difference as bandwidth; then the bilinear transform; at second order this gives Eqs. 1–2), run either forward only from the steady state of the first input value, or forward and backward with odd extension of samples at each end ( second-order sections, of them first order) and steady-state starts scaled by the first value of the extended signal.
Estimator A: constrained recursive PCA (after Schipper et al.63).
Each axis (in ) is low-passed (third-order Butterworth at 3.5 Hz, forward from the steady state of its first value) and resampled to 16 Hz (polyphase, ), giving . The estimator keeps a gravity estimate , a chosen device axis, the last sample of the fast settings (at first ), a level , a low-pass at 0.8 Hz (third-order Butterworth, from a zero state), a weight vector and a skewness .
Steps A1–A7 · Each 16 Hz sample passes these steps, in this order:
- A1.
Gravity. Sample 0 sets and chooses the device axis least aligned with it; it is not tested for movement, and its horizontal vector (A3) is . For , , with if as the samples before left it, else .
- A2.
Movement. For , sample is a movement sample if (60 m; this is not the 15-m activity limit of the rule); then . Sample takes the fast settings of A4, A6 and A7 if after this test. They thus hold for the movement sample itself and the 160 samples (10 s) after it, whereas the fast gravity update of A1 begins with the sample after it.
- A3.
Horizontal vector. is the chosen device axis with its component along removed, normalised (the axis is replaced by the one least aligned with only when ), , and .
- A4.
- A5.
Low-pass. passes the 0.8 Hz low-pass, giving .
- A6.
Projection. By Oja’s rule, in this order,
(22) with ( fast).
- A7.
Sign. (; fast); if then , and change sign. The flip follows Oja’s update and leaves as it is: the sample’s output is of A6, unflipped.
Guards (ours): a gravity estimate below in A3 (its then counts as ) or a level below after A4 makes the sample flat: zero enters the low-pass in A5, and the sample spoils its frame as a movement sample does; a level below is replaced by of the first sample whose norm reaches . If is not finite after A6, the projection restarts (, low-pass at zero, , ) and the sample’s output is 0, as for a flat sample. The outputs are resampled to 4 Hz (polyphase, ); 4 Hz sample is unusable if any of the 16 Hz samples to is a movement or flat sample. Frame holds the 4 Hz samples to , i.e. 30 s starting s after the first sample, and its centre lies at s; it is mean-removed, multiplied by a symmetric Hann window and evaluated with a 256-point DFT at bins 5 to 64 (4.7 to 60 breaths min−1, 0.94 breaths min−1 apart); its peak height is at the largest bin, so that a unit sine reads 1. A frame is unusable if any of its 4 Hz samples is. A 60-s window uses the usable frames whose centre lies in it: its rate is the -weighted mean of the frame rates with (no rate if none), and is the mean of all its usable frames. Frame movement (60 m per 16 Hz sample) and the rule’s activity limit (15 m root mean square over the window) are different criteria, so a window can pass the one and fail the other. Our changes to the published method: the horizontal basis (the published rotation is singular when gravity lies along the device’s axis, as on an upright H10 wearer, and doubled every rate in our implementation); the sign rule ( instead of , which oscillated from a zero start); the 4–60 breaths min−1 search band; and two settings the paper leaves open (the spectrum scaling and 10 s of fast settings after movement). Because of the start states, estimates in the first two minutes of a recording depend on these details more than later ones.
Estimator B: block PCA and breath counting.
The window’s three axes (m, 1500 grid points) are each linearly detrended and low-passed at 0.8 Hz (third-order Butterworth, forward and backward), as in Schipper et al.’s block-wise PCA63, and projected, without removing their means again, on the eigenvector of the largest eigenvalue of their sample covariance (denominator ), with the sign that the LAPACK routine dsyevd returns (as numpy’s eigh); the sign matters, because the counter below counts maxima. A window whose total variance is below m is flat and gives no rate (ours). The projection is detrended, band-passed to 4–60 breaths min−1 (fourth-order Butterworth band-pass, i.e. 8 poles, forward and backward) and resampled to 5 Hz (polyphase, ). Breaths are counted by the advanced counting method64 as assessed by Charlton et al.30: the signal is detrended again; every sample with and is a maximum, every one with and a minimum; with equal to 0.3 times the 75th percentile (linear interpolation) of the absolute differences between consecutive extrema, computed once, the consecutive pair with the smallest absolute difference is removed while that difference is below and at least three extrema remain. The remaining maxima are breaths. With at least two maxima the rate is , the spacing of the first and last maximum divided by their count minus one; with at least three maxima, is the population standard deviation of the breath durations over their mean. A window in which either estimator gives no rate, or is undefined (no usable frame, or fewer than three maxima), shows no rate for the reason “quality too low” (M13).
S7 How the phone’s rule was chosen and scored (M13)
Before any accuracy figure was computed, a written protocol fixed the candidate estimators, gates and scoring, and the protocol, the code and the frozen rule were committed before the first scoring report (a separate review checked the time stamps; it could not exclude runs made elsewhere, and the 15 people of the public data set were not new to the author). The rule was chosen on 7 of the 15 people of PPG-DaLiA31,32 (958 still windows with a belt-derived count) as the candidate with the largest coverage of still windows among those with at most 4 % of shown values more than 2 breaths min−1 off; 153 of 632 candidates qualified. The other 8 people and the paced H10 recordings were used only for scoring. The reference rate was the breath count of the chest device’s respiration belt by Charlton’s breath detector30; windows with fewer than three belt breaths were not scored. Still activities were sitting, desk work, driving and lunch. Results are given for two window placements, and every breathing number in this paper names which. Study windows: the windows of that first, pre-registered scoring, placed where the server places its breathing windows (every 30 s from the first analysed beat of the recording) and with estimator A’s first horizontal axis chosen from the whole recording’s mean; on the H10 recordings the study’s 25 Hz grid starts at the first ECG sample, holding the first accelerometer value until the accelerometer starts (the study’s estimator A has no flat-signal guard), and only windows within the accelerometer’s span are scored. App windows: the windows of the app as described above, every 30 s from the first accelerometer sample; because which windows pass the rule depends on where they fall, the app windows were scored at six start offsets (0, 5, 10, 15, 20 and 25 s) and the six results pooled. On the app windows, the 7 development people were off in 3.3 to 9.2 % of shown values by offset: at five of the six offsets the rule would have failed the 4 % it was chosen by.
S8 Benchmarks
Every benchmark runs the analysis code of M2 to M12 on public data resampled to 130 Hz; where a benchmark bypasses a rule a recording is subject to, the list below says so. Unless a number is marked otherwise, the figures quoted come from one benchmark run of all benchmarks on 24 November 2026 with the module versions above, whose analysis code is that of server version 0.13.0. Numbers marked study come from the development study of a step, which ran on an earlier state of the code, or from a later study that ran the same module versions; where a study and the benchmark run differ, both are shown.
- •
Beats: MIT-BIH Arrhythmia Database13,14 without its four paced records, analysed as rest recordings with the 6 s settling and scored beat by beat from minute 5 as the standard for arrhythmia detectors prescribes73, with a port of the bxb program of the WFDB software74 (150 ms match window) that agrees with bxb within 0.1 percentage point per record; noise: records 118 and 119 of the Noise Stress Test Database15,16 with electrode-motion noise. Correction: share of beats of each reference class labelled other than normal. HRV and DFA : NeuroKit217 on the intervals of the reference beats, not detected ones.
- •
- •
- •
Threshold: ACTES12: cycle ergometer, 3 min at 50 W, then W per minute; beat-to-beat RR at 4 ms resolution; VT1 given as a power; the two subjects whose VT1 lies in the first stage are left out. Input: the rows of the data file that carry an RR value; beat times are the file’s time column, counted from the first such beat; no settling time is discarded, so the analysis windows start at the first beat, the rest before the load included (the research program instead analyses a laboratory ramp from its start, Code availability); the effort ends at the last beat with power above zero. Only the DFA half of M9 is run (M3, M5 without strap confirmation, M6, M7, then the drop regression), without the requirements of 8 valid windows and a 40 bpm span, which all 18 ramps would pass. Reference: the VT1 moment is the start time of the last stage whose power is at most the VT1 power, plus s; the reference heart rate is divided by the mean of the RR values of the rows within s of that moment. The rules of M7 left out 44 of the 521 windows that ended by the effort end of the 16 scored ramps (8.4 %, in 10 ramps): 30 for more than 5 % non-normal beats, 8 with fewer than 100 intervals next to a gap in the data, 6 irregular. Subject 17 has no estimate because the seven windows that held its fall (starting 360 to 540 s) had more than 5 % non-normal beats, which left two windows below 0.75 before the effort end where the rule of M9 needs three.
- •
Strap filter (M12): Through a model of the strap (the fitted first-order high-pass at 0.70, 0.85, 0.90, 0.98, 1.06 or 1.15 Hz, the six-pole low-pass and the gain 0.81, alone or with breathing wander, the settling offset and recording gaps), the LUDB36,37, QT Database34,35 and PTB-XL38,67 records were resampled to 130 Hz and analysed as H10 uploads, with and without the restoration (inverse always at 0.98 Hz), against the cardiologists’ marks, and for PTB-XL against the Glasgow program’s per-lead QT in PTB-XL+39,68. In the benchmark run the model acts at the record’s own sampling rate, before the resampling, on 0.81 times the record minus its first value, from a zero state: the high-pass of M12 with the pole of Eq. 19, then three second-order low-pass sections , , with , and , the low-pass of the model refitted on the repeat (S5), each by the bilinear transform prewarped at its own (Eq. 1 with replaced by ); the development study used the same sections. The ten-second ECGs of two FDA drug studies69,70,71,72 with long QT intervals were passed through the same model at 0.98 and 0.70 Hz and compared with the studies’ own QT. The distortion and the restoration come from the same first-order model, so with a matched corner the test cannot fail; mismatched corners test robustness to the corner, and wander, offset and gaps robustness to those. No forward model holds the slow component measured on the bench. The restoration’s design was selected over two rounds on these same data sets, so Table 4 is a check, not a fresh confirmation.
- •
Delineation: QT Database34,35, the first cardiologist’s marks, beats matched within 150 ms of the R peak; LUDB36,37, each lead against its own marks; PTB-XL38,67 against the GE 12SL and Glasgow measurements of PTB-XL+39,68. LUDB, PTB-XL and the FDA studies are delineated with every detected beat, normal or not, without the settling time (the recordings last 10 s), and their recording medians need 5 beats where the app needs 10 normal ones. The decision to withhold a QT (M11) comes from the server’s code: for the QT Database from the full analysis, for LUDB, PTB-XL and the FDA studies from the same all-beat delineation, with the per-beat QTcF formed as in M11 and every beat counted as normal. The QT recording medians within 20 ms of LUDB, the QT Database and PTB-XL, with or without the strap model, still count every QT measured, withheld or not; beside them the run gives the share withheld and the share of the QTs still shown that lie within 20 ms. In the FDA benchmark the shares of QTs shown short or long count only the QTs shown, and a withheld lead counts as not shown and not within 20 ms. The FDA benchmark scores 9441 of the 9443 ECGs (two could not be read); at 0.98 Hz, 44 671 of its 111 641 leads have fewer than 10 beats and would show no QT in the app, and 4738 are withheld because their beats disagree. Tolerances: 20 ms for recording medians, 25 µV for levels.
Errors are ours minus the reference. Limits of agreement are the mean difference standard deviations75. Intervals of counts are 95 % Wilson score intervals; for windows from the same recordings they are too narrow.
S9 Choices made after seeing results
The 30-s grid of the threshold test and the threshold method itself (the regression on detrended intervals, chosen among three on the 16 ACTES ramps); the T-wave width factor; the P-wave rule at scale , which failed criteria fixed in advance on held-out data and was kept; the point at which R height is read in the QT Database benchmark (changed after the first result, which moved recordings within 25 µV from 59 to 73 %); the whole-recording score of the morning check; the restoration’s design, selected over two rounds on the data sets of Table 4; and the fusion limits, set on one paced recording that Supplementary Fig. S1 shows again. The QT withhold rule of M11 is not among them: its candidates, its selection and its confirmation test were written down before any candidate was scored. Its tuning and confirmation sets are, however, data sets the benchmarks use, and the QT Database, LUDB and the FDA studies had already served to develop the delineator.
Supplementary figure and tables
| Measure (reference) | Not restored | Restored | Without filter |
|---|---|---|---|
| QT recording medians within 20 ms, model at 0.98 Hz | |||
| LUDB, 200 recordings 12 leads (cardiologists) | 64.5 % | 77.6 % | 77.1 % |
| QT Database, 105 records 2 leads (cardiologists) | 50.2 % | 65.4 % | 67.5 % |
| PTB-XL, per lead (Glasgow program) | 50.8 % | 63.9 % | 65.4 % |
| Same, over 30 models, corners 0.70–1.15 Hz with wander, offset and gaps | |||
| LUDB / QT Database / PTB-XL | 59–72 / 43–59 / 47–57 % | 76–79 / 64–68 / 62–66 % | |
| FDA studies, 113 160 leads with the study’s QT, model at 0.98 Hz | |||
| Reference QTc ms shown ms short | 38.7 % | 29.5 % | |
| Reference QTc ms shown ms short | 49.6 % | 39.8 % | |
| Reference QTc ms shown at ms | 5.12 % | 1.66 % | |
| QT within 20 ms of the study’s | 68.7 % | 83.3 % | |
| Quantity | Value | Name |
|---|---|---|
| QRS, at scale , zero crossings at | ||
| Window for the main slopes and the largest modulus | ms | QRS_window |
| Adjoining same-sign slope, search before / after | 70 / 130 ms | QRS_wtol_paa, QRS_wtol_ppp |
| Adjoining same-sign slope, threshold (fraction) | 0.20 | umbral |
| Zero crossing before / after a slope, search | 80 / 130 ms | QRS_wtol_za, QRS_wtol_zp |
| Opposite slope beyond a zero crossing, search | 80 ms | QRS_wtol_pantza, QRS_wtol_ppostzp |
| First / second wave before the R wave (fraction) | 0.06 / 0.15 | umbral1a, umbral2a |
| First / second wave after the R wave (fraction) | 0.09 / 0.18 | umbral1p, umbral2p |
| Farthest zero crossing of an added wave | 160 ms | farza, farzp |
| Onset and end search | 80 ms | QRSon_window, QRSoff_window |
| Onset divisor, positive / negative first wave | 20 / 15 | Kron, Kq |
| End divisor, positive / negative last wave | 14 / 8 | Kroff, Ks |
| Onset at most before the R peak; lead wave at most (negative / positive) | 120 ms; 50 / 80 ms | firstwaverestriction, Qwaverestriction, Rwaverestriction |
| End at most after the R peak; negative tail at most | 270 ms; 150 ms | Srestriction1, Srestriction2 |
| T wave, at scale (else ), peak at the zero crossing of the next finer scale | ||
| Window start after the R peak / after the last QRS wave | 100 / 50 ms | inivent_tol, inivent_tol_S |
| Window end after the R peak | , or 600 ms | finvent_max |
| Window end at least before the next R peak | finvent_tol | |
| Shortest window | 100 ms | min_vent |
| Wave threshold, fraction of RMS of the scale from R to next R | 0.25 | umbraldetT |
| Second slope, fraction of the main slope; biphasic factor | 1/8; 2.5 | umbralsig, Tmax_Tmin_bifasic |
| Slopes of one wave at most apart | 200 ms | Tmax_Tmin_time_min |
| End search; end divisor | 120 ms; 2.5 | T_bound_tol, Ktoff |
| Running RR: interval accepted if within the mean times; weight of the old mean | 0.5–1.5; 0.8 | rrant_mintol, rrant_maxtol, rrant_average |
| P wave, at scale (else , boundaries then from ) | ||
| Window from / to before the QRS onset; shortest window | 340 / 50 ms; 100 ms | inivent_tol_P, finvent_tol_P, min_vent_P |
| Slopes of one wave at most apart | 110 ms | |
| Wave threshold, fraction of RMS of the scale over the preceding RR | 0.02 | umbraldetP |
| Boundary search; onset / end divisor | 100 ms; 2 / 1.1 | P_bound_tol, Kpon, Kpoff |
| Amplitudes (ours) | ||
| Isoelectric level: window, ending before the QRS onset | 20 ms (5 samples), 10 ms (3 samples) | |
| ST level after the J point | 60 ms (15 samples) | |
| Step | Rogers et al. | This pipeline |
|---|---|---|
| Recorder | Movesense Medical single-channel ECG, 512 Hz76 (and H10 beat intervals in the 2022 study) | Polar H10 ECG, 130 Hz; in the research program other ECGs are resampled to 130 Hz, and beat-interval files without ECG run the DFA half only |
| Beats | Kubios HRV Premium 3.543 | Own Pan–Tompkins detector (M2) |
| Correction | Kubios “automatic” method10 | Lipponen–Tarvainen classification with a 10-ms threshold floor (M3) |
| Artefact rule | Data sets with more than 5 % artefact excluded from HRVT, more than 8 % from EDRT | A 2-min window with more than 5 % non-normal beats is skipped; recordings are not excluded |
| Detrending | Smoothness priors, , in Kubios | Smoothness priors, , on the beat-indexed corrected series of the whole recording, threshold tests only (cut-off 0.0089 cycles per beat, 0.022 Hz at 150 bpm). On a 4 Hz resampled series instead (cut-off 0.035 Hz): Discussion |
| DFA windows | Box sizes 4–16 beats; 120 s every 5 s, labelled at the window centre | Box sizes 4–16; 120 s every 30 s, labelled at the window start (the label does not enter the regression, which pairs each window’s DFA with its own heart rate); each window needs intervals |
| HRVT1 | Linear regression of DFA on heart rate over the near-linear drop from about 1.0 to about 0.5, segment chosen by inspection; read at 0.75 | Same regression over a segment chosen by a fixed rule (M9): from the last window before a crossing below 0.75 held for three windows to the first window , or the lowest |
| HRVT2 | Same regression read at 0.577 | Not computed by the server; the research program reads the same line at 0.5 and marks it as not a server output |
| Breathing rate | Kubios ECG-derived respiration, 30-s windows every 1 s | Own estimate from two ECG modulations and the accelerometer, fused (M8); 120-s windows every 30 s |
| EDRT1, EDRT2 | First and second maxima of the second derivative of a 6th-order polynomial fitted to breathing rate over time, after Cross et al.78 | One breathing threshold: the knot of a two-segment fit of breathing rate against heart rate (M9); no second threshold |
| Combination | Mean of HRVT and EDRT heart rates; EDRT alone where HRVT was excluded | Mean of both; either alone if the other is missing, confidence “poor” |
| Minimum data | Not stated | At least 8 valid windows spanning at least 40 bpm; no DFA estimate if no window before the crossing has |
| Effort end | Ramp termination | “Stopped” marker; in the research program, the ramp end given or confirmed by the user (Code availability) |
| Step | Constant | Value | Source |
|---|---|---|---|
| M1 | Gap: time-stamp spacing above, or zero or less | 1.5 nominal periods | ours |
| M1 | Settling discarded (morning check) | 6 s (60 s) | ours |
| M2 | Pass band; filter design | 5–15 Hz; second-order Butterworth | ref. 46; ours |
| M2 | Integration window; refractory; T-wave window | 150; 200; 360 ms | ref. 46 |
| M2 | Threshold position; level update; search-back weight | 0.25; 0.125; 0.25 | ref. 46 |
| M2 | Search-back after | 1.66 times the mean of the last 8 RR | ref. 46 (their average of regular intervals; ours the last 8) |
| M2 | Learning phase | 2 s | ref. 46 |
| M2 | Learning seeds; relearning after; minimum learning peak | maximum, mean; 8 s; 50 µV | ours |
| M2 | Signal-level cap; T-wave width factor; polarity votes | ; 1.6; 8 beats | ours |
| M2 | R search around the band-pass peak; QRS amplitude window | ms; to ms | ours |
| M3 | ; threshold window; median window; ; | 5.2; 91; 11; 0.13; 0.17 | ref. 11 |
| M3 | Threshold floor; longest measurable interval | 10 ms; 2500 ms | ours |
| M3 | RR cross-check: tolerance; warning above; search | 20 ms; 5 %; to ms | ours |
| M3 | Low-signal-quality warning above | 5 % non-normal beats | ours |
| M4 | pNN thresholds; shortest HRV span | 50 and 20 ms; 60 s | refs. 49,50; ours (span) |
| M5 | COSEn ; ; limit | 1; 30 ms; | ref. 47; ours (limit) |
| M5 | Scored window: accepted time; strap intervals; contact share; run length | 60 s; 30; 90 %; 7 windows | ours |
| M5 | HRV withheld at irregular share; morning check whole score | 50 %; 20 s and 10 intervals | ours |
| M5–M7 | Analysis window; step | 120 s; 30 s | ref. 8; ours (step) |
| M6 | Smoothness priors | 500 | refs. 8,52 |
| M7 | Box sizes; minimum intervals; non-normal share at most | 4–16; 100; 5 % | refs. 3,8; ours; ref. 8 |
| M8 | Breathing window (threshold test); resampling; grid step; peak half-width | 60 s (120 s); 4 Hz; 0.005 Hz; 0.03 Hz | ours |
| M8 | ECG band; accelerometer band; coverage | 0.1–min(0.7, HR/120) Hz; 0.08–0.6 Hz; 80 % | ours |
| M8 | Gravity low-pass; breathing low-pass; activity high-pass; activity limit | 0.04; 0.7; 0.7 Hz; 15 m | ours |
| M8 | Agreement; ECG-only quality; decisive quality | 2 breaths min−1; 0.5; 0.6 | ours |
| M9 | DFA threshold; drop from / to | 0.75; 1.0 / 0.5 | refs. 5,8 |
| M9 | Sustained crossing; minimum drop windows; minimum valid windows; HR span | 3; 3; 8; 40 bpm | ours |
| M9 | Points per hinge segment; agreement good / fair | 3; 8 / 15 bpm | ours |
| M10 | Delineation rate; wavelet filters | 250 Hz; quadratic spline | refs. 33,58 |
| M10 | Resampler taps, Kaiser , cutoff | 128, 8.6, 56/65 of Nyquist | ours |
| M11 | Minimum beats; PR needs P in; two-cluster share, gap | 10; 50 %; 20 %, 40 ms | ours |
| M11 | QT withheld: interquartile range of the per-beat QTcF above; fewest values | 40 ms; 5 | ours |
| M11 | Reference limits | Supplementary Methods S4 | ref. 48 |
| M12 | Recorder corner (H10); restored corner; start window | 0.98 Hz; 0.05 Hz; 5 s | ours; refs. 41,42; ours |
| M13 | Grid; window; step | 25 Hz (the strap’s rate); 60 s; 30 s | ours |
| M13 | Frame length, step; peak threshold; fast settings after movement | 30 s, 5 s; 0.8; 10 s | ref. 63; ours (10 s) |
| M13 | Movement; gravity ; normalisation ; Oja ; skewness (slow/fast) | 0.06 ; 0.03/0.3; 0.01/0.1; 0.0008/0.008; 0.00007/0.0007 | ref. 63 |
| M13 | Skewness sign limit; search band | ; 4–60 breaths min−1 | ours (their ) |
| M13 | Advanced counting: extremum threshold | 0.3 of the 75th percentile | ref. 30 |
| M13 | Quality scale; quality floor; flat-signal floors | 1.5; 0.05; , m | ours |
| M13 | Rule: samples; activity; quality; agreement | 80 %; 15 m; 0.7; 2 breaths min−1 | ours |