•The Pan-Tompkins algorithm detects R-peaks through a sequence of
filtering, differentiation, squaring, and adaptive thresholding.
•RR intervals form the basis of HRV analysis, requiring careful
preprocessing to handle ectopic beats and noise.
•HRV is assessed in time and frequency domains using metrics like
SDNN, RMSSD, pNN50,and LF/HF ratio, often computed via Welch PSD.
•HRV can be visualized using tachograms, Poincaré plots, and frequency
band overlays to illustrate variability and autonomic balance.
Summary