Skip to content
This repository has been archived by the owner on Jul 6, 2024. It is now read-only.
/ hrv-correction Public archive

Heart rate variability time series artifact correction

License

Notifications You must be signed in to change notification settings

sokolmarek/hrv-correction

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HRV time series artifact correction View HRV artifact correction on File Exchange

Heart rate variability (HRV) is a standard metric for assessing autonomic nervous system function, psychophysiological stress, and exercise intensity and recovery. Extra, missing, or misaligned beat detections in HRV measurements can cause severe distortion in HRV analysis.

This repository contains MATLAB code for HRV time series artifact correction based on NeuroKit implementation. The correction algorithm proposed by Lipponen et al. (2019) uses time-varying thresholds calculated from the distribution of successive RR-interval discrepancies paired with a unique beat categorization methodology.

Usage/Examples

The function fixpeaks() has been provided to perform peak correction directly on data stored in MATLAB. The function can be used as follows:

% Load your file containing indices of detected R waves, for example 
% peak.txt or use your variable that contains them
load peaks.txt

% Call the main function fixpeaks() 
[artifacts, peaks_clean] = fixpeaks(peaks, 500, true, true);

If the last argument show in the function is set to true, the detected artifacts and subspaces described in [1] are then visualized. Further input arguments are described in the function itself.

Example of visual result

References

About

Heart rate variability time series artifact correction

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages