1) The appropriate DS for detecting S3and S4 is calculated according to Eq. 8and Table 2. 2) The value of DS in the segmented location of S1 and S2 is converted to zero.
2) The largest peak in amplitude is identified.
4) The identified peak is ascertained to be in diastolic interval.
5) The identified peak is segmented according to the method proposed in section 2.10.
6) The segmented peak is ascertained to be S3 or S4, according to section 2.9.
7) If the peak is closer to the next S1, rather than previous S2, it corresponds to S4.Otherwise, the peak corresponds to S3.
8) The associated location of thissegmented event is eliminated from the DS by converting its value to zero. 9)The steps 1-9 are repeated until nopeak greater than a threshold value canbe found in the DS