CN108959215B - Data processing method and device, and display method and device - Google Patents

Data processing method and device, and display method and device Download PDF

Info

Publication number
CN108959215B
CN108959215B CN201710373641.5A CN201710373641A CN108959215B CN 108959215 B CN108959215 B CN 108959215B CN 201710373641 A CN201710373641 A CN 201710373641A CN 108959215 B CN108959215 B CN 108959215B
Authority
CN
China
Prior art keywords
point
blood pressure
values
blood
points
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
CN201710373641.5A
Other languages
Chinese (zh)
Other versions
CN108959215A (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.)
Alibaba Health Information Technology Ltd
Original Assignee
Alibaba Health Information Technology 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 Alibaba Health Information Technology Ltd filed Critical Alibaba Health Information Technology Ltd
Priority to CN201710373641.5A priority Critical patent/CN108959215B/en
Publication of CN108959215A publication Critical patent/CN108959215A/en
Application granted granted Critical
Publication of CN108959215B publication Critical patent/CN108959215B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/174Form filling; Merging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/166Editing, e.g. inserting or deleting
    • G06F40/177Editing, e.g. inserting or deleting of tables; using ruled lines
    • G06F40/18Editing, e.g. inserting or deleting of tables; using ruled lines of spreadsheets

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Health & Medical Sciences (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Artificial Intelligence (AREA)
  • Human Computer Interaction (AREA)
  • Image Processing (AREA)
  • Measuring Pulse, Heart Rate, Blood Pressure Or Blood Flow (AREA)

Abstract

The application provides a data processing method and device, and a display method and device, wherein the method comprises the following steps: acquiring a plurality of data points, wherein the plurality of data points are arranged in sequence; determining a plurality of control points according to the plurality of data points, wherein the control point adjacent to the maximum value in the plurality of data points is less than or equal to the maximum value, and the control point adjacent to the minimum value in the plurality of data points is greater than or equal to the minimum value; from the plurality of data points and the plurality of control points, a connecting line is generated that passes through the plurality of data points. The wave crest position minimums that present connecting wire can't guarantee that the maximum is located the connecting wire are located the trough position of connecting wire, and the crest that leads to and trough can not be accurate represent for maximum and minimums, the inaccurate technical problem of curve representation result has reached and has guaranteed the peak position minimums that the maximum is located the connecting wire as far as and located the trough position of connecting wire, reduce the technical effect of connecting wire distortion possibility.

Description

Data processing method and device, and display method and device
Technical Field
The present application belongs to the technical field of data processing, and in particular, to a data processing method and apparatus, and a display method and apparatus.
Background
At present, with the increasing demand for data analysis and trend of data, the application of fitting to obtain a connecting line for representing a certain feature or element is also increasing. For example, in medical, financial, weather and other scenes, it is generally necessary to fit a connecting line to obtain a trend graph of income and expense, a trend graph of weather temperature, a trend graph of human blood pressure and the like.
However, since only a limited number of data points are actually measured as reference data points for curve formation when generating a fitted connecting line, and then fitting is performed on these known data based on the obtained limited number of data points as known data, a connecting line can be obtained.
However, the connecting line shown in fig. 1 is sometimes generated by the existing method for generating the connecting line, and as can be seen from fig. 1, the maximum value of the known points is sometimes not located at the peak of the connecting line, and the minimum value is sometimes not located at the trough of the connecting line, which may cause the user to think that the actual situation has a value larger than the actually measured maximum value or a value smaller than the actually measured minimum value when looking at the connecting line, thereby causing the generated connecting line to fail to accurately display the actual value of the data. If data analysis is performed based on such connection lines, errors in analysis results are also easily caused.
As shown in fig. 1, assuming a seven-day blood glucose diagram, if the blood glucose is below 5.0, the patient is considered to have a hypoglycemic symptom, but actually the patient does not have a value below 5 in the measured values, and thus, the patient may be considered to have no hypoglycemic symptom. However, if a judgment is made based on the connecting line obtained by fitting, a piece of data is located below 5.0, and thus the patient is erroneously diagnosed as having hypoglycemia, resulting in erroneous diagnosis.
Therefore, the connecting line is generated by fitting in the existing mode, the problem that the connecting line cannot accurately display data exists, and data distortion easily occurs particularly at the positions of wave crests or wave troughs. No effective solution to this problem has been proposed.
Disclosure of Invention
The application aims to provide a data processing method and equipment, so that a generated connecting line can accurately represent known data, and distortion of the generated connecting line at a peak or a trough is avoided.
The application provides a data processing method and equipment, which are realized as follows:
a method of data processing, the method comprising:
acquiring a plurality of data points, wherein the plurality of data points are arranged in sequence;
determining a plurality of control points according to the plurality of data points, wherein the control point adjacent to the maximum value in the plurality of data points is less than or equal to the maximum value, and the control point adjacent to the minimum value in the plurality of data points is greater than or equal to the minimum value;
outputting a connecting line passing through the plurality of data points according to the plurality of data points and the plurality of control points.
A method of displaying, the method comprising:
acquiring a plurality of data points, wherein the plurality of data points are arranged in sequence;
determining a plurality of control points according to the plurality of data points, wherein the control point adjacent to the maximum value in the plurality of data points is less than or equal to the maximum value, and the control point adjacent to the minimum value in the plurality of data points is greater than or equal to the minimum value;
generating a connecting line passing through the plurality of data points according to the plurality of data points and the plurality of control points;
and displaying the connecting line.
A data processing apparatus, the apparatus comprising:
the communication module is used for establishing communication connection and transmitting data;
a processor for acquiring a plurality of data points, wherein the plurality of data points are arranged in sequence; determining a plurality of control points according to the plurality of data points, wherein the control point adjacent to the maximum value in the plurality of data points is less than or equal to the maximum value, and the control point adjacent to the minimum value in the plurality of data points is greater than or equal to the minimum value; from the plurality of data points and the plurality of control points, a connecting line is generated that passes through the plurality of data points.
A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the above-mentioned method.
A display device, comprising:
the communication module is used for establishing communication connection and transmitting data;
a processor for acquiring a plurality of data points of a target object, wherein the plurality of data points are arranged in sequence; determining a plurality of control points according to the plurality of data points, wherein the control point adjacent to the maximum value in the plurality of data points is less than or equal to the maximum value, and the control point adjacent to the minimum value in the plurality of data points is greater than or equal to the minimum value; generating a connecting line passing through the plurality of data points according to the plurality of data points and the plurality of control points;
and the display component is used for displaying the connecting line.
A wearable device, comprising:
a sensor for acquiring a plurality of data points, wherein the plurality of data points are arranged sequentially;
a processor for determining a plurality of control points from the plurality of data points, wherein a control point adjacent to a maximum value of the plurality of data points is less than or equal to the maximum value, and a control point adjacent to a minimum value of the plurality of data points is greater than or equal to the minimum value; generating a connecting line passing through the plurality of data points according to the plurality of data points and the plurality of control points;
and the display component is used for displaying the connecting line.
A measurement device, comprising:
the measuring instrument is used for measuring a plurality of data points, wherein the data points are arranged in sequence;
a processor for determining a plurality of control points from the plurality of data points, wherein a control point adjacent to a maximum value of the plurality of data points is less than or equal to the maximum value, and a control point adjacent to a minimum value of the plurality of data points is greater than or equal to the minimum value; generating a connecting line passing through the plurality of data points according to the plurality of data points and the plurality of control points;
and the display component is used for displaying the connecting line.
A head-mounted display, comprising:
a sensor for acquiring a plurality of data points, wherein the plurality of data points are arranged in a sequence;
the processor is used for determining a plurality of control points according to the data points, the control point adjacent to the maximum value in the data points is less than or equal to the maximum value, and the control point adjacent to the minimum value in the data points is greater than or equal to the minimum value; generating a connecting line passing through the plurality of data points according to the plurality of data points and the plurality of control points;
and the display component is used for displaying the connecting line.
A mobile device, comprising:
a sensor for acquiring a plurality of data points, wherein the plurality of data points are arranged in a sequence;
the processor is used for determining a plurality of control points according to the data points, the control point adjacent to the maximum value in the data points is less than or equal to the maximum value, and the control point adjacent to the minimum value in the data points is greater than or equal to the minimum value; outputting a connecting line passing through the plurality of data points according to the plurality of data points and the plurality of control points.
The data processing method and the data processing equipment provided by the application ensure that the control points adjacent to the maximum value in a plurality of known data points are less than or equal to the maximum value, the control points adjacent to the minimum value in a plurality of data points are more than or equal to the minimum value, thereby ensuring that the maximum value in a generated connecting line passing through a plurality of data points can be located at the peak position, the minimum value can be located at the trough position, the distortion of data at the peak and trough positions is avoided, the problem that the peaks and troughs of the connecting line generated in the prior art cannot be accurately represented as the maximum value and the minimum value is solved, the connecting line distortion is caused, the technical problem that the curve representation result is inaccurate is solved, the technical effect that the minimum value at the peak position of the connecting line is ensured to be located as far as possible is located at the trough position of the connecting line is achieved, and the probability of distortion of the connecting line is reduced.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only some embodiments described in the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without any creative effort.
FIG. 1 is a 7-day blood glucose trend graph generated based on an original control point as a final control point as provided herein;
FIG. 2 is a method flow diagram of one embodiment of a data processing method provided herein;
FIG. 3 is a schematic diagram of a connection line provided in the present application
FIG. 4 is a schematic diagram of a line connecting known data points provided herein;
FIG. 5 is a schematic diagram of a midpoint connection and a move point provided herein;
FIG. 6 is a schematic diagram of the initial control points provided herein;
FIG. 7 is a schematic diagram of the rotation of the initial control point of the extreme point as provided herein;
FIG. 8 is a schematic illustration of the rotation of the initial control point for the non-extreme point as provided herein;
FIG. 9 is another illustration of the rotation of the initial control point for the non-extreme point provided herein;
FIG. 10 is a further illustration of the rotation of the initial control point for the non-extreme point provided herein;
FIG. 11 is a further illustration of the rotation of the initial control point for the non-extreme point provided herein;
FIG. 12 is a schematic view of a midpoint connection and a move point provided herein;
FIG. 13 is a schematic diagram of the initial control points provided herein;
FIG. 14 is a 7-day blood glucose trend graph generated based on adjusting the rotated control points as final control points as provided herein;
fig. 15 is a block diagram of a hardware structure of a computer terminal of a data processing method provided in the present application;
FIG. 16 is a schematic view of a display device provided herein;
fig. 17 is a schematic view of a wearable device provided herein;
FIG. 18 is a schematic view of a head mounted display provided herein;
fig. 19 is a schematic diagram of a mobile terminal provided in the present application.
Detailed Description
In order to make those skilled in the art better understand the technical solutions in the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all 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 application.
When generating a trend graph based on known data points, control points may be determined based on the known points, wherein the control points are used for controlling the trend of the curve obtained by fitting, but generally the curve obtained by final fitting does not pass through the control points. In order to reduce the distortion problem of the curve obtained by fitting the known data points, the control points near the maximum value can be controlled to be smaller than the maximum value, and the control points near the minimum value are controlled to be larger than the minimum value, so that the maximum value can be ensured to be positioned at the peak position of the curve and the minimum value is positioned at the trough position of the curve as far as possible according to the trend graph obtained by fitting the direction of the control points, and the distortion of the curve is reduced.
To this end, in this example, a data processing method is provided, as shown in fig. 2, which may include the following steps:
step 101: acquiring a plurality of data points, wherein the plurality of data points are arranged in sequence;
the target object may be weather, voltage, current, blood pressure, blood oxygen, etc., or may be a graphic target in graphics. For these target objects, when generating the connecting line, it is generally necessary to obtain a plurality of data points, that is, obtain a plurality of discrete points, and then based on these discrete points, a connecting line can be fitted, through which the trend of the target object or the regular change of the target object is represented. That is, the connecting line may be a trend line or a natural connecting line.
Since the connecting line is finally obtained, the known discrete points obtained may be arranged in time, position, or other arrangement. For example, the blood pressure of the patient at one o ' clock, the blood pressure of two o ' clock, the blood pressure of three o ' clock, the blood pressure of four o ' clock, and the blood pressure of five o ' clock are obtained according to the time arrangement. Based on the five-hour blood pressure values, a continuous blood pressure change curve of the patient in five hours can be fitted, and in order to obtain the curve, the several known points can be arranged in sequence in time sequence. For example, the first, second, third, fourth, and fifth clocks may be arranged in this order, or the first, fourth, third, second, and fifth clocks may be arranged in this order. That is, the time sequence may be ordered according to the time sequence, or may be ordered according to the time sequence in the reverse order, and specifically, which manner is adopted may be selected according to the actual target requirement, which is not limited in the present application.
It should be noted that the above description is only given by way of example of the chronological order, and other ordering manners may be adopted in practical implementation as long as they are ordered, and the specific ordering manner is not specifically limited in the present application.
Step 102: determining a plurality of control points according to the plurality of data points, wherein the control point adjacent to the maximum value in the plurality of data points is less than or equal to the maximum value, and the control point adjacent to the minimum value in the plurality of data points is greater than or equal to the minimum value;
wherein, the control point is used for controlling the trend of the connecting wire. For example, knowing two known points a and B, two control points C and D may be determined for these two points. C and D are used to control the trend from a to B, resulting in a curve characterizing a to B. For example, taking a cubic bezier curve as an example, knowing points P0 (starting point) and P3 (ending point), control points P1 and P2 are determined, the curve starts from P0 to goes to P1, and goes from the direction of P2 to P3, the finally generated connecting line does not pass through P1 and P2, and P1 and P2 are only used for providing direction information of the connecting line. As shown in fig. 3, P0, P1, P2, and P3 are substituted into a preset cubic bezier curve formula:
B(t)=P0(1-t)3+3P1t(1-t)2+3P2t2(1-t)+P3t3
a connecting line as shown in fig. 3 can be obtained.
Under the condition that there are a plurality of known points, in order to make the maximum can be located the crest position, the minimum is located the trough position, need control the adjacent control point of maximum and be not more than the maximum, the adjacent control point of minimum is not less than the minimum to guarantee that the maximum can be located the crest position, the minimum is located the trough position. For this purpose, the control points may be generated as follows:
s1: connecting adjacent data points to obtain a plurality of connecting lines;
s2: the following operations are performed for every two connection lines having an intersection:
s2-1: acquiring the middle points of the two connecting lines, and connecting the middle points to obtain a middle point connecting line;
s2-2: selecting one point from the midpoint connecting line as a moving point;
s2-3: moving the midpoint connecting line to the moving point to coincide with the intersection point, so as to obtain a moved midpoint connecting line;
s2-4: taking two endpoints of the moved midpoint connecting line as two original control points;
s2-5: under the condition that the intersection point is a maximum value or a minimum value, rotating the moved midpoint connecting line to the rotated midpoint connecting line by taking the intersection point as a fulcrum, wherein the rotated midpoint connecting line and the extreme point are in the same horizontal line;
s2-6: and selecting two points which are positioned in the same vertical direction with the two original control points from the rotated centerline connecting line as the control points for generating the connecting line.
For example, as shown in FIG. 4, there are five known point data: A. b, C, D, and E, determining the middle point of the connecting line of every two adjacent points, and obtaining four middle points as shown in FIG. 5: m1, m2, m3 and m 4. Then, connecting the adjacent midpoints to obtain a line segment as shown in fig. 5: m1m2, m2m3 and m3m 4.
The intersection point of the extreme point vertical direction and the line segment can be used as a moving point, and the moving point can also be determined according to a preset line segment proportional relation: t1, t2, t 3. Taking t2 as an example, the following can be mentioned: t2m2/t2m3 is L1/L2 to determine the position of t2, wherein L1 represents the distance from B to C, and L2 represents the distance from C to D.
Then, the line segment composed of the middle points is translated to the corresponding known point, for example, as shown in fig. 6, the moving point is moved to the path of the corresponding vertex, the point t1 is moved to B, and the point t2 is moved to C. t3 moves to D, taking the moved midpoint as the initial control point: c1, c2, c3, c4, c5 and c 6.
In order to ensure that the maximum value point is positioned at the peak and the minimum value point is positioned at the trough, the initial control points can be adjusted, so that two adjacent control points of each maximum value can be not more than the maximum value, and two adjacent control points of each minimum value can be not less than the minimum value. For this purpose, the position of the initial control point may be adjusted, and the intersection point of the vertical direction of the initial control point and the horizontal direction of the corresponding extreme point is used as the finally determined control point. For example, as shown in fig. 6, the final determined control point is obtained: c1 ', C2', C3 ', C4', C5 'and C6', that is, the connecting line of the control points at the two ends of the point B becomes the horizontal line segment C1 'C2', the connecting line of the control points at the two ends of the point C becomes the horizontal line segment C3 'C4', and the connecting line of the control points at the two ends of the point D becomes the horizontal line segment C5 'C6'.
As shown in FIG. 7, the course of the connecting line between B and C is controlled by C2 'and C3', and the course of the connecting line between C and D is controlled by C4 'and C5'. Because the control point adjacent to the maximum value is not more than the maximum value, and the control point adjacent to the minimum value is not less than the minimum value, the connecting line generated based on the control points for controlling the trend of the connecting line can ensure that the known maximum value point is positioned at the position of the wave peak, and the minimum value point is positioned at the position of the wave trough.
Considering that not every known data point is an extreme point, and there are cases where three consecutive data points rise, or three consecutive data points fall, then the point in the middle is not an extreme point. In this case, in order to ensure that the maximum value may be located at the peak, the minimum value may be located at the valley, and the control may be performed such that, when three data points (a small point, an intermediate point, and a large point) sequentially rise, and when an original control point closer to the maximum value among two original control points corresponding to the intermediate point is greater than the maximum value, a connection line of the two original control points corresponding to the intermediate point is rotated along the non-extreme point until the control point closer to the maximum value and the maximum value are located on the same horizontal line, and the two rotated original control points are used as control points for generating the connection line corresponding to the intermediate point. Under the condition that the original control point which is close to the minimum value in the two original control points corresponding to the intermediate point is smaller than the minimum value, the connecting line of the two original control points corresponding to the intermediate point is rotated along the intermediate point until the control point which is close to the minimum value and the minimum value are in the same horizontal line, and the two rotated original control points are used as the control points which are corresponding to the non-extreme value and used for generating the connecting line.
The following is described in connection with four specific cases:
1) as shown in fig. 8, there are three known points (B, C and D) that rise continuously, and the second point (point C) is below the line connecting the first point (point B) and the third point (point D).
The original control point C3 to the left of point C (i.e., the original control point near the minimum B point) is lower than point B, which may result in the minimum B point not being at the lowest point of the curve between B and C (the trough of the entire curve). To avoid this, the connection line between the original control points C3 and C4 on both sides of the point C may be rotated around the point C, the original control points C3 and B (minimum point) rotated to the left of the point C are on a horizontal straight line, and the rotated original control points C3 and C4 become the final control points C3 'and C4'.
2) As shown in fig. 9, there are three known points (A, B and C) that rise continuously, and the second point (point B) is above the line connecting the first point (point a) and the third point (point C).
The original control point C2 to the right of point B (i.e., the original control point near the maximum C) is higher than point C, which may result in the maximum C not being at the highest point of the curve between a and C (the peak of the entire curve). To avoid this, the connection line between the original control points C1 and C2 on both sides of point B may be rotated around point B, the original control points C2 and C (maximum point) rotated to the right of point B are on a horizontal straight line, and the rotated original control points C1 and C2 become the final control points C1 'and C2'.
3) As shown in fig. 10, there are three known points (C, D and E) that fall successively, and the second point (point D) is above the line connecting the first point (point C) and the third point (point E).
The original control point C5 to the left of point D (i.e., the original control point near the maximum C point) is higher than C. This may result in the maximum C point not being at the highest point of the curve between C and E (the peak of the entire curve). To avoid this, the connection line between the original control points C5 and C6 on both sides of the point D may be rotated around the point D as a pivot, the original control points C5 and C (maximum value points) rotated to the left of the point D are on a horizontal straight line, and the rotated original control points C5 and C6 become the final control points C5 'and C6'.
4) As shown in fig. 11, there are three known points (B, C and D) that fall successively, and the second point (point C) is below the line connecting the first point (point B) and the third point (point D).
The original control point C4 to the right of point C (i.e., the original control point near the minimum D point) is lower than point D, which may result in the minimum D point not being at the lowest point of the curve between B and D (the trough of the entire curve). To avoid this, the connection line of the original control points C3 and C4 of the two passes of point C may be rotated around point C as a pivot, the original control points C4 and D (minimum value points) rotated to the right of point C are on a horizontal straight line, and the rotated original control points C3 and C4 become the final control points C3 'and C4'.
However, the above example is only a schematic description, and describes several processing manners of the concave-convex curves, and in actual implementation, only the extreme points may be processed without processing the control points of the middle non-extreme points, or both the extreme points and the control points of the non-extreme points may be processed, so as to reduce the possibility that the extreme points are not located in the peaks or the valleys to the maximum extent.
Step 103: from the plurality of data points and the plurality of control points, a connecting line is generated that passes through the plurality of data points.
The control points are adjusted in a mode, so that the maximum value in the known points is located at the position of a wave crest, and the minimum value is located at the position of a wave trough. And if the control points of certain known points do not need to be rotated, the original control point is taken as the final control point, and if the control points of certain known points need to be rotated, the rotated control point is taken as the final control point.
After the final control points for all points are determined, the final control points can be mapped into a predetermined mapping formula to obtain a smooth curve that passes through the known points and has a maximum at the peak position and a minimum at the valley position.
For example, a Bezier curve is generated, then the final control point and the known point can be substituted as data into a cubic Bezier curve equation:
B(t)=P0(1-t)3+3P1t(1-t)2+3P2t2(1-t)+P3t3
obtaining a connecting line of the target object, wherein P0 represents a starting point (which is a known point) of a segment of curve, P3 represents an ending point (which is a known point) of a segment of curve, P1 and P2 are determined final control points, the curve starts from P0 to move to P1 and goes to P3 from the direction of P2, the finally generated connecting line does not pass through P1 and P2, and P1 and P2 are only used for providing direction information of the connecting line. According to the formula, a curve between two known points can be generated, and a plurality of curve segments are spliced to obtain a final connecting line of the target object. In one embodiment, two adjacent data points and two control points corresponding to the two adjacent data points may be substituted into a preset cubic bezier curve formula to obtain a cubic bezier curve corresponding to the two adjacent data points; and splicing the cubic Bezier curves corresponding to every two adjacent data points to obtain a connecting line passing through a plurality of known data points.
In the above example, the control points near the control maximum are smaller than the maximum and the control points near the minimum are smaller than the minimum to ensure that the resulting connecting line does not have data larger than the maximum in the known data points or smaller than the minimum in the known data points. In practical implementation, only the generated control points may be controlled to be larger than the maximum value and larger than the minimum value, so that the connection line obtained through fitting does not have a region larger than the maximum value or a region smaller than the minimum value. Therefore, misjudgment of the data can be avoided, and the accuracy of data judgment based on the generated connecting line is improved. For example, the data processing may be performed as follows:
s1: acquiring a plurality of data points;
s2: determining a control point according to the maximum value and the minimum value of the data points, wherein the numerical value of the control point is between the maximum value and the minimum value;
s3: outputting a connecting line passing through the plurality of data points according to the plurality of data points and the plurality of control points.
The data processing method is described below with reference to a specific scenario, however, it should be noted that this specific implementation is only for better illustrating the present application and should not be construed as a limitation to the present application.
In this example, a connection line generation method for generating a connection line for representing a blood glucose change of a user, that is, a blood glucose trend line of the user, is provided, so as to include the following steps:
s1: knowing the blood pressure values A, B, C, D and E of the user A at five time points, connecting the five blood pressure values in a time sequence order to form 4 connected broken lines;
s2: suppose the lengths of two adjacent broken lines are respectively: li, L (i +1), wherein i is 0 to 3;
s3: from these 4 connected polylines, a control point can be generated for each known glucose point, in particular, as follows: as shown in fig. 12. There are five known points of data: A. b, C, D, and E, determining the middle point of the connecting line of every two adjacent points, and obtaining four middle points as shown in FIG. 12: m1, m2, m3 and m 4. Then, connecting the adjacent midpoints to obtain a line segment as shown in fig. 12: m1m2, m2m3 and m3m 4. The intersection point of the extreme point vertical direction and the line segment can be used as a moving point, and the moving point can also be determined according to a preset line segment proportional relation: t1, t2, t 3. Taking t2 as an example, the following can be mentioned: t2m2/t2m3 is L1/L2 to determine the position of t2, wherein L1 represents the distance from B to C, and L2 represents the distance from C to D.
Then, the line segment composed of the middle points is translated to the corresponding known point, for example, as shown in fig. 13, the moving point is moved to the path of the corresponding vertex, the point t1 is moved to B, and the point t2 is moved to C. t3 moves to D, taking the moved midpoint as the initial control point: c1, c2, c3, c4, c5 and c 6.
After the initial control points are obtained, the initial control points at the extreme and non-extreme positions may be adjusted in the manner described above to ensure that the control point adjacent to the maximum of the plurality of data points is less than the maximum and the control point adjacent to the minimum of the plurality of data points is greater than the minimum.
Specifically, for two original control points corresponding to the extreme point, the original control points may be adjusted in the vertical direction until a control point adjacent to a maximum value of the plurality of data points is located on the same horizontal line as the maximum value, and a control point adjacent to a minimum value of the plurality of data points is located on the same horizontal line as the minimum value, so as to obtain a control point for generating the connecting line.
For two original control points corresponding to the non-extreme point, under the condition that the original control point closer to the maximum value in the two original control points corresponding to the non-extreme point adjacent to the maximum value in the data points is larger than the maximum value, rotating the connecting line of the two original control points corresponding to the non-extreme point along the non-extreme point until the control point closer to the maximum value and the maximum value are in the same horizontal line, and taking the two rotated original control points as the control points corresponding to the non-extreme point and used for generating the connecting line. Under the condition that an original control point which is closer to a minimum value in two original control points which correspond to non-extreme values adjacent to the minimum value in the data points is smaller than the minimum value, rotating a connecting line of the two original control points which correspond to the non-extreme values along the non-extreme values until the control point which is closer to the minimum value and the minimum value are in the same horizontal line, and taking the two rotated original control points as control points which correspond to the non-extreme values and are used for generating the connecting line.
S4: and substituting the obtained final control point and the known data point into a parameter equation of the Bezier curve to obtain a final blood glucose trend graph.
As shown in fig. 1, in order to generate a 7-day blood glucose trend graph based on an original control point as a final control point without performing rotation adjustment on the control point, it can be seen from fig. 1 that a valley occurs between 5.0 and 5.5 in blood glucose, but a data value actually measured by a user is not lower than 5.0, and if a connection line is generated in an interval lower than 5.0, an erroneous analysis result may occur when performing blood glucose analysis on the user. Similarly, blood sugar has a peak between 15.0 and 15.5, but the data value actually measured by the user is not higher than 15.5, and if the generated connecting line has a range higher than 15.5, it may also cause a wrong analysis result when the blood sugar of the user is analyzed.
As shown in fig. 14, in order to generate a 7-day blood glucose trend graph based on the control point after the rotation adjustment as the final control point, it can be seen from fig. 14 that the extreme values 15.0, 5.0, and 15.5 are respectively located at the peak and the trough, which can more accurately represent the blood glucose trend of the user.
The connecting line generated by the data processing method in the embodiment can ensure that the curve smoothly cuts through the known data points, and can ensure that the maximum value is positioned at the wave crest of the connecting line and the minimum value is positioned at the wave trough of the connecting line as far as possible, so that the variation trend of the data is not distorted.
The method embodiments provided in the above embodiments of the present application may be executed in a mobile terminal, a computer terminal, or a similar computing device. Taking the example of being operated on a computer terminal, fig. 15 is a hardware structure block diagram of a computer terminal of a data processing method according to an embodiment of the present invention. As shown in fig. 15, the computer terminal 10 may include one or more (only one shown) processors 102 (the processor 102 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission module 106 for communication functions. It will be understood by those skilled in the art that the structure shown in fig. 15 is only an illustration and is not intended to limit the structure of the electronic device. For example, the computer terminal 10 may also include more or fewer components than shown in FIG. 15, or have a different configuration than shown in FIG. 15.
The memory 104 may be used to store software programs and modules of application software, such as program instructions/modules corresponding to the data processing method in the embodiment of the present invention, and the processor 102 executes various functional applications and data processing, i.e., a method for implementing the data processing of the application software, by executing the software programs and modules stored in the memory 104. The memory 104 may include high speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory located remotely from the processor 102, which may be connected to the computer terminal 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission module 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission module 106 includes a Network adapter (NIC) that can be connected to other Network devices through a base station to communicate with the internet. In one example, the transmission module 106 may be a Radio Frequency (RF) module, which is used to communicate with the internet in a wireless manner.
The processor 102 is configured to obtain a plurality of data points, wherein the data points are arranged in sequence; determining a plurality of control points according to the plurality of data points, wherein the control point adjacent to the maximum value in the plurality of data points is less than or equal to the maximum value, and the control point adjacent to the minimum value in the plurality of data points is greater than or equal to the minimum value; from the plurality of data points and the plurality of control points, a connecting line is generated that passes through the plurality of data points.
The plurality of data points for the target object may be stored in the memory 104, may be called directly from the memory 104, or may be obtained from the device. For example: obtained from the device via the transmission module 106. For example, if the target object is blood glucose, the computer terminal 10 may obtain a known blood glucose value from a blood glucose meter as a plurality of data points of the target object via the transmission module 106. Specifically, the manner of acquiring the known data points may be selected according to actual needs, and the present application does not limit this.
Under the condition that there are a plurality of known points, in order to make the maximum can be located the crest position, the minimum is located the trough position, need control the adjacent control point of maximum and be not more than the maximum, the adjacent control point of minimum is not less than the minimum to guarantee that the maximum can be located the crest position, the minimum is located the trough position. To this end, the processor 102 may generate control points as follows:
s1: connecting adjacent data points to obtain a plurality of connecting line segments;
s2: the following operations are performed for every two connecting line segments with intersections:
s2-1: acquiring the middle points of the two connecting line segments, and connecting the middle points to obtain a middle point connecting line segment;
s2-2: selecting one point from the midpoint connecting line segment as a moving point;
s2-3: moving the midpoint connecting line segment to the moving point to coincide with the intersection point to obtain a moved midpoint connecting line segment;
s2-4: taking the two endpoints of the moved midpoint connecting line segment as two original control points;
s2-5: under the condition that the intersection point is a maximum value or a minimum value, rotating the moved midpoint connecting line segment to the rotated midpoint connecting line segment by taking the intersection point as a fulcrum, wherein the rotated midpoint connecting line segment and the extreme point are positioned on the same horizontal line;
s2-6: and selecting two points which are positioned in the same vertical direction with the two original control points from the rotated middle line connecting line segment as the control points for generating the connecting line.
Further, for the control point corresponding to the data point of the non-extremum point position, the processor 102 may adjust as follows:
1) when the intersection point is not an extreme value point, taking the original control point between the intersection point and the adjacent maximum value in the two original control points corresponding to the intersection point as a first original control point, and taking the original control point between the intersection point and the adjacent minimum value as a second original control point;
in the case that the first original control point is larger than the adjacent maximum value, taking an intersection point between a horizontal line defined by the adjacent maximum value and a vertical line defined by the first original control point as a first control point, and taking an intersection point between a vertical line defined by the second original control point and a straight line defined by the intersection point and the first control point as a second control point;
and taking the first control point and the second control point as control points for generating the connecting line.
2) Under the condition that the intersection point is not an extreme value point, taking an original control point positioned between the intersection point and an adjacent maximum value in two original control points corresponding to the intersection point as a first original control point, and taking an original control point positioned between the intersection point and an adjacent minimum value as a second original control point;
if the second original control point is smaller than the adjacent minimum value, taking an intersection point between a horizontal line defined by the adjacent minimum value and a vertical line defined by the second original control point as a first control point, and taking an intersection point between a vertical line defined by the first original control point and a straight line defined by the intersection point and the first control point as a second control point;
and taking the first control point and the second control point as control points for generating the connecting line.
The target object may include, but is not limited to, at least one of: blood pressure, blood glucose, weather.
In the above, how to generate the connection line with the maximum value located at the peak position and the minimum value located at the trough position is described with reference to the specific execution flow, however, the method may be applied not only to the above computer terminal, but also to other devices, for example, to a display device, that is, to display after generating the connection line, and may also be applied to a wearable device, for example, a sports watch, and may also be applied to software such as generating financial statements, various detection and measurement devices in hospitals, or weather forecast, step counting in a terminal such as a mobile phone, that is, as long as the device or software needs to generate or display the connection line, the data processing method described above may be applied to generate the connection line.
The following description is given in conjunction with several apparatuses:
for example, it may be applied in a display device, which may include: the communication module is used for establishing communication connection and transmitting data; a processor for acquiring a plurality of data points of a target object, wherein the plurality of data points are arranged in sequence; determining a plurality of control points according to the plurality of data points, wherein the control point adjacent to the maximum value in the plurality of data points is less than or equal to the maximum value, and the control point adjacent to the minimum value in the plurality of data points is greater than or equal to the minimum value; generating a connecting line passing through the plurality of data points according to the plurality of data points and the plurality of control points; as shown in fig. 16, the method may further include: and the display component is used for displaying the connecting line.
For another example, the method may be applied to a wearable device, such as a sports bracelet, a blood pressure monitor, and the like. The wearable device may include: a sensor for acquiring a plurality of data points, wherein the plurality of data points are arranged in a sequence; the processor is used for determining a plurality of control points according to the data points, the control point adjacent to the maximum value in the data points is less than or equal to the maximum value, and the control point adjacent to the minimum value in the data points is greater than or equal to the minimum value; generating a connecting line passing through the plurality of data points according to the plurality of data points and the plurality of control points; as shown in fig. 17, a display part for displaying the connection line may be included.
As another example, the above method may be applied to a measurement device, such as a blood pressure monitor, an oximeter, a weight scale, a heartbeat tester, etc. in a hospital, and the measurement device may include: the measuring instrument is used for measuring a plurality of data points, wherein the data points are arranged in sequence; the processor is used for determining a plurality of control points according to the data points, the control point adjacent to the maximum value in the data points is less than or equal to the maximum value, and the control point adjacent to the minimum value in the data points is greater than or equal to the minimum value; generating a connecting line passing through the plurality of data points according to the plurality of data points and the plurality of control points; and the display component is used for displaying the connecting line.
For another example, the method described above may also be applied in a head-mounted display, as shown in fig. 18, which may include: a sensor for acquiring a plurality of data points, wherein the plurality of data points are arranged in a sequence; the processor is used for determining a plurality of control points according to the data points, the control point adjacent to the maximum value in the data points is less than or equal to the maximum value, and the control point adjacent to the minimum value in the data points is greater than or equal to the minimum value; generating a connecting line passing through the plurality of data points according to the plurality of data points and the plurality of control points; and the display component is used for displaying the connecting line.
For another example, the method may be applied to a mobile device, where the mobile device may include a display to display a connection line, or may generate only the connection line but not display the connection line, and store the connection line, or transmit the connection line, so that the processing may be implemented. The mobile device may include: a sensor for acquiring a plurality of data points, wherein the plurality of data points are arranged in a sequence; the processor is used for determining a plurality of control points according to the data points, the control point adjacent to the maximum value in the data points is less than or equal to the maximum value, and the control point adjacent to the minimum value in the data points is greater than or equal to the minimum value; outputting a connecting line passing through the plurality of data points according to the plurality of data points and the plurality of control points. The mobile device may be a mobile phone or tablet computer, PDA, etc., as shown in fig. 19.
A computer-readable storage medium is also provided in the present application, on which a computer program is stored which, when being executed by a processor, carries out the above-mentioned method steps.
The data processing method and the data processing equipment provided by the application ensure that the control points adjacent to the maximum value in a plurality of known data points are less than or equal to the maximum value, the control points adjacent to the minimum value in a plurality of data points are more than or equal to the minimum value, thereby ensuring that the maximum value in a generated connecting line passing through a plurality of data points can be located at the peak position, the minimum value can be located at the trough position, the distortion of data at the peak and trough positions is avoided, the problem that the peaks and troughs of the connecting line generated in the prior art cannot be accurately represented as the maximum value and the minimum value is solved, the connecting line distortion is caused, the technical problem that the curve representation result is inaccurate is solved, the technical effect that the minimum value at the peak position of the connecting line is ensured to be located as far as possible is located at the trough position of the connecting line is achieved, and the probability of distortion of the connecting line is reduced.
Although the present application provides method steps as described in an embodiment or flowchart, additional or fewer steps may be included based on routine or non-inventive labor. The order of steps recited in the embodiments is merely one manner of performing the steps in a multitude of orders and does not represent the only order of execution. When an actual apparatus or client product executes, it may execute sequentially or in parallel (e.g., in the context of parallel processors or multi-threaded processing) according to the embodiments or methods shown in the figures.
The apparatuses or modules illustrated in the above embodiments may be implemented by a computer chip or an entity, or by a product with certain functions. For convenience of description, the above devices are described as being divided into various modules by functions, and are described separately. The functionality of the modules may be implemented in the same one or more software and/or hardware implementations of the present application. Of course, a module that implements a certain function may be implemented by a plurality of sub-modules or sub-units in combination.
The methods, apparatus or modules described herein may be implemented in computer readable program code to a controller implemented in any suitable manner, for example, the controller may take the form of, for example, a microprocessor or processor and a computer readable medium storing computer readable program code (e.g., software or firmware) executable by the (micro) processor, logic gates, switches, Application Specific Integrated Circuits (ASICs), programmable logic controllers and embedded microcontrollers, examples of which include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, the memory controller may also be implemented as part of the control logic for the memory. Those skilled in the art will also appreciate that, in addition to implementing the controller as pure computer readable program code, the same functionality can be implemented by logically programming method steps such that the controller is in the form of logic gates, switches, application specific integrated circuits, programmable logic controllers, embedded microcontrollers and the like. Such a controller may therefore be considered as a hardware component, and the means included therein for performing the various functions may also be considered as a structure within the hardware component. Or even means for performing the functions may be regarded as being both a software module for performing the method and a structure within a hardware component.
Some of the modules in the apparatus described herein may be described in the general context of computer-executable instructions, such as program modules, being executed by a computer. Generally, program modules include routines, programs, objects, components, data structures, classes, etc. that perform particular tasks or implement particular abstract data types. The application may also be practiced in distributed computing environments where tasks are performed by remote processing devices that are linked through a communications network. In a distributed computing environment, program modules may be located in both local and remote computer storage media including memory storage devices.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary hardware. Based on such understanding, the technical solutions of the present application may be embodied in the form of software products or in the implementation process of data migration, which essentially or partially contributes to the prior art. The computer software product may be stored in a storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, mobile terminal, server, or network device, etc.) to perform the methods described in the various embodiments or portions of the embodiments of the present application.
The embodiments in the present specification are described in a progressive manner, and the same or similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. All or portions of the present application are operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, mobile communication terminals, multiprocessor systems, microprocessor-based systems, programmable electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
While the present application has been described with examples, those of ordinary skill in the art will appreciate that there are numerous variations and permutations of the present application without departing from the spirit of the application, and it is intended that the appended claims encompass such variations and permutations without departing from the spirit of the application.

Claims (10)

1. A data processing apparatus, characterized by comprising:
the communication module is used for establishing communication connection and transmitting data;
a processor for obtaining a plurality of blood pressure values or blood glucose values, wherein the plurality of blood pressure values or blood glucose values are arranged in sequence; determining a plurality of control points according to the plurality of blood pressure values or blood sugar values, wherein the control point adjacent to the maximum value in the plurality of blood pressure values or blood sugar values is less than or equal to the maximum value, and the control point adjacent to the minimum value in the plurality of blood pressure values or blood sugar values is greater than or equal to the minimum value; generating a blood pressure variation curve or a blood glucose trend line passing through the plurality of blood pressure values or blood glucose values according to the plurality of blood pressure values or blood glucose values and the plurality of control points;
the processor is specifically used for connecting adjacent blood pressure values or blood sugar values to obtain a plurality of blood pressure change curves or blood sugar trend lines; the following operations are performed for every two blood pressure change curves or blood glucose trend lines with intersection points: acquiring the middle points of the two blood pressure change curves or the blood sugar trend lines, and connecting the middle points to obtain a middle point connecting line segment; selecting one point from the midpoint connecting line segment as a moving point; moving the midpoint connecting line segment to the moving point to coincide with the intersection point to obtain a moved midpoint connecting line segment; taking the two endpoints of the moved midpoint connecting line segment as two original control points; under the condition that the intersection point is a maximum value or a minimum value, rotating the moved midpoint connecting line segment to the rotated midpoint connecting line segment by taking the intersection point as a fulcrum, wherein the rotated midpoint connecting line segment and the extreme point are positioned on the same horizontal line; and selecting two points which are positioned in the same vertical direction with the two original control points from the rotated connecting line segment of the middle line as control points for generating the blood pressure change curve or the blood sugar trend line.
2. The data processing apparatus according to claim 1, wherein the processor is specifically configured to, after taking the two end points of the moved midpoint connecting line as original control points, if the intersection point is not an extreme value point, take an original control point located between the intersection point and an adjacent maximum value among the two original control points corresponding to the intersection point as a first original control point, and take an original control point located between the intersection point and an adjacent minimum value as a second original control point; in the case that the first original control point is larger than the adjacent maximum value, taking an intersection point between a horizontal line defined by the adjacent maximum value and a vertical line defined by the first original control point as a first control point, and taking an intersection point between a vertical line defined by the second original control point and a straight line defined by the intersection point and the first control point as a second control point; and taking the first control point and the second control point as control points for generating the blood pressure change curve or the blood glucose trend line.
3. The data processing apparatus according to claim 1, wherein the processor is specifically configured to, after taking the two end points of the moved midpoint connecting line as original control points, if the intersection point is not an extreme value point, take an original control point located between the intersection point and an adjacent maximum value among the two original control points corresponding to the intersection point as a first original control point, and take an original control point located between the intersection point and an adjacent minimum value as a second original control point; if the second original control point is smaller than the adjacent minimum value, taking an intersection point between a horizontal line defined by the adjacent minimum value and a vertical line defined by the second original control point as a first control point, and taking an intersection point between a vertical line defined by the first original control point and a straight line defined by the intersection point and the first control point as a second control point; and taking the first control point and the second control point as control points for generating the blood pressure change curve or the blood glucose trend line.
4. The data processing apparatus according to claim 1, wherein the processor is specifically configured to substitute two adjacent blood pressure values or blood glucose values and two control points corresponding to the two adjacent blood pressure values or blood glucose values into a preset cubic bezier curve formula to obtain a cubic bezier curve corresponding to the two adjacent blood pressure values or blood glucose values; and splicing the cubic Bezier curves corresponding to every two adjacent blood pressure values or blood sugar values to obtain the blood pressure change curve or the blood sugar trend line.
5. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out the steps of the method of:
obtaining a plurality of blood pressure values or blood glucose values, wherein the plurality of blood pressure values or blood glucose values are arranged in sequence;
determining a plurality of control points according to the plurality of blood pressure values or blood sugar values, wherein the control point adjacent to the maximum value in the plurality of blood pressure values or blood sugar values is less than or equal to the maximum value, and the control point adjacent to the minimum value in the plurality of blood pressure values or blood sugar values is greater than or equal to the minimum value;
outputting a blood pressure change curve or a blood sugar trend line passing through the plurality of blood pressure values or blood sugar values according to the plurality of blood pressure values or blood sugar values and the plurality of control points;
wherein, determining a plurality of control points according to the plurality of blood pressure values or blood sugar values comprises:
connecting adjacent blood pressure values or blood sugar values to obtain a plurality of blood pressure change curves or blood sugar trend line segments;
the following operations are executed for every two blood pressure change curves or blood sugar trend line segments with intersection points:
acquiring the middle points of the two blood pressure change curves or the blood sugar trend lines, and connecting the middle points to obtain a middle point connecting line segment;
selecting one point from the midpoint connecting line segment as a moving point;
moving the midpoint connecting line segment to the moving point to coincide with the intersection point to obtain a moved midpoint connecting line segment;
taking the two endpoints of the moved midpoint connecting line segment as two original control points;
under the condition that the intersection point is a maximum value or a minimum value, the intersection point is taken as a fulcrum, and the moved midpoint connecting line segment is rotated until the rotated midpoint connecting line segment and the extreme point are positioned on the same horizontal line;
and selecting two points which are positioned in the same vertical direction with the two original control points from the rotated connecting line segment of the middle line as control points for generating the blood pressure change curve or the blood sugar trend line.
6. A display device, comprising:
the communication module is used for establishing communication connection and transmitting data;
a processor for obtaining a plurality of blood pressure values or blood glucose values of a target subject, wherein the plurality of blood pressure values or blood glucose values are arranged in a sequence; determining a plurality of control points according to the plurality of blood pressure values or blood sugar values, wherein the control point adjacent to the maximum value in the plurality of blood pressure values or blood sugar values is less than or equal to the maximum value, and the control point adjacent to the minimum value in the plurality of blood pressure values or blood sugar values is greater than or equal to the minimum value; generating a blood pressure change curve or a blood glucose trend line passing through the plurality of blood pressure values or blood glucose values according to the plurality of blood pressure values or blood glucose values and the plurality of control points;
a display unit for displaying the blood pressure change curve or the blood glucose trend line;
wherein, determining a plurality of control points according to the plurality of blood pressure values or blood sugar values comprises:
connecting adjacent blood pressure values or blood sugar values to obtain a plurality of blood pressure change curves or blood sugar trend line segments;
the following operations are executed for every two blood pressure change curves or blood sugar trend line segments with intersection points:
acquiring the middle points of the two blood pressure change curves or the blood sugar trend lines, and connecting the middle points to obtain a middle point connecting line segment;
selecting one point from the midpoint connecting line segment as a moving point;
moving the midpoint connecting line segment to the moving point to coincide with the intersection point, so as to obtain a moved midpoint connecting line segment;
taking the two endpoints of the moved midpoint connecting line segment as two original control points;
under the condition that the intersection point is a maximum value or a minimum value, rotating the moved midpoint connecting line segment to the rotated midpoint connecting line segment by taking the intersection point as a fulcrum, wherein the rotated midpoint connecting line segment and the extreme point are positioned on the same horizontal line;
and selecting two points which are positioned in the same vertical direction with the two original control points from the rotated connecting line segment of the central line, and using the two points as control points for generating the blood pressure change curve or the blood sugar trend line.
7. A wearable device, comprising:
a sensor for acquiring a plurality of blood pressure values or blood glucose values, wherein the plurality of blood pressure values or blood glucose values are arranged in sequence;
the processor is used for determining a plurality of control points according to the plurality of blood pressure values or blood sugar values, the control point adjacent to the maximum value in the plurality of blood pressure values or blood sugar values is less than or equal to the maximum value, and the control point adjacent to the minimum value in the plurality of blood pressure values or blood sugar values is greater than or equal to the minimum value; generating a blood pressure variation curve or a blood glucose trend line passing through the plurality of blood pressure values or blood glucose values according to the plurality of blood pressure values or blood glucose values and the plurality of control points;
a display unit for displaying the blood pressure change curve or the blood glucose trend line;
wherein, determining a plurality of control points according to the plurality of blood pressure values or blood sugar values comprises:
connecting adjacent blood pressure values or blood sugar values to obtain a plurality of blood pressure change curves or blood sugar trend line segments;
the following operations are executed for every two blood pressure change curves or blood sugar trend line segments with intersection points:
acquiring the middle points of the two blood pressure change curves or the blood sugar trend lines, and connecting the middle points to obtain a middle point connecting line segment;
selecting one point from the midpoint connecting line segment as a moving point;
moving the midpoint connecting line segment to the moving point to coincide with the intersection point, so as to obtain a moved midpoint connecting line segment;
taking the two endpoints of the moved midpoint connecting line segment as two original control points;
under the condition that the intersection point is a maximum value or a minimum value, rotating the moved midpoint connecting line segment to the rotated midpoint connecting line segment by taking the intersection point as a fulcrum, wherein the rotated midpoint connecting line segment and the extreme point are positioned on the same horizontal line;
and selecting two points which are positioned in the same vertical direction with the two original control points from the rotated connecting line segment of the middle line as control points for generating the blood pressure change curve or the blood sugar trend line.
8. A measurement device, comprising:
a measurement instrument for obtaining a plurality of blood pressure values or blood glucose values by measurement, wherein the plurality of blood pressure values or blood glucose values are arranged in sequence;
the processor is used for determining a plurality of control points according to the plurality of blood pressure values or blood sugar values, the control point adjacent to the maximum value in the plurality of blood pressure values or blood sugar values is less than or equal to the maximum value, and the control point adjacent to the minimum value in the plurality of blood pressure values or blood sugar values is greater than or equal to the minimum value; generating a blood pressure variation curve or a blood glucose trend line passing through the plurality of blood pressure values or blood glucose values according to the plurality of blood pressure values or blood glucose values and the plurality of control points;
a display unit for displaying the blood pressure change curve or the blood glucose trend line;
wherein, determining a plurality of control points according to the plurality of blood pressure values or blood sugar values comprises:
connecting adjacent blood pressure values or blood sugar values to obtain a plurality of blood pressure change curves or blood sugar trend line segments;
the following operations are executed for every two blood pressure change curves or blood sugar trend line segments with intersection points:
acquiring the middle points of the two blood pressure change curves or the blood sugar trend lines, and connecting the middle points to obtain a middle point connecting line segment;
selecting one point from the midpoint connecting line segment as a moving point;
moving the midpoint connecting line segment to the moving point to coincide with the intersection point to obtain a moved midpoint connecting line segment;
taking the two endpoints of the moved midpoint connecting line segment as two original control points;
under the condition that the intersection point is a maximum value or a minimum value, rotating the moved midpoint connecting line segment to the rotated midpoint connecting line segment by taking the intersection point as a fulcrum, wherein the rotated midpoint connecting line segment and the extreme point are positioned on the same horizontal line;
and selecting two points which are positioned in the same vertical direction with the two original control points from the rotated connecting line segment of the middle line as control points for generating the blood pressure change curve or the blood sugar trend line.
9. A head-mounted display, comprising:
a sensor for acquiring a plurality of blood pressure values or blood glucose values, wherein the plurality of blood pressure values or blood glucose values are arranged in sequence;
the processor is used for determining a plurality of control points according to the plurality of blood pressure values or blood sugar values, the control point adjacent to the maximum value in the plurality of blood pressure values or blood sugar values is less than or equal to the maximum value, and the control point adjacent to the minimum value in the plurality of blood pressure values or blood sugar values is greater than or equal to the minimum value; generating a blood pressure variation curve or a blood glucose trend line passing through the plurality of blood pressure values or blood glucose values according to the plurality of blood pressure values or blood glucose values and the plurality of control points;
a display unit for displaying the blood pressure change curve or the blood glucose trend line;
wherein, determining a plurality of control points according to the plurality of blood pressure values or blood sugar values comprises:
connecting adjacent blood pressure values or blood sugar values to obtain a plurality of blood pressure change curves or blood sugar trend line segments;
the following operations are executed for every two blood pressure change curves or blood sugar trend line segments with intersection points:
acquiring the middle points of the two blood pressure change curves or the blood sugar trend lines, and connecting the middle points to obtain a middle point connecting line segment;
selecting one point from the midpoint connecting line segment as a moving point;
moving the midpoint connecting line segment to the moving point to coincide with the intersection point to obtain a moved midpoint connecting line segment;
taking the two endpoints of the moved midpoint connecting line segment as two original control points;
under the condition that the intersection point is a maximum value or a minimum value, rotating the moved midpoint connecting line segment to the rotated midpoint connecting line segment by taking the intersection point as a fulcrum, wherein the rotated midpoint connecting line segment and the extreme point are positioned on the same horizontal line;
and selecting two points which are positioned in the same vertical direction with the two original control points from the rotated connecting line segment of the middle line as control points for generating the blood pressure change curve or the blood sugar trend line.
10. A mobile device, comprising:
a sensor for acquiring a plurality of blood pressure values or blood glucose values, wherein the plurality of blood pressure values or blood glucose values are arranged in sequence;
the processor is used for determining a plurality of control points according to the plurality of blood pressure values or blood sugar values, the control point adjacent to the maximum value in the plurality of blood pressure values or blood sugar values is less than or equal to the maximum value, and the control point adjacent to the minimum value in the plurality of blood pressure values or blood sugar values is greater than or equal to the minimum value; outputting a blood pressure change curve or a blood sugar trend line which passes through the plurality of blood pressure values or blood sugar values according to the plurality of blood pressure values or blood sugar values and the plurality of control points;
wherein, determining a plurality of control points according to the plurality of blood pressure values or blood sugar values comprises:
connecting adjacent blood pressure values or blood sugar values to obtain a plurality of blood pressure change curves or blood sugar trend line segments;
the following operations are executed for every two blood pressure change curves or blood sugar trend line segments with intersection points:
acquiring the middle points of the two blood pressure change curves or the blood sugar trend lines, and connecting the middle points to obtain a middle point connecting line segment;
selecting one point from the midpoint connecting line segment as a moving point;
moving the midpoint connecting line segment to the moving point to coincide with the intersection point to obtain a moved midpoint connecting line segment;
taking the two endpoints of the moved midpoint connecting line segment as two original control points;
under the condition that the intersection point is a maximum value or a minimum value, the intersection point is taken as a fulcrum, and the moved midpoint connecting line segment is rotated until the rotated midpoint connecting line segment and the extreme point are positioned on the same horizontal line;
and selecting two points which are positioned in the same vertical direction with the two original control points from the rotated connecting line segment of the middle line as control points for generating the blood pressure change curve or the blood sugar trend line.
CN201710373641.5A 2017-05-24 2017-05-24 Data processing method and device, and display method and device Active CN108959215B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710373641.5A CN108959215B (en) 2017-05-24 2017-05-24 Data processing method and device, and display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710373641.5A CN108959215B (en) 2017-05-24 2017-05-24 Data processing method and device, and display method and device

Publications (2)

Publication Number Publication Date
CN108959215A CN108959215A (en) 2018-12-07
CN108959215B true CN108959215B (en) 2022-06-10

Family

ID=64494226

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710373641.5A Active CN108959215B (en) 2017-05-24 2017-05-24 Data processing method and device, and display method and device

Country Status (1)

Country Link
CN (1) CN108959215B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101764943A (en) * 2008-11-04 2010-06-30 新奥特(北京)视频技术有限公司 Method for dividing quadratic Bezier curve in subtitle object vector outline by intersection points
US8169437B1 (en) * 2008-07-09 2012-05-01 Nvidia Corporation Distributed tessellation topology generator
CN102458221A (en) * 2009-06-02 2012-05-16 佳能株式会社 Image processing apparatus, control method thereof, and computer program
CN104007705A (en) * 2014-05-05 2014-08-27 上海交通大学 Prospective interpolation system for compressing and smoothening small segment paths
CN104239191A (en) * 2014-09-09 2014-12-24 可牛网络技术(北京)有限公司 Method and device for displaying electric quantity of mobile terminal and mobile terminal
CN105354870A (en) * 2015-10-21 2016-02-24 新奥特(北京)视频技术有限公司 Restoration method and apparatus for drawn track
CN106441295A (en) * 2015-08-04 2017-02-22 阿里巴巴集团控股有限公司 Walker marching direction determination method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008084535A1 (en) * 2007-01-10 2008-07-17 Fujitsu Limited System, method and program for generating curve of cable
JP4400667B2 (en) * 2007-10-04 2010-01-20 セイコーエプソン株式会社 Drawing apparatus, image output apparatus, and program

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8169437B1 (en) * 2008-07-09 2012-05-01 Nvidia Corporation Distributed tessellation topology generator
CN101764943A (en) * 2008-11-04 2010-06-30 新奥特(北京)视频技术有限公司 Method for dividing quadratic Bezier curve in subtitle object vector outline by intersection points
CN102458221A (en) * 2009-06-02 2012-05-16 佳能株式会社 Image processing apparatus, control method thereof, and computer program
CN104007705A (en) * 2014-05-05 2014-08-27 上海交通大学 Prospective interpolation system for compressing and smoothening small segment paths
CN104239191A (en) * 2014-09-09 2014-12-24 可牛网络技术(北京)有限公司 Method and device for displaying electric quantity of mobile terminal and mobile terminal
CN106441295A (en) * 2015-08-04 2017-02-22 阿里巴巴集团控股有限公司 Walker marching direction determination method and device
CN105354870A (en) * 2015-10-21 2016-02-24 新奥特(北京)视频技术有限公司 Restoration method and apparatus for drawn track

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
《地震数据的可视化技术研究》;肖汉;《中国优秀硕士学位论文全文数据库》;20071115;全文 *
《基于Qt的地震数据可视化软件的研究与实现》;宋海权;《中国优秀硕士学位论文全文数据库》;20120215;全文 *

Also Published As

Publication number Publication date
CN108959215A (en) 2018-12-07

Similar Documents

Publication Publication Date Title
US11169911B2 (en) Method and apparatus for performing a fitting calculation on test data and generating data fluctuation values
CN109039821A (en) Network flow monitoring method, device, computer equipment and storage medium
Miot Assessing normality of data in clinical and experimental trials
EP2992820B1 (en) Measuring blood pressure
CN103907115A (en) Back calibration of sensor data
CN107766299A (en) The abnormal monitoring method of data target and its system, storage medium, electronic equipment
CN109918291A (en) Software interface detection method, device, computer equipment and storage medium
CN108875526A (en) Method, apparatus, system and the computer storage medium of line-of-sight detection
JP2004508631A (en) Anomaly detection system and method for teaching the same
EP3301586A1 (en) Pre-processor and diagnosis device
US20150185919A1 (en) Touch sensitive device and touch determination method thereof
CN109002230B (en) Touch screen calibration method and device and electronic equipment
US20230172555A1 (en) Sensor error mitigation
CN108959215B (en) Data processing method and device, and display method and device
Brich et al. Visual analytics of multivariate intensive care time series data
WO2020108557A1 (en) Boosting arterial stiffness evaluating method, system and device
CN116434933B (en) Intelligent nursing remote data processing method and system based on intelligent medical treatment
GB2553896A (en) Product test orchestration
CN104135915A (en) Device for displaying blood pressure-related information
US20180060281A1 (en) Graphs with normalized actual value measurements and baseline bands representative of normalized measurement ranges
CN104461009A (en) Object measurement method and intelligent device
JP2018190049A (en) Display device, display method and program
CN108693164B (en) Temperature demodulation method, device and system based on optical fiber Raman scattering signal
CN108169544B (en) Voltage sag display method and device
CN113571147A (en) Data display method and device, terminal 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