R-wave detection method and device, and computer-readable storage medium

By preprocessing ECG signals and utilizing QRS reference feature sets, combined with filtered and integrated data, rapid detection of the R wave in ECG signals was achieved, solving the problem of slow detection speed in existing technologies and improving detection efficiency.

CN111345812BActive Publication Date: 2024-11-22ZOLL MEDICAL CORPORATION
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201811582222.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2018-12-24
Publication Date
2024-11-22
Estimated Expiration
2038-12-24

AI Technical Summary

Technical Problem

Existing technologies are slow in locating the R wave in electrocardiogram signal processing, which cannot meet practical needs.

Method used

A rapid R-wave detection process is adopted, which achieves rapid R-wave detection by preprocessing the ECG signal, utilizing the QRS reference feature set, and combining ECG filtered data and integral data.

Benefits of technology

It significantly shortens the R-wave detection time and improves the detection speed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111345812B_ABST
    Figure CN111345812B_ABST
Patent Text Reader

Abstract

The present disclosure relates to an R-wave detection method and device, and a computer-readable storage medium. A detection method for locating an R-wave in an ECG signal, comprising: preprocessing an acquired ECG signal; based on the preprocessed ECG signal, detecting according to a conventional R-wave detection process, and deriving a QRS reference feature group; using the QRS reference feature group, detecting the R-wave according to a fast R-wave detection process, wherein the conventional R-wave detection process is based on the ECG filtering data and ECG integral data acquired in the preprocessing, and the fast R-wave detection process detects the R-wave faster than the conventional R-wave detection process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of signal processing, and in particular to the processing of electrocardiogram (ECG) signals. Background Art

[0002] Figure 1 A schematic diagram showing a typical ECG signal including a QRS wave. The QRS wave reflects the changes in the left and right ventricular depolarization potential and time. Figure 1 As shown, in the QRS wave, the first downward wave is the Q wave, the next upward wave is the R wave, and the next downward wave is the S wave.

[0003] List of cited documents

[0004] Non-patent literature

[0005] Pan,J.,&Tompkins,WJ(1985).A real-time QRS detection algorithm.IEEETrans.Biomed.Eng,32(3),230-236.

[0006] In the field of ECG signal processing, the positioning of R waves is crucial. Traditional methods such as Pan's paper are very slow in positioning R waves and cannot meet actual needs. Summary of the invention

[0007] In view of this, the present disclosure proposes an R-wave detection method and device, and a computer-readable storage medium.

[0008] According to one aspect of the present disclosure, a detection method for locating R waves in ECG signals is provided, comprising: preprocessing the acquired ECG signals; based on the preprocessed ECG signals, detecting according to a conventional R wave detection process, and deriving a QRS reference feature group; using the QRS reference feature group, detecting R waves according to a fast R wave detection process, wherein the conventional R wave detection process is based on ECG filtering data and ECG integration data acquired in the preprocessing, and the fast R wave detection process detects R waves faster than the conventional R wave detection process.

[0009] According to another aspect of the present disclosure, a detection device for locating R waves in ECG signals is provided, comprising: a preprocessing module configured to preprocess the acquired ECG signals; a QRS reference feature group export module configured to perform detection according to a conventional R wave detection process based on the preprocessed ECG signals, and to export a QRS reference feature group; an R wave detection module configured to detect R waves according to a fast R wave detection process using the QRS reference feature group, wherein the conventional R wave detection process is based on the ECG filtering data and ECG integration data acquired in the preprocessing, and the fast R wave detection process detects R waves faster than the conventional R wave detection process.

[0010] According to another aspect of the present disclosure, a detection device for locating R waves in ECG signals is provided, comprising: a processor; a memory for storing processor executable instructions; wherein the processor is configured to implement any one of the above methods when executing the processor executable instructions.

[0011] According to another aspect of the present disclosure, a non-volatile computer-readable storage medium is provided, on which computer program instructions are stored, wherein the computer program instructions implement the above method when executed by a processor.

[0012] By adopting the above-mentioned rapid R-wave detection process in addition to the conventional R-wave detection process, the R-wave detection method and device according to aspects of the present disclosure can shorten the time required for detecting R waves compared to the prior art.

[0013] Further features and aspects of the present disclosure will become apparent from the following detailed description of exemplary embodiments with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0014] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate exemplary embodiments, features, and aspects of the disclosure and, together with the description, serve to explain the principles of the disclosure.

[0015] Figure 1 A schematic diagram showing a typical ECG signal including a QRS wave.

[0016] Figure 2 A flow chart of a detection method 100 for locating an R wave in an ECG signal according to an embodiment of the present disclosure is shown.

[0017] Figure 3 A schematic block diagram of a detection device 200 for locating an R wave in an ECG signal according to another embodiment of the present disclosure is shown.

[0018] Figure 4A schematic diagram of a detection device 300 for locating an R wave in an ECG signal according to yet another embodiment of the present disclosure is shown.

[0019] Figure 5 is a block diagram of a detection device 800 according to an example. DETAILED DESCRIPTION

[0020] Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise specified.

[0021] The word “exemplary” is used exclusively herein to mean “serving as an example, example, or illustration.” Any embodiment described herein as “exemplary” is not necessarily to be construed as preferred or advantageous over other embodiments.

[0022] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods, means, components and circuits well known to those skilled in the art are not described in detail in order to highlight the subject matter of the present disclosure.

[0023] Example 1

[0024] Figure 2 FIG. 1 is a flow chart of a detection method 100 for locating an R wave in an ECG signal according to an embodiment of the present disclosure. Figure 2 As shown, the detection method 100 may include the following steps. In step 102, the acquired ECG signal is preprocessed. In step 104, based on the preprocessed ECG signal, detection is performed according to a conventional R wave detection process, and a QRS reference feature group is derived. The conventional R wave detection process is based on the ECG filter data and ECG integral data obtained in the preprocessing. In step 106, the QRS reference feature group is used to detect the R wave according to a fast R wave detection process, and the speed of the R wave detected by the fast R wave detection process is faster than the speed of the R wave detected by the conventional R wave detection process.

[0025] In one example, the conventional R wave detection process described in step 104 is used to generate a QRS reference feature set. The QRS reference feature set may include any one or more QRS reference features known in the art, such as QRS rise time, ascending limb width, descending limb width, RR interval, R wave amplitude, etc.

[0026] In a specific implementation, when the polarity of the R wave based on the QRS feature group derived in the conventional R wave detection process is consistent, the QRS reference feature group is used to detect the R wave according to the rapid R wave detection process. In one example, if the polarity of the R wave detected in the conventional R wave detection process is consistent, that is, the R waves are all positive R wave peaks, or the R waves are all negative R wave peaks, the QRS reference feature group derived from the conventional R wave detection process is used to perform the rapid R wave detection process. If the polarity of the R wave detected in the conventional R wave detection process is inconsistent, or the polarity is stray or mismatched (for example, the positive R wave peaks are interspersed between the negative R wave peaks, or vice versa, the negative R wave peaks are interspersed between the positive R wave peaks), it is decided not to use the group data of the QRS reference feature group in the rapid R wave detection process.

[0027] In one example, the conventional R-wave detection process can be performed using the classic Pan Tomkins algorithm such as described in the Pan paper. ECG filtering data can reduce baseline drift relative to raw data.

[0028] In a specific implementation, ECG filter data can be obtained during ECG signal preprocessing. Considering that the frequency spectrum corresponding to the QRS wave is usually concentrated in the frequency band of 5-20 Hz, in a specific implementation of ECG signal preprocessing, a high-pass filter with a cutoff frequency of, for example, 7 Hz can be used to obtain ECG filter data. For example, the filter can be designed as a 2nd order Butterworth filter. The zero-pole filter coefficients of the filter can be determined using methods known in the art.

[0029] It should be noted that the ECG filtering data on which the conventional R-wave detection process is based may be data obtained by filtering the ECG signal in a manner known in the art, and the specific filtering method is not limited to the above-mentioned specific example.

[0030] In a specific implementation of ECG integrated data, the ECG filtered data can be fed into a noise reduction filter to further reduce high-frequency noise. In a specific implementation of the noise reduction filter, considering that the width of the QRS wave is typically 40ms-120ms, and the heart rate monitoring range is usually 20bpm-350bpm, a sliding window data with a time length of, for example, 125ms can be taken to input the noise reduction filter. When the number of zero crossings of the signal in the sliding window reaches a set threshold, the noise reduction filter can output the mean of the signal in the sliding window; otherwise, the data currently input to the noise reduction filter is output.

[0031] In other specific implementations of ECG integrated data, the output of the noise reduction filter can be further differentially filtered to suppress the P wave and T wave in the ECG data to highlight the QRS wave. For example, let y(n) be the signal output, x(n) be the signal input, and n be the time. Then

[0032] y(n)=x(n)-x(n-1)

[0033] In another specific implementation of ECG integral data, further, the differential filter output may be subjected to nonlinear transformation, for example, square transformation, that is,

[0034] y(n)=x(n)*x(n)

[0035] Furthermore, in a specific implementation, a sliding average may be performed on the output of the nonlinear transformation, for example, to obtain ECG integral data.

[0036] It should be noted that the realization of ECG integral data is not limited to the specific methods illustrated above, and ECG integral data can be obtained by performing integral transformation on ECG signals in any manner known in the art.

[0037] In a specific implementation of the preprocessing of the ECG signal, ECG reference data is also obtained in the preprocessing, and the ECG reference data is obtained by downsampling and low-pass filtering the ECG signal, and the conventional R-wave detection process in step 104 can be further based on the ECG reference data. In one example, after downsampling the signal, the notch frequency interference in the signal can be removed by filtering. Filtering can be implemented by a program of a processor. The program module that implements this function can be called a filter. For example, the cutoff frequency of the notch filter can be set to 50Hz and 60Hz. In a specific implementation, the filter can be designed as a 4th order IIR filter.

[0038] In a specific implementation of low-pass filtering the ECG signal, for example, the cutoff frequency of the filter can be set to 50 Hz to filter out high-frequency noise in the signal. The filter can be designed as a 2nd-order Butterworth filter.

[0039] One of the functions of using ECG reference data is to help detect R waves that are not detected in time in ECG filter data.

[0040] In another example of ECG signal preprocessing, ECG integral baseline data can also be obtained. The conventional R wave detection process can be further based on the ECG integral baseline data. In a specific implementation of the ECG integral baseline data, the ECG integral baseline data can be obtained by low-pass filtering the ECG integral data and other methods known in the art. For example, the filter can be designed as a 2nd order Butterworth filter with a cutoff frequency of 1 Hz.

[0041] In a specific implementation of the R-wave detection method, the QRS reference feature group is derived based on the ECG reference data, the ECG filtered data, the ECG integrated data, and the ECG integrated baseline data obtained by using the preprocessing. That is to say, conventional R-wave detection can be performed using these four types of data: ECG reference data, ECG filtered data, ECG integrated data, and ECG integrated baseline data.

[0042] In another specific implementation of the R-wave detection method, the fast R-wave detection process can be based on the ECG reference data and the ECG filtered data. In one example, the fast R-wave detection can perform parallel detection using these two types of data: ECG reference data and ECG filtered data.

[0043] In a specific implementation of the fast R-wave detection process, extreme value searches can be performed on the ECG filtered data and the ECG reference data respectively, and the waveforms with maximum or minimum values are regarded as the suspected R-waves in the ECG filtered data and the ECG reference data respectively. That is to say, the waveforms with maximum and minimum values in these two types of data can both be selected as suspected R-waves.

[0044] In a specific example, multiple reference features of the suspected R-waves can be stored in the fast R-wave feature structure to obtain the ECG filtered data feature structure and the ECG reference data feature structure. The multiple reference features can be features well-known in the art that reflect the characteristics of the R-wave, such as amplitude, rising branch width, falling branch width, RR interval, etc.

[0045] In a specific example of the fast R-wave detection process, the R-wave can be detected by comparing the features in the ECG filtered data feature structure and the ECG reference data feature structure with the corresponding features in the QRS reference feature group. In a specific implementation, a fast R-wave marker can be output after detecting the R-wave.

[0046] In another specific example of the fast R-wave detection process, it can be determined whether the R-wave is detected in association with the first condition. In a specific implementation, for example, it can be determined that the R-wave is detected when at least multiple items of the following first conditions are met:

[0047] The RR interval of the ECG filtered data feature structure > the RR interval threshold of the ECG filtered data feature structure and

[0048] The rising branch width of the ECG filtered data feature structure > the lower threshold of the rising branch width of the ECG filtered data feature structure and

[0049] The rising branch width of the ECG filtered data feature structure < the upper threshold of the rising branch width of the ECG filtered data feature structure and

[0050] The rising branch width of the ECG reference data feature structure > the lower threshold of the rising branch width of the ECG reference data feature structure and

[0051] The rising branch width of the ECG reference data feature structure < the upper threshold of the rising branch width of the ECG reference data feature structure and

[0052] The amplitude of the ECG filtered data feature structure > the amplitude threshold of the ECG filtered data feature structure and

[0053] The amplitude of the ECG reference data feature structure > the amplitude threshold of the ECG reference data feature structure,

[0054] wherein, the RR interval threshold of the ECG filtered data feature structure is in the range of 0.4 * the RR interval of the QRS reference feature group to 0.6 * the RR interval of the QRS reference feature group,

[0055] The lower threshold of the rising branch width of the ECG filtered data feature structure is in the range of 0.2 * the rising branch width of the QRS reference feature group to 0.5 * the rising branch width of the QRS reference feature group,

[0056] The upper threshold of the rising branch width of the ECG filtered data feature structure is in the range of 1.5 * the rising branch width of the QRS reference feature group to 2.5 * the rising branch width of the QRS reference feature group,

[0057] The lower threshold of the rising branch width of the ECG reference data feature structure is in the range of 0.3 * the rising branch width of the QRS reference feature group to 0.7 * the rising branch width of the QRS reference feature group,

[0058] The upper threshold of the rising branch width of the ECG reference data feature structure is in the range of 1.6 * the rising branch width of the ECG reference data feature structure to 2.2 * the rising branch width of the ECG reference data feature structure,

[0059] The amplitude threshold of the ECG filtered data feature structure is in the range of 0.2 * the amplitude of the QRS reference feature group to 0.7 * the amplitude of the QRS reference feature group,

[0060] The amplitude threshold of the ECG reference data feature structure is in the range of 0.5 * the amplitude of the QRS reference feature group to 0.9 * the amplitude of the QRS reference feature group.

[0061] It should be noted that the items related to the "rising branch width" in the above first condition also apply to the "falling branch width". That is, those skilled in the art understand that the falling branch width of the feature structure and the corresponding threshold can be used to make the above judgment using the "falling branch width".

[0062] In another specific example of the fast R-wave detection process, when it is not determined that an R-wave is detected according to the above first condition, further judgment can be made according to the second condition. For example, if at least multiple items in the following second condition are satisfied, it can also be determined that an R-wave is detected, and a fast R-wave mark can be output:

[0063] The RR interval of the ECG filtered data feature structure > the second threshold of the RR interval of the ECG filtered data feature structure;

[0064] The rising branch width of the ECG filtered data feature structure > the second lower threshold of the rising branch width of the ECG filtered data feature structure;

[0065] The rising branch width of the ECG filtered data feature structure < the second upper threshold of the rising branch width of the ECG filtered data feature structure;

[0066] The rising branch width of the ECG reference data feature structure > the lower threshold of the rising branch width of the ECG reference data feature structure;

[0067] The rising branch width of the ECG reference data feature structure < the upper threshold of the rising branch width of the ECG reference data feature structure;

[0068] The amplitude of the ECG filtered data feature structure > the amplitude threshold of the ECG filtered data feature structure;

[0069] The amplitude of the ECG reference data feature structure > the amplitude threshold of the ECG reference data feature structure,

[0070] wherein, the second threshold of the RR interval of the ECG filtered data feature structure is in the range of 0.5 * the RR interval of the QRS reference feature group to 0.9 * the RR interval of the QRS reference feature group,

[0071] The second lower threshold of the rising branch width of the ECG filtered data feature structure is in the range of 0.3 * the rising branch width of the QRS reference feature group to 0.8 * the rising branch width of the QRS reference feature group,

[0072] The second upper threshold of the rising branch width of the ECG filtered data feature structure is in the range of 0.8 * the rising branch width of the QRS reference feature group to 1.4 * the rising branch width of the QRS reference feature group.

[0073] It should be noted that the items related to the "width of the rising branch" in the above second condition also apply to the "width of the falling branch". That is, those skilled in the art understand that the width of the falling branch of the feature structure and the corresponding threshold can be used to make the above judgment using the "width of the falling branch".

[0074] In another specific example of the fast R-wave detection process, when it is not determined that an R-wave is detected based on the above first and second conditions, further judgment can be made based on the third condition. For example, if at least multiple items in the following third condition are satisfied, it can also be determined that an R-wave is detected, and a fast R-wave mark can be output:

[0075] The RR interval of the ECG filtered data feature structure > the RR interval threshold of the ECG filtered data feature structure;

[0076] The RR interval of the ECG filtered data feature structure < the upper RR interval threshold of the ECG filtered data feature structure;

[0077] The width of the rising branch of the ECG filtered data feature structure > the second lower threshold of the width of the rising branch of the ECG filtered data feature structure;

[0078] The width of the rising branch of the ECG filtered data feature structure < the third upper threshold of the width of the rising branch of the ECG filtered data feature structure;

[0079] The width of the rising branch of the ECG reference data feature structure > the lower threshold of the width of the rising branch of the ECG reference data feature structure;

[0080] The width of the rising branch of the ECG reference data feature structure < the third upper threshold of the width of the rising branch of the ECG reference data feature structure;

[0081] The amplitude of the ECG filtered data feature structure > the amplitude threshold of the ECG filtered data feature structure, or the amplitude of the ECG filtered data feature structure > the third amplitude threshold of the ECG filtered data feature structure and the amplitude of the ECG reference data feature structure > the third amplitude threshold of the ECG reference data feature structure,

[0082] wherein, the upper RR interval threshold of the ECG filtered data feature structure is in the range of 2 times the RR interval of the QRS reference feature group to 3 times the RR interval of the QRS reference feature group,

[0083] The third upper threshold of the width of the rising branch of the ECG filtered data feature structure is in the range of 2.7 times the width of the rising branch of the QRS reference feature group to 3.2 times the width of the rising branch of the QRS reference feature group,

[0084] The third upper threshold of the width of the ascending branch of the ECG reference data feature structure is within the range of the width of the ascending branch of the QRS reference feature group*2.8 to the width of the ascending branch of the QRS reference feature group*3.2,

[0085] The third threshold of the amplitude of the ECG filter data feature structure is within the range of the amplitude of the QRS reference feature group*0.2 to the amplitude of the QRS reference feature group*0.6,

[0086] The third threshold of the amplitude of the ECG reference data feature structure is within a range of the amplitude of the QRS reference feature group*0.4 to the amplitude of the QRS reference feature group*0.9.

[0087] It should be noted that the various items related to the "ascending branch width" in the above third condition also apply to the "descending branch width". That is, those skilled in the art understand that the descending branch width of the characteristic structure and the corresponding threshold value can be used to make the above judgment using the "descending branch width". In a specific implementation, after the QRS reference feature group is detected according to the conventional R wave detection process, the rapid R wave detection switch of the rapid R wave detection process can be turned on to activate the rapid R wave detection process. When the rapid R wave detection process is completed and the rapid R wave mark is output, the rapid R wave detection switch can be turned off.

[0088] In a specific implementation, the fast R-wave detection switch may be controlled in the following manner to activate the fast R-wave detection process. For example, when the ECG integral baseline data and the ECG integral data obtained from the ECG signal are both greater than a threshold value and exceed a predetermined time interval relative to the time when the fast R-wave detection switch was last turned off, the fast R-wave detection switch may be turned on.

[0089] Example 2

[0090] Figure 3A schematic block diagram of a detection device 200 for locating R waves in ECG signals according to another embodiment of the present disclosure is shown. The detection device 200 includes a preprocessing module 202, a QRS reference feature group export module 204, and an R wave detection module 206. The preprocessing module 202 is configured to preprocess the acquired ECG signal. The QRS reference feature group export module 204 is configured to perform detection according to a conventional R wave detection process based on the preprocessed ECG signal, and to export a QRS reference feature group. The R wave detection module 206 is configured to detect R waves according to a fast R wave detection process using the QRS reference feature group. The conventional R wave detection process is based on the ECG filtering data and ECG integral data obtained in the preprocessing, and the speed at which the fast R wave detection process detects the R wave is faster than the speed at which the conventional R wave detection process detects the R wave.

[0091] Example 3

[0092] Figure 4 A schematic diagram of a detection device 300 for locating R waves in ECG signals according to another embodiment of the present disclosure is shown. The detection device 300 includes a processor 302 and a memory 304 for storing processor executable instructions. The processor 302 is configured to implement one or more of the methods described above in the present disclosure when executing the processor executable instructions.

[0093] Example 4

[0094] Figure 5 is a block diagram of a detection device 800 according to an example. The detection device 800 is one specific implementation of the detection device 300. For example, the detection device 800 may be a mobile phone, a computer, a digital broadcast terminal, a messaging device, a game console, a tablet device, a medical device, a fitness device, a personal digital assistant, etc.

[0095] Reference Figure 5 , the detection device 800 may include one or more of the following components: a processing component 802, a memory 804, a power component 806, a multimedia component 808, an audio component 810, an input / output (I / O) interface 812, a sensor component 814, and a communication component 816. It should be noted that the above-mentioned multiple components are only shown for the purpose of illustration and are not components that must be possessed by the detection device 800. In fact, the components possessed by the detection device 800 can be flexibly set according to personal preferences and / or actual application scenarios. As long as it has the components possessed by the detection device 300, the function of R-wave detection can be realized.

[0096] Processing component 802 generally controls the overall operation of detection device 800, such as operations associated with display, phone call, data communication, camera operation and recording operation. Processing component 802 may include one or more processors 820 to execute instructions to complete all or part of the steps of the above-mentioned method. In addition, processing component 802 may include one or more modules to facilitate the interaction between processing component 802 and other components. For example, processing component 802 may include a multimedia module to facilitate the interaction between multimedia component 808 and processing component 802.

[0097] The memory 804 is configured to store various types of data to support the operation of the detection device 800. Examples of such data include instructions for any application or method operating on the detection device 800, contact data, phone book data, messages, pictures, videos, etc. The memory 804 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0098] The power supply component 806 provides power to the various components of the detection device 800. The power supply component 806 can include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the detection device 800.

[0099] Multimedia component 808 includes a screen providing an output interface between the detection device 800 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touch, slide and gestures on the touch panel. The touch sensor may not only sense the boundaries of the touch or slide action, but also detect the duration and pressure associated with the touch or slide operation. In some embodiments, multimedia component 808 includes a front camera and / or a rear camera. When the detection device 800 is in an operating mode, such as a shooting mode or a video mode, the front camera and / or the rear camera may receive external multimedia data. Each front camera and the rear camera may be a fixed optical lens system or have a focal length and optical zoom capability.

[0100] The audio component 810 is configured to output and / or input audio signals. For example, the audio component 810 includes a microphone (MIC), and when the detection device 800 is in an operation mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal can be further stored in the memory 804 or sent via the communication component 816. In some embodiments, the audio component 810 also includes a speaker for outputting audio signals.

[0101] I / O interface 812 provides an interface between processing component 802 and peripheral interface modules, such as keyboards, click wheels, buttons, etc. These buttons may include but are not limited to: home button, volume button, start button, and lock button.

[0102] Sensor assembly 814 includes one or more sensors for providing various aspects of state assessment for detection device 800. For example, sensor assembly 814 can detect the open / closed state of detection device 800, the relative positioning of components, such as the display and keypad of detection device 800, sensor assembly 814 can also detect the position change of detection device 800 or a component of detection device 800, the presence or absence of user contact with detection device 800, the temperature change of detection device 800 orientation or acceleration / deceleration and detection device 800. Sensor assembly 814 can include proximity sensor, configured to detect the presence of nearby objects when there is no physical contact. Sensor assembly 814 can also include optical sensor, such as CMOS or CCD image sensor, for use in imaging applications. In certain embodiments, this sensor assembly 814 can also include acceleration sensor, gyroscope sensor, magnetic sensor, pressure sensor or temperature sensor.

[0103] Communication component 816 is configured to facilitate the communication between detection device 800 and other equipment in wired or wireless mode. Detection device 800 can access a wireless network based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In an exemplary embodiment, communication component 816 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 816 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module can be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.

[0104] In an exemplary embodiment, the detection device 800 can be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors or other electronic components to perform the above method.

[0105] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, such as a memory 804 including computer program instructions, which can be executed by a processor 820 of the detection device 800 to perform the above method.

[0106] In an exemplary embodiment, a non-volatile computer-readable storage medium is also provided, on which computer program instructions are stored. When the computer program instructions are executed by a processor, one or more of the above methods, such as the R-wave detection method 200, are implemented.

[0107] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.

[0108] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.

[0109] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0110] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.

[0111] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0112] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0113] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0114] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.

[0115] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.

Claims

1. A detection method for locating R waves in ECG signals, include: Preprocessing the acquired ECG signal; Based on the preprocessed ECG signal, the detection is performed according to the conventional R wave detection process, and the QRS reference feature group is derived; Using the QRS reference feature set, the R wave is detected according to the rapid R wave detection process, The conventional R wave detection process is based on the ECG filtering data and ECG integration data obtained in the preprocessing, and the speed at which the fast R wave detection process detects the R wave is faster than the speed at which the conventional R wave detection process detects the R wave. In the rapid R wave detection process, the ECG filter data is searched for extreme values, and the waveform with a maximum value or a minimum value in the ECG filter data is taken as a suspected R wave in the ECG filter data. storing one or more of the amplitude, ascending branch width, descending branch width, and RR interval of the suspected R wave in a fast R wave feature structure to obtain an ECG filter data feature structure, and In the rapid R wave detection process, the features in the ECG filter data feature structure are compared with the corresponding features in the QRS reference feature group to detect the R wave, and a rapid R wave marker is output.

2. According to the method of claim 1, ECG reference data is also obtained in the preprocessing, and the ECG reference data is obtained by downsampling and low-pass filtering the ECG signal, and the conventional R-wave detection process is further based on the ECG reference data.

3. The method according to claim 1, further comprising: include: ECG integral baseline data is also acquired in the preprocessing, and the conventional R-wave detection process is further based on the ECG integral baseline data.

4. According to the method of claim 1, the QRS reference feature group is derived based on the ECG reference data acquired by the preprocessing, the ECG filter data, the ECG integration data, and the ECG integration baseline data.

5. The method according to any one of claims 1 to 3, further comprising: include: ECG reference data is obtained from the preprocessing, and the fast R-wave detection process is based on the ECG reference data and the ECG filtered data.

6. The method according to claim 5, in the rapid R wave detection process, performs extreme value search on the ECG reference data, and uses the waveform with maximum value or minimum value in the ECG reference data as the suspected R wave in the ECG reference data.

7. According to the method of claim 6, one or more of the amplitude, ascending limb width, descending limb width, and RR interval of the suspected R wave in the ECG reference data is stored in a fast R wave feature structure to obtain an ECG reference data feature structure.

8. According to the method of claim 7, in the rapid R wave detection process, the features in the ECG reference data feature structure are compared with the corresponding features in the QRS reference feature group to detect the R wave, and a rapid R wave mark is output.

9. According to the method described in claim 8, in the fast R-wave detection process, it is determined that an R-wave is detected when at least multiple items of the following first conditions are met: The RR interval of the ECG filtered data feature structure > the RR interval threshold of the ECG filtered data feature structure; The rising branch width of the ECG filtered data feature structure > the lower threshold of the rising branch width of the ECG filtered data feature structure; The rising branch width of the ECG filtered data feature structure < the upper threshold of the rising branch width of the ECG filtered data feature structure; The rising branch width of the ECG reference data feature structure > the lower threshold of the rising branch width of the ECG reference data feature structure; The rising branch width of the ECG reference data feature structure < the upper threshold of the rising branch width of the ECG reference data feature structure; The amplitude of the ECG filtered data feature structure > the amplitude threshold of the ECG filtered data feature structure; The amplitude of the ECG reference data feature structure > the amplitude threshold of the ECG reference data feature structure, wherein, The RR interval threshold of the ECG filtered data feature structure is in the range of 0.4 * the RR interval of the QRS reference feature group to 0.6 * the RR interval of the QRS reference feature group; The lower threshold of the rising branch width of the ECG filtered data feature structure is in the range of 0.2 * the rising branch width of the QRS reference feature group to 0.5 * the rising branch width of the QRS reference feature group; The upper threshold of the rising branch width of the ECG filtered data feature structure is in the range of 1.5 * the rising branch width of the QRS reference feature group to 2.5 * the rising branch width of the QRS reference feature group; The lower threshold of the rising branch width of the ECG reference data feature structure is in the range of 0.3 * the rising branch width of the QRS reference feature group to 0.7 * the rising branch width of the QRS reference feature group; The upper threshold of the rising branch width of the ECG reference data feature structure is in the range of 1.6 * the rising branch width of the ECG reference data feature structure to 2.2 * the rising branch width of the ECG reference data feature structure; The amplitude threshold of the ECG filtered data feature structure is in the range of 0.2 * the amplitude of the QRS reference feature group to 0.7 * the amplitude of the QRS reference feature group; The amplitude threshold of the ECG reference data feature structure is in the range of 0.5 * the amplitude of the QRS reference feature group to 0.9 * the amplitude of the QRS reference feature group.

10. According to the method described in claim 9, in the fast R-wave detection process, when it is not determined that an R-wave is detected based on the first condition, if at least multiple items of the following second conditions are met, it is determined that an R-wave is detected: The RR interval of the ECG filtered data feature structure > the second RR interval threshold of the ECG filtered data feature structure; The rising branch width of the ECG filtered data feature structure > the second lower threshold of the rising branch width of the ECG filtered data feature structure; The rising edge width of the ECG filtered data feature structure < the second upper threshold of the rising edge width of the ECG filtered data feature structure; The rising edge width of the ECG reference data feature structure > the lower threshold of the rising edge width of the ECG reference data feature structure; The rising edge width of the ECG reference data feature structure < the upper threshold of the rising edge width of the ECG reference data feature structure; The amplitude of the ECG filtered data feature structure > the amplitude threshold of the ECG filtered data feature structure; The amplitude of the ECG reference data feature structure > the amplitude threshold of the ECG reference data feature structure, wherein, The second threshold of the RR interval of the ECG filtered data feature structure is in the range of 0.5 * the RR interval of the QRS reference feature group to 0.9 * the RR interval of the QRS reference feature group; The second lower threshold of the rising edge width of the ECG filtered data feature structure is in the range of 0.3 * the rising edge width of the QRS reference feature group to 0.8 * the rising edge width of the QRS reference feature group; The second upper threshold of the rising edge width of the ECG filtered data feature structure is in the range of 0.8 * the rising edge width of the QRS reference feature group to 1.4 * the rising edge width of the QRS reference feature group.

11. According to the method described in claim 10, in the fast R-wave detection process, when it is not determined that an R-wave is detected based on the first condition and the second condition, if at least multiple items of the following third conditions are satisfied, it is determined that an R-wave is detected: The RR interval of the ECG filtered data feature structure > the RR interval threshold of the ECG filtered data feature structure; The RR interval of the ECG filtered data feature structure < the upper threshold of the RR interval of the ECG filtered data feature structure; The rising edge width of the ECG filtered data feature structure > the second lower threshold of the rising edge width of the ECG filtered data feature structure; The rising edge width of the ECG filtered data feature structure < the third upper threshold of the rising edge width of the ECG filtered data feature structure; The rising edge width of the ECG reference data feature structure > the lower threshold of the rising edge width of the ECG reference data feature structure; The rising edge width of the ECG reference data feature structure < the third upper threshold of the rising edge width of the ECG reference data feature structure; The amplitude of the ECG filtered data feature structure > the amplitude threshold of the ECG filtered data feature structure, or the amplitude of the ECG filtered data feature structure > the third amplitude threshold of the ECG filtered data feature structure and the amplitude of the ECG reference data feature structure > the third amplitude threshold of the ECG reference data feature structure, wherein, The upper threshold of the RR interval of the ECG filtered data feature structure is in the range of 2 * the RR interval of the QRS reference feature group to 3 * the RR interval of the QRS reference feature group, The third upper threshold of the rising branch width of the ECG filter data feature structure is within the range of the rising branch width of the QRS reference feature group*2.7 to the rising branch width of the QRS reference feature group*3.2, The third upper threshold of the width of the ascending branch of the ECG reference data feature structure is within the range of the width of the ascending branch of the QRS reference feature group*2.8 to the width of the ascending branch of the QRS reference feature group*3.2, The third threshold of the amplitude of the ECG filter data feature structure is within the range of the amplitude of the QRS reference feature group*0.2 to the amplitude of the QRS reference feature group*0.6, The third threshold of the amplitude of the ECG reference data feature structure is within a range of the amplitude of the QRS reference feature group*0.4 to the amplitude of the QRS reference feature group*0.

9.

12. According to the method according to claim 8, after the QRS reference feature group is detected according to the conventional R wave detection process, the rapid R wave detection switch of the rapid R wave detection process is turned on, and when the rapid R wave mark is output in the rapid R wave detection process, the rapid R wave detection switch is turned off.

13. According to the method according to claim 8, when the ECG integral baseline data and ECG integral data obtained from the ECG signal are both greater than a threshold value and the time interval exceeds a predetermined time interval relative to the last time the fast R wave detection switch of the fast R wave detection process was closed, the fast R wave detection switch is turned on.

14. The method according to claim 1, when the polarity of the R wave based on the QRS feature group derived in the conventional R wave detection process is consistent, the R wave is detected according to the rapid R wave detection process using the QRS reference feature group.

15. A detection device for locating R waves in an ECG signal, include: A preprocessing module, configured to preprocess the acquired ECG signal; A QRS reference feature group export module is configured to perform detection according to a conventional R wave detection process based on the preprocessed ECG signal and export a QRS reference feature group; The R wave detection module is configured to detect the R wave according to the rapid R wave detection process using the QRS reference feature group, The conventional R wave detection process is based on the ECG filtering data and ECG integration data obtained in the preprocessing, and the speed at which the fast R wave detection process detects the R wave is faster than the speed at which the conventional R wave detection process detects the R wave. In the rapid R wave detection process, the ECG filter data is searched for extreme values, and the waveform with a maximum value or a minimum value in the ECG filter data is taken as a suspected R wave in the ECG filter data. storing one or more of the amplitude, ascending branch width, descending branch width, and RR interval of the suspected R wave in a fast R wave feature structure to obtain an ECG filter data feature structure, and In the rapid R wave detection process, the features in the ECG filter data feature structure are compared with the corresponding features in the QRS reference feature group to detect the R wave, and a rapid R wave marker is output.

16. A detection device for locating R waves in an ECG signal, include: processor; a memory for storing processor-executable instructions; The processor is configured to implement the method according to any one of claims 1 to 14 when executing the processor executable instructions.

17. A non-volatile computer-readable storage medium having computer program instructions stored thereon, wherein the computer program instructions implement the method according to any one of claims 1 to 14 when executed by a processor.

18. A computer program product having computer program instructions stored thereon, wherein the computer program instructions implement the method according to any one of claims 1 to 14 when executed by a processor.