Beat correction
Also called artifact correction, artefact correction, RR editing, beat editing, corrected beats, beat-correction
Finding the beat intervals that are wrong (missed, extra or ectopic beats) and deleting or replacing them before HRV is calculated. The rule of thumb is to correct under 5% of beats.
Beat correction has two steps: find the bad intervals, then fix them.
Finding them. The common rule compares each interval with the ones around it. Kubios, for example, flags any interval further from a local average than a threshold: 0.45 s at its “very low” setting, then 0.35, 0.25, 0.15 and 0.05 s at “very strong” (Alcantara and colleagues, 2020). Lipponen and Tarvainen (2019) built an automatic method on the series of differences between successive intervals with a threshold that adapts to the recording; it caught about 97% of real ectopic beats Ectopic beat A heartbeat that starts outside the heart's normal pacemaker and usually comes early. Ectopic beats are common, but they distort HRV unless removed or corrected. More about Ectopic beat .
Simpler rules are common too. A range filter drops intervals outside a plausible span, such as 300 to 2,000 ms. A percentage rule flags an interval that differs from its neighbour by more than about 20%; Piskorski and Guzik’s quotient filter removes a beat when the ratio of neighbouring intervals falls outside 0.8 to 1.2 (2005). A local-median rule, like the one in this site’s HRV calculator, drops an interval more than 25% from the median of its neighbours. Berntson and colleagues (1990) set the cut-off from each person’s own spread of beat-to-beat differences.
Fixing them. Peltola (2012) reviews the options: delete the bad interval, or replace it with the mean of its neighbours, a straight line between them (linear interpolation) or a smooth curve through them (cubic spline). A missed beat has a third fix: its doubled interval can be split back into two, which puts the lost beat back. That fix must never be used on the long pause after an ectopic beat, where no beat is missing.
What it looks like. In a tachogram Tachogram A line chart of heartbeat intervals in the order they happened, one point per beat, in milliseconds. It shows HRV as a wavy line instead of a single number. More about Tachogram , a good correction removes the sudden spikes and dips and leaves the gentle rise and fall of breathing in place. Too strict a rule flattens some of that real variation as well.
Why it matters for HRV.
- Deleting removes time from the series. Peltola reports that it was not recommended for RMSSD RMSSD Root mean square of successive differences: an HRV metric built from how much each heartbeat interval differs from the next, in milliseconds. It mainly reflects vagal activity. More about RMSSD and pNN50 pNN50 The percentage of neighbouring NN intervals that differ by more than 50 milliseconds. It tracks fast, vagally driven changes, like RMSSD, but as a share rather than a size. More about pNN50 , may be acceptable for SDNN SDNN The standard deviation of all NN intervals in a recording, in milliseconds. It measures overall variability, and its value depends strongly on how long the recording lasts. More about SDNN , and that spectra should use interpolation instead.
- Even a few edits change short readings: under 5% of edited intervals can shift the results, and many studies drop a recording with under 80% normal beats. Kubios’s guide recommends keeping interpolated beats under 5%.
- Stricter settings edit real beats. Alcantara and colleagues found that SDNN differed by 39 ms on average between the very low and very strong settings in children, and that the very strong setting replaced 39% of the children’s intervals.
Plant a bad beat below and try each method.
Clean one bad beat
The teaching recording, 341 intervals
Flagged: 1 of 341 intervals
| Measure | Clean | Bad beat | Fixed |
|---|---|---|---|
| RMSSD (ms) | 33.4 | 70.2 | 70.2 |
| SDNN (ms) | 28.7 | 51.7 | 51.7 |
| pNN50 (%) | 8.2 | 8.8 | 8.8 |
| LF power (ms²) | 120 | 1241 | 1241 |
| HF power (ms²) | 635 | 2314 | 2314 |
A missed beat makes one interval about twice as long as its neighbours. Left in, it lifts RMSSD from 33.4 to 70.2 ms, 2.1 times the true value, while SDNN moves less.
The buttons work when JavaScript is on.
A line of the gap between beats over the first 60 seconds of the teaching recording, with the planted artifact as a spike, a circle on each flagged interval and the corrected line drawn over it. A table gives RMSSD, SDNN, pNN50, LF power and HF power for the clean recording, with the artifact left in, and after correction, plus how many intervals were flagged. One group of buttons plants a missed beat, an extra beat or an ectopic beat, or restores the clean recording; another chooses the correction method: leave it in, delete, mean of neighbours, linear interpolation or cubic spline. A missed beat left in roughly doubles RMSSD; every method brings it back within a few percent.
The lesson How HRV is measured walks through the whole cleaning step, and Artifacts and extra beats shows one series corrected three ways, with the numbers before and after.
Sources
- Role of editing of R–R intervals in the analysis of heart rate variability
- A robust algorithm for heart rate variability time series artefact correction using novel beat classification
- Impact of Using Different Levels of Threshold-Based Artefact Correction on the Quantification of Heart Rate Variability in Three Independent Human Cohorts
- Filtering Poincaré plots
- An approach to artifact identification: application to heart period data