A processing method and device for multi-task prediction based on cardiopulmonary multi-site auscultation sound signals

By constructing an end-to-end multi-task prediction model and utilizing modules such as site embedding layer and attention layer, the problem of the inability to perceive multi-site correlation and syndrome detection in existing technologies is solved, and multi-task prediction and syndrome detection of cardiopulmonary auscultation sounds are realized.

CN123147969APending Publication Date: 2026-11-24SHENZHEN LEPU YUNZHI TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611400278.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-10
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing deep learning models cannot perceive the structural relationships between multiple sites during cardiopulmonary auscultation, cannot process audio from the heart and lungs simultaneously, and are difficult to detect syndromes.

Method used

An end-to-end multi-task prediction model is constructed to predict heart and lung abnormalities through a two-stage training mechanism. Modules such as site embedding layer, time-frequency domain feature coding layer, graph embedding layer and attention layer are used to achieve synchronous prediction of signals from multiple sites.

Benefits of technology

It enables simultaneous prediction of abnormal heart and lung sounds and cardiopulmonary syndrome, improves the functional diversity of auscultation aids, and can perceive structural relationships between multiple sites.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123147969A_ABST
    Figure CN123147969A_ABST
Patent Text Reader

Abstract

This invention relates to a processing method and apparatus for multi-task prediction based on auscultation sounds from multiple sites of the heart and lungs. The method includes: constructing a multi-task prediction model based on auscultation sounds from multiple sites of the heart and lungs; performing a first-stage training on the model's ability to predict cardiac and pulmonary abnormalities, optimizing all model parameters except for the comprehensive abnormality prediction head parameter during the first-stage training; after the first-stage training, performing a second-stage training on the model's ability to predict comprehensive cardiopulmonary abnormalities, optimizing only the comprehensive abnormality prediction head parameter during the second-stage training; after training, preprocessing the user-input raw signal set X0 to obtain a signal set X, inputting it into the model for processing, and performing a comprehensive analysis based on the three prediction vectors output by the model. This invention can overcome the shortcomings of existing solutions and improve the functional diversity of auscultation sound-assisted tools.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of artificial intelligence technology, and in particular to a processing method and apparatus for multi-task prediction based on auscultation sound signals from multiple sites of the heart and lungs. Background Technology

[0002] Traditional cardiopulmonary auscultation relies heavily on physician experience, is highly subjective, and difficult to standardize, thus limiting the accuracy of screening in primary healthcare settings. To address these issues, existing research attempts to use deep learning models for automatic classification of heart and lung sounds. However, our research revealed several problems with existing deep learning models: 1) They treat each auscultation site in isolation, failing to perceive structural relationships between multiple sites. 2) They only model a single heart or lung, unable to process heart and lung sounds simultaneously. 3) They can only detect site-specific abnormalities, unable to further process syndrome detection.

[0003] In view of this, we propose a solution: constructing an end-to-end multi-task prediction model to simultaneously predict 15 types of abnormal heart sounds, 12 types of abnormal lung sounds, and 8 types of cardiopulmonary syndromes based on heart / lung auscultation signals from 10 different auscultation locations. This solution not only senses structural correlations between multiple sites but also processes heart and lung sounds simultaneously and further detects syndromes. How to implement this solution is the technical problem that this invention aims to solve. Summary of the Invention

[0004] The purpose of this invention is to address the shortcomings of existing technologies by providing a processing method, device, electronic device, and computer-readable storage medium for multi-task prediction based on auscultation sounds from multiple sites of the heart and lungs. This invention first constructs an end-to-end multi-task prediction model capable of predicting multiple types of cardiac abnormalities, multiple types of pulmonary abnormalities, and multiple types of cardiopulmonary syndromes based on the input signal set X. Then, the model is trained using a two-stage training mechanism: 1) Stage one trains the model's ability to predict cardiac and pulmonary abnormalities, optimizing all model parameters except for the comprehensive abnormality prediction head parameter; 2) Stage two trains the model's ability to predict comprehensive cardiopulmonary abnormalities, fine-tuning the comprehensive abnormality prediction head parameter. After model training, the user-input raw signal set X0 is preprocessed to obtain signal set X, which is then input into the multi-task prediction model to obtain three corresponding prediction vectors. Based on these three prediction vectors, a comprehensive analysis is performed to generate an analysis report, which is then fed back to the user. This invention can perceive structural correlations between multiple sites and can simultaneously predict 15 types of heart sound abnormalities, 12 types of lung sound abnormalities, and 8 types of cardiopulmonary syndromes. This invention can overcome the shortcomings of existing solutions and improve the functional diversity of auscultation sound assistive tools.

[0005] To achieve the above objectives, a first aspect of the present invention provides a method for multi-task prediction based on auscultation sounds from multiple sites of the heart and lungs, the method comprising: A deep learning model for multi-task prediction based on auscultation sounds from multiple sites of the heart and lungs is constructed to obtain a corresponding multi-task prediction model. This multi-task prediction model predicts multiple types of cardiac abnormalities, multiple types of pulmonary abnormalities, and multiple types of combined cardiopulmonary abnormalities based on the input signal set X, and outputs corresponding prediction vectors P1, P2, and P3. The signal set X is a set of auscultation sounds from multiple sites of the heart and lungs, including signals from 10 sites x. i Signal x of each of the aforementioned locations i The signal amplitude is normalized to the interval [-1, 1], where 1 ≤ index i ≤ 10; the prediction vector P1 is the cardiac abnormality prediction vector, which is composed of 5 site prediction vectors p 1,k Composition, 1 ≤ index k ≤ 5; the predicted part vector p 1,k The predicted probability p is determined by 15 categories. 1(k,a) Composition, 1 ≤ index a ≤ 15; the prediction vector P2 is the lung abnormality prediction vector, composed of 5 site prediction vectors p 2,q Composition, 1 ≤ index q ≤ 5; the location prediction vector p 2,q The probability p is predicted by 12 categories. 2(q,b) Composition, 1≤index b≤12; the prediction vector P3 is the cardiopulmonary syndrome abnormality prediction vector, composed of 8 types of prediction probabilities p 3(c) Composition, 1 ≤ index c ≤ 8; The multi-task prediction model's ability to predict heart and lung abnormalities is trained in a first-stage training phase based on a pre-defined label dataset. During this first-stage training, all model parameters except for the comprehensive abnormality prediction head parameters are optimized. The label dataset includes multiple first data records; each first data record includes the signal set X and a label vector. Label vectors and label vector The label vector Includes 5 part label vectors The part label vector Includes 15 label probabilities Of these, only one is 1 and the rest are 0; the label vector Includes 5 part label vectors The part label vector Includes 12 label probabilities Of these, only one is 1 and the rest are 0; the label vector Includes 8 label probabilities The probability of each of the aforementioned labels It can be 1 or 0, where some or all of the labels can be 1 at the same time; After the first phase of training is completed, the cardiopulmonary comprehensive abnormality prediction ability of the multi-task prediction model is trained in the second phase based on the labeled dataset, and only the comprehensive abnormality prediction head parameters of the model are optimized in the second phase of training. After the second phase of training, the system receives the original signal set X0 input by the user; preprocesses the original signal set X0 to obtain the corresponding signal set X; and inputs the signal set X into the multi-task prediction model when the signal set X is not empty to obtain the corresponding prediction vectors P1, P2, and P3; and performs a comprehensive analysis based on the three prediction vectors to obtain a corresponding analysis report which is then fed back to the current user; the original signal set X0 includes 10 original location signals x. 0(i) .

[0006] Preferably, the 10 sites corresponding to the signal set X include 5 cardiac auscultation sites and 5 lung auscultation sites; the 5 cardiac auscultation sites include the apex (APEX), aortic valve (AORTIC), pulmonary valve (PULMONIC), left sternal border (LSB), and right sternal border (RSB); the 5 lung auscultation sites include the right upper lobe (RUL_A), right middle lobe (RML_A), right lower lobe (RLL_A), left upper lobe (LUL_A), and left lower lobe (LLL_A). The 15 categories of prediction probabilities p 1(k,a) The corresponding 15 prediction types include: normal, diastolic rumble murmur (Diastolic_MS), diastolic rumble murmur (Diastolic_TS), diastolic sigh murmur (Diastolic_AR), systolic ejection murmur (Systolic_AS), systolic ejection murmur (Systolic_PS), holosystolic blowing murmur (Systolic_MR), holosystolic blowing murmur (Systolic_TR), continuous machine murmur (Continuous_Machinery), S3 gallop rhythm (Gallop_S3), S4 gallop rhythm (Gallop_S4), opening valve sound (OS), pericardial friction rub (Pericardial_Friction), systolic click (Ejection_Click), and midsystolic click (Midsystolic_Click). The 12 types of prediction probabilities p 2(q,b)The corresponding 12 prediction types include: normal, fine crackles, coarse crackles, rhonchi, whiezes, stridor, crepitations, pleural friction rub, bronchial breath sounds, cavernous breath sounds, amphoric breath sounds, and cogwheel breath sounds. The 8 types of prediction probabilities p 3(c) The eight corresponding prediction types include: left heart failure syndrome, right heart failure syndrome, biventricular heart failure syndrome, acute exacerbation of chronic obstructive pulmonary disease, community-acquired pneumonia, pulmonary embolism syndrome, pericardial disease syndrome, and valvular heart disease syndrome. Each of the original site signals x 0(i) The duration is 8 seconds, and the signal sampling rate is 4000Hz; the signal x for each of the aforementioned locations i The duration is 2 seconds.

[0007] Preferably, the model input terminal of the multi-task prediction model is used to receive the signal set X, the first model output terminal is used to output the prediction vector P1, the second model output terminal is used to output the prediction vector P2, and the third model output terminal is used to output the prediction vector P3. The multi-task prediction model includes a site embedding layer, a time-domain feature encoding layer, a frequency-domain feature encoding layer, a time-frequency domain fusion layer, a graph embedding layer, a local organ graph attention layer, a cross-organ graph attention layer, a global context enhancement layer, a cardiac abnormality prediction head, a lung abnormality prediction head, and a comprehensive abnormality prediction head. The output of the site embedding layer is connected to the first input of the time-frequency domain fusion layer and the first input of the graph embedding layer, respectively; the inputs of the time-domain feature coding layer and the frequency-domain feature coding layer are both connected to the model input; the outputs of the time-domain feature coding layer and the frequency-domain feature coding layer are connected to the second and third inputs of the time-frequency domain fusion layer, respectively; the output of the time-frequency domain fusion layer is connected to the second input of the graph embedding layer; the output of the graph embedding layer is connected to the input of the local organ graph attention layer; the output of the local organ graph attention layer is connected to the input of the cross-organ graph attention layer; the output of the cross-organ graph attention layer is connected to the input of the global context enhancement layer; the output of the global context enhancement layer is connected to the inputs of the heart abnormality prediction head, the lung abnormality prediction head, and the comprehensive abnormality prediction head, respectively; the outputs of the heart abnormality prediction head, the lung abnormality prediction head, and the comprehensive abnormality prediction head are connected to the corresponding first model output, second model output, and third model output, respectively. The site embedding layer is used to set a set of fixed organ-specific hot-spot (SBS) encoding vectors, anatomical location region-specific hot-spot (SBS) encoding vectors, and left and right lateral SBS encoding vectors for each of the 10 auscultation sites corresponding to the signal set X; and the corresponding site encoding vector is composed of the organ-specific hot-spot (SBS) encoding vector, the anatomical location region-specific hot-spot (SBS) encoding vector, and the left and right lateral SBS encoding vectors; and the corresponding embedding vector e is obtained by embedding feature mapping of the site encoding vector based on the internal MLP model. i ; and the resulting 10 embedding vectors e i The corresponding embedding vector E is sent to the graph embedding layer; The organ unique thermal encoding vector is used to uniquely encode whether the organ type of each auscultation site is the heart or the lung. Each organ unique thermal encoding vector consists of two corresponding unique thermal codes: a heart unique thermal code and a lung unique thermal code, with each unique thermal code having a value of 1 or 0. Each auscultation site has exactly one unique thermal code with a value of 1 in its corresponding organ unique thermal encoding vector. The anatomical location region unique thermal encoding vector is used to uniquely encode the anatomical location region where each auscultation site is located. Each anatomical location region unique thermal encoding vector consists of five corresponding unique thermal codes: the precordial region unique thermal code, the base of the heart unique thermal code, and so on. The unique thermal codes for the upper lobe, middle lobe, and lower lobe are 1 or 0. In the unique thermal code vectors for each auscultation site corresponding to the anatomical location, there is exactly one unique thermal code with a value of 1. The left and right lateral unique thermal code vectors are used to perform unique thermal coding on the left and right lateral sides of the chest where each auscultation site is located. Each left and right lateral unique thermal code vector consists of two corresponding unique thermal codes: the left lateral unique thermal code and the right lateral unique thermal code, with values ​​of 1 or 0. In the left and right lateral unique thermal code vectors for each auscultation site, there is exactly one unique thermal code with a value of 1. The temporal feature encoding layer is composed of a first convolutional network and a first pooling layer connected in sequence; the first convolutional network is composed of multiple one-dimensional convolutional modules connected in sequence; each one-dimensional convolutional module is composed of a set of corresponding one-dimensional convolutional layers, BN normalization layers and ReLU activation layers connected in sequence. The temporal feature coding layer is used to process the signals x at each of the locations of the signal set X through the first convolutional network. i Temporal feature extraction is performed to obtain the corresponding temporal feature vector; and the first pooling layer is used to perform global average pooling on each temporal feature vector to obtain the corresponding feature vector h. T(i) ; and the resulting 10 feature vectors h T(i) Form the corresponding eigenvector H T Send to the time-frequency domain fusion layer; The frequency domain feature coding layer is composed of a Mel spectrogram processing layer, a second convolutional network, and a second pooling layer connected in sequence; the second convolutional network is composed of multiple two-dimensional convolutional modules connected in sequence; each two-dimensional convolutional module is composed of a set of corresponding two-dimensional convolutional layers, BN normalization layers, and ReLU activation layers connected in sequence. The frequency domain feature coding layer is used by the Mel spectrogram processing layer to process the signals x at each of the locations of the signal set X. i Generate the corresponding Mel spectrogram; and perform frequency domain feature extraction on each Mel spectrogram through the second convolutional network to obtain the corresponding frequency domain feature vector; and perform global average pooling on each frequency domain feature vector through the second pooling layer to obtain the corresponding feature vector h.F(i) ; and the resulting 10 feature vectors h F(i) Form the corresponding eigenvector H F Send to the time-frequency domain fusion layer; The Mel spectrogram processing layer generates signals x for each of the aforementioned locations. i When processing the corresponding Mel spectrum, it is necessary to base it on the current location signal x. i The corresponding organ type dynamically adjusts the adaptive frequency range of the Mel filter; if the site signal x i If the corresponding organ is the heart, then the adaptive frequency range should adopt a preset frequency range [f]. 1,min ,f 1,max If the location signal x i If the corresponding organ is the lungs, then the adaptive frequency range should be a preset frequency range [f]. 2,min ,f 2,max ];f 1,min f 1,max f is the preset minimum and maximum heart sound Mel filter frequency. 2,min f 2,max The preset minimum and maximum lung sound Mel filter frequencies; f 1,min <f 1,max f 2,min <f 2,max f 1,max <f 2,max ; The time-frequency domain fusion layer is composed of a projection layer, a gated weighted fusion layer, a BN normalization layer, and a ReLU activation layer connected sequentially. The time-frequency domain fusion layer is used by the projection layer to process the feature vector H based on two built-in MLP models. T and the feature vector H F Perform feature projections separately to obtain two projection vectors with the same feature shape. and projection vector The gated weighted fusion layer then modulates the projection vector according to the embedding vector E. and the projection vector Gated weighted fusion is performed to obtain the corresponding fusion projection vector. The fused projection vector is then normalized by the BN normalization layer. Batch normalization is performed to obtain the corresponding normalized vector; then, the ReLU activation layer activates the current normalized vector, and the resulting activation vector is used as the corresponding feature vector H. TF Send to the graph embedding layer; Wherein, the projection vector The projection vector and the fused projection vector Each includes 10 corresponding sub-vectors , , The fused projection vector Each subvector The gating weighted fusion mechanism is as follows: , ; Sigmoid() is the Sigmoid activation function. The i-th gating coefficient generated by the gated weighted fusion layer. , The gating weight matrix and gating bias vector of the gated weighted fusion layer are used. The feature vector H TF Includes 10 feature vectors h TF(i) The feature vector h TF(i) With the embedding vector e i One-to-one correspondence; The graph embedding layer is used to concatenate the feature vector H according to the feature channel concatenation method. TF Each of the aforementioned feature vectors h TF(i) The corresponding embedding vector e i Perform vector concatenation to obtain the corresponding concatenated vector, and use each concatenated vector as the initial node vector h. 0(i) ; and the resulting 10 node vectors h 0(i) The initial node set V0 is formed; and each of the 10 nodes is connected pairwise to generate 10 × (10-1) edges g. i,j And from the obtained 90 edges g i,j Form the corresponding edge set G; and for each edge g i,j Set the four edge type codes to form the corresponding type r. i,j ; and from the obtained 90 types r i,j The corresponding relation set R is formed; and the corresponding graph M0 is formed by the node set V0 and the edge set G; and the graph M0 and the relation set R are sent to the local organ graph attention layer; Where 1 ≤ index j ≤ 10, j ≠ i; the type r i,j It includes four types of edge type encoding, namely, the encoding of relationships between the same organ and its location. Cross-organ-site relationship coding Coding of the relationship between the left and right symmetrical parts of the same organ 1. Code of proximity of anatomical location ; The type r i,jThe encoding rules for the four edge types are as follows: If the type r i,j If the two auscultation sites corresponding to the i-th and j-th nodes both belong to the heart or lung auscultation sites, then... Conversely, if the two auscultation sites corresponding to nodes i and j belong to the heart and lung auscultation sites respectively, then ; If the type r i,j If the two auscultation sites corresponding to the i-th and j-th nodes belong to the heart and lung auscultation sites respectively, and a functional connection between these two sites is confirmed according to prior hemodynamic analysis, then... Conversely, if the two auscultation sites corresponding to nodes i and j both belong to the heart or lung auscultation sites, or if the two auscultation sites belong to the heart and lung auscultation sites respectively but the prior hemodynamic analysis confirms that there is no functional connection between the two sites, then... ; If the type r i,j If the two auscultation sites corresponding to the i-th and j-th nodes both belong to the heart or lung auscultation sites and have a left-right symmetrical relationship, then... Conversely, if the two auscultation sites corresponding to nodes i and j belong to the heart and lung auscultation sites respectively, or if the two auscultation sites both belong to the heart or lung auscultation sites but do not have a left-right symmetry relationship, then ; If the type r i,j If the two auscultation sites corresponding to the i-th and j-th nodes satisfy the preset nearest neighbor relationship condition in terms of physical anatomical location, then... Conversely, if the two auscultation sites corresponding to nodes i and j do not satisfy the nearest neighbor condition in terms of physical anatomical location, then ; The local organ graph attention layer is implemented based on a first GAT network; the first GAT network is composed of one or more GAT modules connected sequentially. The local organ graph attention layer is used to encode the relationships between the same organ locations in the graph M0. Nodes and edges with a value of 1 are extracted as subgraphs. The remaining nodes and edges form a subgraph. ; and through the first GAT network on the subgraph Perform node feature encoding to obtain a new subgraph ; and for the subgraph and the subgraph The corresponding graph M1 is obtained by merging the graphs; and the graph M1 and the relation set R are sent to the cross-organ graph attention layer. The graph M1 includes a node set V1 and an edge set G; the node set V1 includes 10 node vectors h. 1(i) The node set V1 is defined by the subgraph. The covered nodes, and their corresponding node vectors h 1(i) The node vector h corresponding to the current node 0(i) The updated features obtained after encoding via the first GAT network; the node set V1 is represented by the subgraph The covered nodes, and their corresponding node vectors h 1(i) The node vector h corresponding to the graph M0 0(i) Maintain consistency; The cross-organ graph attention layer is implemented based on a second GAT network; the second GAT network is composed of one or more GAT modules connected sequentially. The cross-organ graph attention layer is used to encode the cross-organ site relationships in graph M1. Encoding the proximity of the anatomical location of the site as 1 or the site described above. Nodes and edges with a value of 1 are extracted as subgraphs. The remaining nodes and edges form a subgraph. ; and through the second GAT network on the subgraph Perform node feature encoding to obtain a new subgraph ; and for the subgraph and the subgraph Merge the nodes to obtain the corresponding graph M2; perform a residual connection on the node sets of the graphs M1 and M2 to obtain the corresponding node set V3; and form the corresponding graph M3 from the node set V3 and the edge set G; and send the graph M3 and the relation set R to the global context enhancement layer. Graph M2 includes a node set V2 and an edge set G; the node set V2 includes 10 node vectors h. 2(i) The node set V2 is defined by the subgraph. The covered nodes, and their corresponding node vectors h 2(i) The node vector h corresponding to the current node 1(i) The updated features obtained after encoding via the second GAT network; the node set V2 is represented by the subgraph The covered nodes, and their corresponding node vectors h 2(i) The node vector h corresponding to the node in the figure M1 1(i) Maintain consistency; The node set V3 includes 10 node vectors h. 3(i) h 3(i) =h 1(i) +h 2(i); The global context enhancement layer is used to process the 10 node vectors h of the node set V3. 3(i) Global attention pooling is performed to obtain a corresponding global pooling vector; and the current global pooling vector is concatenated with each of the node vectors h according to the feature channel concatenation method. 1(i) The concatenation is performed to obtain the corresponding node concatenation vector; and based on the built-in MLP model, feature mapping is performed on each of the node concatenation vectors to obtain the corresponding feature vector z. i ; and the resulting 10 feature vectors z i The corresponding feature vector Z is sent to the cardiac abnormality prediction head, the lung abnormality prediction head, and the comprehensive abnormality prediction head; Among them, for the 10 node vectors h 3(i) The global attention pooling mechanism is as follows: ; , These are the global query vector and the global weight matrix of the global context enhancement layer, respectively. For the node vector h 3(i) The corresponding attention weights; For the 10 node vectors h 3(i) The corresponding global pooling vector; The cardiac abnormality prediction head is implemented based on a multi-classification model structure; The cardiac abnormality prediction head is used to select the five feature vectors z from the feature vector Z that correspond to the five cardiac auscultation sites. i Extract them to form the current vector set; and combine each feature vector z in the current vector set. i As the current vector, the current vector is used to perform feature dimensionality reduction through two consecutive fully connected layers to obtain a 1×15 feature vector y1, where 15 is the feature dimension of the feature vector y1; and the corresponding prediction vector p for the said part is calculated by the Softmax function based on the probability distribution of the feature vector y1. 1,k ; and the five predicted vectors p from the obtained locations 1,k The corresponding prediction vector P1 is sent to the output of the first model. The lung abnormality prediction head is implemented based on a multi-classification model structure; The lung abnormality prediction head is used to select the five feature vectors z from the feature vector Z that correspond to the five lung auscultation sites. i Extract them to form the current vector set; and combine each feature vector z in the current vector set. iAs the current vector, the current vector is used to perform feature dimensionality reduction through two consecutive fully connected layers to obtain a 1×12 feature vector y2, where 12 is the feature dimension of the feature vector y2; and the corresponding part prediction vector p is obtained by calculating the probability distribution based on the feature vector y2 using the Softmax function. 2,q ; and the five predicted vectors p from the obtained locations 2,q The corresponding prediction vector P2 is sent to the output of the second model. The comprehensive anomaly prediction head includes one comprehensive feature extraction layer and eight sub-task heads; the comprehensive feature extraction layer is implemented based on an MLP model structure; the eight sub-task heads correspond one-to-one with the eight prediction types corresponding to the prediction vector P3; each of the sub-task heads is implemented based on a binary classification model structure, specifically consisting of three fully connected layers and a Sigmoid function layer connected sequentially. The comprehensive anomaly prediction head is used to obtain the corresponding feature vector Z3 by performing comprehensive feature encoding on the feature vector Z from the comprehensive feature extraction layer; and each of the subtask heads first performs feature dimensionality reduction on the feature vector Z3 through its three fully connected layers to obtain a feature scalar y3, and then performs probability calculation based on the current feature scalar y3 through its internal Sigmoid function layer to obtain the corresponding prediction probability p. 3(c) ; and the obtained 8 predicted probabilities p 3(c) The corresponding prediction vector P3 is then sent to the third model output module.

[0008] Preferably, the step of performing a one-stage training on the heart and lung abnormality prediction ability of the multi-task prediction model based on a preset label dataset, and optimizing all model parameters except for the comprehensive abnormality prediction head parameters during the one-stage training, specifically includes: Step 41: Record the subset of model parameters of the comprehensive anomaly prediction head of the multi-task prediction model as the corresponding comprehensive anomaly prediction head parameters, and take the set of other parameters in the model parameters of the multi-task prediction model other than the comprehensive anomaly prediction head parameters as the current target parameter set. Step 42: Based on a preset first segmentation ratio, randomly divide the label dataset into two subsets, denoted as the first training set and the first evaluation set; and initialize the first counter to 0; Both the first training set and the first evaluation set consist of multiple first data records; the total number of records in the first training set and the first evaluation set is denoted as the corresponding total number N. TR The total number N AV Record the total percentage N TR :N AV The first segmentation ratio is satisfied; Step 43: Take each of the first data records in the first training set as the current record; input the signal set X of the current record into the multi-task prediction model for processing, and compare the prediction vector P1 and prediction vector P2 output by the model with the label vector of the current record. and the label vector Form a corresponding first prediction-label pair; Wherein, the prediction vector P1, the prediction vector P2, and the label vector of each of the first prediction-label pairs and the label vector Recorded as corresponding , , , ; 1 ≤ index u ≤ N TR ;each The predicted location vector p 1,k Record as the corresponding ,each The predicted probability p 1(k,a) Record as the corresponding ;each The predicted location vector p 2,q Record as the corresponding ,each The predicted probability p 2(q,b) Record as the corresponding ;each The part label vector Record as the corresponding ,each The label probability Record as the corresponding ;each The part label vector Record as the corresponding ,each The label probability Record as the corresponding ; Step 44, obtain N TR Substituting the first prediction-label pair into the preset first model loss function L M1 ; Wherein, the first model loss function L M1 for: ; Step 45, based on the preset first model optimizer, move towards making the first model loss function L M1The target parameter set of the multi-task prediction model is modulated once in the direction that reaches the minimum value; and after this round of modulation is completed, the first counter is incremented by 1; The first model optimizer includes the Adam optimizer and the SGD optimizer. Step 46: Identify whether the first counter is greater than the preset first counter threshold; if yes, proceed to step 47; if no, return to step 43 to continue training. Step 47: Take each of the first data records in the first evaluation set as the current record; input the signal set X of the current record into the multi-task prediction model for processing, and compare the prediction vector P1 and prediction vector P2 output by the model with the label vector of the current record. and the label vector Form a corresponding second prediction-label pair; Step 48, based on the obtained N AV The second prediction-label pair is evaluated using F1 scores to obtain the corresponding first F1 score; and it is identified whether the first F1 score is greater than a preset first score threshold; if not, the first counter is set to zero and the process returns to step 43 to continue training; if yes, training is stopped and the end of the first stage of training is confirmed, and the target parameter set of the multi-task prediction model is frozen.

[0009] Preferably, the step of performing two-stage training on the cardiopulmonary comprehensive abnormality prediction ability of the multi-task prediction model based on the labeled dataset, and optimizing only the model's comprehensive abnormality prediction head parameters during the two-stage training, specifically includes: Step 51: Record the subset of model parameters of the comprehensive anomaly prediction head of the multi-task prediction model as the corresponding comprehensive anomaly prediction head parameters of the model. Step 52: Based on the preset second segmentation ratio, randomly segment the label dataset into two subsets, denoted as the corresponding second training set and second evaluation set; and initialize the second counter to 0; Both the second training set and the second evaluation set consist of multiple records of the first data set; the total number of records in the second training set and the second evaluation set is denoted as the corresponding total number N. TR The total number N AV Record the total percentage N TR :N AV Satisfy the second segmentation ratio; Step 53: Take each of the first data records in the second training set as the current record; input the signal set X of the current record into the multi-task prediction model for processing, and compare the prediction vector P3 output by the model with the label vector of the current record. Form a corresponding third prediction-label pair; Wherein, the prediction vector P3 of each of the third prediction-label pairs and the label vector of the current record. Recorded as corresponding , 1 ≤ index g ≤ N TR ;each The 8 predicted probabilities p 3(c) Record as the corresponding ,each 8 label probabilities Record as the corresponding ; Step 54, obtain N TR The third prediction-label pair is substituted into the preset second model loss function L. M2 ; Wherein, the second model loss function L M2 for: ; Step 55, based on the preset second model optimizer, move towards making the second model loss function L M2 The direction that reaches the minimum value is used to perform a round of parameter modulation on the model comprehensive anomaly prediction head parameters of the multi-task prediction model; and after this round of modulation is completed, the second counter is incremented by 1; The second model optimizer includes the Adam optimizer and the SGD optimizer; Step 56: Identify whether the second counter is greater than the preset second counter threshold; if yes, proceed to step 57; if no, return to step 53 to continue training. Step 57: Take each of the first data records in the second evaluation set as the current record; input the signal set X of the current record into the multi-task prediction model for processing, and compare the prediction vector P3 output by the model with the label vector of the current record. Form a corresponding fourth prediction-label pair; Step 58, based on the obtained N AV The fourth prediction-label pair is evaluated for F1 score to obtain the corresponding second F1 score; and it is identified whether the second F1 score is greater than the preset second score threshold; if not, the second counter is set to zero and the process returns to step 53 to continue training; if yes, training is stopped and the end of the second stage training is confirmed.

[0010] Preferably, the preprocessing of the original signal set X0 to obtain the corresponding signal set X specifically includes: Step 61, convert each of the original part signals x of the original signal set X0 into a single signal. 0(i) As the current original signal; Step 62: Calculate the signal-to-noise ratio (SNR) of the current original signal; and determine whether the current SNR is less than a preset SNR threshold; if yes, set the corresponding signal quality state to substandard; if no, set the corresponding signal quality state to compliant. Step 63: When the signal quality status of the current original signal is up to standard, motion artifact point detection is performed on the current original signal, and when motion artifact points are detected, repair is performed using interpolation. The detection rule for motion artifacts is as follows: first calculate the standard deviation σ of the current original signal. signal and with 6×σ signal As the current threshold; if the absolute difference between a certain sampling point on the current original signal and its previous sampling point is greater than the current threshold, then the current sampling point is recorded as a motion artifact point; The rule for repairing motion artifacts is as follows: take the previous and next non-artifact points of any motion artifact as the corresponding start and end reference points, and use linear interpolation to replace the current motion artifact based on the current start and end reference points; Step 64: When the signal quality status of the current original signal meets the standard, extract the corresponding truncated signal by extracting a 2-second segment 1 second before and after the signal center point of the current original signal after completing motion artifact detection and repair. And according to the peak value normalization method, the signal amplitude of the currently captured signal is normalized to the interval [-1, 1] to obtain the corresponding part signal x. i ; The peak normalization method is as follows: , 1 ≤ sampling point index t ≤ total number of sampling points N x N x =2 seconds × 4000 Hz = 8000; The location signal x i The amplitude at the t-th sampling point For the intercepted signal The amplitude at the t-th sampling point For the intercepted signal The largest absolute amplitude of the sampling point, ; Step 65: Identify whether all 10 obtained signal quality states meet the standards; if so, then determine the quality status of the 10 obtained location signals x. iIf the signal set X is not formed, then the corresponding signal set X is set to empty.

[0011] Preferably, the step of generating a corresponding analysis report based on the three prediction vectors and feeding it back to the current user specifically includes: The prediction vector p of each of the predicted parts of the prediction vector P1 is predicted. 1,k The current vector is used as the prediction probability p, which has the largest probability value in the current vector. 1(k,a) The corresponding prediction type is taken as the corresponding first type; and the prediction probability p corresponding to the current first type is set as follows. 1(k,a) As the first confidence level; and the auscultation site name corresponding to the current vector, the first type and the first confidence level form a corresponding first record; and the five first records corresponding to the prediction vector P1 form a corresponding cardiac auscultation sound record table; And predict the vector p of each of the predicted parts of the predicted vector P2. 2,q The current vector is used as the prediction probability p, which has the largest probability value in the current vector. 2(q,b) The corresponding prediction type is taken as the corresponding second type; and the prediction probability p corresponding to the current second type is set as follows. 2(q,b) As a second confidence level; and a corresponding second record is formed by the auscultation site name corresponding to the current vector, the second type, and the second confidence level; and a corresponding lung auscultation sound record table is formed by the 5 second records corresponding to the prediction vector P2; And the predicted probabilities p in the prediction vector P3 that are greater than the preset asymptomatic probability threshold are... 3(c) As a corresponding third confidence level; and the syndrome type corresponding to each of the third confidence levels as the corresponding first syndrome; and each of the first syndromes and its corresponding third confidence level constitutes a corresponding third record; and all the obtained third records constitute a corresponding syndrome record table; and based on preset syndrome screening rules, the existence of mutually exclusive symptoms in the syndrome record table is identified, and when mutually exclusive symptoms are identified, modifications are made based on rule modification specifications; wherein, when the syndrome screening rules are not empty, they consist of one or more screening rules; each screening rule includes mutually exclusive symptom judgment conditions and mutually exclusive symptom modification specifications; And for the five predicted probabilities p in the predicted vector P1 that correspond to the normal values... 1(k,a) The average value is calculated and the result is used as the corresponding probability of normal heart function. And calculate the corresponding probability of cardiac abnormalities. ; and the probability of the heart being normal The system identifies whether the probability of a normal heart is greater than or equal to a preset threshold; if the probability of a normal heart is... If the probability of a heart being normal is greater than or equal to the threshold, then the corresponding heart state is set to normal, and the probability of a heart being normal is set to... As the corresponding confidence level of the heart condition; if the probability of the heart being normal... If the probability is less than the normal heart probability threshold, then the abnormal heart probability is further adjusted. The system identifies whether the probability of a heart abnormality is greater than or equal to a preset threshold; if the probability of a heart abnormality is... If the probability of cardiac abnormality is greater than or equal to the threshold, then the corresponding cardiac state is set as abnormal, and the probability of cardiac abnormality is set... As the corresponding confidence level of the cardiac state; if the probability of cardiac abnormality... If the probability is less than the stated cardiac abnormality threshold, then the corresponding cardiac state is set to uncertain, and the probability of normal cardiac function is set to... and the probability of the aforementioned heart abnormality The minimum value in the range is taken as the corresponding confidence level of the heart state; and the obtained heart state and the confidence level of the heart state constitute the corresponding heart assessment result; And for the five predicted probabilities p in the predicted vector P2 that correspond to the normal values... 2(q,b) The average value is calculated and the result is used as the corresponding probability of normal lung function. And calculate the corresponding probability of lung abnormalities. ; and the normal probability of the lungs The system identifies whether the lung probability is greater than or equal to a preset threshold; if the lung probability is normal... If the probability of normal lung function is greater than or equal to the lung normality threshold, then the corresponding lung state is set to normal, and the lung normality probability is set to... As the corresponding confidence level of lung condition; if the probability of normal lung condition is... If the probability is less than the normal probability threshold for the lungs, then the probability of abnormal lung function is further assessed. The system identifies whether the probability of lung abnormalities is greater than or equal to a preset threshold; if the probability of lung abnormalities is greater than or equal to a preset threshold, the system identifies the abnormality. If the probability of lung abnormality is greater than or equal to the lung abnormality threshold, then the corresponding lung state is set as abnormal, and the probability of lung abnormality is set... As the corresponding confidence level of the lung condition; if the probability of lung abnormality If the probability of lung abnormality is less than the lung abnormality probability threshold, then the corresponding lung state is set to uncertain, and the probability of normal lung condition is set to... and the probability of lung abnormalities The minimum value in the range is taken as the corresponding confidence level of the lung condition; and the obtained lung condition and the confidence level of the lung condition constitute the corresponding lung assessment result; The obtained cardiac auscultation record, lung auscultation record, syndrome record, cardiac assessment results, and lung assessment results form the corresponding analysis report, which is then fed back to the current user.

[0012] A second aspect of the present invention provides an apparatus for implementing the processing method for multi-task prediction based on auscultation sound signals from multiple sites of the heart and lungs as described in the first aspect above. The apparatus includes: a model building module, a first-stage training module, a second-stage training module, and a model application module. The model building module constructs a corresponding multi-task prediction model from a deep learning model used for multi-task prediction based on auscultation sounds from multiple sites of the heart and lungs. The multi-task prediction model predicts multiple types of cardiac abnormalities, multiple types of pulmonary abnormalities, and multiple types of combined cardiopulmonary abnormalities based on the input signal set X, and outputs corresponding prediction vectors P1, P2, and P3. The signal set X is a set of auscultation sounds from multiple sites of the heart and lungs, including signals from 10 sites x. i Signal x of each of the aforementioned locations i The signal amplitude is normalized to the interval [-1, 1], where 1 ≤ index i ≤ 10; the prediction vector P1 is the cardiac abnormality prediction vector, which is composed of 5 site prediction vectors p 1,k Composition, 1 ≤ index k ≤ 5; the predicted part vector p 1,k The predicted probability p is determined by 15 categories. 1(k,a) Composition, 1 ≤ index a ≤ 15; the prediction vector P2 is the lung abnormality prediction vector, composed of 5 site prediction vectors p 2,q Composition, 1 ≤ index q ≤ 5; the location prediction vector p 2,q The probability p is predicted by 12 categories. 2(q,b) Composition, 1≤index b≤12; the prediction vector P3 is the cardiopulmonary syndrome abnormality prediction vector, composed of 8 types of prediction probabilities p 3(c) Composition, 1 ≤ index c ≤ 8; The first-stage training module is used to perform a first-stage training on the heart and lung abnormality prediction ability of the multi-task prediction model based on a preset label dataset, and to optimize all model parameters except for the comprehensive abnormality prediction head parameters during the first-stage training; the label dataset includes multiple first data records; the first data record includes the signal set X and the label vector. Label vectors and label vector The label vector Includes 5 part label vectors The part label vector Includes 15 label probabilities Of these, only one is 1 and the rest are 0; the label vector Includes 5 part label vectors The part label vector Includes 12 label probabilities Of these, only one is 1 and the rest are 0; the label vector Includes 8 label probabilities The probability of each of the aforementioned labels It can be 1 or 0, where some or all of the labels can be 1 at the same time; The two-stage training module is used to perform a second-stage training on the cardiopulmonary comprehensive abnormality prediction ability of the multi-task prediction model based on the label dataset after the first-stage training, and to optimize only the model's comprehensive abnormality prediction head parameters during the second-stage training. The model application module is used to receive the original signal set X0 input by the user after the two-stage training; preprocess the original signal set X0 to obtain the corresponding signal set X; and input the signal set X into the multi-task prediction model when the signal set X is not empty to obtain the corresponding prediction vectors P1, P2, and P3; and perform comprehensive analysis based on the three prediction vectors to obtain a corresponding analysis report and provide feedback to the current user; the original signal set X0 includes 10 original part signals x. 0(i) .

[0013] A third aspect of the present invention provides an electronic device, including: a memory, a processor, and a transceiver; The processor is used to couple with the memory, read and execute instructions in the memory to implement the steps of the method described in the first aspect above; The transceiver is coupled to the processor, and the processor controls the transceiver to send and receive messages.

[0014] A fourth aspect of the present invention provides a computer-readable storage medium storing computer instructions that, when executed by a computer, cause the computer to perform the instructions described in the first aspect.

[0015] This invention provides a method, apparatus, electronic device, and computer-readable storage medium for multi-task prediction based on auscultation sounds from multiple sites of the heart and lungs. As described above, this invention first constructs an end-to-end multi-task prediction model capable of predicting multiple types of cardiac abnormalities, multiple types of pulmonary abnormalities, and multiple types of combined cardiopulmonary abnormalities based on the input signal set X. Then, the model is trained using a two-stage training mechanism: 1) Stage one trains the model's ability to predict cardiac and pulmonary abnormalities, optimizing all model parameters except for the combined abnormality prediction head parameter; 2) Stage two trains the model's ability to predict combined cardiopulmonary abnormalities, fine-tuning the combined abnormality prediction head parameter. After model training, the user-input raw signal set X0 is preprocessed to obtain signal set X, which is then input into the multi-task prediction model to obtain three corresponding prediction vectors. Finally, a comprehensive analysis is performed based on these three prediction vectors to generate an analysis report, which is then fed back to the current user. This invention can sense structural relationships between multiple sites and simultaneously predict 15 types of abnormal heart sounds, 12 types of abnormal lung sounds, and 8 types of cardiopulmonary syndromes. This invention overcomes the shortcomings of existing solutions and improves the functional diversity of auscultation aids. Attached Figure Description

[0016] Figure 1 This is a schematic diagram of a multi-task prediction processing method based on auscultation sound signals from multiple sites of the heart and lungs, provided in Embodiment 1 of the present invention. Figure 2 This is a schematic diagram of the structure of the multi-task prediction model provided in Embodiment 1 of the present invention; Figure 3 This is a module structure diagram of a processing device for multi-task prediction based on auscultation sound signals from multiple sites of the heart and lungs, provided in Embodiment 2 of the present invention. Figure 4 This is a schematic diagram of the structure of an electronic device provided in Embodiment 3 of the present invention. Detailed Implementation

[0017] To make the objectives, technical solutions, and advantages of this invention clearer, the invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are merely some embodiments of this invention, and not all embodiments. Based on the embodiments of this invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this invention.

[0018] Embodiment 1 of the present invention provides a processing method for multi-task prediction based on auscultation sound signals from multiple sites of the heart and lungs, such as... Figure 1The diagram illustrates a multi-task prediction method based on auscultation sounds from multiple sites of the heart and lungs, as provided in Embodiment 1 of the present invention. This method mainly includes the following steps: Step 1: Construct the deep learning model for multi-task prediction based on auscultation sounds from multiple sites of the heart and lungs to obtain the corresponding multi-task prediction model.

[0019] Here, the multi-task prediction model of this invention predicts multiple types of cardiac abnormalities, multiple types of pulmonary abnormalities, and multiple types of cardiopulmonary syndrome based on the signal set X input to the model, and outputs corresponding prediction vectors P1, P2, and P3.

[0020] The signal set X in this embodiment of the invention is a multi-site auscultation sound signal set for the heart and lungs, including signals from 10 sites x. i Signals x in various parts i The signal amplitude is normalized to the interval [-1, 1], where 1 ≤ index i ≤ 10. It should be noted that the signal x at each location in this embodiment of the invention... i The duration is 2 seconds, the signal sampling frequency is 4000Hz, and the total number of sampling points is 8000.

[0021] In this embodiment of the invention, the signal set X corresponds to 10 locations, including 5 cardiac auscultation locations and 5 lung auscultation locations. The 5 cardiac auscultation locations include the apex (APEX), aortic valve area (AORTIC), pulmonary valve area (PULMONIC), left sternal border (LSB), and right sternal border (RSB). The 5 lung auscultation locations include the right upper lobe (RUL_A), right middle lobe (RML_A), right lower lobe (RLL_A), left upper lobe (LUL_A), and left lower lobe (LLL_A).

[0022] In this embodiment of the invention, the prediction vector P1 is a cardiac abnormality prediction vector, which is composed of prediction vectors p1 for 5 different locations. 1,k Composition, 1 ≤ index k ≤ 5. Location prediction vector p 1,k The predicted probability p is determined by 15 categories. 1(k,a) Composition, 1 ≤ index a ≤ 15.

[0023] Example 15 of the present invention predicts the probability p. 1(k,a) The corresponding 15 prediction types include: Normal, Diastolic rumbling murmur (Diastolic_MS), Diastolic rumbling murmur (Diastolic_TS), Diastolic sighing murmur (Diastolic_AR), Systolic ejection murmur (Systolic_AS), Systolic ejection murmur (Systolic_PS), Holosystolic blowing murmur (Systolic_MR), Holosystolic blowing murmur (Systolic_TR), Continuous machine murmur (Continuous_Machinery), S3 gallop rhythm (Gallop_S3), S4 gallop rhythm (Gallop_S4), Opening valve sound (OS), Pericardial friction rub (Pericardial_Friction), Systolic click (Ejection_Click), Midsystolic click (Midsystolic_Click).

[0024] In this embodiment of the invention, the prediction vector P2 is a lung abnormality prediction vector, which is composed of prediction vectors p for 5 different locations. 2,q Composition, 1 ≤ index q ≤ 5. Location prediction vector p 2,q The probability p is predicted by 12 categories. 2(q,b) Composition, 1 ≤ index b ≤ 12.

[0025] In the 12th embodiment of the present invention, the prediction probability p is... 2(q,b) The corresponding 12 prediction types include: Normal, Fine Crackles, Coarse Crackles, Rhonchi, Wheezes, Stridor, Crepitations, Pleural Friction Rub, Bronchial Breathing, Cavernous Breathing, Amphoric Breathing, Cogwheel Breathing.

[0026] In this embodiment of the invention, the prediction vector P3 is a prediction vector for cardiopulmonary syndrome abnormalities, composed of 8 categories of prediction probabilities p 3(c) Composition, 1 ≤ index c ≤ 8.

[0027] The present invention provides an example of 8 types of prediction probabilities p. 3(c) The corresponding 8 prediction types include: Left heart failure syndrome, right heart failure syndrome, biventricular heart failure syndrome, acute exacerbation of chronic obstructive pulmonary disease, community-acquired pneumonia, pulmonary embolism syndrome, pericardial disease syndrome, and valvular heart disease syndrome.

[0028] like Figure 2As shown in the schematic diagram of the multi-task prediction model provided in Embodiment 1 of the present invention, the model input terminal of the multi-task prediction model is used to receive the signal set X, the first model output terminal is used to output the prediction vector P1, the second model output terminal is used to output the prediction vector P2, and the third model output terminal is used to output the prediction vector P3.

[0029] like Figure 2 As shown, the model components of the multi-task prediction model include: a site embedding layer, a time-domain feature encoding layer, a frequency-domain feature encoding layer, a time-frequency domain fusion layer, a graph embedding layer, a local organ graph attention layer, a cross-organ graph attention layer, a global context enhancement layer, a cardiac abnormality prediction head, a lung abnormality prediction head, and a comprehensive abnormality prediction head.

[0030] like Figure 2 As shown, the connection relationships of the model components in the multi-task prediction model are as follows: the output of the site embedding layer is connected to the first input of the time-frequency domain fusion layer and the first input of the graph embedding layer, respectively; the inputs of the time-domain feature coding layer and the frequency-domain feature coding layer are both connected to the model input; the outputs of the time-domain feature coding layer and the frequency-domain feature coding layer are connected to the second and third inputs of the time-frequency domain fusion layer, respectively; the output of the time-frequency domain fusion layer is connected to the second input of the graph embedding layer; the output of the graph embedding layer is connected to the input of the local organ graph attention layer; the output of the local organ graph attention layer is connected to the input of the cross-organ graph attention layer; the output of the cross-organ graph attention layer is connected to the input of the global context enhancement layer; the output of the global context enhancement layer is connected to the inputs of the heart abnormality prediction head, the lung abnormality prediction head, and the comprehensive abnormality prediction head, respectively; the outputs of the heart abnormality prediction head, the lung abnormality prediction head, and the comprehensive abnormality prediction head are connected to the corresponding first model output, second model output, and third model output, respectively.

[0031] The model component functions of the multi-task prediction model are shown below.

[0032] 1) Location Embedding Layer: In this embodiment of the invention, the site embedding layer is used to set a set of fixed organ-specific hot-spot (SBS) encoding vectors, anatomical location region-specific hot-spot (SBS) encoding vectors, and left and right lateral SBS encoding vectors for each of the 10 auscultation sites corresponding to the signal set X; and the corresponding site encoding vector is composed of the organ-specific hot-spot (SBS) encoding vectors, anatomical location region-specific hot-spot (SBS) encoding vectors, and left and right lateral SBS encoding vectors for each auscultation site; and the corresponding embedding vector e is obtained by embedding feature mapping of the site encoding vectors based on the internal MLP model. i ; and the resulting 10 embedding vectors e i The corresponding embedding vector E is then sent to the graph embedding layer.

[0033] Here, the organ unique-hot encoding vector in this embodiment of the invention is used to uniquely encode whether the organ type to which each auscultation site belongs is the heart or the lung. The organ unique-hot encoding vector consists of two corresponding unique-hot codes, namely the heart unique-hot code and the lung unique-hot code, and the encoding value of the two unique-hot codes is 1 or 0. In the organ unique-hot encoding vector corresponding to each auscultation site, there is exactly one unique-hot code with a value of 1.

[0034] The anatomical location region unique thermal encoding vector of this invention is used to perform unique thermal encoding on the anatomical location region where each auscultation site is located. The anatomical location region unique thermal encoding vector consists of five corresponding unique thermal codes: precordial region unique thermal code, basal region unique thermal code, upper lobe region unique thermal code, middle lobe region unique thermal code, and lower lobe region unique thermal code. The encoding value of each of the five unique thermal codes is either 1 or 0. In the anatomical location region unique thermal encoding vector corresponding to each auscultation site, there is exactly one unique thermal code with a value of 1.

[0035] The left and right lateral unique-hot encoding vectors of this invention are used to perform unique-hot encoding on the left and right sides of the chest where each auscultation site is located. Each left and right lateral unique-hot encoding vector consists of two corresponding unique-hot codes: a left lateral unique-hot code and a right lateral unique-hot code, with each unique-hot code having a value of 1 or 0. In each auscultation site, exactly one unique-hot code in the left and right lateral unique-hot encoding vectors is 1.

[0036] 2) Temporal feature coding layer: In this embodiment of the invention, the temporal feature encoding layer is formed by sequentially connecting a first convolutional network and a first pooling layer; the first convolutional network is formed by sequentially connecting multiple one-dimensional convolutional modules; each one-dimensional convolutional module is formed by sequentially connecting a set of corresponding one-dimensional convolutional layers, BN normalization layers and ReLU activation layers.

[0037] The temporal feature coding layer is used to encode signals x in different parts of the signal set X through the first convolutional network. i Temporal feature extraction is performed to obtain the corresponding temporal feature vectors; and the first pooling layer is used to perform global average pooling on each temporal feature vector to obtain the corresponding feature vector h. T(i) ; and the resulting 10 eigenvectors h T(i) Form the corresponding eigenvector H T Send to the time-frequency domain fusion layer.

[0038] 3) Frequency domain feature coding layer: In this embodiment of the invention, the frequency domain feature coding layer is composed of a Mel spectrogram processing layer, a second convolutional network, and a second pooling layer connected in sequence; the second convolutional network is composed of multiple two-dimensional convolutional modules connected in sequence; each two-dimensional convolutional module is composed of a set of corresponding two-dimensional convolutional layers, BN normalization layers, and ReLU activation layers connected in sequence.

[0039] The frequency domain feature coding layer is used by the Mel spectrogram processing layer to process the signal x from various parts of the signal set X. i Generate the corresponding Mel spectrograms; then, use a second convolutional network to extract frequency domain features from each Mel spectrogram to obtain the corresponding frequency domain feature vectors; finally, use a second pooling layer to perform global average pooling on each frequency domain feature vector to obtain the corresponding feature vector h. F(i) ; and the resulting 10 eigenvectors h F(i) Form the corresponding eigenvector H F Send to the time-frequency domain fusion layer.

[0040] Mel spectrogram processing layer generates signals x at various locations. i The corresponding Mel spectrogram is generated using the conventional process of framing, windowing, Fast Fourier Transform, and Mel filtering. However, this process may cause issues with the generation of signal x at various points in the spectrum. i The corresponding Mel spectrum is based on the signal x at the current location. i The appropriate frequency range of the Mel filter is dynamically adjusted according to the corresponding organ type, specifically: if the site signal x i If the corresponding organ is the heart, then the appropriate frequency range should be the preset frequency range [f]. 1,min ,f 1,max If the location signal x i If the corresponding organ is the lungs, then the appropriate frequency range should be the preset frequency range [f]. 2,min ,f 2,max ]. Where, f 1,min f 1,max f is the preset minimum and maximum heart sound Mel filter frequency. 2,min f 2,max The preset minimum and maximum lung sound Mel filter frequencies; f 1,min <f 1,max f 2,min <f 2,max f 1,max <f 2,max .

[0041] 4) Time-frequency domain fusion layer: The time-frequency domain fusion layer in this embodiment of the invention is composed of a projection layer, a gated weighted fusion layer, a BN normalization layer, and a ReLU activation layer connected in sequence.

[0042] The time-frequency domain fusion layer is used by the projection layer to process the feature vector H based on two built-in MLP models. T and eigenvector H F Perform feature projections separately to obtain two projection vectors with the same feature shape. and projection vector The gated weighted fusion layer then applies the projection vector based on the embedding vector E. and projection vector Gated weighted fusion is performed to obtain the corresponding fusion projection vector. The fused projection vector is then normalized by the BN normalization layer. Batch normalization is performed to obtain the corresponding normalized vector; then, the ReLU activation layer activates the current normalized vector, and the resulting activation vector is used as the corresponding feature vector H. TF Send to the graph embedding layer.

[0043] Here, the projection vector of the embodiment of the present invention Projection vector and fused projection vector Each includes 10 corresponding sub-vectors , , .

[0044] fused projection vector Each subvector The gating weighted fusion mechanism is as follows: , .

[0045] Where Sigmoid() is the Sigmoid activation function. The i-th gating coefficient generated for the gated weighted fusion layer. , This refers to the gate weight matrix and gate bias vector of the gated weighted fusion layer.

[0046] Feature vector H in this embodiment of the invention TF Includes 10 feature vectors h TF(i) ; Eigenvector h TF(i) With embedding vector e i One-to-one correspondence.

[0047] 5) Graph embedding layer: The graph embedding layer is used to concatenate the feature vector H according to the feature channel concatenation method. TF Each eigenvector h TF(i) Its corresponding embedding vector e i Perform vector concatenation to obtain the corresponding concatenated vector, and use each concatenated vector as the initial node vector h. 0(i) ; and the resulting 10 node vectors h 0(i) The initial node set V0 is formed; and each of the 10 nodes is connected pairwise to generate 10 × (10-1) edges g. i,j And from the obtained 90 edges g i,j Form the corresponding edge set G; and for each edge g i,jSet the four edge type codes to form the corresponding type r. i,j ; and from the obtained 90 types r i,j The corresponding relation set R is formed; and the corresponding graph M0 is formed by the node set V0 and the edge set G; and the graph M0 and relation set R are sent to the local organ graph attention layer.

[0048] Where 1 ≤ index j ≤ 10 and j ≠ i.

[0049] Type r of the embodiments of the present invention i,j It includes four types of edge type encoding, namely, the encoding of relationships between the same organ and its location. Cross-organ-site relationship coding Coding of the relationship between the left and right symmetrical parts of the same organ 1. Code of proximity of anatomical location .

[0050] This invention embodiment type r i,j The encoding rules for the four edge types are as follows: a. If type r i,j If the two auscultation sites corresponding to the i-th and j-th nodes both belong to the heart or lung auscultation sites, then... Conversely, if the two auscultation sites corresponding to nodes i and j belong to the heart and lung auscultation sites respectively, then .

[0051] b. If type r i,j If the two auscultation sites corresponding to the i-th and j-th nodes belong to the heart and lung auscultation sites respectively, and a functional connection between these two sites is confirmed according to prior hemodynamic analysis, then... Conversely, if the two auscultation sites corresponding to nodes i and j both belong to the heart or lung auscultation sites, or if the two auscultation sites belong to the heart and lung auscultation sites respectively but the prior hemodynamic analysis confirms that there is no functional connection between the two sites, then... .

[0052] Here, the prior hemodynamic analysis conclusion of this embodiment of the invention is a set of pre-set node functional connection relationship records, which describes whether there are functional connection relationships between the 10 cardiopulmonary nodes.

[0053] c. If type r i,j If the two auscultation sites corresponding to the i-th and j-th nodes both belong to the heart or lung auscultation sites and have a left-right symmetrical relationship, then... Conversely, if the two auscultation sites corresponding to nodes i and j belong to the heart and lung auscultation sites respectively, or if the two auscultation sites both belong to the heart or lung auscultation sites but do not have a left-right symmetry relationship, then .

[0054] d. If type r i,j If the two auscultation sites corresponding to the i-th and j-th nodes satisfy the preset nearest neighbor relationship condition in terms of physical anatomical location, then... Conversely, if the two auscultation sites corresponding to nodes i and j do not satisfy the nearest neighbor condition in terms of physical anatomical location, then .

[0055] Here, the preset neighbor relationship condition in this embodiment of the invention is a set of pre-set node neighbor relationship records. This set of records describes the neighbor node network of each of the 10 cardiopulmonary nodes. Each neighbor node network contains one or more other nodes when it is not empty.

[0056] 6) Local organ map attention layer: The local organ graph attention layer in this embodiment of the invention is implemented based on a first graph attention (GAT) network; the first GAT network is composed of one or more GAT modules connected sequentially.

[0057] The local organ graph attention layer is used to encode the relationships between organ locations in graph M0. Nodes and edges with a value of 1 are extracted as subgraphs. The remaining nodes and edges form a subgraph. ; and through the first GAT network to pair the subgraph Perform node feature encoding to obtain a new subgraph ; and for subgraphs Hezi Diagram The corresponding graph M1 is obtained by merging the graphs; and graph M1 and relation set R are sent to the cross-organ graph attention layer.

[0058] Here, the graph M1 in this embodiment of the invention includes a node set V1 and an edge set G.

[0059] Node set V1 includes 10 node vectors h 1(i) .

[0060] It should be noted that the subgraph in node set V1 The covered nodes, and their corresponding node vectors h 1(i) h is the node vector corresponding to the current node. 0(i) Updated features obtained after encoding via the first GAT network; quilt graph in node set V1 The covered nodes, and their corresponding node vectors h 1(i) The node vector h corresponding to the graph M0 0(i) Maintain consistency.

[0061] 7) Cross-organ graph attention layer: The cross-organ graph attention layer in this embodiment of the invention is implemented based on a second GAT network; the second GAT network is composed of one or more GAT modules connected sequentially.

[0062] The cross-organ graph attention layer is used to encode cross-organ site relationships in graph M1. Encoding the proximity of anatomical locations or sites (e.g., 1 or 2). Nodes and edges with a value of 1 are extracted as subgraphs. The remaining nodes and edges form a subgraph. ; and through the second GAT network to the subgraph Perform node feature encoding to obtain a new subgraph ; and for subgraphs Hezi Diagram Merge the nodes to obtain the corresponding graph M2; perform a residual connection on the node sets of graphs M1 and M2 to obtain the corresponding node set V3; and form the corresponding graph M3 from the node set V3 and the edge set G; and send the graph M3 and the relation set R to the global context enhancement layer.

[0063] Here, the graph M2 in this embodiment of the invention includes a node set V2 and an edge set G.

[0064] Node set V2 includes 10 node vectors h 2(i) .

[0065] It should be noted that the subgraph in node set V2 The covered nodes, and their corresponding node vectors h 2(i) h is the node vector corresponding to the current node. 1(i) Updated features obtained after encoding via the second GAT network; quilt graph in node set V2 The covered nodes, and their corresponding node vectors h 2(i) The node vector h corresponding to Figure M1 1(i) Maintain consistency.

[0066] The node set V3 in this embodiment of the invention includes 10 node vectors h. 3(i) h 3(i) =h 1(i) +h 2(i) .

[0067] 8) Global Context Enhancement Layer: The global context enhancement layer in this embodiment of the invention is used to enhance the 10 node vectors h of node set V3. 3(i) Perform global attention pooling to obtain a corresponding global pooling vector; and then concatenate the current global pooling vector with the vectors h of each node according to the feature channel concatenation method. 1(i)The concatenation is performed to obtain the corresponding node concatenation vector; and based on the built-in MLP model, feature mapping is performed on each node concatenation vector to obtain the corresponding feature vector z. i And from the obtained 10 eigenvectors z i The corresponding feature vector Z is sent to the cardiac abnormality prediction head, the lung abnormality prediction head, and the comprehensive abnormality prediction head.

[0068] Here, in this embodiment of the invention, the 10 node vectors h 3(i) The global attention pooling mechanism is as follows: .

[0069] in, , These are the global query vector and global weight matrix of the global context enhancement layer, respectively; For node vector h 3(i) The corresponding attention weights; h is a vector of 10 nodes 3(i) The corresponding global pooling vector.

[0070] 9) Cardiac Abnormality Prediction Head: The cardiac abnormality prediction head of this invention is implemented based on a multi-classification model structure.

[0071] The cardiac abnormality prediction head is used to extract five feature vectors z from feature vector Z that correspond to five cardiac auscultation sites. i Extract them to form the current vector set; and combine each feature vector z of the current vector set. i The current vector is used as the feature vector; and the current vector is subjected to feature dimensionality reduction through two built-in consecutive fully connected layers to obtain a feature vector y1 of shape 1×15, where 15 is the feature dimension of feature vector y1; and the corresponding part prediction vector p is obtained by calculating the probability distribution based on feature vector y1 using the Softmax function. 1,k ; and the prediction vectors p obtained from the five parts 1,k The corresponding prediction vector P1 is then sent to the output of the first model.

[0072] 10) Predicting Lung Abnormalities: The lung abnormality prediction head of this invention is implemented based on a multi-classification model structure.

[0073] The lung abnormality prediction head is used to extract five feature vectors z from the feature vector Z corresponding to the five lung auscultation sites. i Extract them to form the current vector set; and combine each feature vector z of the current vector set. iAs the current vector, the feature vector Y2 is reduced in dimensionality using two consecutive fully connected layers to obtain a 1×12 feature vector Y2, where 12 is the feature dimension. The corresponding body part prediction vector p is then calculated using the Softmax function based on the probability distribution of the feature vector Y2. 2,q ; and the prediction vectors p obtained from the five parts 2,q The corresponding prediction vector P2 is then sent to the output of the second model.

[0074] 11) Comprehensive Anomaly Prediction Header: The comprehensive anomaly prediction head of this invention includes one comprehensive feature extraction layer and eight sub-task heads; the comprehensive feature extraction layer is implemented based on an MLP model structure; the eight sub-task heads correspond one-to-one with the eight prediction types corresponding to the prediction vector P3; each sub-task head is implemented based on a binary classification model structure, specifically consisting of three fully connected layers and a Sigmoid function layer connected sequentially.

[0075] The comprehensive anomaly prediction head is used to perform comprehensive feature encoding on the feature vector Z by the comprehensive feature extraction layer to obtain the corresponding feature vector Z3. Each subtask head first performs feature dimensionality reduction on the feature vector Z3 through its three fully connected layers to obtain a feature scalar y3, and then uses its internal Sigmoid function layer to calculate the corresponding prediction probability p based on the current feature scalar y3. 3(c) ; and the obtained 8 predicted probabilities p 3(c) The corresponding prediction vector P3 is then sent to the third model output module.

[0076] Step 2: Based on the preset label dataset, perform a one-stage training on the heart and lung abnormality prediction ability of the multi-task prediction model and optimize all model parameters except for the comprehensive abnormality prediction head parameters during the one-stage training.

[0077] Here, the label dataset in this embodiment of the invention is a pre-set dataset. The signal set X of this dataset can be collected from a publicly available electronic auscultation sound database, or it can be obtained by collecting user signals after obtaining user authorization. The annotation information of all label vectors in this dataset can be obtained through expert annotation or other machine annotation methods.

[0078] The label dataset of this invention includes multiple first data records. Each first data record includes a signal set X and a label vector. Label vectors and label vector .

[0079] Tag vector Includes 5 part label vectors Part label vector Includes 15 label probabilities Of these, only one is 1 and the rest are 0.

[0080] Tag vector Includes 5 part label vectors Location label vector Includes 12 label probabilities Of these, only one is 1 and the rest are 0.

[0081] Tag vector Includes 8 label probabilities Probability of each label It can be 1 or 0, where some or all of the labels can be 1 at the same time.

[0082] The current step 2 specifically includes: Step 21: Denote the subset of model parameters of the comprehensive anomaly prediction head of the multi-task prediction model as the corresponding comprehensive anomaly prediction head parameters, and take the set of other parameters in the model parameters of the multi-task prediction model other than the comprehensive anomaly prediction head parameters as the current target parameter set.

[0083] Step 22: Based on the preset first segmentation ratio, randomly divide the label dataset into two sub-datasets, denoted as the first training set and the first evaluation set; and initialize the first counter to 0.

[0084] Here, the first segmentation ratio in this embodiment of the invention is a preset ratio parameter, such as 8:2. Both the first training set and the first evaluation set consist of multiple first data records; the total number of records in the first training set and the first evaluation set are respectively denoted as the corresponding total number N. TR The total number N AV Record the total percentage N TR :N AV It satisfies the first segmentation ratio.

[0085] Step 23: Take each first data record of the first training set as the current record; input the signal set X of the current record into the multi-task prediction model for processing, and compare the prediction vector P1 and prediction vector P2 output by the model with the label vector of the current record. and label vector Form a corresponding first prediction-label pair.

[0086] Here, the prediction vector P1, prediction vector P2, and label vector of each first prediction-label pair in the embodiments of the present invention and label vector Recorded as corresponding , , , ; 1 ≤ index u ≤ N TR .

[0087] each The part prediction vector p 1,k Record as the corresponding ,each The predicted probability p 1(k,a) Record as the corresponding .

[0088] each The part prediction vector p 2,q Record as the corresponding ,each The predicted probability p 2(q,b) Record as the corresponding .

[0089] each Part label vector Record as the corresponding ,each Tag probability Record as the corresponding .

[0090] each Part label vector Record as the corresponding ,each Tag probability Record as the corresponding .

[0091] Step 24, obtain N TR Each first prediction-label pair is substituted into the preset first model loss function L. M1 .

[0092] Here, the first model loss function L in this embodiment of the invention M1 for: .

[0093] Step 25, based on the preset first model optimizer, move towards making the first model loss function L M1 The direction that reaches the minimum value performs a round of parameter modulation on the target parameter set of the multi-task prediction model; and after this round of modulation, the first counter is incremented by 1.

[0094] Here, the first model optimizer in this embodiment of the invention includes the Adam optimizer and the SGD optimizer.

[0095] Step 26: Identify whether the first counter is greater than the preset first counter threshold; if yes, proceed to step 27; if no, return to step 23 to continue training.

[0096] Here, the first counter threshold in this embodiment of the invention is a pre-set positive integer.

[0097] Step 27: Take each first data record of the first evaluation set as the current record; input the signal set X of the current record into the multi-task prediction model for processing, and compare the prediction vector P1 and prediction vector P2 output by the model with the label vector of the current record. and label vector This forms a corresponding second prediction-label pair.

[0098] Step 28, based on the obtained N AV The first F1 score is obtained by evaluating the F1 score of each second prediction-label pair; and it is identified whether the first F1 score is greater than the preset first score threshold; if not, the first counter is set to zero and the process returns to step 23 to continue training; if yes, training is stopped and the end of the first stage of training is confirmed, and the target parameter set of the multi-task prediction model is frozen.

[0099] Here, the first score threshold in this embodiment of the invention is a pre-set threshold score.

[0100] Step 3: After the first stage of training is completed, the cardiopulmonary comprehensive abnormality prediction ability of the multi-task prediction model is trained in the second stage based on the label dataset, and only the comprehensive abnormality prediction head parameters of the model are optimized in the second stage of training.

[0101] Specifically, it includes: Step 31: Denote the subset of model parameters of the comprehensive anomaly prediction head of the multi-task prediction model as the corresponding comprehensive anomaly prediction head parameters.

[0102] Step 32: Based on the preset second segmentation ratio, the label dataset is randomly divided into two subsets, which are denoted as the corresponding second training set and second evaluation set; and the second counter is initialized to 0.

[0103] Here, the second segmentation ratio in this embodiment of the invention is a pre-set ratio parameter, such as 8:2. Both the second training set and the second evaluation set consist of multiple first data records; the total number of records in the second training set and the second evaluation set are respectively denoted as the corresponding total number N. TR The total number N AV Record the total percentage N TR :N AV It satisfies the second division ratio.

[0104] Step 33: Take each of the first data records in the second training set as the current record; input the signal set X of the current record into the multi-task prediction model for processing, and compare the prediction vector P3 output by the model with the label vector of the current record. This forms a corresponding third prediction-label pair.

[0105] Here, the prediction vector P3 of each third prediction-label pair in this embodiment of the invention is compared with the currently recorded label vector. Recorded as corresponding , 1 ≤ index g ≤ N TR .

[0106] each The 8 predicted probabilities p 3(c) Record as the corresponding ,each 8 label probabilities Record as the corresponding .

[0107] Step 34, obtain N TR Each third prediction-label pair is substituted into the preset second model loss function L. M2 .

[0108] Here, the second model loss function L in this embodiment of the invention M2 for: .

[0109] Step 35, based on the preset second model optimizer, move towards making the second model loss function L M2 The direction that reaches the minimum value performs a round of parameter modulation on the model comprehensive anomaly prediction head parameters of the multi-task prediction model; and after this round of modulation, the second counter is incremented by 1.

[0110] Here, the second model optimizer in this embodiment of the invention includes the Adam optimizer and the SGD optimizer.

[0111] Step 36: Identify whether the second counter is greater than the preset second counter threshold; if yes, proceed to step 37; if no, return to step 33 to continue training.

[0112] Here, the second counter threshold in this embodiment of the invention is a preset positive integer.

[0113] Step 37: Take each of the first data records in the second evaluation set as the current record; input the signal set X of the current record into the multi-task prediction model for processing, and compare the prediction vector P3 output by the model with the label vector of the current record. This forms a corresponding fourth prediction-label pair.

[0114] Step 38, based on the obtained N AVThe fourth prediction-label pair is evaluated for F1 score to obtain the corresponding second F1 score; and it is identified whether the second F1 score is greater than the preset second score threshold; if not, the second counter is set to zero and the process returns to step 33 to continue training; if yes, training is stopped and the end of the second stage training is confirmed.

[0115] Here, the second score threshold in this embodiment of the invention is a pre-set threshold score.

[0116] Step 4: After the second-stage training is completed, the original signal set X0 input by the user is received; the original signal set X0 is preprocessed to obtain the corresponding signal set X; when the signal set X is not empty, it is input into the multi-task prediction model to obtain the corresponding prediction vectors P1, P2 and P3; and a comprehensive analysis is performed based on the three prediction vectors to obtain the corresponding analysis report and feedback to the current user.

[0117] Specifically, it includes: Step 41: Receive the original signal set X0 input by the user.

[0118] Here, the original signal set X0 of this embodiment of the invention includes 10 original location signals x. 0(i) Signal x for each original site 0(i) The duration is 8 seconds and the signal sampling rate is 4000Hz.

[0119] Step 42: Preprocess the original signal set X0 to obtain the corresponding signal set X.

[0120] Specifically, it includes: Step 421, convert the original signal x of each original part of the original signal set X0 into a single signal. 0(i) As the current original signal.

[0121] Step 422: Calculate the signal-to-noise ratio (SNR) of the current original signal; and determine whether the current SNR is less than the preset SNR threshold; if yes, set the corresponding signal quality status to substandard; if no, set the corresponding signal quality status to compliant.

[0122] Here, the signal-to-noise ratio threshold in this embodiment of the invention is a pre-set threshold parameter that can be customized based on application requirements.

[0123] Step 423: When the signal quality of the current original signal meets the standard, motion artifact points are detected in the current original signal, and when motion artifact points are detected, they are repaired by interpolation.

[0124] Here, the detection rule for motion artifact points in this embodiment of the invention is as follows: first calculate the signal standard deviation σ of the current original signal. signal and with 6×σ signalThe current threshold is used as the current threshold. If the absolute difference between a sampling point on the current original signal and its previous sampling point is greater than the current threshold, the current sampling point is recorded as a motion artifact point.

[0125] The rule for repairing motion artifacts in this embodiment of the invention is as follows: take the previous and next non-artifact points of any motion artifact as the corresponding start and end reference points, and perform interpolation replacement on the current motion artifact point according to the current start and end reference points using the linear interpolation method.

[0126] Step 424: When the signal quality of the current original signal meets the standard, extract the corresponding truncated signal by extracting a 2-second segment 1 second before and after the signal center point of the current original signal after completing motion artifact detection and repair. And using the peak normalization method, the amplitude of the currently captured signal is normalized to the interval [-1, 1] to obtain the corresponding part signal x. i .

[0127] Here, the peak normalization method in this embodiment of the invention is as follows: .

[0128] Where 1 ≤ sampling point index t ≤ total number of sampling points N x N x =2 seconds × 4000 Hz = 8000.

[0129] For location signal x i The amplitude at the t-th sampling point.

[0130] To intercept the signal The amplitude at the t-th sampling point To intercept the signal The largest absolute amplitude of the sampling point, .

[0131] Step 425: Identify whether the quality status of the 10 obtained signals all meets the standard; if so, then determine the quality status of the 10 location signals x. i Form the corresponding signal set X; otherwise, set the corresponding signal set X to empty.

[0132] It should be noted that in this embodiment of the invention, when the signal set X is empty, the subsequent steps 43-44 will not be executed. Instead, a prompt message will be sent to the current user indicating that the signal quality is substandard and the signal needs to be resampled.

[0133] Step 43: When the signal set X is not empty, input it into the multi-task prediction model to obtain the corresponding prediction vectors P1, P2 and P3.

[0134] Step 44: Based on the three prediction vectors, a comprehensive analysis is performed to obtain the corresponding analysis report, which is then fed back to the current user.

[0135] Specifically, it includes: Step 441, predict the vectors p for each part of the prediction vector P1. 1,k As the current vector; and use the prediction probability p with the highest probability value in the current vector. 1(k,a) The corresponding prediction type is taken as the corresponding first type; and the prediction probability p corresponding to the current first type is set. 1(k,a) As the first confidence level; and the first record is composed of the auscultation site name, the first type and the first confidence level corresponding to the current vector; and the corresponding cardiac auscultation sound record table is composed of the 5 first records corresponding to the prediction vector P1.

[0136] Step 442, predict the vectors p for each part of the prediction vector P2. 2,q As the current vector; and use the prediction probability p with the highest probability value in the current vector. 2(q,b) The corresponding prediction type is taken as the corresponding second type; and the prediction probability p corresponding to the current second type is set. 2(q,b) As the second confidence level; and the auscultation site name, second type and second confidence level corresponding to the current vector form a corresponding second record; and the five second records corresponding to the prediction vector P2 form the corresponding lung auscultation sound record table.

[0137] Step 443: Calculate the predicted probabilities p in the prediction vector P3 that are greater than the preset threshold for the probability of no symptoms. 3(c) As a corresponding third confidence level; and the syndrome type corresponding to each third confidence level as the corresponding first syndrome; and each first syndrome and its corresponding third confidence level form a corresponding third record; and all the obtained third records form a corresponding syndrome record table; and based on the preset syndrome screening rules, identify whether there are mutually exclusive symptoms in the syndrome record table, and modify it according to the rule modification specifications when mutually exclusive symptoms are identified.

[0138] Here, the asymptomatic probability threshold in this embodiment of the invention is a pre-set threshold parameter.

[0139] When the syndrome screening rules in this embodiment of the invention are not empty, they consist of one or more screening rules; each screening rule includes mutually exclusive symptom judgment conditions and mutually exclusive symptom modification specifications.

[0140] Step 444: For the 5 predicted probabilities p in the prediction vector P1 that correspond to the normal values... 1(k,a) The average value is calculated and the result is used as the corresponding probability of normal heart function. And calculate the corresponding probability of cardiac abnormalities. ; and the probability of normal heart function The system identifies whether the probability of a normal heart condition is greater than or equal to a preset threshold; if the probability of a normal heart condition is... If the probability of a heart condition being normal is greater than or equal to the threshold, then the corresponding heart condition is set to normal, and the probability of a heart condition being normal is set accordingly. As a corresponding confidence level of cardiac condition; if the probability of a normal heart condition... If the probability is less than the normal heart rate threshold, then further adjustments are made to the probability of heart abnormalities. The system identifies whether the probability of a heart abnormality is greater than or equal to a preset threshold; if the probability of a heart abnormality is... If the probability of cardiac abnormality is greater than or equal to the threshold, the corresponding cardiac state is set as abnormal, and the probability of cardiac abnormality is set accordingly. As the corresponding confidence level of the heart condition; if the probability of heart abnormality If the probability is less than the heart abnormality probability threshold, the corresponding heart state is set to uncertain, and the probability of a normal heart state is set to... and the probability of heart abnormalities The minimum value in the range is used as the corresponding cardiac status confidence level; and the obtained cardiac status and cardiac status confidence level together form the corresponding cardiac assessment result.

[0141] Here, the normal heart probability threshold and the abnormal heart probability threshold in this embodiment of the invention are two preset threshold parameters that can be customized based on application requirements.

[0142] Step 445, for the 5 predicted probabilities p in the prediction vector P2 that correspond to the normal values... 2(q,b) The average value is calculated and the result is used as the corresponding probability of normal lung function. And calculate the corresponding probability of lung abnormalities. ; and the normal probability of lung It identifies whether the lung probability is greater than or equal to a preset threshold; if the lung probability is normal... If the probability of normal lung function is greater than or equal to the threshold, then the corresponding lung condition is set to normal, and the probability of normal lung function is set accordingly. As the corresponding confidence level of lung condition; if the probability of normal lung condition is... If the probability is less than the normal lung probability threshold, then further analysis of the lung abnormality probability is needed. The system identifies whether the probability of lung abnormalities is greater than or equal to a preset threshold; if the probability of lung abnormalities is greater than or equal to a preset threshold, the system identifies the abnormalities. If the probability of lung abnormality is greater than or equal to the lung abnormality probability threshold, then the corresponding lung condition is set as abnormal, and the lung abnormality probability is set accordingly. As the corresponding confidence level of lung condition; if the probability of lung abnormalities... If the probability is less than the lung abnormality probability threshold, the corresponding lung status is set to uncertain, and the probability of normal lung status is set to... and probability of lung abnormalities The minimum value in the range is taken as the corresponding lung status confidence level; and the obtained lung status and lung status confidence level constitute the corresponding lung assessment result.

[0143] Here, the normal lung probability threshold and the abnormal lung probability threshold in this embodiment of the invention are two preset threshold parameters that can be customized based on application requirements.

[0144] Step 446: The obtained cardiac auscultation record form, lung auscultation record form, syndrome record form, cardiac assessment results, and lung assessment results form are combined to form an analysis report and fed back to the current user.

[0145] Figure 3 This is a module structure diagram of a processing device for multi-task prediction based on auscultation sound signals from multiple sites of the heart and lungs, provided in Embodiment 2 of the present invention. This device can be a terminal device or server implementing the aforementioned method embodiments, or it can be a device that enables the aforementioned terminal device or server to implement the aforementioned method embodiments. For example, the device can be a device or chip system of the aforementioned terminal device or server. Figure 3 As shown, the device includes: a model building module 201, a first-stage training module 202, a second-stage training module 203, and a model application module 204.

[0146] The model building module 201 constructs a deep learning model for multi-task prediction based on auscultation sounds from multiple sites of the heart and lungs, resulting in a corresponding multi-task prediction model. The multi-task prediction model predicts multiple types of cardiac abnormalities, multiple types of pulmonary abnormalities, and multiple types of combined cardiopulmonary abnormalities based on the input signal set X, and outputs corresponding prediction vectors P1, P2, and P3. The signal set X is a set of auscultation sounds from multiple sites of the heart and lungs, including signals from 10 sites x. i Signals x in various parts i The signal amplitude is normalized to the interval [-1, 1], where 1 ≤ index i ≤ 10; the prediction vector P1 is the cardiac abnormality prediction vector, which is composed of 5 site prediction vectors p 1,k Composition, 1 ≤ index k ≤ 5; Location prediction vector p 1,k The predicted probability p is determined by 15 categories. 1(k,a) Composition, 1≤index a≤15; prediction vector P2 is the lung abnormality prediction vector, composed of prediction vectors p from 5 locations. 2,q Composition, 1 ≤ index q ≤ 5; Location prediction vector p 2,q The probability p is predicted by 12 categories. 2(q,b) Composition, 1≤index b≤12; prediction vector P3 is the prediction vector for cardiopulmonary syndrome abnormalities, composed of 8 categories of prediction probabilities p 3(c) Composition, 1 ≤ index c ≤ 8.

[0147] The first-stage training module 202 is used to perform a first-stage training on the heart and lung abnormality prediction ability of the multi-task prediction model based on a preset label dataset, and to optimize all model parameters except for the comprehensive abnormality prediction head parameters during the first-stage training; the label dataset includes multiple first data records; the first data records include a signal set X and a label vector. Label vectors and label vector ; tag vector Includes 5 part label vectors Part label vector Includes 15 label probabilities Among them, only one is 1 and the rest are 0; label vector Includes 5 part label vectors Location label vector Includes 12 label probabilities Among them, only one is 1 and the rest are 0; label vector Includes 8 label probabilities Probability of each label It can be 1 or 0, where some or all of the labels can be 1 at the same time.

[0148] The two-stage training module 203 is used to perform a second-stage training on the cardiopulmonary comprehensive abnormality prediction ability of the multi-task prediction model based on the label dataset after the first-stage training, and to optimize only the comprehensive abnormality prediction head parameters of the model in the second-stage training.

[0149] The model application module 204 is used to receive the original signal set X0 input by the user after the two-stage training; preprocess the original signal set X0 to obtain the corresponding signal set X; and input the signal set X into the multi-task prediction model when the signal set X is not empty to obtain the corresponding prediction vectors P1, P2 and P3; and perform comprehensive analysis based on the three prediction vectors to obtain the corresponding analysis report and provide feedback to the current user; the original signal set X0 includes 10 original part signals x 0(i) .

[0150] The present invention provides a processing device for multi-task prediction based on auscultation sound signals from multiple sites of the heart and lungs. It can execute the method steps in the above method embodiments, and its implementation principle and technical effect are similar, so they will not be described again here.

[0151] It should be noted that the division of the various modules in the above device is merely a logical functional division. In actual implementation, they can be fully or partially integrated into a single physical entity, or they can be physically separated. Furthermore, these modules can be implemented entirely in software via processing elements; they can be fully implemented in hardware; or some modules can be implemented by processing elements calling software, while others are implemented in hardware. For example, the model building module can be a separate processing element, or it can be integrated into a chip in the above device. Alternatively, it can be stored as program code in the memory of the above device, and its functions can be called and executed by a processing element. The implementation of other modules is similar. Moreover, these modules can be fully or partially integrated together, or they can be implemented independently. The processing element described here can be an integrated circuit with signal processing capabilities. In the implementation process, each step of the above method or each of the above modules can be completed through integrated logic circuits in the hardware of the processor element or through software instructions.

[0152] For example, these modules can be one or more integrated circuits configured to implement the above methods, such as one or more Application Specific Integrated Circuits (ASICs), one or more Digital Signal Processors (DSPs), or one or more Field Programmable Gate Arrays (FPGAs). As another example, when a module is implemented using processing element scheduler code, the processing element can be a general-purpose processor, such as a Central Processing Unit (CPU) or other processor capable of calling program code. Furthermore, these modules can be integrated together as a System-on-a-Chip (SOC).

[0153] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. This computer program product includes one or more computer instructions. When these computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the foregoing method embodiments are generated. The computer described above can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The aforementioned computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the aforementioned computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)) or wireless (e.g., infrared, wireless, Bluetooth, microwave, etc.) means. The aforementioned computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The aforementioned available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., DVDs), or semiconductor media (e.g., solid-state disks (SSDs)).

[0154] Figure 4 This is a schematic diagram of an electronic device provided in Embodiment 3 of the present invention. This electronic device can be a terminal device or server implementing the methods of the aforementioned embodiments, or it can be a terminal device or server connected to the aforementioned terminal device or server implementing the methods of the aforementioned embodiments. Figure 4 As shown, the electronic device may include: a processor 301 (e.g., CPU), a memory 302, and a transceiver 303; the transceiver 303 is coupled to the processor 301, and the processor 301 controls the transmission and reception operations of the transceiver 303. The memory 302 may store various instructions for performing various processing functions and implementing the processing steps described in the foregoing embodiments. Preferably, the electronic device involved in the embodiments of the present invention further includes: a power supply 304, a system bus 305, and a communication port 306. The system bus 305 is used to realize communication connections between components. The communication port 306 is used for communication between the electronic device and other peripherals.

[0155] exist Figure 4The system bus 305 mentioned can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This system bus can be divided into address bus, data bus, control bus, etc. For ease of representation, it is represented by only one thick line in the figure, but this does not indicate that there is only one bus or one type of bus. The communication interface is used to enable communication between the database access device and other devices (e.g., clients, read-write libraries, and read-only libraries). Memory may include Random Access Memory (RAM) and may also include Non-Volatile Memory, such as at least one disk storage device.

[0156] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), graphics processing units (GPUs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0157] It should be noted that the embodiments of the present invention also provide a computer-readable storage medium storing instructions that, when run on a computer, cause the computer to perform the methods and processes provided in the above embodiments.

[0158] This invention provides a method, apparatus, electronic device, and computer-readable storage medium for multi-task prediction based on auscultation sounds from multiple sites of the heart and lungs. As described above, this invention first constructs an end-to-end multi-task prediction model capable of predicting multiple types of cardiac abnormalities, multiple types of pulmonary abnormalities, and multiple types of combined cardiopulmonary abnormalities based on the input signal set X. Then, the model is trained using a two-stage training mechanism: 1) Stage one trains the model's ability to predict cardiac and pulmonary abnormalities, optimizing all model parameters except for the combined abnormality prediction head parameter; 2) Stage two trains the model's ability to predict combined cardiopulmonary abnormalities, fine-tuning the combined abnormality prediction head parameter. After model training, the user-input raw signal set X0 is preprocessed to obtain signal set X, which is then input into the multi-task prediction model to obtain three corresponding prediction vectors. Finally, a comprehensive analysis is performed based on these three prediction vectors to generate an analysis report, which is then fed back to the current user. This invention can sense structural relationships between multiple sites and simultaneously predict 15 types of abnormal heart sounds, 12 types of abnormal lung sounds, and 8 types of cardiopulmonary syndromes. This invention overcomes the shortcomings of existing solutions and improves the functional diversity of auscultation aids.

[0159] The steps of the methods or algorithms described in conjunction with the embodiments disclosed herein can be implemented in hardware, a software module executed by a processor, or a combination of both. The software module can be located in random access memory (RAM), main memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium known in the art.

[0160] The specific embodiments described above further illustrate the purpose, technical solution, and beneficial effects of the present invention. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present invention should be included within the scope of protection of the present invention.

Claims

1. A processing method for multi-task prediction based on auscultation sound signals from multiple sites of the heart and lungs, characterized in that, The method includes: A deep learning model for multi-task prediction based on auscultation sounds from multiple sites of the heart and lungs is constructed to obtain a corresponding multi-task prediction model. This multi-task prediction model predicts multiple types of cardiac abnormalities, multiple types of pulmonary abnormalities, and multiple types of combined cardiopulmonary abnormalities based on the input signal set X, and outputs corresponding prediction vectors P1, P2, and P3. The signal set X is a set of auscultation sounds from multiple sites of the heart and lungs, including signals from 10 sites x. i Signal x of each of the aforementioned locations i The signal amplitude is normalized to the interval [-1, 1], where 1 ≤ index i ≤ 10; the prediction vector P1 is the cardiac abnormality prediction vector, which is composed of 5 site prediction vectors p 1,k Composition, 1 ≤ index k ≤ 5; the predicted part vector p 1,k The predicted probability p is determined by 15 categories. 1(k,a) Composition, 1 ≤ index a ≤ 15; the prediction vector P2 is the lung abnormality prediction vector, composed of 5 site prediction vectors p 2,q Composition, 1 ≤ index q ≤ 5; the location prediction vector p 2,q The probability p is predicted by 12 categories. 2(q,b) Composition, 1≤index b≤12; the prediction vector P3 is the cardiopulmonary syndrome abnormality prediction vector, composed of 8 types of prediction probabilities p 3(c) Composition, 1 ≤ index c ≤ 8; The multi-task prediction model's ability to predict heart and lung abnormalities is trained in a first-stage training phase based on a pre-defined label dataset. During this first-stage training, all model parameters except for the comprehensive abnormality prediction head parameters are optimized. The label dataset includes multiple first data records; each first data record includes the signal set X and a label vector. Label vectors and label vector The label vector Includes 5 part label vectors The part label vector Includes 15 label probabilities Of these, only one is 1 and the rest are 0; the label vector Includes 5 part label vectors The part label vector Includes 12 label probabilities Of these, only one is 1 and the rest are 0; the label vector Includes 8 label probabilities The probability of each of the aforementioned labels It can be 1 or 0, where some or all of the labels can be 1 at the same time; After the first phase of training is completed, the cardiopulmonary comprehensive abnormality prediction ability of the multi-task prediction model is trained in the second phase based on the labeled dataset, and only the comprehensive abnormality prediction head parameters of the model are optimized in the second phase of training. After the second phase of training, the system receives the original signal set X0 input by the user; preprocesses the original signal set X0 to obtain the corresponding signal set X; and inputs the signal set X into the multi-task prediction model when the signal set X is not empty to obtain the corresponding prediction vectors P1, P2, and P3; and performs a comprehensive analysis based on the three prediction vectors to obtain a corresponding analysis report which is then fed back to the current user; the original signal set X0 includes 10 original location signals x. 0(i) .

2. The processing method for multi-task prediction based on auscultation sound signals from multiple sites of the heart and lungs according to claim 1, characterized in that, The 10 sites corresponding to the signal set X include 5 cardiac auscultation sites and 5 lung auscultation sites; the 5 cardiac auscultation sites include the apex (APEX), aortic valve area (AORTIC), pulmonary valve area (PULMONIC), left sternal border (LSB), and right sternal border (RSB); the 5 lung auscultation sites include the right upper lobe (RUL_A), right middle lobe (RML_A), right lower lobe (RLL_A), left upper lobe (LUL_A), and left lower lobe (LLL_A). The 15 categories of prediction probabilities p 1(k,a) The corresponding 15 prediction types include: normal, diastolic rumble murmur (Diastolic_MS), diastolic rumble murmur (Diastolic_TS), diastolic sigh murmur (Diastolic_AR), systolic ejection murmur (Systolic_AS), systolic ejection murmur (Systolic_PS), holosystolic blowing murmur (Systolic_MR), holosystolic blowing murmur (Systolic_TR), continuous machine murmur (Continuous_Machinery), S3 gallop rhythm (Gallop_S3), S4 gallop rhythm (Gallop_S4), opening valve sound (OS), pericardial friction rub (Pericardial_Friction), systolic click (Ejection_Click), and midsystolic click (Midsystolic_Click). The 12 types of prediction probabilities p 2(q,b) The corresponding 12 prediction types include: normal, fine crackles, coarse crackles, rhonchi, whiezes, stridor, crepitations, pleural friction rub, bronchial breath sounds, cavernous breath sounds, amphoric breath sounds, and cogwheel breath sounds. The 8 types of prediction probabilities p 3(c) The eight corresponding prediction types include: left heart failure syndrome, right heart failure syndrome, biventricular heart failure syndrome, acute exacerbation of chronic obstructive pulmonary disease, community-acquired pneumonia, pulmonary embolism syndrome, pericardial disease syndrome, and valvular heart disease syndrome. Each of the original site signals x 0(i) The duration is 8 seconds, and the signal sampling rate is 4000Hz; the signal x for each of the aforementioned locations i The duration is 2 seconds.

3. The processing method for multi-task prediction based on auscultation sound signals from multiple sites of the heart and lungs according to claim 2, characterized in that, The multi-task prediction model has a model input terminal for receiving the signal set X, a first model output terminal for outputting the prediction vector P1, a second model output terminal for outputting the prediction vector P2, and a third model output terminal for outputting the prediction vector P3. The multi-task prediction model includes a site embedding layer, a time-domain feature encoding layer, a frequency-domain feature encoding layer, a time-frequency domain fusion layer, a graph embedding layer, a local organ graph attention layer, a cross-organ graph attention layer, a global context enhancement layer, a cardiac abnormality prediction head, a lung abnormality prediction head, and a comprehensive abnormality prediction head. The output of the site embedding layer is connected to the first input of the time-frequency domain fusion layer and the first input of the graph embedding layer, respectively; the inputs of the time-domain feature coding layer and the frequency-domain feature coding layer are both connected to the model input; the outputs of the time-domain feature coding layer and the frequency-domain feature coding layer are connected to the second and third inputs of the time-frequency domain fusion layer, respectively; the output of the time-frequency domain fusion layer is connected to the second input of the graph embedding layer; the output of the graph embedding layer is connected to the input of the local organ graph attention layer; the output of the local organ graph attention layer is connected to the input of the cross-organ graph attention layer; the output of the cross-organ graph attention layer is connected to the input of the global context enhancement layer; the output of the global context enhancement layer is connected to the inputs of the heart abnormality prediction head, the lung abnormality prediction head, and the comprehensive abnormality prediction head, respectively; the outputs of the heart abnormality prediction head, the lung abnormality prediction head, and the comprehensive abnormality prediction head are connected to the corresponding first model output, second model output, and third model output, respectively. The site embedding layer is used to set a set of fixed organ-specific hot-spot (SBS) encoding vectors, anatomical location region-specific hot-spot (SBS) encoding vectors, and left and right lateral SBS encoding vectors for each of the 10 auscultation sites corresponding to the signal set X; and the corresponding site encoding vector is composed of the organ-specific hot-spot (SBS) encoding vector, the anatomical location region-specific hot-spot (SBS) encoding vector, and the left and right lateral SBS encoding vectors; and the corresponding embedding vector e is obtained by embedding feature mapping of the site encoding vector based on the internal MLP model. i ; and the resulting 10 embedding vectors e i The corresponding embedding vector E is sent to the graph embedding layer; The organ unique thermal encoding vector is used to uniquely encode whether the organ type of each auscultation site is the heart or the lung. Each organ unique thermal encoding vector consists of two corresponding unique thermal codes: a heart unique thermal code and a lung unique thermal code, with each unique thermal code having a value of 1 or 0. Each auscultation site has exactly one unique thermal code with a value of 1 in its corresponding organ unique thermal encoding vector. The anatomical location region unique thermal encoding vector is used to uniquely encode the anatomical location region where each auscultation site is located. Each anatomical location region unique thermal encoding vector consists of five corresponding unique thermal codes: the precordial region unique thermal code, the base of the heart unique thermal code, and so on. The unique thermal codes for the upper lobe, middle lobe, and lower lobe are 1 or 0. In the unique thermal code vectors for each auscultation site corresponding to the anatomical location, there is exactly one unique thermal code with a value of 1. The left and right lateral unique thermal code vectors are used to perform unique thermal coding on the left and right lateral sides of the chest where each auscultation site is located. Each left and right lateral unique thermal code vector consists of two corresponding unique thermal codes: the left lateral unique thermal code and the right lateral unique thermal code, with values ​​of 1 or 0. In the left and right lateral unique thermal code vectors for each auscultation site, there is exactly one unique thermal code with a value of 1. The temporal feature encoding layer is composed of a first convolutional network and a first pooling layer connected in sequence; the first convolutional network is composed of multiple one-dimensional convolutional modules connected in sequence; each one-dimensional convolutional module is composed of a set of corresponding one-dimensional convolutional layers, BN normalization layers and ReLU activation layers connected in sequence. The temporal feature coding layer is used to process the signals x at each of the locations of the signal set X through the first convolutional network. i Temporal feature extraction is performed to obtain the corresponding temporal feature vector; and the first pooling layer is used to perform global average pooling on each temporal feature vector to obtain the corresponding feature vector h. T(i) ; and the resulting 10 feature vectors h T(i) Form the corresponding eigenvector H T Send to the time-frequency domain fusion layer; The frequency domain feature coding layer is composed of a Mel spectrogram processing layer, a second convolutional network, and a second pooling layer connected in sequence; the second convolutional network is composed of multiple two-dimensional convolutional modules connected in sequence; each two-dimensional convolutional module is composed of a set of corresponding two-dimensional convolutional layers, BN normalization layers, and ReLU activation layers connected in sequence. The frequency domain feature coding layer is used by the Mel spectrogram processing layer to process the signals x at each of the locations of the signal set X. i Generate the corresponding Mel spectrogram; and perform frequency domain feature extraction on each Mel spectrogram through the second convolutional network to obtain the corresponding frequency domain feature vector; and perform global average pooling on each frequency domain feature vector through the second pooling layer to obtain the corresponding feature vector h. F(i) ; and the resulting 10 feature vectors h F(i) Form the corresponding eigenvector H F Send to the time-frequency domain fusion layer; The Mel spectrogram processing layer generates signals x for each of the aforementioned locations. i When processing the corresponding Mel spectrum, it is necessary to base it on the current location signal x. i The corresponding organ type dynamically adjusts the adaptive frequency range of the Mel filter; if the site signal x i If the corresponding organ is the heart, then the adaptive frequency range should adopt a preset frequency range [f]. 1,min ,f 1,max If the location signal x i If the corresponding organ is the lungs, then the adaptive frequency range should be a preset frequency range [f]. 2,min ,f 2,max ];f 1,min f 1,max f is the preset minimum and maximum heart sound Mel filter frequency. 2,min f 2,max The preset minimum and maximum lung sound Mel filter frequencies; f 1,min <f 1,max f 2,min <f 2,max f 1,max <f 2,max ; The time-frequency domain fusion layer is composed of a projection layer, a gated weighted fusion layer, a BN normalization layer, and a ReLU activation layer connected sequentially. The time-frequency domain fusion layer is used by the projection layer to process the feature vector H based on two built-in MLP models. T and the feature vector H F Perform feature projections separately to obtain two projection vectors with the same feature shape. and projection vector The gated weighted fusion layer then modulates the projection vector according to the embedding vector E. and the projection vector Gated weighted fusion is performed to obtain the corresponding fusion projection vector. The fused projection vector is then normalized by the BN normalization layer. Batch normalization is performed to obtain the corresponding normalized vector; then, the ReLU activation layer activates the current normalized vector, and the resulting activation vector is used as the corresponding feature vector H. TF Send to the graph embedding layer; Wherein, the projection vector The projection vector and the fused projection vector Each includes 10 corresponding sub-vectors , , The fused projection vector Each subvector The gating weighted fusion mechanism is as follows: , ; Sigmoid() is the Sigmoid activation function. The i-th gating coefficient generated by the gated weighted fusion layer. , The gating weight matrix and gating bias vector of the gated weighted fusion layer are used. The feature vector H TF Includes 10 feature vectors h TF(i) The feature vector h TF(i) With the embedding vector e i One-to-one correspondence; The graph embedding layer is used to concatenate the feature vector H according to the feature channel concatenation method. TF Each of the aforementioned feature vectors h TF(i) The corresponding embedding vector e i Perform vector concatenation to obtain the corresponding concatenated vector, and use each concatenated vector as the initial node vector h. 0(i) ; and the resulting 10 node vectors h 0(i) The initial node set V0 is formed; and each of the 10 nodes is connected pairwise to generate 10 × (10-1) edges g. i,j And from the obtained 90 edges g i,j Form the corresponding edge set G; and for each edge g i,j Set the four edge type codes to form the corresponding type r. i,j ; and from the obtained 90 types r i,j The corresponding relation set R is formed; and the corresponding graph M0 is formed by the node set V0 and the edge set G; and the graph M0 and the relation set R are sent to the local organ graph attention layer; Where 1 ≤ index j ≤ 10, j ≠ i; the type r i,j It includes four types of edge type encoding, namely, the encoding of relationships between the same organ and its location. Cross-organ-site relationship coding Coding of the relationship between the left and right symmetrical parts of the same organ 1. Code of proximity of anatomical location ; The type r i,j The encoding rules for the four edge types are as follows: If the type r i,j If the two auscultation sites corresponding to the i-th and j-th nodes both belong to the heart or lung auscultation sites, then... Conversely, if the two auscultation sites corresponding to nodes i and j belong to the heart and lung auscultation sites respectively, then ; If the type r i,j If the two auscultation sites corresponding to the i-th and j-th nodes belong to the heart and lung auscultation sites respectively, and a functional connection between these two sites is confirmed according to prior hemodynamic analysis, then... Conversely, if the two auscultation sites corresponding to nodes i and j both belong to the heart or lung auscultation sites, or if the two auscultation sites belong to the heart and lung auscultation sites respectively but the prior hemodynamic analysis confirms that there is no functional connection between the two sites, then... ; If the type r i,j If the two auscultation sites corresponding to the i-th and j-th nodes both belong to the heart or lung auscultation sites and have a left-right symmetrical relationship, then... Conversely, if the two auscultation sites corresponding to nodes i and j belong to the heart and lung auscultation sites respectively, or if the two auscultation sites both belong to the heart or lung auscultation sites but do not have a left-right symmetry relationship, then ; If the type r i,j If the two auscultation sites corresponding to the i-th and j-th nodes satisfy the preset nearest neighbor relationship condition in terms of physical anatomical location, then... Conversely, if the two auscultation sites corresponding to nodes i and j do not satisfy the nearest neighbor condition in terms of physical anatomical location, then ; The local organ graph attention layer is implemented based on a first GAT network; the first GAT network is composed of one or more GAT modules connected sequentially. The local organ graph attention layer is used to encode the relationships between the same organ locations in the graph M0. Nodes and edges with a value of 1 are extracted as subgraphs. The remaining nodes and edges form a subgraph. ; and through the first GAT network on the subgraph Perform node feature encoding to obtain a new subgraph ; and for the subgraph and the subgraph The corresponding graph M1 is obtained by merging the graphs; and the graph M1 and the relation set R are sent to the cross-organ graph attention layer. The graph M1 includes a node set V1 and an edge set G; the node set V1 includes 10 node vectors h. 1(i) The node set V1 is defined by the subgraph. The covered nodes, and their corresponding node vectors h 1(i) The node vector h corresponding to the current node 0(i) The updated features obtained after encoding via the first GAT network; the node set V1 is represented by the subgraph The covered nodes, and their corresponding node vectors h 1(i) The node vector h corresponding to the graph M0 0(i) Maintain consistency; The cross-organ graph attention layer is implemented based on a second GAT network; the second GAT network is composed of one or more GAT modules connected sequentially. The cross-organ graph attention layer is used to encode the cross-organ site relationships in graph M1. Encoding the proximity of the anatomical location of the site as 1 or the site described above. Nodes and edges with a value of 1 are extracted as subgraphs. The remaining nodes and edges form a subgraph. ; and through the second GAT network on the subgraph Perform node feature encoding to obtain a new subgraph ; and for the subgraph and the subgraph Merge the nodes to obtain the corresponding graph M2; perform a residual connection on the node sets of the graphs M1 and M2 to obtain the corresponding node set V3; and form the corresponding graph M3 from the node set V3 and the edge set G; and send the graph M3 and the relation set R to the global context enhancement layer. Graph M2 includes a node set V2 and an edge set G; the node set V2 includes 10 node vectors h. 2(i) The node set V2 is defined by the subgraph. The covered nodes, and their corresponding node vectors h 2(i) The node vector h corresponding to the current node 1(i) The updated features obtained after encoding via the second GAT network; the node set V2 is represented by the subgraph The covered nodes, and their corresponding node vectors h 2(i) The node vector h corresponding to the node in the figure M1 1(i) Maintain consistency; The node set V3 includes 10 node vectors h. 3(i) h 3(i) =h 1(i) +h 2(i) ; The global context enhancement layer is used to process the 10 node vectors h of the node set V3. 3(i) Global attention pooling is performed to obtain a corresponding global pooling vector; and the current global pooling vector is concatenated with each of the node vectors h according to the feature channel concatenation method. 1(i) The concatenation is performed to obtain the corresponding node concatenation vector; and based on the built-in MLP model, feature mapping is performed on each of the node concatenation vectors to obtain the corresponding feature vector z. i ; and the resulting 10 feature vectors z i The corresponding feature vector Z is sent to the cardiac abnormality prediction head, the lung abnormality prediction head, and the comprehensive abnormality prediction head; Among them, for the 10 node vectors h 3(i) The global attention pooling mechanism is as follows: ; , These are the global query vector and the global weight matrix of the global context enhancement layer, respectively. For the node vector h 3(i) The corresponding attention weights; For the 10 node vectors h 3(i) The corresponding global pooling vector; The cardiac abnormality prediction head is implemented based on a multi-classification model structure; The cardiac abnormality prediction head is used to select the five feature vectors z from the feature vector Z that correspond to the five cardiac auscultation sites. i Extract them to form the current vector set; and combine each feature vector z in the current vector set. i As the current vector, the current vector is used to perform feature dimensionality reduction through two consecutive fully connected layers to obtain a 1×15 feature vector y1, where 15 is the feature dimension of the feature vector y1; and the corresponding prediction vector p for the said part is calculated by the Softmax function based on the probability distribution of the feature vector y1. 1,k ; and the five predicted vectors p from the obtained locations 1,k The corresponding prediction vector P1 is sent to the output of the first model. The lung abnormality prediction head is implemented based on a multi-classification model structure; The lung abnormality prediction head is used to select the five feature vectors z from the feature vector Z that correspond to the five lung auscultation sites. i Extract them to form the current vector set; and combine each feature vector z in the current vector set. i As the current vector, the current vector is used to perform feature dimensionality reduction through two consecutive fully connected layers to obtain a 1×12 feature vector y2, where 12 is the feature dimension of the feature vector y2; and the corresponding part prediction vector p is obtained by calculating the probability distribution based on the feature vector y2 using the Softmax function. 2,q ; and the five predicted vectors p from the obtained locations 2,q The corresponding prediction vector P2 is sent to the output of the second model. The comprehensive anomaly prediction head includes one comprehensive feature extraction layer and eight sub-task heads; the comprehensive feature extraction layer is implemented based on an MLP model structure; the eight sub-task heads correspond one-to-one with the eight prediction types corresponding to the prediction vector P3; each of the sub-task heads is implemented based on a binary classification model structure, specifically consisting of three fully connected layers and a Sigmoid function layer connected sequentially. The comprehensive anomaly prediction head is used to obtain the corresponding feature vector Z3 by performing comprehensive feature encoding on the feature vector Z from the comprehensive feature extraction layer; and each of the subtask heads first performs feature dimensionality reduction on the feature vector Z3 through its three fully connected layers to obtain a feature scalar y3, and then performs probability calculation based on the current feature scalar y3 through its internal Sigmoid function layer to obtain the corresponding prediction probability p. 3(c) ; and the obtained 8 predicted probabilities p 3(c) The corresponding prediction vector P3 is then sent to the third model output module.

4. The processing method for multi-task prediction based on auscultation sound signals from multiple sites of the heart and lungs according to claim 1, characterized in that, The step involves training the multi-task prediction model's ability to predict heart and lung abnormalities using a pre-defined labeled dataset in a single phase, and optimizing all model parameters except for the comprehensive abnormality prediction head parameters during this phase. Specifically, this includes: Step 41: Record the subset of model parameters of the comprehensive anomaly prediction head of the multi-task prediction model as the corresponding comprehensive anomaly prediction head parameters, and take the set of other parameters in the model parameters of the multi-task prediction model other than the comprehensive anomaly prediction head parameters as the current target parameter set. Step 42: Based on a preset first segmentation ratio, randomly divide the label dataset into two subsets, denoted as the first training set and the first evaluation set; and initialize the first counter to 0; Both the first training set and the first evaluation set consist of multiple first data records; the total number of records in the first training set and the first evaluation set is denoted as the corresponding total number N. TR The total number N AV Record the total percentage N TR :N AV The first segmentation ratio is satisfied; Step 43: Take each of the first data records in the first training set as the current record; input the signal set X of the current record into the multi-task prediction model for processing, and compare the prediction vector P1 and prediction vector P2 output by the model with the label vector of the current record. and the label vector Form a corresponding first prediction-label pair; Wherein, the prediction vector P1, the prediction vector P2, and the label vector of each of the first prediction-label pairs and the label vector Recorded as corresponding , , , ; 1 ≤ index u ≤ N TR ;each The predicted location vector p 1,k Record as the corresponding ,each The predicted probability p 1(k,a) Record as the corresponding ;each The predicted location vector p 2,q Record as the corresponding ,each The predicted probability p 2(q,b) Record as the corresponding ;each The part label vector Record as the corresponding ,each The label probability Record as the corresponding ;each The part label vector Record as the corresponding ,each The label probability Record as the corresponding ; Step 44, obtain N TR Substituting the first prediction-label pair into the preset first model loss function L M1 ; Wherein, the first model loss function L M1 for: ; Step 45, based on the preset first model optimizer, move towards making the first model loss function L M1 The target parameter set of the multi-task prediction model is modulated once in the direction that reaches the minimum value; and after this round of modulation is completed, the first counter is incremented by 1; The first model optimizer includes the Adam optimizer and the SGD optimizer. Step 46: Identify whether the first counter is greater than the preset first counter threshold; if yes, proceed to step 47; if no, return to step 43 to continue training. Step 47: Take each of the first data records in the first evaluation set as the current record; input the signal set X of the current record into the multi-task prediction model for processing, and compare the prediction vector P1 and prediction vector P2 output by the model with the label vector of the current record. and the label vector Form a corresponding second prediction-label pair; Step 48, based on the obtained N AV The second prediction-label pair is evaluated using F1 scores to obtain the corresponding first F1 score; and it is identified whether the first F1 score is greater than a preset first score threshold; if not, the first counter is set to zero and the process returns to step 43 to continue training; if yes, training is stopped and the end of the first stage of training is confirmed, and the target parameter set of the multi-task prediction model is frozen.

5. The processing method for multi-task prediction based on auscultation sound signals from multiple sites of the heart and lungs according to claim 1, characterized in that, The step of performing two-stage training on the cardiopulmonary comprehensive abnormality prediction ability of the multi-task prediction model based on the labeled dataset, and optimizing only the model's comprehensive abnormality prediction head parameters in the two-stage training, specifically includes: Step 51: Record the subset of model parameters of the comprehensive anomaly prediction head of the multi-task prediction model as the corresponding comprehensive anomaly prediction head parameters of the model. Step 52: Based on the preset second segmentation ratio, randomly segment the label dataset into two subsets, denoted as the corresponding second training set and second evaluation set; and initialize the second counter to 0; Both the second training set and the second evaluation set consist of multiple records of the first data set; the total number of records in the second training set and the second evaluation set is denoted as the corresponding total number N. TR The total number N AV Record the total percentage N TR :N AV Satisfy the second segmentation ratio; Step 53: Take each of the first data records in the second training set as the current record; input the signal set X of the current record into the multi-task prediction model for processing, and compare the prediction vector P3 output by the model with the label vector of the current record. Form a corresponding third prediction-label pair; Wherein, the prediction vector P3 of each of the third prediction-label pairs and the label vector of the current record. Recorded as corresponding , 1 ≤ index g ≤ N TR ;each The 8 predicted probabilities p 3(c) Record as the corresponding ,each 8 label probabilities Record as the corresponding ; Step 54, obtain N TR The third prediction-label pair is substituted into the preset second model loss function L. M2 ; Wherein, the second model loss function L M2 for: ; Step 55, based on the preset second model optimizer, move towards making the second model loss function L M2 The direction that reaches the minimum value is used to perform a round of parameter modulation on the model comprehensive anomaly prediction head parameters of the multi-task prediction model; and after this round of modulation is completed, the second counter is incremented by 1; The second model optimizer includes the Adam optimizer and the SGD optimizer; Step 56: Identify whether the second counter is greater than the preset second counter threshold; if yes, proceed to step 57; if no, return to step 53 to continue training. Step 57: Take each of the first data records in the second evaluation set as the current record; input the signal set X of the current record into the multi-task prediction model for processing, and compare the prediction vector P3 output by the model with the label vector of the current record. Form a corresponding fourth prediction-label pair; Step 58, based on the obtained N AV The fourth prediction-label pair is evaluated for F1 score to obtain the corresponding second F1 score; and it is identified whether the second F1 score is greater than the preset second score threshold; if not, the second counter is set to zero and the process returns to step 53 to continue training; if yes, training is stopped and the end of the second stage training is confirmed.

6. The processing method for multi-task prediction based on auscultation sound signals from multiple sites of the heart and lungs according to claim 1, characterized in that, The preprocessing of the original signal set X0 to obtain the corresponding signal set X specifically includes: Step 61, convert each of the original part signals x of the original signal set X0 into a single signal. 0(i) As the current original signal; Step 62: Calculate the signal-to-noise ratio (SNR) of the current original signal; and determine whether the current SNR is less than a preset SNR threshold; if yes, set the corresponding signal quality state to substandard; if no, set the corresponding signal quality state to compliant. Step 63: When the signal quality status of the current original signal is up to standard, motion artifact point detection is performed on the current original signal, and when motion artifact points are detected, repair is performed using interpolation. The detection rule for motion artifacts is as follows: first calculate the standard deviation σ of the current original signal. signal and with 6×σ signal As the current threshold; if the absolute difference between a certain sampling point on the current original signal and its previous sampling point is greater than the current threshold, then the current sampling point is recorded as a motion artifact point; The rule for repairing motion artifacts is as follows: take the previous and next non-artifact points of any motion artifact as the corresponding start and end reference points, and use linear interpolation to replace the current motion artifact based on the current start and end reference points; Step 64: When the signal quality status of the current original signal meets the standard, extract the corresponding truncated signal by extracting a 2-second segment 1 second before and after the signal center point of the current original signal after completing motion artifact detection and repair. And according to the peak value normalization method, the signal amplitude of the currently captured signal is normalized to the interval [-1, 1] to obtain the corresponding part signal x. i ; The peak normalization method is as follows: , 1 ≤ sampling point index t ≤ total number of sampling points N x N x =2 seconds × 4000 Hz = 8000; The location signal x i The amplitude at the t-th sampling point For the intercepted signal The amplitude at the t-th sampling point For the intercepted signal The largest absolute amplitude of the sampling point, ; Step 65: Identify whether all 10 obtained signal quality states meet the standards; if so, then determine the quality status of the 10 obtained location signals x. i If the signal set X is not formed, then the corresponding signal set X is set to empty.

7. The processing method for multi-task prediction based on auscultation sound signals from multiple sites of the heart and lungs according to claim 1, characterized in that, The analysis report, generated from the comprehensive analysis of the three prediction vectors, is then fed back to the current user, specifically including: The prediction vector p of each of the predicted parts of the prediction vector P1 is predicted. 1,k The current vector is used as the prediction probability p, which has the largest probability value in the current vector. 1(k,a) The corresponding prediction type is taken as the corresponding first type; and the prediction probability p corresponding to the current first type is set as follows. 1(k,a) As the first confidence level; and the auscultation site name corresponding to the current vector, the first type and the first confidence level form a corresponding first record; and the five first records corresponding to the prediction vector P1 form a corresponding cardiac auscultation sound record table; And predict the vector p of each of the predicted parts of the predicted vector P2. 2,q The current vector is used as the prediction probability p, which has the largest probability value in the current vector. 2(q,b) The corresponding prediction type is taken as the corresponding second type; and the prediction probability p corresponding to the current second type is set as follows. 2(q,b) As a second confidence level; and a corresponding second record is formed by the auscultation site name corresponding to the current vector, the second type, and the second confidence level; and a corresponding lung auscultation sound record table is formed by the 5 second records corresponding to the prediction vector P2; And the predicted probabilities p in the prediction vector P3 that are greater than the preset asymptomatic probability threshold are... 3(c) As a corresponding third confidence level; and the syndrome type corresponding to each of the third confidence levels as the corresponding first syndrome; and each of the first syndromes and its corresponding third confidence level constitutes a corresponding third record; and all the obtained third records constitute a corresponding syndrome record table; and based on preset syndrome screening rules, the existence of mutually exclusive symptoms in the syndrome record table is identified, and when mutually exclusive symptoms are identified, modifications are made based on rule modification specifications; wherein, when the syndrome screening rules are not empty, they consist of one or more screening rules; each screening rule includes mutually exclusive symptom judgment conditions and mutually exclusive symptom modification specifications; And for the five predicted probabilities p in the predicted vector P1 that correspond to the normal values... 1(k,a) The average value is calculated and the result is used as the corresponding probability of normal heart function. And calculate the corresponding probability of cardiac abnormalities. ; and the probability of the heart being normal The system identifies whether the probability of a normal heart is greater than or equal to a preset threshold; if the probability of a normal heart is... If the probability of a heart being normal is greater than or equal to the threshold, then the corresponding heart state is set to normal, and the probability of a heart being normal is set to... As the corresponding confidence level of the heart condition; if the probability of the heart being normal... If the probability is less than the normal heart probability threshold, then the abnormal heart probability is further adjusted. The system identifies whether the probability of a heart abnormality is greater than or equal to a preset threshold; if the probability of a heart abnormality is... If the probability of cardiac abnormality is greater than or equal to the threshold, then the corresponding cardiac state is set as abnormal, and the probability of cardiac abnormality is set... As the corresponding confidence level of the cardiac state; if the probability of cardiac abnormality... If the probability is less than the stated cardiac abnormality threshold, then the corresponding cardiac state is set to uncertain, and the probability of normal cardiac function is set to... and the probability of the aforementioned heart abnormality The minimum value in the range is taken as the corresponding confidence level of the heart state; and the obtained heart state and the confidence level of the heart state constitute the corresponding heart assessment result; And for the five predicted probabilities p in the predicted vector P2 that correspond to the normal values... 2(q,b) The average value is calculated and the result is used as the corresponding probability of normal lung function. And calculate the corresponding probability of lung abnormalities. ; and the normal probability of the lungs The system identifies whether the lung probability is greater than or equal to a preset threshold; if the lung probability is normal... If the probability of normal lung function is greater than or equal to the lung normality threshold, then the corresponding lung state is set to normal, and the lung normality probability is set to... As the corresponding confidence level of lung condition; if the probability of normal lung condition is... If the probability is less than the normal probability threshold for the lungs, then the probability of abnormal lung function is further assessed. The system identifies whether the probability of lung abnormalities is greater than or equal to a preset threshold; if the probability of lung abnormalities is greater than or equal to a preset threshold, the system identifies the abnormality. If the probability of lung abnormality is greater than or equal to the lung abnormality threshold, then the corresponding lung state is set as abnormal, and the probability of lung abnormality is set... As the corresponding confidence level of the lung condition; if the probability of lung abnormality If the probability of lung abnormality is less than the lung abnormality probability threshold, then the corresponding lung state is set to uncertain, and the probability of normal lung condition is set to... and the probability of lung abnormalities The minimum value in the range is taken as the corresponding confidence level of the lung condition; and the obtained lung condition and the confidence level of the lung condition constitute the corresponding lung assessment result; The obtained cardiac auscultation record, lung auscultation record, syndrome record, cardiac assessment results, and lung assessment results form the corresponding analysis report, which is then fed back to the current user.

8. An apparatus for performing the processing method for multi-task prediction based on auscultation sounds from multiple sites of the heart and lungs as described in any one of claims 1-7, characterized in that, The device includes: a model building module, a first-stage training module, a second-stage training module, and a model application module; The model building module constructs a corresponding multi-task prediction model from a deep learning model used for multi-task prediction based on auscultation sounds from multiple sites of the heart and lungs. The multi-task prediction model predicts multiple types of cardiac abnormalities, multiple types of pulmonary abnormalities, and multiple types of combined cardiopulmonary abnormalities based on the input signal set X, and outputs corresponding prediction vectors P1, P2, and P3. The signal set X is a set of auscultation sounds from multiple sites of the heart and lungs, including signals from 10 sites x. i Signal x of each of the aforementioned locations i The signal amplitude is normalized to the interval [-1, 1], where 1 ≤ index i ≤ 10; the prediction vector P1 is the cardiac abnormality prediction vector, which is composed of 5 site prediction vectors p 1,k Composition, 1 ≤ index k ≤ 5; the predicted part vector p 1,k The predicted probability p is determined by 15 categories. 1(k,a) Composition, 1 ≤ index a ≤ 15; the prediction vector P2 is the lung abnormality prediction vector, composed of 5 site prediction vectors p 2,q Composition, 1 ≤ index q ≤ 5; the location prediction vector p 2,q The probability p is predicted by 12 categories. 2(q,b) Composition, 1≤index b≤12; the prediction vector P3 is the cardiopulmonary syndrome abnormality prediction vector, composed of 8 types of prediction probabilities p 3(c) Composition, 1 ≤ index c ≤ 8; The first-stage training module is used to perform a first-stage training on the heart and lung abnormality prediction ability of the multi-task prediction model based on a preset label dataset, and to optimize all model parameters except for the comprehensive abnormality prediction head parameters during the first-stage training; the label dataset includes multiple first data records; the first data record includes the signal set X and the label vector. Label vectors and label vector The label vector Includes 5 part label vectors The part label vector Includes 15 label probabilities Of these, only one is 1 and the rest are 0; the label vector Includes 5 part label vectors The part label vector Includes 12 label probabilities Of these, only one is 1 and the rest are 0; the label vector Includes 8 label probabilities The probability of each of the aforementioned labels It can be 1 or 0, where some or all of the labels can be 1 at the same time; The two-stage training module is used to perform a second-stage training on the cardiopulmonary comprehensive abnormality prediction ability of the multi-task prediction model based on the label dataset after the first-stage training, and to optimize only the model's comprehensive abnormality prediction head parameters during the second-stage training. The model application module is used to receive the original signal set X0 input by the user after the two-stage training; preprocess the original signal set X0 to obtain the corresponding signal set X; and input the signal set X into the multi-task prediction model when the signal set X is not empty to obtain the corresponding prediction vectors P1, P2, and P3; and perform comprehensive analysis based on the three prediction vectors to obtain a corresponding analysis report and provide feedback to the current user; the original signal set X0 includes 10 original part signals x. 0(i) .

9. An electronic device, characterized in that, include: Memory, processor, and transceiver; The processor is configured to be coupled to the memory, read and execute instructions in the memory to implement the method according to any one of claims 1-7; The transceiver is coupled to the processor, and the processor controls the transceiver to send and receive messages.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that, when executed by a computer, cause the computer to perform the method described in any one of claims 1-7.