Proposal and Prototype of a GUI-Based Algorithm for ECG R-Peak Correction and Immediate R-R Interval Updating

Electrocardiography (ECG) is a key biosensing technique for assessing cardiac function and autonomic activity. Accurate detection of R-peaks and precise calculation of R-R intervals (RRIs) are essential for heart rate variability (HRV) analysis; however, automated detection algorithms remain vulnerable to local misdetections, such as false positives or missed beats (false negatives), caused by noise, baseline fluctuations, or waveform variability. Conventional correction approaches based on filter or threshold adjustment may introduce new errors outside the target region, highlighting the need for an intuitive and localized manual correction capability. To address this issue, we developed a prototype graphical user interface (GUI)-based ECG viewer implemented in Fortran for high computational efficiency. The system enables interactive insertion and deletion of detected R-peaks, with recalculation of the RRI time series and automatic updating of related analyses, including power spectral density, histograms, Lorenz plots, and polar plots. Validation using synthetic ECG signals at four sampling frequencies (125–1000 Hz) and three display time scales (2, 5, and 10 s) demonstrated correction errors below 0.7% and stable update times within 20–30 ms. When applied to real ECG recordings from the MIT-BIH Arrhythmia Database (records 115, 122, and 209; MLII lead), the GUI-derived RRIs achieved accuracies exceeding 0.985 at a strict ±10 ms tolerance and reached 1.000 at ±20 ms or higher, including recordings with frequent atrial premature contractions. These results indicate that the proposed system provides reliable feedback for localized correction of R-peak misdetections without altering the underlying ECG signal. The proposed algorithm may support future research and experimental applications in biosignal processing.

Authors

Institutions

Publication Details

Journal
Signals
Published
2026-03-03
DOI
https://doi.org/10.3390/signals7020020
Primary Topic
ECG Monitoring and Analysis
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Proposal and Prototype of a GUI-Based Algorithm for ECG R-Peak Correction and Immediate R-R Interval Updating

Yasuo Yoshida, Kiyoko Yokoyama
Signals
ECG Monitoring and Analysis
article

Proposal and Prototype of a GUI-Based Algorithm for ECG R-Peak Correction and Immediate R-R Interval Updating

Yasuo Yoshida, Kiyoko Yokoyama
article en

Abstract

Electrocardiography (ECG) is a key biosensing technique for assessing cardiac function and autonomic activity. Accurate detection of R-peaks and precise calculation of R-R intervals (RRIs) are essential for heart rate variability (HRV) analysis; however, automated detection algorithms remain vulnerable to local misdetections, such as false positives or missed beats (false negatives), caused by noise, baseline fluctuations, or waveform variability. Conventional correction approaches based on filter or threshold adjustment may introduce new errors outside the target region, highlighting the need for an intuitive and localized manual correction capability. To address this issue, we developed a prototype graphical user interface (GUI)-based ECG viewer implemented in Fortran for high computational efficiency. The system enables interactive insertion and deletion of detected R-peaks, with recalculation of the RRI time series and automatic updating of related analyses, including power spectral density, histograms, Lorenz plots, and polar plots. Validation using synthetic ECG signals at four sampling frequencies (125–1000 Hz) and three display time scales (2, 5, and 10 s) demonstrated correction errors below 0.7% and stable update times within 20–30 ms. When applied to real ECG recordings from the MIT-BIH Arrhythmia Database (records 115, 122, and 209; MLII lead), the GUI-derived RRIs achieved accuracies exceeding 0.985 at a strict ±10 ms tolerance and reached 1.000 at ±20 ms or higher, including recordings with frequent atrial premature contractions. These results indicate that the proposed system provides reliable feedback for localized correction of R-peak misdetections without altering the underlying ECG signal. The proposed algorithm may support future research and experimental applications in biosignal processing.

SignalsVol. 7(2)
Nagoya City University (JP), Nagoya University (JP)
Openalex Percentile: Top 42%
ECG Monitoring and Analysis
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.