Electrocardiogram (ECG) recording methods, monitors, devices, computer equipment, and storage media

By collecting and searching for the maximum and minimum values ​​of electrocardiogram data in real time in the monitor, the problem of low electrocardiogram accuracy in existing technologies has been solved, and higher-precision electrocardiogram drawing has been achieved.

CN117942088BActive Publication Date: 2026-11-17AMBULANC (SHENZHEN) TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410048416.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-11
Publication Date
2026-11-17
Estimated Expiration
2044-01-11

AI Technical Summary

Technical Problem

Existing monitors only extract the maximum or minimum value from the ECG data when generating an electrocardiogram (ECG), resulting in incomplete feature point extraction and low ECG accuracy.

Method used

The monitoring module collects ECG data in real time and stores it in the buffer of the display module. When the number of ECG data in the buffer reaches the target number, the maximum and minimum ECG data are searched for, and an ECG is immediately drawn on the display area of ​​the display module when these data are determined.

Benefits of technology

The accuracy of the electrocardiogram (ECG) output by the monitor has been improved by extracting feature points more completely, ensuring the accuracy and integrity of the ECG.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117942088B_ABST
    Figure CN117942088B_ABST
Patent Text Reader

Abstract

This invention relates to the field of electrocardiogram (ECG) detection technology, and discloses an ECG drawing method, apparatus, computer equipment, and storage medium. The method involves storing collected ECG data in a buffer. When the number of ECG data in the buffer reaches a target quantity, the maximum and minimum ECG values ​​are searched from this target quantity. During the search for the maximum and minimum ECG values, it is continuously checked whether they have been found. Once found, the ECG is immediately drawn on the display area of ​​the display module according to the maximum and minimum ECG values. Therefore, this invention, by extracting the maximum and minimum ECG values ​​to draw the ECG, can extract feature points more completely compared to methods that only extract the maximum or minimum ECG values, thus improving the accuracy of the ECG output by the monitor.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of electrocardiogram (ECG) detection technology, and in particular to an ECG plotting method, monitor, device, computer equipment, and storage medium. Background Technology

[0002] In the medical field, patient monitors are one of the most important instruments for diagnosing critically ill patients. The accuracy of the electrocardiogram (ECG) output by the monitor affects the doctor's judgment of the patient's condition. After collecting the patient's ECG data, the monitor usually needs to extract key points from the data to obtain feature points, and then draw an ECG based on these feature points.

[0003] Currently, common feature extraction algorithms typically extract only the maximum or minimum value from the ECG data to draw the ECG. This results in incomplete feature point extraction from the ECG data, leading to low accuracy of the ECG output by the monitor. Summary of the Invention

[0004] This invention provides a method, apparatus, computer device, and storage medium for drawing electrocardiograms (ECGs) to address the problem of low accuracy in ECG output from monitors.

[0005] An electrocardiogram (ECG) plotting method, the method comprising:

[0006] The monitoring module acquires real-time electrocardiogram (ECG) data of the target human body according to a preset ECG acquisition cycle; the ECG data includes the sampling time and sampling voltage of the ECG data.

[0007] The ECG data is stored in the buffer of the display module, and each time the number of ECG data in the buffer reaches a target number, the target number of ECG data is searched based on the sampling voltage to determine the maximum and minimum ECG data.

[0008] Determine whether the maximum and minimum ECG data are found according to a preset query cycle;

[0009] Each time the maximum and minimum ECG data are found, an ECG is drawn in the display area of ​​the display module according to the maximum and minimum ECG data.

[0010] Optionally, in the above method, storing the ECG data in the buffer of the display module, and performing a search process on the target number of ECG data based on the sampling voltage each time the number of ECG data in the buffer reaches a target number, to determine the maximum and minimum ECG data, includes:

[0011] The ECG data is continuously stored in the cache of the display module, and the number of ECG data is counted.

[0012] When the number of ECG data reaches the target number, an ECG data group is determined;

[0013] After determining one set of ECG data, the number of new ECG data stored in the buffer is recounted to determine a new set of ECG data.

[0014] Each of the ECG data sets is sequentially searched to determine the maximum and minimum ECG data from each ECG data set based on the sampled voltage.

[0015] Optionally, in the above method, determining the maximum and minimum ECG data from each ECG data set based on the sampling voltage includes:

[0016] Sequentially acquire two ECG data points from the ECG data set;

[0017] The ECG data with the largest sampling voltage is determined as the temporary maximum ECG data, and the ECG data with the smallest sampling voltage is determined as the temporary minimum ECG data.

[0018] Traverse the remaining ECG data in the ECG data group, and sequentially compare the sampling voltage corresponding to the current ECG data with the sampling voltage corresponding to the temporary maximum ECG data and the sampling voltage corresponding to the temporary minimum ECG data.

[0019] If the sampling voltage of the current ECG data is greater than the sampling voltage of the temporary maximum ECG data, update the temporary maximum ECG data to the current ECG data;

[0020] If the sampling voltage of the current ECG data is less than the sampling voltage of the temporary minimum ECG data, update the temporary minimum ECG data to the current ECG data;

[0021] After traversing all the ECG data in the ECG data group, the temporary maximum ECG data is determined as the final maximum ECG data, and the temporary minimum ECG data is determined as the final minimum ECG data.

[0022] Optionally, in the above method, the step of drawing an electrocardiogram based on the maximum and minimum electrocardiogram data includes:

[0023] Determine the order of the maximum and minimum ECG data;

[0024] If the maximum ECG data is before the minimum ECG data, the ECG is first drawn in the display area of ​​the display module according to the maximum ECG data, and then the ECG is drawn in the display area of ​​the display module according to the minimum ECG data.

[0025] If the maximum ECG data is after the minimum ECG data, the ECG is first drawn in the display area of ​​the display module according to the minimum ECG data, and then the ECG is drawn in the display area of ​​the display module according to the maximum ECG data.

[0026] Optionally, in the above method, the target number of ECG data in the buffer is calculated based on the resolution, size, waveform rendering speed of the display area of ​​the display module, and the sampling period of the monitoring module.

[0027] A patient monitor includes a monitoring module and a display module; wherein,

[0028] The monitoring module is used to acquire the electrocardiogram (ECG) data of the target human body collected in real time by the monitoring module according to the preset ECG acquisition cycle, and send the ECG data to the display module;

[0029] The display module is configured to store the electrocardiogram (ECG) data in its cache area, and when the number of ECG data in the cache area reaches a target number, perform a search on the target number of ECG data to obtain the maximum and minimum ECG data; determine whether the maximum and minimum ECG data have been found according to a preset query cycle; and draw an ECG on the display area of ​​the display module according to the maximum and minimum ECG data each time it is determined that the maximum and minimum ECG data have been found.

[0030] An electrocardiogram (ECG) plotting device, the device comprising:

[0031] The data acquisition unit is used to acquire the electrocardiogram (ECG) data of the target human body collected in real time by the monitoring module according to the preset ECG acquisition cycle.

[0032] The data search unit is used to store the ECG data in the buffer of the display module, and when the number of ECG data in the buffer reaches a target number each time, it performs a search process on the target number of ECG data to obtain the maximum ECG data and the minimum ECG data.

[0033] The data determination unit is used to determine whether the maximum ECG data and the minimum ECG data have been found according to a preset query period;

[0034] An electrocardiogram (ECG) drawing unit is used to draw an ECG in the display area of ​​the display module according to the maximum ECG data and the minimum ECG data each time the maximum ECG data and the minimum ECG data are determined to be found.

[0035] Optionally, in the above-described apparatus, the data traversal unit is used for:

[0036] The ECG data is continuously stored in the cache of the display module, and the number of ECG data is counted.

[0037] When the number of ECG data reaches the target number, an ECG data group is determined;

[0038] After determining one set of ECG data, the number of new ECG data stored in the buffer is recounted to determine a new set of ECG data.

[0039] The ECG data set is sequentially searched to obtain the maximum ECG data and the minimum ECG data.

[0040] A computer device includes a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor, when executing the computer program, implements the electrocardiogram drawing method as described in any of the preceding claims.

[0041] A computer-readable storage medium storing a computer program that, when executed by a processor, implements the electrocardiogram drawing method as described in any of the preceding claims.

[0042] The aforementioned electrocardiogram (ECG) drawing method, apparatus, computer equipment, and storage medium store ECG data collected by the monitoring module in the buffer of the display module. When the number of ECG data in the buffer reaches a target quantity, the maximum and minimum ECG data points are searched from this target quantity. During this search, it is continuously checked whether the maximum and minimum ECG data points have been found. Once found, the ECG is immediately drawn on the display area of ​​the display module based on these maximum and minimum ECG data points. Therefore, this invention can determine the maximum and minimum ECG data points by searching through a target quantity of ECG data. Compared to simply extracting the maximum or minimum ECG data, this method can extract feature points more completely, thereby improving the accuracy of the ECG output by the monitor. Attached Figure Description

[0043] To more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly introduced below. Obviously, 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.

[0044] Figure 1 This is a flowchart illustrating an electrocardiogram (ECG) drawing method disclosed in an embodiment of the present invention.

[0045] Figure 2 This is a partial flowchart of an electrocardiogram (ECG) drawing method disclosed in an embodiment of the present invention;

[0046] Figure 3 This is a partial flowchart of an electrocardiogram (ECG) drawing method disclosed in an embodiment of the present invention;

[0047] Figure 4 This is a partial flowchart of an electrocardiogram (ECG) drawing method disclosed in an embodiment of the present invention;

[0048] Figure 5 This is a schematic diagram of the mechanism of a patient monitor disclosed in an embodiment of the present invention;

[0049] Figure 6 This is a schematic diagram of the structure of an electrocardiogram (ECG) plotting device disclosed in an embodiment of the present invention;

[0050] Figure 7 This is a schematic diagram of the structure of a computer device disclosed in an embodiment of the present invention. Detailed Implementation

[0051] 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, not all, of the embodiments of the present invention. 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.

[0052] It should be understood that, when used in this specification and the appended claims, the term "comprising" indicates the presence of the described features, integrals, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integrals, steps, operations, elements, components and / or collections thereof.

[0053] It should also be understood that the term “and / or” as used in this specification and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes such combinations.

[0054] As used in this specification and the appended claims, the term "if" may be interpreted, depending on the context, as "when," "once," "in response to determination," or "in response to detection." Similarly, the phrase "if determined" or "if [described condition or event] is detected" may be interpreted, depending on the context, as meaning "once determined," "in response to determination," "once [described condition or event] is detected," or "in response to detection of [described condition or event]."

[0055] Furthermore, in the description of this invention and the appended claims, the terms "first," "second," "third," etc., are used only for distinguishing descriptions and should not be construed as indicating or implying relative importance.

[0056] References to "one embodiment" or "some embodiments" as described in this specification mean that one or more embodiments of the invention include a specific feature, structure, or characteristic described in connection with that embodiment. Therefore, phrases such as "in one embodiment," "in some embodiments," "in other embodiments," "in still other embodiments," etc., appearing in different parts of this specification do not necessarily refer to the same embodiment, but rather mean "one or more, but not all, embodiments," unless otherwise specifically emphasized. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless otherwise specifically emphasized.

[0057] This invention discloses an electrocardiogram (ECG) drawing method, apparatus, computer device, and storage medium. ECG data collected by the monitoring module is stored in the buffer of the display module. When the number of ECG data in the buffer reaches a target quantity, the maximum and minimum ECG data points are searched from this target quantity. During the search for the maximum and minimum ECG data points, it is continuously determined whether they have been found. Once found, the ECG is immediately drawn on the display area of ​​the display module according to the maximum and minimum ECG data points. Therefore, this invention can determine the maximum and minimum ECG data points by searching through a target quantity of ECG data, which allows for more complete extraction of feature points compared to simply extracting the maximum or minimum ECG data, thus improving the accuracy of the ECG output by the monitor. Specific embodiments are described below.

[0058] like Figure 1 The diagram shown is a flowchart of an electrocardiogram (ECG) plotting method disclosed in an embodiment of the present invention. This method is applicable to electronic devices with ECG data processing capabilities, such as patient monitors. The method in this embodiment may specifically include the following steps:

[0059] S101: Acquire the ECG data of the target human body collected in real time by the monitoring module according to the preset ECG acquisition cycle.

[0060] The ECG data includes the sampling time and sampling voltage. In other words, when the monitoring module acquires ECG data, it needs to record not only the acquired ECG voltage (sampling voltage) but also the time of data acquisition (sampling time).

[0061] The monitoring module refers to the module in the monitor that directly participates in collecting electrocardiogram (ECG) data from the target human body (such as patients or people undergoing physical examinations). The ECG acquisition cycle of the monitoring module is preset so that the monitoring module can acquire ECG data of the target human body in real time according to the ECG acquisition cycle. Thus, the ECG data collected by the monitoring module can be obtained when the monitoring module acquires ECG data.

[0062] In specific implementation, the preset ECG acquisition period in this embodiment includes, but is not limited to, 1ms, 2ms, or 3ms, etc., and is not specifically limited in this embodiment. In practical applications, the monitoring module in this embodiment can collect ECG data of the target human body in real time according to the preset ECG acquisition period through the ECG lead of the monitor. The monitoring module may include the ECG lead, or it may be a control module connected to the ECG lead. In this embodiment, the ECG lead may be a three-lead ECG lead, a five-lead ECG lead, etc., and is not limited in this embodiment.

[0063] S102: Store the ECG data in the buffer of the display module, and when the number of ECG data in the buffer reaches the target number each time, perform a search process on the target number of ECG data based on the sampling voltage to determine the maximum and minimum ECG data.

[0064] Understandably, the display module of the monitor in this embodiment includes a buffer area for storing electrocardiogram (ECG) data. When the number of ECG data in the buffer area reaches a target quantity, the subsequent ECG data stored in the buffer area is recounted, and so on. Each time the number of ECG data stored in the buffer area reaches the target quantity, a search process is performed on the target quantity of ECG data based on the sampling voltage to determine the maximum and minimum ECG data.

[0065] In this specific implementation, the maximum ECG data in this embodiment refers to the ECG data with the highest sampling voltage among the target number of ECG data, and the minimum ECG data refers to the ECG data with the lowest sampling voltage among the target number of ECG data. The maximum and minimum ECG data are determined by iterating through the target number of ECG data.

[0066] It is important to note that the aforementioned target quantities need to be calculated based on the resolution and size of the display area (e.g., the screen), the waveform rendering speed, and the sampling period of the monitoring module. For example, based on the resolution and size of the display area, a 100mm display area occupies 500 pixels. With a waveform rendering speed of 25mm / s, it is known that rendering a 25mm ECG in 1 second requires 125 pixels. According to the conversion between seconds and milliseconds, one ECG data point needs to be determined every 8ms, and one pixel is used to display this data. In this case, with a sampling period of 2ms for the monitoring module, four cycles are needed, meaning four ECG data points need to be sampled to determine one ECG data point for rendering. When two ECG data points need to be determined (i.e., the maximum and minimum ECG data points), eight cycles are needed to sample eight ECG data points. The maximum and minimum ECG data points are then searched for from these eight data points, and finally rendered in the display area using two pixels.

[0067] S103: Determine whether the maximum and minimum ECG data are found according to the preset query cycle.

[0068] It should be understood that in order to find the maximum and minimum ECG data from the target number of ECG data, the display module needs to process the data for a certain period of time. Therefore, it is necessary to wait for the display module to find the maximum and minimum ECG data before drawing the ECG.

[0069] In the specific implementation, the preset query period in this embodiment includes, but is not limited to, 1ms, 2ms, etc., and is not limited in this embodiment. Presetting a shorter query period can quickly determine when the maximum and minimum ECG data have been found, thereby quickly executing the subsequent steps of ECG drawing, which is beneficial to improving the efficiency of ECG drawing.

[0070] S104: Each time the maximum and minimum ECG data are found, draw the ECG in the display area of ​​the display module according to the maximum and minimum ECG data.

[0071] Understandably, in this embodiment, when drawing an electrocardiogram in the display area of ​​the display module, only the maximum and minimum electrocardiogram data found each time are drawn. Each time the maximum and minimum electrocardiogram data are found, two points are drawn on the electrocardiogram until a complete electrocardiogram is drawn in the display area.

[0072] For example, if the display area of ​​the display module needs 500 pixels to display a complete electrocardiogram, then it is necessary to continuously draw the maximum and minimum electrocardiogram data found throughout the process. Each maximum or minimum electrocardiogram data is displayed through one pixel until all pixels are filled, that is, each of the 500 pixels is used to draw a maximum or minimum electrocardiogram data, thus obtaining a complete electrocardiogram.

[0073] In summary, this invention discloses an electrocardiogram (ECG) plotting method. The method involves storing ECG data collected by a monitoring module in a buffer of a display module. When the number of ECG data in the buffer reaches a target quantity, the maximum and minimum ECG values ​​are searched for from this target quantity. During this search, it is continuously checked whether the maximum and minimum ECG values ​​have been found. Once found, the ECG is immediately plotted on the display area of ​​the display module based on these maximum and minimum values. Therefore, this invention can determine the maximum and minimum ECG values ​​by searching through a target quantity of ECG data. Compared to simply extracting the maximum or minimum ECG values, this method can extract feature points more completely, thereby improving the accuracy of the ECG output by the monitor.

[0074] based on Figure 1 In its specific implementation, step S102 can be achieved through the following steps, as follows: Figure 2 As shown:

[0075] S201: Continuously store ECG data in the cache of the display module and count the number of ECG data.

[0076] S202: When the number of ECG data reaches the target number, determine an ECG data group.

[0077] Each time an ECG data point is stored in the cache, a count is performed. When the number of ECG data points reaches the target number, the target number of ECG data points is defined as a group of ECG data points.

[0078] S203: After determining an ECG data set, recount the number of new ECG data stored in the buffer to determine a new ECG data set.

[0079] In other words, after determining an ECG data set, the number of new ECG data stored in the buffer is recounted to determine a new ECG data set. This process is repeated to continuously determine new ECG data sets. Each time an ECG data set is determined, the subsequent steps for ECG drawing are executed based on the determined ECG data set.

[0080] S204: Perform a search process on each ECG data set sequentially to determine the maximum and minimum ECG data based on the sampled voltage.

[0081] Among them, the maximum ECG data refers to the ECG data with the highest center voltage in the ECG data group, and the minimum ECG data refers to the ECG data with the lowest center voltage in the ECG data group.

[0082] Specifically, after determining a set of ECG data, each ECG data point in the set is searched through, and the ECG data point with the highest center voltage is selected as the maximum ECG data point, and the ECG data point with the lowest center voltage is selected as the minimum ECG data point, and so on. For each set of ECG data points, the minimum and maximum ECG data points are searched through the set, and then an ECG is drawn based on the minimum and maximum ECG data points found each time.

[0083] In summary, this embodiment divides the ECG data stored in the cache into different ECG data groups, and then searches for the corresponding maximum and minimum ECG data in each ECG data group, thereby achieving the goal of simultaneously retaining the maximum and minimum feature points, which is beneficial to improving the accuracy of the drawn ECG.

[0084] based on Figure 2 In its specific implementation, step S204 can be achieved through the following steps, as follows: Figure 3 As shown:

[0085] S301: Sequentially acquire two ECG data points from the ECG data set.

[0086] It should be understood that ECG data includes sampling voltage and sampling time. Two ECG data points can be acquired sequentially according to the order of sampling time. Alternatively, two ECG data points can be acquired randomly in this embodiment. This embodiment does not limit the method of acquiring two ECG data points.

[0087] S302: Determine the ECG data with the largest sampling voltage as the temporary maximum ECG data, and determine the ECG data with the smallest sampling voltage as the temporary minimum ECG data.

[0088] The sampling voltages of the two sequentially acquired ECG data points are compared. The ECG data with the largest sampling voltage is determined as the temporary maximum ECG data, and the ECG data with the smallest sampling voltage is determined as the temporary minimum ECG data.

[0089] S303: Traverse the remaining ECG data in the ECG data group, and compare the sampling voltage corresponding to the current ECG data with the sampling voltage corresponding to the temporary maximum ECG data and the sampling voltage corresponding to the temporary minimum ECG data in turn.

[0090] S304: If the sampling voltage of the current ECG data is greater than the sampling voltage of the temporary maximum ECG data, update the temporary maximum ECG data to the current ECG data.

[0091] S305: If the sampling voltage of the current ECG data is less than the sampling voltage of the temporary minimum ECG data, update the temporary minimum ECG data to the current ECG data.

[0092] Iterate through the remaining ECG data in the ECG data set. For each ECG data, compare the sampled voltage of the current ECG data with the sampled voltages corresponding to the temporary maximum ECG data and the temporary minimum ECG data. If the sampled voltage of the current ECG data is greater than the sampled voltage of the temporary maximum ECG data, update the temporary maximum ECG data to the current ECG data; if the sampled voltage of the current ECG data is less than the sampled voltage of the temporary minimum ECG data, update the temporary minimum ECG data to the current ECG data.

[0093] S306: After traversing all ECG data in the ECG data group, determine the temporary maximum ECG data as the final maximum ECG data, and determine the temporary minimum ECG data as the final minimum ECG data.

[0094] In other words, after traversing all the ECG data in the ECG data set, the temporary maximum ECG data is the ECG data with the highest voltage in the current ECG data center, and the temporary minimum ECG data is the ECG data with the lowest voltage in the current ECG data center. Therefore, the temporary maximum ECG data can be determined as the final maximum ECG data, and the temporary minimum ECG data can be determined as the final minimum ECG data.

[0095] Furthermore, while the method described above for finding the maximum and minimum ECG voltages from the ECG data set is one approach in this embodiment, other methods can also be used to find the maximum and minimum ECG voltages from the ECG data set. For example, the ECG data set can be traversed twice, with one traversal selecting the maximum ECG data and the other traversal selecting the minimum ECG data. Therefore, this embodiment does not limit the method for finding the maximum and minimum ECG voltages from the ECG data.

[0096] In summary, this embodiment searches for the corresponding maximum and minimum ECG data in each ECG data group, achieving the goal of simultaneously preserving the maximum and minimum feature points, which is beneficial to improving the accuracy of the drawn ECG.

[0097] based on Figure 1 In its specific implementation, step S104 in this embodiment can be achieved through the following steps, such as... Figure 4 As shown:

[0098] S401: Determine the order of the maximum and minimum ECG data.

[0099] It should be understood that ECG data includes sampling time and sampling voltage. Therefore, the order of the maximum and minimum ECG data can be determined by comparing the sampling time of the maximum ECG data and the sampling time of the minimum ECG data.

[0100] S402: If the maximum ECG data is before the minimum ECG data, first draw the ECG in the display area of ​​the display module according to the maximum ECG data, and then draw the ECG in the display area of ​​the display module according to the minimum ECG data.

[0101] S403: If the maximum ECG data is after the minimum ECG data, first draw the ECG in the display area of ​​the display module according to the minimum ECG data, and then draw the ECG in the display area of ​​the display module according to the maximum ECG data.

[0102] It should be understood that drawing an electrocardiogram (ECG) in the display area based on the maximum and minimum ECG data only involves one pixel in each of the two adjacent columns of pixels in the display area. Therefore, after determining the order of the maximum and minimum ECG data, selecting one pixel from each of the two columns to light up completes the drawing of the maximum and minimum ECG data. This process continues until one pixel in each column of pixels in the display area is lit up, resulting in a complete ECG.

[0103] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0104] like Figure 5 The diagram shown is a structural schematic of a patient monitor according to an embodiment of the present invention. The patient monitor includes a monitoring module and a psychological monitoring module.

[0105] Among them, the monitoring module is used to acquire the electrocardiogram data of the target human body collected in real time by the monitoring module according to the preset electrocardiogram acquisition cycle, and send the electrocardiogram data to the display module.

[0106] The display module stores ECG data in its buffer and performs a search on the target number of ECG data each time the number of ECG data in the buffer reaches a certain threshold to obtain the maximum and minimum ECG data. It then determines whether the maximum and minimum ECG data have been found according to a preset query cycle. Each time the maximum and minimum ECG data are found, the ECG is drawn on the display area of ​​the display module based on the maximum and minimum ECG data.

[0107] For specific limitations regarding the monitor, please refer to the limitations on electrocardiogram (ECG) plotting methods mentioned above, which will not be repeated here. The various modules in the monitor can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of the computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each module.

[0108] like Figure 6 The diagram shown is a structural schematic of an electrocardiogram (ECG) plotting device disclosed in an embodiment of the present invention. This device is suitable for electronic devices with ECG data processing capabilities, such as patient monitors. The device in this embodiment specifically includes the following units:

[0109] The data acquisition unit 601 is used to acquire the electrocardiogram data of the target human body collected in real time by the monitoring module according to the preset electrocardiogram acquisition cycle.

[0110] The data traversal unit 602 is used to store the ECG data in the buffer of the display module, and when the number of ECG data in the buffer reaches the target number each time, it traverses the target number of ECG data to obtain the maximum ECG data and the minimum ECG data.

[0111] The data determination unit 603 is used to determine whether the maximum and minimum ECG data have been found according to a preset query period.

[0112] The electrocardiogram drawing unit 604 is used to draw an electrocardiogram in the display area of ​​the display module according to the maximum and minimum electrocardiogram data each time the maximum and minimum electrocardiogram data are found.

[0113] In one embodiment, the data traversal unit 602 is used for:

[0114] ECG data is continuously stored in the display module's cache, and the number of ECG data points is counted.

[0115] Once the number of ECG data reaches the target number, a ECG data group is determined.

[0116] After determining an ECG data set, the number of new ECG data stored in the buffer is recounted to determine a new ECG data set;

[0117] The ECG data sets were sequentially processed to obtain the maximum and minimum ECG data.

[0118] In one embodiment, the data traversal unit 602 is used for:

[0119] Sequentially acquire two ECG data points from the ECG data set;

[0120] The ECG data with the largest sampling voltage is determined as the temporary maximum ECG data, and the ECG data with the smallest sampling voltage is determined as the temporary minimum ECG data.

[0121] Traverse the remaining ECG data in the ECG data set, and compare the sampling voltage corresponding to the current ECG data with the sampling voltage corresponding to the temporary maximum ECG data and the temporary minimum ECG data respectively.

[0122] If the sampling voltage of the current ECG data is greater than the sampling voltage of the temporary maximum ECG data, update the temporary maximum ECG data to the current ECG data.

[0123] If the sampling voltage of the current ECG data is less than the sampling voltage of the temporary minimum ECG data, update the temporary minimum ECG data to the current ECG data.

[0124] After traversing all ECG data in the ECG data set, the temporary maximum ECG data is determined as the final maximum ECG data, and the temporary minimum ECG data is determined as the final minimum ECG data.

[0125] In one embodiment, the electrocardiogram drawing unit 604 is used for:

[0126] Determine the order in which the maximum and minimum ECG data are recorded;

[0127] If the maximum ECG data is before the minimum ECG data, first draw the ECG in the display area of ​​the display module according to the maximum ECG data, and then draw the ECG in the display area of ​​the display module according to the minimum ECG data.

[0128] If the maximum ECG data is after the minimum ECG data, the ECG is first drawn in the display area of ​​the display module according to the minimum ECG data, and then the ECG is drawn in the display area of ​​the display module according to the maximum ECG data.

[0129] In one embodiment, the target number of electrical data in the buffer is calculated based on the resolution and size of the display area of ​​the display module, the waveform drawing speed, and the sampling period of the monitoring module.

[0130] For specific limitations regarding the electrocardiogram (ECG) plotting device, please refer to the limitations regarding the ECG plotting method mentioned above, which will not be repeated here. Each module in the aforementioned ECG plotting device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the corresponding operations of each module.

[0131] In one implementation, this application discloses a computer device, which can be a server, and its internal structure diagram can be as follows. Figure 7 As shown, the computer device includes a processor, memory, network interface, and database connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and database. The internal memory provides an environment for the operation of the operating system and computer programs stored in the non-volatile storage media. The network interface is used for communication with external terminals via a network connection. The computer program, executed by the processor, can implement an electrocardiogram (ECG) plotting method.

[0132] In one embodiment, a computer device is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to perform the following steps:

[0133] The monitoring module acquires ECG data of the target human body in real time according to a preset ECG acquisition cycle; the ECG data includes the sampling time and sampling voltage of the ECG data.

[0134] The ECG data is stored in the buffer of the display module. When the number of ECG data in the buffer reaches the target number, the target number of ECG data is searched based on the sampling voltage to determine the maximum and minimum ECG data.

[0135] Determine whether the maximum and minimum ECG data are found according to the preset query cycle;

[0136] Each time the maximum and minimum ECG data are found, an ECG is drawn in the display area of ​​the display module according to the maximum and minimum ECG data.

[0137] In one implementation, embodiments of this application disclose a computer-readable storage medium that, when executed by a processor in a computer device, enables the computer device to perform various steps of any embodiment of an electrocardiogram (ECG) drawing method disclosed herein. The computer-readable storage medium may be non-volatile or volatile.

[0138] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, the computer program performing the following steps when executed by a processor:

[0139] The monitoring module acquires ECG data of the target human body in real time according to a preset ECG acquisition cycle; the ECG data includes the sampling time and sampling voltage of the ECG data.

[0140] The ECG data is stored in the buffer of the display module. When the number of ECG data in the buffer reaches the target number, the target number of ECG data is searched based on the sampling voltage to determine the maximum and minimum ECG data.

[0141] Determine whether the maximum and minimum ECG data are found according to the preset query cycle;

[0142] Each time the maximum and minimum ECG data are found, an ECG is drawn in the display area of ​​the display module according to the maximum and minimum ECG data.

[0143] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. This computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments of the above methods. 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 may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of 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 memory bus dynamic RAM (RDRAM), etc.

[0144] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the above-described division of functional units and modules is used as an example. In practical applications, the above functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0145] The above-described embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included within the protection scope of the present invention.

Claims

1. A method for drawing an electrocardiogram, characterized in that, The method includes: The monitoring module acquires real-time electrocardiogram (ECG) data of the target human body according to a preset ECG acquisition cycle; the ECG data includes the sampling time and sampling voltage of the ECG data. The ECG data is stored in the buffer of the display module, and each time the number of ECG data in the buffer reaches a target number, the target number of ECG data is searched based on the sampling voltage to determine the maximum and minimum ECG data. Determine whether the maximum and minimum ECG data are found according to a preset query cycle; Each time the maximum and minimum ECG data are found, an ECG is drawn in the display area of ​​the display module according to the maximum and minimum ECG data. The step of storing the ECG data in the buffer of the display module, and performing a search process on the target number of ECG data based on the sampling voltage each time the number of ECG data in the buffer reaches a target number, to determine the maximum and minimum ECG data, includes: The ECG data is continuously stored in the cache of the display module, and the number of ECG data is counted. When the number of ECG data reaches the target number, an ECG data group is determined; After determining one set of ECG data, the number of new ECG data stored in the buffer is recounted to determine a new set of ECG data. Each of the ECG data sets is sequentially searched to determine the maximum and minimum ECG data from each ECG data set based on the sampling voltage; The step of determining the maximum and minimum ECG data from each ECG data set based on the sampling voltage includes: Sequentially acquire two ECG data points from the ECG data set; The ECG data with the largest sampling voltage is determined as the temporary maximum ECG data, and the ECG data with the smallest sampling voltage is determined as the temporary minimum ECG data. Traverse the remaining ECG data in the ECG data group, and sequentially compare the sampling voltage corresponding to the current ECG data with the sampling voltage corresponding to the temporary maximum ECG data and the sampling voltage corresponding to the temporary minimum ECG data. If the sampling voltage of the current ECG data is greater than the sampling voltage of the temporary maximum ECG data, update the temporary maximum ECG data to the current ECG data; If the sampling voltage of the current ECG data is less than the sampling voltage of the temporary minimum ECG data, update the temporary minimum ECG data to the current ECG data; After traversing all the ECG data in the ECG data group, the temporary maximum ECG data is determined as the final maximum ECG data, and the temporary minimum ECG data is determined as the final minimum ECG data.

2. The electrocardiogram drawing method as described in claim 1, characterized in that, The step of drawing an electrocardiogram based on the maximum and minimum electrocardiogram data includes: Determine the order of the maximum and minimum ECG data; If the maximum ECG data is before the minimum ECG data, the ECG is first drawn in the display area of ​​the display module according to the maximum ECG data, and then the ECG is drawn in the display area of ​​the display module according to the minimum ECG data. If the maximum ECG data is after the minimum ECG data, the ECG is first drawn in the display area of ​​the display module according to the minimum ECG data, and then the ECG is drawn in the display area of ​​the display module according to the maximum ECG data.

3. The electrocardiogram drawing method as described in claim 1, characterized in that, The target number of ECG data in the buffer is calculated based on the resolution, size, waveform rendering speed of the display area of ​​the display module, and the sampling period of the monitoring module.

4. A patient monitor, characterized in that, The monitor includes a monitoring module and a display module; wherein... The monitoring module is used to acquire the electrocardiogram (ECG) data of the target human body collected in real time by the monitoring module according to a preset ECG acquisition cycle, and send the ECG data to the display module; the ECG data includes the sampling time and sampling voltage of the ECG data. The display module is configured to store the electrocardiogram (ECG) data in its cache area, and when the number of ECG data in the cache area reaches a target number, perform a search on the target number of ECG data to obtain the maximum and minimum ECG data; determine whether the maximum and minimum ECG data have been found according to a preset query cycle; and draw an ECG on the display area of ​​the display module according to the maximum and minimum ECG data each time it is determined that the maximum and minimum ECG data have been found. The step of storing the ECG data in the buffer of the display module, and performing a search process on the target number of ECG data based on the sampling voltage each time the number of ECG data in the buffer reaches a target number, to determine the maximum and minimum ECG data, includes: The ECG data is continuously stored in the cache of the display module, and the number of ECG data is counted. When the number of ECG data reaches the target number, an ECG data group is determined; After determining one set of ECG data, the number of new ECG data stored in the buffer is recounted to determine a new set of ECG data. Each of the ECG data sets is sequentially searched to determine the maximum and minimum ECG data from each ECG data set based on the sampling voltage; The step of determining the maximum and minimum ECG data from each ECG data set based on the sampling voltage includes: Sequentially acquire two ECG data points from the ECG data set; The ECG data with the largest sampling voltage is determined as the temporary maximum ECG data, and the ECG data with the smallest sampling voltage is determined as the temporary minimum ECG data. Traverse the remaining ECG data in the ECG data group, and sequentially compare the sampling voltage corresponding to the current ECG data with the sampling voltage corresponding to the temporary maximum ECG data and the sampling voltage corresponding to the temporary minimum ECG data. If the sampling voltage of the current ECG data is greater than the sampling voltage of the temporary maximum ECG data, update the temporary maximum ECG data to the current ECG data; If the sampling voltage of the current ECG data is less than the sampling voltage of the temporary minimum ECG data, update the temporary minimum ECG data to the current ECG data; After traversing all the ECG data in the ECG data group, the temporary maximum ECG data is determined as the final maximum ECG data, and the temporary minimum ECG data is determined as the final minimum ECG data.

5. An electrocardiogram (ECG) plotting device, characterized in that, The device includes: The data acquisition unit is used to acquire the electrocardiogram (ECG) data of the target human body collected in real time by the monitoring module according to a preset ECG acquisition cycle; the ECG data includes the sampling time and sampling voltage of the ECG data. The data search unit is used to store the ECG data in the buffer of the display module, and when the number of ECG data in the buffer reaches a target number each time, it performs a search process on the target number of ECG data to obtain the maximum ECG data and the minimum ECG data. The data determination unit is used to determine whether the maximum ECG data and the minimum ECG data have been found according to a preset query period; An electrocardiogram (ECG) drawing unit is used to draw an ECG in the display area of ​​the display module according to the maximum ECG data and the minimum ECG data each time the maximum ECG data and the minimum ECG data are determined to be found. The step of storing the ECG data in the buffer of the display module, and performing a search process on the target number of ECG data based on the sampling voltage each time the number of ECG data in the buffer reaches a target number, to determine the maximum and minimum ECG data, includes: The ECG data is continuously stored in the cache of the display module, and the number of ECG data is counted. When the number of ECG data reaches the target number, an ECG data group is determined; After determining one set of ECG data, the number of new ECG data stored in the buffer is recounted to determine a new set of ECG data. Each of the ECG data sets is sequentially searched to determine the maximum and minimum ECG data from each ECG data set based on the sampling voltage; The step of determining the maximum and minimum ECG data from each ECG data set based on the sampling voltage includes: Sequentially acquire two ECG data points from the ECG data set; The ECG data with the largest sampling voltage is determined as the temporary maximum ECG data, and the ECG data with the smallest sampling voltage is determined as the temporary minimum ECG data. Traverse the remaining ECG data in the ECG data group, and sequentially compare the sampling voltage corresponding to the current ECG data with the sampling voltage corresponding to the temporary maximum ECG data and the sampling voltage corresponding to the temporary minimum ECG data. If the sampling voltage of the current ECG data is greater than the sampling voltage of the temporary maximum ECG data, update the temporary maximum ECG data to the current ECG data; If the sampling voltage of the current ECG data is less than the sampling voltage of the temporary minimum ECG data, update the temporary minimum ECG data to the current ECG data; After traversing all the ECG data in the ECG data group, the temporary maximum ECG data is determined as the final maximum ECG data, and the temporary minimum ECG data is determined as the final minimum ECG data.

6. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the electrocardiogram drawing method as described in any one of claims 1 to 3.

7. A computer-readable storage medium storing a computer program, characterized in that, When the computer program is executed by the processor, it implements the electrocardiogram drawing method as described in any one of claims 1 to 3.

Citation Information

Patent Citations

  • Method for automatically adjusting baseline output position in drawing of multichannel electrocardiogram waveform

    CN105869197A

  • Audio data processing method and device, electronic equipment and storage medium

    CN111508456A