The accurate localization of S1 and S2 is essential for heart sound segmentation and classification. However, current direct heart sound segmentation algorithms have poor noise immunity and low accuracy. Therefore, this paper proposes a new optimal heart sound segmentation algorithm based on K-means clustering and Haar wavelet transform. The algorithm includes three parts. Firstly, this method uses the Viola integral method and Shannon’s energy-based algorithm to extract the function of the envelope of the heart sound energy. Secondly, the time–frequency domain features of the acquired envelope are extracted from different dimensions and the optimal peak is searched adaptively based on a dynamic segmentation threshold. Finally, K-means clustering and Haar wavelet transform are implemented to localize S1 and S2 of heart sounds in the time domain. After validation, the recognition rate of S1 reached 98.02% and that of S2 reached 96.76%. The model outperforms other effective methods that have been implemented. The algorithm has high robustness and noise immunity. Therefore, it can provide a new method for feature extraction and analysis of heart sound signals collected in clinical settings.
Cardiovascular diseases pose a long-term risk to human health. This study focuses on the rich-spectrum mechanical vibrations generated during cardiac activity. By combining Fourier series theory, we propose a multi-frequency vibration model for the heart, decomposing cardiac vibration into frequency bands and establishing a systematic interpretation for detecting multi-frequency cardiac vibrations. Based on this, we develop a small multi-frequency vibration sensor module based on flexible polyvinylidene fluoride (PVDF) films, which is capable of synchronously collecting ultra-low-frequency seismocardiography (ULF-SCG), seismocardiography (SCG), and phonocardiography (PCG) signals with high sensitivity. Comparative experiments validate the sensor’s performance and we further develop an algorithm framework for feature extraction based on 1D-CNN models, achieving continuous recognition of multiple vibration features. Testing shows that the recognition coefficient of determination (), mean absolute error (MAE), and root mean square error (RMSE) of the 8 features are 0.95, 2.18 ms, and 4.89 ms, respectively, with an average prediction speed of 60.18 us/point, meeting the re-quirements for online monitoring while ensuring accuracy in extracting multiple feature points. Finally, integrating the vibration model, sensor, and feature extraction algorithm, we propose a dynamic monitoring system for multi-frequency cardiac vibration, which can be applied to portable monitoring devices for daily dynamic cardiac monitoring, providing a new approach for the early diagnosis and prevention of cardiovascular diseases.