Heart disease prediction method and system based on deep learning of heart sounds for auscultation teaching
By using an improved one-dimensional convolutional neural network that combines depthwise separable convolution and dynamic convolution for heart rhythm abnormality detection, and using a one-dimensional and two-dimensional convolutional network combined with a deep convolutional neural network with handcrafted features for cardiovascular disease detection, the problem is solved Traditional methods have problems with insufficient adaptability and interpretability of heart sound patterns, which improves the adaptability and teaching efficiency of heart disease prediction.
Patent Information
- Application Number
- CN202410956589.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-17
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-07-17
AI Technical Summary
Existing heart sound deep learning heart disease prediction methods for auscultation teaching are difficult to combine with specific teaching needs. Traditional methods are difficult to adapt to changing heart sound patterns when detecting abnormal heart rhythms and cardiovascular diseases, and their interpretability is insufficient, resulting in High computational complexity and increased prediction difficulty.
A one-dimensional convolutional neural network improved by combining depth-separable convolution and dynamic convolution is used for abnormal heart rhythm detection, and a deep convolutional neural network combining one-dimensional and two-dimensional convolution is used for cardiovascular disease detection, and the SOFIS+ classifier and multi-dimensional convolution are introduced. Seed decision maker to improve model efficiency and interpretability.
It improves the adaptability and overall usability of heart disease prediction, enhances the efficiency and developability of auscultation teaching, improves the accuracy of cardiovascular disease detection and decision-making interpretability, and improves the linkage between the teaching process and the prediction process.
Smart Images

Figure CN118490200B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of heart sound analysis, and specifically to a method and system for predicting heart disease through deep learning of heart sounds for auscultation teaching. Background Art
[0002] The heart sound deep learning heart disease prediction method and system for auscultation teaching refers to the technology that uses deep learning algorithms to analyze the heart sound data obtained by auscultation to predict heart diseases and apply it to auscultation teaching. Its main function is to assist doctors or learners in efficiently detecting heart abnormalities by automatically and accurately identifying the features in the heart sound signals. This system not only improves the accuracy of early screening for heart disease, but also enhances the effect of auscultation teaching, allowing students to more intuitively understand the relationship between different heart sound characteristics and heart disease.
[0003] However, in the existing heart sound deep learning heart disease prediction methods used for auscultation teaching, there is a technical problem that the traditional heart disease prediction methods based on heart sound data are difficult to combine with the specific needs of auscultation teaching and provide good teaching materials and teaching process support, which makes the combination of auscultation teaching and heart sound prediction need to be improved; in the existing heart sound deep learning heart disease prediction, there is a technical problem that the accuracy of abnormal rhythm detection and classification often provides a very important data basis for the subsequent specific disease diagnosis, and the important skill that needs to be taught in auscultation teaching is to distinguish the type of heartbeat based on the heart rhythm signal. The traditional method is difficult to adaptively respond to the changing heart sound patterns when performing abnormal rhythm detection, which leads to a high complexity of calculation and prediction, which increases the difficulty of prediction; in the existing heart sound deep learning heart disease prediction, there is a technical problem that the traditional method is insufficiently explainable when performing complex cardiovascular disease detection, which makes it difficult to properly analyze the decision-making judgment of the machine, thereby affecting the feasibility of implementing teaching. Summary of the invention
[0004] In view of the above situation, in order to overcome the defects of the prior art, the present invention provides a method and system for predicting heart disease through deep learning of heart sounds for auscultation teaching. In view of the technical problem that in the existing methods for predicting heart disease through deep learning of heart sounds for auscultation teaching, the traditional methods for predicting heart disease based on heart sound data are difficult to combine with the specific needs of auscultation teaching, provide good teaching materials and teaching process support, and the compatibility of auscultation teaching and heart sound prediction needs to be improved, this solution creatively adopts a method for collecting and predicting abnormal heart rhythms and cardiovascular diseases by combining software and hardware to construct a visual analysis and teaching program for heart sound auscultation, and implements the test of auscultation skills and the visualization of heart disease analysis through teaching evaluation, thereby improving the efficiency, automation and developability of auscultation teaching; in view of the technical problem that in the existing methods for predicting heart disease through deep learning of heart sounds, the accuracy of abnormal heart rhythm detection and classification often provides a very important data basis for the subsequent diagnosis of specific diseases, and the important skill that needs to be taught in auscultation teaching is to distinguish the type of heartbeat based on heart rhythm signals, and the traditional methods are difficult to adaptively cope with the changing heart sound patterns when performing abnormal heart rhythm detection, which leads to a high complexity of calculation and prediction, and increases the technical problem of prediction difficulty, this solution creatively adopts A one-dimensional convolutional neural network with residual improvement by combining deep separable convolution and dynamic convolution is used for abnormal heart rhythm detection. The regular feature learning of heart sound pattern changes is adaptively adjusted through dynamic convolution. The model efficiency is improved through separable convolution, which improves the adaptability of heart disease prediction for auscultation teaching and the overall usability of the method. In the existing heart sound deep learning heart disease prediction, there is a technical problem that the traditional method is not interpretable enough when performing complex cardiovascular disease detection, which makes the machine's decision judgment difficult to be properly analyzed, thus affecting the feasibility of teaching implementation. This scheme creatively uses a deep convolutional neural network combining one-dimensional and two-dimensional convolutions for cardiovascular disease detection. By combining the fusion of manual features and machine features and constructing one-dimensional and two-dimensional convolutional networks, the basic performance of machine prediction is improved. In the subsequent decision rule design, the SOFIS+ classifier with good interpretability is introduced, and multiple sub-decision makers are combined for parallel decision-making, which improves the overall accuracy of cardiovascular disease detection and the interpretability of decisions, providing a good prediction process for subsequent auscultation teaching. Then, combined with data visualization analysis, the linkage and scalability of the entire teaching process and prediction process are improved.
[0005] The technical solution adopted by the present invention is as follows: The present invention provides a method for predicting heart disease through deep learning of heart sounds for auscultation teaching, the method comprising the following steps:
[0006] Step S1: heart sound data collection;
[0007] Step S2: heart sound data processing;
[0008] Step S3: abnormal heart rhythm detection;
[0009] Step S4: cardiovascular disease detection;
[0010] Step S5: Auscultation teaching design.
[0011] Furthermore, in step S1, the heart sound data acquisition is used to acquire original heart sound data, specifically, by acquiring electrocardiogram data and phonocardiogram data through an electrocardiogram signal acquisition device and an electronic stethoscope, and obtaining original heart sound analysis data by data annotation and sampling of the electrocardiogram data and phonocardiogram data.
[0012] Furthermore, in step S2, the heart sound data processing is used to optimize the heart sound data, specifically, to optimize the preprocessing of the original heart sound analysis data to obtain optimized heart sound analysis data;
[0013] The optimization preprocessing specifically includes signal denoising, filtering and signal segmentation operations.
[0014] Further, in step S3, the abnormal heart rhythm detection is used to detect abnormal heartbeat conditions, specifically, based on the optimized heart sound data, a one-dimensional convolutional neural network with an improved residual network is used to perform abnormal heart rhythm detection to obtain abnormal heart rhythm analysis reference data;
[0015] The one-dimensional convolutional neural network of the improved residual network includes an improved residual block and a one-dimensional convolutional neural network;
[0016] The improved residual block is used to combine the depth-separable convolution and the dynamic convolution to perform adaptive learning of the heart sound pattern and improve the granularity and efficiency of capturing the abnormal heart rhythm features;
[0017] The one-dimensional convolutional neural network is used to extract features and perform classification tasks for abnormal heart rhythm detection;
[0018] The step of using the improved residual network one-dimensional convolutional neural network to detect abnormal heart rhythm and obtain abnormal heart rhythm analysis reference data includes:
[0019] Step S31: constructing a one-dimensional convolutional neural network basic structure, specifically constructing a one-dimensional convolutional network, and extracting basic signal features in the optimized heart sound data through a one-dimensional convolution operation, and the calculation formula is:
[0020] F=ReLU(Conv 1D (F pr ,W 1D )+b 1D );
[0021] In the formula, F is the basic signal feature data, ReLU(·) is the nonlinear activation function, Conv 1D is a one-dimensional convolution operation, F pr is to optimize the heart sound data, W 1D is the one-dimensional convolution weight, b 1D is the one-dimensional convolution bias term;
[0022] Step S32: constructing a depth-separable convolution, specifically, extracting a depth-separable convolution feature from the basic signal feature data through depth-wise convolution and point-wise convolution operations, and the calculation formula is:
[0023] ;
[0024] In the formula, F ds is the deep separation convolution feature, ReLU(·) is the nonlinear activation function, DepthWiseConv is the deep convolution operation, F is the basic signal feature data, W d is the depth convolution weight, PointWiseConv is the point-by-point convolution operation, W p is the point-wise convolution weight;
[0025] Step S33: construct dynamic convolution, specifically introduce dynamic convolution kernel weights, extract dynamic convolution features, and calculate the formula as follows:
[0026] ;
[0027] In the formula, F dy is the dynamic convolution feature, N is the total number of dynamic convolution kernels, I is the dynamic convolution kernel index, is the dynamic convolution kernel weight of the Ith dynamic convolution kernel, Sig(·) is the S-type activation function, Conv 1D is a one-dimensional convolution operation, F is the basic signal feature data, W I is the convolution extraction weight of the Ith dynamic convolution kernel;
[0028] Step S34: improving the residual connection, specifically, weighting and summing the basic signal features, the depth-separable convolution features and the dynamic convolution features through the residual connection to obtain improved residual feature data, and the calculation formula is:
[0029] ;
[0030] In the formula, F RES is the improved residual feature data, F is the basic signal feature data, is the depthwise separable convolution residual weight, F ds is the deep separation convolution feature, is the dynamic convolution residual weight, F dyIt is a dynamic convolution feature;
[0031] Step S35: abnormal heart rhythm classification, specifically, constructing a fully connected layer and using a Softmax classifier to perform abnormal heart rhythm detection and classification to obtain abnormal heart rhythm classification output. The calculation formula is:
[0032] Y=Softmax(FC(F RES ));
[0033] Where Y is the arrhythmia classification output, which includes four types of arrhythmia detection classification, FC(·) is the fully connected layer function, and F RES It is to improve the residual feature data;
[0034] Step S36: training the heart rhythm abnormality detection model, specifically, training the heart rhythm abnormality detection model by constructing a one-dimensional convolutional neural network basic structure and improving the residual connection to obtain a heart rhythm abnormality detection pre-classification model Model HR ;
[0035] Step S37: abnormal heart rhythm detection and result visualization, specifically, using the abnormal heart rhythm detection pre-classification model Model according to the optimized heart sound signal HR , perform abnormal heart rhythm detection, obtain abnormal heart rhythm analysis reference data, and draw an abnormal heart rhythm analysis reference visualization analysis diagram based on the abnormal heart rhythm analysis reference data.
[0036] Further, in step S4, the cardiovascular disease detection is used to analyze and detect cardiovascular diseases reflected by heart sounds, specifically, based on the optimized heart sound analysis data and the abnormal heart rhythm analysis reference data, a deep convolutional neural network combining one-dimensional and two-dimensional convolution is used to perform cardiovascular disease detection to obtain cardiovascular disease detection reference data;
[0037] The deep convolutional neural network combining one-dimensional and two-dimensional convolutions specifically includes a one-dimensional convolution sub-block, a two-dimensional convolution sub-block, a feature fusion sub-block, a self-attention mechanism sub-block, and a decision optimization sub-block;
[0038] The one-dimensional convolution sub-block is used to preliminarily extract features of heart sound signals;
[0039] The two-dimensional convolution sub-block is used to analyze the reference data in combination with the abnormal heart rhythm and extract the time-frequency characteristics of the heart sound signal;
[0040] The feature fusion sub-block is used to fuse the time-frequency features of heart sounds and the manually extracted features of abnormal heart rhythm;
[0041] The self-attention mechanism sub-block is used to improve the comprehensive expression ability of the model;
[0042] The decision optimization sub-block is used to introduce parallel rule processing and optimize the prediction decision mechanism of the model;
[0043] The step of using a deep convolutional neural network combining one-dimensional and two-dimensional convolutions to detect cardiovascular diseases and obtain reference data for cardiovascular disease detection includes:
[0044] Step S41: construct a one-dimensional convolution sub-block, specifically, perform a one-dimensional convolution operation to initially extract features, and obtain the initial features of the heart sound signal through the maximum pooling layer and feature transformation. The calculation formula is:
[0045] ;
[0046] Where, X tr is the initial feature of the heart sound signal, Transpose(·) is the feature transformation operation, MaxPool 1D (·) is a one-dimensional maximum pooling layer operation, ReLU (·) is a nonlinear activation function, Conv 1D is a one-dimensional convolution operation, X0 is the original data input sample of the one-dimensional convolution sub-block, used to represent the optimized heart sound analysis data and the abnormal heart rhythm analysis reference data, W 1D is the one-dimensional convolution weight, b 1D is the one-dimensional convolution bias term;
[0047] Step S42: construct a two-dimensional convolution sub-block, specifically, perform a two-dimensional convolution operation to extract the time-frequency features, and obtain the time-frequency features of the heart sound signal through maximum pooling and global pooling operations. The calculation formula is:
[0048] ;
[0049] Where, X gl is the time-frequency feature of the heart sound signal, GlobalPooling(·) is the global pooling operation, MaxPool 2D (·) is the two-dimensional maximum pooling layer operation, ReLU (·) is the nonlinear activation function, Conv 2D is a two-dimensional convolution operation, X tr is the initial feature of the heart sound signal, W 2D is the 2D convolution weight, b 2D is the 2D convolution bias term;
[0050] Step S43: construct a fully connected layer and fuse features. Specifically, a fully connected layer is constructed, and part of the feature data is extracted from the original data input sample by manual feature extraction to obtain manual feature data. Then, the manual feature data and the time-frequency features of the heart sound signal are fused to obtain the connected fused feature data. The calculation formula is:
[0051] ;
[0052] Where, X fc is the manual fully connected feature data after the fully connected layer processing, ReLU(·) is the nonlinear activation function, X m is the manual feature data, W fc is the full connection weight, b fc is the fully connected bias term, X Concat is the connection fusion feature data, Concat(·) is the feature connection operation, X gl is the time-frequency characteristics of the heart sound signal;
[0053] Step S44: construct a self-attention mechanism sub-block, specifically introduce a self-attention mechanism and calculate a self-attention score, optimize the feature expression ability of the model through attention mapping, and obtain self-attention mapping feature data. The calculation formula is:
[0054] X att =Attention(Q,K,V);
[0055] Where, X att is the self-attention map feature data, Attention(·) is the attention function, Q is the query vector, K is the key vector, and V is the value vector;
[0056] Step S45: construct a decision optimization sub-block, specifically using SOFIS+ as the final classifier of the model, optimizing the interpretability of the model, and constructing parallel decision rules to perform feature processing and detection decisions. The calculation formula is:
[0057] ;
[0058] Where Final-decision is the output test decision data, which is used to represent the test results of cardiovascular disease, Combine(·) is a parallel decision function, is the parallel decision output of the sub-decision maker, where i is the sub-decision maker index, n is the total number of sub-decision makers, is the output of the i-th sub-decision maker, RULE i is the decision rule of the ith sub-decision maker, and SOFIS+ classifier is selected as the sub-decision maker. att is the self-attention map feature data;
[0059] Step S46: Cardiovascular disease detection model training, specifically, by constructing a one-dimensional convolution sub-block, constructing a two-dimensional convolution sub-block, constructing a fully connected layer and fusing features, constructing a self-attention mechanism sub-block, and constructing a decision optimization sub-block, to perform model training to obtain a cardiovascular disease detection model Model HI ;
[0060] Step S47: Cardiovascular disease detection and result visualization, specifically, analyzing the original data based on the heart sound and using the cardiovascular disease detection model Model HI , perform cardiovascular disease detection, obtain cardiovascular disease detection reference data, and draw a cardiovascular disease detection reference visualization analysis diagram based on the cardiovascular disease detection reference data.
[0061] Further, in step S5, the auscultation teaching design is used to optimize the auscultation teaching process design by combining basic heart sound knowledge, visual analysis data of abnormal heart rhythm detection and visual analysis data of cardiovascular disease detection. Specifically, the auscultation teaching process design is performed based on the abnormal heart rhythm analysis reference data and the cardiovascular disease detection reference data to obtain a heart sound analysis auscultation teaching plan reference, which specifically includes the following steps:
[0062] Step S51: theoretical teaching design, specifically teaching basic heart sound knowledge, and teaching the basics of cardiac anatomy, the characteristics of normal and abnormal heart sounds, basic knowledge of heart disease, and basic knowledge of auscultation techniques;
[0063] Step S52: heart sound case design, specifically, selecting abnormal heart sound samples from the original data samples and medical history data, and combining the abnormal heart rhythm analysis reference data to conduct heart sound case analysis teaching;
[0064] Step S53: interactive teaching design, specifically constructing a simulated scenario of auscultation of heart sounds, and performing a specific diagnosis simulation of cardiovascular disease and heart disease through the cardiovascular disease detection reference data;
[0065] Step S54: teaching feedback design, specifically providing auscultation teaching guidance and real-time feedback and teaching suggestions, and obtaining a reference for the teaching plan of heart sound analysis and auscultation;
[0066] Step S55: knowledge assessment design, specifically, based on the students' completion of the teaching, combined with the abnormal heart rhythm analysis reference data and the cardiovascular disease detection reference data, conduct visual data analysis of the overall heart disease analysis and case evaluation and scoring of the auscultation skill test to complete the auscultation teaching.
[0067] The heart sound deep learning heart disease prediction system for auscultation teaching provided by the present invention comprises a basic hardware module, a software prediction module, a teaching implementation module, an interactive terminal module and a teaching evaluation module;
[0068] The basic hardware module is used for heart sound data collection and heart sound data processing, and obtains original heart sound analysis data and optimized heart sound analysis data through heart sound data collection and heart sound data processing, and sends the optimized heart sound analysis data to the software prediction module, and sends the original heart sound analysis data to the teaching implementation module;
[0069] The software prediction module is used for abnormal heart rhythm detection and cardiovascular disease detection, obtains abnormal heart rhythm analysis reference data and cardiovascular disease detection reference data through abnormal heart rhythm detection and cardiovascular disease detection, and sends the abnormal heart rhythm analysis reference data and the cardiovascular disease detection reference data to the teaching implementation module and the interactive terminal module;
[0070] The teaching implementation module is used for auscultation teaching design, and a heart sound teaching plan is obtained through the auscultation teaching design, and the heart sound teaching plan is used in the teaching evaluation module;
[0071] The interactive terminal module is used to implement data visualization analysis of the software prediction module, obtain visual analysis data of abnormal heart rhythm detection and visual analysis data of cardiovascular disease detection through result visualization, and use the visual analysis data of abnormal heart rhythm detection and visual analysis data of cardiovascular disease detection in the teaching evaluation module;
[0072] The teaching evaluation module is used for knowledge evaluation design. Through the knowledge evaluation design, visual data analysis of overall heart disease analysis and case evaluation and scoring of auscultation skill test are carried out to complete auscultation teaching.
[0073] The beneficial effects achieved by the present invention using the above scheme are as follows:
[0074] (1) In the existing deep learning heart sound prediction methods for auscultation teaching, there is a technical problem that the traditional heart sound data-based heart disease prediction methods are difficult to combine with the specific needs of auscultation teaching, provide good teaching materials and teaching process support, and the combination of auscultation teaching and heart sound prediction needs to be improved. This solution creatively adopts a method that combines software and hardware to collect and predict abnormal heart rhythms and cardiovascular diseases to construct a visual analysis and teaching program for heart sound auscultation, and implements auscultation skill testing and visualization of heart disease analysis through teaching evaluation, thereby improving the efficiency, automation and scalability of auscultation teaching;
[0075] (2) In the existing deep learning of heart sound for predicting heart disease, the accuracy of abnormal heart rhythm detection and classification often provides a very important data basis for the subsequent diagnosis of specific diseases. The important skill that needs to be taught in auscultation teaching is to distinguish the type of heartbeat based on the heart rhythm signal. Traditional methods are difficult to adaptively cope with the changing heart sound patterns when performing abnormal heart rhythm detection, which leads to high complexity of calculation and prediction, and increases the technical problem of prediction difficulty. This scheme creatively uses a one-dimensional convolutional neural network that combines deep separable convolution and dynamic convolution for residual improvement to detect abnormal heart rhythm. The regular feature learning of the changes in heart sound patterns is adaptively adjusted through dynamic convolution, and the model efficiency is improved through separable convolution, which improves the adaptability of heart disease prediction for auscultation teaching and improves the overall usability of the method.
[0076] (3) In the existing deep learning of heart sound prediction for heart disease, there is a technical problem that the traditional method is not interpretable enough when performing complex cardiovascular disease detection, which makes it difficult to properly analyze the machine's decision judgment, thus affecting the feasibility of teaching implementation. This solution creatively uses a deep convolutional neural network that combines one-dimensional and two-dimensional convolutions to detect cardiovascular disease. By combining manual features with machine features and constructing one-dimensional and two-dimensional convolutional networks, the basic performance of machine prediction is improved. In the subsequent decision rule design, the SOFIS+ classifier with good interpretability is introduced, and multiple sub-decision makers are combined for parallel decision-making, which improves the overall accuracy of cardiovascular disease detection and the interpretability of decisions, providing a good prediction process for subsequent auscultation teaching. Subsequently, combined with data visualization analysis, the linkage and scalability of the entire teaching process and prediction process are improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0077] Figure 1 A schematic diagram of the process of the method for predicting heart disease by deep learning of heart sounds for auscultation teaching provided by the present invention;
[0078] Figure 2 A schematic diagram of a heart sound deep learning heart disease prediction system for auscultation teaching provided by the present invention;
[0079] Figure 3 This is a flow chart of abnormal heart rhythm detection in step S3;
[0080] Figure 4 is a schematic diagram of the process of cardiovascular disease detection in step S4;
[0081] Figure 5 It is a schematic diagram of the process of composite feature embedding and extraction in step S5;
[0082] Figure 6 A schematic diagram of a reference visualization analysis diagram for the abnormal heart rhythm analysis in step S3;
[0083] Figure 7 A dot matrix schematic diagram of a reference visualization analysis diagram for cardiovascular disease detection in step S4;
[0084] Figure 8 The surface diagram of the reference visualization analysis diagram for cardiovascular disease detection in step S4 is shown.
[0085] The accompanying drawings are used to provide further understanding of the present invention and constitute a part of the specification. They are used to explain the present invention together with the embodiments of the present invention and do not constitute a limitation of the present invention. DETAILED DESCRIPTION
[0086] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments; based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0087] In the description of the present invention, it should be understood that terms such as “upper”, “lower”, “front”, “back”, “left”, “right”, “top”, “bottom”, “inside” and “outside” indicating directions or positional relationships are based on the directions or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific direction, be constructed and operated in a specific direction, and therefore should not be understood as limiting the present invention.
[0088] Example 1, see Figure 1 The present invention provides a method for predicting heart disease by deep learning of heart sounds for auscultation teaching, the method comprising the following steps:
[0089] Step S1: heart sound data collection;
[0090] Step S2: heart sound data processing;
[0091] Step S3: abnormal heart rhythm detection;
[0092] Step S4: cardiovascular disease detection;
[0093] Step S5: Auscultation teaching design.
[0094] By performing the above operations, in view of the technical problem that in the existing deep learning heart sound prediction methods for auscultation teaching, the traditional heart disease prediction methods based on heart sound data are difficult to combine with the specific needs of auscultation teaching, provide good teaching materials and teaching process support, and the combination of auscultation teaching and heart sound prediction needs to be improved, this solution creatively adopts a method that combines software and hardware to collect and predict abnormal heart rhythms and cardiovascular diseases to construct a visual analysis and teaching program of heart sound auscultation, and implements the test of auscultation skills and visualization of heart disease analysis through teaching evaluation, thereby improving the efficiency, automation and developability of auscultation teaching.
[0095] Example 2, see Figure 1 and Figure 2 In step S1, the heart sound data acquisition is used to collect the original heart sound data, specifically, by using an electrocardiogram signal acquisition device and an electronic stethoscope to acquire electrocardiogram data and phonocardiogram data, and by performing data annotation sampling on the electrocardiogram data and phonocardiogram data to obtain the original heart sound analysis data.
[0096] Example 3, see Figure 1 and Figure 2 , this embodiment is based on the above embodiment, in step S2, the heart sound data processing is used to optimize the heart sound data, specifically, to optimize the preprocessing of the original heart sound analysis data to obtain optimized heart sound analysis data;
[0097] The optimization preprocessing specifically includes signal denoising, filtering and signal segmentation operations.
[0098] Example 4, see Figure 1 , Figure 2 , Figure 3 and Figure 6 , this embodiment is based on the above embodiment, in step S3, the abnormal heart rhythm detection is used to detect abnormal heartbeat conditions, specifically, based on the optimized heart sound data, a one-dimensional convolutional neural network of an improved residual network is used to perform abnormal heart rhythm detection to obtain abnormal heart rhythm analysis reference data;
[0099] The one-dimensional convolutional neural network of the improved residual network includes an improved residual block and a one-dimensional convolutional neural network;
[0100] The improved residual block is used to combine the depth-separable convolution and the dynamic convolution to perform adaptive learning of the heart sound pattern and improve the granularity and efficiency of capturing the abnormal heart rhythm features;
[0101] The one-dimensional convolutional neural network is used to extract features and perform classification tasks for abnormal heart rhythm detection;
[0102] The step of using the improved residual network one-dimensional convolutional neural network to detect abnormal heart rhythm and obtain abnormal heart rhythm analysis reference data includes:
[0103] Step S31: constructing a one-dimensional convolutional neural network basic structure, specifically constructing a one-dimensional convolutional network, and extracting basic signal features in the optimized heart sound data through a one-dimensional convolution operation, and the calculation formula is:
[0104] F=ReLU(Conv 1D (F pr ,W 1D )+b 1D );
[0105] In the formula, F is the basic signal feature data, ReLU(·) is the nonlinear activation function, Conv 1D is a one-dimensional convolution operation, F pr is to optimize the heart sound data, W 1D is the one-dimensional convolution weight, b 1D is the one-dimensional convolution bias term;
[0106] Step S32: constructing a depth-separable convolution, specifically, extracting a depth-separable convolution feature from the basic signal feature data through depth-wise convolution and point-wise convolution operations, and the calculation formula is:
[0107] ;
[0108] In the formula, F ds is the deep separation convolution feature, ReLU(·) is the nonlinear activation function, DepthWiseConv is the deep convolution operation, F is the basic signal feature data, W d is the depth convolution weight, PointWiseConv is the point-by-point convolution operation, W p is the point-wise convolution weight;
[0109] Step S33: construct dynamic convolution, specifically introduce dynamic convolution kernel weights, extract dynamic convolution features, and calculate the formula as follows:
[0110] ;
[0111] In the formula, F dy is the dynamic convolution feature, N is the total number of dynamic convolution kernels, I is the dynamic convolution kernel index, is the dynamic convolution kernel weight of the Ith dynamic convolution kernel, Sig(·) is the S-type activation function, Conv 1D is a one-dimensional convolution operation, F is the basic signal feature data, W I is the convolution extraction weight of the Ith dynamic convolution kernel;
[0112] Step S34: improving the residual connection, specifically, weighting and summing the basic signal features, the depth-separable convolution features and the dynamic convolution features through the residual connection to obtain improved residual feature data, and the calculation formula is:
[0113] ;
[0114] In the formula, F RES is the improved residual feature data, F is the basic signal feature data, is the depthwise separable convolution residual weight, F ds is the deep separation convolution feature, is the dynamic convolution residual weight, F dy It is a dynamic convolution feature;
[0115] Step S35: abnormal heart rhythm classification, specifically, constructing a fully connected layer and using a Softmax classifier to perform abnormal heart rhythm detection and classification to obtain abnormal heart rhythm classification output. The calculation formula is:
[0116] Y=Softmax(FC(F RES ));
[0117] Where Y is the arrhythmia classification output, which includes four types of arrhythmia detection classification, FC(·) is the fully connected layer function, and F RES It is to improve the residual feature data;
[0118] Step S36: training the heart rhythm abnormality detection model, specifically, training the heart rhythm abnormality detection model by constructing a one-dimensional convolutional neural network basic structure and improving the residual connection to obtain a heart rhythm abnormality detection pre-classification model Model HR ;
[0119] Step S37: abnormal heart rhythm detection and result visualization, specifically, using the abnormal heart rhythm detection pre-classification model Model according to the optimized heart sound signal HR , perform abnormal heart rhythm detection to obtain abnormal heart rhythm analysis reference data, and draw an abnormal heart rhythm analysis reference visualization analysis diagram based on the abnormal heart rhythm analysis reference data;
[0120] The abnormal heart rhythm analysis reference data specifically includes abnormal classification data and heart rhythm signal data;
[0121] The abnormal classification data specifically includes normal heartbeat class, abnormal heartbeat class, premature heartbeat class and unrecognizable heartbeat class.
[0122] See also Figure 6As shown in the figure, the four horizontal bar graphs in the figure represent the normal heartbeat class, the abnormal heartbeat class, the premature heartbeat class and the unrecognizable heartbeat class respectively, and the vertical direction represents the number of specific types of data corresponding to the classification results.
[0123] By performing the above operations, in the existing deep learning of heart sound for heart disease prediction, the accuracy of abnormal rhythm detection and classification often provides a very important data basis for the subsequent specific disease diagnosis, and the important skill that needs to be taught in auscultation teaching is to distinguish the type of heartbeat based on the heart rhythm signal. Traditional methods are difficult to adaptively cope with the changing heart sound patterns when performing abnormal rhythm detection, which leads to high complexity of calculation and prediction, and increases the technical problem of prediction difficulty. This solution creatively uses a one-dimensional convolutional neural network that combines deep separable convolution and dynamic convolution for residual improvement for abnormal rhythm detection, adaptively adjusts the regular feature learning of heart sound pattern changes through dynamic convolution, improves model efficiency through separable convolution, improves the adaptability of heart disease prediction for auscultation teaching, and improves the overall usability of the method.
[0124] Example 5, see Figure 1 , Figure 2 , Figure 4 , Figure 7 and Figure 8 This embodiment is based on the above embodiment. In step S4, the cardiovascular disease detection is used to analyze and detect cardiovascular diseases reflected by heart sounds. Specifically, based on the optimized heart sound analysis data and the abnormal heart rhythm analysis reference data, a deep convolutional neural network combining one-dimensional and two-dimensional convolution is used to perform cardiovascular disease detection to obtain cardiovascular disease detection reference data.
[0125] The deep convolutional neural network combining one-dimensional and two-dimensional convolutions specifically includes a one-dimensional convolution sub-block, a two-dimensional convolution sub-block, a feature fusion sub-block, a self-attention mechanism sub-block, and a decision optimization sub-block;
[0126] The one-dimensional convolution sub-block is used to preliminarily extract features of heart sound signals;
[0127] The two-dimensional convolution sub-block is used to analyze the reference data in combination with the abnormal heart rhythm and extract the time-frequency characteristics of the heart sound signal;
[0128] The feature fusion sub-block is used to fuse the time-frequency features of heart sounds and the manually extracted features of abnormal heart rhythm;
[0129] The self-attention mechanism sub-block is used to improve the comprehensive expression ability of the model;
[0130] The decision optimization sub-block is used to introduce parallel rule processing and optimize the prediction decision mechanism of the model;
[0131] The step of using a deep convolutional neural network combining one-dimensional and two-dimensional convolutions to detect cardiovascular diseases and obtain reference data for cardiovascular disease detection includes:
[0132] Step S41: construct a one-dimensional convolution sub-block, specifically, perform a one-dimensional convolution operation to initially extract features, and obtain the initial features of the heart sound signal through the maximum pooling layer and feature transformation. The calculation formula is:
[0133] ;
[0134] Where, X tr is the initial feature of the heart sound signal, Transpose(·) is the feature transformation operation, MaxPool 1D (·) is a one-dimensional maximum pooling layer operation, ReLU (·) is a nonlinear activation function, Conv 1D is a one-dimensional convolution operation, X0 is the original data input sample of the one-dimensional convolution sub-block, used to represent the optimized heart sound analysis data and the abnormal heart rhythm analysis reference data, W 1D is the one-dimensional convolution weight, b 1D is the one-dimensional convolution bias term;
[0135] Step S42: construct a two-dimensional convolution sub-block, specifically, perform a two-dimensional convolution operation to extract the time-frequency features, and obtain the time-frequency features of the heart sound signal through maximum pooling and global pooling operations. The calculation formula is:
[0136] ;
[0137] Where, X gl is the time-frequency feature of the heart sound signal, GlobalPooling(·) is the global pooling operation, MaxPool 2D (·) is the two-dimensional maximum pooling layer operation, ReLU (·) is the nonlinear activation function, Conv 2D is a two-dimensional convolution operation, X tr is the initial feature of the heart sound signal, W 2D is the 2D convolution weight, b 2D is the 2D convolution bias term;
[0138] Step S43: construct a fully connected layer and fuse features. Specifically, a fully connected layer is constructed, and part of the feature data is extracted from the original data input sample by manual feature extraction to obtain manual feature data. Then, the manual feature data and the time-frequency features of the heart sound signal are fused to obtain the connected fused feature data. The calculation formula is:
[0139] ;
[0140] Where, X fcis the manual fully connected feature data after the fully connected layer processing, ReLU(·) is the nonlinear activation function, X m is the manual feature data, W fc is the full connection weight, b fc is the fully connected bias term, X Concat is the connection fusion feature data, Concat(·) is the feature connection operation, X gl is the time-frequency characteristics of the heart sound signal;
[0141] Step S44: construct a self-attention mechanism sub-block, specifically introduce a self-attention mechanism and calculate a self-attention score, optimize the feature expression ability of the model through attention mapping, and obtain self-attention mapping feature data. The calculation formula is:
[0142] X att =Attention(Q,K,V);
[0143] Where, X att is the self-attention map feature data, Attention(·) is the attention function, Q is the query vector, K is the key vector, and V is the value vector;
[0144] Step S45: construct a decision optimization sub-block, specifically using SOFIS+ as the final classifier of the model, optimizing the interpretability of the model, and constructing parallel decision rules to perform feature processing and detection decisions. The calculation formula is:
[0145] ;
[0146] Where Fina-decision is the output test decision data, which is used to represent the test results of cardiovascular disease, Combine(·) is the parallel decision function, is the parallel decision output of the sub-decision maker, where i is the sub-decision maker index, n is the total number of sub-decision makers, is the output of the ith sub-decision maker, RULE i is the decision rule of the ith sub-decision maker, and SOFIS+ classifier is selected as the sub-decision maker. att is the self-attention map feature data;
[0147] Step S46: Cardiovascular disease detection model training, specifically, by constructing a one-dimensional convolution sub-block, constructing a two-dimensional convolution sub-block, constructing a fully connected layer and fusing features, constructing a self-attention mechanism sub-block, and constructing a decision optimization sub-block, to perform model training to obtain a cardiovascular disease detection model Model HI ;
[0148] Step S47: Cardiovascular disease detection and result visualization, specifically, analyzing the original data based on the heart sound and using the cardiovascular disease detection model Model HI , perform cardiovascular disease detection, obtain cardiovascular disease detection reference data, and draw a cardiovascular disease detection reference visualization analysis diagram based on the cardiovascular disease detection reference data.
[0149] See also Figure 7 ,As shown in the figure, the horizontal direction is the initial features of the heart sound signal, the vertical direction is the initial features of the heart sound signal, and the depth direction is the manual fully connected feature data. ,The scattered data points in the dot matrix are used to represent the characteristic three-dimensional graph of the heart sound signal;
[0150] See also Figure 8 ,As shown in the figure, the horizontal direction is the initial features of the heart sound ,signal, the vertical direction is the initial features of the heart sound ,signal, and the depth direction is the manual fully connected feature data.,The surface of the surface schematic diagram is used to display the ,three-dimensional graph of continuous heart sound signal features at different ,time points.
[0151] By performing the above operations, in view of the technical problem that in the existing deep learning prediction of heart disease based on heart sounds, the traditional methods are not interpretable enough when performing complex cardiovascular disease detection, which makes it difficult to properly analyze the decision-making judgment of the machine, thus affecting the feasibility of teaching implementation, this solution creatively adopts a deep convolutional neural network combining one-dimensional and two-dimensional convolutions for cardiovascular disease detection. By combining the fusion of manual features and machine features and constructing one-dimensional and two-dimensional convolutional networks, the basic performance of machine prediction is improved. In the subsequent decision rule design, the SOFIS+ classifier with better interpretability is introduced, and multiple sub-decision makers are combined for parallel decision-making, which improves the overall accuracy of cardiovascular disease detection and the interpretability of decisions, and provides a good prediction process for subsequent auscultation teaching. Then, combined with data visualization analysis, the linkage and scalability of the entire teaching process and prediction process are improved.
[0152] Example 6, see Figure 1 , Figure 2 and Figure 5 This embodiment is based on the above embodiment. In step S5, the auscultation teaching design is used to optimize the auscultation teaching process design by combining basic heart sound knowledge, abnormal heart rhythm detection visualization analysis data and cardiovascular disease detection visualization analysis data. Specifically, the auscultation teaching process design is performed based on the abnormal heart rhythm analysis reference data and the cardiovascular disease detection reference data to obtain a heart sound analysis auscultation teaching plan reference, which specifically includes the following steps:
[0153] Step S51: theoretical teaching design, specifically teaching basic heart sound knowledge, and teaching the basics of cardiac anatomy, the characteristics of normal and abnormal heart sounds, basic knowledge of heart disease, and basic knowledge of auscultation techniques;
[0154] Step S52: heart sound case design, specifically, selecting abnormal heart sound samples from the original data samples and medical history data, and combining the abnormal heart rhythm analysis reference data to conduct heart sound case analysis teaching;
[0155] Step S53: interactive teaching design, specifically constructing a simulated scenario of auscultation of heart sounds, and performing a specific diagnosis simulation of cardiovascular disease and heart disease through the cardiovascular disease detection reference data;
[0156] Step S54: teaching feedback design, specifically providing auscultation teaching guidance and real-time feedback and teaching suggestions, and obtaining a reference for the teaching plan of heart sound analysis and auscultation;
[0157] Step S55: knowledge assessment design, specifically, based on the students' completion of the teaching, combined with the abnormal heart rhythm analysis reference data and the cardiovascular disease detection reference data, conduct visual data analysis of the overall heart disease analysis and case evaluation and scoring of the auscultation skill test to complete the auscultation teaching.
[0158] Embodiment 7, see Figure 1 and Figure 2 , this embodiment is based on the above embodiment, and the heart sound deep learning heart disease prediction system for auscultation teaching provided by the present invention includes a basic hardware module, a software prediction module, a teaching implementation module, an interactive terminal module and a teaching evaluation module;
[0159] The basic hardware module is used for heart sound data collection and heart sound data processing, and obtains original heart sound analysis data and optimized heart sound analysis data through heart sound data collection and heart sound data processing, and sends the optimized heart sound analysis data to the software prediction module, and sends the original heart sound analysis data to the teaching implementation module;
[0160] The software prediction module is used for abnormal heart rhythm detection and cardiovascular disease detection, obtains abnormal heart rhythm analysis reference data and cardiovascular disease detection reference data through abnormal heart rhythm detection and cardiovascular disease detection, and sends the abnormal heart rhythm analysis reference data and the cardiovascular disease detection reference data to the teaching implementation module and the interactive terminal module;
[0161] The teaching implementation module is used for auscultation teaching design, and a heart sound teaching plan is obtained through the auscultation teaching design, and the heart sound teaching plan is used in the teaching evaluation module;
[0162] The interactive terminal module is used to implement data visualization analysis of the software prediction module, obtain visual analysis data of abnormal heart rhythm detection and visual analysis data of cardiovascular disease detection through result visualization, and use the visual analysis data of abnormal heart rhythm detection and visual analysis data of cardiovascular disease detection in the teaching evaluation module;
[0163] The teaching evaluation module is used for knowledge evaluation design. Through the knowledge evaluation design, visual data analysis of overall heart disease analysis and case evaluation and scoring of auscultation skill test are carried out to complete auscultation teaching.
[0164] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0165] While the embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that many changes, modifications, substitutions and variations can be made to the embodiments without departing from the principles and spirit of the invention.
[0166] The present invention and its embodiments are described above, and such description is not restrictive. The drawings show only one embodiment of the present invention, and the actual structure is not limited thereto. In short, if ordinary technicians in the field are inspired by it, without departing from the purpose of the invention, they can design a structure and embodiment similar to the technical solution without creativity, which should belong to the protection scope of the present invention.
Claims
1. A deep learning method for predicting heart disease based on heart sounds for auscultation teaching, characterized by: The method comprises the following steps: Step S1: heart sound data acquisition, used to acquire original heart sound data, specifically, to acquire electrocardiogram data and phonocardiogram data through an electrocardiogram signal acquisition device and an electronic stethoscope, and to obtain original heart sound analysis data by data annotation sampling of the electrocardiogram data and phonocardiogram data; Step S2: heart sound data processing, which is used to optimize the heart sound data, specifically, to optimize the preprocessing of the original heart sound analysis data to obtain optimized heart sound analysis data; The optimization preprocessing specifically includes signal denoising, filtering and signal segmentation operations; Step S3: abnormal heart rhythm detection, used to detect abnormal heartbeat conditions, specifically, based on the optimized heart sound data, using a one-dimensional convolutional neural network with an improved residual network to perform abnormal heart rhythm detection, and obtain abnormal heart rhythm analysis reference data; The one-dimensional convolutional neural network of the improved residual network includes an improved residual block and a one-dimensional convolutional neural network; the improved residual block is used to combine deep separable convolution and dynamic convolution to perform adaptive learning of heart sound patterns and improve the granularity and efficiency of capturing abnormal heart rhythm features; The step of using the improved residual network one-dimensional convolutional neural network to detect abnormal heart rhythm and obtain abnormal heart rhythm analysis reference data includes: Step S31: constructing a one-dimensional convolutional neural network basic structure, specifically constructing a one-dimensional convolutional network, and extracting basic signal features in the optimized heart sound data through a one-dimensional convolution operation, and the calculation formula is: F=ReLU(Conv 1D (F pr ,W 1D )+b 1D ); In the formula, F is the basic signal feature data, ReLU(·) is the nonlinear activation function, Conv 1D is a one-dimensional convolution operation, F pr is to optimize the heart sound data, W 1D is the one-dimensional convolution weight, b 1D is the one-dimensional convolution bias term; Step S32: constructing a depth-separable convolution, specifically, extracting a depth-separable convolution feature from the basic signal feature data through depth-wise convolution and point-wise convolution operations, and the calculation formula is: F ds =RdLU(DepthWiseConv(F,W d )+PointWiseConv(F,W p )); In the formula, F ds is the deep separation convolution feature, ReLU(·) is the nonlinear activation function, DepthWiseConv is the deep convolution operation, F is the basic signal feature data, W d is the depth convolution weight, PointWiseConv is the point-by-point convolution operation, W p is the point-wise convolution weight; Step S33: construct dynamic convolution, specifically introduce dynamic convolution kernel weights, extract dynamic convolution features, and calculate the formula as follows: In the formula, F dy is the dynamic convolution feature, N is the total number of dynamic convolution kernels, I is the dynamic convolution kernel index, α I is the dynamic convolution kernel weight of the Ith dynamic convolution kernel, Sig(·) is the S-type activation function, Conv 1D is a one-dimensional convolution operation, F is the basic signal feature data, W I is the convolution extraction weight of the Ith dynamic convolution kernel; Step S34: improving the residual connection, specifically, weighting and summing the basic signal features, the depth-separable convolution features and the dynamic convolution features through the residual connection to obtain improved residual feature data, and the calculation formula is: F RES =F+λ DS F ds +λ DY F dy ; In the formula, F RES is the improved residual feature data, F is the basic signal feature data, λ DS is the depthwise separable convolution residual weight, F ds is the depth-separated convolutional feature, λ DY is the dynamic convolution residual weight, F dy It is a dynamic convolution feature; Step S35: abnormal heart rhythm classification, specifically, constructing a fully connected layer and using a Softmax classifier to perform abnormal heart rhythm detection and classification to obtain abnormal heart rhythm classification output. The calculation formula is: Y=Softmax(FC(F RES )); Where Y is the arrhythmia classification output, which includes four types of arrhythmia detection classification, FC(·) is the fully connected layer function, and F RES It is to improve the residual feature data; Step S36: training the heart rhythm abnormality detection model, specifically, training the heart rhythm abnormality detection model by constructing a one-dimensional convolutional neural network basic structure and improving the residual connection to obtain a heart rhythm abnormality detection pre-classification model Model HR ; Step S37: abnormal heart rhythm detection and result visualization, specifically, using the abnormal heart rhythm detection pre-classification model Model according to the optimized heart sound signal HR , perform abnormal heart rhythm detection to obtain abnormal heart rhythm analysis reference data, and draw an abnormal heart rhythm analysis reference visualization analysis diagram based on the abnormal heart rhythm analysis reference data; Step S4: Cardiovascular disease detection, which is used to analyze and detect cardiovascular diseases reflected by heart sounds, specifically, based on the optimized heart sound analysis data and the abnormal heart rhythm analysis reference data, a deep convolutional neural network combining one-dimensional and two-dimensional convolution is used to perform cardiovascular disease detection to obtain cardiovascular disease detection reference data, including the following steps: Step S41: construct a one-dimensional convolution sub-block; Step S42: construct a two-dimensional convolution sub-block; Step S43: construct a fully connected layer and fuse features; Step S44: construct a self-attention mechanism sub-block; Step S45: construct a decision optimization sub-block; Step S46: cardiovascular disease detection model training; Step S47: cardiovascular disease detection and result visualization; Step S5: Auscultation teaching design, designing the auscultation teaching process, and obtaining a reference for the heart sound analysis auscultation teaching plan.
2. The heart sound deep learning heart disease prediction method for auscultation teaching according to claim 1, characterized in that: In step S4, the cardiovascular disease detection is used to analyze and detect cardiovascular diseases reflected by heart sounds, specifically, based on the optimized heart sound analysis data and the abnormal heart rhythm analysis reference data, a deep convolutional neural network combining one-dimensional and two-dimensional convolution is used to perform cardiovascular disease detection to obtain cardiovascular disease detection reference data; The deep convolutional neural network combining one-dimensional and two-dimensional convolutions specifically includes a one-dimensional convolution sub-block, a two-dimensional convolution sub-block, a feature fusion sub-block, a self-attention mechanism sub-block, and a decision optimization sub-block; The one-dimensional convolution sub-block is used to preliminarily extract features of heart sound signals; The two-dimensional convolution sub-block is used to analyze the reference data in combination with the abnormal heart rhythm and extract the time-frequency characteristics of the heart sound signal; The feature fusion sub-block is used to fuse the time-frequency features of heart sounds and the manually extracted features of abnormal heart rhythm; The self-attention mechanism sub-block is used to improve the comprehensive expression ability of the model; The decision optimization sub-block is used to introduce parallel rule processing and optimize the prediction decision mechanism of the model.
3. The heart sound deep learning heart disease prediction method for auscultation teaching according to claim 2 is characterized by: The step of using a deep convolutional neural network combining one-dimensional and two-dimensional convolutions to detect cardiovascular diseases and obtain reference data for cardiovascular disease detection includes: Step S41: construct a one-dimensional convolution sub-block, specifically, perform a one-dimensional convolution operation to initially extract features, and obtain the initial features of the heart sound signal through the maximum pooling layer and feature transformation. The calculation formula is: X tr =Transpose(MaxPool 1D (ReLU(Conv 1D (X0,W 1d )+b 1D ))); In the formula, X tr is the initial feature of the heart sound signal, Transpose(·) is the feature transformation operation, MaxPool 1D (·) is a one-dimensional maximum pooling layer operation, ReLU (·) is a nonlinear activation function, Conv 1D is a one-dimensional convolution operation, X0 is the original data input sample of the one-dimensional convolution sub-block, used to represent the optimized heart sound analysis data and the abnormal heart rhythm analysis reference data, W 1D is the one-dimensional convolution weight, b 1D is the one-dimensional convolution bias term; Step S42: construct a two-dimensional convolution sub-block, specifically, perform a two-dimensional convolution operation to extract the time-frequency features, and obtain the time-frequency features of the heart sound signal through maximum pooling and global pooling operations. The calculation formula is: X gl =globalPooling(MaxPool 2D (ReLU(Conv 2D (Xtr,W2D)+b 2D ))); In the formula, X gl is the time-frequency feature of the heart sound signal, GlobalPooling(·) is the global pooling operation, MaxPool 2D (·) is the two-dimensional maximum pooling layer operation, ReLU (·) is the nonlinear activation function, Conv 2D is a two-dimensional convolution operation, X tr is the initial feature of the heart sound signal, W 2D is the 2D convolution weight, b 2D is the 2D convolution bias term; Step S43: construct a fully connected layer and fuse features. Specifically, a fully connected layer is constructed, and part of the feature data is extracted from the original data input sample by manual feature extraction to obtain manual feature data. Then, the manual feature data and the time-frequency features of the heart sound signal are fused to obtain the connected fused feature data. The calculation formula is: In the formula, X fc is the manual fully connected feature data after the fully connected layer processing, ReLU(·) is the nonlinear activation function, X m is the manual feature data, W fc is the full connection weight, b fc is the fully connected bias term, X Concat is the connection fusion feature data, Concat(·) is the feature connection operation, X gl is the time-frequency characteristics of the heart sound signal; Step S44: construct a self-attention mechanism sub-block, specifically introduce a self-attention mechanism and calculate a self-attention score, optimize the feature expression ability of the model through attention mapping, and obtain self-attention mapping feature data. The calculation formula is: X att =Attention(Q,K,V); In the formula, X att is the self-attention map feature data, Attention(·) is the attention function, Q is the query vector, K is the key vector, and V is the value vector; Step S45: construct a decision optimization sub-block, specifically using SOFIS+ as the final classifier of the model, optimizing the interpretability of the model, and constructing parallel decision rules to perform feature processing and detection decisions. The calculation formula is: Where Final-decision is the output test decision data, which is used to represent the test results of cardiovascular disease, Combine(·) is a parallel decision function, and Sub-decision i∈{1,2,...,n} Sub-decision is the parallel decision output of the sub-decision maker, where i is the sub-decision maker index, n is the total number of sub-decision makers, i is the output of the ith sub-decision maker, RULE i is the decision rule of the ith sub-decision maker, and SOFIS+ classifier is selected as the sub-decision maker. att is the self-attention map feature data; Step S46: Cardiovascular disease detection model training, specifically, by constructing a one-dimensional convolution sub-block, constructing a two-dimensional convolution sub-block, constructing a fully connected layer and fusing features, constructing a self-attention mechanism sub-block, and constructing a decision optimization sub-block, to perform model training to obtain a cardiovascular disease detection model Model HI ; Step S47: Cardiovascular disease detection and result visualization, specifically, analyzing the original data based on the heart sound and using the cardiovascular disease detection model Model HI , perform cardiovascular disease detection, obtain cardiovascular disease detection reference data, and draw a cardiovascular disease detection reference visualization analysis diagram based on the cardiovascular disease detection reference data.
4. The method for predicting heart disease by deep learning of heart sounds for auscultation teaching according to claim 3, characterized in that: In step S5, the auscultation teaching design is used to optimize the auscultation teaching process design by combining basic heart sound knowledge, abnormal heart rhythm detection visualization analysis data and cardiovascular disease detection visualization analysis data. Specifically, the auscultation teaching process is designed based on the abnormal heart rhythm analysis reference data and the cardiovascular disease detection reference data to obtain a reference for the heart sound analysis auscultation teaching plan.
5. The heart sound deep learning heart disease prediction method for auscultation teaching according to claim 4, characterized in that: In step S5, the step of designing the auscultation teaching process and obtaining a reference for the heart sound analysis auscultation teaching plan includes: Step S51: theoretical teaching design, specifically teaching basic heart sound knowledge, and teaching the basics of cardiac anatomy, the characteristics of normal and abnormal heart sounds, basic knowledge of heart disease, and basic knowledge of auscultation techniques; Step S52: heart sound case design, specifically, selecting abnormal heart sound samples from the original data samples and medical history data, and combining the abnormal heart rhythm analysis reference data to conduct heart sound case analysis teaching; Step S53: interactive teaching design, specifically constructing a simulated scenario of auscultation of heart sounds, and performing a specific diagnosis simulation of cardiovascular disease and heart disease through the cardiovascular disease detection reference data; Step S54: teaching feedback design, specifically providing auscultation teaching guidance and real-time feedback and teaching suggestions, and obtaining a reference for the teaching plan of heart sound analysis and auscultation; Step S55: knowledge assessment design, specifically, based on the students' completion of the teaching, combined with the abnormal heart rhythm analysis reference data and the cardiovascular disease detection reference data, conduct visual data analysis of the overall heart disease analysis and case evaluation and scoring of the auscultation skill test to complete the auscultation teaching.
6. A heart sound deep learning heart disease prediction system for auscultation teaching, used to implement the heart sound deep learning heart disease prediction method for auscultation teaching according to any one of claims 1 to 5, characterized in that: It includes basic hardware module, software prediction module, teaching implementation module, interactive terminal module and teaching evaluation module.
7. The heart sound deep learning heart disease prediction system for auscultation teaching according to claim 6, characterized in that: The basic hardware module is used for heart sound data collection and heart sound data processing, and obtains original heart sound analysis data and optimized heart sound analysis data through heart sound data collection and heart sound data processing, and sends the optimized heart sound analysis data to the software prediction module, and sends the original heart sound analysis data to the teaching implementation module; The software prediction module is used for abnormal heart rhythm detection and cardiovascular disease detection, obtains abnormal heart rhythm analysis reference data and cardiovascular disease detection reference data through abnormal heart rhythm detection and cardiovascular disease detection, and sends the abnormal heart rhythm analysis reference data and the cardiovascular disease detection reference data to the teaching implementation module and the interactive terminal module; The teaching implementation module is used for auscultation teaching design, and a heart sound teaching plan is obtained through the auscultation teaching design, and the heart sound teaching plan is used in the teaching evaluation module; The interactive terminal module is used to implement data visualization analysis of the software prediction module, obtain visual analysis data of abnormal heart rhythm detection and visual analysis data of cardiovascular disease detection through result visualization, and use the visual analysis data of abnormal heart rhythm detection and visual analysis data of cardiovascular disease detection in the teaching evaluation module; The teaching evaluation module is used for knowledge evaluation design. Through the knowledge evaluation design, visual data analysis of overall heart disease analysis and case evaluation and scoring of auscultation skill test are carried out to complete auscultation teaching.
Citation Information
Patent Citations
Intelligent heart sound diagnostic system and method based on in-depth learning
CN107529645A
Heart sound signal classification method based on convolutional recurrent neural network
CN109961017A
Heart sound total variation filtering method based on pathology self-adaption
CN110263760A
Abnormal heart sound recognition method and device based on multi-scale attention neural network
CN112036467A
Heart sound signal prediction method and heart auscultation device using same
CN115089206A
