pyPCG: a Python toolbox specialized for phonocardiography analysis.

Physiol Meas

Biomedical Engineering, Technion Israel Institute of Technology, Julius Silver Building, Haifa, 32000, ISRAEL.

Published: December 2024

Objective: Phonocardiography has recently gained popularity in low-cost and remote monitoring, including passive fetal heart monitoring. The development of methods which analyse phonocardiographic data tries to capitalize on this opportunity, and in recent years a multitude of such algorithms and models have been published. In these approaches there is little to no standardization and multiple parts of these models have to be reimplemented on a case-by-case basis. Datasets containing heart sound recordings also lack standardization in both data storage and labeling, especially in fetal phonocardiography.

Approach: We are presenting a toolbox that can serve as a basis for a future standard framework for heart sound analysis. This toolbox contains some of the most widely used processing steps and with these, complex analysis pipelines can be created. These functions can be tested individually.

Main Results: Due to the interdependence of the steps, we validated the current segmentation stage using two phonocardiogram datasets, a fetal dataset comprising 50 one-minute abdominal PCG recordings, which include 6758 S1 and 6729 S2 labels and a filtered version of the dataset used in the 2022 PhysioNet Challenge, containing 413 records with 9795 S1 and 9761 S2 labels. Our results were compared to other common and publicly available segmentation methods, such as peak detection with the Neurokit2 library, and the Hidden Semi-Markov Model by Springer et al. Our best model achieved a 96.1% F1 score and 11.7 ms mean absolute error for fetal S1 detection, and 81.3% F1 score and 50.5 ms mean absolute error for PhysioNet S1 detection.

Significance: Our detection method outperformed all other tested methods on the fetal dataset and achieved results comparable to the state of the art on the PhysioNet dataset. Accurate segmentation of signals is critical for the calculation of accurate statistical measures and the creation of classification models. Our toolbox contains functions for both feature extraction and calculation of statistics which are compatible with the previous steps. All of our methods can be fine tuned for specific datasets. pyPCG is available on https://pypcg-toolbox.readthedocs.io/en/latest/.

Download full-text PDF

Source
http://dx.doi.org/10.1088/1361-6579/ad9af7DOI Listing

Publication Analysis

Top Keywords

heart sound
8
fetal dataset
8
absolute error
8
fetal
5
pypcg python
4
toolbox
4
python toolbox
4
toolbox specialized
4
specialized phonocardiography
4
phonocardiography analysis
4

Similar Publications

Want AI Summaries of new PubMed Abstracts delivered to your In-box?

Enter search terms and have AI summaries delivered each week - change queries or unsubscribe any time!