Technical Field
The application relates to a method for enhancing synchronously recorded multichannel electrocardiosignals based on a computer program.
In practice, a scene of synchronously recording multi-channel electrocardiosignals exists. For example, people often go to hospitals to carry out standard 12-lead rest electrocardiographic examination, and actually and synchronously record human electrocardiosignals of 8 channels; when a fetus is subjected to electrocardiographic monitoring or resting electrocardiographic examination, 3 to 4 channels of pregnant woman abdominal wall electric signals are often synchronously recorded, and 1 or more channels of pregnant woman chest wall electric signals are sometimes additionally and synchronously recorded as reference; conventional electrocardiographic monitors and dynamic electrocardiograms (holters) are more common in the case of synchronously recording multi-channel electrocardiographic signals.
The cost of the acquisition system is increased compared with the method for synchronously recording multi-channel electrocardiosignals, but the method makes the enhancement of the electrocardiosignals realized by the fusion of the multi-channel electrocardiosignals possible, and people can synthesize a path of electrocardiosignals with high signal-to-noise ratio by linearly synthesizing the synchronously recorded multi-channel electrocardiosignals so as to improve the effects of R wave detection and other analysis of the electrocardiosignals.
Especially, it is necessary to enhance the multi-channel electrocardio signal for the occasions with low signal-to-noise ratio of the recorded signals such as fetal electrocardio, dynamic electrocardio and the like. Taking the separation of fetal electrocardio problems from abdominal wall electricity as an example, in the estimation stage of maternal electrocardio components, a multichannel electrocardio signal enhancement method can be used for enhancing the maternal electrocardio components, and in the fetal electrocardio enhancement stage after the removal of maternal electrocardio, a multichannel electrocardio signal enhancement method can also be used for enhancing the fetal electrocardio signals.
Background
Electrocardiosignal X ═ X with m channels recorded synchronously1;x2;…;xi…;xm]It is a matrix of m rows, where the row vector xiWhen i is 1, 2, …, m is the recorded electrocardiosignal of the ith channel, so-called multi-channel electrocardiosignal enhancement requires an m-dimensional unit combination vector w (row vector) to make the electrocardiosignal y calculated according to y wX strongest under a certain standard. Different criteria, the obtained combination vectors w are different and correspond to different methods.
The principle of Principal Component Analysis (PCA) method to determine the combination vector w is: its standard or objective function is max wXXTwT s.t.||w||21, that is, a unit vector w is obtained to make the transformed signal y have the maximum energy; in specific solving, the matrix XX can be solvedTIs characterized byValues and eigenvectors, let w be equal to the eigenvector corresponding to the largest eigenvalue. The signal with the maximum energy obtained by the method is not necessarily the signal with the strongest signal-to-noise ratio.
The principle of Independent Component Analysis (ICA) method for determining the combination vector w is: solving an optimization problem such that the transformed signal y has maximum non-gaussian according to y-wX, the signal with maximum non-gaussian is considered to be an independent source signal or source component, and its objective function is generally defined as kurtosis (kurtosis) maximum or negative entropy maximum of wX, defining | | | w | |21. However, an independent source signal obtained by the method is not necessarily exactly the independent source signal that you want, and a problem of further identification exists. The independent source is not equivalent to the strongest signal-to-noise ratio.
The principle of determining the combination vector w by a Periodic Component Analysis (pi CA) method is as follows: solving an optimization problem such that the signal y transformed according to y-wX has the best periodicity, its basic objective function being described as
Where y (n), i.e. y, wX, y (n + τ)
T) Y (n) τ of y
TThe unit left delay minus y. The optimization problem can be further deduced as
Wherein X' is X (: n + tau)T) -X (: n), i.e. X' is τ for XTThe unit left delay minus X; because the electrocardiosignal is not a strict periodic signal and has heart rate variability, tau is calculated by the formula (1)TThe number of the R wave peaks should not be a constant, and when the solution of X' in the formula (1) is performed, the initial detection or the pre-detection of the R wave peaks needs to be performed on the recorded multichannel signal X, and the quality of the initial detection of the R wave peaks affects the enhancement effect. Also, the best periodicity is not equivalent to the strongest signal-to-noise ratio.
The above common main multi-channel enhancement methods seem to have fundamental limitations in principle, because the transformed signal quality is not directly pursued to be the highest and the signal-to-noise ratio is the strongest.
Reference documents:
[1]Andreotti F,Riedl M,Himmelsbach T,et al.Robust fetal ECG extraction and detection from abdominal leads[J].Physiological Measurement,2014,35(8):1551-1567.
[2]Radek M,Radana K,Janusz J,et al.Comparative Effectiveness of ICA and PCA in Extraction of Fetal ECG From Abdominal Signals:Toward Non-invasive Fetal Monitoring[J].Frontiers in Physiology,2018,9:648-.
[3]Di Maria C,Liu C,Zheng D,et al.Extracting fetal heart beats from maternal abdominal recordings:selection of the optimal principal components[J].Physiological Measurement,2014,35(8):1649-1664.
[4]Sameni R,Jutten C,Shamsollahi M B.Multichannel Electrocardiogram Decomposition Using Periodic Component Analysis[J].IEEE Transactions on Biomedical Engineering,2008,55(8):1935-1940.
[5]Zhang J W,Liu X,Dong J.CCDD:AN ENHANCED STANDARD ECG DATABASE WITH ITS MANAGEMENT AND ANNOTATION TOOLS[J].International Journal on Artificial Intelligence Tools,2012,21(05):1240020.
[6]Yan H,Liu H,Huang X,et al.Invariant heart beat span versus variant heart beat intervals and its application to fetal ECG extraction[J].BioMedical Engineering OnLine,2014,13(1):1-12.
[7]Qiong Yu,Qun Guan,et al.Wavelet optimization for applying continuous wavelet transform to maternal electrocardiogram component enhancing[J].Chinese Physics B,2017(11):558-564.
[8]The MIT-BIH Normal Sinus Rhythm Database.[Online].http://www.physionet.org/physiobank/database/nsrdb/
disclosure of Invention
The invention aims to provide a novel method.
Provides a method for more effectively enhancing the multi-channel electrocardiosignals recorded synchronously.
The technical scheme is as follows.
A method of enhancing a synchronously recorded multi-channel cardiac signal, comprising the steps of: (1) reading in the multichannel electrocardiosignals recorded synchronously, and setting X as [ X ]
1;x
2;…;x
i…;x
m]The matrix of m rows formed by the electrocardiosignals of m channels can be directly recorded electrocardiosignals of m channels, or electrocardiosignals of m channels after certain pretreatment, and the pretreatment can refer to basic pretreatment of removing direct current, baseline drift, 50Hz interference and the like, or comprehensive pretreatment of removing maternal electrocardio from abdominal wall electricity; (2) performing initial detection or pre-detection of R peak on read m channel electrocardiosignals X, wherein the initial detection is to perform R peak detection again after signal enhancement, and creating a QRS complex template matrix X of the m channel electrocardiosignals on the basis of the initial detection of the R peak
QRS=[x
QRS1;x
QRS2;…;x
QRSi;…;x
QRSm]Wherein the row vector x
QRSii is 1, 2, …, m represents QRS complex template of the ith channel; (3) solving a maximization problem
Finding the optimal point w
optimized(row vectors); (4) calculating y as w
optimizedX is the signal to be enhanced and output. The method is shown in the block diagram of the attached figure 1.
According to the method for enhancing the multichannel electrocardiosignals synchronously recorded, the step (2) carries out initial detection or called pre-detection of R peaks on the read m channel electrocardiosignals X and manufactures a QRS complex template matrix of the m channel electrocardiosignals, and is characterized by comprising the following steps of (a) carrying out R peak detection on the read m channel electrocardiosignals X and optionally one channel electrocardiosignal; (b) for each channel electrocardiosignal of m channels, intercepting data of 0.05-0.25 s before and after each R peak time position detected in the step (a) as oneCalculating the average of all QRS wave groups obtained by the channel as a primary template of the channel; (c) for each channel, performing correlation operation on each QRS complex and the obtained initial template, selecting k QRS complexes with larger correlation coefficients, and averaging the K QRS complexes to obtain a final QRS complex template; (d) obtaining the final QRS wave group template x of each channelQRSii is 1, 2, …, m, thereby constructing a template matrix XQRS=[xQRS1;xQRS2;…;xQRSi;…;xQRSm]。
According to the method for enhancing the multichannel electrocardiosignals synchronously recorded, the step (2) carries out initial detection or called pre-detection of R peaks on the read m channel electrocardiosignals X and manufactures a QRS complex template matrix of the m channel electrocardiosignals, and is characterized by comprising the following steps of (a) carrying out R peak detection on the read m channel electrocardiosignals X and optionally one channel electrocardiosignal; (b) intercepting data of 0.05-0.25 s before and after each R peak time position detected in the step (a) of each channel electrocardiosignal of m channels as a QRS complex; (c) for each channel, performing cluster analysis on all the cut QRS complexes according to the similarity, taking out k QRS complexes in a cluster with the most clustered members, and averaging the K QRS complexes to obtain a QRS complex template of the channel; (d) obtaining the final QRS wave group template x of each channelQRSii is 1, 2, …, m, thereby constructing a template matrix XQRS=[xQRS1;xQRS2;…;xQRSi;…;xQRSm]。
According to the method for enhancing the multichannel electrocardiosignals synchronously recorded, the step (2) carries out initial detection or called pre-detection of R peaks on the read m channel electrocardiosignals X and manufactures a QRS wave template matrix of the m channel electrocardiosignals, and is characterized by comprising the following steps of (a) carrying out R peak detection on each channel electrocardiosignal of the read m channel electrocardiosignals X; (b) using the R peak detection result of each channel signal, constructing a set of QRS complex template matrix X according to three steps (b), (c) and (d) of any one scheme of the two natural sectionsQRS=[xQRS1;xQRS2;…;xQRSi;…;xQRSm]Then, m sets of QRS complex template matrixes X are constructed in totalQRS(ii) a (c) Selecting one of the m sets of QRS complex template matrixes for construction as the set with the highest total similarity value among the QRS complexes for template averaging as the QRS complex template matrix X of the final constructionQRS=[xQRS1;xQRS2;…;xQRSi;…;xQRSm]。
A method for enhancing multi-channel electrocardiosignals recorded synchronously according to the method, wherein the step (3) solves a maximization problem
Finding the optimal point w
optimized(Row vector) characterized by the fact that a symmetric matrix is written
And C
X=XX
TCan be represented by (C)
XQRS,C
X) Solving for w by generalized eigenvalue decomposition
optimizedAnd it takes the eigenvector corresponding to the maximum generalized eigenvalue.
It should be noted that, the above technical solution solves the maximization problem
By itself, it is meant that the goal is to maximize the energy of its repeated component of the QRS complex after the combination of the multichannel signal, which is in full accord with the enhancement goal of improving the signal-to-noise ratio of the signal by linear combination. Such a method is not limited to the Repetitive Component Analysis (RCA) method.
Has the beneficial effects.
The inventors performed comparative testing experiments on the proposed solution. Two evaluation indices were used. The first index is represented by the document [7 ]]Proposed, defined as a noise to signal ratio NSR ═ aNoisePeak||1/||ARwavePeak||1I.e. the ratio of the sum of the interference peaks between all R peaks divided by the sum of the peaks of all R peaks, the smaller the NSR value, sayThe better the enhancement effect of the method. The second evaluation index is defined based on the R-peak detection accuracy for the enhanced signal, and a common R-peak detection accuracy index F1 is 2TP/(2TP + FP + FN), where TP is the number of correctly detected R-peak events, FP is the number of multi-detection R-peaks, and FN is the number of missed detection R-peaks. In the experiment, the R wave detection algorithm adopts a classical PT algorithm. A higher F1 means a better enhanced signal quality.
And (5) carrying out a first experiment. The experimental data are from The databases setA and setB of The PhysioNet/Computing in Cardiology Challenge 2013. There were 75 groups of data for SetA and 100 groups of data for Set B. Each group of data has the duration of 1 minute and comprises 4 paths of pregnant woman abdominal wall electric signals, and the sampling frequency is 1 kHz. The data set has no official calibrated parent R wave position, and the correct parent R wave position is marked in the experiment in a mode of software primary inspection and human eye correction. By adopting the technical scheme, the enhancement calculation of the multichannel electrocardiosignals is carried out on 175 groups of data, wherein the enhancement is the maternal electrocardiosignals, and two evaluation indexes of one path of enhancement signals of each group are calculated. And simultaneously calculating two evaluation indexes of the enhanced signal of the three enhancement methods of PCA, ICA and pi CA and the signal before enhancement. Table 1 shows the statistical average of the evaluation indexes after the contrast test was completed for all of the 175 sets of data.
TABLE 1175 test results for Competition data
And (5) carrying out experiment II. In the first experiment, the enhancement effect of the method is close to that of the pi CA method, and the method is considered to be mainly the reason that the number of channels is small and the overall quality is high before signal enhancement. Therefore, a group of abdominal wall electrical data of 8 channels is artificially constructed by using 95830 th group data and 95847 th group data on the MIT ccdd database, so that the data has the characteristics of large interference and irregular maternal heart rate, and is used as simulation data to further test the enhancement effect of the pi CA method and the method disclosed by the invention, as shown in figure 2. Through calculation, the indexes of NSR and F1 of the channel of signal enhanced by the pi CA method are respectively 0.4404 and 0.8511, while the indexes of NSR and F1 of the channel of signal enhanced by the method are respectively 0 and 1, which shows that the method has more remarkable enhancing effect. FIG. 3 shows the contrast of the enhancement effect of the two methods, wherein abdominal in FIG. 3 is 1 channel signal in the constructed 8-channel abdominal wall electrocardiogram, total is the simulated fetal electrocardio component therein, matenal is the simulated maternal electrocardio component therein, 'pi CA' is a channel of maternal electrocardio signal enhanced by the pi CA method, and my work is a channel of maternal electrocardio signal enhanced by the method of the present invention; obviously, the method of the invention has more obvious enhancement effect than the pi CA method.