Evidence for detection validity and association with heart rate irregularity
Overview
This document presents evidence that ectopic beats can be detected from RR interval data recorded during exercise activities via consumer heart rate monitors. The detection algorithm identifies the characteristic “short-long” pattern of premature ventricular contractions (PVCs) with compensatory pauses.
We also show that the presence of ectopic beats so detected is strongly associated with a Regularity value of Irregular on the Crickles Navigator.
Detection Algorithm
Physiological Basis
A premature ventricular contraction produces a characteristic RR interval pattern:
Premature beat: The ectopic focus fires early, producing a shorter-than-expected RR interval
Compensatory pause: The subsequent interval is longer than expected as the heart “resets”
Conservation: The sum of the premature interval and compensatory pause approximates two normal beats
Implementation
The algorithm uses a rolling 11-beat window to establish the expected RR interval, then flags ectopics when:
Current RR interval is 15-45% shorter than the rolling mean
Next RR interval is 15-45% longer than the rolling mean
The sum of current + next interval is within 20% of twice the expected interval
These thresholds are designed to capture physiologically plausible PVCs while rejecting noise and artefacts.
Visual Evidence
The Short-Long Pattern
The following chart shows RR intervals around a detected ectopic beat. The pattern is unmistakable: a premature beat (393ms, red) followed by a compensatory pause (620ms, blue), against a baseline of approximately 470ms.
The following grid shows six consecutive detected ectopic beats from a single activity. Each panel demonstrates the same short-long pattern, providing evidence of consistent detection behaviour.
The control recording (left) shows a tight cluster along the identity line, indicating consistent beat-to-beat intervals. The ectopic case (right) shows red outliers scattered away from the main cluster - the signature of premature beats disrupting normal rhythm.
Algorithm Specificity
Distinguishing Ectopics from Dropped Beats
Both ectopic beats and dropped/missed beats (sensor artefacts) create Poincaré outliers, but they have distinct signatures:
Pattern
RR Sequence
Ratio (long/short)
Ectopic (PVC)
Short (15-45% below expected) → Long (15-45% above)
~1.3-1.9
Dropped beat
Normal → ~2× normal (sensor missed one beat)
~2.0
The algorithm correctly rejects dropped beats because:
The “short” interval in a dropped beat sequence is not actually short - it’s normal
The ratio between consecutive intervals (~2.0) falls outside the ectopic pattern
Code
# Show examples from a recording with dropped beats but no detected ectopicsctrl_data_drops <-qread("~/crickles/new_posit/pilot/output/c_i96366195.qs")rr_drops <- ctrl_data_drops$rr |>mutate(rr_next =lead(RR), ratio = rr_next / RR) |>filter(!is.na(rr_next))# Filter to clear single-dropped-beat cases (ratio ~2.0)suspects <- rr_drops |>filter(RR <500& rr_next >700, ratio >1.85& ratio <2.25) |>mutate(pattern ="Dropped beat") |>head(6) |>select(RR, rr_next, ratio, ectopic, pattern)kable(suspects,col.names =c("RR (ms)", "Next RR (ms)", "Ratio", "Flagged as Ectopic", "Interpretation"),digits =2,caption ="Short-long patterns with ratio ~2.0 correctly identified as dropped beats, not ectopics")
Short-long patterns with ratio ~2.0 correctly identified as dropped beats, not ectopics
RR (ms)
Next RR (ms)
Ratio
Flagged as Ectopic
Interpretation
405
805
1.99
FALSE
Dropped beat
372
776
2.09
FALSE
Dropped beat
368
791
2.15
FALSE
Dropped beat
368
799
2.17
FALSE
Dropped beat
375
771
2.06
FALSE
Dropped beat
384
782
2.04
FALSE
Dropped beat
Association with Heart Rate Irregularity
The Gappiness Metric
The “gappiness” metric counts missing integer heart rate values in the recorded range. When the HR sensor fails to track rapid changes (as might occur during arrhythmia), gaps appear in the HR distribution.
Activities classified as irregular based on heart rate gappiness are 3.3 times more likely to have detected ectopic beats than regular activities.
Interpretation
The significant association between the gappiness-based irregularity metric and ectopic detection provides mutual validation:
If the ectopic detection is valid, we would expect ectopics to disrupt HR sensor tracking, creating gaps
If the irregularity metric captures genuine rhythm disturbance, we would expect it to correlate with ectopic presence
The observed dose-response relationship (Regular → Mildly irregular → Irregular) strengthens the case for a genuine physiological association rather than coincidental correlation.
Summary
Evidence supporting the validity of this ectopic detection approach:
Physiological plausibility: The algorithm specifically targets the short-long pattern characteristic of PVCs with compensatory pause
Visual confirmation: Detected beats show the expected RR interval pattern when examined individually
Consistency: Multiple detections within the same activity show the same characteristic pattern
Specificity: The algorithm correctly rejects dropped beats and other artefacts that create Poincaré outliers but lack the ectopic signature
External validation: Significant association with an independent irregularity metric (p < 0.001, OR = 3.3)
Limitations
Detection is limited to activities where HRV data (beat-to-beat intervals) is recorded
Cannot distinguish PVC origin (ventricular vs supraventricular) without ECG morphology
False negatives likely for ectopics that don’t produce classic compensatory pauses
Validation against gold-standard ECG monitoring would strengthen these findings