A method and system for calculating the area ratio of each quadrant of an electrocardiogram vector ring

By preprocessing and filling the ECG data, the area ratio of each quadrant of the ECG vector ring is calculated, and the problems of calculation errors and complex waveform recognition in the prior art are solved, and accurate area ratio calculation is achieved.

CN115553785BActive Publication Date: 2025-06-03SHAN DONG MSUN HEALTH TECH GRP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202211342756.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-28
Publication Date
2025-06-03
Estimated Expiration
2042-10-28

AI Technical Summary

Technical Problem

It is difficult to accurately calculate the area ratio of each quadrant of the electrocardiogram vector ring, especially when complex waveforms and 8-shaped recognition, errors are easily generated.

Method used

By obtaining Frank lead data, removing baseline drift, identifying the start and end points of the QRS wave group, filling the data, and dividing the ECG vector ring into each quadrant, and calculating the area ratio of each quadrant.

Benefits of technology

The precise calculation of the area ratio of each quadrant of the electrocardiogram vector ring is realized, and the problems of calculation error and complex waveform recognition in the prior art are solved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115553785B_ABST
    Figure CN115553785B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method and system for calculating the area occupation ratio of each quadrant of an electrocardiogram vector loop, which relates to the technical field of electrocardiogram vector analysis. The method includes obtaining Frank lead data in electrocardiogram data and storing it as Frank_xyz; removing the baseline drift from Frank_xyz and saving the signal as the Original_Frank_xyz signal; identifying the starting and ending points of the QRS complex in the Original_Frank_xyz signal, recording the positions of the starting and ending points of the QRS complex, and using the starting and ending points of the QRS complex for data filling; dividing the electrocardiogram vector loop into each quadrant, distributing the obtained filled data into each quadrant, calculating the area of each quadrant of the electrocardiogram vector loop, and calculating the occupation ratio of the area of each quadrant through the calculated area of each quadrant. The present disclosure can accurately calculate the area occupation ratio of each quadrant of the electrocardiogram vector loop.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of electrocardiogram vector analysis, and specifically relates to a method and system for calculating the area ratio of each quadrant of an electrocardiogram vector loop. Background Art

[0002] The statements in this part merely provide background technical information related to the present disclosure and do not necessarily constitute prior art.

[0003] In the analysis of electrocardiogram vectors, correctly identifying the area ratio of each quadrant of the electrocardiogram vector loop is of great value for research. Currently, for the vector product method of calculating the area ratio of each quadrant of the electrocardiogram vector loop, it is impossible to accurately calculate the area of each quadrant for complex waveforms, and there will be certain errors in manual identification of the area ratio.

[0004] In traditional analysis methods, the measurement of area can only be completed using a planimeter. The measurement process is too complex and the result is not accurate enough, which greatly limits the application of the important parameter of vector loop area in clinical practice. Later, a method of area measurement using graphical display was used, but this method is easily affected by the screen resolution. Currently, the commonly used method is the vector product method. The vector product method requires manual assistance for the recognition of the figure-eight shape, with a large workload and calculation errors, and both the distinction of the figure-eight shape and the calculation speed are very slow. Summary of the Invention

[0005] To solve the above problems, the present disclosure proposes a method and system for calculating the area ratio of each quadrant of an electrocardiogram vector loop. The method adopted by the present disclosure can accurately calculate the area ratio of each quadrant.

[0006] According to some embodiments, the present disclosure adopts the following technical solutions:

[0007] A method for calculating the area ratio of each quadrant of an electrocardiogram vector loop, comprising:

[0008] Obtaining Frank lead data in electrocardiogram data and storing it as Frank_xyz;

[0009] Removing the baseline drift from Frank_xyz and saving the signal as the Original_Frank_xyz signal;

[0010] Identifying the starting and ending points of the QRS complex of the Original_Frank_xyz signal, recording the positions of the starting and ending points of the QRS complex, and using the starting and ending points of the QRS complex for data filling;

[0011] Dividing the electrocardiogram vector loop into each quadrant, distributing the obtained filled data into each quadrant, calculating the area of each quadrant of the electrocardiogram vector loop, and calculating the area ratio of each quadrant through the calculated area of each quadrant.

[0012] According to some embodiments, the present disclosure adopts the following technical solutions:

[0013] A data acquisition module, configured to acquire Frank lead data in electrocardiogram data and store it as Frank_xyz;

[0014] A data processing module, configured to remove baseline drift from Frank_xyz and save the signal as the Original_Frank_xyz signal;

[0015] A data filling module, configured to identify the start and end points of the QRS complex of the Original_Frank_xyz signal, record the positions of the start and end points of the QRS complex, and use the start and end points of the QRS complex for data filling;

[0016] An area occupancy ratio calculation module, configured to divide the electrocardiogram vector loop into each quadrant, distribute the acquired filled data into each quadrant, calculate the area of each quadrant of the electrocardiogram vector loop, and calculate the occupancy ratio of the area of each quadrant through the calculated area of each quadrant.

[0017] According to some embodiments, the present disclosure adopts the following technical solutions:

[0018] A computer-readable storage medium, in which multiple instructions are stored, and the instructions are adapted to be loaded and executed by a processor of a terminal device for the method for calculating the area occupancy ratio of each quadrant of an electrocardiogram vector loop.

[0019] According to some embodiments, the present disclosure adopts the following technical solutions:

[0020] A terminal device, including a processor and a computer-readable storage medium, where the processor is configured to implement each instruction; the computer-readable storage medium is configured to store multiple instructions, and the instructions are adapted to be loaded and executed by the processor for the method for calculating the area occupancy ratio of each quadrant of an electrocardiogram vector loop.

[0021] Compared with the prior art, the beneficial effects of the present disclosure are:

[0022] The method of the present disclosure calculates by quadrant, and can effectively solve the problem of accurately calculating the occupancy ratio of the area of each quadrant when the vector loop is in the shape of an eight or a part of an eight in the current quadrant. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] The accompanying drawings forming a part of this disclosure are used to provide a further understanding of the disclosure. The schematic embodiments and descriptions thereof of the disclosure are used to explain the disclosure and do not constitute an improper limitation of the disclosure.

[0024] Figure 1 It is the data flow diagram of the method described in Embodiment 1 of the present disclosure. Detailed implementation manners

[0025] The present disclosure will be further described below in conjunction with the accompanying drawings and embodiments.

[0026] It should be noted that the following detailed description is illustrative and is intended to provide further description of the present disclosure. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which the present disclosure belongs.

[0027] It should be noted that the terms used herein are only for describing specific implementation manners and are not intended to limit the exemplary implementation manners according to the present disclosure. As used herein, unless the context clearly indicates otherwise, the singular forms are also intended to include the plural forms. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, they indicate the presence of features, steps, operations, devices, components, and / or combinations thereof.

[0028] Embodiment 1

[0029] In one embodiment of the present disclosure, a method for calculating the area ratio of each quadrant of an electrocardiogram vector loop is provided, including:

[0030] Step 1: Obtain the Frank lead data in the electrocardiogram data and store it as Frank_xyz;

[0031] Step 2: Remove the baseline drift from Frank_xyz and save the signal as the Original_Frank_xyz signal;

[0032] Step 3: Identify the start and end points of the QRS complex of the Original_Frank_xyz signal, record the positions of the start and end points of the QRS complex, and use the start and end points of the QRS complex for data filling;

[0033] Step 4: Divide the electrocardiogram vector loop into each quadrant, distribute the obtained filled data into each quadrant, calculate the area of each quadrant of the electrocardiogram vector loop, and calculate the area ratio of each quadrant through the calculated area of each quadrant.

[0034] As an embodiment, the data set used in the present disclosure is the ptb data set, and the Frank lead data in the electrocardiogram data is extracted and stored as Frank_xyz.

[0035] Among them,

[0036] Frank_xyz = {Frank x , Frank y , Frank z};

[0037] Frankx is the x-lead data of the Frank lead system; Frank y is the y-lead data of the Frank lead system; Frank z is the z-lead data of the Frank lead system.

[0038] In step 2, the extracted Frank_xyz is removed from the baseline drift, and the signal is saved as the Original_Frank_xyz signal.

[0039] As an embodiment, the start and end points of the QRS complex of the Original_Frank_xyz signal are identified, and the positions of the start and end points of the QRS complex are recorded. The process of identifying the start and end points of the QRS complex of the Original_Frank_xyz signal is as follows:

[0040] The Pan-Tompkins algorithm is used to identify the start and end points of the QRS complex. The Pan-Tompkins algorithm is used to identify the QRS complex, and the start and end positions of each QRS complex are recorded. Since the electrocardiogram signal is continuous, the role of determining the start and end positions is to highlight the QRS complex.

[0041] After the identification is completed, a set of start and end positions of the QRS complex is selected, and the start point of the QRS complex is denoted as qrs1, and the end point is denoted as qrs2.

[0042] As an embodiment, data filling is performed using the start and end points of the QRS complex. First, waveform data needs to be obtained. The specific process includes: using the start point and the end point to intercept the x-lead data from the Original_Frank_xyz, intercepting the y-lead data, and performing an inversion operation on the x- and y-lead data to obtain the waveform x_wave and y_wave. This is used as an example to calculate the area of each quadrant.

[0043] Before calculating the area of each quadrant of the electrocardiogram vector loop, data filling needs to be performed. Specifically:

[0044] Preprocessing needs to be performed before data filling. The process of the preprocessing is: converting the waveform points of the input x_wave and y_wave into integer form, obtaining the x_wave_int and y_wave_int waveforms by directly multiplying the waveform data points by 1000, and finding the maximum and minimum values of the x_wave_int and saving them as x_wave_min and x_wave_max.

[0045] When performing data filling, the x_wave_int and y_wave_int waveforms are first combined into a pair and stored in pair_xy.

[0046] Data filling is performed according to certain rules. Specifically:

[0047] S1: Determine whether the absolute value of the difference between the current numerical point and the next numerical point of the x_wave_int waveform is greater than 1.

[0048] S1.1: If it is not greater than 1, store the pair_xy data pairs corresponding to the current data point and the next data point into pair_xy_fill.

[0049] S1.2: If it is greater than 1, then determine the magnitude of the current numerical point and the next numerical point of the x_wave_int waveform, specifically which point is larger;

[0050] S1.2.1: If the current numerical point is larger:

[0051] 1) Store the pair_xy data pair corresponding to the current numerical point into pair_xy_fill.

[0052] 2) Obtain the newly added data pairs and store them into pair_xy_fill. The x data of the newly added data pairs is the set of data points obtained by taking the next data point and the current data point at an interval of 1. The y data of the newly added data pairs is linearly interpolated from the y_wave_int value corresponding to the current data point to the y_wave_int value corresponding to the next data point corresponding to the x data points.

[0053] S1.2.2: If the next data point is larger:

[0054] 1) Store the pair_xy data pair corresponding to the current numerical point into pair_xy_fill.

[0055] 2) Obtain the newly added data pairs and store them into pair_xy_fill. The x data of the newly added data pairs is the set of data points obtained by taking the current data point and the next data point at an interval of 1. The y data of the newly added data pairs is linearly interpolated from the y_wave_int value corresponding to the current data point to the y_wave_int value corresponding to the next data point corresponding to the x data points.

[0056] As an embodiment, the calculation of the area of each vector of the electrocardiogram vector loop includes:

[0057] Divide the electrocardiogram vector loop into each quadrant, distribute the obtained filling data into each quadrant, calculate the area of each quadrant of the electrocardiogram vector loop, and calculate the occupancy ratio of the area of each quadrant through the calculated area of each quadrant.

[0058] Specifically, the process of dividing the electrocardiogram vector loop into each quadrant is:

[0059] Represented by quadrants or angles, 0° to +90° is Quadrant I, +90° to +180° is Quadrant II, -90° to +180° is Quadrant III, and 0° to -90° is Quadrant IV.

[0060] Then, the obtained filling data is divided into each quadrant to calculate the area of each quadrant. The specific calculation steps are as follows:

[0061] S20: Assume the data of the first quadrant one_pair_xy_fill is obtained. Calculate the maximum value of the x data in one_pair_xy_fill and denote it as x_max, and the minimum value as x_min.

[0062] S21: Sort the x data points in one_pair_xy_fill from smallest to largest, and denote all the y values corresponding to the x data points as one_pair_x_all_y.

[0063] S22: If there is only one y data point corresponding to an x data point in one_pari_x_all_y, then add another data point add_y, and set the value of add_y to 0.

[0064] S23: After the operation in step S22, it is ensured that each x data point corresponds to at least 2 data points.

[0065] S24: Sort all the data points corresponding to the x data points in one_pari_x_all_y from largest to smallest, then calculate the interval between adjacent data points (the larger value of the y data points minus the smaller value) and accumulate them to record as one_interval_sum. one_interval_sum can be regarded as the final area; because the intervals of the x data points are the same.

[0066] S25: According to the calculated areas of each quadrant, the area ratio of each quadrant can be calculated;

[0067] That is, after calculating the area of each quadrant, sum them up, and then calculate the ratio of each quadrant to the 4 quadrants.

[0068] Embodiment 2

[0069] In an embodiment of the present disclosure, a system for calculating the area ratio of each quadrant of an electrocardiogram vector loop is provided, including:

[0070] A data acquisition module, configured to acquire Frank lead data in electrocardiogram data and store it as Frank_xyz;

[0071] A data processing module, configured to remove the baseline drift from Frank_xyz and save the signal as the Original_Frank_xyz signal;

[0072] A data filling module, configured to identify the start and end points of the QRS complex of the Original_Frank_xyz signal, record the positions of the start and end points of the QRS complex, and use the start and end points of the QRS complex for data filling;

[0073] An area ratio calculation module, configured to divide the electrocardiogram vector loop into each quadrant, distribute the obtained filled data into each quadrant, calculate the area of each quadrant of the electrocardiogram vector loop, and calculate the ratio of the area of each quadrant through the calculated area of each quadrant.

[0074] Specifically, the above system specifically executes the method steps described in Embodiment 1, including:

[0075] Step 1: Obtain the Frank lead data in the electrocardiogram data and store it as Frank_xyz;

[0076] Step 2: Remove the baseline drift from Frank_xyz and save the signal as the Original_Frank_xyz signal;

[0077] Step 3: Identify the start and end points of the QRS complex of the Original_Frank_xyz signal, record the positions of the start and end points of the QRS complex, and use the start and end points of the QRS complex for data filling;

[0078] Step 4: Divide the electrocardiogram vector loop into each quadrant, distribute the obtained filled data into each quadrant, calculate the area of each quadrant of the electrocardiogram vector loop, and calculate the ratio of the area of each quadrant through the calculated area of each quadrant.

[0079] As an embodiment, the data set used in the present disclosure is the ptb data set, and the Frank lead data in the electrocardiogram data is extracted and stored as Frank_xyz.

[0080] Wherein,

[0081] Frank_xyz = {Frank x , Frank y , Frank z};

[0082] Frank x is the x-lead data of the Frank lead system; Frank y is the y-lead data of the Frank lead system; Frank z is the z-lead data of the Frank lead system.

[0083] In step 2, the baseline drift of the extracted Frank_xyz is removed, and the signal is saved as the Original_Frank_xyz signal.

[0084] As an embodiment, the start and end points of the QRS complex of the Original_Frank_xyz signal are identified, and the positions of the start and end points of the QRS complex are recorded. The process of identifying the start and end points of the QRS complex of the Original_Frank_xyz signal is as follows:

[0085] The Pan-Tompkins algorithm is used to identify the start and end points of the QRS complex. The Pan-Tompkins algorithm is used to identify the QRS complex, and the start and end positions of each QRS complex are recorded. Since the electrocardiogram signal is continuous, the role of determining the start and end positions is to highlight the prominent QRS complexes.

[0086] After the identification is completed, a set of start and end positions of the QRS complex are selected, and the start point of the QRS complex is denoted as qrs1, and the end point is denoted as qrs2.

[0087] As an embodiment, the start and end points of the QRS complex are used for data filling. First, the waveform data needs to be obtained. The specific process includes: using the start point and the end point to intercept the x-lead data from the Original_Frank_xyz, intercepting the y-lead data, and performing an inversion operation on the x- and y-lead data to obtain the waveform x_wave and y_wave. This is used as an example to calculate the area of each quadrant.

[0088] Before calculating the area of each quadrant of the electrocardiogram vector loop, the data needs to be filled. Specifically:

[0089] Preprocessing is required before data filling. The process of the preprocessing is: converting the waveform points of the input x_wave and y_wave into integer form, directly multiplying the waveform data points by 1000 to obtain the x_wave_int and y_wave_int waveforms, finding the maximum and minimum values of x_wave_int and saving them as x_wave_min and x_wave_max.

[0090] When performing data filling, first form a pair of the x_wave_int and y_wave_int waveforms and store them in pair_xy.

[0091] Data filling is performed according to certain rules. Specifically:

[0092] S1: Determine whether the absolute value of the difference between the current numerical point and the next numerical point of the x_wave_int waveform is greater than 1.

[0093] S1.1: If it is not greater than 1, store the pair_xy data pairs corresponding to the current data point and the next data point into pair_xy_fill.

[0094] S1.2: If it is greater than 1, then determine the magnitude relationship between the current numerical point and the next numerical point of the x_wave_int waveform, specifically which point is larger;

[0095] S1.2.1: If the current numerical point is larger:

[0096] 3) Store the pair_xy data pair corresponding to the current numerical point into pair_xy_fill.

[0097] 4) Obtain the newly added data pairs and store them into pair_xy_fill. The x data of the newly added data pairs is the set of data points obtained by taking the next data point and the current data point at an interval of 1. The y data of the newly added data pairs is linearly interpolated from the y_wave_int value corresponding to the current data point to the y_wave_int value corresponding to the next data point corresponding to the x data points.

[0098] S1.2.2: If the next data point is larger:

[0099] 2) Store the pair_xy data pair corresponding to the current numerical point into pair_xy_fill.

[0100] 2) Obtain the newly added data pairs and store them into pair_xy_fill. The x data of the newly added data pairs is the set of data points obtained by taking the current data point and the next data point at an interval of 1. The y data of the newly added data pairs is linearly interpolated from the y_wave_int value corresponding to the current data point to the y_wave_int value corresponding to the next data point corresponding to the x data points.

[0101] As an embodiment, the calculation of the area of each vector of the electrocardiogram vector loop includes:

[0102] Divide the electrocardiogram vector loop into each quadrant, distribute the obtained filled data into each quadrant, calculate the area of each quadrant of the electrocardiogram vector loop, and calculate the percentage of the area of each quadrant through the calculated area of each quadrant.

[0103] Specifically, the process of dividing the electrocardiogram vector loop into each quadrant is as follows:

[0104] Then distribute the obtained filled data into each quadrant to calculate the area of each quadrant. The specific calculation steps are as follows:

[0105] S20: Assume the obtained first quadrant data one_pair_xy_fill, calculate the maximum value of the x data in one_pair_xy_fill and denote it as x_max, and the minimum value as x_min.

[0106] S21: Sort the x data points in one_pair_xy_fill from smallest to largest and denote all the y values corresponding to the x data points as one_pair_x_all_y.

[0107] S22: If there is only one y data point corresponding to an x data point in one_pari_x_all_y, then add another data point add_y and set the value of add_y to 0.

[0108] S23: After the operation in step S22, it is ensured that each x data point corresponds to at least 2 data points.

[0109] S24: Sort all the data points corresponding to the x data points in one_pari_x_all_y from largest to smallest, then calculate the intervals between adjacent data points (the larger value of the y data points minus the smaller value) and accumulate them and denote it as one_interval_sum. one_interval_sum can be regarded as the final area; because the intervals of the x data points are all the same.

[0110] S25: According to the calculated areas of each quadrant, the area ratio of each quadrant can be calculated;

[0111] Embodiment 3

[0112] In an embodiment of the present disclosure, a computer-readable storage medium is provided, in which multiple instructions are stored, and the instructions are adapted to be loaded and executed by a processor of a terminal device to perform the method for calculating the area ratio of each quadrant of an electrocardiogram vector loop.

[0113] Embodiment 4

[0114] In an embodiment of the present disclosure, a terminal device is provided, including a processor and a computer-readable storage medium. The processor is used to implement each instruction; the computer-readable storage medium is used to store multiple instructions, and the instructions are adapted to be loaded and executed by the processor to perform the method for calculating the area ratio of each quadrant of an electrocardiogram vector loop.

[0115] The devices, media, and equipment in Specific Embodiments 2, 3, and 4 specifically execute any step of the method in Embodiment 1.

[0116] This disclosure is described with reference to the flowcharts and / or block diagrams of methods, apparatuses (systems), and computer program products according to embodiments of the disclosure. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, as well as the combination of flows and / or blocks in the flowcharts and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, such that the instructions executed by the processor of the computer or other programmable data processing device generate means for implementing the functions specified in one or more of the flows Figure 1 one or more of the flows and / or blocks Figure 1 or means for implementing the functions specified in one or more of the blocks.

[0117] These computer program instructions can also be loaded onto a computer or other programmable data processing device, such that a series of operation steps are executed on the computer or other programmable device to generate a computer-implemented process, so that the instructions executed on the computer or other programmable device provide steps for implementing the functions specified in one or more of the flows Figure 1 one or more of the flows and / or blocks Figure 1 or steps for implementing the functions specified in one or more of the blocks.

[0118] Although the specific embodiments of the disclosure have been described above in conjunction with the accompanying drawings, they are not intended to limit the protection scope of the disclosure. Those skilled in the art should understand that, based on the technical solutions of the disclosure, various modifications or variations that can be made by those skilled in the art without creative efforts are still within the protection scope of the disclosure.

Claims

1. A method for calculating the area ratio of each quadrant of the ECG vector ring. It is characterized in that include: Get the Frank lead data in the ECG data and store it as Frank_xyz; After removing the baseline drift of Frank_xyz, save the signal as Original_Frank_xyz signal; Identify the starting and ending points of the QRS complex of the Original_Frank_xyz signal, record the positions of the starting and ending points of the QRS complex, and use the starting and ending points of the QRS complex to fill in data; The process of identifying the start and end points of the QRS complex of the Original_Frank_xyz signal is as follows: using the Pan-Tompkins algorithm to identify the start and end points of the QRS complex, and selecting a set of QRS complex start and end point positions, and recording the start point as qrs1 and the end point as qrs2; using the start and end points of the QRS complex to perform data filling, firstly, waveform data needs to be obtained, and the specific process includes: using the start point and the end point to intercept the x lead data from Original_Frank_xyz, intercepting the y lead data and performing an inversion operation on the x and y lead data to obtain waveforms x_wave and y_wave; The ECG vector ring is divided into quadrants, and the obtained filling data is divided into each quadrant. The maximum and minimum values ​​of the x data in each quadrant data are calculated, and the x data points in each quadrant data are sorted from small to large and all the y values ​​corresponding to the x data points are recorded as one_pair_x_all_y; if there is only one y data point corresponding to the x data point in one_pair_x_all_y, then add another data point add_y, and set the add_y value to 0 to ensure that each x data point corresponds to at least 2 data points; sort all the corresponding data points in the x data points in one_pair_x_all_y from large to small, and then calculate the interval value of adjacent data points. The interval value is the large value of the y data point minus the small value, and the accumulation is recorded as the area of ​​the quadrant one_interval_sum, and the area of ​​each quadrant of the ECG vector ring is calculated, and the proportion of the area of ​​each quadrant is calculated by the calculated area of ​​each quadrant.

2. A method for calculating the area ratio of each quadrant of an electrocardiogram vector loop as claimed in claim 1, It is characterized in that The Frank_xyz is .

3. A method for calculating the area ratio of each quadrant of an electrocardiogram vector loop as claimed in claim 2, It is characterized in that is the x-lead data of the Frank lead system, is the y-lead data of the Frank lead system, is the z-lead data of the Frank lead system.

4. A method for calculating the area ratio of each quadrant of an electrocardiogram vector loop as claimed in claim 1, It is characterized in that The data needs to be preprocessed before filling. The preprocessing process is: convert the input x_wave and y_wave waveform points into integer form, directly multiply the waveform data points by 1000 to obtain x_wave_int and y_wave_int waveforms, calculate the maximum and minimum values ​​of x_wave_int and save them as x_wave_min and x_wave_max.

5. A method for calculating the area ratio of each quadrant of an electrocardiogram vector loop as described in claim 1, characterized in that, the data filling method is as follows: the x_wave_int and y_wave_int waveforms are combined into a sequence and saved in pair_xy, and the filling is performed according to the following rules: first, judge whether the absolute value of the difference between the current numerical point and the next numerical point of the x_wave_int waveform is greater than 1. If it is not greater than 1, the pair_xy data pair corresponding to the current data point and the next data point is stored in pair_xy_fill; if it is greater than 1, then judge the magnitude of the current numerical point and the next numerical point of the x_wave_int waveform; if the current numerical point is larger: the pair_xy data pair corresponding to the current numerical point is stored in pair_xy_fill; the newly added data pair is stored in pair_xy_fill. The x data of the newly added data pair is a set of data points obtained by taking the next data point and the current data point at an interval of 1. The y data of the newly added data pair is linearly interpolated from the y_wave_int value corresponding to the current data point to the y_wave_int value corresponding to the next data point corresponding to the x data point; if the next data point is larger: the pair_xy data pair corresponding to the current numerical point is stored in pair_xy_fill; the newly added data pair is stored in pair_xy_fill. The x data of the newly added data pair is a set of data points obtained by taking the current data point and the next data point at an interval of 1; the y data of the newly added data pair is linearly interpolated from the y_wave_int value corresponding to the current data point to the y_wave_int value corresponding to the next data point corresponding to the x data point.

6. A system for calculating the area ratio of each quadrant of an electrocardiogram vector loop, characterized in that, it includes: a data acquisition module for acquiring Frank lead data in electrocardiogram data and storing it as Frank_xyz; a data processing module for removing baseline drift from Frank_xyz and saving the signal as the Original_Frank_xyz signal; a data filling module for identifying the start and end points of the QRS complex in the Original_Frank_xyz signal, recording the positions of the start and end points of the QRS complex, and performing data filling using the start and end points of the QRS complex; the process of identifying the start and end points of the QRS complex in the Original_Frank_xyz signal is as follows: using the Pan-Tompkins algorithm to identify the start and end points of the QRS complex, and selecting a set of positions of the start and end points of the QRS complex, and recording the start point as qrs1 and the end point as qrs2; performing data filling using the start and end points of the QRS complex, first, waveform data needs to be obtained. The specific process includes: intercepting the x-lead data from Original_Frank_xyz using the start point and the end point, intercepting the y-lead data and performing an inversion operation on the x and y-lead data to obtain the waveforms x_wave and y_wave; An area occupancy ratio calculation module is used to divide the electrocardiogram vector loop into each quadrant, distribute the obtained filling data into each quadrant, calculate the maximum and minimum values of the x data in the data of each quadrant, sort the x data points in each quadrant data from small to large and record all y values corresponding to the x data points as one_pair_x_all_y; if there is only one y data point corresponding to the x data point in one_pair_x_all_y, then add another data point add_y, and set the value of add_y to 0 to ensure that each x data point corresponds to at least 2 data points; sort all the data points corresponding to the x data points in one_pair_x_all_y from large to small, then calculate the interval value between adjacent data points, the interval value is the large value of the y data point minus the small value, and accumulate and record it as the area one_interval_sum of this quadrant, calculate the area of each quadrant of the electrocardiogram vector loop, and calculate the occupancy ratio of the area of each quadrant through the calculated area of each quadrant.

7. A computer-readable storage medium, characterized in that, it stores multiple instructions, and the instructions are suitable for being loaded and executed by a processor of a terminal device to perform the method for calculating the area occupancy ratio of each quadrant of an electrocardiogram vector loop according to any one of claims 1-5.

8. A terminal device, characterized in that, it includes a processor and a computer-readable storage medium, the processor is used to implement each instruction; the computer-readable storage medium is used to store multiple instructions, and the instructions are suitable for being loaded and executed by the processor to perform the method for calculating the area occupancy ratio of each quadrant of an electrocardiogram vector loop according to any one of claims 1-5.