Construction and validation of a method for automated time label segmentation of heart sounds
Executive Summary
This study presents a validated method for automated time label segmentation of heart sounds using an electronic stethoscope, Audacity software, and customized MATLAB code. The methodology enables precise identification and extraction of S1, S2, systolic, and diastolic segments, with quantitative features (duration, amplitude, frequency) calculated for each. Cross-validation against finger oxygen monitor heart rates showed no significant difference, supporting the accuracy of the segmentation; the approach provides an objective, reproducible basis for digital auscultation and heart sound analysis.
Answer Machine Insights
Q: How accurate is the automated segmentation compared to standard heart rate measurement?
The automated segmentation method produced heart rates that were not significantly different from those measured by a finger oxygen monitor.
The result of a paired T-test indicated that no significant difference was found between the two methods.
Q: What features are extracted from the segmented heart sounds?
Duration, amplitude (maxdb, mindb, meandb, middledb), and frequency features (mean_f0, median_f0, range_f0, etc.) are calculated for S1, S2, systolic, and diastolic segments.
For this work, the mean value and SD of the amplitude features (maxdb, mindb, meandb, middledb) for the heart cycle were calculated, as shown in Table 3. ... A detailed summary of the results is given in Table 4.
Q: How is segmentation performed in practice?
Segmentation is achieved by combining Audacity software for visualization and labeling, followed by MATLAB code for automated extraction and calculation of segment parameters.
Our audio data analysis tool automatically called audacity, using the time labels, to carry out segmentation of the audio files. The four segments were automatically imported into a MATLAB code to calculate the audio, and finally a summary of the data was output.
Key Results
Automated segmentation of S1, S2, systolic, and diastolic periods achieved with mean cardiac cycle duration of 0.83 ± 0.01 s (male) and 0.82 ± 0.01 s (female).
Heart rate measured by the segmentation method (mean 72.73 ± 0.78 bpm) was statistically indistinguishable from finger oxygen monitor readings (mean 72.82 ± 0.40 bpm, p = 0.152).
Visual Evidence

first heart sound (S1) in the next cardiac cycle. The relevant audio clips were cut, and we divided the audio files into separate pieces. By running a customized MATLAB code, the relevant parameters of the systolic and diastolic periods could be extracted.
Clinical Snapshot
Evidence Rating
Relevance
high Priority