Computes per-channel signal quality metrics for ECG data stored in a PhysioExperiment object. When detected R-peak locations are provided the signal-to-noise ratio is estimated from QRS vs.\ baseline power; otherwise a variance-based estimate is used.
Arguments
- x
A PhysioExperiment object with ECG data.
- peaks
Optional data.frame of detected R-peaks as returned by
ecgDetectRpeaks, with at least columnschannelandsample.- assay_name
Name of the assay to use. If
NULLthe default assay is used.
Value
A data.frame with one row per channel and columns:
- channel
Integer channel index.
- snr_db
Signal-to-noise ratio in decibels.
- baseline_wander
RMS amplitude of the low-frequency drift.
- saturation_ratio
Fraction of samples within 1\ min or max.
- quality_score
Composite quality score in the range [0, 1], where 1 indicates excellent quality.
References
Clifford, G.D., Azuaje, F. & McSharry, P.E. (2006). Advanced Methods and Tools for ECG Data Analysis. Artech House.
Shaffer, F. & Ginsberg, J.P. (2017). "An overview of heart rate variability metrics and norms." Frontiers in Public Health, 5, 258. doi:10.3389/fpubh.2017.00258
See also
ecgDetectRpeaks for R-peak detection,
ecgBaselineCorrect for baseline wander correction,
ecgQualityCheck for ectopic beat detection.