CN110755063B - Low-delay electrocardiogram drawing method - Google Patents

Low-delay electrocardiogram drawing method Download PDF

Info

Publication number
CN110755063B
CN110755063B CN201811164535.7A CN201811164535A CN110755063B CN 110755063 B CN110755063 B CN 110755063B CN 201811164535 A CN201811164535 A CN 201811164535A CN 110755063 B CN110755063 B CN 110755063B
Authority
CN
China
Prior art keywords
signal
electrocardiograph
interface
coordinate
array
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811164535.7A
Other languages
Chinese (zh)
Other versions
CN110755063A (en
Inventor
陈炜
杨芃
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Jiangsu Chuangyue Medical Technology Co ltd
Original Assignee
Jiangsu Chuangyue Medical Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Jiangsu Chuangyue Medical Technology Co ltd filed Critical Jiangsu Chuangyue Medical Technology Co ltd
Priority to CN201811164535.7A priority Critical patent/CN110755063B/en
Publication of CN110755063A publication Critical patent/CN110755063A/en
Application granted granted Critical
Publication of CN110755063B publication Critical patent/CN110755063B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/24Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
    • A61B5/316Modalities, i.e. specific diagnostic methods
    • A61B5/318Heart-related electrical modalities, e.g. electrocardiography [ECG]
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/24Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
    • A61B5/316Modalities, i.e. specific diagnostic methods
    • A61B5/318Heart-related electrical modalities, e.g. electrocardiography [ECG]
    • A61B5/339Displays specially adapted therefor

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Medical Informatics (AREA)
  • Biophysics (AREA)
  • Pathology (AREA)
  • Engineering & Computer Science (AREA)
  • Biomedical Technology (AREA)
  • Cardiology (AREA)
  • Physics & Mathematics (AREA)
  • Molecular Biology (AREA)
  • Surgery (AREA)
  • Animal Behavior & Ethology (AREA)
  • General Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Veterinary Medicine (AREA)
  • Measurement And Recording Of Electrical Phenomena And Electrical Characteristics Of The Living Body (AREA)

Abstract

The invention discloses a low-delay electrocardiogram drawing method, which comprises the following steps: (1) Pre-calculating horizontal coordinates corresponding to all points in the drawing area; (2) acquiring electrocardiosignals and recording; (3) Horizontally translating the signal in the step (2) when the next electrocardiosignal is acquired, simultaneously calculating the vertical coordinate of the newly added signal, and mapping the horizontal coordinate; (4) Repeating the step (2) and the step (3) until the acquisition of the electrocardiosignal is stopped. The electrocardiograph drawing method provided by the invention enables the electrocardiograph signal to extend from one side of the drawing area to the other side continuously, thereby achieving the purposes of reducing the calculation time of the abscissa of the electrocardiograph signal, ensuring the continuity of acquiring the electrocardiograph signal and facilitating the acquisition of the electrocardiograph signal in real time.

Description

Low-delay electrocardiogram drawing method
Technical Field
The invention relates to the field of electrocardiogram drawing, in particular to a low-delay electrocardiogram drawing method suitable for a smart phone platform.
Background
With increasing importance of health and increasing popularity of smartphones, there are currently many APPs capable of displaying health status on smartphones. The electrocardiograph drawing on the intelligent terminal (smart phone, tablet personal computer and the like) in the traditional technology is usually performed in a screen-brushing display mode, the electrocardiograph drawing is completed in a drawable fixed area, then new electrocardiograph signals are covered on the drawing area at fixed time intervals, continuity of the electrocardiograph signals is seriously affected, accuracy of electrocardiograph analysis is reduced, and meanwhile, the electrocardiograph information condition of a patient cannot be reflected in the first time in a mode of acquiring the electrocardiograph at fixed time intervals, and real-time of electrocardiograph acquisition is reduced.
Disclosure of Invention
In order to solve the technical problems, the invention provides a low-delay electrocardiograph drawing method so as to achieve the purposes of reducing the calculation time of the abscissa of the electrocardiograph signal, ensuring the continuity of acquiring the electrocardiograph signal and facilitating the acquisition of the electrocardiograph signal in real time.
In order to achieve the above purpose, the technical scheme of the invention is as follows:
a low-delay electrocardiogram drawing method comprises the following steps:
(1) The horizontal coordinates corresponding to all points in the drawing area are calculated in advance, specifically, the pixel interval between two signals is determined according to the signal sampling frequency of an electrocardiograph acquisition device, the maximum signal number Smax which can be drawn by an interface is calculated according to the maximum pixel number of the electrocardiograph drawing interface, the horizontal coordinates corresponding to each signal are calculated, a horizontal coordinate set is recorded into an array XARRAY, the first element in the array is the horizontal coordinate of the leftmost signal point of the interface, and the last element is the horizontal coordinate of the rightmost signal point of the interface;
(2) Step (2), converting the electrocardiosignals acquired each time into standard electrocardiosignal signal values according to an electrocardio format protocol, and recording the signal values into a buffer area array SBuffArray;
(3) In each signal drawing in the step (3), fully utilizing a signal coordinate queue obtained by the last drawing, horizontally translating the signal drawn last time by a method of vertical coordinate invariance and horizontal coordinate mapping, and simultaneously calculating the vertical coordinate of the newly added signal;
(4) Repeating the step (2) and the step (3) until the acquisition of the electrocardiosignal is stopped.
The invention provides a brand-new electrocardiograph drawing method, so that electrocardiograph signals continuously extend from one side of a drawing area to the other side, and the purposes of reducing the calculation time of the abscissa of the electrocardiograph signals, ensuring the continuity of acquiring the electrocardiograph signals and facilitating the acquisition of the electrocardiograph signals in real time are achieved.
Preferably, the display of the electrocardiographic signals acquired in the step (2) and the step (3) is based on a rendering mode of an OpenGLES high-performance graphical interface. By adopting the method, the rendering time of each electrocardiosignal graph is in the millisecond level, and the high-performance smooth display of the electrocardiosignal graph is convenient.
The invention has the following advantages:
1. the invention provides a brand-new electrocardiograph drawing method, so that electrocardiograph signals continuously extend from one side of a drawing area to the other side, and the purposes of reducing the calculation time of the abscissa of the electrocardiograph signals, ensuring the continuity of acquiring the electrocardiograph signals and facilitating the acquisition of the electrocardiograph signals in real time are achieved.
2. The invention displays the first-point signal graph based on the rendering mode of the OpenGLES high-performance graph interface, so that the rendering time of each electrocardiosignal graph is in the millisecond level, and the high-performance smooth display of the electrocardiosignal graph is convenient.
Detailed Description
The following description of the technical solution in the embodiments of the present invention is clear and complete.
The present invention will be described in further detail with reference to examples and embodiments.
In the actual use process, the electrocardiograph drawing steps are specifically as follows:
1. the pixel interval between two signals is determined according to the signal sampling frequency of the electrocardiograph acquisition equipment, the maximum signal number Smax which can be drawn by the interface is calculated according to the maximum pixel number of the electrocardiograph drawing interface, the abscissa corresponding to each signal is calculated, an abscissa set is recorded into an array XARRAY, wherein the first element in the array is the abscissa of the leftmost signal point of the interface, and the last element is the abscissa of the rightmost signal point of the interface (the drawing of the electrocardiograph in the embodiment is from right to left).
2. And converting the electrocardiosignals acquired each time into standard electrocardiosignal signal values according to an electrocardiosignal format protocol. The signal value is recorded in a buffer array SBuffArray, wherein the buffer array for interface drawing is divided into an ordinate section (YBuffArray) and an abscissa section (XBuffArray).
The storage method of the YBuffArray comprises the following steps: when a new signal array is added into the drawing buffer, firstly calculating the signal value of the signal to obtain the corresponding interface pixel ordinate, adding the interface pixel ordinate into the YBuffArray, and removing the members exceeding the maximum signal number when the length of the YBuffArray is greater than the maximum signal number;
the storage method of XBuffArray comprises the following conditions:
(1) When the number of the original SBuf array signals is 0, the abscissa of the new signals is the value of the member (Smax-number of new signals+position of the new signals in the new signal array) in XARRAy, and the value is put into XBuf array;
(2) When the number of the original SBuf array signals is larger than 0 and does not exceed the maximum number of signals which can be drawn by an electrocardiogram interface window, the value of each signal member corresponding to the original XBuffarray is changed into the value of the (Smax-original XBuffarray member number+the position of the original signal in the original XBuffarray) member in XArray, the abscissa of the new signal is the value of the (maximum number of signals-new number of signals+the position of the new signal in the new signal array) member in XArray, and the new signal is added into the XBuffarray;
(3) When the number of original SBuf array signals is larger than Smax, the value of the nth member of XBuffarray is the value of the nth member in XARRAy.
According to the method for calculating the abscissa, only the ordinate value corresponding to the newly added signal is calculated every time of refreshing, the ordinate value of the signal of the original buffer area is not required to be calculated again, and the abscissa values of all the signals only need to obtain the value of the corresponding position in the XARRAy.
Through the mode, the invention provides a brand-new electrocardiograph drawing method, so that electrocardiograph signals continuously extend from one side of a drawing area to the other side, and the purposes of reducing the calculation time of the abscissa of the electrocardiograph signals, ensuring the continuity of acquiring the electrocardiograph signals and facilitating the acquisition of the electrocardiograph signals in real time are achieved.
While only the preferred embodiment of the low-delay electrocardiographic method of the present disclosure has been described above, it should be noted that modifications and improvements can be made by those skilled in the art without departing from the inventive concept, which falls within the scope of the present disclosure.

Claims (2)

1. A low-delay electrocardiogram drawing method is characterized by comprising the following drawing steps:
(1) The horizontal coordinates corresponding to all points in the drawing area are calculated in advance, specifically, the pixel interval between two signals is determined according to the signal sampling frequency of an electrocardiograph acquisition device, the maximum signal number Smax which can be drawn by an interface is calculated according to the maximum pixel number of the electrocardiograph drawing interface, the horizontal coordinates corresponding to each signal are calculated, a horizontal coordinate set is recorded into an array XARRAY, the first element in the array is the horizontal coordinate of the leftmost signal point of the interface, and the last element is the horizontal coordinate of the rightmost signal point of the interface;
(2) Step (2), converting the electrocardiosignals acquired each time into standard electrocardiosignal signal values according to an electrocardio format protocol, and recording the signal values into a buffer area array SBuffArray;
(3) In each signal drawing in the step (3), fully utilizing a signal coordinate queue obtained by the last drawing, horizontally translating the signal drawn last time by a method of vertical coordinate invariance and horizontal coordinate mapping, and simultaneously calculating the vertical coordinate of the newly added signal;
(4) Repeating the step (2) and the step (3) until the acquisition of the electrocardiosignal is stopped.
2. The low-latency electrocardiogram drawing method according to claim 1, wherein the display of the electrocardiographic signals obtained in step (2) and step (3) is based on a rendering mode of an OpenGLES high-performance graphics interface.
CN201811164535.7A 2018-10-06 2018-10-06 Low-delay electrocardiogram drawing method Active CN110755063B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811164535.7A CN110755063B (en) 2018-10-06 2018-10-06 Low-delay electrocardiogram drawing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811164535.7A CN110755063B (en) 2018-10-06 2018-10-06 Low-delay electrocardiogram drawing method

Publications (2)

Publication Number Publication Date
CN110755063A CN110755063A (en) 2020-02-07
CN110755063B true CN110755063B (en) 2023-06-02

Family

ID=69328944

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811164535.7A Active CN110755063B (en) 2018-10-06 2018-10-06 Low-delay electrocardiogram drawing method

Country Status (1)

Country Link
CN (1) CN110755063B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63147244A (en) * 1986-12-10 1988-06-20 Fujitsu Ltd Picture memory circuit
US5945972A (en) * 1995-11-30 1999-08-31 Kabushiki Kaisha Toshiba Display device
CN1495616A (en) * 1998-09-15 2004-05-12 精工爱普生株式会社 Graphic system
CN105589969A (en) * 2015-12-23 2016-05-18 浙江大华技术股份有限公司 Data processing method and device
CN106557494A (en) * 2015-09-25 2017-04-05 北京国双科技有限公司 Update the method and device of row storage table
CN107577436A (en) * 2017-09-18 2018-01-12 杭州时趣信息技术有限公司 A kind of date storage method and device

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2009062176A2 (en) * 2007-11-09 2009-05-14 Google Inc. Activating applications based on accelerometer data
US8718748B2 (en) * 2011-03-29 2014-05-06 Kaliber Imaging Inc. System and methods for monitoring and assessing mobility
CN103549947A (en) * 2013-10-28 2014-02-05 上海理工大学 Real-time and accurate electrocardiographic wave drawing method of smartphone platforms
CN104866579A (en) * 2015-05-26 2015-08-26 北京海思敏医疗技术有限公司 Dynamic cardiogram graphical data processing method, client and server
WO2017214490A1 (en) * 2016-06-10 2017-12-14 The Regents Of The University Of California Wearable emotional feedback apparatus for autism spectrum disorder

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63147244A (en) * 1986-12-10 1988-06-20 Fujitsu Ltd Picture memory circuit
US5945972A (en) * 1995-11-30 1999-08-31 Kabushiki Kaisha Toshiba Display device
CN1495616A (en) * 1998-09-15 2004-05-12 精工爱普生株式会社 Graphic system
CN106557494A (en) * 2015-09-25 2017-04-05 北京国双科技有限公司 Update the method and device of row storage table
CN105589969A (en) * 2015-12-23 2016-05-18 浙江大华技术股份有限公司 Data processing method and device
CN107577436A (en) * 2017-09-18 2018-01-12 杭州时趣信息技术有限公司 A kind of date storage method and device

Also Published As

Publication number Publication date
CN110755063A (en) 2020-02-07

Similar Documents

Publication Publication Date Title
US11216925B2 (en) Image processing method, image processing system, and storage medium
EP3865996A2 (en) Method and apparatus for testing response speed of on-board equipment, device and storage medium
CN105046661A (en) Method, apparatus and intelligent terminal for improving video beautification efficiency
CN113963148B (en) Object detection method, object detection model training method and device
CN111832449A (en) Engineering drawing display method and related device
CN106771589A (en) A kind of implementation method of the real-time Waterfall plot of spectrum analysis
CN107049257A (en) Method, device and the wearable device of display waveform
CN110755063B (en) Low-delay electrocardiogram drawing method
CN114469132A (en) Model training method and device, electronic equipment and storage medium
CN117746125A (en) Training method and device of image processing model and electronic equipment
CN112362939A (en) Signal recording method and device, lower computer, upper computer and medium
CN209897174U (en) Video image processing device based on FPGA
CN105204799B (en) A kind of raising method of multichannel storage logic analyser display refresh rates deeply
CN116659646A (en) Fan blade vibration detection method and device based on machine vision
CN110633630A (en) Behavior identification method and device and terminal equipment
WO2019134685A1 (en) Oscilloscope data processing method and device, and oscilloscope
CN115457174A (en) Model training method, model training device, motion mapping method, motion mapping device, electronic equipment and storage medium
CN109009090B (en) Histogram-based brain signal diagram display method
JP2019164232A5 (en) Display terminals, methods, programs, shared systems and methods
CN114758400A (en) Non-contact human body blood oxygen saturation detection method, device and equipment
CN110613444B (en) Method and device for displaying mother-fetus mixed electrocardiosignals
CN112699165A (en) Method and system for time series data down-sampling
CN110796062B (en) Method and device for precisely matching and displaying object frame and storage device
CN204394488U (en) Mobile medical system
CN112426170A (en) Placenta thickness determination method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant