Nothing Special   »   [go: up one dir, main page]

CN107049257A - Method, device and the wearable device of display waveform - Google Patents

Method, device and the wearable device of display waveform Download PDF

Info

Publication number
CN107049257A
CN107049257A CN201710265471.9A CN201710265471A CN107049257A CN 107049257 A CN107049257 A CN 107049257A CN 201710265471 A CN201710265471 A CN 201710265471A CN 107049257 A CN107049257 A CN 107049257A
Authority
CN
China
Prior art keywords
waveform
data sequence
data
scaling range
amplitude
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.)
Pending
Application number
CN201710265471.9A
Other languages
Chinese (zh)
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.)
Chengdu Jikang Technology Co Ltd
Original Assignee
Chengdu Jikang 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 Chengdu Jikang Technology Co Ltd filed Critical Chengdu Jikang Technology Co Ltd
Priority to CN201710265471.9A priority Critical patent/CN107049257A/en
Publication of CN107049257A publication Critical patent/CN107049257A/en
Pending legal-status Critical Current

Links

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/74Details of notification to user or communication with user or patient ; user input means
    • A61B5/742Details of notification to user or communication with user or patient ; user input means using visual displays
    • A61B5/7435Displaying user selection data, e.g. icons in a graphical user interface
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/68Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient
    • A61B5/6801Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient specially adapted to be attached to or worn on the body surface
    • A61B5/6802Sensor mounted on worn items

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Molecular Biology (AREA)
  • Biophysics (AREA)
  • Pathology (AREA)
  • Biomedical Technology (AREA)
  • Veterinary Medicine (AREA)
  • Medical Informatics (AREA)
  • Physics & Mathematics (AREA)
  • Surgery (AREA)
  • Animal Behavior & Ethology (AREA)
  • General Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Human Computer Interaction (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The invention provides a kind of method of display waveform, device and wearable device.Methods described includes:The data sequence of preset length is obtained, wherein, the data sequence of the preset length one screen waveform of correspondence, each data in the data sequence represent the amplitude of the waveform;It is adaptively adjusted the waveform zoom ranges of the data sequence;According to the waveform zoom ranges, the display location of each data in the data sequence is calculated;Trace data formation waveform.By the above-mentioned means, the present invention can be adaptively adjusted the form size of waveform, the minutia that waveform can be seen clearly by making user can also recognize the variation tendency of the amplitude fluctuation difference of waveform.

Description

Method and device for displaying waveform and wearable device
Technical Field
The invention relates to the technical field of waveform display, in particular to a method and a device for displaying a waveform and wearable equipment.
Background
Conventional display carriers for physiological waveforms (e.g., heart rate waveforms, blood pressure waveforms, electrocardiographic waveforms, etc.) are typically large-screen display devices, such as PC monitors or displays of dedicated medical devices, and display methods thereof are typically based on fixed standards and fixed formats, so that standard reports can be output for review and analysis by professional medical personnel.
For devices with limited display screen size, such as wearable devices, the physiological waveform is mainly displayed to improve the user experience of the user, and the output waveform is mainly provided for the general population to see and understand the general physical condition. In the traditional large screen display method, the display step is positioned in a terminal link of data processing, the waveform data contains less noise, and the fluctuation range is stable, so that the display proportion of the waveform size can be fixed, and the observation requirement of a user is met; and the waveform is displayed in the wearable device, the display step is close to the front-end link of data processing, and the noise generated by motion artifact noise and other physiological signals of a human body is accompanied in the display process, so that the waveform data contains more interference and the fluctuation range is unstable. Therefore, there is a need for a waveform display method applied to a wearable device, which can adaptively control and adjust the scaling of the waveform according to the data with dynamic variation of the fluctuation range, so that the user can easily see the waveform shape and its detailed features.
Disclosure of Invention
In order to solve the technical problems, the invention provides the following technical scheme.
According to an aspect of the present invention, there is provided a method of displaying a waveform, applied to a wearable device, the method comprising: acquiring a data sequence with a preset length, wherein the data sequence with the preset length corresponds to a one-screen waveform, and each data in the data sequence represents the amplitude of the waveform; adaptively adjusting a waveform scaling range of the data sequence; calculating the display position of each data in the data sequence according to the waveform scaling range; the trace data forms a waveform.
Preferably, the method for adaptively adjusting the waveform scaling range of the data sequence comprises:
calculating an amplitude fluctuation difference value of the data sequence, wherein the amplitude fluctuation difference value represents a difference value between a maximum amplitude value and a minimum amplitude value in the data sequence;
if the amplitude fluctuation difference value is larger than a first scaling interval threshold value, taking the amplitude fluctuation difference value as a waveform scaling range of the data sequence, and if timing exists, stopping timing and clearing timing time;
if the amplitude fluctuation difference value is not larger than a first zooming interval threshold value and the amplitude fluctuation difference value is not smaller than a second zooming interval threshold value, taking the waveform zooming range of the displayed waveform of the previous screen as the waveform zooming range of the data sequence, and if timing exists, stopping timing and clearing timing time;
timing if the amplitude fluctuation difference value is smaller than the second scaling interval threshold value; if the timing time does not reach the preset time, taking the waveform scaling range of the displayed waveform of the previous screen as the waveform scaling range of the data sequence, and continuing timing; if the timing time reaches or exceeds the preset time, reducing the waveform scaling range of the displayed waveform of the previous screen, taking the reduced waveform scaling range as the waveform scaling range of the data sequence, stopping timing and clearing the timing time;
wherein the first scaling interval threshold is greater than the second scaling interval threshold, and the initial timing time is 0.
Preferably, the first zoom interval threshold is a waveform zoom range of a waveform displayed on a previous screen, and the second zoom interval threshold is half of the waveform zoom range of the waveform displayed on the previous screen.
Preferably, the method for reducing the waveform scaling range of the waveform displayed on the previous screen comprises the following steps: multiplying a waveform scaling range of a waveform displayed on a previous screen by a reduction factor, wherein the reduction factor is greater than or equal to 0.9 and the reduction factor is less than 1.
Preferably, the method of displaying a waveform further comprises: adaptively adjusting a waveform base value of the data sequence according to a formula h0 ═ Amax + Amin)/2-R/2, wherein h0 represents the waveform base value, Amax represents a maximum amplitude value in the data sequence, Amin represents a minimum amplitude value in the data sequence, and R represents a waveform scaling range of the data sequence.
Preferably, calculating the display position of each data in the data sequence includes calculating a display height position of each data in a display area, and the calculation of the height position adopts a formula H ═ a-H0)/R · H, where H denotes the display height position of the data, a denotes the amplitude of the data, H0 denotes the waveform base value of the data sequence, R denotes the waveform scaling range of the data sequence, and H denotes the physical height of the display area.
According to another aspect of the present invention, there is provided an apparatus for displaying waveforms, applied to a wearable device, the apparatus including: the data acquisition module is used for acquiring a data sequence with a preset length, wherein the data sequence with the preset length corresponds to a one-screen waveform, and each data in the data sequence represents the amplitude of the waveform; the waveform scaling range self-adaptive adjusting module is used for self-adaptively adjusting the display scale of the corresponding waveform amplitude of the data sequence according to the amplitude fluctuation difference of the data sequence, wherein the amplitude fluctuation difference represents the difference between the maximum amplitude and the minimum amplitude in the data sequence; the data display position calculation module is used for calculating the display position of each data in the data sequence; and the waveform drawing module is used for tracing each data in the display position of each data and connecting each data point to form a waveform.
Preferably, the waveform scaling range adaptive adjustment module includes: the first adjusting unit is used for taking the amplitude fluctuation difference value of the data sequence as the waveform scaling range of the data sequence when the amplitude fluctuation difference value of the data sequence is larger than the waveform scaling range of the displayed waveform of the previous screen; the timing unit is used for recording the duration that the amplitude fluctuation difference value of the data sequence is continuously smaller than half of the waveform scaling range of the displayed waveform of the previous screen when the amplitude fluctuation difference value of the data sequence is smaller than half of the waveform scaling range of the displayed waveform of the previous screen; the second adjusting unit is used for reducing the waveform scaling range of the displayed waveform of the previous screen when the time recorded by the timing unit reaches or exceeds the preset time, and taking the reduced waveform scaling range as the waveform scaling range of the data sequence; and the third adjusting unit is used for taking the waveform scaling range of the displayed waveform of the previous screen as the waveform scaling range of the data sequence when the amplitude fluctuation difference of the data sequence is not more than the waveform scaling range of the displayed waveform of the previous screen and not less than a half of the waveform scaling range of the displayed waveform of the previous screen or when the time recorded by the timing unit does not reach the preset time.
Preferably, the apparatus for displaying a waveform further includes a waveform base value adaptive adjustment module, which adjusts a waveform base value of the data sequence according to a formula h0 ═ 2-R/2, where h0 denotes a waveform base value, R denotes a waveform scaling range of the data sequence, Amax denotes a maximum amplitude of the data sequence, and Amin denotes a minimum amplitude of the data sequence.
According to another aspect of the present invention, there is provided a wearable device comprising a memory storing a program comprising the steps of the foregoing method of displaying a waveform, and a processor, the wearable device being configured to perform the steps of the foregoing method of displaying a waveform by the processor.
According to the technical scheme provided by the invention, when the amplitude fluctuation difference value of the data sequence is increased, the waveform zooming range is synchronously amplified, and the waveform with the increased form is displayed in real time; when the amplitude fluctuation difference value of the waveform data is determined to be reduced by at least half, gradually reducing the waveform scaling range, gradually enlarging the display scale of the waveform form due to the unchanged physical display size, and gradually and approximately enlarging and displaying the waveform form with smaller fluctuation amplitude, so that a user can capture the reduction trend of the amplitude fluctuation difference value and can identify the detail characteristics in the enlarged waveform form; when the amplitude fluctuation difference value is reduced by less than half or when the amplitude fluctuation difference value is not determined to be reduced by at least half, the waveform zooming range is kept unchanged, the waveform form is not amplified and displayed, and the waveform form can be clearly displayed to a certain extent. The technical scheme provided by the invention can adaptively adjust the form display gain of the waveform, so that a user can see the detail characteristics of the waveform clearly and can identify the size change trend of the waveform amplitude fluctuation difference.
Drawings
Fig. 1 shows a block diagram of a wearable device according to an exemplary embodiment of the present invention;
fig. 2A shows a schematic view of a display area of a display module of a wearable device according to an exemplary embodiment of the invention;
FIG. 2B shows a flow diagram of a method of displaying a waveform;
FIG. 3A shows a flow diagram of a method of displaying a waveform according to an exemplary embodiment of the invention;
FIG. 3B shows a flowchart for adaptively adjusting a waveform scaling range according to an exemplary embodiment of the present invention;
fig. 4A illustrates a block diagram of a structure of an apparatus for displaying a waveform according to an exemplary embodiment of the present invention;
fig. 4B shows a block diagram of a structure of the waveform scaling range adaptive adjustment module according to an exemplary embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a block diagram illustrating a wearable device according to an embodiment of the present invention.
Referring to fig. 1, a wearable device performing a waveform display method according to various embodiments of the present disclosure includes a main processor, and a sensor module, a communication module, a display module, and a storage module connected to the main processor.
The sensor module can acquire various sensor data, for example, electrocardio data acquired through electrode acquisition, heart rate data acquired through PPG sensor acquisition, motion state data acquired through acceleration sensor acquisition, and the like.
The communication module is used for enabling the wearable device to mutually transmit data with an external device in a wired or wireless network mode, for example, the wearable device can communicate with other mobile terminals in a wireless mode such as Bluetooth and WIFI or a USB wired mode, sensor data in the wearable device is transmitted to other mobile terminals, or the wearable device receives instructions from application programs loaded on other mobile terminals.
The display module is used for displaying the data measurement results provided by the sensor module and providing an interface for interaction between a user and the device, for example, the user can set display parameters or browse the measurement results through the display module, and the display style of the measurement results can be text type, list type or graph type.
The storage module is used for storing sensor data and storing relevant program instructions of a measurement function, a communication function, a display function and the like of the equipment executed by the main processor.
In particular, the wearable device of various embodiments of the present disclosure may be a wrist wearable device, such as a watch or bracelet.
Fig. 2A is a schematic diagram illustrating a display area of a display module of a wearable device according to various embodiments of the present disclosure.
Referring to fig. 2A, the length of the display area is W, the height is H, the waveform base value (initial reference height) of the waveform map is H0, and the waveform scaling range of the waveform map is R. In an embodiment of the disclosure, the display area is used for displaying a waveform of a data sequence containing two dimensional information, for example, displaying time information in a length direction and magnitude information in a height direction. For the display position in the height direction, which is the amplitude direction of the waveform data, the formula H ═ a-H0)/R · H is adopted, where H denotes the display height of the data in the display area, a denotes the amplitude size of the data, and the form size Δ H of the waveform is Δ a/R · H. As will be readily understood, when the waveform scaling range R is fixed and the amplitude fluctuation difference Δ a becomes smaller, Δ h becomes smaller and the waveform form displayed becomes smaller; when the amplitude fluctuation difference Δ a is fixed and the waveform scaling range R becomes smaller, Δ h becomes larger and the waveform form displayed becomes larger. The waveform base value h0 indicates a start reference line for calculating the height position of the data display, and may be a negative value, i.e., may be located in a region other than the lower portion of the display region. It will be appreciated that R is set such that (A-H0)/R is less than or equal to 1 to display a complete waveform within a limited range of H, avoiding waveform truncation.
Fig. 2B is a flow diagram of an exemplary method of displaying a waveform for a wearable device.
Referring to fig. 2B, a method for displaying sensor data by a display module to form a waveform graph, for example, a method for displaying electrocardiographic data to form an electrocardiographic graph or PPG heart rate data to form a PPG heart rate graph, includes the steps of:
1) acquiring a waveform data sequence;
2) determining the display scale of the waveform;
3) calculating a display position of the waveform data;
4) the trace data forms a waveform.
In more detail, taking the example of displaying an electrocardiogram waveform as an example, the method for refreshing and displaying waveform data of one screen at intervals of T1 includes the steps:
acquiring a waveform data sequence: when the waveform is displayed on the full screen, the main processor acquires data with a preset length N from the sensor module, wherein the data length N is determined by the sampling rate S of the electrocardio data, the heartbeat speed (heart rate) and the heartbeat number displayed on the full screen. For example, if three heartbeat waveforms are to be displayed on full screen at a sampling rate of 512S/S, and assuming that the heartbeat rate is 60bpm, it can be known that the time length T2 of data when the waveforms are displayed on full screen is 3S, i.e., the data length N when the waveforms are displayed on full screen is 1536 sampling points. In the embodiments of the present disclosure, the refresh time T1 of the waveform is set to 100ms, and it is understood that when the real-time measurement and the waveform display are started, for example, within the time T2 of starting the display in the above example, since T1 is smaller than T2, the length of the acquired waveform data sequence may be smaller than N. Generally, the data transmitted from the sensor module to the main processor has an agreed transmission protocol format, and the data acquired by the main processor includes protocol format data other than the sensor data, so that the process of acquiring the data by the main processor further includes a data parsing step to obtain pure sensor data. It will be appreciated that when the heart rate is too fast or too slow, the data length N may be varied according to different heart rate values so that the number of waveforms displayed per screen is moderate.
Determining the waveform display scale of the waveform data: from the height display formula H of the waveform data being (a-H0)/R · H, it can be seen that the display ratio of the waveform form (amplitude fluctuation difference) is determined by 1/R. And calculating a difference D between the maximum amplitude Amax and the minimum amplitude Amin of the data sequence based on the waveform data sequence obtained in the data acquisition step. In some embodiments of the present disclosure, when the waveform display is started, the waveform scaling range R of the data sequence may be taken as the maximum sample value, and the base value h0 is taken as 0, where the maximum sample value is determined by the number of sample bits of the corresponding sensor of the sensor module, for example, the maximum sample value corresponding to sixteen bits of sensing data is 65535. In some embodiments of the present disclosure, the waveform scaling range R ═ D of the data sequence may also be taken, and the waveform base value h0 ═ (Amax + Amin)/2-D/2 may also be taken.
Calculating the display position of the waveform data: and calculating the display position of each sampling point by taking the length direction of the display area as the time distribution direction of the data sequence and the height direction of the display area as the amplitude distribution direction of the data sequence. For example, the data sequence is displayed in chronological order along the direction of increasing length, and if the display position in the length direction of the first sample point in the data sequence is W0, the display position in the length direction of the mth sample point (m of the first sample point is 0) is W0+ m · W/N; the direction of increasing height represents the direction of increasing amplitude, and the display position in the height direction is determined by the sampling value (amplitude) Am of the sampling point, and in various embodiments of the present disclosure, the display position hm is (Am-H0)/R · H. In summary, the display position (wm, hm) of each sampling value in the data sequence in the display area can be obtained, where the value range of m is [0, N-1 ].
The trace data forms a waveform: based on the display position (wm, hm) of each data in the data sequence, the main processor controls the display module to trace each data point in the data sequence in the display area of W × H, and the data points are connected in line sequence to form a continuous oscillogram.
Fig. 3A is a flow diagram illustrating a method of displaying a waveform of a wearable device according to one embodiment of the present disclosure.
Referring to fig. 3A, a method of refreshing real-time sensor data by a display module to display a dynamic waveform map (e.g., a wrist PPG heart rate waveform) includes:
step 310, acquiring a data sequence corresponding to a one-screen waveform length;
step 320, adaptively adjusting the waveform scaling range of the waveform corresponding to the data sequence;
step 3201, adaptively adjusting a waveform base value of a waveform corresponding to the data sequence;
step 330, calculating the display position of each sampling point in the data sequence;
in step 340, the trace data is formed into a waveform.
Fig. 3B is a flowchart illustrating the adaptive adjustment of the waveform scaling range in step 320.
In various embodiments of the present disclosure, some steps of the method for refreshing data dynamic display waveforms shown in fig. 3A and 3B are the same as some steps or ideas of fig. 2B, and the same technical features are identified by the same symbols. R (0) represents a waveform scaling range of the data sequence when the full screen waveform is first displayed, in some embodiments of the present disclosure, the initial waveform scaling range R (0) is taken as a maximum sample value, wherein the maximum sample value is determined by a number of sample bits of a corresponding sensor of the sensor module; in other embodiments of the present disclosure, the initial waveform scaling range R (0) may also be a difference between a maximum value and a minimum value of the first full-screen waveform data sequence, and when the display is started, because the noise is large, R (0) calculated from the difference between the maximum value and the minimum value also approaches the maximum sampling value. In more detail, the method of refreshing data display dynamic waveforms comprises the steps of:
step 310, acquiring a data sequence corresponding to a one-screen waveform: the display module refreshes and displays one screen of data at intervals of T1, the length of the data displayed on each screen is N, the length of the data refreshed on each screen x1 is S.T 1, and S represents the sampling rate of the data. After each screen of data is displayed, the first x1 data of the displayed waveform data sequence of the screen are shifted out of the sequence, the last (N-x1) data are shifted forward by x1 points in time sequence, and the updated x1 latest data are arranged at the last part of the sequence to form a new refreshed data sequence consisting of N data.
Step S320, referring to fig. 3B, the method for adaptively adjusting the waveform scaling range specifically includes:
in step S321, the amplitude fluctuation difference of the data sequence is calculated. The data sequence corresponding to each screen of waveform is composed of N amplitude values, wherein the N amplitude values include a maximum amplitude value Amax (N) and a minimum amplitude value Amin (N), and the difference value of the maximum amplitude value Amax (N) and the minimum amplitude value Amin (N) is an amplitude fluctuation difference value D (N). The difference in amplitude fluctuation of the waveform at the time of the first full-screen display is D (0), and D (0) represents the difference between Amax (0) and Amin (0) of the first full-screen data sequence.
Step S322, determining whether the amplitude fluctuation difference d (n) of the current data sequence is greater than the waveform scaling range R (n-1) of the waveform displayed on the previous screen, where the waveform scaling range of the data sequence corresponding to the first full-screen display waveform is R (0).
In step S323, when d (n) > R (n-1), the waveform scaling range of the data sequence is adjusted, specifically, the waveform scaling range R (n) ═ d (n) is taken, and if the timing tag is set, the timing tag is set to be null, and the timing value is cleared.
In step S324, when D (n) is not more than R (n-1), it is determined whether D (n) is less than R (n-1)/2.
In step S325, if the timing tag is empty, the timing tag is set to start timing, for example, the timing unit may count time by continuously increasing or continuously decreasing when d (n) < R (n-1)/2.
In step S326, when d (n) < R (n-1)/2 and the timer value does not reach the preset time T3, the timer continues to count the time, and the waveform scaling range of the data sequence is adjusted, specifically, the waveform scaling range R (n) ═ R (n-1) is taken.
Step S327, when d (n) < R (n-1)/2 and the timing value reaches or exceeds the preset time T3, adjusting the waveform scaling range of the data sequence, specifically, taking the waveform scaling range R (n) ═ k · R (n-1), where 0.9 ≦ k < 1; in various embodiments of the present disclosure, T3 ═ 2s, k ═ 0.9; the timing tag is then nulled and the timing value is cleared.
In step S328, when R (n-1)/2 ≦ d (n) ≦ R (n-1), the waveform scaling range of the data sequence is adjusted, specifically, the waveform scaling range R (n) ≦ R (n-1) is taken, and if the timing tag is set at this time, the timing tag is set to be null, and the timing value is cleared.
Where n ≧ 1, n represents the number of times the data is refreshed after the first screen waveform is displayed, e.g., R (1) represents the waveform scaling range of the data sequence corresponding to the second screen waveform, R (2) represents the waveform scaling range of the data sequence corresponding to the third screen waveform, Amax (1) represents the maximum amplitude of the data sequence corresponding to the second screen waveform, and Amin (1) represents the minimum amplitude of the data sequence corresponding to the second screen waveform. The initial timing tag is in a null state, and the initial timing value is 0.
Step S3201, adaptively adjusting a waveform base value of the data sequence, where the waveform base value h0(n) ═ amin (n) can be taken; preferably, h0(n) ═ amax (n) + amin (n))/2-R (n-1)/2 may be taken on the basis of R (n) obtained by adaptively adjusting the waveform scaling range, so that the waveform is held in the center of the display area.
Step S330, calculating a display position of the waveform data: and calculating the display position of each sampling point by taking the length direction of the display area as the time distribution direction of the data sequence and the height direction of the display area as the amplitude distribution direction of the data sequence. For example, the data is displayed in chronological order along the increasing direction of the length to form a waveform, and if the display position in the length direction of the first sample point in the data sequence is W0, the display position in the length direction of the mth sample point (the first sample point m is 0) is W0+ m · W/N; in various embodiments of the present disclosure, the height display position hm ═ Am-H0(n)) · H/r (n) may be taken, where H0(n) represents a waveform base value of the current data sequence to be displayed, and r (n) represents a waveform scaling range of the current data sequence to be displayed. In summary, the display position (wm, hm) of each sampling value in the current waveform data sequence to be displayed in the display area can be obtained, and the value range of m is [0, N-1 ].
S340, forming a waveform by the trace data: based on the display position (wm, hm) of each data in the data sequence, the main processor controls the display module to trace N data points in a W multiplied by H display area, and the data points are sequentially connected by line segments to form a continuous wave-shaped graph.
By the method of steps S321 to S323, when the amplitude fluctuation difference value is larger than the waveform scaling range of the displayed waveform of the previous screen, the waveform scaling range of the current data sequence is immediately enlarged, and the waveform scaling range r (n) ═ d (n) is taken, so as to avoid saturation caused by truncation of the top of the waveform, and the display form of the waveform is also enlarged, so that the user can accurately identify the increasing trend of the amplitude fluctuation difference value.
When the amplitude fluctuation difference becomes much smaller (less than or equal to the previous one) than the waveform fluctuation range of the displayed waveform of the previous screenHalf of a waveform scaling range), if the waveform scaling range is not adjusted, the displayed waveform form is small, and the detail features are unclear; however, if the waveform with a small amplitude fluctuation difference is displayed in an amplifying manner at one time, the user may misunderstand that the measured waveform amplitude fluctuation difference is not small, or even misunderstand that the measured waveform amplitude fluctuation difference is large. By the method of steps S321, S324, S325, and S327, when the amplitude fluctuation difference of the data sequence to be displayed is much smaller than the waveform scaling range of the waveform displayed on the previous screen, the timing judgment is increased to eliminate the error processing caused by the smaller abrupt change. When the amplitude fluctuation difference value becomes much smaller and is stable for a time length of T3, taking a waveform scaling range R (n) k.R (n-1), wherein k is close to 1 and less than 1; until when D (n + m) of a certain screen is not less than R (n + m-1)/2, and generally D (n + m) is not greater than R (n + m-1), the process proceeds to step S328, where R (n + m) ═ R (n + m-1), where R (n + m-1) ═ k, is taken and amplification is not continuedmR (n-1). In a plurality of embodiments of the present disclosure, k is 0.9, and based on the height display scale of the waveform in the previous screen, the height scale of the waveform is approximately enlarged on a screen-by-screen basis by 1/k, in this way, the enlargement scale of the waveform height is inconsistent with the reduction scale of the original data of the waveform, and the enlargement degree is lower than the original reduction degree, so that a trend of overall reduction is presented in the process of changing the waveform form, and simultaneously, the waveform form can be gradually increased and enlarged, and the display effect of the local detail features of the waveform is improved.
When the amplitude fluctuation difference value becomes smaller than the waveform scaling range of the waveform displayed on the previous screen, for example, in the above-described embodiment, when R (n-1)/2 ≦ d (n) ≦ R (n-1), the waveform scaling range is kept unchanged, and the waveform scaling range R (n) ≦ R (n-1) is taken, in which case, the trend of the waveform shape becoming smaller and the trend of the amplitude fluctuation difference value becoming smaller are kept consistent, and at the same time, the waveform can maintain a certain detail feature presentation effect.
In the above embodiment, when displaying each screen of the data sequence, the waveform base value h0(n) ((amax (n)) + amin (n))/2-r (n))/2 is updated in real time according to the maximum value and the minimum value of the data sequence, so that the displayed waveform is located in the center of the display area as much as possible, and the display effect is better.
Fig. 4A illustrates a block diagram of a device for displaying a waveform according to an exemplary embodiment of the present invention.
Referring to fig. 4A, the apparatus for displaying a waveform includes a data acquisition module 410, a waveform scaling range adaptive adjustment module 420, a data display position calculation module 430, and a waveform drawing module 440. Wherein,
the data obtaining module 410 is configured to obtain a data sequence with a preset length N, where the data sequence with the length N corresponds to a waveform of one screen, and each data in the data sequence represents an amplitude of the waveform.
And the waveform scaling range adaptive adjusting module 420 is configured to adaptively adjust a display scale of a corresponding waveform amplitude of the data sequence according to an amplitude fluctuation difference of the data sequence, where the amplitude fluctuation difference represents a difference between a maximum amplitude and a minimum amplitude in the data sequence.
Preferably, the apparatus for displaying a waveform further includes a waveform base value adaptive adjustment module 4201, the waveform base value adaptive adjustment module 4201 adjusts the waveform base value according to a formula h0 ═ of (Amax + Amin)/2-R/2, where h0 represents a waveform base value, R represents a waveform scaling range of the data sequence, Amax represents a maximum amplitude of the data sequence, and Amin represents a minimum amplitude of the data sequence. The displayed waveform is kept at the center of the display area.
And a data display position calculation module 430, configured to calculate a display position of each sample data in the data sequence in the height direction based on the waveform scaling range R, the waveform base value H0, the height H of the display area, and the amplitude a of the data, and calculate a display position of each sample data in the time direction based on the data length N and the length W of the display area.
And a waveform tracing module 440 for tracing each sampled data point at the calculated display position and connecting each data point to form a waveform.
Fig. 4B shows a block diagram of a structure of the waveform scaling range adaptive adjustment module according to an exemplary embodiment of the present invention.
Referring to fig. 4B, the waveform scaling range adaptive adjustment module includes:
a first adjusting unit 421, configured to use the amplitude fluctuation difference value of the data sequence as a waveform scaling range of the data sequence when the amplitude fluctuation difference value is larger than a waveform scaling range of a displayed waveform of a previous screen;
a timing unit 422, configured to record a duration that an amplitude fluctuation difference of the data sequence is continuously smaller than a half of a waveform scaling range of a waveform displayed on a previous screen when the amplitude fluctuation difference of the data sequence is smaller than the half of the waveform scaling range of the waveform displayed on the previous screen;
a second adjusting unit 423, configured to, when the time recorded by the timing unit reaches or exceeds a preset time, narrow a waveform scaling range of a waveform displayed on a previous screen, and take the narrowed waveform scaling range as a waveform scaling range of the data sequence;
a third adjusting unit 424, configured to, when the amplitude fluctuation difference of the data sequence is not greater than the waveform scaling range of the displayed waveform of the previous screen and is not less than a half of the waveform scaling range of the displayed waveform of the previous screen, or when the time recorded by the timing unit does not reach the preset time, take the waveform scaling range of the displayed waveform of the previous screen as the waveform scaling range of the data sequence.
As can be seen from the above embodiments, the technical scheme of the present disclosure is suitable for wearable devices to display physiological waveforms, can adaptively adjust the scaling range of the waveforms, and can clearly display the detailed features of the waveforms no matter the amplitude fluctuation difference is large or the amplitude fluctuation difference is small; in addition, in the process that the amplitude fluctuation difference value becomes larger or smaller, the display method disclosed by the invention cannot cause the misjudgment of the variation trend of the amplitude fluctuation difference value by a user.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A method of displaying a waveform for application on a wearable device, the method comprising:
acquiring a data sequence with a preset length, wherein the data sequence with the preset length corresponds to a one-screen waveform, and each data in the data sequence represents the amplitude of the waveform;
adaptively adjusting a waveform scaling range of the data sequence;
calculating the display position of each data in the data sequence according to the waveform scaling range;
the trace data forms a waveform.
2. The method of claim 1, wherein the method of adaptively adjusting the waveform scaling range of the data sequence comprises:
calculating an amplitude fluctuation difference value of the data sequence, wherein the amplitude fluctuation difference value represents a difference value between a maximum amplitude value and a minimum amplitude value in the data sequence;
if the amplitude fluctuation difference value is larger than a first scaling interval threshold value, taking the amplitude fluctuation difference value as a waveform scaling range of the data sequence, and if timing exists, stopping timing and clearing timing time;
if the amplitude fluctuation difference value is not larger than a first zooming interval threshold value and the amplitude fluctuation difference value is not smaller than a second zooming interval threshold value, taking the waveform zooming range of the displayed waveform of the previous screen as the waveform zooming range of the data sequence, and if timing exists, stopping timing and clearing timing time;
timing if the amplitude fluctuation difference value is smaller than the second scaling interval threshold value; if the timing time does not reach the preset time, taking the waveform scaling range of the displayed waveform of the previous screen as the waveform scaling range of the data sequence, and continuing timing; if the timing time reaches or exceeds the preset time, reducing the waveform scaling range of the displayed waveform of the previous screen, taking the reduced waveform scaling range as the waveform scaling range of the data sequence, stopping timing and clearing the timing time;
wherein the first scaling interval threshold is greater than the second scaling interval threshold, and the initial timing time is 0.
3. The method of claim 2,
the first zooming interval threshold is the waveform zooming range of the displayed waveform of the previous screen, and the second zooming interval threshold is half of the waveform zooming range of the displayed waveform of the previous screen.
4. The method of claim 3, wherein the method for reducing the waveform scaling range of the waveform displayed on the previous screen comprises: multiplying a waveform scaling range of a waveform displayed on a previous screen by a reduction factor, wherein the reduction factor is greater than or equal to 0.9 and the reduction factor is less than 1.
5. The method of any of claims 1-4, wherein the method of displaying the waveform further comprises: adaptively adjusting a waveform base value of the data sequence according to a formula h0 ═ Amax + Amin)/2-R/2, wherein h0 represents the waveform base value, Amax represents a maximum amplitude value in the data sequence, Amin represents a minimum amplitude value in the data sequence, and R represents a waveform scaling range of the data sequence.
6. The method of claim 5, wherein calculating the display position of each data in the data sequence comprises calculating a display height position of each data in a display area, the height position being calculated using the formula H ═ (A-H0)/R H, wherein H represents the display height position of the data, A represents the magnitude of the data, H0 represents the waveform base value of the data sequence, R represents the waveform scaling range of the data sequence, and H represents the physical height of the display area.
7. An apparatus for displaying waveforms, for application on a wearable device, the apparatus comprising:
the data acquisition module is used for acquiring a data sequence with a preset length, wherein the data sequence with the preset length corresponds to a one-screen waveform, and each data in the data sequence represents the amplitude of the waveform;
the waveform scaling range self-adaptive adjusting module is used for self-adaptively adjusting the display scale of the corresponding waveform amplitude of the data sequence according to the amplitude fluctuation difference of the data sequence, wherein the amplitude fluctuation difference represents the difference between the maximum amplitude and the minimum amplitude in the data sequence;
the data display position calculation module is used for calculating the display position of each data in the data sequence;
and the waveform drawing module is used for tracing each data in the display position of each data and connecting each data point to form a waveform.
8. The apparatus of claim 7, wherein the waveform scaling range adaptive adjustment module comprises:
the first adjusting unit is used for taking the amplitude fluctuation difference value of the data sequence as the waveform scaling range of the data sequence when the amplitude fluctuation difference value of the data sequence is larger than the waveform scaling range of the displayed waveform of the previous screen;
the timing unit is used for recording the duration that the amplitude fluctuation difference value of the data sequence is continuously smaller than half of the waveform scaling range of the displayed waveform of the previous screen when the amplitude fluctuation difference value of the data sequence is smaller than half of the waveform scaling range of the displayed waveform of the previous screen;
the second adjusting unit is used for reducing the waveform scaling range of the displayed waveform of the previous screen when the time recorded by the timing unit reaches or exceeds the preset time, and taking the reduced waveform scaling range as the waveform scaling range of the data sequence;
and the third adjusting unit is used for taking the waveform scaling range of the displayed waveform of the previous screen as the waveform scaling range of the data sequence when the amplitude fluctuation difference of the data sequence is not more than the waveform scaling range of the displayed waveform of the previous screen and not less than a half of the waveform scaling range of the displayed waveform of the previous screen or when the time recorded by the timing unit does not reach the preset time.
9. The apparatus of claim 7 or 8, further comprising a waveform base value adaptive adjustment module that adjusts the waveform base value according to the formula h0 ═ Amax + Amin)/2-R/2, where h0 represents a waveform base value, R represents a waveform scaling range of the data sequence, Amax represents a maximum amplitude of the data sequence, and Amin represents a minimum amplitude of the data sequence.
10. A wearable device comprising a memory and a processor, wherein the memory stores a program comprising the steps of the method of any of claims 1-6, the wearable device configured to perform the steps of the method of any of claims 1-6 by the processor.
CN201710265471.9A 2017-04-21 2017-04-21 Method, device and the wearable device of display waveform Pending CN107049257A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710265471.9A CN107049257A (en) 2017-04-21 2017-04-21 Method, device and the wearable device of display waveform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710265471.9A CN107049257A (en) 2017-04-21 2017-04-21 Method, device and the wearable device of display waveform

Publications (1)

Publication Number Publication Date
CN107049257A true CN107049257A (en) 2017-08-18

Family

ID=59600830

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710265471.9A Pending CN107049257A (en) 2017-04-21 2017-04-21 Method, device and the wearable device of display waveform

Country Status (1)

Country Link
CN (1) CN107049257A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109086019A (en) * 2018-08-28 2018-12-25 成都心吉康科技有限公司 Real-time waveform smooth method for drafting, apparatus and system
FR3070253A1 (en) * 2017-08-31 2019-03-01 Farasha Labs METHOD FOR PROCESSING DATA FOR DISPLAYING A PHOTOPLETHYSMOGRAPHIC SIGNAL ON A SCREEN OF A DISPLAY DEVICE
WO2019085348A1 (en) * 2017-11-06 2019-05-09 深圳市德力凯医疗设备股份有限公司 Method, device, and storage medium for displaying cerebral blood flow data
CN111077940A (en) * 2019-11-29 2020-04-28 普源精电科技股份有限公司 Method and device for automatically creating waveform sequence
CN113571147A (en) * 2020-04-28 2021-10-29 华为技术有限公司 Data display method and device, terminal equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110172551A1 (en) * 2009-10-15 2011-07-14 Masimo Corporation Bidirectional physiological information display
CN102579038A (en) * 2012-03-28 2012-07-18 深圳市理邦精密仪器股份有限公司 Method and device for automatically configuring electrocardiographic wave data
CN103340600A (en) * 2013-06-13 2013-10-09 深圳市科曼医疗设备有限公司 Method and system for processing wave form distortion of monitor
CN103340605A (en) * 2013-07-11 2013-10-09 深圳市科曼医疗设备有限公司 Waveform data output method and system of self-regulating waveform scale and medical monitor
CN105512506A (en) * 2016-01-25 2016-04-20 深圳市理邦精密仪器股份有限公司 Interface adjusting method and interface adjusting device applied to monitor

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110172551A1 (en) * 2009-10-15 2011-07-14 Masimo Corporation Bidirectional physiological information display
CN102579038A (en) * 2012-03-28 2012-07-18 深圳市理邦精密仪器股份有限公司 Method and device for automatically configuring electrocardiographic wave data
CN103340600A (en) * 2013-06-13 2013-10-09 深圳市科曼医疗设备有限公司 Method and system for processing wave form distortion of monitor
CN103340605A (en) * 2013-07-11 2013-10-09 深圳市科曼医疗设备有限公司 Waveform data output method and system of self-regulating waveform scale and medical monitor
CN105512506A (en) * 2016-01-25 2016-04-20 深圳市理邦精密仪器股份有限公司 Interface adjusting method and interface adjusting device applied to monitor

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR3070253A1 (en) * 2017-08-31 2019-03-01 Farasha Labs METHOD FOR PROCESSING DATA FOR DISPLAYING A PHOTOPLETHYSMOGRAPHIC SIGNAL ON A SCREEN OF A DISPLAY DEVICE
WO2019085348A1 (en) * 2017-11-06 2019-05-09 深圳市德力凯医疗设备股份有限公司 Method, device, and storage medium for displaying cerebral blood flow data
CN109086019A (en) * 2018-08-28 2018-12-25 成都心吉康科技有限公司 Real-time waveform smooth method for drafting, apparatus and system
CN109086019B (en) * 2018-08-28 2021-04-27 成都心吉康科技有限公司 Real-time waveform smooth drawing method, device and system
CN111077940A (en) * 2019-11-29 2020-04-28 普源精电科技股份有限公司 Method and device for automatically creating waveform sequence
CN113571147A (en) * 2020-04-28 2021-10-29 华为技术有限公司 Data display method and device, terminal equipment and storage medium
WO2021218403A1 (en) * 2020-04-28 2021-11-04 华为技术有限公司 Data display method and apparatus, terminal device and storage medium

Similar Documents

Publication Publication Date Title
CN107049257A (en) Method, device and the wearable device of display waveform
US11701053B2 (en) Method for hosting mobile access to high-resolution electroencephalography data
JP4476181B2 (en) Method for monitoring human relaxation level and user-operated heart rate monitoring device
CN107847176B (en) Medical monitoring system, method for displaying monitoring data and monitoring display device
JP2018102617A (en) Emotion estimation apparatus, method, and program
JPWO2008056492A1 (en) Apparatus and method for adjusting electroencephalogram identification method
US10085660B2 (en) Automatic analysis of uterine activity signals and application for enhancement of labor and delivery experience
US10636183B2 (en) Interpolation of dynamic three-dimensional maps
CN106874672B (en) A kind of method and mobile terminal showing EEG data
CN108403101A (en) A kind of model training method and device, the method and device for measuring blood pressure
JP2013180076A (en) Analysis supporting device and program
JP2009268826A (en) Device and method for modulating electroencephalogram discrimination method
JP6670320B2 (en) Apparatus, method and system for graphical resolution dependent on signal resolution
KR20160008368A (en) Method and apparatus for processing biosignal using recursive estimation
CN113662555A (en) Drawing method, analysis method, drawing device, mobile terminal and storage medium
CN116088686A (en) Electroencephalogram tracing motor imagery brain-computer interface training method and system
JP5315947B2 (en) Pulse rate calculation program, pulse rate calculation device, pulse rate calculation method, and portable terminal device
CN106250685B (en) Method and device for displaying user health parameters
US11071468B2 (en) Detecting apparatus and detecting method for physiological information
WO2020133497A1 (en) Method for evaluating recovery status of hospital patient, device, system, and storage medium
JP6706958B2 (en) Information processing method, information processing apparatus, and program
US20230085337A1 (en) Biomarker computing device and biomarker computing method
CN109086019B (en) Real-time waveform smooth drawing method, device and system
Zhang et al. Design of Data Management System for Remote ECG Monitoring
CN116369920A (en) Electroencephalogram training device, working method, electronic device 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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20170818

WD01 Invention patent application deemed withdrawn after publication