Multi-channel fixed frequency noise filtering method based on LevKov, computer device and program product
Through the LevKov multi-channel fixed frequency noise filtering method, the peak points are used to divide nonlinear and linear areas, combined with the real-time update of cached data and noise templates, to solve the problem of poor signal-to-noise ratio of the magnetometer under the interference of fixed frequency noise, and improve Improve the filtering effect and accuracy of magnetocardiogram data.
Patent Information
- Application Number
- CN202211313034.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-10-25
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-10-25
AI Technical Summary
When detecting cardiac magnetic field signals, cardiac magnetometers are susceptible to interference from external noise, especially fixed-frequency noise, resulting in poor signal-to-noise ratio and poor filtering effect. Traditional methods are difficult to accurately remove noise, especially in the presence of low-frequency noise.
A multi-channel fixed-frequency noise filtering method based on LevKov is used to predict the nonlinear and linear areas in the magnetocardiogram waveform data, use peak points to divide and filter out each area, and combine the real-time updates of cached data and noise templates , filter out the magnetocardiogram waveform data one by one.
It improves the filtering effect, can adaptively retain QRS wave signals in different noise environments, enhances the accuracy and signal-to-noise ratio of magnetocardiogram data, and effectively removes fixed frequency noise.
Smart Images

Figure CN115581459B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of biomedical signal processing, and in particular to a multi-channel fixed-frequency noise filtering method based on LevKov, a computer device and a program product. Background Art
[0002] At present, there are many clinical detection methods for heart diseases, including invasive tests such as coronary angiography and intracardiac electrophysiology, and non-invasive tests such as electrocardiogram and coronary artery CT. However, these detection technologies have shortcomings, such as being traumatic, causing radiation damage to the human body, or being expensive, so their clinical application is subject to certain restrictions.
[0003] Commonly used electrocardiograms are non-invasive and simple, but they have defects such as low sensitivity and accuracy. Magnetocardiography (MCG), as a non-invasive and highly accurate detection technology, has become a research hotspot in recent years. Cardiac activity generates weak currents, which generate weak magnetic fields around them. Magnetocardiography is a detection method that collects and analyzes the changes in the surrounding magnetic field caused by cardiac excitement.
[0004] In 1963, Baule and McFee first detected the magnetic field signal generated by the heart using a coil magnetometer in an unshielded room at room temperature. In 1970, Cohen and others invented the superconducting quantum interference device (SQUID), which brought a revolutionary breakthrough to the development of MCG. The SQUID sensor uses low-temperature superconducting technology. At a low temperature of minus 269. C, the resistance of metal niobium becomes zero and becomes a superconductor. The superconductor is made into a superconducting ring and the corresponding parts of the superconducting ring are made into two extremely thin insulating layers (Josephson nodes). When the bias current passes through, the superconducting state is destroyed and the Josephson effect and signal are generated. After being taken out by the oscillator and amplified, obvious magnetic field information is obtained.
[0005] Magnetocardiographic instruments have made great progress in recent years. They have evolved from single-channel to multi-channel, from single-point measurement to multi-point measurement, and also have the function of detecting three-dimensional signals and realizing three-dimensional reconstruction of the heart. Magnetocardiographic instruments based on atomic magnetometers are not restricted by the conditions of working in low-temperature environments, have higher sensitivity, can be further miniaturized and cost-effective, and expand their scope of application.
[0006] However, the high sensitivity and high precision of the magnetocardiometer make it very susceptible to interference from external noise. In addition, the hospital environment is noisy, and various devices often generate certain fixed-frequency noise when turned on. When the fixed-frequency noise intersects with the effective frequency band of the magnetocardiogram signal, the traditional notch filter will filter out the part of the magnetocardiogram data that overlaps with the noise frequency band, causing the QRS wave to deform; the LevKov algorithm can effectively retain the signal of the part of the QRS wave that overlaps with the noise frequency band, but it is only used to remove high-frequency interference such as power frequency interference. When the signal-to-noise ratio is particularly poor, it is difficult to determine the noise template range and the template area cannot be accurately obtained; when the frequency of noise removal is low, it does not meet the assumption that its template area is linear, and the filtering effect is poor. Summary of the invention
[0007] Based on this, it is necessary to provide a multi-channel fixed-frequency noise filtering method based on LEVKOV to address the above technical problems.
[0008] This application is based on LEVKOV's multi-channel fixed-frequency noise filtering method, including:
[0009] Using multi-channel leads to obtain multiple magnetocardiogram waveform data;
[0010] Obtaining a peak point in a predicted nonlinear region in the magnetocardiogram waveform data;
[0011] The nonlinear region and the linear region are divided, including: offsetting the peak point forward and backward along the time axis by a specified threshold value to obtain two starting points, using the line between each starting point and the peak point as a reference line, traversing the data points between the peak point and each starting point, using the data points where the peak point is on both sides of the time axis and has the largest distance from the corresponding side reference line as endpoints, the area between the two end points is the nonlinear area, and the rest is the linear area;
[0012] Fixed frequency noise is filtered out in the linear region and the nonlinear region of each magnetocardiogram waveform data one by one until all magnetocardiogram waveform data are processed.
[0013] Optionally, when the peak point is offset forward and backward along the time axis, it corresponds to a first specified threshold and a second specified threshold respectively, the magnetocardiogram waveform data includes a continuous heartbeat signal, and the sum of the first specified threshold and the second specified threshold is greater than the width of the QRS wave in the heartbeat signal.
[0014] Optionally, obtaining the peak point of the magnetocardiogram waveform data specifically includes:
[0015] Obtaining a peak location threshold, wherein the peak location threshold is less than an average value of each peak in the magnetocardiogram waveform data;
[0016] The peak point is determined according to the relative relationship with the peak location threshold.
[0017] Optionally, the peak location threshold is calculated by the formula:
[0018] The obtained formula is that the central magnetic image waveform data includes multiple statistical cycles, SecMax is the sequence after the maximum values of all statistical cycles are sorted, a is the threshold generation coefficient less than 1, n1 is the starting data selected in the sequence SecMax, and n2 is the ending data selected in SecMax.
[0019] Optional, fixed frequency noise filtering for linear region, including:
[0020] For one of the data points to be processed, the data point is filtered using the cache data within a predetermined time; the cache data is obtained from the magnetocardiogram waveform data to be processed and has a length of M, M = FS / FRE noise , where FS is the sampling rate, FRE noise is the frequency of fixed frequency noise;
[0021] The data point to be processed is the data point corresponding to the next moment of the cached data;
[0022] After filtering the data point, the first data data is obtained filter :
[0023]
[0024] Cache n The cache data;
[0025] datum is the data point to be processed.
[0026] Optionally, it also includes using the data at the median position of the cached data to make a difference with the first data to obtain noise data, and the set of the noise data is a noise template;
[0027] The cache data and the noise template are updated in real time:
[0028] The real-time updating of the cached data is to use the data point corresponding to the next moment of the cached data to be placed into the cached data, and remove the earliest data point on the time axis;
[0029] The real-time updating of the noise template is to place the latest noise data into the noise template and remove the earliest data point on the time axis.
[0030] Optionally, when fixed frequency noise is filtered out in a nonlinear region, the following steps are specifically included:
[0031] Subtracting the data point at the median position of the cached data from the oldest noise data in the noise template to obtain current filtered data;
[0032] The cache data and the noise template are updated in real time:
[0033] The real-time updating of the cached data is to use the data point corresponding to the next moment of the cached data to be placed into the cached data, and remove the earliest data point on the time axis;
[0034] The real-time updating of the noise template is to put the oldest noise data into the noise template and remove the oldest noise data.
[0035] Optionally, when fixed-frequency noise is filtered out for a nonlinear region, a linear region with a data length of M adjacent to the nonlinear region is filtered in accordance with the filtering method of the nonlinear region.
[0036] The present application also provides a computer device, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the LEVKOV multi-channel fixed frequency noise filtering method described in the present application.
[0037] The present application also provides a computer program product, including computer instructions, which, when executed by a processor, implement the steps of the LEVKOV multi-channel fixed frequency noise filtering method described in the present application.
[0038] The multi-channel fixed frequency noise filtering method based on LEVKOV in this application has at least the following effects:
[0039] The peak points obtained in the magnetocardiogram waveform data of the present application are used to divide the nonlinear area and the linear area. Since the peak points used for division come from the magnetocardiogram waveform data, the present application can adaptively and specifically complete the division of the obtained magnetocardiogram waveform data according to different noise environments.
[0040] The present application divides the nonlinear region and the linear region by confirming the two endpoints of the nonlinear region. On this basis, based on the division result, the linear region and the nonlinear region of each magnetocardiogram waveform data are respectively subjected to fixed frequency noise filtering, thereby improving the filtering effect. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] Figure 1 This is a flow chart of a multi-channel fixed frequency noise filtering method based on LEVKOV in one embodiment of the present application;
[0042] Figure 2 for Figure 1 Schematic diagram of the process of step S200 sub-step;
[0043] Figure 3 for Figure 1 Schematic diagram of the process of step S400 sub-step;
[0044] Figure 4 for Figure 1 Schematic diagram of the process of step S400 sub-step;
[0045] Figure 5 This is a flowchart of a multi-channel fixed frequency noise filtering method based on LEVKOV in one embodiment of the present application;
[0046] Figure 6 is an internal structure diagram of a computer device in one embodiment;
[0047] Figure 7 The original time domain data of the magnetocardiogram provided in one embodiment of the present application;
[0048] Figure 8 for Figure 7 Time domain data after superimposing 25Hz noise;
[0049] Fig. 9 For Chebyshev 25Hz band-stop filter Figure 7 Filtered time domain data;
[0050] Fig.10 The integral coefficient 25Hz notch filter is for Figure 7 Filtered time domain data;
[0051] Fig.11 In order to use the multi-channel fixed frequency noise filtering method based on LEVKOV in this application for Figure 7 Filtered time domain data;
[0052] Fig.12 The original frequency domain data of the magnetocardiogram provided in an embodiment of the present application;
[0053] Fig.13 for Fig.12 Frequency domain data after superimposing 25Hz noise;
[0054] Fig.14 For Chebyshev 25Hz band-stop filter Fig.12 Filtered frequency domain data;
[0055] Fig.15 The integral coefficient 25Hz notch filter is for Fig.12 Filtered frequency domain data;
[0056] Fig.16 The multi-channel fixed frequency noise filtering method based on LEVKOV is used for Fig.12Filtered frequency domain data. DETAILED DESCRIPTION
[0057] 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.
[0058] See also Figure 1 to Figure 4 In one embodiment of the present application, a multi-channel fixed-frequency noise filtering method based on LevKov is provided, including steps S100 to S400 described below, and the sub-steps in each step are refinements and extensions of the technical solution as optional solutions.
[0059] Step S100, obtaining a plurality of magnetocardiogram waveform data using multi-channel leads;
[0060] In step S100, the multi-channel leads may be, for example, 36 leads. Step S100 includes data preprocessing (step S110) and lead selection (step S120).
[0061] In step S110, data preprocessing includes differential processing and integral processing performed in sequence, wherein:
[0062] The differential processing includes: performing differential processing at intervals of N. The specific formula is as follows:
[0063] X dev (i) = X(i+N)-X(i) Formula (3.1)
[0064] In the above formula, X dev is the data after differential processing, X is the original magnetocardiographic data, and N is the differential interval coefficient. For example, when the sampling rate is 1000 Hz, N is 5-15, such as 10.
[0065] The integral processing includes: taking the absolute value of the difference and performing m-point window integration. The specific formula is as follows:
[0066]
[0067] In the above formula, X win To preprocess the final data, X dev is the data after differential processing, m is the window integration length, for example, when the sampling rate is 1000 Hz, m is 140-150, such as 145.
[0068] In step S120, lead selection includes:
[0069] When the data is initialized, an integer number of leads in the central area of 20% to 40% of the multi-channel leads is selected as the noise template range positioning leads.
[0070] And / or selecting an integer number of leads with the highest 20% to 40% R wave amplitude in the heart beat template as leads for locating the noise template range.
[0071] The duration of data initialization as cached data includes at least one heartbeat cycle, for example, the duration of cached data is 4 seconds. The lead selection may be, for example, selecting 8 positioning leads from 36 leads.
[0072] Step S200, obtaining a peak point in a predicted nonlinear region in the magnetocardiogram waveform data;
[0073] In step S200, the peak point of the magnetocardiogram waveform data is obtained, which specifically includes step S210 and step S220.
[0074] Step S210, obtaining a peak location threshold, where the peak location threshold is less than an average value of each peak in the magnetocardiogram waveform data.
[0075] Furthermore, the peak location threshold can be, for example, calculated by formula (3.3):
[0076] The central magnetic waveform data includes multiple statistical cycles, SecMax is the sequence after the maximum values of all statistical cycles are sorted, a is the threshold generation coefficient less than 1, n1 is the starting data selected in the sequence SecMax, and n2 is the end data selected in SecMax. Preferably, the interference of data anomalies is eliminated by selecting the data in the middle of the sequence, such as the SecMax sequence has a total of 20 maximum value sorted data, n1 is the data sorted 5th, n2 is the data sorted 16th, and a total of 12.
[0077] Specifically, the maximum value of each statistical period of the positioning lead is obtained, and after caching for a certain period of time (for example, it can be 20 seconds), the cached data is sorted (the data size is sorted and screened), and the maximum value of the data in a predetermined time period (for example, it can be 12 seconds) is taken as the average and then multiplied by a coefficient a (a can be, for example, 0.5 to 0.8, such as 0.7) to obtain the peak positioning threshold thr.
[0078] Step S220, determining the peak point according to the relative relationship with the peak location threshold.
[0079] Since there may be noise interference in the magnetocardiogram waveform data, after obtaining the peak location threshold in this step, any area greater than the peak location threshold is identified as belonging to the nonlinear area, and the peak of the area is the determined peak point.
[0080] Step S300, dividing the nonlinear region and the linear region, including: offsetting the peak point by a specified threshold value along the time axis to obtain two starting points, using the line between each starting point and the peak point as a reference line, traversing the data points between the peak point and each starting point, using the data points where the peak point is on both sides of the time axis and has the largest distance from the corresponding side reference line as endpoints, the area between the two end points is the nonlinear region, and the rest is the linear region;
[0081] Furthermore, each starting point is a data zero point on the magnetocardiogram waveform data where the time axis is unchanged and the data value is set to zero. The magnetocardiogram waveform data is represented by an xy coordinate system, where the time axis is the x axis and the data value is the y axis. The data zero point refers to setting the data value to zero when the x axis position remains unchanged. In this way, possible spikes near the nonlinear region are avoided, which may affect the confirmation of the left and right endpoints of the nonlinear region.
[0082] In step S300, when the peak point is shifted forward and backward along the time axis, the first specified threshold and the second specified threshold are respectively corresponding, the magnetocardiogram waveform data includes a continuous heartbeat signal, and the sum of the first specified threshold and the second specified threshold is greater than the width of the QRS wave (the nonlinear region where R is located) in the heartbeat signal. For example, the first specified threshold and the second specified threshold are both 80ms.
[0083] In step S300, the nonlinear region and the linear region are obtained, specifically including: obtaining the endpoints of the nonlinear region using a local distance method, the endpoints including a left endpoint and a right endpoint;
[0084] The local distance method includes formula (3.4):
[0085] distance=(y start -y end )*x+(x end -x start )*y+x start *y end -x end *y start , where (x, y) is the search coordinate of the magnetocardiogram waveform data, x is the time axis of the magnetocardiogram waveform data, and y is the data value of the magnetocardiogram waveform data; (x start ,y start ) is the starting point of the search range, (x end ,y end ) is the end point of the search range, and the distance is from (x, y) to (x start ,y start ) and (x end ,y end )The local distance between two points;
[0086] Obtaining the left endpoint of the nonlinear region includes: setting the data zero point of the first specified threshold before the wave peak point time axis as the starting point of the search range, setting the wave peak point as the end point of the search range, and when the local distance is the maximum, the search coordinate is the left endpoint of the nonlinear region;
[0087] Obtaining the right endpoint of the nonlinear region includes: setting the peak point as the starting point of the search range, setting the data zero point of the second specified threshold after the peak point time axis as the end point of the search range, and when the local distance is the maximum, the search coordinate is the right endpoint of the nonlinear region. Obtaining the left and right endpoints of the nonlinear region means obtaining the nonlinear region, and the rest of the magnetocardiogram waveform data except the linear region is the linear region.
[0088] Furthermore, step S300 also includes that, in more than 50% of the positioning leads, the nonlinear regions of the leads are the same, and the nonlinear regions are considered to be obtained. Specifically, if more than 4 of the 8 positioning leads are determined to be non-template regions (non-linear regions), they are positioned as the final non-template regions, and the remaining data are noise template extraction regions (linear regions).
[0089] Step S400 , filtering out fixed frequency noise in the linear region and the nonlinear region of each magnetocardiogram waveform data one by one until all magnetocardiogram waveform data are processed.
[0090] Step S400 includes steps S410 to S440.
[0091] Step S410, when filtering fixed frequency noise in the linear region, includes:
[0092] Step S411, for one of the data points to be processed, the data point is filtered using the buffered data within a predetermined time; the buffered data is obtained from the magnetocardiogram waveform data to be processed and has a length of M, M = FS / FRE noise , where FS is the sampling rate, FRE noise is the frequency of fixed frequency noise, and the data point to be processed is the data point corresponding to the next moment after the cached data;
[0093] Step S412, filtering the data point to obtain the first data data filter , formula (3.5):
[0094]
[0095] Cache n is the cached data, and datum is the data point to be processed.
[0096] In step S410, filtering is performed for each data point, which is specifically performed by the formula M=FS / FRE noiseA "pending data point" is a data point that is about to be cached but has not yet been cached.
[0097] It can be understood that when fixed-frequency noise is filtered out in the linear region, the cache data with an initial cache length of M is not filtered when the linear region is first entered. This is also reflected in formula (3.5), which means that the cached data is used to obtain the data after the fixed-frequency noise is filtered out.
[0098] Step S420 also includes using the data at the median position of the cached data to make a difference with the first data to obtain noise data. The set of noise data is a noise template. The cached data and the noise template are both updated in real time.
[0099] The noise data is obtained by the following formula:
[0100] temp=Cache n / 2 -data filter Formula (3.6)
[0101] In the formula, Cache n / 2 The data at the median position of the cached data, data filter is the data after filtering out the fixed frequency noise (first data), and temp is the obtained noise data.
[0102] The cache data and the noise template are updated in real time, specifically including step S421 and step S422.
[0103] Step S421, real-time updating of cached data is to use the data point corresponding to the next moment of the cached data to be placed into the cached data, and remove the earliest data point on the time axis (i.e., remove the oldest data point);
[0104] Step S422 , real-time updating of the noise template is to place the latest noise data into the noise template and remove the earliest data point on the time axis (ie, remove the oldest data point).
[0105] In step S420, the noise data is point data for the data point, and the noise template is a set of a plurality of noise data with a buffer length of M.
[0106] Step S430, when performing fixed frequency noise filtering for the nonlinear region, specifically includes: subtracting the data point at the median position of the cached data from the oldest noise data in the noise template to obtain the current filtered data, and both the cached data and the noise template are updated in real time.
[0107] The cache data and the noise template are updated in real time, specifically including step S431 and step S432. Among them:
[0108] Step S431, real-time updating of cached data is to use the data point corresponding to the next moment of the cached data to be placed into the cached data, and remove the earliest data point (oldest data point) on the time axis;
[0109] Step S432 : Real-time updating of the noise template is to place the oldest noise data into the noise template and remove the oldest noise data.
[0110] When fixed frequency noise is filtered out in a nonlinear region, the real-time update of the cache data is the same as that in a linear region, but the real-time update of the noise template is different. filter Formula (3.5) is no longer applicable, and new noise data cannot be obtained through formula (3.6). At this time, the noise data in the noise template is recycled.
[0111] In step S432, filtering is completed by cyclically using the noise data in the noise template. For example, the noise template includes four noise data abcd, where a is the oldest noise data. a is placed in the noise template, and the oldest noise data a is removed. The four noise data in the updated noise template are bcda, and b is the oldest noise data.
[0112] In step S440, when fixed frequency noise is filtered out for the nonlinear region, a linear region with a data length of M adjacent to the nonlinear region is filtered according to the filtering method of the nonlinear region.
[0113] It can be understood that step S430 and step S440 cooperate with each other to keep the magnetocardiogram waveform data continuous after the fixed frequency noise is filtered out.
[0114] In each embodiment of the present application, by taking advantage of the magnetocardiogram multi-channel, the channel with the highest signal-to-noise ratio is selected as the positioning lead to determine the linear region and the nonlinear region (step S120). By means of the heartbeat signal in the magnetocardiogram waveform data, the peak positioning threshold thr is dynamically generated to preliminarily obtain the location of the nonlinear region (steps S210 and S220). Combined with the local distance method, the range of the nonlinear region is accurately located (step S300).
[0115] In each embodiment of the present application, the linear region and the nonlinear region are filtered respectively, and a good filtering effect can be achieved while retaining the QRS wave signal (step S400). Among them, when the fixed frequency noise is filtered out for the linear region, a noise template is also obtained (step S420 to step S422). The noise template is used to remove the noise in the nonlinear region (step S430 to step S432), ensuring that while removing the noise, the valid signal overlapping with the noise frequency band is retained.
[0116] It should be understood that although Figure 1 to Figure 4 The steps in the flowchart are shown in sequence as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified in this document, there is no strict order restriction for the execution of these steps, and these steps can be executed in other orders. Moreover, Figure 1 to Figure 4 At least part of the steps may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily executed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least part of the sub-steps or stages of other steps.
[0117] See also Figure 5 The flowchart of the multi-channel fixed frequency noise filtering method based on LEVKOV in each embodiment of the present application is briefly described as follows: after obtaining the data (i.e., magnetocardiogram waveform data) (step S100): on the one hand, data preprocessing (step S110), positioning lead selection (step S120), and template range positioning (step S300 to divide the nonlinear region and the linear region) are performed in sequence. After completion, each magnetocardiogram waveform data is filtered in the linear region (i.e., fixed frequency noise filtering) and template extraction (i.e., noise template extraction), as well as non-template region (i.e., nonlinear region) filtering (step S400).
[0118] See also Figure 6 In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 6 As shown. The computer device includes a processor, a memory, a network interface and a database 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 at least one of the following four: magnetocardiogram waveform data before filtering, cache data, noise data, and magnetocardiogram waveform data after filtering. 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 multi-channel fixed-frequency noise filtering method based on LEVKOV is implemented.
[0119] 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:
[0120] Step S100, obtaining a plurality of magnetocardiogram waveform data using multi-channel leads;
[0121] Step S200, obtaining a peak point in a predicted nonlinear region in the magnetocardiogram waveform data;
[0122] Step S300, dividing the nonlinear region and the linear region, including: offsetting the peak point by a specified threshold value along the time axis to obtain two starting points, using the line between each starting point and the peak point as a reference line, traversing the data points between the peak point and each starting point, using the data points where the peak point is on both sides of the time axis and has the largest distance from the corresponding side reference line as endpoints, the area between the two end points is the nonlinear region, and the rest is the linear region;
[0123] Step S400 , filtering out fixed frequency noise in the linear region and the nonlinear region of each magnetocardiogram waveform data one by one until all magnetocardiogram waveform data are processed.
[0124] 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:
[0125] Step S100, obtaining a plurality of magnetocardiogram waveform data using multi-channel leads;
[0126] Step S200, obtaining a peak point in a predicted nonlinear region in the magnetocardiogram waveform data;
[0127] Step S300, dividing the nonlinear region and the linear region, including: offsetting the peak point by a specified threshold value along the time axis to obtain two starting points, using the line between each starting point and the peak point as a reference line, traversing the data points between the peak point and each starting point, using the data points where the peak point is on both sides of the time axis and has the largest distance from the corresponding side reference line as endpoints, the area between the two end points is the nonlinear region, and the rest is the linear region;
[0128] Step S400 , filtering out fixed frequency noise in the linear region and the nonlinear region of each magnetocardiogram waveform data one by one until all magnetocardiogram waveform data are processed.
[0129] In one embodiment, a computer program product is provided, comprising computer instructions, which when executed by a processor implement the following steps:
[0130] Step S100, obtaining a plurality of magnetocardiogram waveform data using multi-channel leads;
[0131] Step S200, obtaining a peak point in a predicted nonlinear region in the magnetocardiogram waveform data;
[0132] Step S300, dividing the nonlinear region and the linear region, including: offsetting the peak point by a specified threshold value along the time axis to obtain two starting points, using the line between each starting point and the peak point as a reference line, traversing the data points between the peak point and each starting point, using the data points where the peak point is on both sides of the time axis and has the largest distance from the corresponding side reference line as endpoints, the area between the two end points is the nonlinear region, and the rest is the linear region;
[0133] Step S400 , filtering out fixed frequency noise in the linear region and the nonlinear region of each magnetocardiogram waveform data one by one until all magnetocardiogram waveform data are processed.
[0134] In this embodiment, the computer program product includes a program code portion for executing the steps of the multi-channel fixed frequency noise filtering method based on LEVKOV in each embodiment of the present application when the computer program product is executed by one or more computing devices. The computer program product can be stored on a computer-readable recording medium. The computer program product can also be provided for download via a data network (e.g., via a RAN, via the Internet and / or via an RBS). Alternatively or additionally, the method can be encoded in a field programmable gate array (FPGA) and / or an application specific integrated circuit (ASIC), or the functionality can be provided for download with the aid of a hardware description language.
[0135] 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 memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0136] In addition, the applicant has verified the feasibility and effectiveness of the technical solutions provided in each embodiment of the present application through experiments. Specifically, a 25Hz sine wave simulated noise is superimposed on the clean magnetic cardiology signal, and the Chebyshev 25Hz band-stop filter, the integer coefficient 25Hz notch filter and the LEVKOV-based multi-channel fixed frequency noise filtering method provided in each embodiment of the present application are used to compare the time domain and frequency domain results of the three.
[0137] See also Figure 7 to Figure 16 It can be seen from the data in each figure that the Chebyshev 25HZ band-stop filter and the integer coefficient 25Hz notch filter will attenuate the signal in the part of the magnetocardiographic signal that overlaps with the interference frequency band, resulting in deformation of the magnetocardiographic waveform. The multi-channel fixed-frequency noise filtering method based on LEVKOV provided in each embodiment of the present application can effectively avoid deformation of the magnetocardiographic waveform and remove noise interference while retaining the effective signal.
[0138] The technical features of the above embodiments can 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. When the technical features in different embodiments are embodied in the same figure, it can be regarded that the figure also discloses the combination examples of the various embodiments involved.
[0139] The above-mentioned 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 invention patent. 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 patent of the present application shall be subject to the attached claims.
Claims
1. A multi-channel fixed frequency noise filtering method based on LevKov, characterized in that: include: Using multi-channel leads to obtain multiple magnetocardiogram waveform data; Obtaining a peak point in a predicted nonlinear region in the magnetocardiogram waveform data includes: obtaining a peak location threshold by the following formula: , the central magnetic waveform data of the formula includes multiple statistical cycles, It is the sequence after sorting the maximum values of all statistical periods. is a threshold generation coefficient less than 1, n1 is the starting data selected in the sequence SecMax, and n2 is the ending data selected in SecMax; any area greater than the peak positioning threshold is considered to belong to a nonlinear area; the peak positioning threshold is less than the average value of each peak in the magnetocardiogram waveform data, and the peak point is determined according to the relative relationship with the peak positioning threshold; Dividing the nonlinear region and the linear region comprises: when the peak point is offset forward and backward along the time axis, the first specified threshold value and the second specified threshold value are offset respectively to obtain two starting points, the magnetocardiogram waveform data comprises a continuous heartbeat signal, and the sum of the first specified threshold value and the second specified threshold value is greater than the width of the QRS wave in the heartbeat signal; the line between each starting point and the peak point is used as a reference line, traversing the data points between the peak point and each starting point, and taking the data points where the peak point is on both sides of the time axis and the data points with the largest distance from the corresponding side reference line as endpoints respectively, the area between the two end points is the nonlinear area, and the rest is the linear area; Fixed frequency noise is filtered out in the linear region and the nonlinear region of each magnetocardiogram waveform data one by one until all magnetocardiogram waveform data are processed.
2. The multi-channel fixed frequency noise filtering method based on LevKov according to claim 1 is characterized in that: When filtering fixed frequency noise for the linear region, it includes: For one of the data points to be processed, the data point is filtered using the cached data within a predetermined time; the cached data is obtained from the magnetocardiogram waveform data to be processed and has a length of M, M=FS / FRE noise , where FS is the sampling rate, FRE noise is the frequency of fixed frequency noise; The data point to be processed is the data point corresponding to the next moment of the cached data; After filtering the data point, the first data : The cache data; The data points to be processed.
3. The multi-channel fixed frequency noise filtering method based on LevKov according to claim 2 is characterized in that: It also includes using the data at the median position of the cached data to make a difference with the first data to obtain noise data, wherein the set of the noise data is a noise template; The cache data and the noise template are updated in real time: The real-time updating of the cached data is to use the data point corresponding to the next moment of the cached data to be placed into the cached data, and remove the earliest data point on the time axis; The real-time updating of the noise template is to place the latest noise data into the noise template and remove the earliest data point on the time axis.
4. The multi-channel fixed frequency noise filtering method based on LevKov according to claim 3 is characterized in that: When filtering fixed frequency noise in nonlinear areas, it specifically includes: Subtracting the data point at the median position of the cached data from the oldest noise data in the noise template to obtain current filtered data; The cache data and the noise template are updated in real time: The real-time updating of the cached data is to use the data point corresponding to the next moment of the cached data to be placed into the cached data, and remove the earliest data point on the time axis; The real-time updating of the noise template is to put the oldest noise data into the noise template and remove the oldest noise data.
5. The multi-channel fixed frequency noise filtering method based on LevKov according to claim 4 is characterized in that: When fixed frequency noise is filtered out for a nonlinear region, a linear region with a data length of M adjacent to the nonlinear region is filtered in accordance with the filtering method of the nonlinear region.
6. A computer device comprising a memory, a processor and a computer program stored in the memory, characterized in that: The processor executes the computer program to implement the steps of the multi-channel fixed-frequency noise filtering method based on LevKov according to any one of claims 1 to 5.
7. A computer program product comprising computer instructions, characterized in that When the computer instruction is executed by a processor, the steps of the multi-channel fixed-frequency noise filtering method based on LevKov according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Wearable vital sign monitoring device and mental status monitoring method
CN107080527A
KR1024516230000B1
