CN118203332B - Electrocardiogram pacing signal detection method and device - Google Patents
Electrocardiogram pacing signal detection method and device Download PDFInfo
- Publication number
- CN118203332B CN118203332B CN202410208247.6A CN202410208247A CN118203332B CN 118203332 B CN118203332 B CN 118203332B CN 202410208247 A CN202410208247 A CN 202410208247A CN 118203332 B CN118203332 B CN 118203332B
- Authority
- CN
- China
- Prior art keywords
- value
- pacing
- electrocardiosignal
- queue
- window
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000001514 detection method Methods 0.000 title claims abstract description 61
- 238000000034 method Methods 0.000 claims abstract description 29
- 230000036279 refractory period Effects 0.000 claims description 19
- 238000004364 calculation method Methods 0.000 claims description 7
- 238000012545 processing Methods 0.000 claims description 4
- 238000004590 computer program Methods 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 6
- 230000000747 cardiac effect Effects 0.000 description 5
- 230000006870 function Effects 0.000 description 3
- 230000000630 rising effect Effects 0.000 description 3
- 238000003491 array Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 208000033988 Device pacing issue Diseases 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000002238 attenuated effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 239000004744 fabric Substances 0.000 description 1
- WABPQHHGFIMREM-UHFFFAOYSA-N lead(0) Chemical compound [Pb] WABPQHHGFIMREM-UHFFFAOYSA-N 0.000 description 1
- 230000002107 myocardial effect Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000004936 stimulating effect Effects 0.000 description 1
- 238000000547 structure data Methods 0.000 description 1
Classifications
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/24—Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
- A61B5/316—Modalities, i.e. specific diagnostic methods
- A61B5/318—Heart-related electrical modalities, e.g. electrocardiography [ECG]
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/24—Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
- A61B5/316—Modalities, i.e. specific diagnostic methods
- A61B5/318—Heart-related electrical modalities, e.g. electrocardiography [ECG]
- A61B5/346—Analysis of electrocardiograms
Landscapes
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Cardiology (AREA)
- Heart & Thoracic Surgery (AREA)
- Molecular Biology (AREA)
- Pathology (AREA)
- Engineering & Computer Science (AREA)
- Biomedical Technology (AREA)
- Physics & Mathematics (AREA)
- Medical Informatics (AREA)
- Biophysics (AREA)
- Surgery (AREA)
- Animal Behavior & Ethology (AREA)
- General Health & Medical Sciences (AREA)
- Public Health (AREA)
- Veterinary Medicine (AREA)
- Electrotherapy Devices (AREA)
- Measurement And Recording Of Electrical Phenomena And Electrical Characteristics Of The Living Body (AREA)
Abstract
The invention discloses an electrocardiogram pacing signal detection method and device, wherein the method comprises the steps of carrying out point-by-point sliding on pacing electrocardiosignals for a window with fixed length to obtain pacing electrocardiosignal values, and calculating the maximum value and the minimum value of the pacing electrocardiosignal values in the window by utilizing a structure body queue; sequentially and respectively calculating the maximum value and the minimum value in the window and the amplitude difference value of the pacing electrocardiosignal value at the starting point and the pacing electrocardiosignal value at the ending point of the window, and judging whether pacing signals exist in the window according to whether the amplitude difference value meets the pacing signal condition; if the pacing signal exists, the detection threshold is updated until a pacing detection result is output. The invention can reduce the pacing pulse detection which can be suitable for various pacing widths.
Description
Technical Field
The invention relates to the technical field of electrocardiogram processing, in particular to an electrocardiogram pacing signal detection method and device.
Background
The electrocardiogram recorded on the body surface after the artificial cardiac pacemaker is arranged is called a pacing electrocardiogram. The artificial cardiac pacemaker consists of three parts including pulse generator, power source, electrode and conducting wire. The pulse generator is the main body of the pacemaker, is a precise electronic instrument, and has the function of emitting discharge pulses according to a certain frequency by the circuit design. The pulse current released by the pulse generator is called a pacing signal, which is transmitted to the myocardial tissue via a wire connection system when the heart beat is too slow, stimulating the heart to contract and accelerating the heart rate. The pacing signal recorded on the electrocardiogram exhibits an amplitude that is a brief linear fluctuation perpendicular to the electrocardiogram baseline. Analysis of conventional and dynamic electrocardiograms helps to determine pacing effects and to discover pacing faults when the pacing system fails.
The detection of the pacing signals is mainly carried out by adopting a method of extracting the rising edge and the falling edge of the pacing pulse and combining a threshold value. For the extraction of edge signals, a differential method is generally adopted at present, and the method has the following defects: the differential method cannot adapt to the pacing pulse width of each type, and because the pacing pulse width is not fixed (0.1 ms-2 ms), the differential method can extract the real pulse amplitude for the pacing pulse with a certain width, but the pacing pulse amplitude extracted from other widths can be attenuated, so that the pacing signal is missed. For the pacing detection threshold, the current partial methods adopt a fixed threshold for pacing detection, and the pacing detection is easy to be missed or false due to the large change of the pacing pulse amplitude (2 mV-700 mV).
Disclosure of Invention
In view of the above technical problems, the present invention provides a method and an apparatus for detecting an electrocardiogram pacing signal, which can reduce pacing pulse detection applicable to various pacing widths.
In a first aspect of the present invention, there is provided an electrocardiogram pacing signal detecting method including:
the pacing electrocardiosignal value is obtained by sliding a window with fixed length point by point, and the maximum value and the minimum value of the pacing electrocardiosignal value in the window are calculated by utilizing a structural body queue;
Sequentially and respectively calculating the maximum value and the minimum value in the window and the amplitude difference value of the pacing electrocardiosignal value at the starting point and the pacing electrocardiosignal value at the ending point of the window, and judging whether pacing signals exist in the window according to whether the amplitude difference value meets the pacing signal condition;
If the pacing signal exists, the detection threshold is updated until a pacing detection result is output.
In an optional embodiment, the determining whether the pacing signal exists in the window according to whether the amplitude difference meets the pacing signal condition includes:
the amplitude difference value comprises two edge amplitude values of the maximum value and two edge amplitude values of the minimum value;
And sequentially detecting whether the two edge amplitude values of the maximum value or the two edge amplitude values of the minimum value meet the condition of the pacing signal, and judging whether the pacing signal exists in the window.
In an alternative embodiment, the determining whether the pacing signal exists in the window includes at least:
whether the two edge amplitude values of the maximum value and the two edge amplitude values of the minimum value are greater than the detection threshold.
In an alternative embodiment, the calculating the maximum and minimum values of the pacing electrocardiosignal values within the window using the structure queue includes:
using the index and the signal value as the maximum value and the minimum value of the pacing electrocardiosignal value in a structural body data recording window, wherein the index is the input pacing electrocardiosignal sequence number value;
The structure queue includes a maximum sequence of pacing electrocardiosignal values and a minimum sequence of pacing electrocardiosignal values.
In an alternative embodiment, the calculating the maximum and minimum values of the pacing electrocardiosignal values within the window using the structure queue further includes:
In the maximum value queue, circularly judging whether the signal value of the tail of the queue in the structure body queue is smaller than or equal to the current pacing electrocardiosignal value, if the condition is met, popping up the tail data of the structure body queue until the structure body queue is empty or the signal value of the tail structure body is larger than the current pacing electrocardiosignal value;
in the minimum value queue, circularly judging whether the signal value of the tail of the queue in the structure queue is greater than or equal to the current pacing electrocardiosignal value, if the condition is met, popping up the tail data of the structure queue until the structure queue is empty or the signal value of the tail structure is smaller than the current pacing electrocardiosignal value;
And in the maximum value queue and the minimum value queue, circularly judging whether the absolute value of the difference value between the head index value of the structure body queue and the current index value is larger than the window length, and if the condition is met, popping the head data of the structure body queue until the structure body queue is empty or the absolute value of the difference value is smaller than or equal to the window length.
In an alternative embodiment, calculating the maximum and minimum values of the pacing electrocardiosignal values within the window using the structure queue further comprises:
Judging whether the current pacing electrocardiosignal is in a refractory period, and if so, not judging the pacing signal;
pacing detection threshold update is performed:
pacing detection threshold thresholdPace =7 x threshhold pace/8+k x avediffval/8;
Where K is a fixed ratio coefficient and AVEDIFFVAL is the average of the start and end point and the maximum/minimum difference.
In an alternative embodiment, the refractory period calculation rule includes: every time a new pacing electrocardiosignal is input, the refractory period timer subtracts the time corresponding to a signal point until the refractory period timer returns to zero.
In a second aspect of the present invention, there is provided an electrocardiogram pacing signal detecting apparatus including:
The data processing module is used for carrying out point-by-point sliding on the pacing electrocardiosignal for a window with a fixed length to obtain a pacing electrocardiosignal value, and calculating the maximum value and the minimum value of the pacing electrocardiosignal value in the window by utilizing the structure body queue;
The signal judging module is used for sequentially and respectively calculating the maximum value and the minimum value in the window and the amplitude difference value of the pacing electrocardiosignal value at the starting point and the pacing electrocardiosignal value at the ending point of the window, and judging whether a pacing signal exists in the window according to whether the amplitude difference value meets the pacing signal condition or not;
and the updating output module is used for updating the detection threshold value until a pacing detection result is output if the pacing signal exists.
In a third aspect of the present invention, there is provided an electronic apparatus comprising:
At least one processor; and at least one memory communicatively coupled to the processor, wherein: the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method according to the first aspect of the embodiments of the invention.
In a fourth aspect of the invention, a computer-readable storage medium is provided, on which a computer program is stored which, when run by a computer, performs the method according to the first aspect of the embodiment of the invention.
The method for sliding through the fixed-length window can be suitable for pacing pulse detection of various pacing widths; the pacing detection threshold value is updated continuously, so that the method is suitable for pacing pulse detection of various pacing amplitudes, and the accuracy of pacing detection is improved effectively.
Drawings
Fig. 1 is a flowchart of a method for detecting an ecg pacing signal according to an embodiment of the present invention.
Fig. 2 is a schematic diagram of an electrocardiogram pacing test result.
Fig. 3 is a schematic diagram of a calculation of intra-window pacing signals in an embodiment of the present invention.
Fig. 4 is a schematic diagram of fabric queue information according to an embodiment of the invention.
Fig. 5 is a flow chart of a maximum pacing signal queue update in an embodiment of the present invention.
Fig. 6 is a flowchart of determining a pacing signal according to an embodiment of the present invention.
Fig. 7 is a schematic block diagram of an electrocardiographic pacing signal detecting device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, the present invention provides a method for detecting an electrocardiogram pacing signal, which includes:
step 100: and (3) performing point-by-point sliding on the pacing electrocardiosignal for a window with a fixed length to obtain a pacing electrocardiosignal value, and calculating the maximum value and the minimum value of the pacing electrocardiosignal value in the window by utilizing the structural body queue.
The pacing signal is a narrow pulse with two steep edges (rising followed by falling, or falling followed by rising). According to the invention, pacing detection is performed according to the characteristics of pacing pulses, and two edges are acquired by using a window.
Step 200: and sequentially and respectively calculating amplitude differences between the maximum value and the minimum value in the window and the pacing electrocardiosignal value at the starting point and the pacing electrocardiosignal value at the ending point of the window, and judging whether pacing signals exist in the window according to whether the amplitude differences meet pacing signal conditions.
The amplitude difference value comprises two edge amplitude values of the maximum value and two edge amplitude values of the minimum value;
And sequentially detecting whether the two edge amplitude values of the maximum value or the two edge amplitude values of the minimum value meet the condition of the pacing signal, and judging whether the pacing signal exists in the window. I.e. only one of the two conditions of maximum or minimum edge amplitude is required, the presence of a pacing signal is considered, and neither is required. But both edge magnitudes are determined and updated.
Illustratively, the maximum value of the pacing electrocardiosignal within the window is acquired via a maximum value queue, denoted maxVal. The amplitude differences between the maximum and the window start and end points, respectively, are then calculated, which can be considered as two edge values of the pacing signal, as follows:
diffMaxValOn=maxVal–valOn;
diffMaxValOff=maxVal–valOff;
Wherein diffMaxValOn and diffMaxValOff are the amplitude differences of the maximum and window start and end points, respectively, and valOn and valOff are the amplitude values of the window start and end point pacing cardiac signals, respectively.
The difference in amplitude between the minimum and the window start and end points, which can be considered as two edge values of the pacing signal, is calculated as follows:
diffMinValOn=valOn–minVal;
diffMinValOff=valOff–minVal;
Wherein diffMinValOn and diffMinValOff are the amplitude differences of the minimum and window start and end points, respectively, and valOn and valOff are the amplitude values of the window start and end point pacing cardiac signals, respectively.
And judging whether a pacing signal exists in the window according to whether the amplitude difference meets the pacing signal condition or not, wherein the method is as follows.
For the maximum value, judging whether the two calculated amplitude differences meet pacing conditions, and if so, considering that a pacing signal is detected, wherein the pacing conditions are as follows:
(1) diffMaxValOn > thresholdPace, and diffMaxValOff > thresholdPace;
(2) |diffMaxValOn - diffMaxValOff| <= (diffMaxValOn +diffMaxValOff)/16;
Wherein thresholdPace is the threshold for pacing signal detection, and a pacing signal is considered detected when both conditions are met.
Judging whether the two calculated amplitude differences meet the condition or not for the minimum value, and if the two calculated amplitude differences meet the condition, considering that a pacing signal is detected, wherein the pacing condition is as follows:
(1) diffMinValOn > thresholdPace, and diffMinValOff > thresholdPace;
(2) |diffMinValOn-diffMinValOff|<=(diffMinValOn+diffMinValOff)/16;
Wherein thresholdPace is the threshold for pacing signal detection, and a pacing signal is considered detected when both conditions are met.
Step 300: if the pacing signal exists, the detection threshold is updated until a pacing detection result is output.
After the detection flow is finished, a result of pacing detection is output so that a user can check the working state of the pacemaker through pacing electrocardiogram. Fig. 2 is a schematic diagram of an electrocardiogram pacing test result.
The present invention will be further described below. In step 100 of the present invention, when acquiring a pacing signal, a human body acquires a pacing electrocardiograph signal (an electrocardiograph signal including a pacing signal) through a lead wire connection. And then sliding a window point by point on the paced electrocardiosignal, and calculating the maximum value and the minimum value of the signals in the window. In step 200, the amplitude differences between the maximum value and the minimum value and the window start point and end point are calculated, and whether the pacing signal exists is determined according to the amplitude differences, for example, whether the two edge amplitude values of the maximum value and the two edge amplitude values of the minimum value are greater than the detection threshold. If the pacing signal exists, updating the detection threshold value, and finally outputting a pacing detection result.
Fig. 3 is a schematic diagram of a pacing detection window, where x0 to x15 represent continuous pacing electrocardiosignals, the length of the window in the figure is W, in practical application, the value range of W may be 2ms to 4ms, the signal x3 is the starting point of the window, the signal x12 is the ending point of the window, and the signal of the current window is x3 to x12. The window is slid point by point, the starting point of the next window is x4, the ending point is x13, and so on. It should be understood that each point is a single pulse of electrical signal.
Furthermore, the maximum value and the minimum value of the pacing electrocardiosignal value in the window are calculated by using the structure body queue, and the structure body queue method can effectively reduce the calculation time and improve the operation efficiency of the whole system. The method comprises the following steps:
using the index and the signal value as the maximum value and the minimum value of the pacing electrocardiosignal value in a structural body data recording window, wherein the index is the input pacing electrocardiosignal sequence number value;
The structure queue includes a maximum sequence of pacing electrocardiosignal values and a minimum sequence of pacing electrocardiosignal values.
Specifically, as shown in fig. 4, the index and the signal value are used as one structural data, wherein the index is the serial number value of the input pacing electrocardiosignal, the serial number value of the first pacing electrocardiosignal is 0, the second pacing electrocardiosignal is 1, and so on. The signal value is the amplitude value of the pacing electrocardiosignal. The structure data as a whole is subjected to operations of pressing in the queue (adding data to the queue, proceeding at the head or tail of the queue) and popping (deleting data from the queue, proceeding at the head or tail of the queue). Two queues (a maximum value queue and a minimum value queue) are constructed with the above-described structure body data as elements. The queue has the following characteristics: the queue head stores data meeting the maximum/minimum requirements in the window, and the queue tail meets the monotonic requirements. When new data is entered, the queue is updated according to the characteristics, so that the maximum/small value of the window can be guaranteed to be always stored at the head of the queue, and the maximum/small value is calculated and directly read at the head of the queue.
In step 100, the calculating, using the structure queue, a maximum value and a minimum value of the pacing electrocardiosignal value within the window, further includes:
In the maximum value queue, circularly judging whether the signal value of the tail of the queue in the structure body queue is smaller than or equal to the current pacing electrocardiosignal value, if the condition is met, popping up the tail data of the structure body queue until the structure body queue is empty or the signal value of the tail structure body is larger than the current pacing electrocardiosignal value;
in the minimum value queue, circularly judging whether the signal value of the tail of the queue in the structure queue is greater than or equal to the current pacing electrocardiosignal value, if the condition is met, popping up the tail data of the structure queue until the structure queue is empty or the signal value of the tail structure is smaller than the current pacing electrocardiosignal value;
And in the maximum value queue and the minimum value queue, circularly judging whether the absolute value of the difference value between the head index value of the structure body queue and the current index value is larger than the window length, and if the condition is met, popping the head data of the structure body queue until the structure body queue is empty or the absolute value of the difference value is smaller than or equal to the window length.
Fig. 5 is a maximum value queue update flow chart. Taking the maximum value of the pacing electrocardiosignals in the calculation window as an example, when a new pacing electrocardiosignal is input, firstly, circularly judging whether the signal value of the tail of the structural body queue is smaller than or equal to the current pacing electrocardiosignal value, and if the condition is met, popping up the tail data of the structural body queue until the queue is empty or the signal value of the tail of the structural body queue is larger than the current pacing electrocardiosignal value; and then circularly judging whether the distance between the head index value of the structure body queue and the difference value of the current index value is larger than the window length W.
Specifically, whether or not |IdxCur-IdxDQFront | > W accords is calculated, wherein IdxCur is a current index value, idxDQFront is an index value of a queue head structure body, an absolute value of a difference between the two values is calculated, and whether or not the absolute value is larger than a window length W is judged. If the condition is met, popping the head data of the structure body queue until the queue is empty or the absolute value of the index difference value is smaller than or equal to the window length. And finally, forming a structure body data by the current index and the input pacing electrocardiosignal value, pressing the structure body data into the queue from the tail of the queue, and updating the current index value by adding 1 to prepare for judging the next pacing electrocardiosignal. The maximum value in the window can be ensured to be kept at the head of the queue by the structural body queue of the maximum value, and when the maximum value of the pacing electrocardiosignal in the window needs to be acquired, the signal value of the structural body at the head of the queue is directly read to obtain the required maximum value.
The minimum value calculation method of the pacing electrocardiosignals in the window is similar to the maximum value, a structure body queue of the minimum value is constructed, and similar update logic is adopted, so that the effect that the minimum value of the window is kept at the head of the queue is achieved. When the minimum value of the pacing electrocardiosignal in the window needs to be acquired, the signal value of the head structure body of the queue is directly read to be the required minimum value, and the details are not repeated.
Still further, calculating the maximum and minimum values of the pacing cardiac signal values within the window using the structure queue further comprises: judging whether the current pacing electrocardiosignal is in the refractory period, if so, not judging the pacing signal, and directly ending.
As shown in fig. 6, in order to reduce false detection of a pacing signal, the present invention adds a refractory period for pacing detection to a flow of determining a pacing signal, and does not determine a pacing signal in a range of the refractory period. For example, the time range from the start of a pacing signal to 50ms after the pacing signal is defined as the refractory period, i.e. no new pacing detection is performed within 50ms after detection of one pacing signal.
The refractory period calculation rule includes: every time a new pacing electrocardiosignal is input, the refractory period timer subtracts the time corresponding to a signal point until the refractory period timer returns to zero. For example, after detecting the pacing signal, the value of the timer is set to 50ms, and each new pacing electrocardiosignal is input, the timer subtracts the time corresponding to one signal point, and if the timer is 0, the refractory period is ended.
In one embodiment, a pacing detection threshold update is performed:
pacing detection threshold thresholdPace =7 x threshhold pace/8+k x avediffval/8;
Where K is a fixed ratio coefficient and AVEDIFFVAL is the average of the start and end point and the maximum/minimum difference.
It should be appreciated that the above updated formula for the pacing detection threshold. I.e. after detecting pacing, do two things: firstly, updating a pacing threshold; and secondly, setting a refractory period, wherein the refractory period setting can refer to the 50ms setting range.
AVEDIFFVAL = (diffMaxValOn + diffMaxValOff)/2 if a pacing signal is detected with logic that takes the maximum value to the starting and ending point difference; AVEDIFFVAL = (diffMinValOn + diffMinValOff)/2 if a pacing signal is detected with logic that takes the minimum value to the starting and ending point difference values.
In summary, the method of sliding window is adopted to detect the pacing signal, the window with fixed length is slid point by point for the pacing electrocardiosignal, the maximum value and the minimum value in the window are calculated by utilizing the structural body queue, then the amplitude difference values of the maximum value and the minimum value and the starting point and the ending point of the window are sequentially calculated, two edge amplitude values of the maximum value and two edge amplitude values of the minimum value are respectively obtained, whether the two edge amplitude values meet the pacing signal condition is sequentially detected, and whether the pacing signal exists in the window is judged. If a pacing signal is present, the detection threshold is updated. The method of sliding through the fixed length window can be suitable for detecting pacing pulses with various pacing widths; the method can be suitable for pacing pulse detection of various pacing amplitudes by continuously updating the pacing detection threshold. Meanwhile, the pacing detection refractory period is set after the pacing signal is detected, so that the accuracy of pacing detection is effectively improved.
As shown in fig. 7, the present invention further provides an electrocardiographic pacing signal detecting apparatus, including:
The data processing module 71 is configured to perform a point-by-point sliding on the pacing electrocardiosignal for a window with a fixed length to obtain a pacing electrocardiosignal value, and calculate a maximum value and a minimum value of the pacing electrocardiosignal value in the window by using the structure body queue;
A signal judging module 72, configured to sequentially calculate amplitude differences between the maximum value and the minimum value in the window and the start point pacing electrocardiosignal value and the end point pacing electrocardiosignal value of the window, and judge whether a pacing signal exists in the window according to whether the amplitude differences meet a pacing signal condition;
The update output module 73 is configured to update the detection threshold value if the pacing signal exists, until a pacing detection result is output.
The present invention also provides an electronic device including:
at least one processor; and at least one memory communicatively coupled to the processor, wherein: the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of detecting an electrocardiogram pacing signal described above.
The present invention also provides a computer readable storage medium having stored thereon a computer program which when executed by a processor implements the above-described method of electrocardiographic pacing signal detection.
Logic and/or steps represented in the flowcharts or otherwise described herein, e.g., a ordered listing of executable instructions for implementing logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device.
More specific examples of the computer readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). In addition, the computer readable medium may even be paper or other suitable medium on which the program is printed, as the program may be electronically captured, via, for instance, optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner, if necessary, and then stored in a computer memory.
It is to be understood that portions of the present invention may be implemented in hardware, software, firmware, or a combination thereof. In the above-described embodiments, the various steps or methods may be implemented in software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, may be implemented using any one or combination of the following techniques, as is well known in the art: discrete logic circuits having logic gates for implementing logic functions on data signals, application specific integrated circuits having suitable combinational logic gates, programmable Gate Arrays (PGAs), field Programmable Gate Arrays (FPGAs), and the like. In the description of the present specification, a description referring to terms "one embodiment," "some embodiments," "examples," "specific examples," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the present invention. In this specification, schematic representations of the above terms do not necessarily refer to the same embodiments or examples. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
While embodiments of the present invention have been shown and described, it will be understood by those of ordinary skill in the art that: many changes, modifications, substitutions and variations may be made to the embodiments without departing from the spirit and principles of the invention, the scope of which is defined by the claims and their equivalents.
The above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims (6)
1. An electrocardiogram pacing signal detection method, comprising:
the pacing electrocardiosignal value is obtained by sliding a window with fixed length point by point, and the maximum value and the minimum value of the pacing electrocardiosignal value in the window are calculated by utilizing a structural body queue;
Sequentially and respectively calculating the maximum value and the minimum value in the window and the amplitude difference value of the pacing electrocardiosignal value at the starting point and the pacing electrocardiosignal value at the ending point of the window, and judging whether pacing signals exist in the window according to whether the amplitude difference value meets the pacing signal condition;
if the pacing signal exists, updating the detection threshold until a pacing detection result is output;
Judging whether a pacing signal exists in the window according to whether the amplitude difference meets the pacing signal condition or not, comprising:
The amplitude difference value comprises two edge amplitude values of the maximum value and two edge amplitude values of the minimum value; calculating amplitude differences between the maximum value and the minimum value and between the window starting point and the window ending point to respectively obtain two edge amplitude values of the maximum value and two edge amplitude values of the minimum value;
Sequentially detecting whether two edge amplitude values of the maximum value or two edge amplitude values of the minimum value meet pacing signal conditions, and judging whether pacing signals exist in the window;
The determining whether a pacing signal exists in the window at least includes:
Whether the two edge amplitude values of the maximum value and the two edge amplitude values of the minimum value are larger than a detection threshold value;
the calculating of maximum and minimum values of pacing electrocardiosignal values within a window using a structure queue comprises:
using the index and the signal value as the maximum value and the minimum value of the pacing electrocardiosignal value in a structural body data recording window, wherein the index is the input pacing electrocardiosignal sequence number value;
the structure body queue comprises a maximum value sequence of pacing electrocardiosignal values and a minimum value sequence of pacing electrocardiosignal values;
The method for calculating the maximum value and the minimum value of the pacing electrocardiosignal value in the window by using the structure body queue further comprises the following steps:
In the maximum value queue, circularly judging whether the signal value of the tail of the queue in the structure body queue is smaller than or equal to the current pacing electrocardiosignal value, if the condition is met, popping up the tail data of the structure body queue until the structure body queue is empty or the signal value of the tail structure body is larger than the current pacing electrocardiosignal value;
in the minimum value queue, circularly judging whether the signal value of the tail of the queue in the structure queue is greater than or equal to the current pacing electrocardiosignal value, if the condition is met, popping up the tail data of the structure queue until the structure queue is empty or the signal value of the tail structure is smaller than the current pacing electrocardiosignal value;
And in the maximum value queue and the minimum value queue, circularly judging whether the absolute value of the difference value between the head index value of the structure body queue and the current index value is larger than the window length, and if the condition is met, popping the head data of the structure body queue until the structure body queue is empty or the absolute value of the difference value is smaller than or equal to the window length.
2. The method of claim 1, further comprising, after calculating the maximum and minimum values of the pacing electrocardiosignal values within the window using the structure array:
Judging whether the current pacing electrocardiosignal is in a refractory period, and if so, not judging the pacing signal;
pacing detection threshold update is performed:
pacing detection threshold thresholdPace =7× thresholdPace/8+k× AVEDIFFVAL/8;
Where K is a fixed ratio coefficient and AVEDIFFVAL is the average of the start and end point and the maximum/minimum difference.
3. The method of electrocardiographic pacing signal detection according to claim 2, wherein the refractory period calculation rule includes: every time a new pacing electrocardiosignal is input, the refractory period timer subtracts the time corresponding to a signal point until the refractory period timer returns to zero.
4. An electrocardiogram pacing signal detecting apparatus, comprising:
The data processing module is used for carrying out point-by-point sliding on the pacing electrocardiosignal for a window with a fixed length to obtain a pacing electrocardiosignal value, and calculating the maximum value and the minimum value of the pacing electrocardiosignal value in the window by utilizing the structure body queue;
The signal judging module is used for sequentially and respectively calculating the maximum value and the minimum value in the window and the amplitude difference value of the pacing electrocardiosignal value at the starting point and the pacing electrocardiosignal value at the ending point of the window, and judging whether a pacing signal exists in the window according to whether the amplitude difference value meets the pacing signal condition or not;
the updating output module is used for updating the detection threshold value until a pacing detection result is output if a pacing signal exists;
Judging whether a pacing signal exists in the window according to whether the amplitude difference meets the pacing signal condition or not, comprising:
The amplitude difference value comprises two edge amplitude values of the maximum value and two edge amplitude values of the minimum value; calculating amplitude differences between the maximum value and the minimum value and between the window starting point and the window ending point to respectively obtain two edge amplitude values of the maximum value and two edge amplitude values of the minimum value;
Sequentially detecting whether two edge amplitude values of the maximum value or two edge amplitude values of the minimum value meet pacing signal conditions, and judging whether pacing signals exist in the window;
The determining whether a pacing signal exists in the window at least includes:
Whether the two edge amplitude values of the maximum value and the two edge amplitude values of the minimum value are larger than a detection threshold value;
the calculating of maximum and minimum values of pacing electrocardiosignal values within a window using a structure queue comprises:
using the index and the signal value as the maximum value and the minimum value of the pacing electrocardiosignal value in a structural body data recording window, wherein the index is the input pacing electrocardiosignal sequence number value;
the structure body queue comprises a maximum value sequence of pacing electrocardiosignal values and a minimum value sequence of pacing electrocardiosignal values;
The method for calculating the maximum value and the minimum value of the pacing electrocardiosignal value in the window by using the structure body queue further comprises the following steps:
In the maximum value queue, circularly judging whether the signal value of the tail of the queue in the structure body queue is smaller than or equal to the current pacing electrocardiosignal value, if the condition is met, popping up the tail data of the structure body queue until the structure body queue is empty or the signal value of the tail structure body is larger than the current pacing electrocardiosignal value;
in the minimum value queue, circularly judging whether the signal value of the tail of the queue in the structure queue is greater than or equal to the current pacing electrocardiosignal value, if the condition is met, popping up the tail data of the structure queue until the structure queue is empty or the signal value of the tail structure is smaller than the current pacing electrocardiosignal value;
And in the maximum value queue and the minimum value queue, circularly judging whether the absolute value of the difference value between the head index value of the structure body queue and the current index value is larger than the window length, and if the condition is met, popping the head data of the structure body queue until the structure body queue is empty or the absolute value of the difference value is smaller than or equal to the window length.
5. An electronic device, comprising:
At least one processor; and at least one memory communicatively coupled to the processor, wherein: the memory stores program instructions executable by the processor, the processor invoking the program instructions capable of performing the electrocardiogram pacing signal detection method of any one of claims 1 to 3.
6. A computer-readable storage medium, having stored thereon a computer program which, when executed by a computer, performs the electrocardiogram pacing signal detection method according to any one of claims 1 to 3.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410208247.6A CN118203332B (en) | 2024-02-26 | 2024-02-26 | Electrocardiogram pacing signal detection method and device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202410208247.6A CN118203332B (en) | 2024-02-26 | 2024-02-26 | Electrocardiogram pacing signal detection method and device |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN118203332A CN118203332A (en) | 2024-06-18 |
| CN118203332B true CN118203332B (en) | 2024-10-15 |
Family
ID=91446803
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202410208247.6A Active CN118203332B (en) | 2024-02-26 | 2024-02-26 | Electrocardiogram pacing signal detection method and device |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN118203332B (en) |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2010018608A1 (en) * | 2008-08-14 | 2010-02-18 | Universita' Degli Studi Di Perugia | System for detecting pacing pulses in electrocardiogram signals |
| CN114795241A (en) * | 2022-03-31 | 2022-07-29 | 深圳华清心仪医疗电子有限公司 | Electrocardiosignal noise detection method and system |
Family Cites Families (10)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US9042952B2 (en) * | 1997-01-27 | 2015-05-26 | Lawrence A. Lynn | System and method for automatic detection of a plurality of SPO2 time series pattern types |
| ATE479387T1 (en) * | 2004-11-02 | 2010-09-15 | Medtronic Inc | TECHNIQUES FOR USER-ACTIVATED DATA RETENTION IN AN IMPLANTABLE MEDICAL DEVICE |
| US9026198B2 (en) * | 2010-07-13 | 2015-05-05 | Biotronik Se & Co. Kg | Method and device for noise detection in physiological signals |
| CN102663708B (en) * | 2012-04-27 | 2015-06-10 | 飞依诺科技(苏州)有限公司 | Ultrasonic image processing method based on directional weighted median filter |
| US20140073955A1 (en) * | 2012-09-11 | 2014-03-13 | Nellcor Puritan Bennett Llc | Methods and systems for determining physiological information based on a classification of a physiological signal |
| CN111345812B (en) * | 2018-12-24 | 2024-11-22 | Zoll医疗公司 | R-wave detection method and device, and computer-readable storage medium |
| PL241615B1 (en) * | 2020-09-22 | 2022-11-07 | Akademia Gorniczo Hutnicza Im Stanislawa Staszica W Krakowie | The method of detecting the QRS complex in the electrocardiogram signal |
| CN113890870B (en) * | 2021-09-30 | 2023-09-19 | 兰州乐智教育科技有限责任公司 | RTP data packet ordering method and device, electronic equipment and storage medium |
| CN115114952A (en) * | 2021-12-23 | 2022-09-27 | 深圳华清心仪医疗电子有限公司 | Method for eliminating baseline drift of electrocardiosignal |
| CN116173412A (en) * | 2023-03-17 | 2023-05-30 | 广东宝莱特医用科技股份有限公司 | Rhythm recognition-based defibrillation equipment control method, device, and defibrillation equipment |
-
2024
- 2024-02-26 CN CN202410208247.6A patent/CN118203332B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| WO2010018608A1 (en) * | 2008-08-14 | 2010-02-18 | Universita' Degli Studi Di Perugia | System for detecting pacing pulses in electrocardiogram signals |
| CN114795241A (en) * | 2022-03-31 | 2022-07-29 | 深圳华清心仪医疗电子有限公司 | Electrocardiosignal noise detection method and system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN118203332A (en) | 2024-06-18 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7941209B2 (en) | Signal analysis method | |
| US11109794B2 (en) | Method and apparatus for processing ECG signals, and ECG machine | |
| US10172531B2 (en) | Heartbeat detection method and heartbeat detection device | |
| US10945623B2 (en) | Heartbeat detection method and heartbeat detection device | |
| JP2003527143A (en) | Pacemaker using DSP with improved event type determination function and monitor function | |
| CN111345816A (en) | Multi-lead QRS complex detection method, device, equipment and storage medium | |
| JPS63226338A (en) | System and method for removing pace pulse | |
| CN112836546A (en) | Method, device and electronic device for detecting physiological signal quality | |
| EP0857457A2 (en) | Method and system for the fast determination of EKG waveform morphology | |
| JP2018175152A (en) | Heart beat detection method and heart beat detection device | |
| CN109843165A (en) | Heartbeat detection method and heartbeat detection device | |
| CN118203332B (en) | Electrocardiogram pacing signal detection method and device | |
| US11058361B2 (en) | Signal processing apparatus, imaging apparatus, and signal processing method | |
| EP1538979B1 (en) | A congestive heart failure monitor | |
| US11730417B2 (en) | Apparatus and method for detecting R peak of ECG signal using adaptive median filter | |
| JP2019202141A (en) | Identifying activations in atrial fibrillation electrogram | |
| CN115886834B (en) | ECG (electrocardiogram) data peak detection method and device and computer equipment | |
| CN115067967A (en) | Heart beat signal reference point determining method, heart beat type identifying method and device | |
| JP2015217060A (en) | Heart rate detection method and heart rate detection device | |
| Agrawal et al. | FPGA-based peak detection of ECG signal using histogram approach | |
| CN108113664A (en) | Method and system for suppressing notch filter ringing during ECG signal acquisition | |
| CN110807443B (en) | Somatosensory network electrocardiosignal segmentation method based on parameter self-adaptive HMM model | |
| JPH0545257B2 (en) | ||
| CN117295539A (en) | Implantable medical devices configured to provide intracardiac functions | |
| JP7457266B2 (en) | Signal analysis device, signal analysis method and program |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |