Atrial fibrillation recognition device, wearable equipment and storage medium

By calculating the R-wave interval of the ECG signal and the Shannon entropy value of the R-wave interval difference, and combining the double Shannon entropy value to identify the atrial fibrillation signal in the ECG signal, the problem of low atrial fibrillation detection accuracy in the existing technology is solved. problem, achieving higher recognition accuracy and effectiveness.

CN118697361APending Publication Date: 2024-09-27GUANGDONG SKG INTELLIGENT TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310354152.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-27
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

In the existing technology, the accuracy of detecting atrial fibrillation based only on the coefficient of variation of the RR interval is not high, and it is difficult to effectively identify atrial fibrillation early.

Method used

By obtaining the R wave position of the ECG signal, calculating the Shannon entropy value of the R wave interval and the R wave interval difference, and combining the double Shannon entropy value to identify whether there is an atrial fibrillation signal in the ECG signal.

Benefits of technology

It improves the accuracy and effectiveness of atrial fibrillation identification, can accurately identify paroxysmal atrial fibrillation intervals, and reduces false positive and missed detection rates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118697361A
    Figure CN118697361A
Patent Text Reader

Abstract

The invention provides an atrial fibrillation signal recognition device, wearable equipment and a storage medium, the device comprises a memory and a processor, the memory is used for storing a computer program, and the processor is used for executing the computer program to realize the following steps: acquiring an electrocardiosignal to be processed, and extracting an R-wave position of the electrocardiosignal; determining an R-wave interval set and an R-wave interval difference set corresponding to the electrocardiosignal according to the R-wave position; calculating a first Shannon entropy value of the electrocardiosignal based on the R-wave interval set, and calculating a second Shannon entropy value of the electrocardiosignal based on the R-wave interval difference set; and according to the first Shannon entropy value and the second Shannon entropy value, determining whether an atrial fibrillation signal exists in the electrocardiosignal or not. Through the double Shannon entropy, the variation increase of the R wave of the atrial fibrillation in the time sequence and the spontaneous and high irrelevance characteristics of the adjacent R wave can be fully utilized, so that the paroxysmal atrial fibrillation interval can be accurately and effectively identified, and the accuracy of atrial fibrillation identification is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of health wearable technology, and in particular to an atrial fibrillation recognition device, a wearable device and a storage medium. Background Art

[0002] With the development of science and technology and medical level, the average life expectancy of the people is gradually increasing, and the overall medical care expenditure of the people is growing at an alarming rate, among which medical expenditure related to cardiovascular problems is an important part of medical care expenditure. Home wearable monitoring, care and prevention equipment can effectively reduce medical costs, reduce the congestion of medical visits, and provide more stable health services to specific groups such as the aging population.

[0003] Among cardiovascular problems, atrial fibrillation (AF) is a serious and common arrhythmia problem that is associated with a variety of chronic diseases. It is characterized by rapid and irregular heartbeats. How to effectively detect atrial fibrillation early is one of the important health problems facing the aging population. Clinically, atrial fibrillation can be diagnosed by the absence of P waves and rapid irregular ventricular rate in the electrocardiogram. However, since the P wave is difficult to determine automatically and irregular baseline activity of the electrocardiogram is common in atrial fibrillation, it is difficult to automatically detect atrial fibrillation simply from the morphological characteristics of the heartbeat cycle in the electrocardiogram. This has led to the development of an atrial fibrillation detection method based on the R wave interval. However, since early atrial fibrillation may not have obvious clinical manifestations and atrial fibrillation usually occurs intermittently, early detection and diagnosis of atrial fibrillation is not easy. Most current methods for detecting atrial fibrillation are based solely on the irregularity of the RR interval. Since the RR interval during atrial fibrillation has a larger standard deviation and a shorter correlation length than that during normal sinus rhythm, the standard deviation and autocorrelation can be used to automatically distinguish atrial fibrillation from sinus rhythm. However, atrial fibrillation also needs to be distinguished from other arrhythmias, which are usually manifested as irregular RR intervals. Therefore, the accuracy of detecting atrial fibrillation based solely on the coefficient of variation of the RR interval is not high. Summary of the invention

[0004] The present invention provides an atrial fibrillation recognition device, a wearable device and a storage medium, which are used to solve the defect of low accuracy in detecting atrial fibrillation based only on the coefficient of variation of the RR interval in the prior art.

[0005] The present invention provides an atrial fibrillation identification device, comprising a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to execute the computer program to implement the following steps:

[0006] Acquire the electrocardiogram signal to be processed, and extract the R wave position of the electrocardiogram signal one by one;

[0007] Determine the R wave interval set and the R wave interval difference set corresponding to the electrocardiogram signal according to the R wave position;

[0008] Calculate a first Shannon entropy value of the electrocardiogram based on the R-wave interval set, and calculate a second Shannon entropy value of the electrocardiogram based on the R-wave interval difference set;

[0009] It is determined whether an atrial fibrillation signal exists in the electrocardiogram signal according to the first Shannon entropy value and the second Shannon entropy value.

[0010] According to the atrial fibrillation identification device provided by the present invention, the calculating the first Shannon entropy value of the electrocardiogram signal based on the R wave interval set includes:

[0011] Acquire a signal segment within a preset time length before the electrocardiogram signal;

[0012] Extracting first characteristic data of the signal segment based on the target interval corresponding to the signal segment in the R wave interval set; the first characteristic data includes an average R wave interval, a minimum R wave interval, and a maximum R wave interval;

[0013] Determine a first Shannon entropy interval according to the first characteristic data, and determine the number of first intervals according to the number of intervals in the set of R wave intervals;

[0014] Dividing the first Shannon entropy interval into intervals of equal intervals according to the number of the first intervals, and dividing the first Shannon entropy interval into a plurality of first Shannon entropy sub-intervals;

[0015] A first Shannon entropy value of the electrocardiogram signal is calculated based on the multiple first Shannon entropy sub-intervals.

[0016] According to the atrial fibrillation identification device provided by the present invention, the calculating the first Shannon entropy value of the electrocardiogram signal based on the multiple first Shannon entropy sub-intervals includes:

[0017] Determining interval distribution probabilities of the plurality of first Shannon entropy subintervals based on the values ​​of each interval in the set of R wave intervals;

[0018] The first Shannon entropy value of the electrocardiogram signal is calculated according to the interval distribution probabilities of the multiple first Shannon entropy subintervals.

[0019] According to the atrial fibrillation identification device provided by the present invention, determining the first Shannon entropy interval according to the first characteristic data includes:

[0020] Obtaining a preset first weight function and a second weight function;

[0021] Based on the first feature data, using the first weight function to calculate a first interval upper limit;

[0022] Based on the first feature data, using the second weight function to calculate a first interval lower limit;

[0023] A first Shannon entropy interval is determined according to the first interval upper limit and the first interval lower limit.

[0024] According to the atrial fibrillation identification device provided by the present invention, the calculating the second Shannon entropy value of the electrocardiogram signal based on the R wave interval difference set includes:

[0025] Extracting second characteristic data of the signal segment based on the target interval difference corresponding to the signal segment in the R wave interval difference set; the second characteristic data includes a minimum R wave interval difference and a maximum R wave interval difference;

[0026] Determine a second Shannon entropy interval according to the second characteristic data, and determine the number of second intervals according to the number of interval differences in the R-wave interval difference set;

[0027] Dividing the second Shannon entropy interval into intervals of equal intervals according to the number of the second intervals, and dividing the second Shannon entropy interval into a plurality of second Shannon entropy sub-intervals;

[0028] A second Shannon entropy value of the electrocardiogram signal is calculated based on the multiple second Shannon entropy sub-intervals.

[0029] According to the atrial fibrillation identification device provided by the present invention, the calculating the second Shannon entropy value of the electrocardiogram signal based on the multiple second Shannon entropy sub-intervals includes:

[0030] Determining the interval difference distribution probability of the plurality of second Shannon entropy subintervals based on the value of each interval difference in the R wave interval difference set;

[0031] The second Shannon entropy value of the electrocardiogram signal is calculated according to the interval difference distribution probability of the multiple second Shannon entropy subintervals.

[0032] According to the atrial fibrillation identification device provided by the present invention, determining the second Shannon entropy interval according to the second characteristic data includes:

[0033] Obtaining a preset third weight function and a fourth weight function;

[0034] Based on the second feature data, calculating the upper limit of the second interval using the third weight function;

[0035] Based on the second feature data, calculating a second interval lower limit using the fourth weight function;

[0036] A second Shannon entropy interval is determined according to the second interval upper limit and the second interval lower limit.

[0037] According to the atrial fibrillation identification device provided by the present invention, the method of determining the R wave interval set and the R wave interval difference set corresponding to the electrocardiogram signal according to the R wave position includes:

[0038] Calculate the interwave period between two adjacent R waves in the electrocardiogram signal according to the R wave position;

[0039] Determine a set of R wave intervals corresponding to the electrocardiogram signal based on the wave intervals;

[0040] The R wave interval difference set corresponding to the electrocardiogram signal is determined according to the R wave interval set.

[0041] According to the atrial fibrillation identification device provided by the present invention, the step of determining the R wave interval difference set corresponding to the electrocardiogram signal according to the R wave interval set includes:

[0042] Calculating the interwave interval difference between two adjacent interwave intervals in the R wave interval set;

[0043] Determining a set of R wave interval differences corresponding to the electrocardiogram signal according to the interval difference value. According to the atrial fibrillation identification device provided by the present invention, determining whether there is an atrial fibrillation signal in the electrocardiogram signal according to the first Shannon entropy value and the second Shannon entropy value includes:

[0044] Acquire the sampling frequency of the electrocardiogram signal, and calculate the heart rate characteristics corresponding to the electrocardiogram signal based on the sampling frequency and the R wave interval set; the heart rate characteristics include the average heart rate;

[0045] Determine a first threshold and a second threshold corresponding to the electrocardiogram signal according to the heart rate characteristic;

[0046] The first Shannon entropy value is compared with the first threshold value, and the second Shannon entropy value is compared with the second threshold value, and whether an atrial fibrillation signal exists in the electrocardiogram signal is determined according to the comparison result.

[0047] According to the atrial fibrillation identification device provided by the present invention, determining whether an atrial fibrillation signal exists in the electrocardiogram signal according to the comparison result includes:

[0048] If, according to the comparison result, the first Shannon entropy value is greater than the first threshold value, and the second Shannon entropy value is greater than the second threshold value, it is determined that an atrial fibrillation signal exists in the electrocardiogram signal;

[0049] If, according to the comparison result, the first Shannon entropy value is less than or equal to the first threshold, or the second Shannon entropy value is less than or equal to the second threshold, it is determined that there is no atrial fibrillation signal in the electrocardiogram signal.

[0050] According to the atrial fibrillation identification device provided by the present invention, the atrial fibrillation identification device further comprises: an electrocardiogram signal acquisition device, and the electrocardiogram signal acquisition device is used to acquire the electrocardiogram signal.

[0051] The present invention also provides a wearable device, comprising an atrial fibrillation identification device as described in any one of the above.

[0052] The present invention also provides a non-transitory computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps described in any one of the above are implemented.

[0053] The present invention also provides a computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements any of the steps described above.

[0054] The atrial fibrillation identification device, wearable device and storage medium provided by the present invention obtain the electrocardiogram signal to be processed, extract the R wave position of the electrocardiogram signal one by one; determine the R wave interval set and the R wave interval difference set corresponding to the electrocardiogram signal according to the extracted R wave position; calculate the first Shannon entropy value of the electrocardiogram signal based on the R wave interval set, and calculate the second Shannon entropy value of the electrocardiogram signal based on the R wave interval difference set; thereby determining whether there is an atrial fibrillation signal in the electrocardiogram signal according to the calculated first Shannon entropy value and second Shannon entropy value. The double Shannon entropy can fully utilize the increased variation of the R wave of atrial fibrillation in the time series, as well as the spontaneous and highly uncorrelated characteristics with the adjacent R waves, so that the paroxysmal atrial fibrillation interval can be accurately and effectively identified, and the accuracy of atrial fibrillation identification can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0055] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0056] Figure 1 It is a schematic diagram of a process of atrial fibrillation recognition performed by a processor of an atrial fibrillation recognition device provided by the present invention;

[0057] Figure 2 It is one of the Shannon entropy fragment schematic diagrams provided by the present invention;

[0058] Figure 3 This is the second schematic diagram of the Shannon entropy fragment provided by the present invention;

[0059] Figure 4 It is a schematic diagram of the R wave position of a normal electrocardiogram signal provided by the present invention;

[0060] Figure 5It is a scatter plot corresponding to the set of R wave intervals of a normal electrocardiogram signal provided by the present invention;

[0061] Figure 6 It is a sequence diagram corresponding to the R wave interval set of a normal electrocardiogram signal provided by the present invention;

[0062] Figure 7 is a schematic diagram of an atrial fibrillation electrocardiogram signal provided by an embodiment of the present invention;

[0063] Figure 8 is a scatter plot corresponding to a set of R wave intervals of an atrial fibrillation electrocardiogram signal provided by an embodiment of the present invention;

[0064] Fig. 9 is a sequence diagram corresponding to a set of R wave intervals of an atrial fibrillation electrocardiogram signal provided by an embodiment of the present invention;

[0065] Fig.10 It is a schematic diagram of allocating intervals in a set of R wave intervals of a normal electrocardiogram signal to Shannon entropy segment intervals provided by an embodiment of the present invention;

[0066] Fig.11 It is a schematic diagram of allocating the interval differences in the R wave interval difference set of a normal electrocardiogram signal to the Shannon entropy segment intervals provided by an embodiment of the present invention;

[0067] Fig.12 It is a schematic diagram of allocating intervals in a set of R wave intervals of an atrial fibrillation electrocardiogram signal to Shannon entropy segment intervals provided by an embodiment of the present invention;

[0068] Fig.13 It is a schematic diagram of allocating the interval differences in the R wave interval difference set of an atrial fibrillation electrocardiogram signal to the Shannon entropy segment intervals provided by an embodiment of the present invention;

[0069] Fig.14 It is a structural schematic diagram of the electronic device provided by the present invention. DETAILED DESCRIPTION

[0070] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0071] Combine the following Figure 1-Figure 14 The present invention describes an atrial fibrillation identification device, a wearable device, and a storage medium.

[0072] First, the atrial fibrillation identification device provided by the present invention comprises: a memory and a processor, wherein the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory to implement the following Figure 1 Steps shown:

[0073] Acquire an electrocardiogram signal to be processed, and extract the R wave position of the electrocardiogram signal;

[0074] Determine the R wave interval set and the R wave interval difference set corresponding to the electrocardiogram signal according to the R wave position;

[0075] Calculate a first Shannon entropy value of the electrocardiogram based on the R-wave interval set, and calculate a second Shannon entropy value of the electrocardiogram based on the R-wave interval difference set;

[0076] It is determined whether an atrial fibrillation signal exists in the electrocardiogram signal according to the first Shannon entropy value and the second Shannon entropy value.

[0077] The processor obtains the ECG signal to be processed, and extracts the R wave position of the ECG signal, and determines the R wave interval set and the R wave interval difference set of the ECG signal based on the extracted R wave position. Specifically, the R wave position of the ECG signal is extracted beat by beat, and the RR interval is determined based on the adjacent R wave position to obtain the corresponding R wave interval set U = {RR1, RR2, RR3...}, and the adjacent RR intervals are subtracted to obtain the set V = {RRd1, RRd2, RRd3,...} of RR interval differences RRd. The atrial fibrillation identification device provided by the present invention also includes an ECG signal acquisition device for acquiring ECG signals, and the ECG signal to be processed acquired by the processor is acquired by the ECG signal acquisition device.

[0078] Based on the R wave interval set U, the first Shannon entropy value of the ECG signal is calculated, and based on the R wave interval difference set V, the second Shannon entropy value of the ECG signal is calculated, wherein the first Shannon entropy value is used to characterize the degree of variation of the R wave of atrial fibrillation in the ECG signal in the time series, and the second Shannon entropy value is used to characterize the spontaneous and highly uncorrelated R wave of atrial fibrillation in the ECG signal with the adjacent R wave in the time series, that is, the degree of variation of the adjacent RR intervals. It can be seen that entropy is a quantity used to describe the disorder of a sequence signal, and the disorder description of Shannon entropy does not have time characteristics, which makes the characteristic of the decrease in the correlation between adjacent RR intervals during the atrial fibrillation paroxysm period not fully utilized, thereby losing the ability to further improve the accuracy and accuracy of atrial fibrillation recognition. Therefore, according to the first Shannon entropy value and the second Shannon entropy value, it is determined whether there is an atrial fibrillation signal in the ECG signal, thereby identifying atrial fibrillation, which can accurately and effectively distinguish the paroxysmal atrial fibrillation interval and improve the accuracy and effectiveness of atrial fibrillation recognition.

[0079] Furthermore, the ECG signal can be acquired based on a fixed time window, for example, the ECG signal acquired by the ECG signal acquisition device is extracted using a fixed time window, the R wave position of the acquired ECG signal is determined, and then the R wave interval set and the R wave interval difference set corresponding to the ECG signal are determined. Alternatively, the ECG signal acquired by the ECG signal acquisition device for a certain time period is acquired, and the acquired ECG signal is intercepted based on a fixed time window, and the R wave position of each intercepted signal segment is determined, and then the R wave interval set and the R wave interval difference set of each signal segment are determined.

[0080] In this embodiment, the electrocardiogram signal to be processed is obtained, and the R wave position of the electrocardiogram signal is extracted; the R wave interval set and the R wave interval difference set corresponding to the electrocardiogram signal are determined according to the extracted R wave position; the first Shannon entropy value of the electrocardiogram signal is calculated based on the R wave interval set, and the second Shannon entropy value of the electrocardiogram signal is calculated based on the R wave interval difference set; thus, according to the calculated first Shannon entropy value and second Shannon entropy value, it is determined whether there is an atrial fibrillation signal in the electrocardiogram signal. The double Shannon entropy can fully utilize the increased variation of the R wave of atrial fibrillation in the time series, as well as the spontaneous and highly uncorrelated characteristics with the adjacent R waves, so that the paroxysmal atrial fibrillation interval can be accurately and effectively identified, and the accuracy of atrial fibrillation identification can be improved.

[0081] Preferably, when the processor calculates the first Shannon entropy value of the electrocardiogram signal based on the R wave interval set, it is specifically used to:

[0082] Acquire a signal segment within a preset time length before the electrocardiogram signal;

[0083] Extracting first characteristic data of the signal segment based on the target interval corresponding to the signal segment in the R wave interval set; the first characteristic data includes an average R wave interval, a minimum R wave interval, and a maximum R wave interval;

[0084] Determine a first Shannon entropy interval according to the first characteristic data, and determine the number of first intervals according to the number of intervals in the set of R wave intervals;

[0085] Dividing the first Shannon entropy interval into intervals of equal intervals according to the number of the first intervals, and dividing the first Shannon entropy interval into a plurality of first Shannon entropy sub-intervals;

[0086] A first Shannon entropy value of the electrocardiogram signal is calculated based on the multiple first Shannon entropy sub-intervals.

[0087] Based on the acquired ECG signal, a signal segment within a preset time length before the ECG signal falls asleep is obtained, and based on the target interval corresponding to the signal segment in the R wave interval set U, the first feature data of the signal segment is extracted. The extracted first feature data includes the average R wave interval, the minimum R wave interval and the maximum R wave interval of the signal segment.

[0088] The first Shannon entropy interval is determined according to the extracted first characteristic data, and the number of first Shannon entropy intervals is determined according to the number of intervals in the R wave interval set, wherein the first Shannon entropy interval is the interval corresponding to the minimum R wave interval and the maximum R wave interval, or the interval calculated based on the minimum R wave interval and the maximum R wave interval, which is not limited here. According to the number of first intervals, the first Shannon entropy interval is divided into intervals of equal intervals, and the first Shannon entropy interval is divided into multiple first Shannon entropy sub-intervals (BIN), and the first Shannon entropy value of the electrocardiogram signal is calculated based on each first Shannon entropy sub-interval.

[0089] Further, when determining the first Shannon entropy interval according to the first characteristic data, the processor is further configured to:

[0090] Obtaining a preset first weight function and a second weight function;

[0091] Based on the first feature data, using the first weight function to calculate a first interval upper limit;

[0092] Based on the first feature data, using the second weight function to calculate a first interval lower limit;

[0093] A first Shannon entropy interval is determined according to the first interval upper limit and the first interval lower limit.

[0094] First, obtain the preset first weight function F1 and second weight function F2, and based on the extracted first feature data, use the first weight function to calculate the upper limit of the first interval. Similarly, use the second weight function to calculate the lower limit of the first interval. According to the calculated upper limit and lower limit of the first interval, determine the first Shannon entropy interval.

[0095] Further, when calculating the first Shannon entropy value of the electrocardiogram signal based on multiple first Shannon entropy subintervals, the processor is further configured to:

[0096] Determining interval distribution probabilities of the plurality of first Shannon entropy subintervals based on the values ​​of each interval in the set of R wave intervals;

[0097] The first Shannon entropy value of the electrocardiogram signal is calculated according to the interval distribution probabilities of the multiple first Shannon entropy subintervals.

[0098] Based on the value of each interval in the R wave interval set U, the interval distribution probability of each Shannon entropy subinterval in multiple first Shannon entropy subintervals is determined, and the first Shannon entropy value of the electrocardiogram signal is calculated according to the calculated interval distribution probability of multiple first Shannon entropy subintervals.

[0099] Preferably, in substantially the same manner as the calculation process of the first Shannon entropy value, when calculating the second Shannon entropy value of the electrocardiographic signal based on the R-wave interval difference set, the processor is further configured to:

[0100] Extracting second characteristic data of the signal segment based on the target interval difference corresponding to the signal segment in the R wave interval difference set; the second characteristic data includes a minimum R wave interval difference and a maximum R wave interval difference;

[0101] Determine a second Shannon entropy interval according to the second characteristic data, and determine the number of second intervals according to the number of interval differences in the R-wave interval difference set;

[0102] Dividing the second Shannon entropy interval into intervals of equal intervals according to the number of the second intervals, and dividing the second Shannon entropy interval into a plurality of second Shannon entropy sub-intervals;

[0103] A second Shannon entropy value of the electrocardiogram signal is calculated based on the multiple second Shannon entropy sub-intervals.

[0104] Based on the signal segment selected from the electrocardiogram signal, the corresponding target interval difference in the R-wave interval difference set V is determined, and based on the target interval difference, the second characteristic data of the R-wave interval difference set is extracted, and the second characteristic data includes the minimum R-wave interval difference and the maximum R-wave interval difference.

[0105] It should be noted that the target interval includes multiple interval values, and the target interval difference includes multiple interval difference values.

[0106] According to the extracted second characteristic data, the second Shannon entropy interval is determined, and according to the number of interval differences in the R wave interval difference set V, the number of second intervals is determined, and the second Shannon entropy interval is divided into intervals of equal intervals according to the second number of intervals, and the second Shannon entropy interval is divided into a plurality of second Shannon entropy sub-intervals. Thus, the second Shannon entropy value of the electrocardiogram signal is calculated according to each of the divided Shannon entropy sub-intervals. Among them, the second Shannon entropy interval is the interval corresponding to the minimum R wave interval difference and the maximum R wave interval difference, or the interval calculated based on the minimum R wave interval difference and the maximum R wave interval difference, which is also not limited here.

[0107] Preferably, when determining the second Shannon entropy interval according to the second characteristic data, the processor is further configured to:

[0108] Obtaining a preset third weight function and a fourth weight function;

[0109] Based on the second feature data, calculating the upper limit of the second interval using the third weight function;

[0110] Based on the second feature data, calculating a second interval lower limit using the fourth weight function;

[0111] A second Shannon entropy interval is determined according to the second interval upper limit and the second interval lower limit.

[0112] First, the preset third weight function F3 and fourth weight function F4 are obtained, and based on the extracted second feature data, the upper limit of the second interval is calculated using the third weight function F3, and the lower limit of the second interval is calculated using the fourth weight function F4. According to the calculated upper limit of the second interval and the lower limit of the second interval, the second Shannon entropy interval is determined.

[0113] The first Shannon entropy interval and the second Shannon entropy interval are numerical intervals used to characterize the calculation range of the Shannon entropy value, and are specifically calculated based on the characteristic data corresponding to the signal segment of the preset time length in the electrocardiogram signal, and the characteristic data is extracted based on the R wave interval and the R wave interval difference corresponding to the signal segment. Further, when calculating the second Shannon entropy value of the electrocardiogram signal based on the second Shannon entropy sub-interval, the processor is also used to:

[0114] Determining the interval difference distribution probability of the plurality of second Shannon entropy subintervals based on the value of each interval difference in the R wave interval difference set;

[0115] The second Shannon entropy value of the electrocardiogram signal is calculated according to the interval difference distribution probability of the multiple second Shannon entropy subintervals.

[0116] Based on the value of each interval difference in the R wave interval difference set V, the interval difference distribution probability of each second Shannon entropy subinterval is determined, and according to the interval difference distribution probability of each second Shannon entropy subinterval, the second Shannon entropy value of the electrocardiogram signal is calculated.

[0117] Preferably, when determining the R wave interval set and the R wave interval difference set corresponding to the electrocardiogram signal according to the R wave position, the processor is specifically configured to:

[0118] Calculate the interwave period between two adjacent R waves in the electrocardiogram signal according to the R wave position;

[0119] Determine a set of R wave intervals corresponding to the electrocardiogram signal based on the wave intervals;

[0120] The R wave interval difference set corresponding to the electrocardiogram signal is determined according to the R wave interval set.

[0121] According to the extracted R wave position, the interwave interval between two adjacent R waves is calculated, and based on the interwave interval, the R wave interval set corresponding to the electrocardiogram signal is determined, wherein the interwave interval between two adjacent R waves is an element in the R wave interval set. According to the R wave interval set of the electrocardiogram signal, the R wave interval difference set corresponding to the electrocardiogram signal is determined.

[0122] Further, when determining the R wave interval difference set corresponding to the electrocardiogram signal according to the R wave interval set, the processor is further configured to:

[0123] Calculating the interwave interval difference between two adjacent interwave intervals in the R wave interval set;

[0124] The R wave interval difference set corresponding to the electrocardiogram signal is determined according to the interval difference value.

[0125] Based on the R wave interval set, the interval difference between two adjacent R wave intervals in the R wave interval set is calculated, and the R wave interval difference set corresponding to the electrocardiogram signal is determined according to the calculated interval differences, wherein each interval difference is an element in the R wave interval difference set.

[0126] Preferably, when determining whether there is an atrial fibrillation signal in the electrocardiogram signal according to the first Shannon entropy value and the second Shannon entropy value, the processor is specifically configured to:

[0127] Acquire the sampling frequency of the electrocardiogram signal, and calculate the heart rate characteristics corresponding to the electrocardiogram signal based on the sampling frequency and the R wave interval set; the heart rate characteristics include the average heart rate;

[0128] Determine a first threshold and a second threshold corresponding to the electrocardiogram signal according to the heart rate characteristic;

[0129] The first Shannon entropy value is compared with the first threshold value, and the second Shannon entropy value is compared with the second threshold value, and whether an atrial fibrillation signal exists in the electrocardiogram signal is determined according to the comparison result.

[0130] When identifying atrial fibrillation signals, a dual Shannon entropy threshold mechanism is used. Specifically, the sampling frequency of the electrocardiogram signal is first obtained, and the heart rate characteristics corresponding to the electrocardiogram signal are calculated based on the sampling frequency and the R wave interval set, and the heart rate characteristics include the average heart rate. According to the calculated heart rate characteristics, the first threshold α and the second threshold β corresponding to the electrocardiogram signal are determined, the first Shannon entropy value is compared with the first threshold α, and the second Shannon entropy value is compared with the second threshold β, and whether there is an atrial fibrillation signal in the electrocardiogram signal is determined according to the comparison result.

[0131] Further, when determining whether there is an atrial fibrillation signal in the electrocardiogram signal according to the comparison result, the processor is further configured to:

[0132] If, according to the comparison result, the first Shannon entropy value is greater than the first threshold value, and the second Shannon entropy value is greater than the second threshold value, it is determined that an atrial fibrillation signal exists in the electrocardiogram signal;

[0133] If, according to the comparison result, the first Shannon entropy value is less than or equal to the first threshold, or the second Shannon entropy value is less than or equal to the second threshold, it is determined that there is no atrial fibrillation signal in the electrocardiogram signal.

[0134] According to the comparison results of the first Shannon entropy value and the first threshold α, and the second Shannon entropy value and the second threshold β, if the first Shannon entropy value is greater than the first threshold α, and the second Shannon entropy value is greater than the second threshold β, it is determined that there is an atrial fibrillation signal in the electrocardiogram signal; if the first Shannon entropy value is less than or equal to the first threshold α, or the second Shannon entropy value is less than or equal to the second threshold β, it is determined that there is no atrial fibrillation signal in the electrocardiogram signal.

[0135] In the prior art, most of the Shannon entropy is calculated in the form of a fixed range and a fixed number of intervals (BINS). This method results in different resolutions when calculating the Shannon entropy value for ECG signals of different heart rates (average RR intervals). The RR interval of a fast heart rate is short, and the RR interval variation value is small, which is easy to fall into a specific interval (BINS) range, which leads to a decrease in the ability of Shannon entropy to analyze normal heart rhythm and atrial fibrillation heart rate, thereby reducing the recognition rate of atrial fibrillation. In this embodiment, based on the selected signal segment of the ECG signal, the characteristic parameters of the signal segment are extracted to perform adaptive interval division, and the dynamic range weight and the number of segments (BINS) can be configured according to the adaptive parameters, so as to give full play to the advantages of Shannon entropy as an information detection method and maximize the resolution of information detection.

[0136] Furthermore, a dual Shannon entropy threshold detection mechanism is adopted, and the Shannon entropy characteristics of the two sequences of "RR interval" and "adjacent RR interval difference" are used to reflect the characteristics of atrial fibrillation losing the correlation between heart rates. It can effectively distinguish atrial premature beats and atrial fibrillation fragments in the ECG signal, so as to accurately and effectively identify atrial fibrillation signals. At the same time, compared with the detection method of long-term ECG dynamic monitoring, the required computing power and power consumption are lower, which is suitable for real-time application and display on wearable ECG health bracelets, watches, ECG stickers and other wearable devices, which has important guiding significance for the implementation of ECG home health detection scenarios and cardiovascular risk assessment.

[0137] Preferably, the atrial fibrillation recognition device provided by the embodiment of the present invention performs atrial fibrillation recognition based on the dual Shannon entropy detection mechanism of adaptive partitioning. First, the processor obtains the ECG signal collected by the ECG signal acquisition device, obtains an ECG signal segment X[n] of a preset time length, extracts the R wave position of the signal segment X[n] beat by beat, and determines the RR interval set S to calculate the required adaptive parameters; the upper and lower limits of the calculation range of the first Shannon entropy value and the reasonable number of Shannon entropy intervals are calculated according to the preset weight functions F1 and F2, and the equally divided sub-intervals (BINS) corresponding to the first Shannon entropy value are defined. The upper and lower limits of the calculation range of the second Shannon entropy value and the number of Shannon entropy intervals are calculated according to the preset weight functions FD1 and FD2, and the equally divided sub-intervals (BINS) corresponding to the second Shannon entropy value are defined. During ECG signal monitoring, based on a fixed time window Y[n], the R wave position is extracted beat by beat from the acquired ECG signal, and adjacent R wave positions are subtracted to obtain an R wave interval set U with RR intervals as elements. Adjacent RR intervals are subtracted to obtain an R wave interval difference set V with RR interval differences (RRd) as elements. Finally, according to the calculation formula of Shannon entropy, the first Shannon entropy value is calculated through set U; the second Shannon entropy value is calculated through set V. When the first Shannon entropy value is greater than the first threshold α, and the second Shannon entropy value is greater than the second threshold β, the signal segment corresponding to the time window Y[n] is determined to be an interval containing an atrial fibrillation signal.

[0138] Alternatively, when extracting adaptive parameters, based on the acquired ECG signal, the R wave position of the ECG signal is extracted beat by beat, adjacent R wave positions are subtracted to obtain an R wave interval set U with RR intervals as elements, and adjacent RR intervals are subtracted to obtain an R wave interval difference set V with RR interval differences as elements. A signal segment X[n] of a preset duration is selected, and the required adaptive parameters are calculated based on the target element corresponding to X[n] in the sets U and V, that is, the R wave interval set S of the signal segment X[n]. The adaptive parameters include the average heart rate HR AVG , mean RR interval RR AVG1 , minimum RR interval RR MIN1 , maximum RR interval RR MAX1 , maximum RR interval difference (RRd MAX1 ), minimum RR interval difference (RRd MIN1 )wait.

[0139] The following uses the open source standard limb lead ECG data No. 4908 in MIT's open source atrial fibrillation database as an example. MIT's open source atrial fibrillation databases such as MIT-arrthymia and MIT-AFDB are used to exemplarily describe the recognition process of atrial fibrillation signals by the atrial fibrillation recognition device provided in an embodiment of the present invention.

[0140] First, obtain a section of ECG signal X[n] of a preset duration at rest from ECG signal Y[n]. The preset duration is 10 seconds or 20 seconds, etc., which is not specifically limited here. Taking 10 seconds as an example, extract the R wave position of X[n] beat by beat, subtract adjacent R wave positions, and obtain the RR interval set S corresponding to X[n]. Based on the R wave interval set S, calculate the representative average heart rate (HR AVG ), mean RR interval (RR AVG1 ), minimum RR interval (RR MIN1 ), maximum RR interval (RR MAX1 ), the maximum adjacent RR interval difference (RRd MAX1 ), the minimum adjacent RR interval difference (RRd MIN1 ) and other adaptive parameters.

[0141] The sampling frequency of the open source standard limb lead ECG data No. 4908 is 250Hz, and the data length is 600 minutes. In a resting state, the signal X[n] of the first 10 seconds is collected and its R wave peak is extracted to obtain a set of R wave peak position sets W = {R1, R2, R3, ...}, and then the interval between adjacent R waves (RR interval) is calculated, as shown in the following formula 1:

[0142] S={(R1-R2),(R2-R3),(R3-R4),……} 10sec

[0143] ={RR1,RR2,RR3,...} 10sec ; (1)

[0144] Where R1, R2, ..., etc. are the specific time positions of the first, second, to last R wave peaks in X[n], respectively. Taking data No. 4908 in the MIT atrial fibrillation database as an example, S = {159, 159, 155, 151, 149, 151, 156, 158, 157, 152, 150, 149, 152, 157, 157}. Based on the set S, the minimum RR interval (RR MIN1 ), maximum RR interval (RR MAX1 ), minimum RR interval (RR MIN1 ) is the minimum value in the S set, and the maximum RR interval (RR MAX1 ) is the maximum value in the set S. The minimum RR interval (RR MIN1 ), maximum RR interval (RR MAX1 ) is calculated as shown in the following formula 2-3:

[0145] RR MAX1 =max({RRd1,RRd2,RRd3,...})=159; (2)

[0146] RR MIN1 =min({RRd1,RRd2,RRd3,...})=149; (3)

[0147] Average heart rate HR AVG = sampling frequency / RR interval, as shown in Formula 4:

[0148]

[0149] Among them, NRR is the number of elements in the set S, that is, the number of RR intervals.

[0150] Based on the calculated R wave interval set S, the R wave interval difference set Q is calculated according to the following formula:

[0151] Q={(RR1-RR2),(RR2-RR3),(RR3-RR4),……} 10sec

[0152] ={RRd1,RRd2,RRd3,…} 10sec ; (5)

[0153] In this embodiment, Q = {0, -4, -4, -2, 2, 5, 2, -1, -5, -2, -1, 3, 5, 0}, based on which the minimum RR interval (RR MIN1 ), maximum RR interval (RR MAX1 ), the calculation formula is as follows:

[0154] Rd MAX1 =max({RRd1,RRd2,RRd3,...})=5; (6)

[0155] Rd MIN1 =min({RRd1,RRd2,RRd3,...})=-5; (7)

[0156] According to the preset first weight function F1(RR AVG1 ,RR MIN1 ,RR MAX1 ) and the preset second weight function F2(RR AVG1 ,RR MIN1 ,RR MAX1 ), calculate the upper and lower limits of the first Shannon entropy calculation range, the number of RR intervals NRR contained in the ECG signal Y[n], and the number of reasonable Shannon entropy intervals k. According to the upper and lower limits of the first Shannon entropy calculation range and the number of intervals, a plurality of equally divided Shannon entropy subintervals (BINS) are divided. Preferably, the preset first weight function F1(RR AVG1 ,RR MIN1 ,RR MAX1) Calculate the BINS upper limit of the first Shannon entropy value, the formula is as follows:

[0157] F1(RR AVG1 ,RR MIN1 ,RR MAX1 )=RR AVG1 +15×(RR MAX1 -RR MIN1 )=300;(8)

[0158] Preferably, a preset second weight function F2 (RR AVG1 ,RR MIN1 ,RR MAX1 ) Calculate the BINS lower limit of the first Shannon entropy value, the formula is as follows:

[0159] F2(RR AVG1 ,RR MIN1 ,RR MAX1 )=RR AVG1 -15×(RR MAX1 -RR MIN1 )=0;(9)

[0160] Preferably, the number k of Shannon entropy fragments corresponding to the first Shannon entropy value and the second Shannon entropy value is calculated according to the following formula:

[0161] k=Ceil(1+log2(NRR×3)); (10)

[0162] Ceil represents the unconditional carry of the calculated decimal point value.

[0163] In this embodiment, based on data No. 4908 in the MIT atrial fibrillation database, there are 15 RR intervals (NRR=15) in the first 10 seconds of data, and the calculated k value is 7. BINS is divided into seven intervals, namely BIN1 RR 、BIN2 RR 、BIN3 RR 、BIN4 RR 、BIN5 RR 、BIN6 RR and BIN7 RR , the Shannon entropy fragment of the first Shannon entropy value is divided as follows Figure 2 shown.

[0164] Similarly, according to the preset third weight function FD1 (RRd MIN1 ,RRd MAX1 ) and the preset fourth FD2 (RRd MIN1 ,RRd MAX1) calculates the upper and lower limits of the second Shannon entropy value calculation range, and divides a plurality of equally divided Shannon entropy sub-intervals (BINS) according to the calculated number of Shannon entropy segments k. Preferably, a preset third weight function FD1 (RRd MIN1 ,RRd MAX1 ), calculate the BINS upper limit of the second Shannon entropy value according to the following formula:

[0165]

[0166] Preferably, a preset fourth weight function FD2 (RRd MIN1 ,RRd MAX1 ) Calculate the BINS lower limit of the second Shannon entropy value, the formula is as follows:

[0167]

[0168] In this embodiment, based on data No. 4908 in the MIT atrial fibrillation database, there are 15 RR intervals (NRR=15) in the first 10 seconds of data, and the calculated k value is 7. The Shannon entropy segment BINS of the second Shannon entropy value is divided into seven intervals, namely BIN1 RRd 、BIN2 RRd 、BIN3 RRd 、BIN4 RRd 、BIN5 RRd 、BIN6 RRd and BIN7 RRd , the Shannon entropy subinterval of the second Shannon entropy value is as follows Figure 3 shown.

[0169] Based on the divided subintervals of the first Shannon entropy value and the second Shannon entropy value, for the ECG signal Y[n] acquired based on the fixed time window, the R wave position is extracted beat by beat, as follows: Figure 4 As shown. Subtracting adjacent R waves from each other, we get the RR interval set U = {RR1, RR2, RR3, ...} corresponding to the ECG signal Y[n]. Subtracting adjacent RR intervals from each other, we get the RR interval difference (RRd) set V = {RRd1, RRd2, RRd3, ...}. Taking the ECG signal corresponding to Y[n] for 30 seconds as an example, we can calculate the R wave interval set U in a manner basically the same as formula 1. The calculated set U is, for example:

[0170] U={159,159,155,151,149,151,156,158,157,152,150,149,152,157,157,158,155,153,152,156,160,160,154,151 ,152,154,157,158,155,151,148,149,154,156,157,153,150,148,151,154,158,157,157,151,151,154,158,158};

[0171] Further, refer to Figure 5 and Figure 6 ,in, Figure 5 is obtained based on the set U Figure 4 The RR interval scatter plot corresponding to the R wave position of the ECG signal Y[n] is shown. Figure 6 It is the RR interval sequence diagram corresponding to the set U. Based on the RR intervals in the set U, the adjacent RR interval differences of the 30-second ECG signal Y[n] are calculated to obtain the set V. The adjacent RR interval difference is one of the important characteristic parameters in the sinus heart rate, reflecting the orderly antagonistic control ability of the sympathetic and parasympathetic nerves. The set V can be calculated in a manner basically the same as formula 5. The set V obtained based on the above set U is as follows:

[0172] V={0,-4,-4,-2,2,5,2,-1,-5,-2,-1,3,5,0,1,-3,-2,-1,4,4,0,-6,-3,1,2,3,1,-3,-4,-3,1,5,2,1,-4,-3,-2,3,3,4,-1,0,-6,0,3,4,0};

[0173] from Figure 6 As can be seen from the RR interval timing diagram, the RR interval fluctuates regularly within a small range, so the RR interval difference also oscillates around 0. The characteristics of set V reflect the characteristics of the regular sinus rhythm. The duration of the previous heartbeat is correlated with the duration of the next heartbeat, and the fluctuations are relatively regular. On the contrary, the first "30-second ECG signal during the atrial fibrillation attack" is shown in Figure 7 As shown in the figure, the peaks of adjacent R waves disappear regularly, and the RR interval-related features are extracted as follows:

[0174] RR interval set U':

[0175] U'={120,103,123,139,133,129,88,100,166,171,191,124,96,143,184,123,134,154,138,187,121,143,176,121,151,145,118 ,136,138,115,148,141,101,142,160,150,117,139,146,116,106,167,157,150,135,120,141,137,140,119,134,126,196,128};

[0176] RR interval difference set V′:

[0177] V′={-17,20,16,-6,-4,-41,12,66,5,20,-67,-28,47,41,-61,11,20,-16,49,-66,22,33,-55,30,-6,-27, 18,2,-23,33,-7,-40,41,18,-10,-33,22,7,-30,-10,61,-10,-7,-15,-15,21,-4,3,-21,15,-8,70,-68};

[0178] Reference Figure 8 The scatter plot of RR intervals corresponding to the set U' shown, and Fig. 9 The RR interval sequence diagram corresponding to the set U' shown in the figure shows that the RR interval shows a relatively irregular trend with increasing numerical changes in both the scatter plot and the time series diagram. This also reflects that the sets U' and V' are two feature sets that are highly correlated with sinus rhythm. The disorder of the elements in the sets is increasing, and the degree of increase in disorder can be determined by the "first Shannon entropy value and the second Shannon entropy value" respectively. Based on the disorder changes reflected by the first Shannon entropy value and the second Shannon entropy value, the period of atrial fibrillation can be automatically identified through a reasonable threshold.

[0179] According to the calculation formula of Shannon entropy, the first Shannon entropy value is calculated by the set U of RR intervals; the second Shannon entropy value is calculated by the set V of RR interval differences. When the first Shannon entropy value is greater than the first threshold α, and the second Shannon entropy value is greater than the second threshold β, it can be determined that the ECG signal Y[n] in the time window is an interval containing an atrial fibrillation signal. The calculation formula of the Shannon entropy value is as follows:

[0180] H(X)=-∑ x P(x)log2[P(x)](11)

[0181] Among them, P(x) represents the probability that the x-th BIN interval has an element distribution, and H(X) is the calculated Shannon entropy value.

[0182] Specifically, Fig.10 As shown in the figure, for a 30-second normal ECG signal Y[n], the R wave interval set U corresponding to Y[n] is assigned to the BINS interval corresponding to the first Shannon entropy value. All RR intervals in the set U fall within the BIN4 interval, and the probability of occurrence is 1. Then the first Shannon entropy value is calculated: H(X) RR = 0. Similarly, Fig.11 As shown, the R wave interval difference set V corresponding to the ECG signal Y[n] is assigned to the BINS interval corresponding to the second Shannon entropy value. According to the Shannon entropy calculation method shown in formula 11, the second Shannon entropy value can be calculated: H(X) RRd =0.7485.

[0183] During the period of atrial fibrillation, the internal disorder of the RR interval set U' increases significantly, such as Fig.12 As shown, all RR intervals in the set U' fall into the three intervals of BIN3, BIN4, and BIN5 respectively. According to the Shannon entropy calculation formula, the probability of BIN3, BIN4, and BIN5 occurring is calculated respectively, and the first Shannon entropy value is calculated: H(X) RR =1.3516. Similarly, the RR interval difference set V' is sequentially assigned to the corresponding BIN intervals, such as Fig.13 As shown in the figure, when atrial fibrillation occurs, the correlation between two adjacent RRs decreases, resulting in a larger RR interval difference, and the two adjacent RR intervals are most likely unequal, showing a trend of random distribution. The characteristics of the BINS interval are that BIN1 and BIN7 contain the most elements; BIN2 and BIN6 are second; BIN3 and BIN5 are less, and BIN4 is the least, which shows the discrete characteristics of the ECG signal and the increase in the disorder of the ECG signal. Based on this, according to the Shannon entropy calculation formula, the second Shannon entropy value is calculated: H(X) RRd =1.7382, which is much larger than the value corresponding to the normal ECG signal.

[0184] Furthermore, statistics show that the first Shannon entropy values ​​of most normal ECG signals are between 0-0.2, while the first Shannon entropy values ​​of most atrial fibrillation ECG signals are between 1.2-1.6. Therefore, the first threshold α for dividing the two ECG signal subgroups can be between 0.8-1.0. However, there is still a small number of normal ECG signals with a first Shannon entropy value higher than 0.8, which leads to the existence of false positive judgments. Similarly, statistics show that the second Shannon entropy values ​​of most normal ECG signals are between 0.5-1.5, while the second Shannon entropy values ​​of most atrial fibrillation ECG signals are between 1.5-2.5. Therefore, the second threshold β for dividing the two ECG signal subgroups can be 1.5. It can be seen that introducing the second Shannon entropy on the basis of the first Shannon entropy to jointly judge the atrial fibrillation signal can effectively improve the accuracy of atrial fibrillation signal recognition and reduce false positive judgments.

[0185] The first threshold α and the second threshold β can be determined based on experience in combination with the heart rate and sampling frequency corresponding to the electrocardiogram signal. The first threshold α and the second threshold β are not specifically limited here either.

[0186] Furthermore, in the open source standard limb lead ECG data No. 4908 in the MIT-AF database, there are 684 30-second ECG signal segments that can be split, including 614 normal ECG signal segments and 70 atrial fibrillation signal segments. When only the first Shannon entropy value is used for atrial fibrillation identification, the first threshold α>0.8 is set for atrial fibrillation judgment, and the atrial fibrillation screening results are obtained. The results show that in the ROC curve of atrial fibrillation identification, the sensitivity is 97.1%, the specificity is 91.0%, and the area under the ROC curve (AUC) is 0.97. This result shows that the chaos indicator of the R wave interval set U: that is, the first Shannon entropy value, can screen and identify atrial fibrillation characteristics to a certain extent.

[0187] When the first Shannon entropy value and the second Shannon entropy value are used to identify atrial fibrillation, the first threshold α is set to be greater than 0.7, and the second threshold β is set to be greater than 1.4 to judge atrial fibrillation and obtain the atrial fibrillation screening results. The results show that in the ROC curve of atrial fibrillation identification, the sensitivity is 98.6%, the specificity is 98.9%, and the area under the ROC curve (AUC) is 0.998.

[0188] The above analysis results show that the dual Shannon entropy atrial fibrillation recognition based on adaptive partitioning has a very high accuracy in judging whether atrial fibrillation occurs in an ECG signal segment of a certain length. The atrial fibrillation recognition device provided by the present invention uses adaptive parameters for Shannon entropy interval division. Compared with machine learning or deep learning, wavelet analysis, etc., it has the characteristics of low cost and low power consumption. At the same time, it has high-precision atrial fibrillation recognition capabilities and is suitable for long-term continuous monitoring in wearable devices.

[0189] Furthermore, the atrial fibrillation recognition device provided by the present invention is based on the atrial fibrillation signal recognition method of adaptive partitioning. It can identify the RR interval of a segment of ECG signal and the disorder within the set of adjacent RR interval differences through the judgment threshold of double Shannon entropy, and then can accurately mark the atrial fibrillation ECG signal segment. It has extremely low false positive and missed detection rates, and also has the characteristics of low computing power and low power consumption. It has broad application prospects in clinical and home health monitoring, and also has important guiding significance for long-term home monitoring of cardiovascular risks.

[0190] Preferably, an embodiment of the present invention further provides an atrial fibrillation recognition method, which is applied to the atrial fibrillation recognition device described in the above embodiments, and the method comprises:

[0191] Step 100, obtaining an electrocardiogram signal to be processed, and extracting the R wave positions of the electrocardiogram signal one by one;

[0192] Step 200, determining a set of R wave intervals and a set of R wave interval differences corresponding to the electrocardiogram signal according to the R wave position;

[0193] Step 300, calculating a first Shannon entropy value of the electrocardiogram signal based on the R-wave interval set, and calculating a second Shannon entropy value of the electrocardiogram signal based on the R-wave interval difference set;

[0194] Step 400: Determine whether an atrial fibrillation signal exists in the electrocardiogram signal according to the first Shannon entropy value and the second Shannon entropy value.

[0195] First, an electrocardiogram signal collected by an electrocardiogram signal collection device is obtained, and the R wave position of the electrocardiogram signal is extracted beat by beat, and the R wave interval set and the R wave interval difference set of the electrocardiogram signal are determined based on the extracted R wave position. Specifically, the R wave position of the electrocardiogram signal is extracted beat by beat, and the RR interval is determined based on adjacent R wave positions to obtain the corresponding R wave interval set U = {RR1, RR2, RR3 ...}, and adjacent RR intervals are subtracted to obtain the set V = {RRd1, RRd2, RRd3, ...} of RR interval differences.

[0196] Based on the R wave interval set U, the first Shannon entropy value of the ECG signal is calculated, and based on the R wave interval difference set V, the second Shannon entropy value of the ECG signal is calculated, wherein the first Shannon entropy value is used to characterize the degree of variation of the R wave of atrial fibrillation in the ECG signal in the time series, and the second Shannon entropy value is used to characterize the spontaneous and highly uncorrelated R wave of atrial fibrillation in the ECG signal with the adjacent R wave in the time series, that is, the degree of variation of the adjacent RR intervals. It can be seen that entropy is a quantity used to describe the disorder of a sequence signal, and the disorder description of Shannon entropy does not have time characteristics, which makes the characteristic of the decrease in the correlation between adjacent RR intervals during the atrial fibrillation paroxysm period not fully utilized, thereby losing the ability to further improve the accuracy and accuracy of atrial fibrillation recognition. Therefore, according to the first Shannon entropy value and the second Shannon entropy value, it is determined whether there is an atrial fibrillation signal in the ECG signal, thereby identifying atrial fibrillation, which can accurately and effectively distinguish the paroxysmal atrial fibrillation interval and improve the accuracy and effectiveness of atrial fibrillation recognition.

[0197] Furthermore, the ECG signal can be acquired based on a fixed time window, for example, the ECG signal acquired by the ECG signal acquisition device is extracted using a fixed time window, the R wave position of the acquired ECG signal is determined, and then the R wave interval set and the R wave interval difference set corresponding to the ECG signal are determined. Alternatively, the ECG signal acquired by the ECG signal acquisition device for a certain time period is acquired, and the acquired ECG signal is intercepted based on a fixed time window, and the R wave position of each intercepted signal segment is determined, and then the R wave interval set and the R wave interval difference set of each signal segment are determined.

[0198] In this embodiment, the ECG signal collected by the ECG signal acquisition device is obtained, and the R wave position of the ECG signal is extracted beat by beat; the R wave interval set and the R wave interval difference set corresponding to the ECG signal are determined according to the extracted R wave position; the first Shannon entropy value of the ECG signal is calculated based on the R wave interval set, and the second Shannon entropy value of the ECG signal is calculated based on the R wave interval difference set; thus, according to the calculated first Shannon entropy value and second Shannon entropy value, it is determined whether there is an atrial fibrillation signal in the ECG signal. The double Shannon entropy can fully utilize the increased variation of the R wave of atrial fibrillation in the time series, as well as the spontaneous and highly uncorrelated characteristics with the adjacent R waves, so that the paroxysmal atrial fibrillation interval can be accurately and effectively identified, and the accuracy of atrial fibrillation identification can be improved.

[0199] Preferably, the present invention further provides a wearable device, which includes the atrial fibrillation recognition device described in the above embodiments. The wearable device provided by the present invention and the atrial fibrillation recognition device described above can be referenced to each other, and will not be repeated here.

[0200] Fig.14 The following is an example of a physical structure diagram of a wearable device, such as Fig.14As shown, the wearable device may include: a processor 1410, a communications interface 1420, a memory 1430, and a communication bus 1440, wherein the processor 1410, the communications interface 1420, and the memory 1430 communicate with each other through the communication bus 1440. The processor 1410 may call the logic instructions in the memory 1430 to perform the following steps:

[0201] Acquire the electrocardiogram signal to be processed, and extract the R wave position of the electrocardiogram signal one by one;

[0202] Determine the R wave interval set and the R wave interval difference set corresponding to the electrocardiogram signal according to the R wave position;

[0203] Calculate a first Shannon entropy value of the electrocardiogram based on the R-wave interval set, and calculate a second Shannon entropy value of the electrocardiogram based on the R-wave interval difference set;

[0204] It is determined whether an atrial fibrillation signal exists in the electrocardiogram signal according to the first Shannon entropy value and the second Shannon entropy value.

[0205] In addition, the logic instructions in the above-mentioned memory 1430 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when it is sold or used as an independent product. Based on such an understanding, the technical solution of the present invention can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, etc. Various media that can store program codes.

[0206] On the other hand, the present invention further provides a computer program product, the computer program product comprising a computer program, the computer program may be stored on a non-transitory computer-readable storage medium, and when the computer program is executed by a processor, the following steps may be implemented:

[0207] Acquire the electrocardiogram signal to be processed, and extract the R wave position of the electrocardiogram signal one by one;

[0208] Determine the R wave interval set and the R wave interval difference set corresponding to the electrocardiogram signal according to the R wave position;

[0209] Calculate a first Shannon entropy value of the electrocardiogram based on the R-wave interval set, and calculate a second Shannon entropy value of the electrocardiogram based on the R-wave interval difference set;

[0210] It is determined whether an atrial fibrillation signal exists in the electrocardiogram signal according to the first Shannon entropy value and the second Shannon entropy value.

[0211] In another aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which implements the following steps when executed by a processor:

[0212] Acquire the electrocardiogram signal to be processed, and extract the R wave position of the electrocardiogram signal one by one;

[0213] Determine the R wave interval set and the R wave interval difference set corresponding to the electrocardiogram signal according to the R wave position;

[0214] Calculate a first Shannon entropy value of the electrocardiogram based on the R-wave interval set, and calculate a second Shannon entropy value of the electrocardiogram based on the R-wave interval difference set;

[0215] It is determined whether an atrial fibrillation signal exists in the electrocardiogram signal according to the first Shannon entropy value and the second Shannon entropy value.

[0216] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.

[0217] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.

[0218] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. An atrial fibrillation identification device, characterized in that: include: A memory and a processor, wherein the memory is used to store a computer program, and the processor is used to execute the computer program to implement the following steps: Acquire an electrocardiogram signal to be processed, and extract the R wave position of the electrocardiogram signal; Determine the R wave interval set and the R wave interval difference set corresponding to the electrocardiogram signal according to the R wave position; Calculate a first Shannon entropy value of the electrocardiogram based on the R-wave interval set, and calculate a second Shannon entropy value of the electrocardiogram based on the R-wave interval difference set; It is determined whether an atrial fibrillation signal exists in the electrocardiogram signal according to the first Shannon entropy value and the second Shannon entropy value.

2. The atrial fibrillation identification device according to claim 1, characterized in that: The calculating the first Shannon entropy value of the electrocardiogram signal based on the R wave interval set comprises: Acquire a signal segment within a preset time length before the electrocardiogram signal; Extracting first characteristic data of the signal segment based on the target interval corresponding to the signal segment in the R wave interval set; the first characteristic data includes an average R wave interval, a minimum R wave interval, and a maximum R wave interval; Determine a first Shannon entropy interval according to the first characteristic data, and determine the number of first intervals according to the number of intervals in the set of R wave intervals; Dividing the first Shannon entropy interval into intervals of equal intervals according to the number of the first intervals, and dividing the first Shannon entropy interval into a plurality of first Shannon entropy sub-intervals; A first Shannon entropy value of the electrocardiogram signal is calculated based on the multiple first Shannon entropy sub-intervals.

3. The atrial fibrillation identification device according to claim 2, characterized in that: The calculating the first Shannon entropy value of the electrocardiogram signal based on the multiple first Shannon entropy sub-intervals includes: Determining interval distribution probabilities of the plurality of first Shannon entropy subintervals based on the values ​​of each interval in the set of R wave intervals; The first Shannon entropy value of the electrocardiogram signal is calculated according to the interval distribution probabilities of the multiple first Shannon entropy subintervals.

4. The atrial fibrillation identification device according to claim 2, characterized in that: The determining a first Shannon entropy interval according to the first characteristic data includes: Obtaining a preset first weight function and a second weight function; Based on the first feature data, using the first weight function to calculate a first interval upper limit; Based on the first feature data, using the second weight function to calculate a first interval lower limit; The first Shannon entropy interval is determined according to the first interval upper limit and the first interval lower limit.

5. The atrial fibrillation identification device according to claim 2, characterized in that: The calculating the second Shannon entropy value of the electrocardiogram signal based on the R-wave interval difference set includes: Extracting second characteristic data of the signal segment based on the target interval difference corresponding to the signal segment in the R wave interval difference set; the second characteristic data includes a minimum R wave interval difference and a maximum R wave interval difference; Determine a second Shannon entropy interval according to the second characteristic data, and determine the number of second intervals according to the number of interval differences in the R-wave interval difference set; Dividing the second Shannon entropy interval into intervals of equal intervals according to the number of the second intervals, and dividing the second Shannon entropy interval into a plurality of second Shannon entropy sub-intervals; A second Shannon entropy value of the electrocardiogram signal is calculated based on the multiple second Shannon entropy sub-intervals.

6. The atrial fibrillation identification device according to claim 5, characterized in that: The calculating the second Shannon entropy value of the electrocardiogram signal based on the plurality of second Shannon entropy subintervals comprises: Determining the interval difference distribution probability of the plurality of second Shannon entropy subintervals based on the value of each interval difference in the R wave interval difference set; The second Shannon entropy value of the electrocardiogram signal is calculated according to the interval difference distribution probability of the multiple second Shannon entropy subintervals.

7. The atrial fibrillation identification device according to claim 5, characterized in that: The determining a second Shannon entropy interval according to the second characteristic data includes: Obtaining a preset third weight function and a fourth weight function; Based on the second feature data, calculating the upper limit of the second interval using the third weight function; Based on the second feature data, calculating a second interval lower limit using the fourth weight function; A second Shannon entropy interval is determined according to the second interval upper limit and the second interval lower limit.

8. The atrial fibrillation identification device according to claim 1, characterized in that: The step of determining the R wave interval set and the R wave interval difference set corresponding to the electrocardiogram signal according to the R wave position includes: Calculate the interwave period between two adjacent R waves in the electrocardiogram signal according to the R wave position; Determine a set of R wave intervals corresponding to the electrocardiogram signal based on the wave intervals; The R wave interval difference set corresponding to the electrocardiogram signal is determined according to the R wave interval set.

9. The atrial fibrillation identification device according to claim 1, characterized in that: The step of determining the R wave interval difference set corresponding to the electrocardiogram signal according to the R wave interval set includes: Calculating the interwave interval difference between two adjacent interwave intervals in the R wave interval set; The R wave interval difference set corresponding to the electrocardiogram signal is determined according to the interval difference value.

10. The atrial fibrillation identification device according to claim 1, characterized in that: The determining, according to the first Shannon entropy value and the second Shannon entropy value, whether there is an atrial fibrillation signal in the electrocardiogram signal comprises: Acquire the sampling frequency of the electrocardiogram signal, and calculate the heart rate characteristics corresponding to the electrocardiogram signal based on the sampling frequency and the R wave interval set; the heart rate characteristics include the average heart rate; Determine a first threshold and a second threshold corresponding to the electrocardiogram signal according to the heart rate characteristic; The first Shannon entropy value is compared with the first threshold value, and the second Shannon entropy value is compared with the second threshold value, and whether an atrial fibrillation signal exists in the electrocardiogram signal is determined according to the comparison result.

11. The atrial fibrillation identification device according to claim 10, characterized in that: Determining whether an atrial fibrillation signal exists in the electrocardiogram signal according to the comparison result includes: If, according to the comparison result, the first Shannon entropy value is greater than the first threshold value, and the second Shannon entropy value is greater than the second threshold value, it is determined that an atrial fibrillation signal exists in the electrocardiogram signal; If, according to the comparison result, the first Shannon entropy value is less than or equal to the first threshold, or the second Shannon entropy value is less than or equal to the second threshold, it is determined that there is no atrial fibrillation signal in the electrocardiogram signal.

12. The atrial fibrillation identification device according to claim 1, characterized in that: The atrial fibrillation identification device further includes: an electrocardiogram signal acquisition device, and the electrocardiogram signal acquisition device is used to acquire the electrocardiogram signal.

13. A wearable device, characterized in that: Comprising the atrial fibrillation identification device as described in any one of claims 1 to 12.

14. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps according to any one of claims 1 to 12 are implemented.