DETECT_ECG_BEATS - detects beats in ECG.

DETECT_ECG_BEATS detects beats in an electrocardiogram (ECG) signal using two beat detectors, and uses the agreement between beat detectors to assess the quality of beat detections.

Inputs

Outputs

Exemplary usage:

    options.win_durn = 20;
    [agreed_beats_inds, qual] = detect_ecg_beats(ecg, fs, options)

Requirements:

When using the gqrs beat detector, the Waveform Database Software Package (WFDB) for MATLAB and Octave is required, available from: https://doi.org/10.13026/6zcz-e163

Documentation

https://ppg-beats.readthedocs.io/

Author

Peter H. Charlton, University of Cambridge, February 2022.

Acknowledgment:

This script uses scripts from the PhysioNet Cardiovascular Signal Toolbox (under the GNU public licence):

It also uses the 'rpeakdetect.m' script (under the GNU public licence):

Version

1.0

License - GPL-3.0

   This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
   This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
   You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.