This paper proposes an efficient heart sound segmentation method for automatic detection of heart sounds. In this method, the abrupt change at the heart sound locations is considered as a cue factor for segmentation. The phonocardiogram signal is analysed by passing kurtosis of the signal envelope through zero frequency filter (ZFF). The impulses at the locations of S1 and S2 in the filtered signal are used for the localization of heart sound. The performance of proposed method is evaluated on a real clinical dataset PhysioNet/CinC Challenge Heart Sound (PhysioNet/CinC). A set of 120 heart sound recordings, consisting of normal heart sound as well as pathological heart sound, is considered for evaluation. The experimental result shows that the proposed algorithm achieves an average sensitivity of 98.61%, average positive prediction of 99.11% and average overall accuracy of 98.07%. The robustness of the proposed algorithm is verified using additive white Gaussian noise and respiratory noise.