ECG self-encoding method and system guided by semantic structure graph
Through the ECG autocoding method guided by semantic structure diagram, the semantic information and inherent structure information are integrated, and the problem of semantic information loss in electrocardiogram signal denoising processing is solved, and the feature extraction accuracy of ECG signals is improved and the accuracy of intelligent detection is improved.
Patent Information
- Application Number
- CN202410306801.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-18
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-03-18
AI Technical Summary
The prior art is difficult to retain semantic information in electrocardiogram signal denoising processing, resulting in insufficient feature extraction, affecting the accuracy of subsequent intelligent detection, especially in high-dimensional data, where a large number of unrelated features and weak-band features are deleted.
Using the ECG autoencoding method guided by semantic structure diagram, under supervised learning, the semantic structure diagram is constructed by fusing the semantic information and inherent structure information of the signal, and the encoding is carried out using a pre-trained automatic encoder to introduce semantic structure diagrams and suppression parameters. The matrix supervises the learning of hidden space features and retains key information of the ECG signal.
Effectively promote the precise feature distillation of ECG signals by subsequent intelligent algorithms, improve the positioning ability of deep machine learning algorithms to ECG signal targets, and enhance the accuracy of identification and analysis of electrocardiogram signal categories.
Smart Images

Figure CN118152914B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of machine learning of biological signal data, and in particular relates to an ECG self-encoding method and system guided by a semantic structure graph. Background Art
[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.
[0003] Medical diagnosis can identify the disease or condition suffered by patients and explain the development of their symptoms. However, with limited healthcare services and physician resources, the diagnostic process is often time-consuming and susceptible to subjective interpretation and differences between observers. Therefore, computer-assisted intervention in clinical diagnosis can improve the quality of the healthcare system and reduce costs. In recent years, with the development of deep learning, deep learning that integrates feature engineering tasks into learning tasks has provided an exciting way to address these needs and has also been widely used in biosignal recognition and detection. However, unlike media data such as images, text, and videos, biosignals have a much higher probability of recognition error than the above application scenarios. Taking electrocardiogram (ECG) signals as an example, once an error occurs in the detection, the result may have a fatal impact on the patient. Generally, the collected ECG signals are accompanied by noise such as electrode motion artifacts, muscle artifacts, and baseline drift. These noises will adversely affect the shape characteristics of the ECG signal, thus posing a challenge to feature engineering, so noise reduction processing is required. At present, most noise reduction methods are unsupervised, and the extracted features lack the original semantic information of the signal, which is not conducive to subsequent intelligent detection.
[0004] A normal cardiac electrical signal is a complex waveform depicted by an electrocardiogram oscilloscope. One cycle usually includes a P wave, a QRS complex wave, and a T wave. When the heart beats steadily, a typical ECG signal is formed according to a specific rule. Among them, the P wave is the first peak, which reveals the conduction process of the electrical impulse between the two atria of the heart. When the atria contract, blood is pumped rapidly into the ventricles, and then quickly relaxes. This step is critical to ensure normal blood flow. The electrical impulse is transmitted to the ventricles and recorded in the QRS complex wave. As an important part of the electrocardiogram, the QRS complex wave reflects the electrical activity of the heart. When the ventricular contraction ends, the T wave appears, indicating that the electrical impulse has stopped propagating and the ventricles have relaxed. The specific structure is as follows Figure 1 As shown. Electrocardiograms can be used to detect and observe various heart diseases and arrhythmias, helping doctors to promptly detect and treat potential health problems, thereby providing patients with better treatment and care. Therefore, electrocardiograms play an important role in the diagnosis and treatment of heart disease.
[0005] There are a large number of irrelevant features in high-dimensional ECG data, which makes it difficult for unsupervised machine learning technology to achieve high sensitivity and specificity at the same time. Moreover, after the noise reduction feature extraction process, some weak band features in the ECG may be deleted because they are not obvious, which will directly affect the detection accuracy of subsequent intelligent algorithms. Summary of the invention
[0006] In order to solve the above problems, the present invention proposes a semantic structure graph-guided ECG self-encoding method and system. Under supervised learning, the present invention performs self-encoding processing on the signal by fusing the semantic information and inherent structure information of the signal, and amplifies the bands related to semantic abnormalities. The ECG perception signal obtained after encoding can effectively promote the subsequent intelligent algorithm to perform feature distillation again, and facilitate the deep machine learning intelligent algorithm to accurately locate the target of the ECG signal, laying the foundation for accurate identification and analysis of ECG signal categories.
[0007] According to some embodiments, a first solution of the present invention provides a semantic structure diagram guided ECG self-encoding method, which adopts the following technical solution:
[0008] A semantic structure graph guided ECG self-encoding method, comprising:
[0009] Obtaining original electrocardiogram (ECG) signal;
[0010] The original electrocardiogram (ECG) signal is used to construct a similarity matrix of the original signal, and the label information corresponding to the original electrocardiogram (ECG) signal is used to construct a semantic similarity graph;
[0011] The similarity matrix and semantic similarity graph of the original signal are integrated to construct a semantic structure graph;
[0012] Based on the semantic structure graph, a pre-trained autoencoder is used for encoding to obtain an encoded ECG signal;
[0013] Among them, the loss function of the automatic encoder training introduces a semantic structure graph and an inhibition parameter matrix on the basis of the original loss function to supervise the learning of latent space features and retain the key information of the ECG signal.
[0014] Furthermore, the K nearest neighbor method is used to construct a similarity matrix of the original signal using the original electrocardiogram (ECG) signal.
[0015] Furthermore, the semantic similarity graph is constructed by using the label information corresponding to the original electrocardiogram (ECG) signal, specifically:
[0016] If two different raw ECG signals share a label, it is 1, otherwise it is zero;
[0017] If the label information corresponding to the original ECG signal is a one-hot vector, then when the product of the transpose of the label information and the label information corresponding to another original signal is greater than zero, it is 1;
[0018] A semantic similarity graph is constructed based on the above principles.
[0019] Furthermore, the similarity matrix and the semantic similarity graph of the fused original signal are used to construct a semantic structure graph, specifically:
[0020] if This means that the original signal x i and x j They are close neighbors and share the same label, which is an intra-class close neighbor relationship with the strongest similarity.
[0021] if Then it means x i and x j Sharing the same label but not being in a close neighbor relationship, they belong to a non-close neighbor relationship within the class, the similarity is not strong enough, and they belong to the original signal that needs to strengthen the similarity;
[0022] if Then x i and x j They are close neighbors but do not belong to the same category. This kind of situation belongs to the category where the similarity needs to be weakened;
[0023] if This means that the original signal x i and x j They are neither neighbors nor belong to the same category, so the similarity is 0;
[0024] in, is an element in the semantic similarity graph, is an element in the similarity matrix of the original signal.
[0025] Furthermore, the encoding is performed using a pre-trained autoencoder to obtain an encoded ECG signal, specifically:
[0026] Encoder Utilization It means that given an original signal x i , its potential characteristics z i It can be obtained by the following formula:
[0027]
[0028] in, Represents the original signal x i The k-dimensional potential representation of Represents the weights that need to be learned during the encoding process;
[0029] use The network output is represented by f, and the decoder function is represented by f θ Reconstructed Can be z i Decoded:
[0030]
[0031] Among them, θ represents the weight parameter that needs to be learned in the decoding process.
[0032] Furthermore, the loss function of the autoencoder training introduces a semantic structure graph and an inhibition parameter matrix based on the original loss function to supervise the learning of latent space features, specifically:
[0033]
[0034] Among them, γ,λ>0 are the hyperparameters of the semantic structure correction part and the regularization part respectively. is the loss function of the semantic structure graph module, is the binary cross entropy loss function, is the regularized loss function.
[0035] Furthermore, the semantic structure graph module loss function is defined as follows:
[0036]
[0037] in, ⊙ represents element product, semantic structure diagram Suppression parameter matrix Potential signal representation
[0038] The regularized loss function is specifically:
[0039]
[0040] Among them, the regularization term Row Sparsity Regularization
[0041] According to some embodiments, a second solution of the present invention provides an ECG self-encoding system guided by a semantic structure graph, which adopts the following technical solution:
[0042] A semantic structure graph guided ECG self-encoding system, comprising:
[0043] A signal acquisition module is configured to acquire an original electrocardiogram (ECG) signal;
[0044] A semantic structure graph construction module is configured to construct a similarity matrix of the original signal using the original electrocardiogram ECG signal, and to construct a semantic similarity graph using label information corresponding to the original electrocardiogram ECG signal;
[0045] The similarity matrix and semantic similarity graph of the original signal are integrated to construct a semantic structure graph;
[0046] A signal autoencoding module is configured to encode based on the semantic structure graph using a pre-trained autoencoder to obtain an encoded ECG signal;
[0047] Among them, the loss function of the automatic encoder training introduces a semantic structure graph and an inhibition parameter matrix on the basis of the original loss function to supervise the learning of latent space features and retain the key information of the ECG signal.
[0048] According to some embodiments, a third aspect of the present invention provides a computer-readable storage medium.
[0049] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of a semantic structure graph-guided ECG self-encoding method as described in the first aspect above.
[0050] According to some embodiments, a fourth aspect of the present invention provides a computer device.
[0051] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the steps in a semantic structure diagram guided ECG self-encoding method as described in the first aspect above are implemented.
[0052] Compared with the prior art, the present invention has the following beneficial effects:
[0053] The present invention provides a semantic structure graph guided ECG self-encoding method and system. Under supervised learning, the encoding process of the electrocardiogram (ECG) signal is supervised by fusing the semantic information and inherent structure information of the signal, so that the extracted code contains similar information of the same label and neighboring signals at the same time, and weakens other information to achieve signal noise reduction effect. The ECG perception signal obtained after encoding can effectively promote the subsequent intelligent algorithm to perform feature distillation again, and facilitate the deep machine learning intelligent algorithm to accurately locate the target of the ECG signal, laying the foundation for accurate identification and analysis of ECG signal categories. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0055] Figure 1 It is a flow chart of an ECG self-encoding method guided by a semantic structure graph described in an embodiment of the present invention;
[0056] Figure 2 It is a schematic diagram of the definition of each band of a standard ECG signal within one cycle described in an embodiment of the present invention;
[0057] Figure 3 is a network structure diagram of an autoencoder based on a semantic structure diagram in an embodiment of the present invention;
[0058] Figure 4 It is a visualized comparison diagram of the coded signal and the original signal extracted in the embodiment of the present invention. DETAILED DESCRIPTION
[0059] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.
[0060] It should be noted that the following detailed descriptions are all illustrative and intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.
[0061] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0062] In the absence of conflict, the embodiments of the present invention and the features of the embodiments may be combined with each other.
[0063] Embodiment 1
[0064] like Figure 1As shown, this embodiment provides an ECG self-encoding method guided by a semantic structure diagram. This embodiment uses the method applied to a server as an example. It can be understood that the method can also be applied to a terminal, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. The server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network servers, cloud communications, middleware services, domain name services, security services CDN, and big data and artificial intelligence platforms. The terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart speaker, a smart watch, etc., but is not limited to this. The terminal and the server can be directly or indirectly connected via wired or wireless communication, which is not limited in this application. In this embodiment, the method includes the following steps:
[0065] Obtaining original electrocardiogram (ECG) signal;
[0066] The original electrocardiogram (ECG) signal is used to construct a similarity matrix of the original signal, and the label information corresponding to the original electrocardiogram (ECG) signal is used to construct a semantic similarity graph;
[0067] The similarity matrix and semantic similarity graph of the original signal are integrated to construct a semantic structure graph;
[0068] Based on the semantic structure graph, a pre-trained autoencoder is used for encoding to obtain an encoded ECG signal;
[0069] Among them, the loss function of the automatic encoder training introduces a semantic structure graph and an inhibition parameter matrix on the basis of the original loss function to supervise the learning of latent space features and retain the key information of the ECG signal.
[0070] like Figure 2 As shown, given an ECG signal set in, represents an ECG signal of dimension m, Represents signal x i The corresponding label information.
[0071] In order to construct the ECG autoencoder, for the training data, we first construct a semantic structure graph based on the inherent structure of the original signal and the semantic similarity graph. The detailed process is as follows:
[0072] (1) First, use the original signal x i Construct the inherent structure graph. For simplicity, use K nearest neighbors to construct the similarity matrix of the original signal The definition is as follows:
[0073]
[0074] (2) Using the label information of the dataset Constructing a semantic similarity graph If the original signal x i and x j Share a label, then Otherwise, the value is 0. i is a one-hot vector, then when hour, The specific definitions are as follows:
[0075]
[0076] (3) Fusion of inherent similarity structure matrix and semantic similarity graph Constructing semantic structure graph The detailed process is as follows: If This means that the original signal x i and x j They are close neighbors and share the same label, which is an intra-class close neighbor relationship with the strongest similarity. Then it means x i and x j Sharing the same label but not being a close neighbor, they belong to a non-close neighbor relationship within the class, the similarity is not strong enough, and they belong to the original signal that needs to strengthen the similarity; if Then x i and x j They are close neighbors but do not belong to the same category. This situation needs to weaken the similarity. This means that the original signal x i and x j If they are neither neighbors nor belong to the same category, the similarity is 0. The specific definition is as follows:
[0077]
[0078] Among them, ∈>0 is the threshold parameter that controls the similarity.
[0079] Completed the semantic structure diagram You can use To constrain the extracted latent signal representation That is to keep Z as close as possible. However, due to the semantic structure graph Highly sparse, direct approximation may result in excessive loss of the potential signal Z, so the suppression parameter matrix is introduced Its definition is as follows:
[0080]
[0081] In order to facilitate optimization, the semantic structure graph module loss is defined as follows:
[0082]
[0083] in, ⊙ represents element-wise product.
[0084] This loss can then be used to correct the training of the autoencoder. The autoencoder network structure based on the semantic structure graph is as follows Figure 3 The essence is to add a semantic structure graph to the hidden layer of the autoencoder network to guide the output of the correction network.
[0085] An autoencoder is an unsupervised deep network model that learns the implicit features of input data for encoding and uses the learned new features to decode and reconstruct the original input data. This method uses the nonlinear characteristics of neural networks to effectively compress the original data, achieve feature dimensionality reduction and noise reduction, and apply the extracted new features to the supervised learning model to complete subsequent intelligent detection tasks. However, the latent space of the autoencoder lacks an interpretable and usable structure, and cannot ensure that the main structural information can be retained during the dimensionality reduction process, and may even suffer from severe overfitting. This also means that some latent space features may become meaningless after decoding.
[0086] In view of this, the semantic similarity matrix is constructed using label information to supervise the learning of latent space features, and the graph structure of the original data is introduced to maintain its inherent structure, so that the learned latent features can maintain the original similarity structure as much as possible, such as Figure 3 To achieve this goal, this embodiment adds formula (5) on the basis of the original autoencoder loss function. The specific formula is as follows:
[0087] Encoder Utilization It means that given an original signal x i , its potential characteristics z i It can be obtained from formula (6):
[0088]
[0089] in, Represents the original signal x i The k-dimensional potential representation of Represents the weights that need to be learned during the encoding process.
[0090] use The network output is represented by f, and the decoder function is represented by f θ Reconstructed Can be z i Decoded:
[0091]
[0092] Among them, θ represents the weight parameter that needs to be learned in the decoding process. The goal of the autoencoder is to reconstruct the original signal, that is, To achieve this goal, we need to define a loss function to measure the difference between the two
[0093] Two common loss functions for autoencoders are RMSE and binary cross entropy. The main difference between the two is that binary cross entropy has a stronger penalty for large errors and can average the reconstructed signal values. Therefore, binary cross entropy loss is used. To use this loss, this embodiment converts the original signal x i Perform normalization to [0,1]. The binary cross entropy loss (LCE) is defined as follows:
[0094]
[0095] In addition, regarding the activation function of the network, we use the sigmoid function for the input layer and the output layer, and the SERLU function for the middle layer, ie, Because the SERLU function has a self-regularization property, the output of SERLU can be statistically pushed to zero mean.
[0096] In addition, for the weight parameter Θ = {W 1 ,W 2 ,…,W layer}, this embodiment hopes to select the most discriminative feature through weight parameter, that is, if w i = 0, it means that the corresponding i-th feature does not contribute much to other features, so it can be sparsed, and the features with important significance are weighted. For this purpose, row sparse regularization is applied. In addition, in order to prevent the network from over-learning, a regularization term is also applied Therefore, the entire regularization loss can be defined as:
[0097]
[0098] Combining formulas (5), (8) and (9) we can get our final loss function:
[0099]
[0100] Among them, γ, λ>0 are the hyperparameters of the semantic structure correction part and the regularization part respectively.
[0101] Experimental verification part
[0102] In order to verify the effectiveness of the proposed semantic structure graph-based autoencoder, a public ECG dataset was used for verification. The experimental verification is divided into two tasks: clustering analysis using the extracted latent signal and recognition task using the latent signal. The k-means algorithm is used for clustering experiments and the nearest neighbor classifier is used for classification experiments to evaluate the performance of different autoencoder feature selection methods.
[0103] Dataset: The 2017 PhysioNet / CinC Challenge ECG dataset consists of 8528 ECG segments with durations ranging from 30 seconds to 60 seconds. The dataset is divided into four groups: normal sinus rhythm (N), atrial fibrillation (A), other rhythms (O), and noisy ECG (~).
[0104] In order to verify the discriminative ability of the autoencoder to extract ECG signals, 500 samples were randomly selected from 3000 samples, and the original signal and the encoded signal were visually compared. The results are shown in Figure 4 shown. Figure 4 The results show that by adding a semantic structure graph to guide learning in the potential signal output layer, the signal encoding process can incorporate information about adjacent nodes, connected edges, and global information, modulate the features of this layer, and then capture information about attributes of interest, making the final extracted encoding information more conducive to subsequent recognition and clustering tasks.
[0105] In order to simplify the training time, 3000 sampled signals are randomly selected for verification. During the experiment, the clustering and recognition results of the original signal and the data signal encoded by the autoencoder are compared, and the accuracy rate (ACC) is used to measure the performance. The clustering ACC is defined as:
[0106]
[0107] Among them, p i represents the true label, q i is the original signal x i The clustering label result of map(q i ) uses the Kuhn-Munkres algorithm to sort the cluster labels to find the best mapping function that matches the true value labels.
[0108] The clustering and classification results are shown in Table 1. The results show that the feature engineering performed by the proposed semantic structure autoencoder can not only effectively reduce the feature dimension, but also effectively improve the performance of clustering and classification. This is due to the fact that the semantic structure autoencoder can effectively capture more discriminative features by maintaining the structural information and semantic information of the original signal. It can be seen that the proposed autoencoder uses all features with different weights to nonlinearly represent each feature. At the same time, by minimizing the reconstruction error and regularizing the semantic structure graph, a subset of observed features that retains the inherent structural information and semantic confidence of the original data is obtained.
[0109] Table 1 Experimental structure comparison
[0110] Task Original Features Autoencoder Sparse Autoencoder Semantic Structure Graph Sparse Autoencoder Clustering (ACC%±std) 44.9±2.9 45.5±0.3 45.3±1.6 47.7±6.4 Classification(ACC%) 69.9 72.1 72.2 72.7
[0111] Embodiment 2
[0112] This embodiment provides an ECG self-encoding system guided by a semantic structure graph, including:
[0113] A signal acquisition module is configured to acquire an original electrocardiogram (ECG) signal;
[0114] A semantic structure graph construction module is configured to construct an inherent similarity structure matrix using the original electrocardiogram ECG signal, and to construct a semantic similarity graph using label information corresponding to the original electrocardiogram ECG signal;
[0115] The inherent similarity structure matrix and semantic similarity graph are integrated to construct the semantic structure graph;
[0116] A signal autoencoding module is configured to encode based on the semantic structure graph using a pre-trained autoencoder to obtain an encoded ECG signal;
[0117] Among them, the loss function of the automatic encoder training introduces a semantic structure graph and an inhibition parameter matrix on the basis of the original loss function to supervise the learning of latent space features and retain the key information of the ECG signal.
[0118] The examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the contents disclosed in the above embodiment 1. It should be noted that the above modules as part of the system can be executed in a computer system such as a set of computer executable instructions.
[0119] The description of each embodiment in the above embodiments has different emphases. For parts not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0120] The proposed system can be implemented in other ways. For example, the system embodiment described above is only illustrative, and the division of the modules is only a logical function division. In actual implementation, there may be other division methods, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed.
[0121] Embodiment 3
[0122] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps of the ECG self-encoding method guided by a semantic structure graph as described in the first embodiment above are implemented.
[0123] Embodiment 4
[0124] This embodiment provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps in the ECG self-encoding method guided by a semantic structure graph as described in the first embodiment above are implemented.
[0125] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.
[0126] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0127] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0128] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0129] A person skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.
[0130] Although the above describes the specific implementation mode of the present invention in conjunction with the accompanying drawings, it is not intended to limit the scope of protection of the present invention. Those skilled in the art should understand that various modifications or variations that can be made by those skilled in the art on the basis of the technical solution of the present invention without creative work are still within the scope of protection of the present invention.
Claims
1. A semantic structure graph guided ECG self-encoding method, characterized in that: include: Obtaining original electrocardiogram (ECG) signal; The original electrocardiogram (ECG) signal is used to construct a similarity matrix of the original signal, and the label information corresponding to the original electrocardiogram (ECG) signal is used to construct a semantic similarity graph, specifically: Given an ECG signal set in, represents an ECG signal with dimension m, y i ∈N represents the signal x i The corresponding label information; Using the original signal x i Construct the inherent structure graph and use K nearest neighbors to construct the similarity matrix of the original signal The definition is as follows: Using the label information y of the dataset i ∈N constructs a semantic similarity graph If the original signal x i and x j Share a label, then Otherwise, the value is 0. If the label y i is a one-hot vector, then when hour, The specific definitions are as follows: The similarity matrix and semantic similarity graph of the original signal are integrated to construct a semantic structure graph, which is as follows: Fusion Similarity Matrix and semantic similarity graph Constructing semantic structure graph in, is an element in the semantic similarity graph, is an element in the similarity matrix of the original signal; if This means that the original signal x i and x j They are both close neighbors and share the same label, which is an intra-class close neighbor relationship with the strongest similarity; if Then it means x i and x j Sharing the same label but not being a close neighbor, they belong to a non-close neighbor relationship within the class, the similarity is not strong enough, and they belong to the original signal that needs to strengthen the similarity; if Then x i and x j They are close neighbors but do not belong to the same category. This situation needs to weaken the similarity. This means that the original signal x i and x j If they are neither neighbors nor belong to the same category, the similarity is 0. The specific definition is as follows: Among them, ∈>0 is the threshold parameter for controlling similarity; using To constrain the extracted latent signal representation Therefore, the loss function of the semantic structure graph module is defined as follows: in, ⊙ represents element-wise product, suppressing the parameter matrix Potential signal representation Based on the semantic structure graph, a pre-trained autoencoder is used to encode and obtain the encoded ECG signal; Among them, the loss function of the automatic encoder training introduces a semantic structure graph and an inhibition parameter matrix on the basis of the original loss function to supervise the learning of latent space features and retain the key information of the ECG signal.
2. The ECG self-encoding method guided by a semantic structure graph as claimed in claim 1, characterized in that: The pre-trained autoencoder is used for encoding to obtain the encoded ECG signal, specifically: Encoder Utilization It means that given an original signal x i , its potential characteristics z i Obtained by the following formula: in, Represents the original signal x i The k-dimensional potential representation of Represents the weights that need to be learned during the encoding process; use The network output is represented by f, and the decoder function is represented by f θ Reconstructed By z i Decoded: Among them, θ represents the weight parameter that needs to be learned in the decoding process.
3. The ECG self-encoding method guided by a semantic structure graph as claimed in claim 1, characterized in that: The loss function of the autoencoder training introduces a semantic structure graph and a suppression parameter matrix based on the original loss function to supervise the learning of latent space features, specifically: Among them, γ,λ>0 are the hyperparameters of the semantic structure correction part and the regularization part respectively. is the semantic structure graph module loss function, is the binary cross entropy loss function, is the regularized loss function.
4. A semantic structure graph guided ECG self-encoding method as claimed in claim 3, characterized in that: The regularized loss function is specifically: Among them, the regularization term Row Sparsity Regularization 5. A semantic structure graph guided ECG self-encoding system, characterized in that: include: A signal acquisition module is configured to acquire an original electrocardiogram (ECG) signal; The semantic structure graph construction module is configured to construct a similarity matrix of the original signal using the original electrocardiogram ECG signal, and to construct a semantic similarity graph using the label information corresponding to the original electrocardiogram ECG signal, specifically: Given an ECG signal set in, represents an ECG signal with dimension m, y i ∈N represents the signal x i The corresponding label information; Using the original signal x i Construct the inherent structure graph and use K nearest neighbors to construct the similarity matrix of the original signal The definition is as follows: Using the label information y of the dataset i ∈N constructs a semantic similarity graph If the original signal x i and x j Share a label, then Otherwise, the value is 0. If the label y i is a one-hot vector, then when hour, The specific definitions are as follows: The similarity matrix and semantic similarity graph of the original signal are integrated to construct a semantic structure graph, which is as follows: Fusion Similarity Matrix and semantic similarity graph Constructing semantic structure graph in, is an element in the semantic similarity graph, is an element in the similarity matrix of the original signal; if This means that the original signal x i and x j They are both close neighbors and share the same label, which is an intra-class close neighbor relationship with the strongest similarity; if Then it means x i and x j Sharing the same label but not being a close neighbor, they belong to a non-close neighbor relationship within the class, the similarity is not strong enough, and they belong to the original signal that needs to strengthen the similarity; if Then x i and x j They are close neighbors but do not belong to the same category. This situation needs to weaken the similarity. This means that the original signal x i and x j If they are neither neighbors nor belong to the same category, the similarity is 0. The specific definition is as follows: Among them, ∈>0 is the threshold parameter for controlling similarity; using To constrain the extracted latent signal representation Therefore, the loss function of the semantic structure graph module is defined as follows: in, ⊙ represents element-wise product, suppressing the parameter matrix Potential signal representation A signal autoencoding module is configured to encode based on the semantic structure graph using a pre-trained autoencoder to obtain an encoded ECG signal; Among them, the loss function of the automatic encoder training introduces a semantic structure graph and an inhibition parameter matrix on the basis of the original loss function to supervise the learning of latent space features and retain the key information of the ECG signal.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps in the ECG self-encoding method guided by a semantic structure graph as described in any one of claims 1 to 4 are implemented.
7. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps in the ECG self-encoding method guided by a semantic structure graph as described in any one of claims 1-4 are implemented.
Citation Information
Patent Citations
Deep hash image retrieval method fusing semantic information and multi-level similarity
CN109977250A
Vertical federated learning defense method based on auto-encoder
CN112464290A
Computational simulations of anatomical structures and body surface electrode positioning
CN112639998A
Emotion classification method
CN112686056A
Electrocardio identity recognition method and system based on multi-feature collaborative non-negative matrix factorization
CN113221736A
