Lead signal correction method and device, equipment, storage medium and program product
By time segmenting and correcting the ECG signal, and using signal segments without missing or interference to fit and correct the missing or interfered signal, the problem of low reliability of lead signals in clinical applications is solved and improved Accuracy and efficiency of ECG analysis.
Patent Information
- Application Number
- CN202310334997.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-28
- Publication Date
- 2024-10-01
AI Technical Summary
During the clinical ECG collection process, the lead signal may be temporarily or permanently missing or interfered by electrodes falling off the lead equipment or human factors, which affects the doctor's judgment and analysis of the lead ECG, resulting in poor reliability of the lead signal. Low.
By dividing multiple lead signals according to time, the missing or interfered signal segments are determined, and other lead signal segments without missing or interference are used for correction, and the least squares method or network model is used for fitting and training. Correct target signal segments in real time.
It improves the reliability of lead signals, enhances the accuracy and efficiency of electrocardiogram analysis, and meets personalized signal correction needs.
Smart Images

Figure CN118733957A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of signal processing technology, and in particular to a lead signal correction method, device, equipment, storage medium and program product. Background Art
[0002] Lead ECG is widely used in the diagnosis of patients. For example, the 12-lead ECG includes three limb lead signals, three pressurized limb lead signals, and six precordial lead signals. Among them, the three limb lead signals include lead I, lead II, and lead III; the three pressurized limb lead signals include AVR lead signal, AVL lead signal, and AVF lead signal; and the six precordial lead signals include V1 lead signal, V2 lead signal, V3 lead signal, V4 lead signal, V5 lead signal, and V6 lead signal. The 12-lead ECG can describe lesions in different parts of the heart. For example, for patients with acute myocardial infarction, the 12-lead ECG can be used to determine the location of blood vessel blockage, thereby achieving further treatment.
[0003] However, in the process of clinical ECG acquisition, the lead signal may be lost temporarily or for a long time due to the electrode detachment of the lead device or human factors, or the lead signal may be disturbed temporarily or for a long time, resulting in unclean lead signal, which affects the doctor's judgment and analysis of the lead ECG. Therefore, the lead signal obtained by clinical ECG acquisition currently has the problem of low reliability. Summary of the invention
[0004] Based on this, it is necessary to provide a lead signal correction method, device, equipment, storage medium and program product that can improve the reliability of lead signals in response to the above technical problems.
[0005] In a first aspect, the present application provides a lead signal correction method, the method comprising:
[0006] Dividing multiple lead signals of the object to be detected according to time to obtain signal segments corresponding to multiple time periods;
[0007] Determine a target signal segment and a target time period corresponding to the target signal segment according to the signal segment; the target signal segment includes a missing signal segment and / or an interfered signal segment;
[0008] The target signal segment is corrected according to a signal segment of at least one other lead signal corresponding to the target time period and a signal segment corresponding to other time periods in the lead signal where the target signal segment is located; wherein the signal segment of at least one other lead signal is a signal segment without missing parts and a signal segment without interference.
[0009] In one embodiment, the correcting the target signal segment according to at least one signal segment of other lead signals corresponding to the target time period and signal segments corresponding to other time periods in the lead signal where the target signal segment is located comprises:
[0010] determining a target correction model according to a first quantity of the at least one other lead signal;
[0011] The target signal segment is corrected according to the target correction model, a signal segment of at least one other lead signal corresponding to the target time period, and signal segments corresponding to other time periods in the lead signal where the target signal segment is located.
[0012] In one embodiment, determining a target correction model according to a first quantity of the at least one other lead signal comprises:
[0013] determining at least one correction model according to a second number of the plurality of lead signals;
[0014] The target correction model is determined from the at least one correction model according to the first number.
[0015] In one embodiment, the target correction model includes a least squares model, and the construction process of the least squares model includes:
[0016] Determine the coefficient to be fitted according to at least one signal segment sample of other lead signals corresponding to the target time period sample, signal segment samples corresponding to other time periods in the lead signal where the target signal segment sample is located, and the target signal segment sample;
[0017] The least squares model is determined according to the coefficients to be fitted.
[0018] In one embodiment, the target correction model includes a target network model, and the construction process of the target network model includes:
[0019] The preset initial network model is trained according to the signal segment sample of at least one other lead signal, the signal segment samples corresponding to other time periods in the lead signal where the target signal segment sample is located, and the target signal segment sample to obtain the target network model.
[0020] In one of the embodiments, the signal segment includes at least one heart beat cycle.
[0021] In a second aspect, the present application further provides a lead signal correction device, the device comprising:
[0022] A segmentation module, used for segmenting multiple lead signals of the object to be detected according to time, to obtain signal segments corresponding to multiple time periods;
[0023] A first determination module is used to determine a target signal segment and a target time period corresponding to the target signal segment according to the signal segment; the target signal segment includes a missing signal segment and / or an interfered signal segment;
[0024] A correction module is used to correct the target signal segment according to a signal segment of at least one other lead signal corresponding to the target time period and a signal segment corresponding to other time periods in the lead signal where the target signal segment is located; wherein the signal segment of at least one other lead signal is a signal segment without missing or interference.
[0025] In a third aspect, the present application further provides a computer device, the computer device comprising a memory and a processor, the memory storing a computer program, and the processor implementing the following steps when executing the computer program:
[0026] Dividing multiple lead signals of the object to be detected according to time to obtain signal segments corresponding to multiple time periods;
[0027] Determine a target signal segment and a target time period corresponding to the target signal segment according to the signal segment; the target signal segment includes a missing signal segment and / or an interfered signal segment;
[0028] The target signal segment is corrected according to a signal segment of at least one other lead signal corresponding to the target time period and a signal segment corresponding to other time periods in the lead signal where the target signal segment is located; wherein the signal segment of at least one other lead signal is a signal segment without missing parts and a signal segment without interference.
[0029] In a fourth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0030] Dividing multiple lead signals of the object to be detected according to time to obtain signal segments corresponding to multiple time periods;
[0031] Determine a target signal segment and a target time period corresponding to the target signal segment according to the signal segment; the target signal segment includes a missing signal segment and / or an interfered signal segment;
[0032] The target signal segment is corrected according to a signal segment of at least one other lead signal corresponding to the target time period and a signal segment corresponding to other time periods in the lead signal where the target signal segment is located; wherein the signal segment of at least one other lead signal is a signal segment without missing parts and a signal segment without interference.
[0033] In a fifth aspect, the present application further provides a computer program product, the computer program product comprising a computer program, which implements the following steps when executed by a processor:
[0034] Dividing multiple lead signals of the object to be detected according to time to obtain signal segments corresponding to multiple time periods;
[0035] Determine a target signal segment and a target time period corresponding to the target signal segment according to the signal segment; the target signal segment includes a missing signal segment and / or an interfered signal segment;
[0036] The target signal segment is corrected according to a signal segment of at least one other lead signal corresponding to the target time period and a signal segment corresponding to other time periods in the lead signal where the target signal segment is located; wherein the signal segment of at least one other lead signal is a signal segment without missing parts and a signal segment without interference.
[0037] The lead signal correction method, device, equipment, storage medium and program product described above divide the multiple lead signals of the object to be detected by time to obtain signal segments corresponding to multiple time periods, determine the target signal segment and the target time period corresponding to the target signal segment according to the signal segment, and correct the target signal segment according to the signal segment of at least one other lead signal corresponding to the target time period and the signal segments corresponding to other time periods in the lead signal where the target signal segment is located, wherein the target signal segment includes missing signal segments and / or interfered signal segments, and the signal segment of at least one other lead signal is a non-missing signal segment and a non-interference signal segment. In the embodiment of the present application, the target signal segment can be corrected in real time using the non-missing signal segment and the non-interference signal segment, and the target signal segment of the object to be detected can be corrected according to the signal segment of at least one other lead signal of the object to be detected acquired in real time, so as to meet the personalized requirements. BRIEF DESCRIPTION OF THE DRAWINGS
[0038] Figure 1 A diagram showing an application environment of a lead signal correction method in an embodiment;
[0039] Figure 2 is an internal structure diagram of a computer device in one embodiment;
[0040] Figure 3 is a schematic flow chart of a lead signal correction method in one embodiment;
[0041] Figure 4 is a schematic diagram of 12-lead signals in one embodiment;
[0042] Figure 5 is a schematic diagram of a lead signal including a missing signal segment in one embodiment;
[0043] Figure 6 is a schematic diagram of a lead signal including a disturbed signal segment in one embodiment;
[0044] Figure 7 is a schematic diagram of a process of correcting a target signal segment in one embodiment;
[0045] Figure 8 is a schematic diagram of a lead signal after correction in one embodiment;
[0046] Fig. 9 is a schematic diagram of a lead signal after correction in another embodiment;
[0047] Fig.10 A schematic diagram of superimposed lead signals in one embodiment;
[0048] Fig.11 A schematic diagram of superimposed lead signals in another embodiment;
[0049] Fig.12 A schematic diagram of a process for determining a target correction model in one embodiment;
[0050] Fig.13 is a schematic diagram of 12-lead signals in another embodiment;
[0051] Fig.14 A schematic diagram of a process of constructing a target network model during an acquisition process in an embodiment;
[0052] Fig.15 A schematic diagram of a signal segment in one embodiment;
[0053] Fig.16 FIG. 4 is a structural block diagram of a lead signal correction device in one embodiment. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0055] In 1842, French scientist Mattenci first discovered the electrical activity of the heart; in 1872, Muirhead recorded the electrical signal of the heart's fluctuations. In 1885, Dutch physiologist W. Einthoven first recorded the ECG waveform from the body surface, using a capillary electrometer at the time, which was improved to a string galvanometer in 1910. This opened up the history of surface ECG recording. In 1924, Einthoven won the Nobel Prize in Medicine and Biology. After more than 100 years of development, today's ECG machines are becoming more and more perfect.
[0056] The lead signal correction method provided in the embodiment of the present application can be applied to Figure 1 The application environment shown in FIG. 1 includes an ECG acquisition system, which includes a computer device 101 and a lead device 102. The lead electrodes in the lead device 102 are attached to the limbs and chest of the subject to be detected, so as to obtain the lead signal. The computer device can be a server, and its internal structure can be as shown in FIG. Figure 2 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store relevant data of the lead signal. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a lead signal correction method is implemented. The server can be implemented as an independent server or a server cluster consisting of multiple servers.
[0057] Those skilled in the art will understand that Figure 2 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0058] In one embodiment, Figure 3 As shown, a lead signal correction method is provided, which is applied to Figure 2 The computer device in the example is used to illustrate, including the following steps:
[0059] S301, dividing a plurality of lead signals of a subject to be detected according to time to obtain signal segments corresponding to a plurality of time periods.
[0060] Among them, the multiple lead signals can be 3-lead signals, 5-lead signals, 6-lead signals, 15-lead signals, 16-lead signals, 18-lead signals, 21-lead signals, etc. Figure 4 , which is a schematic diagram of 12-lead signals, including 6 limb leads (I, II, III, AVR, AVL, AVF) and 6 chest leads (V1~V6).
[0061] In this embodiment, the multiple lead signals of the detected object are segmented by time, and the segmentation can be performed at the same time interval, and the time lengths of the signal segments corresponding to the multiple time periods are the same. For example, there are 3 lead signals, and the segmentation is performed every 10 seconds, and the time lengths of the multiple signal segments are all 10 seconds. It can also be performed at any time interval, and the time lengths of the signal segments corresponding to the multiple time periods are different. For example, there are 3 lead signals, the time interval between the first segmentation and the second segmentation is 5 seconds, and the time interval between the second segmentation and the third segmentation is 7 seconds. The time lengths of the three signal segments obtained by the first segmentation and the second segmentation are 5 seconds, and the time lengths of the three signal segments obtained by the second segmentation and the third segmentation are 7 seconds.
[0062] S302, determining a target signal segment and a target time period corresponding to the target signal segment according to the signal segment; the target signal segment includes a missing signal segment and / or an interfered signal segment.
[0063] The target signal segment includes a missing signal segment and / or an interfered signal segment. Figure 5 As shown, Figure 5 FIG. 1 is a schematic diagram of a lead signal including missing signal segments in an embodiment, including the case where the electrode is momentarily detached and is detached for a long time, resulting in signal loss; Figure 6 As shown, Figure 6 FIG. 1 is a schematic diagram of a lead signal including a disturbed signal segment in an embodiment, wherein the fluctuation of the lead signal in the disturbed signal segment is abnormal.
[0064] In this embodiment, a neural network may be used to identify the features of each signal segment, determine a target signal segment, and obtain a corresponding target time period according to the target signal segment.
[0065] In a possible implementation, the amplitude change of the lead signal can be determined point by point based on the characteristic information of the missing signal segment and / or the interfered signal segment. If the amplitude of the lead signal in the signal segment is all zero, the signal segment is considered to be a missing signal segment. If the amplitude of the lead signal fluctuates continuously between a first preset amplitude and a second preset amplitude, the signal segment is considered to be an interfered signal segment.
[0066] S303, correcting the target signal segment according to a signal segment of at least one other lead signal corresponding to the target time period and a signal segment corresponding to other time periods in the lead signal where the target signal segment is located; wherein the signal segment of at least one other lead signal is a signal segment without missing or interference.
[0067] Optionally, correcting the target signal segment may include filling in missing signal segments and updating and replacing interfered signal segments.
[0068] In this embodiment, the signal segments of at least one other lead signal corresponding to the target time period and the signal segments corresponding to other time periods in the lead signal where the target signal segment is located can be fitted to obtain a new target signal segment, and the target signal segment can be corrected using the new target signal segment.
[0069] In a possible implementation, a signal segment that is closest to the target signal segment in time among the signal segments corresponding to other time periods in the lead signal where the target signal segment is located can also be used as a candidate signal segment, and the candidate signal segment can be adjusted by using the signal segment of at least one other lead signal corresponding to the target time period to obtain a new target signal segment, and the target signal segment can be corrected using the new target signal segment.
[0070] In the lead signal correction method described above, multiple lead signals of the object to be detected are divided by time to obtain signal segments corresponding to multiple time periods, and a target signal segment and a target time period corresponding to the target signal segment are determined according to the signal segment, so that the target signal segment is corrected according to the signal segment of at least one other lead signal corresponding to the target time period, and the signal segments corresponding to other time periods in the lead signal where the target signal segment is located, wherein the target signal segment includes missing signal segments and / or interfered signal segments, and the signal segment of at least one other lead signal is a non-missing signal segment and a non-interference signal segment. In the embodiment of the present application, the target signal segment can be corrected in real time using the non-missing signal segment and the non-interference signal segment, and the target signal segment of the object to be detected can be corrected according to the signal segment of at least one other lead signal of the object to be detected acquired in real time, so as to meet personalized requirements.
[0071] Figure 7 FIG. 1 is a schematic diagram of a process for correcting a target signal segment in an embodiment. Figure 7 As shown, the embodiment of the present application relates to a possible implementation method of how to correct a target signal segment according to a signal segment of at least one other lead signal corresponding to the target time period and a signal segment corresponding to other time periods in the lead signal where the target signal segment is located, including the following steps:
[0072] S701, determining a target correction model according to a first quantity of at least one other lead signal.
[0073] The first number of at least one other lead signal is the number of lead signals without missing leads and lead signals without interference.
[0074] Optionally, the target correction model can be a machine learning algorithm, a neural network, a linear transformation method, etc.
[0075] In this embodiment, there is a corresponding relationship between the first quantity and the correction model, and the corresponding target correction model can be determined based on the first quantity; there may also be a preliminary corresponding relationship between the first quantity and the correction model, and the target correction model can be determined based on the corresponding relationship between the preliminary corresponding relationship and the type of at least one other lead signal.
[0076] S702, correcting the target signal segment according to the target correction model, the signal segment of at least one other lead signal corresponding to the target time period, and the signal segments corresponding to other time periods in the lead signal where the target signal segment is located.
[0077] In this embodiment, the signal segment of at least one other lead signal corresponding to the target time period and the signal segments corresponding to other time periods in the lead signal where the target signal segment is located can be input into the target correction model to obtain a new target signal segment, and the target signal segment is replaced with the new target signal segment. Figure 8 and Fig. 9 , Fig.10 , Fig.11 As shown, Figure 8 For the above Figure 6 The corresponding schematic diagram of the corrected lead signal, Fig. 9 For the above Figure 7 The corresponding schematic diagram of the corrected lead signal, Fig.10 For the above Figure 6 and Figure 8 Schematic diagram of the superimposed lead signal. Fig.11 for Figure 7 and Fig. 9 The schematic diagram of the superimposed lead signals clearly shows the difference between the corrected target signal segment and the target signal segment.
[0078] In an embodiment of the present application, a target correction model is determined based on a first number of at least one other lead signal, and a target signal segment is corrected based on the target correction model, a signal segment of at least one other lead signal corresponding to a target time period, and signal segments corresponding to other time periods in the lead signal where the target signal segment is located. The target correction model is used to correct the target signal segment during the process of collecting the lead signal, thereby improving the correction efficiency.
[0079] Fig.12 FIG. 1 is a flow chart of determining a target calibration model in one embodiment. Fig.12 As shown, the embodiment of the present application relates to a possible implementation method of how to determine a target correction model according to a first quantity of at least one other lead signal, including the following steps:
[0080] S1201, determining at least one correction model according to a second number of the plurality of lead signals.
[0081] In this embodiment, according to the second number of the plurality of lead signals, the correction model can be determined by permutation and combination, such as Fig.13 As shown, there are 12 lead signals, namely I, II, III, V1, V3, V4, V5, V6, AVL, AVR, and AVF lead signals. Signal segment 131 and signal segment 132 are target signal segments. Taking signal segment 131 as an example, the correction model of signal segment 131 is determined.
[0082] Since lead signal III, lead signal AVL, AVR, AVF are calculated and determined based on lead signal I and lead signal II, in the following calculation method, if lead signal I and lead signal II exist at the same time, lead signal III, lead signal AVL, AVR, AVF exist by default. The correction model can include the following cases:
[0083] Case 1: Correction model 1 = coefficient 01*[I, II, V1, V3, V4, V5, V6 of the target time period + V2 of other time periods];
[0084] The second case: Correction model 2 = coefficient 02*[I, II, V1, V3, V4, V5 of the target time period + V2 of other time periods]; Correction model 3 = coefficient 03*[I, II, V1, V3, V4, V6 of the target time period + V2 of other time periods]; Correction model 4 = coefficient 04*[I, II, V1, V3, V5, V6 of the target time period + V2 of other time periods]; Correction model 5 = coefficient 05*[I, II, V1, V4, V5, V6 of the target time period + V2 of other time periods]; Correction model 6 = coefficient 06*[I, II, V3, V4, V5, V6 of the target time period + V2 of other time periods]; ...;
[0085] The third case: Correction model 7 = coefficient 07*[I, II, V1, V3, V4 of the target time period + V2 of other time periods]; ...;
[0086] The fourth case: Correction model 8 = coefficient 08*[I, II, V1, V3 of the target time period + V2 of other time periods]; ...;
[0087] The fifth case: Correction model 9 = coefficient 09*[I, II, V1 of the target time period + V2 of other time periods]; ...;
[0088] The sixth case: Correction model 10 = coefficient 10*[I, II of the target time period + V2 of other time periods]; ...;
[0089] The seventh case: Correction model 10 = coefficient 10*[I of target time period + V2 of other time periods]; ......;
[0090] Case 8: Correction model 10 = coefficient 10*[V2 of other time periods].
[0091] It should be noted that the embodiments of the present application only list some possible situations of the correction model determined by the 12 lead signals in various situations, but not all situations of the correction model determined by the 12 lead signals.
[0092] S1202: Determine a target correction model from at least one correction model according to the first quantity.
[0093] In this embodiment, it can be determined that the correction model to be called belongs to the classification in the above S1201 according to the first number. For example, if the first number is 11, the target correction model is the correction model 1 corresponding to the above first case. If the first number is 10, it can be determined that the target correction model is one of the models in the above second case, and it is necessary to further determine the types of the 10 lead signals to determine the corresponding target correction model.
[0094] In the embodiment of the present application, at least one correction model is determined according to the second number of the plurality of lead signals, and the target correction model is determined from the at least one correction model according to the first number. In the embodiment of the present application, all possible correction models are determined according to the plurality of lead signals, and when the lead signal is missing or interfered, only the corresponding model needs to be called from the correction model, so as to quickly correct the target signal segment.
[0095] In one embodiment, the target calibration model building process includes the following two cases:
[0096] The first case: determining coefficients to be fitted based on at least one signal segment sample of other lead signals corresponding to the target time period sample, signal segment samples corresponding to other time periods in the lead signal where the target signal segment sample is located, and the target signal segment sample; determining a least squares model based on the coefficients to be fitted.
[0097] Among them, in the above-mentioned embodiment, the target signal segment includes a missing signal segment and / or an interfered signal segment; and in this embodiment, during the construction of the target correction model, the target signal segment samples are signal segments without missing segments and signal segments without interference. That is, the signal segment samples of at least one other lead signal corresponding to the target time period sample, the signal segment samples corresponding to other time periods in the lead signal where the target signal segment sample is located, and the target signal segment samples are all signal segments without missing segments and signal segments without interference. According to the signal segment samples of at least one other lead signal corresponding to the target time period sample, the signal segment samples corresponding to other time periods in the lead signal where the target signal segment sample is located, the new target signal segment samples of the correction model under different parameters are determined. When the error between the new target signal segment sample and the target signal segment sample is less than the preset error, the parameter optimization of the correction model is completed, and the target correction model is obtained.
[0098] In this embodiment, the least squares criterion is used to perform linear modeling and linear reconstruction on the lead signal. The linear regression equation can be obtained by the least squares method, assuming that:
[0099] y=β0+β1x1+β2x2+…+β k x k +ε (1)
[0100] For y and x1, x2, ..., x k At the same time, make n independent observations to obtain n groups of observation values (x t1 , x t2 , ..., x tk ), t=1,2,...,n(n>k+1), they satisfy the relationship:
[0101] y=β0+β1x t1 +β2x t2 +…+β k x tk +ε t (2)
[0102] Represent the above formula as a matrix
[0103] Y=Xβ+ε (3)
[0104] Use the least squares method to find the solution for β
[0105] β=(X T X) -1 X T Y (4)
[0106] Wherein, β is the coefficient to be fitted, X is the signal segment sample of at least one other lead signal corresponding to the target time period sample, and the signal segment samples corresponding to other time periods in the lead signal where the target signal segment sample is located, and Y is the target signal segment sample.
[0107] Substitute the obtained coefficients to be fitted into formula (3) to determine the least squares model.
[0108] The second case: based on at least one signal segment sample of other lead signal, signal segment samples corresponding to other time periods in the lead signal where the target signal segment sample is located, and the target signal segment sample, the preset initial network model is trained to obtain the target network model.
[0109] Optionally, the initial network model may be a multilayer perceptron (MLP) neural network model based on a back propagation (BP) algorithm, a convolutional neural network, or the like.
[0110] In this embodiment, the multilayer perceptron (MLP) neural network model based on the back propagation (BP) algorithm consists of an input layer, an intermediate hidden layer and an output layer. Among them, the intermediate hidden layer can have one or more layers, the number of neurons in each layer can be adjusted as needed, and the output layer has no activation function. The back propagation algorithm includes four processes: forward propagation (FP), loss function construction, error back propagation (BP) and weight update.
[0111] The signal segment samples of at least one other lead signal, the signal segment samples corresponding to other time periods in the lead signal where the target signal segment sample is located, and the target signal segment samples are input into the BP algorithm and MLP neural network model, and the BP algorithm and MLP neural network model are trained to obtain the target network model.
[0112] In one possible implementation, taking a convolutional neural network as an example, at least one signal segment sample of other lead signal, signal segment samples corresponding to other time periods in the lead signal where the target signal segment sample is located, and the target signal segment samples include signal segment samples corresponding to lead signal II, lead signal Vl and lead signal V5, and the data length of the signal segment samples is 1000.
[0113] The signal fragment samples with a data length of 1000 are input into the convolutional neural network, and the parameters of the convolutional neural network are updated to obtain the target correction model. Among them, the data dimension change process of the signal fragment samples in the convolutional neural network is as follows: the input layer is 1000 times 3; the next is the convolutional layer 1, the number of filters is 9, the size of a single filter is 3 times 3, the step size in both directions is 1, and the length and width after convolution are guaranteed to remain unchanged by 0. The data dimension of the signal fragment sample is 1000 times 3 times 9, and the activation function is the ReLu function; then through the convolutional layer 2, which is exactly the same as the convolutional layer 1, the data dimension of the signal fragment sample becomes 1000 times 3 times 9, and then the dimension is The data dimension of the signal segment samples becomes 1000 times 9 times 32, and the activation function is still the ReLu function; then the convolution layer 4 has 64 filters with a size of 3 times 3 and a step size of 1 in both directions, and the data dimension becomes 1000 times 9 times 64; the next is the 1 times 1 convolution layer for dimensionality reduction, and the data dimension of the signal segment samples becomes 1000 times 9.
[0114] It should be noted that the construction of the target network model can be carried out during the acquisition process, or the training of the target network model can be started after the electrode falls off or is triggered. Fig.14 As shown, Fig.14 The figure is a flowchart of a method for constructing a target network model during an acquisition process in an embodiment.
[0115] In the embodiments of the present application, two methods of constructing a target network model are provided, providing users with multiple options that can be applied to different application scenarios.
[0116] In one embodiment, the signal segment includes at least one heart beat cycle.
[0117] In this embodiment, Fig.15 is a schematic diagram of a signal segment in an embodiment, such as Fig.15 As shown, when the lead signal is divided, the obtained signal segment takes the apex of the R wave as the center point and contains a complete cycle, and the signal segment includes the P-QRS-T wave.
[0118] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0119] Based on the same inventive concept, the embodiment of the present application also provides a lead signal correction device for implementing the lead signal correction method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations of one or more lead signal correction device embodiments provided below can refer to the limitations of the lead signal correction method above, and will not be repeated here.
[0120] In one embodiment, Fig.16 As shown, a lead signal correction device is provided, comprising: a segmentation module 11, a first determination module 12 and a correction module 13, wherein:
[0121] A segmentation module 11 is used to segment multiple lead signals of the object to be detected according to time to obtain signal segments corresponding to multiple time periods;
[0122] A first determination module 12 is used to determine a target signal segment and a target time period corresponding to the target signal segment according to the signal segment; the target signal segment includes a missing signal segment and / or an interfered signal segment;
[0123] The correction module 13 is used to correct the target signal segment according to the signal segments of at least one other lead signal corresponding to the target time period, and the signal segments corresponding to other time periods in the lead signal where the target signal segment is located; wherein the signal segment of at least one other lead signal is a signal segment without missing or interference.
[0124] In one embodiment, the correction module includes:
[0125] A first determining unit, configured to determine a target correction model according to a first quantity of at least one other lead signal;
[0126] The correction unit is used to correct the target signal segment according to the target correction model, the signal segment of at least one other lead signal corresponding to the target time period, and the signal segments corresponding to other time periods in the lead signal where the target signal segment is located.
[0127] In one embodiment, the first determination unit is further configured to determine at least one correction model according to a second number of the plurality of lead signals; and to determine a target correction model from the at least one correction model according to the first number.
[0128] In one embodiment, the correction module further includes:
[0129] A second determination unit is used to determine the coefficient to be fitted according to the signal segment sample of at least one other lead signal corresponding to the target time period sample, the signal segment samples corresponding to other time periods in the lead signal where the target signal segment sample is located, and the target signal segment sample;
[0130] The third determining unit is used to determine the least squares model according to the coefficients to be fitted.
[0131] In one embodiment, the correction module further includes:
[0132] The fourth determination unit is used to train the preset initial network model according to the signal segment sample of at least one other lead signal, the signal segment samples corresponding to other time periods in the lead signal where the target signal segment sample is located, and the target signal segment sample to obtain the target network model.
[0133] In one embodiment, the signal segment includes at least one heart beat cycle.
[0134] Each module in the lead signal correction device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each module.
[0135] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:
[0136] Dividing multiple lead signals of the object to be detected according to time to obtain signal segments corresponding to multiple time periods;
[0137] Determine a target signal segment and a target time period corresponding to the target signal segment according to the signal segment; the target signal segment includes a missing signal segment and / or an interfered signal segment;
[0138] The target signal segment is corrected according to a signal segment of at least one other lead signal corresponding to the target time period and a signal segment corresponding to other time periods in the lead signal where the target signal segment is located; wherein the signal segment of at least one other lead signal is a signal segment without missing or interference.
[0139] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0140] determining a target correction model based on a first quantity of at least one other lead signal;
[0141] The target signal segment is corrected according to the target correction model, the signal segment of at least one other lead signal corresponding to the target time period, and the signal segments corresponding to other time periods in the lead signal where the target signal segment is located.
[0142] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0143] determining at least one correction model based on a second number of the plurality of lead signals;
[0144] A target correction model is determined from at least one correction model according to the first quantity.
[0145] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0146] Determine the coefficient to be fitted according to at least one signal segment sample of other lead signals corresponding to the target time period sample, signal segment samples corresponding to other time periods in the lead signal where the target signal segment sample is located, and the target signal segment sample;
[0147] Determine the least squares model based on the coefficients to be fitted.
[0148] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0149] The preset initial network model is trained according to the signal segment sample of at least one other lead signal, the signal segment samples corresponding to other time periods in the lead signal where the target signal segment sample is located, and the target signal segment sample to obtain the target network model.
[0150] In one embodiment, the signal segment includes at least one heart beat cycle.
[0151] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:
[0152] Dividing multiple lead signals of the object to be detected according to time to obtain signal segments corresponding to multiple time periods;
[0153] Determine a target signal segment and a target time period corresponding to the target signal segment according to the signal segment; the target signal segment includes a missing signal segment and / or an interfered signal segment;
[0154] The target signal segment is corrected according to a signal segment of at least one other lead signal corresponding to the target time period and a signal segment corresponding to other time periods in the lead signal where the target signal segment is located; wherein the signal segment of at least one other lead signal is a signal segment without missing or interference.
[0155] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0156] determining a target correction model based on a first quantity of at least one other lead signal;
[0157] The target signal segment is corrected according to the target correction model, the signal segment of at least one other lead signal corresponding to the target time period, and the signal segments corresponding to other time periods in the lead signal where the target signal segment is located.
[0158] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0159] determining at least one correction model based on a second number of the plurality of lead signals;
[0160] A target correction model is determined from at least one correction model according to the first quantity.
[0161] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0162] Determine the coefficient to be fitted according to at least one signal segment sample of other lead signals corresponding to the target time period sample, signal segment samples corresponding to other time periods in the lead signal where the target signal segment sample is located, and the target signal segment sample;
[0163] Determine the least squares model based on the coefficients to be fitted.
[0164] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0165] The preset initial network model is trained according to the signal segment sample of at least one other lead signal, the signal segment samples corresponding to other time periods in the lead signal where the target signal segment sample is located, and the target signal segment sample to obtain the target network model.
[0166] In one embodiment, the signal segment includes at least one heart beat cycle.
[0167] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0168] Dividing multiple lead signals of the object to be detected according to time to obtain signal segments corresponding to multiple time periods;
[0169] Determine a target signal segment and a target time period corresponding to the target signal segment according to the signal segment; the target signal segment includes a missing signal segment and / or an interfered signal segment;
[0170] The target signal segment is corrected according to a signal segment of at least one other lead signal corresponding to the target time period and a signal segment corresponding to other time periods in the lead signal where the target signal segment is located; wherein the signal segment of at least one other lead signal is a signal segment without missing or interference.
[0171] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0172] determining a target correction model based on a first quantity of at least one other lead signal;
[0173] The target signal segment is corrected according to the target correction model, the signal segment of at least one other lead signal corresponding to the target time period, and the signal segments corresponding to other time periods in the lead signal where the target signal segment is located.
[0174] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0175] determining at least one correction model based on a second number of the plurality of lead signals;
[0176] A target correction model is determined from at least one correction model according to the first quantity.
[0177] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0178] Determine the coefficient to be fitted according to at least one signal segment sample of other lead signals corresponding to the target time period sample, signal segment samples corresponding to other time periods in the lead signal where the target signal segment sample is located, and the target signal segment sample;
[0179] Determine the least squares model based on the coefficients to be fitted.
[0180] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0181] The preset initial network model is trained according to the signal segment sample of at least one other lead signal, the signal segment samples corresponding to other time periods in the lead signal where the target signal segment sample is located, and the target signal segment sample to obtain the target network model.
[0182] In one embodiment, the signal segment includes at least one heart beat cycle.
[0183] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0184] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0185] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0186] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A lead signal correction method, It is characterized in that The method comprises: Dividing multiple lead signals of the object to be detected according to time to obtain signal segments corresponding to multiple time periods; Determine a target signal segment and a target time period corresponding to the target signal segment according to the signal segment; the target signal segment includes a missing signal segment and / or an interfered signal segment; The target signal segment is corrected according to a signal segment of at least one other lead signal corresponding to the target time period and a signal segment corresponding to other time periods in the lead signal where the target signal segment is located; wherein the signal segment of at least one other lead signal is a signal segment without missing parts and a signal segment without interference.
2. The method according to claim 1, It is characterized in that The correcting the target signal segment according to at least one signal segment of other lead signals corresponding to the target time period and signal segments corresponding to other time periods in the lead signal where the target signal segment is located comprises: determining a target correction model according to a first quantity of the at least one other lead signal; The target signal segment is corrected according to the target correction model, a signal segment of at least one other lead signal corresponding to the target time period, and signal segments corresponding to other time periods in the lead signal where the target signal segment is located.
3. The method according to claim 2, It is characterized in that The step of determining a target correction model according to a first quantity of the at least one other lead signal comprises: determining at least one correction model according to a second number of the plurality of lead signals; The target correction model is determined from the at least one correction model according to the first number.
4. The method according to claim 2, It is characterized in that The target correction model includes a least squares model, and the construction process of the least squares model includes: Determine the coefficient to be fitted according to at least one signal segment sample of other lead signals corresponding to the target time period sample, signal segment samples corresponding to other time periods in the lead signal where the target signal segment sample is located, and the target signal segment sample; The least squares model is determined according to the coefficients to be fitted.
5. The method according to claim 4, It is characterized in that The target correction model includes a target network model, and the construction process of the target network model includes: The preset initial network model is trained according to the signal segment sample of at least one other lead signal, the signal segment samples corresponding to other time periods in the lead signal where the target signal segment sample is located, and the target signal segment sample to obtain the target network model.
6. The method according to claim 1, It is characterized in that The signal segment includes at least one heartbeat cycle.
7. A lead signal correction device, It is characterized in that The device comprises: A segmentation module, used for segmenting multiple lead signals of the object to be detected according to time, to obtain signal segments corresponding to multiple time periods; A first determination module is used to determine a target signal segment and a target time period corresponding to the target signal segment according to the signal segment; the target signal segment includes a missing signal segment and / or an interfered signal segment; A correction module is used to correct the target signal segment according to a signal segment of at least one other lead signal corresponding to the target time period and a signal segment corresponding to other time periods in the lead signal where the target signal segment is located; wherein the signal segment of at least one other lead signal is a signal segment without missing or interference.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.
9. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
10. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.
