An atrial fibrillation and ventricular fibrillation identification method, device, equipment and storage medium
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-23
- Publication Date
- 2026-08-11
AI Technical Summary
可见,能够有效区分室颤和房颤是一个重要的研究方向,但目前针对房颤和室颤,暂无准确且高效的识别方法
[0035] The method for identifying atrial fibrillation and ventricular fibrillation provided in this application first acquires a target waveform. Based on the target waveform, a first average spacing, a second average spacing, and a target average slope are calculated. The first average spacing is the average distance between all adjacent peaks, the second average spacing is the average distance between all adjacent troughs, and the target average slope is the average of the sum of the slopes of all peaks and troughs. Then, based on the first average spacing, the second average spacing, a preset threshold, and the target ratio, the type of the target waveform can be quickly and accurately determined. The type of the target waveform includes atrial fibrillation waveforms and ventricular fibrillation waveforms.
Smart Images

Figure CN116250845B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of data processing, and in particular to a method, apparatus, device, and storage medium for identifying atrial fibrillation and ventricular fibrillation. Background Technology
[0002] Ventricular fibrillation (VFiB) is a highly fatal heart disease, widely recognized as a very serious malignant arrhythmia. During VFiB, the overall contractile ability of the ventricles is lost, replaced by rapid and uncoordinated fibrillation of various abnormal excitation points within the ventricles, leading to pumping failure. When VFiB occurs, the patient is unconscious, often exhibiting symptoms such as collapsing and convulsions, loss of pulse, pallor, and zero blood pressure, placing them in extreme danger and at risk of ventricular arrest at any time. Immediate asynchronous defibrillation is crucial. Atrial fibrillation (AF) is a serious atrial disorder. Accurately identifying AF when ventricular fibrillation is essential to prevent false positives and serious consequences. Therefore, effectively distinguishing between VFiB and AF is an important research direction, but currently, there is no accurate and efficient method for identifying them. Summary of the Invention
[0003] In view of this, one of the objectives of this application is to provide a method, apparatus, computer device and computer-readable storage medium for identifying atrial fibrillation and ventricular fibrillation, which can at least solve some of the above-mentioned technical problems.
[0004] In a first aspect, embodiments of this application provide a method for identifying atrial fibrillation and ventricular fibrillation, the method comprising:
[0005] Obtain the target waveform;
[0006] Based on the target waveform, a first average spacing, a second average spacing, and a target average slope are calculated, wherein the first average spacing is the average distance between all adjacent peaks, the second average spacing is the average distance between all adjacent troughs, and the target average slope is the average of the sum of the slopes of all peaks and the slopes of the troughs.
[0007] The type of the target waveform is determined based on the first average spacing, the second average spacing, the preset threshold, and the target ratio. The type of the target waveform includes atrial fibrillation waveform and ventricular fibrillation waveform. The target ratio is the ratio of the maximum slope among all peaks and all troughs to the target average slope.
[0008] In one possible implementation, the preset threshold includes a peak threshold, a trough threshold, and a ratio threshold. The step of determining the type of the target waveform based on the first average spacing, the second average spacing, the preset threshold, and the target ratio includes:
[0009] If the first average spacing is greater than or equal to the peak threshold, the second average spacing is greater than or equal to the trough threshold, and the target ratio is greater than or equal to the ratio threshold, the target waveform is determined to be an atrial fibrillation waveform.
[0010] If the first average spacing is greater than or equal to the peak threshold, the second average spacing is greater than or equal to the trough threshold, and the target ratio is less than the ratio threshold, the target waveform is determined to be a ventricular fibrillation waveform.
[0011] If the first average spacing is less than the peak threshold, the second average spacing is less than the trough threshold, and the target ratio is less than the ratio threshold, the target waveform is determined to be a ventricular fibrillation waveform.
[0012] In one possible implementation, the step of determining the type of the target waveform based on the first average spacing, the second average spacing, the preset threshold, and the target ratio further includes:
[0013] When the first average spacing is less than the peak threshold, the second average spacing is less than the trough threshold, and the target ratio is greater than or equal to the ratio threshold, heart rate data is acquired and the type of the target waveform is determined based on the heart rate data.
[0014] In one possible implementation, the step of determining the type of the target waveform based on the heart rate data includes:
[0015] If the heart rate data is less than a preset heart rate threshold, the target waveform is determined to be an atrial fibrillation waveform.
[0016] If the heart rate data is greater than or equal to the preset heart rate threshold, the target waveform is determined to be a ventricular fibrillation waveform.
[0017] In one possible implementation, the step of acquiring the target waveform includes:
[0018] Acquire electrocardiogram (ECG) signals within a preset time period;
[0019] Calculate the first mean and the second mean of the electrocardiogram signal, wherein the first mean is the mean of the sum of the upper amplitude limits per second within the preset duration, and the second mean is the mean of the sum of the lower amplitude limits per second within the preset duration.
[0020] ECG signals greater than the first mean were identified as peaks, and ECG signals less than the second mean were identified as troughs.
[0021] The target waveform is obtained based on all the peaks and troughs.
[0022] In one possible implementation, after the step of acquiring the electrocardiogram signal within a preset duration, the method further includes:
[0023] The electrocardiogram (ECG) signal is preprocessed to filter out abnormal ECG signals. The preprocessing includes at least one of Butterworth low-pass filter denoising, low-pass filter denoising, and moving average filter denoising.
[0024] The steps of calculating the first mean and the second mean of the electrocardiogram signal include:
[0025] Calculate the first and second mean values of the preprocessed electrocardiogram signal.
[0026] In one possible implementation, the step of calculating the spacing between adjacent peaks, the spacing between adjacent troughs, the average spacing between all adjacent peaks, and the average spacing between all adjacent troughs based on the waveform diagram includes:
[0027] The spacing between adjacent peaks is calculated according to the first preset spacing, and the spacing between adjacent troughs is calculated according to the second preset spacing.
[0028] The average distance between all adjacent peaks is calculated based on the spacing between adjacent peaks, and the average distance between all adjacent troughs is calculated based on the spacing between adjacent troughs.
[0029] Secondly, embodiments of this application provide a device for identifying atrial fibrillation and ventricular fibrillation, the device comprising:
[0030] The acquisition module is used to acquire the target waveform.
[0031] The first calculation module is used to calculate a first average spacing, a second average spacing, and a target average slope based on the target waveform diagram, wherein the first average spacing is the average of the distances between all adjacent peaks, the second average spacing is the average of the distances between all adjacent troughs, and the target average slope is the average of the sum of the slopes of all peaks and the slopes of the troughs.
[0032] The second calculation module is used to determine the type of the target waveform based on the first average spacing, the second average spacing, a preset threshold, and a target ratio. The type of the target waveform includes atrial fibrillation waveforms and ventricular fibrillation waveforms. The target ratio is the ratio of the maximum slope among all peaks and all troughs to the target average slope.
[0033] Thirdly, embodiments of this application provide a computer device, the computer device including a memory and a processor, the memory storing a computer program, and the computer program, when executed by the processor, implementing the atrial fibrillation and ventricular fibrillation identification method provided in the first aspect.
[0034] Fourthly, embodiments of this application provide a computer-readable storage medium storing a computer program, which, when executed by one or more processors, implements the atrial fibrillation and ventricular fibrillation identification method provided in the first aspect.
[0035] The method for identifying atrial fibrillation and ventricular fibrillation provided in this application first acquires a target waveform. Based on the target waveform, a first average spacing, a second average spacing, and a target average slope are calculated. The first average spacing is the average distance between all adjacent peaks, the second average spacing is the average distance between all adjacent troughs, and the target average slope is the average of the sum of the slopes of all peaks and troughs. Then, based on the first average spacing, the second average spacing, a preset threshold, and the target ratio, the type of the target waveform can be quickly and accurately determined. The type of the target waveform includes atrial fibrillation waveforms and ventricular fibrillation waveforms. Attached Figure Description
[0036] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. It should be understood that the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0037] Figure 1 A flowchart illustrating a method for identifying atrial fibrillation and ventricular fibrillation provided in this application embodiment;
[0038] Figure 2 A schematic diagram of the functional modules of a device for identifying atrial fibrillation and ventricular fibrillation provided in this application;
[0039] Figure 3 This is a diagram illustrating the internal structure of a computer device as provided in an embodiment of this application.
[0040] icon:
[0041] The device for identifying atrial fibrillation and ventricular fibrillation includes a device 200, an acquisition module 210, a first calculation module 220, and a second calculation module 230. Detailed Implementation
[0042] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0043] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. The components of the embodiments of this application described and shown in the accompanying drawings can generally be arranged and designed in various different configurations.
[0044] Therefore, the following detailed description of the embodiments of this application provided in the accompanying drawings is not intended to limit the scope of the claimed application, but merely to illustrate selected embodiments of the application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without inventive effort are within the scope of protection of this application.
[0045] It should be noted that similar labels and letters in the following figures indicate similar items. Therefore, once an item is defined in one figure, it does not need to be further defined and explained in subsequent figures.
[0046] In summary of the various embodiments of this application, the expression "or" or "at least one of A and / or B" includes any combination or all combinations of the words listed simultaneously. For example, the expression "A or B" or "at least one of A and / or B" may include A, may include B, or may include both A and B.
[0047] In the description of this application, it should be noted that if terms such as "upper," "lower," "inner," or "outer" are used to indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings, or the orientation or positional relationship in which the product of the invention is usually placed during use, they are only for the convenience of describing this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation, and therefore should not be construed as a limitation of this application.
[0048] Furthermore, the terms "first" and "second" are used only to distinguish descriptions and should not be interpreted as indicating or implying relative importance.
[0049] It should be noted that, where there is no conflict, the features in the embodiments of this application can be combined with each other.
[0050] Transformers can be classified according to their uses as follows: distribution transformers, power transformers, fully sealed transformers, combined transformers, dry-type transformers, oil-immersed transformers, single-phase transformers, electric furnace transformers, rectifier transformers, reactors, anti-interference transformers, lightning protection transformers, box-type transformer test transformers, angle transformers, high-current transformers, excitation transformers, etc.
[0051] Taking power transformers as an example, investigations show that approximately 55% of power transformer faults in reality are caused by inter-turn short circuits. Currently, simulating power transformers using numerical transient simulation methods to reproduce the transient process of a single-turn short circuit faces challenges in terms of simulation accuracy and computational efficiency. Specifically, power transformers have multiple curved surface structures such as windings, cores, and yokes. Conventional algorithms divide the simulation computation region into rectangular orthogonal meshes. However, when dividing curved surface structures into orthogonal meshes, a stepped approximation technique is often used, which struggles to balance computational accuracy and efficiency.
[0052] Please see Figure 1 , Figure 1 This is a flowchart of a method for identifying atrial fibrillation and ventricular fibrillation provided in an embodiment of this application. The steps of the method will be described in detail below.
[0053] S110, obtain the target waveform.
[0054] In this embodiment, the target waveform can be obtained by an electrocardiogram monitor. By analyzing the target waveform, the type of the target waveform can be quickly determined, which helps to accurately and efficiently distinguish between atrial fibrillation and ventricular fibrillation.
[0055] In one possible implementation, S110 includes:
[0056] Acquire electrocardiogram (ECG) signals within a preset time period;
[0057] Calculate the first mean and the second mean of the electrocardiogram signal, wherein the first mean is the mean of the sum of the upper limit amplitudes per second within a preset duration, and the second mean is the mean of the sum of the lower limit amplitudes per second within a preset duration.
[0058] ECG signals greater than the first mean were identified as peaks, and ECG signals less than the second mean were identified as troughs.
[0059] The target waveform is obtained based on all the peaks and troughs.
[0060] In this embodiment, the generation of the target waveform requires a continuous electrocardiogram (ECG) signal. The continuity of the ECG signal can ensure the validity of the acquired target waveform. Specifically, the preset duration can generally be set to 2 minutes, 5 minutes, or 10 minutes, which can be selected according to the specific situation, as long as the time is continuous and uninterrupted.
[0061] The calculation methods for the first and second averages can be changed depending on the preset duration. Taking the calculation of the first average as an example, if the preset duration is 2 minutes, the executor of the calculation, such as a computer device, will determine that the duration is a low duration. In this case, the computer device will calculate the average of the sum of the upper limit of the amplitude per second within 2 minutes to obtain the first average.
[0062] If the preset duration is 10 minutes, the computer device will determine that this duration is a high duration. Within the corresponding 10 minutes, the computer device can choose to calculate the average of the sum of the amplitude upper limits at 5-second intervals to obtain the first average. For example, it can calculate the average of the sum of the amplitude upper limits at the 5th second, the 10th second, and so on, up to the 600th second. The calculation time interval selected by the computer device can be preset or randomly selected. It should be noted that the interval length randomly selected by the computer device varies depending on the preset duration. Generally, the longer the preset duration, the longer the corresponding interval length, and vice versa. When detecting ECG signals for a long time, the computer device can quickly identify multiple peaks and troughs while ensuring calculation accuracy, and can efficiently generate the target waveform, which helps to quickly determine the type of the target waveform.
[0063] In some embodiments, the first mean and the second mean in the above embodiments can also be assigned values. Taking the determination of the peak based on the first mean as an example, the first mean can be multiplied by a mean coefficient. The ECG signals with values greater than the first mean multiplied by the mean coefficient are taken as peaks. The mean coefficient ranges from 0 to 1. For example, if the first mean is Average, then ECG signals with values greater than 0.75 * Average can be regarded as peaks.
[0064] In some embodiments, after the step of acquiring the electrocardiogram signal within a preset time period, the method further includes:
[0065] The electrocardiogram (ECG) signal is preprocessed to filter out abnormal ECG signals. The preprocessing includes at least one of Butterworth low-pass filter denoising, low-pass filter denoising, and moving average filter denoising.
[0066] The steps for calculating the first and second means of an electrocardiogram (ECG) signal include:
[0067] Calculate the first and second mean values of the preprocessed electrocardiogram signal.
[0068] Specifically, the preprocessing of electrocardiogram (ECG) signals can filter out abnormal ECG signals such as null values, amplitudes exceeding the maximum preset amplitude, and amplitudes below the minimum preset amplitude.
[0069] S120, calculate the first average spacing, the second average spacing and the target average slope based on the target waveform diagram, wherein the first average spacing is the average of the distances between all adjacent peaks, the second average spacing is the average of the distances between all adjacent troughs, and the target average slope is the average of the sum of the slopes of all peaks and troughs.
[0070] In this embodiment, the first average interval, the second average interval, and the target average slope can all reflect the rate of change of the electrocardiogram signal in different ways. Taking adjacent peaks A, B, and C as an example, the intervals between A and B and between B and C need to be calculated, and then the average of these two intervals is calculated to obtain the first average interval between adjacent peaks A, B, and C. The calculation method for the second average interval corresponding to adjacent troughs is the same as that for the first average interval. It should be noted that the target average slope is the average of the sum of the slopes of all peaks and all troughs.
[0071] S130, determine the type of target waveform based on the first average interval, the second average interval, the preset threshold and the target ratio, wherein the type of target waveform includes atrial fibrillation waveform and ventricular fibrillation waveform, and the target ratio is the ratio of the maximum slope among all peaks and all troughs to the target average slope.
[0072] Specifically, the preset thresholds include peak threshold, trough threshold and ratio threshold. The peak threshold and trough threshold do not identify the amplitude of the peak or trough. Taking the peak threshold as an example, the peak threshold is used to compare the size of the first average spacing.
[0073] In one possible implementation, the step of determining the type of the target waveform based on the first average spacing, the second average spacing, the preset threshold, and the target ratio includes:
[0074] If the first average interval is greater than or equal to the peak threshold, the second average interval is greater than or equal to the trough threshold, and the target ratio is greater than or equal to the ratio threshold, the target waveform is determined to be an atrial fibrillation waveform.
[0075] If the first average interval is greater than or equal to the peak threshold, the second average interval is greater than or equal to the trough threshold, and the target ratio is less than the ratio threshold, the target waveform is determined to be a ventricular fibrillation waveform.
[0076] If the first average interval is less than the peak threshold, the second average interval is less than the trough threshold, and the target ratio is less than the ratio threshold, the target waveform is determined to be a ventricular fibrillation waveform.
[0077] In this embodiment, the type of the target waveform can be quickly and accurately determined by comparing the values of the first average spacing, the second average spacing, and the target ratio.
[0078] As can be seen from the above analysis, the atrial fibrillation and ventricular fibrillation identification method provided in this application first obtains a target waveform, and calculates a first average spacing, a second average spacing, and a target average slope based on the target waveform. The first average spacing is the average of the distances between all adjacent peaks, the second average spacing is the average of the distances between all adjacent troughs, and the target average slope is the average of the sum of the slopes of all peaks and troughs. Then, based on the first average spacing, the second average spacing, a preset threshold, and the target ratio, the type of the target waveform can be quickly and accurately determined.
[0079] In one possible implementation, the step of determining the type of the target waveform based on the first average spacing, the second average spacing, the preset threshold, and the target ratio further includes:
[0080] If the first average interval is less than the peak threshold, the second average interval is less than the trough threshold, and the target ratio is greater than or equal to the ratio threshold, heart rate data is acquired and the type of target waveform is determined based on the heart rate data.
[0081] Specifically, when the values of the first average interval and the second average interval are both less than the corresponding threshold, the current heart rate data can be obtained to determine the type of the target waveform.
[0082] Optionally, the step of determining the type of the target waveform based on the heart rate data includes:
[0083] If the heart rate data is less than the preset heart rate threshold, the target waveform is determined to be an atrial fibrillation waveform.
[0084] If the heart rate data is greater than or equal to the preset heart rate threshold, the target waveform is determined to be a ventricular fibrillation waveform.
[0085] The preset heart rate threshold can be selected according to specific circumstances.
[0086] Considering that the diagnosis of atrial fibrillation and ventricular fibrillation requires not only accuracy but also speed, in one possible implementation method,
[0087] The step of calculating the spacing between adjacent peaks, the spacing between adjacent troughs, the average spacing between all adjacent peaks, and the average spacing between all adjacent troughs based on the waveform diagram includes:
[0088] The spacing between adjacent peaks is calculated according to the first preset spacing, and the spacing between adjacent troughs is calculated according to the second preset spacing.
[0089] The average distance between all adjacent peaks is calculated based on the spacing between adjacent peaks, and the average distance between all adjacent troughs is calculated based on the spacing between adjacent troughs.
[0090] In this embodiment, the first preset spacing and the second preset spacing can be set to be the same or different. Taking the first preset spacing and adjacent peaks A, B, C, D, E, and F as an example, if the first preset spacing does not exist, it is necessary to calculate the distance between peaks AB, BC, CD, DE, and EF. If the first preset spacing is introduced and the set first preset spacing exactly meets the spacing of the three adjacent peaks CE, then it is only necessary to calculate the distance between peaks AB, BC, and EF. The intermediate peaks do not need to participate in the spacing calculation or the calculation of the average of all spacings, which undoubtedly reduces the amount of data calculation. Moreover, the calculation is performed on peaks selected at the same interval. While reducing the amount of data calculation and improving the calculation speed, it can also ensure the accuracy of the calculation, which helps to quickly and accurately determine the type of the target waveform.
[0091] In summary, the atrial fibrillation and ventricular fibrillation identification method provided in this application first acquires a target waveform, and then calculates a first average spacing, a second average spacing, and a target average slope based on the target waveform. The first average spacing is the average distance between all adjacent peaks, the second average spacing is the average distance between all adjacent troughs, and the target average slope is the average of the sum of the slopes of all peaks and troughs. Then, based on the first average spacing, the second average spacing, a preset threshold, and the target ratio, the type of the target waveform can be quickly and accurately determined. Furthermore, the average distance between some adjacent peaks and the average distance between some adjacent troughs can be calculated based on the preset spacing, which helps to quickly determine the type of the target waveform.
[0092] Corresponding to the above method embodiments, this application also provides an atrial fibrillation and ventricular fibrillation identification device 200. Please refer to [link to relevant documentation]. Figure 2 , Figure 2 This application provides a functional module diagram of a device for identifying atrial fibrillation and ventricular fibrillation, the device comprising:
[0093] Acquisition module 210 is used to acquire the target waveform.
[0094] The first calculation module 220 is used to calculate a first average spacing, a second average spacing and a target average slope based on the target waveform diagram, wherein the first average spacing is the average of the distances between all adjacent peaks, the second average spacing is the average of the distances between all adjacent troughs, and the target average slope is the average of the sum of the slopes of all peaks and the slopes of the troughs.
[0095] The second calculation module 230 is used to determine the type of the target waveform based on the first average spacing, the second average spacing, the preset threshold and the target ratio. The type of the target waveform includes atrial fibrillation waveform and ventricular fibrillation waveform. The target ratio is the ratio of the maximum slope among all peaks and all troughs to the target average slope.
[0096] This application provides an embodiment of a device for identifying atrial fibrillation and ventricular fibrillation. The device first acquires a target waveform using an acquisition module, then calculates a first average spacing, a second average spacing, and a target average slope based on the target waveform using a first calculation module. The first average spacing is the average distance between all adjacent peaks, the second average spacing is the average distance between all adjacent troughs, and the target average slope is the average of the sum of the slopes of all peaks and troughs. Finally, the second calculation module quickly and accurately determines the type of the target waveform based on the first average spacing, the second average spacing, a preset threshold, and a target ratio.
[0097] This application also provides a computer device; please refer to [link to relevant documentation]. Figure 3 , Figure 3 This is a diagram illustrating the internal structure of a computer device according to an embodiment of this application. The computer device includes a processor, a memory, and a network interface connected via a system bus. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system and may also store a computer program. When executed by the processor, this computer program enables the processor to implement the atrial fibrillation and ventricular fibrillation identification method applied to the computer device in the above embodiments. The internal memory may also store a computer program, which, when executed by the processor, enables the processor to execute the atrial fibrillation and ventricular fibrillation identification method. Those skilled in the art will understand that... Figure 3 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0098] This application also discloses a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the atrial fibrillation and ventricular fibrillation identification method as described in the method embodiment.
[0099] The computer device and computer-readable storage medium provided in this application can first acquire a target waveform, and then calculate a first average spacing, a second average spacing, and a target average slope based on the target waveform. The first average spacing is the average of the distances between all adjacent peaks, the second average spacing is the average of the distances between all adjacent troughs, and the target average slope is the average of the sum of the slopes of all peaks and troughs. Then, based on the first average spacing, the second average spacing, a preset threshold, and the target ratio, the type of the target waveform can be quickly and accurately determined.
[0100] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM), etc.
[0101] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
Claims
1. A method for identifying atrial fibrillation and ventricular fibrillation, characterized in that, The method includes: Obtain the target waveform; Based on the target waveform, a first average spacing, a second average spacing, and a target average slope are calculated, wherein the first average spacing is the average distance between all adjacent peaks, the second average spacing is the average distance between all adjacent troughs, and the target average slope is the average of the sum of the slopes of all peaks and the slopes of the troughs. The type of the target waveform is determined based on the first average spacing, the second average spacing, the preset threshold, and the target ratio. The type of the target waveform includes atrial fibrillation waveform and ventricular fibrillation waveform. The target ratio is the ratio of the maximum slope among all peaks and all troughs to the target average slope. The preset thresholds include a peak threshold, a trough threshold, and a ratio threshold. The step of determining the type of the target waveform based on the first average spacing, the second average spacing, the preset thresholds, and the target ratio includes: If the first average spacing is greater than or equal to the peak threshold, the second average spacing is greater than or equal to the trough threshold, and the target ratio is greater than or equal to the ratio threshold, the target waveform is determined to be an atrial fibrillation waveform. If the first average spacing is greater than or equal to the peak threshold, the second average spacing is greater than or equal to the trough threshold, and the target ratio is less than the ratio threshold, the target waveform is determined to be a ventricular fibrillation waveform. If the first average spacing is less than the peak threshold, the second average spacing is less than the trough threshold, and the target ratio is less than the ratio threshold, the target waveform is determined to be a ventricular fibrillation waveform.
2. The method for identifying atrial fibrillation and ventricular fibrillation as described in claim 1, characterized in that, The step of determining the type of the target waveform based on the first average spacing, the second average spacing, the preset threshold, and the target ratio further includes: When the first average spacing is less than the peak threshold, the second average spacing is less than the trough threshold, and the target ratio is greater than or equal to the ratio threshold, heart rate data is acquired and the type of the target waveform is determined based on the heart rate data.
3. The method for identifying atrial fibrillation and ventricular fibrillation as described in claim 2, characterized in that, The step of determining the type of the target waveform based on the heart rate data includes: If the heart rate data is less than a preset heart rate threshold, the target waveform is determined to be an atrial fibrillation waveform. If the heart rate data is greater than or equal to the preset heart rate threshold, the target waveform is determined to be a ventricular fibrillation waveform.
4. The method for identifying atrial fibrillation and ventricular fibrillation as described in claim 1, characterized in that, The step of obtaining the target waveform includes: Acquire electrocardiogram (ECG) signals within a preset time period; Calculate the first mean and the second mean of the electrocardiogram signal, wherein the first mean is the mean of the sum of the upper amplitude limits per second within the preset duration, and the second mean is the mean of the sum of the lower amplitude limits per second within the preset duration. ECG signals greater than the first mean were identified as peaks, and ECG signals less than the second mean were identified as troughs. The target waveform is obtained based on all the peaks and troughs.
5. The method for identifying atrial fibrillation and ventricular fibrillation as described in claim 4, characterized in that, After the step of acquiring the electrocardiogram signal within a preset time period, the method further includes: The electrocardiogram (ECG) signal is preprocessed to filter out abnormal ECG signals. The preprocessing includes at least one of Butterworth low-pass filter denoising, low-pass filter denoising, and moving average filter denoising. The steps of calculating the first mean and the second mean of the electrocardiogram signal include: Calculate the first and second mean values of the preprocessed electrocardiogram signal.
6. The method for identifying atrial fibrillation and ventricular fibrillation as described in claim 1, characterized in that, The steps for calculating the spacing between adjacent peaks, the spacing between adjacent troughs, the average spacing between all adjacent peaks, and the average spacing between all adjacent troughs based on the target waveform include: The spacing between adjacent peaks is calculated according to the first preset spacing, and the spacing between adjacent troughs is calculated according to the second preset spacing. The average distance between all adjacent peaks is calculated based on the spacing between adjacent peaks, and the average distance between all adjacent troughs is calculated based on the spacing between adjacent troughs.
7. A device for identifying atrial fibrillation and ventricular fibrillation, characterized in that, The device includes: The acquisition module is used to acquire the target waveform. The first calculation module is used to calculate a first average spacing, a second average spacing, and a target average slope based on the target waveform diagram, wherein the first average spacing is the average of the distances between all adjacent peaks, the second average spacing is the average of the distances between all adjacent troughs, and the target average slope is the average of the sum of the slopes of all peaks and the slopes of the troughs. The second calculation module is used to determine the type of the target waveform based on the first average spacing, the second average spacing, a preset threshold, and a target ratio. The type of the target waveform includes atrial fibrillation waveform and ventricular fibrillation waveform. The target ratio is the ratio of the maximum slope among all peaks and all troughs to the target average slope. The preset threshold includes a peak threshold, a trough threshold, and a ratio threshold. The second calculation module is further configured to determine that the target waveform is an atrial fibrillation waveform when the first average interval is greater than or equal to the peak threshold, the second average interval is greater than or equal to the trough threshold, and the target ratio is greater than or equal to the ratio threshold; determine that the target waveform is a ventricular fibrillation waveform when the first average interval is greater than or equal to the peak threshold, the second average interval is greater than or equal to the trough threshold, and the target ratio is less than the ratio threshold; and determine that the target waveform is a ventricular fibrillation waveform when the first average interval is less than the peak threshold, the second average interval is less than the trough threshold, and the target ratio is less than the ratio threshold.
8. A computer device, characterized in that, The computer device includes a memory and a processor. The memory stores a computer program, which, when executed by the processor, implements the method for identifying atrial fibrillation and ventricular fibrillation as described in any one of claims 1-6.
9. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by one or more processors, implements the method for identifying atrial fibrillation and ventricular fibrillation as described in any one of claims 1-6.
Citation Information
Patent Citations
Electrocardiosignal classifying method and device, electronic equipment and storage medium
CN109770862A
Atrial fibrillation recognition system based on BCG detection
CN111449622A