Heart rate variability analysis of ECG data