A dynamic anti-interference portable electrocardiograph automatic analyzer and control method thereof

By combining amplitude-frequency response and approximate entropy in a portable ECG monitor, the existing ECG monitors are solved, and the problem of interference and poor real-time performance is achieved, high-precision ECG signal analysis and real-time monitoring are achieved, which enhances the User interactivity and device reliability.

CN112244864BActive Publication Date: 2024-11-26UNIV OF SHANGHAI FOR SCI & TECH +1
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN202011227971.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-11-06
Publication Date
2024-11-26
Estimated Expiration
2040-11-06

AI Technical Summary

Technical Problem

The existing ECG monitors are huge in size, high in power consumption, expensive, and susceptible to external environment interference. They cannot monitor and use in real time and portable. Users cannot understand the monitoring data at any time, and their real-time and reliability are poor.

Method used

Using dynamic anti-interference portable electrocardiogram analyzer, combining amplitude-frequency response and approximate entropy, the heart rate value is calculated through de-DC processing, binary processing and threshold judgment, reducing external signal interference, improving judgment accuracy and reliability, and Voice modules and positioning modules improve user interaction and device portability.

Benefits of technology

It realizes high-precision ECG signal analysis, avoids external interference, improves real-time and convenience, enhances user interaction and device reliability, and reduces loss rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112244864B_ABST
    Figure CN112244864B_ABST
Patent Text Reader

Abstract

The present invention relates to a dynamic anti-interference portable electrocardiograph automatic analyzer and a control method thereof. The portable electrocardiograph automatic analyzer comprises an electrocardiograph signal acquisition module, a controller and a power supply module. The controller comprises: a processor, a display, a communication unit, a memory and an alarm. The control method comprises the following steps: filtering the electrocardiograph signal to obtain a filtered signal; calculating the amplitude-frequency response and the approximate entropy based on the filtered signal; calculating the atrial fibrillation judgment value according to the amplitude-frequency response and the approximate entropy; judging whether atrial fibrillation occurs according to the atrial fibrillation judgment value and a preset atrial fibrillation threshold; and calculating the heart rate value based on the filtered signal. Compared with the prior art, the present invention combines the amplitude-frequency response and the approximate entropy to judge whether atrial fibrillation occurs, and calculates the heart rate value by removing direct current, binarizing and judging the threshold value. The calculation method is more scientific, the anti-interference ability is stronger, the judgment result is highly accurate, and the interference of external signals on the collected electrocardiograph signal can be avoided, and the reliability is high.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of medical equipment, and in particular to a dynamic anti-interference portable electrocardiograph automatic analyzer and a control method thereof. Background Art

[0002] Cardiovascular disease is the number one killer that endangers the lives of Chinese people, especially for middle-aged and elderly people over 50 years old. With the improvement of quality of life and the accelerated pace of life, the incidence of cardiovascular diseases has gradually increased. Cardiovascular disease has become a huge threat to human health.

[0003] In the prior art, ECG monitoring is generally divided into: conventional ECG monitoring, 24-hour ECG monitoring, and networked dynamic ECG monitoring. Conventional ECG monitoring is often used to monitor cardiovascular patients, myocardial infarction patients, etc. In a static state, the human body lies flat on its back, and the ECG monitor records the ECG activity for tens of seconds. However, due to the large size of the ECG monitor, it is not possible to monitor the ECG of the patient in real time and on the spot. Using a 24-hour ECG monitor for monitoring, this instrument completely records 24-hour ECG activity, including ECGs under different conditions such as rest, exercise, meals, work, study and sleep, and can detect arrhythmias and myocardial ischemia that are not easy to detect with conventional ECG. However, the instrument is expensive and not easy to carry. Networked dynamic ECG monitoring realizes long-term home care for chronic heart disease. Compared with long-term hospitalization, it is more conducive to the recovery of patients. At the same time, it can also alleviate the shortage of hospital beds and the pressure of space resources in my country. However, this method is mainly carried out uniformly by the hospital nurse station, and most of it can only be used in a limited area, and patients cannot understand their own information.

[0004] In addition, the mature ECG monitors on the market are large in size, consume a lot of power, are expensive, and require professional personnel to operate, making them difficult to popularize. Chinese Patent 201610364287.5 discloses a low-power portable ECG monitoring system, which adopts a low-power design, is small in size, and uses a differential threshold method to detect R waves to calculate heart rate. However, when using this method for ECG data analysis, it is easily interfered by the external environment and has low accuracy. The device transmits ECG signals to a smartphone or a server, where the ECG signals are analyzed and processed. After the user leaves the smartphone, he cannot know his own monitoring data, which is extremely inconvenient to use. It takes a long time to receive ECG data and analyze abnormalities. After the abnormal monitoring data is found, the alarm and other operations are performed, which has poor real-time performance. Once an error occurs in the Bluetooth transmission process or the data on the smartphone is lost, the monitoring data cannot be retrieved, and the reliability is poor. Summary of the invention

[0005] The purpose of the present invention is to overcome the defects of the above-mentioned prior art and to provide a dynamic anti-interference portable ECG automatic analyzer and its control method, which combines the amplitude-frequency response with the approximate entropy to determine whether atrial fibrillation occurs, and calculates the heart rate value through DC removal, binarization and threshold judgment. The calculation method is more scientific, has strong anti-interference ability, and has high accuracy in judgment results. It can avoid interference of external signals on the collected ECG signals and has high reliability.

[0006] The purpose of the present invention can be achieved by the following technical solutions:

[0007] A dynamic anti-interference portable ECG automatic analyzer, comprising an ECG signal acquisition module, a controller and a power module, wherein the ECG signal acquisition module is used to acquire original signals and pre-process the original signals to obtain ECG signals, and the power module is used to provide working power for the portable ECG automatic analyzer, and the controller is connected to the ECG signal acquisition module and the power module, and the controller comprises: a processor, a display, a communication unit, a memory and an alarm;

[0008] The processor is used to calculate ECG parameters according to the ECG signal;

[0009] The display is connected to the processor and is used to display the ECG signal, the ECG waveform and ECG parameters corresponding to the ECG signal in real time;

[0010] The communication unit is connected to the processor and is used to transmit the ECG signal and ECG parameters to an external device;

[0011] The memory is connected to the processor and is used to store ECG signals and ECG parameters;

[0012] The alarm is connected to the processor and is used to alarm according to the ECG parameters;

[0013] The electrocardiogram parameters include atrial fibrillation determination results and a heart rate value.

[0014] Furthermore, the portable automatic ECG analyzer also includes a voice module, which is connected to the controller and is used to collect voice signals and convert the voice signals into control commands and transmit them to the controller. The voice module includes a voice collection unit and a voice recognition unit.

[0015] Furthermore, the portable automatic ECG analyzer also includes a positioning module, which is connected to the controller and is used to collect the position of the portable automatic ECG analyzer.

[0016] Furthermore, the ECG signal acquisition module includes an ECG collector, a first electrode, a second electrode, a third electrode and a preprocessing circuit, the first electrode, the second electrode and the third electrode are connected to the input end of the ECG collector, and the preprocessing circuit is connected to the output end of the ECG collector, including a front-end instrument amplifier circuit, a right leg drive circuit, a second-order low-pass filter circuit, a band-stop filter amplifier, a first-order high-pass filter and an inverse adder.

[0017] A control method for a dynamic anti-interference portable automatic ECG analyzer, using the portable automatic ECG analyzer as described above, is characterized in that it comprises the following steps:

[0018] S1: The processor obtains the ECG signal preprocessed by the ECG signal acquisition module, transmits the ECG signal to the display, the memory and the communication unit, and performs digital filtering on the ECG signal to obtain a filtered signal;

[0019] S2: Calculate the amplitude-frequency response and approximate entropy based on the filtered signal;

[0020] S3: Calculate the cardiac fibrillation judgment value based on the amplitude-frequency response and approximate entropy;

[0021] S4: judging whether atrial fibrillation occurs according to the atrial fibrillation judgment value and the preset atrial fibrillation threshold value, obtaining a atrial fibrillation judgment result, the processor transmitting the atrial fibrillation judgment result to the display, the memory and the communication unit, and controlling the alarm device to sound an alarm according to the atrial fibrillation judgment result;

[0022] S5: Calculate the heart rate value based on the filtered signal, the processor transmits the heart rate value to the display, the memory and the communication unit, and controls the alarm to sound an alarm according to the heart rate value.

[0023] Furthermore, the digital filtering of the ECG signal in step S1 is specifically FIR digital filtering of the ECG signal, and the filtering type is 50 Hz notch filtering.

[0024] Furthermore, the step S2 includes the following steps:

[0025] S21: Acquire N continuous data in the filtered signal and use the N continuous data as a data segment to be monitored;

[0026] S22: Performing a fast Fourier transform on the data in the monitored data segment to obtain an electrocardiogram spectrum corresponding to the filtered signal, and obtaining a preset center frequency, wherein the preset center frequency value is equal to the frequency of the external interference;

[0027] S23: Obtain k (k ≥ 2) frequency points near the center frequency and the amplitudes of the k frequency points (A1, A2, ..., A k ), calculate the average amplitude A of k frequency points, A is the amplitude-frequency response of the filtered signal;

[0028] S24: Calculate the approximate entropy ApEn of the filtered signal using an approximate entropy algorithm.

[0029] Furthermore, in step S3, the calculation formula of the atrial fibrillation judgment value J is specifically:

[0030] J=ApEn-A

[0031] Wherein, J represents the atrial fibrillation judgment value, ApEn represents the approximate entropy, and A represents the amplitude-frequency response of the filtered signal.

[0032] Furthermore, in step S4, the preset atrial fibrillation threshold is recorded as λ. If the atrial fibrillation judgment value is greater than λ, the atrial fibrillation judgment result is that atrial fibrillation occurs and the alarm sounds. Otherwise, the atrial fibrillation judgment result is normal and the alarm sounds. The value range of λ is [0.6, 0.8].

[0033] Furthermore, the step S5 includes the following steps:

[0034] S51: Obtain N continuous data in the filtered signal, take the N continuous data as a data segment to be monitored, perform fast Fourier transform on the data in the data segment to be monitored, obtain an ECG spectrum corresponding to the filtered signal, and measure the amplitude of the DC component in the ECG spectrum;

[0035] S52: acquiring in real time a filtered signal within a recent period of time T, recorded as signal segment 1, and performing DC removal processing on the filtered signal within signal segment 1 to obtain signal segment 2;

[0036] S53: Obtain the amplitude of the signal in signal segment 2, and record the maximum value At of the signal amplitude. Calculate the binarization threshold Th according to the maximum value At of the signal amplitude and the preset proportionality coefficient Kp, specifically:

[0037] Th=At*Kp

[0038] Among them, the value range of Kp is [0.3, 0.5].

[0039] S54: Binarize signal segment 2 to obtain signal segment 3, specifically: traverse signal segment 2, if the amplitude of a signal is greater than the binarization threshold Th, set the value of the signal to 1, otherwise, set the value of the signal to 0;

[0040] S55: traverse the signal segment 3, and obtain the number x of rising edges in the signal segment 3, wherein the rising edge is specifically a signal with a value of 0 followed by five consecutive signals with a value of 1;

[0041] S56: The number of rising edges is the number of heartbeats within time T, so the heart rate value is calculated The unit is times / minute. The processor transmits the heart rate value to the display, memory and communication unit. If the heart rate value is greater than the preset heart rate threshold, the alarm will sound.

[0042] Compared with the prior art, the present invention has the following beneficial effects:

[0043] (1) The amplitude-frequency response is combined with the approximate entropy to determine whether atrial fibrillation occurs. The heart rate value is calculated through DC removal, binarization and threshold judgment. The calculation method is more scientific, has strong anti-interference ability, and has high accuracy in the judgment result. It can avoid the interference of external signals on the collected ECG signals and has high reliability.

[0044] (2) The processor performs atrial fibrillation determination and heart rate calculation and displays the results directly. Users can directly see the monitoring data, which is more real-time and convenient.

[0045] (3) Through the voice module, users can more conveniently control the portable ECG automatic analyzer, which has a high level of automation and better interactivity. The positioning module can realize location positioning, which can find the user more quickly in an emergency and reduce the loss rate of the portable ECG automatic analyzer.

[0046] (4) Using the external interference frequency as the center frequency and the average amplitude of the center frequency as negative feedback for cardiac fibrillation judgment can better avoid external interference. When calculating the heart rate, the judgment standard of the rising edge is that the signal with a value of 0 is followed by 5 consecutive signals with a value of 1, thus avoiding misjudgment caused by external interference. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 is a flow chart of the control method of the present invention;

[0048] Figure 2 It is a structural schematic diagram of a portable automatic ECG analyzer in an embodiment;

[0049] Figure 3 The external view of the portable automatic ECG analyzer in the embodiment;

[0050] Figure numerals: 1. ECG signal acquisition module, 2. controller, 21. processor, 22. display, 23. communication unit, 24. memory, 25. alarm, 3. power module, 4. voice module, 5. positioning module. DETAILED DESCRIPTION

[0051] The present invention is described in detail below in conjunction with the accompanying drawings and specific embodiments. This embodiment is implemented based on the technical solution of the present invention, and provides a detailed implementation method and specific operation process, but the protection scope of the present invention is not limited to the following embodiments.

[0052] Embodiment 1:

[0053] A dynamic anti-interference portable electrocardiograph automatic analyzer, the overall structure is as follows Figure 2 As shown, it includes an ECG signal acquisition module 1, a controller 2, a power module 3, a voice module 4 and a positioning module 5. The controller 2 is connected to the ECG signal acquisition module 1 and the power module 3. The controller 2 includes a processor 21, a display 22, a communication unit 23, a memory 24 and an alarm 25.

[0054] In this embodiment, the appearance of the portable automatic ECG analyzer is as shown in FIG. Figure 3 shown.

[0055] The ECG signal acquisition module 1 is used to collect original signals and preprocess the original signals to obtain ECG signals. Specifically, the ECG signal acquisition module 1 includes an ECG collector, a first electrode, a second electrode, a third electrode and a preprocessing circuit. The first electrode, the second electrode and the third electrode are connected to the input end of the ECG collector, and the preprocessing circuit is connected to the output end of the ECG collector. It includes a front-end instrument amplifier circuit, a right leg drive circuit, a second-order low-pass filter circuit, a band-stop filter amplifier, a first-order high-pass filter and an inverse adder.

[0056] In actual use, the first electrode, the second electrode and the third electrode are patch-type ECG electrodes, which are connected to the user's right hand, left hand and right leg respectively, and then connected to the 3.5mm audio interface input of the ECG collector through a wire. The gain of the front-end instrument circuit is 7, a second-order low-pass filter circuit of 108Hz, an amplification factor of 2, a band-stop filter amplifier of 50Hz, a first-order high-pass filter of 0.1Hz, and a reverse adder to amplify the signal by 5 times. The right leg drive circuit is essentially a negative feedback to remove the common-mode signal in the input amplifier. In the present embodiment, the pre-processing circuit adopts the STM8S103F3P6 chip, and its No. 19 pin PD2_AIN3 is connected to the output end of the ECG signal acquisition module 1.

[0057] The controller 2 includes a processor 21 , a display 22 , a communication unit 23 , a memory 24 and an alarm 25 .

[0058] The processor 21 is used to calculate the heart rate value and other ECG parameters according to the ECG signal. In this embodiment, the processor 21 adopts an ARM chip.

[0059] The display 22 is connected to the processor 21, and is used for displaying the ECG signal, the ECG waveform corresponding to the ECG signal and the heart rate in real time; in this embodiment, the display 22 is an OLED display, and the ECG signal is transmitted to the controller 2, and after being processed by the processor 21, it is displayed as a waveform on the display screen of the OLED display. The heart rate value, time and other related ECG parameters transmitted by the processor 21 will also be displayed on the display screen.

[0060] The communication unit 23 is connected to the processor 21 and is used to transmit the ECG signal, heart rate and ECG parameters to an external device. In this embodiment, the communication unit 23 includes a serial port to WiFi communication circuit and a serial port to USB communication circuit. The serial port to USB circuit can use a CH340T chip. The built-in TCP / IP protocol stack and IEE802.11 protocol stack of the serial port to WiFi communication circuit can complete the conversion between the user serial port and the wireless network. The serial port data can be transmitted wirelessly through the serial port to WiFi data transmission based on LABVIEW.

[0061] The monitoring data can be sent to an external device, such as a mobile phone, a computer, etc., through a wireless network using a serial port to WiFi communication circuit. A serial port to USB communication circuit can also be used to connect a portable ECG automatic analyzer and an external device, such as a mobile phone, through a data transmission line to transmit the monitoring data to the mobile phone, and the mobile phone can also process the ECG signal in real time to calculate the heart rate, etc. At the same time, the data stored in the memory 24 can also be imported into an external device through a serial port to WiFi communication circuit or a serial port to USB communication circuit for analysis by medical staff.

[0062] The memory 24 is connected to the processor 21 and is used to store the ECG signal and the heart rate. In this embodiment, an SD card is used as the memory 24. In other embodiments, a Flash memory or the like may also be used.

[0063] The alarm 25 is connected to the processor 21 and is used to alarm according to the ECG signal and heart rate. The processor 21 will judge the heart rate value. If it exceeds the preset safety threshold, a pulse signal will be sent to the alarm 25. At the same time, the communication unit 23 transmits the alarm information to the external device. The alarm 25 includes a voice alarm and an LED alarm light. The voice alarm can use a buzzer, which can attract the user's attention more through sound alarms and flashing lights. When the ECG data is higher or lower than the preset safety threshold, an alarm will be issued. If the calculated heart rate exceeds the preset safety threshold, an alarm will be issued. In other embodiments, if problems such as atrial fibrillation and arrhythmia appear on the surface according to the calculation result of the ECG signal, an alarm will also be issued through the alarm 25. The safety threshold is set according to the user's physical condition and the advice of medical staff.

[0064] The voice module 4 is connected to the controller 2, and is used to collect voice signals and convert the voice signals into control commands and transmit them to the controller 2. The voice module 4 includes a voice collection unit and a voice recognition unit. The user can directly control the portable ECG automatic analyzer through the voice module 4, which is more convenient to use and has better interactivity. The LD3320 chip can be used, and keywords can be preset in the chip. The input voice signal can be analyzed through the ARS voice recognition technology, the characteristic parameters can be identified, and then compared with the keywords.

[0065] The positioning module 5 is connected to the controller 2 and is used to collect the position of the portable ECG automatic analyzer, which can be a GPS locator or a Beidou locator. When the user's monitoring data is abnormal, the alarm 25 alarms, and medical staff or family members can locate the user's position through the positioning module 5. In addition, through the positioning module 5, the loss rate of the portable ECG automatic analyzer is also reduced.

[0066] In order to reduce the influence of external interference on the ECG data analysis results, the amplitude-frequency response is combined with the approximate entropy to determine whether atrial fibrillation occurs. The heart rate value is calculated through DC removal, binarization and threshold judgment. The calculation method is more scientific and has stronger anti-interference ability.

[0067] A control method for a dynamic anti-interference portable electrocardiograph automatic analyzer, the flow chart is as follows Figure 1 As shown, the following steps are included:

[0068] S1: The processor 21 obtains the ECG signal preprocessed by the ECG signal acquisition module 1, and transmits the ECG signal to the display 22, the memory 24 and the communication unit 23. The display 22 displays the ECG signal and the waveform corresponding to the ECG signal, the memory 24 stores the ECG signal, and the communication unit 23 transmits the ECG signal to an external device. The ECG signal is digitally filtered to obtain a filtered signal. Specifically, the ECG signal is subjected to FIR digital filtering, and the filtering type is 50Hz notch filtering.

[0069] S2: Calculate the amplitude-frequency response and approximate entropy based on the filtered signal.

[0070] S21: Obtain N continuous data in the filtered signal, and use the N continuous data as a data segment to be monitored. In this embodiment, N=5000, and 5000 continuous data are selected as a data segment to be monitored. In other implementations, different sizes of N can be set according to accuracy requirements, such as N=2000, N=10000, etc.

[0071] S22: Perform fast Fourier transform on the data in the monitored data segment to obtain the ECG spectrum corresponding to the filtered signal, and obtain the preset center frequency, which is the frequency of the external interference. In order to facilitate calculation and shorten the time of fast Fourier transform, in this embodiment, the first 4096 points are selected for fast Fourier transform to obtain the ECG spectrum, with the horizontal axis of 0 to 1KHz and the vertical axis as the amplitude. The preset center frequency value is equal to the frequency of the external interference. In this embodiment, the frequency of the external interference is 50Hz, so the center frequency is set to 50Hz. In other implementations, the center frequency can be set according to the frequency of the external interference, such as 100Hz.

[0072] S23: Obtain k (k ≥ 2) frequency points near the center frequency and the amplitudes of the k frequency points (A1, A2, ..., Ak ), calculate the average amplitude A of k frequency points, A is the amplitude-frequency response of the filtered signal. The center frequency is 50Hz, so in the horizontal coordinate of the ECG spectrum, find k frequency points at 50Hz. In this embodiment, k is 5. In other implementations, k can be set to 3, 10, etc. according to the accuracy requirements, the length of the data segment to be monitored, etc. The 5 frequency points at 50Hz are the 204th to 208th frequency points in the data segment to be monitored. Calculate the average amplitude of these 5 frequency points, recorded as A, which is the amplitude-frequency response.

[0073] S24: Calculate the approximate entropy ApEn of the filtered signal using an approximate entropy algorithm.

[0074] To shorten the calculation time, 5000 data points are averaged every 10 to obtain 500 data points, and the approximate entropy is calculated for these 500 data points.

[0075] Assume the time series is u(1), u(2), ..., u(N1), N1 = 500, and define the m-dimensional vector Xi,

[0076] Xi={u(i),u(i+1),…,u(i+m-1)}, i=1,2,…,N1-m+1.

[0077] Calculate the distance dij between any vector Xi and the remaining vectors Xj (j=1, 2, ..., N1-m+1, j≠i):

[0078] dij=max|u(i+j)-u(j+k)|, k=0, 1, ..., m-1, the distance between two vectors is the maximum absolute value of the difference between the corresponding elements of the two vectors.

[0079] Given a threshold r = 0.2, for each vector Xi, statistics d ij ≤r×SD (SD is the standard value of the sequence) and find the ratio of this number to the total number of distances (N1-m), recorded as

[0080] Will Take the logarithm and then find the average value for all i, denoted as φ m (r):

[0081]

[0082] Construct an m+1 dimensional vector and repeat the above steps to get and φ m+1 (r).

[0083] By φ m (r),φ m+1 (r) Obtain approximate entropy: ApEn = φ m(r)-φ m+1 (r).

[0084] S3: Calculate the atrial fibrillation judgment value based on the amplitude-frequency response and the approximate entropy.

[0085] The calculation formula of the fibrillation judgment value J is as follows:

[0086] J=ApEn-A

[0087] Wherein, J represents the atrial fibrillation judgment value, ApEn represents the approximate entropy, and A represents the amplitude-frequency response of the filtered signal.

[0088] S4: The fibrillation determination result is transmitted to the display 22, the memory 24 and the communication unit 23. Whether the fibrillation occurs is determined according to the fibrillation determination value and the preset fibrillation threshold value, and the fibrillation determination result is obtained. The preset fibrillation threshold value is recorded as λ. If the fibrillation determination value is greater than λ, the fibrillation determination result is that the fibrillation occurs, and the alarm 25 alarms. Otherwise, the fibrillation determination result is normal, and the alarm 25 alarms. The value range of λ is [0.6, 0.8]. In this embodiment, λ is 0.6.

[0089] S5: The heart rate value is calculated based on the filtered signal, and the processor 21 transmits the heart rate value to the display 22, the memory 24 and the communication unit 23, and controls the alarm 25 to sound an alarm according to the heart rate value.

[0090] S51: Obtain N continuous data in the filtered signal, take the N continuous data as a data segment to be monitored, perform fast Fourier transform on the data in the data segment to be monitored, obtain the ECG spectrum corresponding to the filtered signal, and measure the DC component amplitude in the ECG spectrum. In this embodiment, N is still 5000. To facilitate fast Fourier transform, the first 4096 points are selected, and the ECG spectrum is obtained after fast Fourier transform. The amplitude of the first frequency point is the DC component amplitude.

[0091] S52: Real-time acquisition of the filtered signal within the most recent period T, recorded as signal segment 1, and DC removal processing is performed on the filtered signal within signal segment 1 to obtain signal segment 2. In order to obtain the heart rate measurement result as quickly as possible while ensuring accuracy, T is set to 30 seconds, and the DC removal processing is to subtract the DC component amplitude from the amplitude of the filtered signal.

[0092] S53: Obtain the amplitude of the signal in signal segment 2, and record the maximum value At of the signal amplitude. Calculate the binarization threshold Th according to the maximum value At of the signal amplitude and the preset proportionality coefficient Kp, specifically:

[0093] Th=At*Kp

[0094] The value range of Kp is [0.3, 0.5]. In this embodiment, Kp is 0.3.

[0095] S54: Binarize signal segment 2 to obtain signal segment 3, specifically: traverse signal segment 2, if the amplitude of a signal is greater than the binarization threshold Th, set the value of the signal to 1, otherwise, set the value of the signal to 0.

[0096] S55: traverse signal segment 3, and obtain the number x of rising edges in signal segment 3, where a rising edge is specifically a signal with a value of 0 followed by five consecutive signals with a value of 1. Compared with directly judging the rising edge based on a 0-1 transition, misjudgment caused by external interference is avoided.

[0097] S56: The number of rising edges is the number of heartbeats within 30 seconds, so the heart rate value h=x*2 is calculated, and the unit is times / minute. The processor 21 transmits the heart rate value to the display 22, the memory 24 and the communication unit 23. If the heart rate value is greater than the preset heart rate threshold, the alarm 25 will sound an alarm.

[0098] The preferred specific embodiments of the present invention are described in detail above. It should be understood that a person skilled in the art can make many modifications and changes based on the concept of the present invention without creative work. Therefore, any technical solution that can be obtained by a person skilled in the art through logical analysis, reasoning or limited experiments based on the concept of the present invention on the basis of the prior art should be within the scope of protection determined by the claims.

Claims

1. A control method for a dynamic anti-interference portable electrocardiograph automatic analyzer, the automatic analyzer comprising an electrocardiograph signal acquisition module (1), a controller (2) and a power module (3), the electrocardiograph signal acquisition module (1) being used to acquire original signals and pre-process the original signals to obtain electrocardiograph signals, the power module (3) being used to provide working power for the portable electrocardiograph automatic analyzer, the controller (2) being connected to the electrocardiograph signal acquisition module (1) and the power module (3), characterized in that: The controller (2) comprises: a processor (21), a display (22), a communication unit (23), a memory (24) and an alarm (25); The processor (21) is used to calculate electrocardiogram parameters according to the electrocardiogram signal; The display (22) is connected to the processor (21) and is used to display the ECG signal, the ECG waveform and ECG parameters corresponding to the ECG signal in real time; The communication unit (23) is connected to the processor (21) and is used to transmit the electrocardiogram signal and electrocardiogram parameters to an external device; The memory (24) is connected to the processor (21) and is used to store electrocardiogram signals and electrocardiogram parameters; The alarm (25) is connected to the processor (21) and is used to sound an alarm according to electrocardiogram parameters; The electrocardiogram parameters include atrial fibrillation judgment result and heart rate value; The control method comprises the following steps: S1: The processor (21) obtains the electrocardiogram signal preprocessed by the electrocardiogram signal acquisition module (1), transmits the electrocardiogram signal to the display (22), the memory (24) and the communication unit (23), and performs digital filtering on the electrocardiogram signal to obtain a filtered signal; S2: Calculate the amplitude-frequency response and approximate entropy based on the filtered signal; S3: Calculate the cardiac fibrillation judgment value based on the amplitude-frequency response and approximate entropy; S4: judging whether atrial fibrillation occurs according to the atrial fibrillation judgment value and a preset atrial fibrillation threshold value, obtaining a atrial fibrillation judgment result, the processor (21) transmitting the atrial fibrillation judgment result to the display (22), the memory (24) and the communication unit (23), and controlling the alarm (25) to sound an alarm according to the atrial fibrillation judgment result; S5: calculating a heart rate value based on the filtered signal, the processor (21) transmitting the heart rate value to the display (22), the memory (24) and the communication unit (23), and controlling the alarm (25) to sound an alarm according to the heart rate value; The step S2 comprises the following steps: S21: Acquire N continuous data in the filtered signal and use the N continuous data as a data segment to be monitored; S22: Performing a fast Fourier transform on the data in the monitored data segment to obtain an electrocardiogram spectrum corresponding to the filtered signal, and obtaining a preset center frequency, wherein the preset center frequency value is equal to the frequency of the external interference; S23: Obtain k (k ≥ 2) frequency points near the center frequency and the amplitudes of the k frequency points (A1, A2, ..., A k ), calculate the average amplitude A of k frequency points, A is the amplitude-frequency response of the filtered signal; S24: Calculate the approximate entropy ApEn of the filtered signal using an approximate entropy algorithm; In step S3, the calculation formula of the atrial fibrillation judgment value J is specifically: J=ApEn-A Wherein, J represents the fibrillation judgment value, ApEn represents the approximate entropy, and A represents the amplitude-frequency response of the filtered signal; In step S4, the preset atrial fibrillation threshold is recorded as λ. If the atrial fibrillation judgment value is greater than λ, the atrial fibrillation judgment result is that atrial fibrillation occurs, and the alarm (25) sounds an alarm. Otherwise, the atrial fibrillation judgment result is normal, and the alarm (25) sounds an alarm. The value range of λ is [0.6, 0.8]. The step S5 comprises the following steps: S51: Obtain N continuous data in the filtered signal, take the N continuous data as a data segment to be monitored, perform fast Fourier transform on the data in the data segment to be monitored, obtain an ECG spectrum corresponding to the filtered signal, and measure the amplitude of the DC component in the ECG spectrum; S52: acquiring in real time a filtered signal within a recent period of time T, recorded as signal segment 1, and performing DC removal processing on the filtered signal within signal segment 1 to obtain signal segment 2; S53: Obtain the amplitude of the signal in signal segment 2, and record the maximum value At of the signal amplitude. Calculate the binarization threshold Th according to the maximum value At of the signal amplitude and the preset proportionality coefficient Kp, specifically: Th=At*Kp Among them, the value range of Kp is [0.3, 0.5]; S54: Binarize signal segment 2 to obtain signal segment 3, specifically: traverse signal segment 2, if the amplitude of a signal is greater than the binarization threshold Th, set the value of the signal to 1, otherwise, set the value of the signal to 0; S55: traverse the signal segment 3, and obtain the number x of rising edges in the signal segment 3, wherein the rising edge is specifically a signal with a value of 0 followed by five consecutive signals with a value of 1; S56: The number of rising edges is the number of heartbeats within the time T, so the heart rate value h=x*60 / T is calculated, and the unit is times / minute. The processor (21) transmits the heart rate value to the display (22), the memory (24) and the communication unit (23). If the heart rate value is greater than a preset heart rate threshold, the alarm (25) sounds an alarm.

2. The control method according to claim 1, characterized in that: The portable automatic electrocardiograph analyzer further comprises a voice module (4), the voice module (4) being connected to the controller (2) and being used for collecting voice signals and converting the voice signals into control commands for transmission to the controller (2), the voice module (4) comprising a voice collection unit and a voice recognition unit.

3. The control method according to claim 1, characterized in that: The portable automatic electrocardiograph analyzer further comprises a positioning module (5), wherein the positioning module (5) is connected to the controller (2) and is used for collecting the position of the portable automatic electrocardiograph analyzer.

4. The control method according to claim 1, characterized in that: The electrocardiogram signal acquisition module (1) comprises an electrocardiogram collector, a first electrode, a second electrode, a third electrode and a preprocessing circuit, wherein the first electrode, the second electrode and the third electrode are connected to the input end of the electrocardiogram collector, and the preprocessing circuit is connected to the output end of the electrocardiogram collector, and comprises a front-end instrument amplifier circuit, a right leg drive circuit, a second-order low-pass filter circuit, a band-stop filter amplifier, a first-order high-pass filter and an inverse adder.

5. The control method according to claim 1, characterized in that: The digital filtering of the ECG signal in step S1 is specifically FIR digital filtering of the ECG signal, and the filtering type is 50 Hz notch filtering.

Citation Information

Patent Citations

  • Low-power portable electrocardiograph monitoring system

    CN107440705A

  • Portable atrial fibrillation detecting device and detecting method

    CN103445772A

  • Motor imagery electroencephalogram signal characteristic extracting method based on dual-tree complex wavelet sample entropy

    CN103961091A

  • Rolling bearing fault diagnosis method based on improved multi-scale fuzzy entropy

    CN107228766A

  • Method for pre-judging defibrillation opportunity

    CN107280661A