Figure 2: The correlation between the ECG and heart sound, the R peaks (RR interval) used to segment the heart sound signal.