Method for obtaining signal quality evaluation from fine-grained ECG classification model

By combining knowledge distillation and transfer learning in the ECG classification model, and combining time domain and frequency domain features for signal quality assessment, the correlation problem between ECG signal quality assessment and cardiovascular disease classification tasks is solved, and more accurate cardiovascular disease classification is achieved. Diagnostics and signal quality assessment.

CN118861900APending Publication Date: 2024-10-29SHENZHEN MSU-BIT UNIVERSITY
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202411094356.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2024-10-29

AI Technical Summary

Technical Problem

When the existing technology uses ECG signals to diagnose cardiovascular diseases, the signal quality is poor and easily affected by noise, leading to misdiagnosis. Moreover, the ECG signal quality assessment and classification tasks are regarded as independent tasks and lack effective correlation processing.

Method used

By obtaining the signal quality assessment method from the fine-grained ECG classification model, we use knowledge distillation and transfer learning methods to establish a teacher network model and a student network model, and combine time domain and frequency domain features for cross-domain fusion to obtain coarse-grained signal quality. Evaluate the model.

Benefits of technology

Effectively combining the time-frequency characteristics of ECG signals improves the accuracy of signal quality assessment and cardiovascular disease diagnosis, achieves more accurate feature extraction and disease detection of ECG signals, and helps diagnose and warn related diseases.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118861900A_ABST
    Figure CN118861900A_ABST
Patent Text Reader

Abstract

The invention discloses a method for obtaining signal quality evaluation from a fine-grained ECG classification model, which comprises the following steps of: measuring a 12-lead electrocardiogram, and establishing a teacher network model for electrocardiosignal classification; training the student network model by adopting a knowledge distillation method to obtain a fine-grained student classification model for electrocardiosignal classification; and carrying out fine-tuning migration training on the fine-grained student classification module by adopting a migration learning method to obtain a coarse-grained migration classification model for signal quality evaluation. The designed classification network model breaks through the limitation that an existing method is limited to one of the time domain and the frequency domain, the time-frequency characteristics of the ECG signals can be effectively combined, the relation between different view angle information of the heart is effectively mined through a graph structure, and therefore better 12-lead ECG signal characterization is learned; and more accurate results are obtained in cardiovascular disease diagnosis and quality evaluation tasks.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the field of intelligent medical technology, and in particular relates to a method for obtaining signal quality evaluation from a fine-grained ECG classification model. Background Art

[0002] Cardiovascular disease (CVD) is the biggest enemy of people's health in today's society. Its suddenness and high mortality rate pose a great threat to people, and the 12-lead electrocardiogram (ECG) is the most important tool for diagnosing cardiovascular disease. With the continuous development of medical sensor technology, the availability of ECG data has been continuously improved, providing a solid foundation for its role in clinical diagnosis. Since deep learning methods using ECG signals can help classify cardiovascular diseases, automatic and accurate classification of cardiovascular diseases based on ECG has attracted more and more attention from researchers. However, in clinical application scenarios, ECGs obtained using wearable devices are easily affected by noise and electromyography, resulting in poor signal quality. At the same time, since these noises are similar to ECG signals in morphology and overlap in frequency bands, misdiagnosis is likely to occur. Therefore, before using ECG signals to diagnose cardiovascular diseases, it is also very important to evaluate their quality. In existing research work, ECG signal quality assessment and ECG-based cardiovascular disease classification are usually regarded as two independent tasks. Traditional methods design artificial features of ECG signals for cardiovascular disease diagnosis, including amplitude, QRS complex width, and discrete wavelet transform coefficients, which have defects in data processing and feature design. Summary of the invention

[0003] In order to solve the above-mentioned technical problems, the association between the two tasks of ECG signal quality assessment and ECG-based cardiovascular disease classification is explored. To this end, the present invention provides a method for obtaining signal quality assessment from a fine-grained ECG classification model.

[0004] The technical solutions adopted are as follows:

[0005] A method for obtaining signal quality assessment from a fine-grained ECG classification model comprises the following steps:

[0006] Measure 12-lead electrocardiogram and establish a teacher network model for electrocardiogram signal classification;

[0007] The knowledge distillation method is used to train the student network model to obtain a fine-grained student classification model for ECG signal classification.

[0008] The transfer learning method is used to fine-tune the fine-grained student classification module and obtain a coarse-grained transfer classification model for signal quality assessment.

[0009] Furthermore, the specific method of establishing ECG signal classification in the teacher network model is:

[0010] The twelve-lead electrocardiogram is divided into six views according to the relative position of each lead to the heart;

[0011] A propagation layer is used on each view to capture the relationship between the views, and the temporal feature x containing six view features is obtained. t ;

[0012] Establish a multi-scale module to capture the multi-scale features of the ECG signal from the time domain of the ECG signal, and aggregate the multi-scale features of all views to obtain the aggregated time domain features

[0013] The one-dimensional ECG signal sequence is converted into a two-dimensional spectrum using short-time Fourier transform, and the frequency domain features x are extracted using two-dimensional convolution. f ;

[0014] The time domain features and frequency domain features x f Execute the cross-domain fusion mechanism to obtain the fusion feature x of the ECG signal out ;

[0015] For the fusion feature x out The output block is constructed using layer normalization and fully connected layers to obtain fine-grained ECG signal classification results.

[0016] Preferably, the specific method of using the propagation layer on each view to capture the relationship between the views is:

[0017] Each view is regarded as a node of the graph, and the correlation between each view is measured according to the cosine similarity. The average cosine similarity of the input batch data is used as the weight of the edge to obtain the adjacency matrix A. Given the propagation layer containing the input features of the view and the adjacency matrix, h is calculated using the following expression: k :

[0018]

[0019] where h k represents the input hidden state of the previous layer output, k is the depth, in Each element satisfies

[0020] In h k The upper layer is normalized, all input hidden states are connected and sent to the convolution layer with a convolution kernel size of 1 to obtain the final output hidden state of each node, and the time domain feature x containing six view features is obtained. t .

[0021] Furthermore, the specific method of using the knowledge distillation method to train the student network model and obtain a fine-grained student classification model for ECG signal classification is:

[0022] The 12-lead ECG is considered as a view and a multi-scale module is used to capture the time domain encoding x from the time domain of the ECG signal. t ;

[0023] The short-time Fourier transform is used to obtain the spectrum of the 12-lead ECG signal, and the convolutional neural network module is used to capture the frequency domain encoding x f ;

[0024] The time domain code x t and frequency domain coding x f Execute the cross-domain fusion mechanism to obtain the fusion feature x of the ECG signal out ;

[0025] For the fusion feature x out The output block is constructed using layer normalization and fully connected layers to obtain fine-grained ECG signal classification results.

[0026] Preferably, a transfer learning method is used to fine-tune the fine-grained student classification module, and the specific method is:

[0027] Freeze the trained student network model parameters;

[0028] Build a fine-tuned classification model that combines multiple fully connected layers and multiple GELU functions, and fuse feature x out After layer normalization, the fully connected layer and GELU function in the fine-tuning classification model are used for multiple migration trainings. Finally, after a fully connected layer is trained, the Sigmoid function is used for activation to obtain the probability that the ECG signal is positive.

[0029] Preferably, in the teacher network model, the Sigmoid function is used according to the time domain characteristics. Fine-tune frequency domain features x f , and compare it with the time domain features Add together to get the final fusion feature x out , its expression:

[0030]

[0031] in: α i =WX i +b,i∈[1,6]

[0032] W and b are learnable parameters;

[0033] α i is the i-th view xi The fusion weight of .

[0034] Preferably, in the student network model, the fusion feature x out It is obtained by fine-tuning the time domain coding and frequency domain coding, and its expression is:

[0035] x out =x t ×Sigmoid(x f );

[0036] The loss function that combines KL divergence and binary cross entropy loss during training is expressed as:

[0037]

[0038] Where:q t is the output probability distribution of the trained teacher network model, q s is the output probability distribution of the untrained student network model;

[0039] KL is the KL divergence loss, τ is the temperature parameter, α is the hyperparameter that balances the KL divergence and binary cross entropy loss, and y is the true label;

[0040] The student network model is trained by adopting the above loss function, and the knowledge of the teacher network model is introduced into the training of the student network model.

[0041] Preferably, a multi-scale module based on ResNet is used to capture the multi-scale features of the ECG signal, and the specific method is:

[0042] The ECG signal is input into the Conv1d layer for one-dimensional convolution processing;

[0043] After being processed by batch normalization layer, GELU function and two fine-tuned multi-scale convolutions, global average pooling is further performed to obtain multi-scale features.

[0044] Preferably, the fine-tuned multi-scale convolution processing method adopted is:

[0045] The input is first processed by a convolution block with a convolution kernel size of 1 to obtain a feature map;

[0046] Divide the feature map into multiple parts;

[0047] Input the first part x1 into a convolutional block with a kernel size of 17 to obtain h1;

[0048] The second part x2 is fine-tuned according to the following expression:

[0049]

[0050] Among them, f(h n ) expression formula: f(h n )=Sigmoid(Sum(h n ))

[0051] Then the second part x2 is input into a convolution block with a kernel size of 17 to obtain h2;

[0052] Perform feature fine-tuning and convolution processing on the remaining features in turn to obtain the features h of all parts. n ;

[0053] Use the Conv1d layer with a convolution kernel size of 1 to further capture the concatenated features;

[0054] Perform a collaborative attention mechanism and pass it through a Conv1d layer with a convolution kernel size of 1 with the input. Preferably, use a two-dimensional convolution to extract the frequency domain features x f The specific method is:

[0055] A Conv2d layer with a convolution kernel size of 1 is used to transform the channel dimension of each spatial position and introduce nonlinear mapping;

[0056] Perform a Conv2d layer with a convolution kernel size of (3, 1), and obtain features through a batch normalization layer and a GELU function;

[0057] The acquired features are globally averaged and pooled to obtain the final features in the frequency domain.

[0058] The technical solution of the present invention has the following advantages:

[0059] A. The classification network model designed by the present invention breaks through the limitation of existing methods that are limited to either the time domain or the frequency domain. The present invention can effectively combine the time-frequency characteristics of ECG signals and use the graph structure to effectively mine the relationship between information from different perspectives of the heart, thereby learning a better 12-lead ECG signal representation and achieving more accurate results in cardiovascular disease diagnosis and quality assessment tasks.

[0060] B. The present invention innovatively proposes to learn a coarse-grained transfer classification model for signal quality assessment from a fine-grained model of ECG signal classification. First, a teacher network model is trained, and then a more efficient student network model is obtained by knowledge distillation. Finally, the student network model is fine-tuned using the transfer learning method to obtain a coarse-grained transfer classification model for signal quality assessment. The method of the present invention effectively breaks down the barriers between the two classification tasks and realizes a universal classification framework for 12-lead ECG.

[0061] C. The present invention can significantly improve the ability to extract features from ECG signals, thereby achieving more accurate signal quality assessment and disease detection. The method is helpful to evaluate the quality of collected signals and detect cardiovascular diseases, and can help diagnose and warn related diseases. Therefore, the method of the present invention has an extremely beneficial effect in improving cardiovascular health, and is expected to bring important technological breakthroughs and application value to the field of cardiovascular health. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] In order to more clearly illustrate the specific embodiments of the present invention, the drawings required for use in the specific embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0063] Figure 1 is a flow chart of a method for obtaining signal quality assessment from a fine-grained ECG classification model provided by the present invention;

[0064] Figure 2 It is the 12-lead ECG general classification framework and flow chart provided by the present invention;

[0065] Figure 3 It is a schematic diagram of the multi-view, cross-view and cross-domain network model provided by the present invention;

[0066] Figure 4 It is a schematic diagram of the composition of the multi-scale module provided by the present invention. DETAILED DESCRIPTION

[0067] The technical solution of the present invention will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0068] In order to fully explore the relationship between the two tasks, this paper designs a general and efficient ECG classification model framework that integrates knowledge distillation and transfer learning. Figure 1 and Figure 2 As shown, the present invention provides a method for obtaining signal quality assessment from a fine-grained ECG classification model, comprising the following steps:

[0069]

S01

[0070] The specific method of establishing ECG signal classification in the teacher network model is:

[0071]

S011

[0072] The 12-lead ECG provides a comprehensive view of the heart's electrical activity. It includes standard leads I, II, and III, pressurized unipolar limb leads aVR, aVL, and aVF, and unipolar chest wall leads V1, V2, V3, V4, V5, and V6. These leads help to fully evaluate the heart's health and function from different angles. The 12 leads can be divided into 6 views based on the relative position of the heart.

[0073] [S012] A propagation layer is used on each view to capture the relationship between the views, and a temporal feature x containing six view features is obtained. t .

[0074] The present invention constructs a multi-view and uses a novel propagation layer on the graph to capture the relationship between different views. Specifically:

[0075] The present invention does not directly regard all leads as a matrix, but regards each view as a node of a graph. For each view, a multi-scale module is used to capture the multi-scale features F n ,n∈[1,6]. The edges between the six nodes are constructed based on the correlation between each view measured by cosine similarity, as shown in formula (1).

[0076]

[0077] Since the input of the teacher network model during training is a batch of data, the present invention uses the average cosine similarity of the input batch data as the weight of the edge to obtain the adjacency matrix A. Then, a propagation layer is designed to process the information flow on spatially related nodes and capture the dependencies between nodes. This enables the model to effectively learn the feature correlation between different viewpoints, thereby extracting more effective features for subsequent feature fusion. The propagation layer contains two layers, such as Figure 3 Given the input features and adjacency matrix of the graph, h can be calculated using formula (2): k .

[0078]

[0079] where h k represents the input hidden state of the previous layer output, k is the depth, in Each element satisfies Since the cosine similarity Sim(F i ,Fj) is 1 when i=j, and the adjacency matrix A does not need to add the identity matrix I to represent the self-connection of the node. Then, in hk The layer normalization is performed on the top layer, and all input hidden states are connected and sent to the convolution layer with a convolution kernel size of 1 to obtain the final output hidden state of each node. Finally, the time domain feature x containing six view features is obtained t .

[0080]

S013

[0081] Since ECG signals are time series data with multiple scales in the time dimension, it is particularly important to capture features at different scales. The short-term features of the ECG can reflect instantaneous changes and periodic patterns, while the long-term features are more helpful in capturing the overall structure and long-term changes of the signal. Therefore, the present invention provides a multi-scale module based on ResNet (deep residual network) to capture the multi-scale features of ECG signals. The overall framework is as follows: Figure 4 As shown, the specific method is:

[0082] The ECG signal is input into the Conv1d layer for one-dimensional convolution processing;

[0083] After being processed by batch normalization layer, GELU function and two fine-tuned multi-scale convolutions, global average pooling is further performed to obtain multi-scale features.

[0084] The fine-tuned multi-scale convolution processing method used is:

[0085] First, a Conv1d layer is used, followed by a batch normalization layer and GELU function to capture the features of multi-scale convolutional neural network (CNN). Figure 4 In the multi-scale CNN shown in (b), a convolution block with a kernel size of 1 is first performed. Then, the feature map is divided into 4 parts. A fine-tuned model is used to design the multi-scale CNN. The first part x1 is input to a convolution block with a kernel size of 17 to obtain h1. Then, before the next part x2 is input to the convolution block, the feature is fine-tuned by formula (3).

[0086]

[0087] Among them, f(h n ) is shown in formula (4).

[0088] f(h n )=Sigmoid(Sum(h n ))(4)

[0089] Perform feature fine-tuning and convolution processing on the remaining features in turn to obtain the features h of all parts. n In this way, the features of the next part can be fine-tuned based on the deeper features of the previous part, and then input into the convolution block to extract more effective features. It is worth noting that all the features used to obtain h n The convolutional blocks of (n∈[1,4]) all have a kernel size of 17. Next, a Conv1d layer with a kernel size of 1 is used to further capture h n After that, the collaborative attention mechanism is executed and a jump connection with the input is made through a Conv1d with a kernel size of 1. After two multi-scale CNN blocks, global average pooling is performed to obtain the final features, that is, the multi-scale convolution features of the fine-tuned ECG signal are obtained.

[0090]

S014

[0091] Considering that the frequency domain features of ECG signals have also achieved good results in classification tasks, the present invention uses short-time Fourier transform (STFT, as shown in formula (5)) to convert the one-dimensional signal sequence into a two-dimensional spectrogram, and uses two-dimensional convolution to extract frequency domain features. Since the frequency domain obtained from STFT is in complex form, its absolute value is first taken to meet the requirement of using it as a neural network input.

[0092]

[0093] Specifically, a Conv2d layer with a convolution kernel size of 1 is used to transform the channel dimension of each spatial position and introduce nonlinear mapping to improve the network's expressiveness. Then, a Conv2d layer with a convolution kernel size of (3,1) is performed, followed by a batch normalization layer and a GELU function to obtain features. Next, global average pooling is performed to obtain the final feature x from the frequency domain. f .

[0094]

S015

[0095] In order to fuse the time domain features x t and frequency domain features x f , the present invention designs a fusion layer to fuse these features and effectively obtain cross-domain features. Time domain features x tSix features from all views are included. For each view, the present invention uses a fully connected layer with a Sigmoid function to map the features to dimension 1 as weights, as shown in formula (6).

[0096] α i =WX i +b,i∈[1,6] (6)

[0097] Where W and b are learnable parameters. i is the i-th view x i The fusion weight of , the fusion feature can be obtained by formula (7).

[0098]

[0099] Use Sigmoid function according to time domain characteristics Fine-tune frequency domain features x f , and finally add it to the time domain feature to get the final fusion feature x out , as shown in formula (8).

[0100]

[0101]

S016

[0102] When training the teacher network, we use Binary Cross Entropy with Logit Loss (BCEWithLogitsLoss in PyTorch) as the loss function L BCE .

[0103]

S02

[0104] In order to compress the model and obtain better performance at a lower computational cost, the present invention adopts knowledge distillation to train the student network model. In the student network model, the present invention regards all leads of ECG as one view and uses multi-scale blocks to capture the time domain encoding x t We also use short-time Fourier transform (STFT) to obtain the spectrogram of the ECG signal and use a convolutional neural network to capture the frequency domain encoding x f The multi-view and propagation layers are removed in the student network model. The fusion features of the input and output blocks are obtained by fine-tuning the time domain coding and frequency domain coding, as shown in formula (9).

[0105] x out =x t ×Sigmoid(x f ) (9)

[0106] In this way, the parameter scale of the student network model provided by the present invention is much smaller than that of the teacher network model. According to the process of knowledge distillation, the output probability distribution of the trained teacher network model is set to q t , and the output probability distribution of the untrained student network model is set to q s Then, a loss function combining KL divergence and binary cross entropy loss is adopted, as shown in formula (10).

[0107]

[0108] Among them, KL is the KL divergence loss, τ is the temperature parameter, α is the hyperparameter that balances the KL divergence and binary cross entropy loss, and y is the true label. By adopting this loss function to train the student network model, the knowledge of the teacher network model can be introduced into the training of the student network model, thereby improving the generalization performance of the student network model.

[0109]

S03

[0110] Considering that ECG signal classification for medical diagnosis is a fine-grained classification task, and a well-trained model can effectively extract deep representations of the ECG, the present invention uses transfer learning with fine-tuning to extend the model to coarse-grained quality assessment tasks. In this way, the trained model may have strong generalization ability and avoid overfitting in coarse-grained tasks. This can also effectively reduce training time and computational overhead.

[0111] In order to achieve transfer learning, the parameters of the trained student network model are first frozen, and an MLP classification head is redesigned to replace the original output block, such as Figure 4 During the training of the fine-tuning model, only the MLP classification head learns parameters, while other parameters in the network remain unchanged, which can effectively utilize the signal abstract representation learned in fine-grained tasks.

[0112] Before each dense layer, layer normalization is set, and after the last dense layer, a Sigmoid function is used for activation to obtain the probability that each sample belongs to the positive case. Since the coarse-grained task of quality assessment is usually a binary classification task, the present invention preferably uses binary cross entropy as the loss function.

[0113] Compared with the existing technology, the classification network model designed in the present invention breaks through the limitation of existing methods that are limited to either the time domain or the frequency domain. It can effectively combine the time-frequency characteristics of ECG signals and use the graph structure to effectively mine the relationship between information from different perspectives of the heart, thereby learning a better 12-lead ECG signal representation and achieving more accurate results in cardiovascular disease diagnosis and quality assessment tasks.

[0114] Anything not described in the present invention is applicable to the prior art.

[0115] Obviously, the above embodiments are merely examples for the purpose of clear explanation, and are not intended to limit the implementation methods. For those skilled in the art, other different forms of changes or modifications can be made based on the above description. It is not necessary and impossible to list all the implementation methods here. However, the obvious changes or modifications derived therefrom are still within the scope of protection of the present invention.

Claims

1. A method for obtaining signal quality assessment from fine-grained ECG classification models, It is characterized in that The steps include: Measure 12-lead electrocardiogram and establish a teacher network model for electrocardiogram signal classification; The knowledge distillation method is used to train the student network model to obtain a fine-grained student classification model for ECG signal classification. The transfer learning method is used to fine-tune the fine-grained student classification module and obtain a coarse-grained transfer classification model for signal quality assessment.

2. The method for obtaining signal quality assessment from a fine-grained ECG classification model according to claim 1, It is characterized in that The specific method of establishing ECG signal classification in the teacher network model is: The twelve-lead electrocardiogram is divided into six views according to the relative position of each lead to the heart; A propagation layer is used on each view to capture the relationship between the views, and the temporal feature x containing six view features is obtained. t ; Establish a multi-scale module to capture the multi-scale features of the ECG signal from the time domain of the ECG signal, and aggregate the multi-scale features of all views to obtain the aggregated time domain features The one-dimensional ECG signal sequence is converted into a two-dimensional spectrum using short-time Fourier transform, and the frequency domain features x are extracted using two-dimensional convolution. f ; The time domain features and frequency domain features x f Execute the cross-domain fusion mechanism to obtain the fusion feature x of the ECG signal out ; For the fusion feature x out The output block is constructed using layer normalization and fully connected layers to obtain fine-grained ECG signal classification results.

3. The method for obtaining signal quality assessment from a fine-grained ECG classification model according to claim 2, It is characterized in that The specific method of using the propagation layer on each view to capture the relationship between the views is: Treat each view as a node of the graph and measure the correlation between each view based on cosine similarity; The average cosine similarity of the input batch data is used as the edge weight to obtain the adjacency matrix A; given the propagation layer containing the input features of the view and the adjacency matrix, the following expression is used to calculate h k : where h k represents the input hidden state of the previous layer output, k is the depth, in Each element satisfies In h k The upper layer is normalized, all input hidden states are connected and sent to the convolution layer with a convolution kernel size of 1 to obtain the final output hidden state of each node, and the time domain feature x containing six view features is obtained. t .

4. The method for obtaining signal quality assessment from a fine-grained ECG classification model according to claim 2, It is characterized in that The specific method of using the knowledge distillation method to train the student network model and obtain a fine-grained student classification model for ECG signal classification is: The 12-lead ECG is considered as a view and a multi-scale module is used to capture the time domain encoding x from the time domain of the ECG signal. t ; The short-time Fourier transform is used to obtain the spectrum of the 12-lead ECG signal, and the convolutional neural network module is used to capture the frequency domain encoding x f ; The time domain code x t and frequency domain coding x f Execute the cross-domain fusion mechanism to obtain the fusion feature x of the ECG signal out ; For the fusion feature x out The output block is constructed using layer normalization and fully connected layers to obtain fine-grained ECG signal classification results.

5. The method for obtaining signal quality assessment from a fine-grained ECG classification model according to claim 4, It is characterized in that The transfer learning method is used to fine-tune the fine-grained student classification module. The specific method is: Freeze the trained student network model parameters; Build a fine-tuned classification model that combines multiple fully connected layers and multiple GELU functions, and fuse feature x out After layer normalization, the fully connected layer and GELU function in the fine-tuning classification model are used for multiple migration trainings. Finally, after a fully connected layer is trained, the Sigmoid function is used for activation to obtain the probability that the ECG signal is positive.

6. The method for obtaining signal quality assessment from a fine-grained ECG classification model according to claim 5, It is characterized in that In the teacher network model, the Sigmoid function is used according to the time domain characteristics. Fine-tune frequency domain features x f , and compare it with the time domain features Add together to get the final fusion feature x out , its expression: in: α i =WX i +b,i∈[1,6] W and b are learnable parameters; α i is the i-th view x i The fusion weight of .

7. The method for obtaining signal quality assessment from a fine-grained ECG classification model according to claim 5, It is characterized in that In the student network model, the fusion feature x out It is obtained by fine-tuning the time domain coding and frequency domain coding, and its expression is: x out =x t ×Sigmoid(x f ); The loss function that combines KL divergence and binary cross entropy loss during training is expressed as: Where:q t is the output probability distribution of the trained teacher network model, q s is the output probability distribution of the untrained student network model; KL is the KL divergence loss, τ is the temperature parameter, α is the hyperparameter that balances the KL divergence and binary cross entropy loss, and y is the true label; The student network model is trained by adopting the above loss function, and the knowledge of the teacher network model is introduced into the training of the student network model.

8. The method for obtaining signal quality assessment from a fine-grained ECG classification model according to any one of claims 2 to 7, It is characterized in that The multi-scale module based on ResNet is used to capture the multi-scale features of ECG signals. The specific method is: The ECG signal is input into the Conv1d layer for one-dimensional convolution processing; After being processed by batch normalization layer, GELU function and two fine-tuned multi-scale convolutions, global average pooling is further performed to obtain multi-scale features.

9. The method for obtaining signal quality assessment from a fine-grained ECG classification model according to claim 8, It is characterized in that The fine-tuned multi-scale convolution processing method used is: The input is first processed by a convolution block with a convolution kernel size of 1 to obtain a feature map; Divide the feature map into multiple parts; The first part x 1 Input into a convolution block with a kernel size of 17, and get h 1 ; For the second part x 2 Feature fine-tuning is performed according to the following expression, Among them, f(h n ) expression formula: f(h n )=Sigmoid(Sum(h n )) Then the second part x 2 Input into a convolution block with a kernel size of 17, and get h 2 ; Perform feature fine-tuning and convolution processing on the remaining features in turn to obtain the features h of all parts. n ; Use the Conv1d layer with a convolution kernel size of 1 to further capture the concatenated features; A collaborative attention mechanism is implemented, and a jump connection is made with the input through a Conv1d layer with a convolution kernel size of 1 to obtain the multi-scale convolution features of the fine-tuned ECG signal.

10. The method for obtaining signal quality assessment from a fine-grained ECG classification model according to claim 2, It is characterized in that Use 2D convolution to extract frequency domain features x f The specific method is: A Conv2d layer with a convolution kernel size of 1 is used to transform the channel dimension of each spatial position and introduce nonlinear mapping; Perform a Conv2d layer with a convolution kernel size of (3, 1), and obtain features through a batch normalization layer and a GELU function; The acquired features are globally averaged and pooled to obtain the final features in the frequency domain.

Citation Information

Cited By

  • Lightweight electrocardiogram diagnosis method and device based on generative adversarial network and distillation learning

    CN119577551A

  • Multi-mode heart and brain disease preliminary screening system based on manual feature guidance

    CN119760639A