Data augmentation method for heart sound signal classification with deep convolutional neural networks

By preprocessing heart sound signals and randomly masking feature maps, the training data set is expanded and balanced, solving the problems of scarcity of heart sound data and imbalanced categories, and significantly improving the classification accuracy and generalization performance of the deep learning model.

CN111860246BActive Publication Date: 2024-09-06NANTONG UNIV
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202010651423.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-07-08
Publication Date
2024-09-06
Estimated Expiration
2040-07-08

AI Technical Summary

Technical Problem

In the existing technology, the size of the heart sound data set is small, especially the scarcity of pathological heart sound data, which leads to overfitting and unsatisfactory classification accuracy during the training process of the deep learning model.

Method used

By preprocessing the heart sound signals, convert them into MFSC feature maps, and use frequency domain and time domain random masking functions to process them, expand and balance the samples of each category, and form a new training data set for training deep convolutional neural networks. network.

Benefits of technology

It effectively improves the classification accuracy and generalization performance of the deep learning model, solves the over-fitting problem caused by small sample size and unbalanced categories, and significantly improves the verification accuracy of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111860246B
    Figure CN111860246B
Patent Text Reader

Abstract

The present invention discloses a method for expanding data of heart sound signal classification for deep convolutional neural network, comprising the following steps: step (1) preprocessing the original training heart sound data; step (2) converting the preprocessed one-dimensional heart sound signal into a two-dimensional MFSC feature map; step (3) multiplying the MFSC feature map by a mask function to perform random masking processing on the frequency domain and time domain; step (4) expanding and balancing the number of samples of each category to obtain a new training data set; step (5) training the deep convolutional neural network with the new training data set. The present invention can effectively expand and balance the samples used for training the deep convolutional neural network by means of signal processing, solving the problem that the deep learning model training is prone to overfitting and poor classification effect due to small and unbalanced sample size.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the fields of biological signal processing, pattern recognition, and medical artificial intelligence technology, and utilizes deep learning technology and data expansion methods to classify heart sound signals, and in particular relates to a data expansion method for classifying heart sound signals for deep convolutional neural networks. Background Art

[0002] Heart sound is a typical non-stationary signal, which contains various physiological and pathological information. It is of great significance to automatically extract the features of heart sound signals by computer for quantitative analysis, which can assist in the diagnosis of heart diseases. In recent years, with the improvement of GPU performance and the introduction of various efficient deep learning models, the classification of heart sound signals using deep learning methods has gradually become a hot research topic, which has obvious advantages over other traditional machine learning methods. For example, the unique hierarchical network structure of deep learning methods can mine abstract and highly general features from a large amount of heart sound data, and the designed model has end-to-end characteristics. However, due to the small scale of heart sound data sets for deep learning training, especially the scarcity of pathological heart sound data, it directly leads to overfitting in the process of training deep learning models and the accuracy of trained models is not ideal. Summary of the invention

[0003] Purpose of the invention: In order to address the deficiencies of the prior art, the present invention provides a data expansion method for the classification of heart sound signals for deep convolutional neural networks, which effectively solves the problem of overfitting in the training process of deep learning models due to the scarcity of heart sound data and imbalance between types, and effectively improves the classification accuracy and generalization performance of deep learning models.

[0004] Technical solution: A data expansion method for heart sound signal classification for deep convolutional neural network, comprising the following steps:

[0005] Step (1) preprocessing the original training heart sound data;

[0006] Step (2) converting the preprocessed one-dimensional heart sound signal into a two-dimensional MFSC feature map;

[0007] Step (3) multiplying the MFSC feature map by a mask function to perform random masking processing on the frequency domain and time domain;

[0008] Step (4) expanding and balancing the number of samples in each category to obtain a new training data set;

[0009] Step (5) trains a deep convolutional neural network using the new training data set.

[0010] Furthermore, in the step (1), the preprocessing operation includes downsampling, filtering, and normalization operations, which are specifically as follows:

[0011] a. Downsample the heart sound signal with a sampling frequency of 2000Hz;

[0012] b. Filter the heart sounds using a 6th order Butterworth filter with bandwidth limited to 25 to 900 Hz;

[0013] c. The filtered signal is amplitude normalized to make the extracted features more robust. As shown in the following formula, x is the heart sound signal after filtering, and y is the normalized value;

[0014]

[0015] Furthermore, in the step (2), the MFSC feature map generation process includes:

[0016] a. Pre-emphasize the pre-processed heart sound signal, that is, use a first-order high-pass filter to enhance the high-frequency portion so that the signal spectrum is flatter. The specific pre-emphasis method is as follows: a high-pass filter, where u is taken as 0.95;

[0017] H(Z)=1-uz -1 ;

[0018] b. Framing the pre-emphasized heart sound signal, adding a Hanning window and short-time Fourier transform, where the window length and frame shift are 40ms and 20ms respectively, and the window function is as follows:

[0019]

[0020] The value of a is 0.46, and N is the window length set to 80, i.e. 40ms;

[0021] c. Process the power spectrum result of each frame through a group of 64 Mel filter banks, and perform weighted summation with each filter to obtain 64 characteristic energy values;

[0022] d. Take the logarithm of these 64 eigenvalues;

[0023] e. Perform first-order difference and second-order difference operations as dynamic features, and map these three features to the image RGB channels to form an MFSC feature map of the RGB three channels.

[0024] Furthermore, in step (3), the design method of the mask function h(x, y) is as follows:

[0025] a. Frequency domain information random masking function:

[0026]

[0027] Where f is less than Ff 0A random integer, F is the maximum channel value of the MFSC feature map, f 0 is less than F 0 A random integer;

[0028] b. Random masking function of time domain information:

[0029]

[0030] Where t is less than Tt 0 A random integer, T is the maximum number of frames in the time domain of the MFSC feature map, t 0 is less than T 0 A random integer.

[0031] Furthermore, in step (4), the process of expanding and balancing the original training samples is as follows:

[0032] a. Find the largest number of MFSC feature maps N in the category;

[0033] b. Expand the MFSC feature maps of other fewer categories by multiplying them by the mask function h(x, y) until the size is consistent with N.

[0034] Beneficial effects: The present invention can effectively expand and balance the samples used to train deep convolutional neural networks by means of signal processing, solving the problem that the deep learning model training is prone to overfitting and poor classification effect due to small and unbalanced sample size. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 It is a schematic diagram of the flow of the heart sound signal classification data expansion method for deep convolutional neural network of the present invention;

[0036] Figure 2 is a schematic diagram of the heart sound signal preprocessing process of the present invention;

[0037] Figure 3 It is a schematic diagram of the MFSC feature graph generation process of the present invention;

[0038] Figure 4 It is a schematic diagram of the structure of a deep convolutional neural network for training of the present invention;

[0039] Figure 5 Schematic diagram of MFSC characteristics before and after data expansion of the present invention;

[0040] Figure 6 It is a schematic diagram of the comparison of the learning curves of the deep convolutional neural network training process before and after the expansion of the present invention;

[0041] Figure 7It is a schematic diagram of the T-SNE visualization result of the output layer vector of the deep convolutional neural network of the present invention. DETAILED DESCRIPTION

[0042] The technical solutions in the embodiments of the present invention will be described clearly and completely below so that those skilled in the art can better understand the advantages and features of the present invention, thereby making a clearer definition of the protection scope of the present invention. The embodiments described in the present invention are only a part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments in the present invention, all other embodiments obtained by ordinary technicians in the field without creative work are within the scope of protection of the present invention.

[0043] Example

[0044] A data expansion method for heart sound signal classification for deep convolutional neural network specifically comprises the following steps:

[0045] Step (1) preprocessing the original training heart sound data;

[0046] Step (2) converting the preprocessed one-dimensional heart sound signal into a two-dimensional MFSC feature map;

[0047] Step (3) multiplying the MFSC feature map by a mask function to perform random masking processing on the frequency domain and time domain;

[0048] Step (4) expanding and balancing the number of samples in each category to obtain a new training data set;

[0049] Step (5) training a deep convolutional neural network with the new training data set;

[0050] Step (6) verifies the heart sound data using the trained deep convolutional neural network.

[0051] In the step (1), the preprocessing operation includes downsampling, filtering, and normalization operations, which are specifically as follows:

[0052] a. Downsample the heart sound signal with a sampling frequency of 2000Hz;

[0053] b. Filter the heart sounds using a 6th order Butterworth filter with bandwidth limited to 25 to 900 Hz;

[0054] c. The filtered signal is amplitude normalized to make the extracted features more robust. As shown in the following formula, x is the heart sound signal after filtering, and y is the normalized value;

[0055]

[0056] In the step (2), the MFSC feature map generation process includes:

[0057] a. Perform pre-emphasis processing on the pre-processed heart sound signal, that is, use a first-order high-pass filter to enhance the high-frequency part to make the signal spectrum flatter. The specific pre-emphasis method is as follows: a high-pass filter, where u is 0.95;

[0058] H(Z)=1-uz -1 ;

[0059] b. Framing the pre-emphasized heart sound signal, adding a Hanning window and short-time Fourier transform, where the window length and frame shift are 40ms and 20ms respectively, and the window function is as follows:

[0060]

[0061] The value of a is 0.46, and N is the window length set to 80, i.e. 40ms;

[0062] c. Process the power spectrum result of each frame through a group of 64 Mel filter banks, and perform weighted summation with each filter to obtain 64 characteristic energy values;

[0063] d. Take the logarithm of these 64 eigenvalues;

[0064] e. Perform first-order difference and second-order difference operations as dynamic features, and map these three features to the image RGB channels to form an MFSC feature map of the RGB three channels.

[0065] In the step (3), the design method of the mask function h(x, y) is as follows:

[0066] a. Frequency domain information random masking function:

[0067]

[0068] Where f is less than Ff 0 A random integer, F is the maximum channel value of the MFSC feature map, f 0 is less than F 0 A random integer.

[0069] b. Random masking function of time domain information:

[0070]

[0071] Where t is less than Tt 0 A random integer, T is the maximum number of frames in the time domain of the MFSC feature map, t 0 is less than T 0 A random integer.

[0072] In step (4), the process of expanding and balancing the original training samples is as follows:

[0073] a. Find the largest number of MFSC feature maps N in the category;

[0074] b. Expand the MFSC feature maps of other fewer categories by multiplying them by the mask function h(x, y) until the size is consistent with N.

[0075] The heart sound signal classification data expansion method for deep convolutional neural network proposed in the present invention converts the one-dimensional heart sound signal into a two-dimensional MFSC feature map by means of signal processing, and processes it by using the designed mask function, thereby effectively expanding the training samples and solving the problem that the deep convolutional neural network training is prone to overfitting and poor classification effect due to the small number of original training samples and imbalance between categories.

[0076] To verify the effect of the present invention, the following experiment was performed:

[0077] The experimental system environment is Ubuntu16.04, the memory is NVIDIA GeForce GTX 1080Ti GPU with 64GB memory, the deep learning framework is TensorFlow 1.7.0, and the programming language is python 2.3. A total of 3240 heart sound signal classification experiments were conducted, including 2575 normal cases and 665 abnormal cases. First, the original 3240 one-dimensional heart sound data are converted into MFSC feature maps, including 23781 normal heart sound MFSC feature maps and 7078 abnormal MFSC feature maps. This part of the data is called the original data set. Then, the MFSC feature maps of abnormal heart sounds with fewer categories are expanded using a mask function until they are equal to the MFSC feature maps of normal heart sounds. The expanded data set is called the expanded data set. The original training data set and the expanded data set are used to train and verify the deep convolutional neural network in a ratio of 4 to 1. Under the same hyperparameters, the neural network is trained on the original data set and the expanded data set respectively. The learning curve of the training process is compared. Figure 6 As shown in the figure, the model verification accuracy is 76.5% under the original data training condition, and the model verification accuracy reaches 99.5% under the expanded data set, which is 23% higher than that under the expanded data set.

[0078] In order to further verify the effect of the present invention, the last layer vector of the deep learning model was extracted to visualize the T-SNE vector of 500 normal heart sound samples and 500 abnormal heart sound samples through Tensorboard Projector. The results are as follows: Figure 7 As shown in Figure 2, it can be seen that each high-dimensional vector is projected into a two-dimensional space, and vectors of the same category are close to each other, so the classification effect is good.

[0079] refer to Figure 1 In an embodiment of the present invention, the heart sound signal classification data expansion method process for deep convolutional neural network specifically includes: preprocessing, MFSC feature map generation, time-frequency information masking, data balance expansion, and training deep convolutional neural network.

[0080] refer to Figure 2 In the embodiment of the present invention, the preprocessing operation includes downsampling, filtering, and normalization operations. Specifically, as follows:

[0081] 1) Downsample the heart sound signal with a sampling frequency of 2000 Hz;

[0082] 2) Filter the heart sounds using a 6th order Butterworth filter with a bandwidth limited to 25 to 900 Hz;

[0083] 3) The filtered signal is amplitude normalized to make the extracted features more robust. As shown in the following formula, x is the heart sound signal after filtering, and y is the normalized value;

[0084]

[0085] refer to Figure 3 In the embodiment of the present invention, the MFSC extraction process is specifically as follows:

[0086] 1) Perform pre-emphasis processing on the pre-processed heart sound signal, that is, use a first-order high-pass filter to enhance the high-frequency part to make the signal spectrum flatter. The specific pre-emphasis method is as follows: a high-pass filter, where u is 0.95;

[0087] H(Z)=1-uz -1 ;

[0088] 2) The pre-emphasized heart sound signal is framed, Hamming windowed and short-time Fourier transformed, wherein the window length and frame shift are 40 ms and 20 ms respectively, and the window function is as follows:

[0089]

[0090] The value of a is 0.46, and N is the window length, which is set to 80, or 40ms.

[0091] 3) Each frame of power spectrum is processed by a group of 64 Mel filter banks, and weighted summation is performed with each filter to obtain 64 characteristic energy values;

[0092] 4) Take the logarithm of these 64 eigenvalues;

[0093] 5) Perform first-order difference and second-order difference operations as dynamic features, and map these three features to the image RGB channels to form an MFSC feature map of the RGB three channels.

[0094] refer to Figure 4 The deep convolutional neural network structure constructed in the embodiment of the present invention is mainly composed of Inception-ResNet, Reduction and Stem modules. The Modefied-Stem module is a deep convolution layer composed of stacked convolution operations of different sizes, in which the 1×1 convolution not only plays a role in dimensionality reduction but also improves the nonlinear characteristics of the network; the objective function is shown in formula (1).

[0095]

[0096] Among them, L s and L c They represent Softmax loss and center loss, respectively, and are given by formulas (2) and (3).

[0097]

[0098]

[0099] In formula (2, 3), represents the value of the jth dimension from the previous layer, N represents the number of categories, that is, the dimension size of the previous layer output, x i ∈R d Represents the feature vector output by the fully connected layer of the i-th training sample, y i represents the actual class label of the i-th training sample, Represented as class label y i The center of the class that is maintained.

[0100] refer to Figure 5 In the embodiment of the present invention, the original data set is expanded, and the parameter in the expansion function is T 0 =4, F 0 =4, taking a normal MFSC feature map as an example, the MFSC feature maps before and after expansion are as follows Figure 5 shown.

[0101] refer to Figure 6 , comparison of learning curves of the deep convolutional neural network training process in the embodiments of the present invention.

[0102] refer to Figure 7 , T-SNE visualization result of high-dimensional vector of deep convolutional neural network output layer in an embodiment of the present invention.

[0103] The present invention can effectively expand and balance the samples used to train deep convolutional neural networks by means of signal processing, solving the problem that the small and unbalanced sample size leads to easy overfitting of deep learning model training and poor classification effect.

Claims

1. A data augmentation method for heart sound signal classification for deep convolutional neural networks, characterized by: The steps include: Step (1) preprocessing the original training heart sound data; Step (2) converting the preprocessed one-dimensional heart sound signal into a two-dimensional MFSC feature map; Step (3) multiplying the MFSC feature map by a mask function to perform random masking processing on the frequency domain and time domain; Step (4) expanding and balancing the number of samples in each category to obtain a new training data set; Step (5) training a deep convolutional neural network with the new training data set; In the step (1), the preprocessing operation includes downsampling, filtering, and normalization operations, which are specifically as follows: a. Downsample the heart sound signal with a sampling frequency of 2000Hz; b. Filter the heart sounds using a 6th order Butterworth filter with bandwidth limited to 25 to 900 Hz; c. The filtered signal is amplitude normalized to make the extracted features more robust, as shown in the following formula, where x is the filtered heart sound signal and y is the normalized value; In the step (2), the MFSC feature map generation process includes: a. Pre-emphasize the pre-processed heart sound signal, that is, use a first-order high-pass filter to enhance the high-frequency portion so that the signal spectrum is flatter. The specific pre-emphasis method is as follows: a high-pass filter, where u is 0.95; H(Z)=1-uz -1 ; b. Framing the pre-emphasized heart sound signal, adding a Hanning window and short-time Fourier transform, where the window length and frame shift are 40ms and 20ms respectively, and the window function is as follows: The value of a is 0.46, and N is the window length set to 80, i.e. 40ms; c. Process the power spectrum result of each frame through a group of 64 Mel filter banks, and perform weighted summation with each filter to obtain 64 characteristic energy values; d. Take the logarithm of these 64 eigenvalues; e. Perform first-order difference and second-order difference operations as dynamic features, and map these three features to the image RGB channels to form an MFSC feature map of the RGB three channels; In the step (3), the design method of the mask function h(x, y) is as follows: a. Frequency domain information random masking function: Where f is a random integer less than F-f0, F is the maximum channel value of the MFSC feature map, and f0 is a random integer less than F0; b. Random masking function of time domain information: Wherein, t is a random integer less than T-t0, T is the maximum number of frames of the MFSC feature map in the time domain, and t0 is a random integer less than T0; In step (4), the process of expanding and balancing the original training samples is as follows: a. Find the largest number of MFSC feature maps N in the category; b. Expand the MFSC feature maps of other fewer categories by multiplying them by the mask function h(x, y) until the size is consistent with N.

Citation Information

Cited By

  • Heart sound data processing method and system based on time-frequency characteristic pattern

    CN120472947A

  • Heart sound data processing method and system based on time-frequency feature map

    CN120472947B