CN116152385A - Physiological signal drawing method and device, electronic equipment and storage medium - Google Patents

Physiological signal drawing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN116152385A
CN116152385A CN202310430495.0A CN202310430495A CN116152385A CN 116152385 A CN116152385 A CN 116152385A CN 202310430495 A CN202310430495 A CN 202310430495A CN 116152385 A CN116152385 A CN 116152385A
Authority
CN
China
Prior art keywords
signal
parameters
canvas
physiological signal
grid
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.)
Granted
Application number
CN202310430495.0A
Other languages
Chinese (zh)
Other versions
CN116152385B (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.)
Thoth Suzhou Medical Technology Co ltd
Original Assignee
Thoth Suzhou Medical Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Thoth Suzhou Medical Technology Co ltd filed Critical Thoth Suzhou Medical Technology Co ltd
Priority to CN202310430495.0A priority Critical patent/CN116152385B/en
Publication of CN116152385A publication Critical patent/CN116152385A/en
Application granted granted Critical
Publication of CN116152385B publication Critical patent/CN116152385B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/206Drawing of charts or graphs
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/20Drawing from basic elements, e.g. lines or circles
    • G06T11/203Drawing of straight lines or curves

Abstract

The embodiment of the invention discloses a physiological signal drawing method, a physiological signal drawing device, electronic equipment and a storage medium. The method comprises the following steps: aiming at physiological signals to be drawn, obtaining the number of grids, canvas parameters and calibration parameters corresponding to the physiological signals, wherein the number of grids is the number of grids in grid lines to be drawn on the canvas, and the canvas parameters are parameters of the canvas; determining grid line parameters based on the grid number and the canvas parameters, and drawing grid lines in the canvas based on the canvas parameters and the grid line parameters; acquiring signal information of a physiological signal, and determining drawing parameters of the physiological signal based on the signal information, the calibration parameters and the canvas parameters; and drawing the physiological signal line on the grid line based on the drawing parameters to obtain a physiological signal diagram of the physiological signal drawn in the canvas. The technical scheme of the embodiment of the invention can improve the portability of the physiological signal drawing.

Description

Physiological signal drawing method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of medical treatment, in particular to a physiological signal drawing method, a physiological signal drawing device, electronic equipment and a storage medium.
Background
At present, when a new project for physiological signal drawing is developed, a great deal of research and development time is required to be invested, and a new physiological signal drawing function is constructed and developed for the new project.
Therefore, the existing physiological signal drawing method is poor in portability and is easy to solve.
Disclosure of Invention
The embodiment of the invention provides a physiological signal drawing method, a device, electronic equipment and a storage medium, which are used for improving portability of physiological signal drawing.
According to an aspect of the present invention, there is provided a physiological signal rendering method, which may include: aiming at physiological signals to be drawn, obtaining the number of grids, canvas parameters and calibration parameters corresponding to the physiological signals, wherein the number of grids is the number of grids in grid lines to be drawn on the canvas, and the canvas parameters are parameters of the canvas; determining grid line parameters based on the grid number and the canvas parameters, and drawing grid lines in the canvas based on the canvas parameters and the grid line parameters; acquiring signal information of a physiological signal, and determining drawing parameters of the physiological signal based on the signal information, the calibration parameters and the canvas parameters; and drawing the physiological signal line on the grid line based on the drawing parameters to obtain a physiological signal diagram of the physiological signal drawn in the canvas.
According to another aspect of the present invention, there is provided a physiological signal rendering apparatus, which may include: the calibration parameter acquisition module is used for acquiring the grid number, canvas parameters and calibration parameters corresponding to the physiological signals aiming at the physiological signals to be drawn, wherein the grid number is the number of grids in the grid lines to be drawn on the canvas, and the canvas parameters are parameters of the canvas; the grid line drawing module is used for determining grid line parameters based on the grid number and the canvas parameters and drawing grid lines in the canvas based on the canvas parameters and the grid line parameters; the drawing parameter determining module is used for acquiring signal information of the physiological signal and determining drawing parameters of the physiological signal based on the signal information, the calibration parameters and the canvas parameters; and the physiological signal diagram obtaining module is used for drawing the physiological signal lines on the grid lines based on the drawing parameters to obtain the physiological signal diagram of the physiological signals drawn in the canvas.
According to another aspect of the present invention, there is provided an electronic device, which may include: at least one processor; and a memory communicatively coupled to the at least one processor; the memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor, so that the at least one processor implements the physiological signal rendering method provided by any embodiment of the present invention when executed by the at least one processor.
According to another aspect of the present invention, there is provided a computer readable storage medium having stored thereon computer instructions for causing a processor to perform the physiological signal rendering method provided by any of the embodiments of the present invention when executed.
According to the technical scheme, aiming at the physiological signals to be drawn, the grid number, canvas parameters and calibration parameters corresponding to the physiological signals are obtained, wherein the grid number is the number of grids in grid lines to be drawn on the canvas, and the canvas parameters are parameters of the canvas; determining grid line parameters based on the grid number and the canvas parameters, and drawing grid lines in the canvas based on the canvas parameters and the grid line parameters; acquiring signal information of a physiological signal, and determining drawing parameters of the physiological signal based on the signal information, the calibration parameters and the canvas parameters; and drawing the physiological signal line on the grid line based on the drawing parameters to obtain a physiological signal diagram of the physiological signal drawn in the canvas. According to the technical scheme provided by the embodiment of the invention, based on the preset grid number and canvas parameters of the canvas, the self-adaptive physiological signal diagram drawing can be realized according to canvases which are suitable for different sizes, and a large amount of research and development time is not needed to be input for constructing and developing a new physiological signal drawing function for a new project, so that the expandability of physiological signal drawing is improved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention, nor is it intended to be used to limit the scope of the invention. Other features of the present invention will become apparent from the description that follows.
Drawings
Fig. 1 is a flowchart of a physiological signal rendering method according to a first embodiment of the present invention.
Fig. 2 is an exemplary diagram of grid lines on which coordinate scales are drawn in a physiological signal drawing method according to a first embodiment of the present invention.
Fig. 3 is an exemplary diagram of grid lines of a reference unit drawn in a physiological signal drawing method according to a first embodiment of the present invention.
Fig. 4 is an exemplary diagram of a physiological signal map drawn in a physiological signal drawing method provided in the first embodiment of the present invention.
Fig. 5 is a flowchart of a physiological signal rendering method according to a second embodiment of the present invention.
Fig. 6 is a flowchart of a process of drawing a physiological signal line in a physiological signal drawing method according to a second embodiment of the present invention.
Fig. 7 is a flowchart of a physiological signal rendering method according to a third embodiment of the present invention.
Fig. 8 is a flowchart of a physiological signal rendering method provided in the fourth embodiment of the present invention.
Fig. 9 is an exemplary diagram of a physiological signal map drawn in a physiological signal drawing method provided in the fourth embodiment of the present invention.
Fig. 10 is an exemplary diagram of another physiological signal map drawn in a physiological signal drawing method provided in the fourth embodiment of the present invention.
Fig. 11 is an exemplary diagram of still another physiological signal map drawn in a physiological signal drawing method provided in the fourth embodiment of the present invention.
Fig. 12 is a block diagram showing an alternative example of a physiological signal rendering method provided in the fourth embodiment of the present invention.
Fig. 13 is a flowchart of another alternative example of a physiological signal rendering method provided in the fourth embodiment of the present invention.
Fig. 14 is a block diagram showing the structure of a physiological signal rendering device according to a fifth embodiment of the present invention.
Fig. 15 is a schematic structural diagram of an electronic device implementing a physiological signal rendering method according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. The cases of "target", "original", etc. are similar and will not be described in detail herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
Example 1
Fig. 1 is a flowchart of a physiological signal rendering method according to a first embodiment of the present invention. The present embodiment is applicable to the case of mapping physiological signals. The method can be implemented by the physiological signal rendering device provided by the embodiment of the invention, the device can be implemented by software and/or hardware, and the device can be integrated on an electronic device, and the electronic device can be various user terminals or servers.
Referring to fig. 1, the method according to the embodiment of the present invention specifically includes the following steps.
S101, aiming at physiological signals to be drawn, acquiring the number of grids, canvas parameters and calibration parameters corresponding to the physiological signals, wherein the number of grids is the number of grids in grid lines to be drawn on the canvas, and the canvas parameters are parameters of the canvas.
The physiological signal may be a signal obtained by measurement and recording and capable of reflecting a physiological index of a human body, for example, may be an electrocardio signal, a heart rate signal, a uterine contraction signal, an electroencephalogram signal, a respiratory signal, and/or a blood pressure signal, and the heart rate signal may be a maternal heart rate signal and/or a fetal heart rate signal. The number of lattices may be the number of lattices in the grid lines to be drawn on the canvas; the number of lattices may include the number of lattices in the preset direction in the grid lines, and may be, for example, the number of lattices in the height direction and/or the width direction in the grid lines; the grid number may be preset according to actual requirements or canvas parameters, and in the embodiment of the present invention, the setting factor of the grid number is not specifically limited. The scaling parameter may be understood as a parameter which is preset and is used as a reference in relation to the physiological signal map to be drawn; the specific type of scaling parameter may be related to the type of physiological signal, for example, in case the physiological signal map is an electrocardiogram, the scaling parameter may be a preset size of a unit cell in the grid lines, a paper feeding speed, a sampling rate, a scaling voltage, etc.; the preset size of the unit cell in the grid line can be understood as the size of each cell in the preset grid line, for example, the preset size can be 1mm on the side of a small cell of a square, or 5mm on the side of a large cell of a square; the paper feeding speed can be understood as the running speed of a preset physiological signal chart, for example, the standard speed in the paper feeding speed can be 25mm/s, the time length of a small lattice of a paper feeding square is 0.04sec, and the time length of a large lattice of the paper feeding square is=0.2 sec; the sampling rate can be understood as the frequency at which physiological signals are acquired; the calibration voltage may be understood as a preset criterion for measuring voltage variations in an electrocardiogram, for example the calibration voltage may be 10 mm=1 mV, the square lattice representing 0.1mV and the square lattice representing 0.5mV; for example, in the case that the physiological signal graph is a heart rate graph, the scaling parameters may be a preset size of a unit grid in the grid lines, a paper feeding speed, a preset duration span of a canvas, and the like; the preset duration span of the canvas can be understood as the duration span on a screen of canvas which is preset, for example, the preset duration span can be 20 minutes; the paper feed speed may be 20sec in length for a cell of a paper feed square. A physiological signal map can be understood as a rendered image that reflects the change in activity of a physiological signal. Grid lines may be understood as auxiliary lines in the physiological signal map that constitute the grid shape that facilitate viewing of the physiological signal values, and grid lines may be understood as extensions of readability on the coordinate axes. Physiological signal values may be understood as specific signal values of a physiological signal.
It can be understood that the canvas is an area for drawing the physiological signal map, and the canvas to be drawn with the physiological signal can be displayed in different display devices, for example, can be a computer, a mobile phone, a television, a tablet and other display devices, and parameters of the canvas can be different for different display devices; the canvas of the physiological signal to be drawn can be displayed in different software, and the parameters of the canvas displayed in the software can be different for different software due to the different parameters such as the window size of the software; the canvas parameters may also be different for different types and/or numbers of physiological signals, for example, where the physiological signals include heart rate signals and uterine contraction signals, the height and width dimensions of the canvas may be larger in the canvas parameters. Thus, in embodiments of the invention, parameters of the canvas may relate to parameters of the display device, software, and/or physiological signals, e.g., the height dimension and width dimension of the canvas may be the height dimension and width dimension of the display; in the embodiment of the invention, four frames, namely an upper frame, a lower frame, a left frame and a right frame, can be drawn in the container according to actual requirements based on the size of the container, namely the size of a display area of the display device or the size of a software window, and the area in the frames is used as the area of the canvas. The canvas parameters may include at least one of a height pixel number, a width pixel number, a height dimension, a width dimension, and the like of the canvas, and in the embodiment of the present invention, specific contents of the canvas parameters are not specifically limited. The number of height pixels can be understood as the number of pixels of the canvas in the height direction. The width pixel count can be understood as the number of pixels of the canvas in the width direction. The height dimension may be understood as the dimension of the canvas in the height direction, which may be 10cm, for example. The width dimension may be understood as the dimension of the canvas in the width direction, which may be 20cm, for example.
It should be noted that when creating a canvas, a drawing method such as a canvas outline, a canvas mesh, and/or coordinate values, and a style declaration such as a canvas background, a mesh, a color and/or a line thickness set by a concrete implementation class are required, and the declaration may be used as a canvas parameter. The canvas outline and the grid drawing are declared by two methods, because under certain scenes, for example, when a mother tire monitors simultaneously, canvas requirements are larger under the same container; and when the electrocardiogram is drawn, the condition that small grids are not required to be displayed and only large grids are required to be displayed is avoided.
S102, determining grid line parameters based on the grid number and the canvas parameters, and drawing grid lines in the canvas based on the canvas parameters and the grid line parameters.
The grid line parameter may be understood as a parameter of a grid line, and the grid line parameter may be, for example, the number of grids of the grid line in the height direction and/or the number of grids in the width direction, and/or the thickness of lines in the grid line, and the like.
In the embodiment of the invention, the number of grid lines in the height direction and/or the number of grids in the width direction can be determined based on the number of grids and canvas parameters; the magnification of the actual size of the unit grid compared with the preset size can be determined based on the preset size of the unit grid in the grid lines in the grid number, the canvas parameters and the calibration parameters, and the thickness of the lines in the grid lines can be determined according to the preset line thickness and the magnification of the unit grid in the calibration parameters. The actual size may be understood as the size of each grid of the grid lines to be actually drawn. The preset line thickness may be understood as the thickness of the line in the grid line set in advance for reference.
In the embodiment of the invention, grid lines can be drawn in a canvas based on canvas parameters and grid line parameters, for example, the grid number of the grid lines in the height direction is represented by GridCountY, an executable formula of CoordinateY=gridcanvas, actual height-gridcanvas, actual height/gridCounty is represented by LineIX, the above formula is circularly executed by gridCounty times, the position CoordinateY of each transverse line to be drawn in the canvas is calculated, and considering that the origin coordinate of a container is usually from the upper left corner, so that the transverse line in the grid lines can be drawn from the lower left to the right according to the position of each transverse line to be drawn in the canvas, wherein gridcanvas, actual height is the number of height pixels of the canvas, coordinateY can be understood as the current number of circularly executed, and CoordinateY can be understood as the position of the corresponding transverse line in the circle; the grid line number in the width direction is represented by gridCountX, a formula of CoordinateX=LineIDX/gridCountX is executed, gridcanvas.ActualWidth is executed circularly by the formula, the gridCountX is calculated to obtain the position CoordinateX of each longitudinal line to be drawn in the canvas, and the longitudinal lines in the grid line are drawn from bottom to top according to the position of each longitudinal line to be drawn in the canvas, wherein gridCanva.ActualWidth is the width pixel number of the canvas, lineIDX can be understood as the current number of circularly executed, and CoordinateX can be understood as the position of the longitudinal line corresponding to the current circle in the canvas.
In the embodiment of the invention, after the grid lines are drawn, scales can be drawn at positions capable of representing coordinate axes of the grid lines in the height direction and/or the width direction of the grid lines, for example, the abscissa axis represents a time dimension, corresponding time scales can be marked on the abscissa axis, for example, corresponding time scales can be marked at positions of every four minutes on the abscissa axis; for example, the normal range of the heart rate of the mother can be preset to be 60-100 times per minute, the normal range of the heart rate of the fetus is 110-160 times per minute, and corresponding heart rate scales are drawn on the ordinate axes of grid lines corresponding to the heart rate signals so as to check whether the heart rate is in the normal range; for another example, referring to fig. 2, a set of ordinate axis coordinate scales may be drawn every preset number of cells, e.g. 12 cells, from left to right; for another example, a coordinate value may be drawn on the abscissa axis at intervals of a predetermined number of lattices, for example, may be 2 lattices, and each lattice may represent 10 units if the physiological signal is a heart rate signal, and may represent 20% if the physiological signal is a uterine contraction signal.
For example, referring to FIG. 3, reference units may also be drawn in grid lines, for example, in an electrocardiographic canvas, for two large grids or 10 small grids representing 1mV.
S103, acquiring signal information of the physiological signal, and determining drawing parameters of the physiological signal based on the signal information, the calibration parameters and the canvas parameters.
The signal information may be understood as information about the physiological signal, which may include, for example, physiological signal values and/or signal time values, etc. The signal time value may be understood as a time value corresponding to a time point at which a signal point in the physiological signal is acquired, and the signal time value may exist in the form of a time stamp. Signal points may be understood as discrete physiological signal points acquired based on a sampling rate. The drawing parameters may be understood as relevant parameters for drawing the physiological signal line on the grid line, which drawing parameters may for example comprise the line thickness of the physiological signal line and/or the abscissa and ordinate of each signal point in the physiological signal in the grid line etc. Physiological signal lines can be understood as lines drawn in grid lines that can reflect changes in the activity of physiological signals. The line thickness of the physiological signal line may be determined based on the magnification.
And S104, drawing a physiological signal line on the grid line based on the drawing parameters to obtain a physiological signal diagram of the physiological signal drawn in the canvas.
In the embodiment of the invention, the physiological signal line can be drawn on the grid line based on the drawing parameters, so as to obtain the physiological signal diagram of the physiological signal drawn in the canvas. For example, referring to fig. 4, an object PointC may be constructed according to an abscissa and an ordinate of each signal point in the physiological signal in the grid line, and is docked and put into a drawing sequence, and when drawing, the object PointC is fetched from the drawing sequence, assigned to a complex graph drawing device (PathGeome), and physiological signal lines are drawn on the grid line in a Canvas (Canvas), so as to obtain a physiological signal graph of the physiological signal drawn in the Canvas.
According to the technical scheme, aiming at the physiological signals to be drawn, the grid number, canvas parameters and calibration parameters corresponding to the physiological signals are obtained, wherein the grid number is the number of grids in grid lines to be drawn on the canvas, and the canvas parameters are parameters of the canvas; determining grid line parameters based on the grid number and the canvas parameters, and drawing grid lines in the canvas based on the canvas parameters and the grid line parameters; acquiring signal information of a physiological signal, and determining drawing parameters of the physiological signal based on the signal information, the calibration parameters and the canvas parameters; and drawing the physiological signal line on the grid line based on the drawing parameters to obtain a physiological signal diagram of the physiological signal drawn in the canvas. According to the technical scheme provided by the embodiment of the invention, based on the preset grid number and canvas parameters of the canvas, the self-adaptive physiological signal diagram drawing can be realized according to canvases which are suitable for different sizes, and a large amount of research and development time is not needed to be input for constructing and developing a new physiological signal drawing function for a new project, so that the expandability of physiological signal drawing is improved.
Example two
Fig. 5 is a flowchart of another physiological signal rendering method according to the second embodiment of the present invention. The present embodiment is optimized based on the above technical solutions. In this embodiment, optionally, the canvas parameters include a number of height pixels and a number of width pixels of the canvas, and the grid number includes a number of grids in the preset direction in the grid lines; determining grid line parameters based on the grid number and canvas parameters, comprising: under the condition that the preset direction is the height direction of the canvas, determining the first pixel number of the unit grid in the grid line according to the height pixel number and the grid number; determining a first number of grids in the width direction of the canvas in the grid lines according to the width pixel number and the first pixel number; determining grid line parameters according to the grid number and the first quantity; and/or under the condition that the preset direction is the width direction of the canvas, determining a second pixel number of the unit grid in the grid line according to the width pixel number and the grid number; determining a second number of lattices in the grid lines in the height direction of the canvas according to the height pixel number and the second pixel number; and determining grid line parameters according to the grid number and the second number. Wherein, the explanation of the same or corresponding terms as the above embodiments is not repeated herein.
Referring to fig. 5, the method of the present embodiment may specifically include the following steps.
S201, aiming at physiological signals to be drawn, acquiring the number of grids, canvas parameters and calibration parameters corresponding to the physiological signals, wherein the number of grids is the number of grids in grid lines to be drawn on the canvas, the canvas parameters are parameters of the canvas, the canvas parameters comprise the number of height pixels and the number of width pixels of the canvas, and the number of grids comprises the number of grids in the grid lines in a preset direction.
Wherein the number of lattices includes the number of lattices in the preset direction in the grid line. The preset direction may be understood as a direction of a canvas set in advance, and may be, for example, a height direction or a width direction.
S202, under the condition that the preset direction is the height direction of the canvas, determining the first pixel number of the unit grid in the grid line according to the height pixel number and the grid number.
The first pixel number may be understood as the number of pixels in the height direction of a unit cell in the grid lines, or as the number of pixels in the height direction of each cell in the grid lines.
In the embodiment of the present invention, the first pixel number of the unit grid in the grid line may be determined according to the height pixel number and the grid number under the condition that the preset direction is the height direction of the canvas, for example, by combining the above examples, the first pixel number xGridHeight may be calculated by the formula xgridheight=gridcanvas.
S203, determining a first number of grids in the width direction of the canvas in the grid lines according to the width pixel number and the first pixel number.
The first number is understood to be the number of lattices in the width direction among the grid lines.
In the embodiment of the present invention, the first number of lattices in the width direction of the canvas in the grid line may be determined according to the number of width pixels and the first number of pixels, for example, in combination with the above examples, the first number of GridCountX may be calculated by the formula gridcountx= (int) (gridcanvas.
S204, determining grid line parameters according to the number of grids and the first number.
In the embodiment of the present invention, the number of lattices may be taken as the number of lattices of the grid lines in the height direction in the grid line parameter, and the first number may be taken as the number of lattices of the grid lines in the width direction in the grid line parameter.
S205, when the preset direction is the width direction of the canvas, determining a second pixel number of the unit grid in the grid lines according to the width pixel number and the grid number.
The second pixel count may be understood as the number of pixels in the width direction of a unit cell in the grid lines, or as the number of pixels in the width direction of each cell in the grid lines.
In the embodiment of the present invention, the second pixel number of the unit grid in the grid line may be determined according to the width pixel number and the grid number under the condition that the preset direction is the width direction of the canvas, for example, by combining the above examples, the second pixel number yGridHeight may be calculated by the formula ygridheight=gridcanvas.
S206, determining a second number of grids in the grid line in the height direction of the canvas according to the height pixel number and the second pixel number.
The second number can be understood as the number of lattices in the height direction among the grid lines.
In the embodiment of the present invention, the second number of lattices in the grid line in the height direction of the canvas may be determined according to the height pixel number and the second pixel number, for example, in combination with the above examples, the second number of GridCountY may be calculated by the formula gridcounty= (int) (gridcanvas.
S207, determining grid line parameters according to the grid number and the second number.
In the embodiment of the present invention, the number of lattices may be used as the number of lattices of the grid lines in the width direction in the grid line parameter, and the second number may be used as the number of lattices of the grid lines in the height direction in the grid line parameter.
It should be noted that, in practical applications, S202-S204 and S205-S207 may be alternatively, alternatively or all performed, which is not specifically limited herein.
S208, drawing grid lines in the canvas based on the canvas parameters and the grid line parameters.
S209, acquiring signal information of the physiological signal, and determining drawing parameters of the physiological signal based on the signal information, the calibration parameters and the canvas parameters.
And S210, drawing a physiological signal line on the grid line based on the drawing parameters to obtain a physiological signal diagram of the physiological signal drawn in the canvas.
According to the technical scheme, canvas parameters comprise the number of height pixels and the number of width pixels of canvas, and the number of grids comprises the number of grids in the grid lines in the preset direction; determining grid line parameters based on the grid number and canvas parameters, comprising: under the condition that the preset direction is the height direction of the canvas, determining the first pixel number of the unit grid in the grid line according to the height pixel number and the grid number; determining a first number of grids in the width direction of the canvas in the grid lines according to the width pixel number and the first pixel number; determining grid line parameters according to the grid number and the first quantity; and/or under the condition that the preset direction is the width direction of the canvas, determining a second pixel number of the unit grid in the grid line according to the width pixel number and the grid number; determining a second number of lattices in the grid lines in the height direction of the canvas according to the height pixel number and the second pixel number; and determining grid line parameters according to the grid number and the second number. In the embodiment of the invention, the drawing parameters of the physiological signals are determined based on the signal information, the calibration parameters and the canvas parameters, so that the obtained drawing parameters can be more suitable for the canvas, and the portability of the drawing of the physiological signals is further improved.
An optional technical scheme is that the physiological signal comprises an electrocardiosignal, the canvas parameters comprise the height dimension and the width dimension of the canvas, and the calibration parameters comprise the preset dimension of unit grids in the grid lines, the paper feeding speed and the sampling rate; determining rendering parameters of the physiological signal based on the signal information, the scaling parameters, and the canvas parameters, comprising: determining a third pixel number of the unit size in the height direction of the canvas according to the height pixel number and the height size; determining the magnification of the actual size of the unit cell compared with the preset size according to the first pixel number and/or the second pixel number, and the third pixel number and the preset size; determining the maximum number of signal points which can be drawn for physiological signals on a screen canvas according to the width size, the paper feeding speed, the amplification factor and the sampling rate; determining a first abscissa of each signal point in the physiological signal in the grid line based on the signal information, the number of width pixels, and the maximum number; determining a first ordinate of each signal point in the physiological signal in the grid line based on the signal information, the third pixel number and the magnification; and determining the drawing parameters of the physiological signals according to the first abscissa and the first ordinate.
The third pixel number may be understood as the number of pixels per unit size, for example, in the case of a millimeter per unit size, the third pixel number may be understood as the number of pixels within 1 mm. The maximum number is understood to be the maximum number of signal points that can be mapped for physiological signals on a screen canvas. The first abscissa may be understood as an abscissa position of each signal point in the electrocardiographic signal in the grid line, and the first abscissa may be, for example, an abscissa of each signal point in the electrocardiographic signal in the grid line with the grid line as a coordinate system; as a further example, each signal point in the electrocardiographic signal may be a pixel location in the lateral direction in the grid lines. The first ordinate may be understood as the ordinate position of each signal point in the electrocardiographic signal in the grid line, and may be, for example, the ordinate of each signal point in the electrocardiographic signal in the grid line with the grid line as a coordinate system; for example, the pixel position of each signal point in the electrocardiographic signal in the longitudinal direction in the grid line may be further described.
Illustratively, in combination with the above examples, the third pixel number dpiY of the unit size in millimeters in the height direction of the canvas may be calculated by the formula dpiy=gridcanvas. In the case of a preset size of 5mm, the magnification of the actual size of the unit cell compared with the preset size can be calculated by the formula of report=xGridHeight/dpiY/5.
It should be noted that the magnification factor may determine the thickness of all lines in the grid line parameters, the size of the content such as the character labels, and/or the drawing parameters of the physiological signals. In the embodiment of the invention, the size of the reference grid line can be directly set in the calibration parameter, so that the grid line is scaled in equal proportion according to the size of the reference grid line and the magnification.
Illustratively, in combination with the above examples, where the sampling rate is 125 points per second, the maximum number of signal points that can be plotted on a screen canvas for a physiological signal can be calculated by the formula drawpointer count=Math.Ceiling (screen size. Width 10/Speed 125), where screen size. Width is the width dimension in centimeters and Speed is the paper feed Speed, and the above formula can be further understood as the maximum number=time of one screen canvas run-out.
In the embodiment of the invention, the maximum number of signal points which can be drawn for physiological signals on a screen canvas can be determined according to the number of width pixels, the paper feeding speed converted by pixel points and time as units, the amplification factor and the sampling rate.
Illustratively, in combination with the above examples, the pixel distance singiepix between signal points that can be drawn on the canvas for physiological signals can be calculated by the formula singiepix=gridcanvas; the first abscissa XpixValArray [ i ] of each signal point in the physiological signal in the grid line is calculated by the formula XpixValArray [ i ] = ((dragpointcount-i) & ltsinglepix ], wherein i can be understood as the sequential label of the signal points obtained according to the signal information in a corresponding screen canvas.
It should be noted that, in the embodiment of the present invention, referring to fig. 6, a Signal Buffer (Signal Buffer) may be defined, each Signal Point in the physiological Signal (Signal) is acquired at a sampling rate of, for example, 125 points per second to obtain Signal information of the physiological Signal, and the acquired Signal information of the physiological Signal may be loaded into the Signal Buffer first, so that data can be quickly extracted from the Signal Buffer during drawing. When the physiological signal line is required to be drawn, signal information corresponding to signal points for drawing a screen of physiological signal graph can be taken out from the signal Buffer area according to a first-in first-out (FIFO) principle, if the number of the signal information of the signal points in the signal Buffer area is insufficient for drawing the screen of physiological signal graph, the signal information of the physiological signal in the signal Buffer area is taken out completely, the physiological signal is loaded into a drawing Buffer area (Draw Buffer), the signal information of the corresponding physiological signal in the signal Buffer area is removed, and when the physiological signal line is required to be drawn, the signal information corresponding to the drawing number of the signal points required to be drawn in the drawing Buffer area is added into a drawing Queue (Draw Queue) to realize the drawing of the physiological signal line. In the embodiment of the invention, the signal information of the physiological signal can be acquired firstly, and the first abscissa of each signal point in the physiological signal in the grid line is calculated and then is loaded into the signal buffer area, in this case, the first abscissa of each signal point in the physiological signal in the grid line can be stored into the memory after the first abscissa of each signal point in the physiological signal in the grid line is calculated, so that the first abscissa does not need to be calculated independently during subsequent drawing, resource consumption is reduced, and performance is improved; the signal information of the obtained physiological signal may be loaded into the signal buffer area, and when the physiological signal line is required to be drawn, the first abscissa of each signal point in the physiological signal in the grid line is calculated, which is not limited specifically herein.
By way of example, in combination with the above examples, the position of the baseline in the canvas may be determined according to the number of height pixels, and the signal average avg may be calculated according to the signal information in the drawing buffer required by the physiological signal map to be drawn currently, where the signal average may be understood as an average of physiological signal values in the signal information in the drawing buffer, and the signal average may be used to characterize the orientation of the signal point on the canvas at the baseline; for each signal point in the physiological signal, acquiring a corresponding first abscissa from the memory according to the index value of the signal point in the memory, and determining the pixel position of the signal point in the transverse direction in the grid line based on the first abscissa; the voltage value voltagepoiginal of the signal point expressed in millivolts can be obtained through calculation of the formula voltagepoiginal= (PointCollection [ i ] -avg). Default_factor, wherein PointCollection [ i ] is a physiological signal value corresponding to the signal point, and Default_factor is a fixed parameter in a calibration parameter, and the fixed parameter can be set according to actual requirements, can be obtained by carrying out scattering analysis on sample signal information of a sample physiological signal obtained historically or obtained according to other paths, and the like; the first ordinate YpixVal of the signal point in the grid line can be calculated by the formula ypixval=voltageooriginal x 10 x dpiy x Proport.
In the embodiment of the invention, the first ordinate of the signal points can be determined according to the order of the positions in the canvas from right to left, for example, the order marks of the signal points are respectively 1, 2, 3, 4 and 5, then the first ordinate of the signal point with the order mark of 5 can be preferentially calculated, then the drawing parameters of the physiological signals are determined according to the first abscissa and the first ordinate, after the drawing parameters are obtained, the signal points which can be drawn for the physiological signals on a screen of canvas currently are added into a drawing queue according to the order of determining the first ordinate, so that the physiological signal lines are routed from right to left on the visual effect.
In the embodiment of the invention, the physiological signal comprises an electrocardiosignal, the canvas parameters also comprise the height dimension and the width dimension of the canvas, and the calibration parameters comprise the preset dimension of unit grids in the grid lines, the paper feeding speed and the sampling rate; determining a third pixel number of the unit size in the height direction of the canvas according to the height pixel number and the height size; determining the magnification of the actual size of the unit cell compared with the preset size according to the first pixel number and/or the second pixel number, and the third pixel number and the preset size; determining the maximum number of signal points which can be drawn for physiological signals on a screen canvas according to the width size, the paper feeding speed, the amplification factor and the sampling rate; determining a first abscissa of each signal point in the physiological signal in the grid line based on the signal information, the number of width pixels, and the maximum number; determining a first ordinate of each signal point in the physiological signal in the grid line based on the signal information, the third pixel number and the magnification; and determining the drawing parameters of the physiological signals according to the first abscissa and the first ordinate. According to the technical scheme, the obtained drawing parameters can be more suitable for canvas, so that portability of electrocardiosignal drawing is improved.
Example III
Fig. 7 is a flowchart of another physiological signal rendering method provided in the third embodiment of the present invention. The present embodiment is optimized based on the above technical solutions. In this embodiment, optionally, the canvas parameters include a height pixel number and a width pixel number of the canvas, and the scaling parameters include a preset duration span of the canvas and a maximum value and a minimum value preset for a signal type of the physiological signal; determining rendering parameters of the physiological signal based on the signal information, the scaling parameters, and the canvas parameters, comprising: determining a second abscissa of each signal point in the physiological signal in the grid line based on the obtained current time value, the preset duration span, the signal time value in the signal information and the width pixel number; determining a second ordinate of each signal point in the physiological signal in the grid lines according to the height pixel number, the maximum value, the minimum value and the physiological signal value in the signal information; and determining the drawing parameters of the physiological signals according to the second abscissa and the second ordinate.
Referring to fig. 7, the method of the present embodiment may specifically include the following steps.
S301, aiming at a physiological signal to be drawn, acquiring the number of grids, canvas parameters and calibration parameters corresponding to the physiological signal, wherein the number of grids is the number of grids in grid lines to be drawn on the canvas, the canvas parameters are parameters of the canvas, the canvas parameters comprise the number of height pixels and the number of width pixels of the canvas, and the calibration parameters comprise the preset duration span of the canvas and the preset maximum value and the preset minimum value aiming at the signal type of the physiological signal.
The physiological signal may be, for example, a heart rate signal or a uterine contraction signal. The maximum value is understood to be the maximum value of the physiological signal value corresponding to the signal type of the preset physiological signal, for example 40 in case the physiological signal is a heart rate signal. The minimum value may be understood as the minimum value of the physiological signal value corresponding to the signal type of the preset physiological signal, e.g. in case the physiological signal is a heart rate signal, the maximum value may be e.g. 200. The determinants of the maximum and minimum values are not particularly limited in the embodiments of the present invention.
S302, determining grid line parameters based on the grid number and the canvas parameters, and drawing grid lines in the canvas based on the canvas parameters and the grid line parameters.
S303, acquiring signal information of physiological signals.
In the embodiment of the present invention, an entity class is defined, for example, the entity class may be a entity class HeartRateinfo, where the entity class may be used to store signal information of physiological signals, the signal information of each signal point in the physiological signals may include three attribute information, namely, a signal time value (DataTime), a signal type and a physiological signal value (DataValue), and the signal type may be understood as a type of physiological signals, and the signal type may include, for example, a 1-mother heart rate, a 2-fetal heart rate or a 3-uterine contraction (DataType).
In the embodiment of the invention, the data buffer area can be defined, and the acquired signal information of the physiological signals is firstly loaded into the data buffer area, so that the signal information of the physiological signals can be quickly taken out from the data buffer area during drawing, and the data buffer area can be loaded with the signal information of the physiological signals in a preset time period, so that the memory resources occupied by the data buffer area are saved.
S304, determining a second abscissa of each signal point in the physiological signal in the grid lines based on the acquired current time value, the preset duration span, the signal time value in the signal information and the width pixel number.
The current time value may be understood as the time value of the current time point. The second abscissa may be understood as the abscissa position of each signal point in the physiological signal in the grid line, and the second abscissa may be, for example, the grid line as a coordinate system, and the abscissa of each signal point in the physiological signal in the grid line; as another example, each signal point in the physiological signal may be a pixel location in the lateral direction in the grid line.
By way of example, in combination with the above examples, in the case that the preset duration span is 20 minutes, the minimum time value MinValueX in the current grid line can be obtained through calculation by the formula minvaluex=maxvaluex-1200000, where MaxValueX can be understood as the maximum time value in the current grid line, that is, the current time value for drawing the signal point to be drawn currently; the second abscissa XpixVal can be calculated according to xpixval= (DataTime-MinValueX)/(MaxValueX-MinValueX) ×gridcanvas.
S305, determining a second ordinate of each signal point in the physiological signal in the grid lines according to the height pixel number, the maximum value, the minimum value and the physiological signal value in the signal information.
The second ordinate may be understood as the ordinate position of each signal point in the physiological signal in the grid line, and may be, for example, the ordinate of each signal point in the physiological signal in the grid line with the grid line as a coordinate system; as another example, each signal point in the physiological signal may be a pixel location in the longitudinal direction in the grid line.
Illustratively, in combination with the above examples, the second ordinate YpixVal may be calculated by the formula ypixval= ((DataValue-minvalue y)/(MaxValueY-minvalue y)). Gridcanvas.
S306, determining the drawing parameters of the physiological signals according to the second abscissa and the second ordinate.
S307, drawing a physiological signal line on the grid line based on the drawing parameters to obtain a physiological signal diagram of the physiological signal drawn in the canvas.
According to the technical scheme, the canvas parameters comprise the number of height pixels and the number of width pixels of the canvas, and the calibration parameters comprise the preset duration span of the canvas and the preset maximum value and minimum value of the signal type of the physiological signal; determining a second abscissa of each signal point in the physiological signal in the grid line based on the obtained current time value, the preset duration span, the signal time value in the signal information and the width pixel number; determining a second ordinate of each signal point in the physiological signal in the grid lines according to the height pixel number, the maximum value, the minimum value and the physiological signal value in the signal information; and determining the drawing parameters of the physiological signals according to the second abscissa and the second ordinate. According to the technical scheme provided by the embodiment of the invention, the obtained drawing parameters can be more suitable for canvas, so that the portability of the physiological signal drawing is further improved.
An optional technical solution, the physiological signal rendering method further includes: drawing a time sliding bar in the canvas based on a preset duration span; determining a second abscissa of each signal point in the physiological signal in the grid line based on the obtained current time value, the preset duration span, the signal time value in the signal information and the width pixel number, wherein the second abscissa comprises the following steps: determining a second abscissa of each signal point in the physiological signal in the grid line based on the acquired pre-sliding time value, sliding point time value and current time value, and a preset duration span, a signal time value in the signal information and a width pixel number; wherein, for a sliding point located on the time slider, the pre-sliding time value is a time value at which a sliding operation acting on the sliding point is started in response; the sliding point time value is a time value corresponding to the sliding point on the time slide bar after the sliding operation is performed on the sliding point.
The sliding operation is understood to mean an operation to cause a sliding point to slide on the time bar.
In the embodiment of the invention, a time slide bar can be drawn in a canvas based on a preset time span, for example, the preset time span is 20 minutes, the minimum value slide bar on the time slide bar is slide.minimum=0, and the maximum value slide.maximum=1200000 on the time slide bar is the maximum value slide bar on the time slide bar is 1200000 milliseconds; in the embodiment of the invention, the relevant data of the historical physiological signal can be checked by dragging the sliding point on the time sliding bar on the physiological signal graph, and the sliding point can be always kept at the end side position under the condition that the sliding point is positioned at the end side corresponding to the maximum value of the sliding bar of the time sliding bar.
Illustratively, in connection with the above examples, the time difference value datetime interval between the pre-slip time value and the slip point time value may be calculated by the formula datetime interval = datetime. Now. Unixticks () -slip. Value, note that, since the pre-slip time value may be obtained by the function datetime. Now. Unixticks () that obtains the current time value at the time point that is located at the time point that starts the sliding operation that is responsive to the action on the slip point, datetime. Now. Unixticks () in the above formula is the pre-slip time value, wherein slip. Value is the slip point time value; calculating to obtain a maximum time value MaxValueX in the current grid line through the formula MaxValueX=DateTime. Now. UnixTicks () -DateTimeInterval, wherein DateTime. Now. UnixTicks () can be understood as a current time value, namely, any current time value after sliding operation is performed on a sliding point; under the condition that the preset duration span is 20 minutes, the minimum time value MinValueX in the current grid line can be obtained through calculation according to the formula MinValueX=MaxValueX-1200000; the second abscissa XpixVal can be calculated from xpixval= (DataTime-MinValueX)/(MaxValueX-MinValueX) gridcanvas.
In the embodiment of the invention, a time sliding bar can be drawn in the canvas based on a preset time span; determining a second abscissa of each signal point in the physiological signal in the grid line based on the acquired pre-sliding time value, sliding point time value and current time value, and a preset duration span, a signal time value in the signal information and a width pixel number; wherein, for a sliding point located on the time slider, the pre-sliding time value is a time value at which a sliding operation acting on the sliding point is started in response; the sliding point time value is a time value corresponding to the sliding point on the time slide bar after the sliding operation is performed on the sliding point. According to the technical scheme, the canvas of the time sliding bar with the sliding points capable of sliding can be drawn, and the physiological signal diagram can be drawn adaptively based on the positions of the sliding points.
Example IV
Fig. 8 is a flowchart of another physiological signal rendering method provided in the fourth embodiment of the present invention. The present embodiment is optimized based on the above technical solutions. In this embodiment, optionally, the physiological signals include a maternal heart rate signal and a fetal heart rate signal; drawing a physiological signal line on the grid line based on the drawing parameters, comprising: the physiological signal line of the maternal heart rate signal is drawn on the grid line based on the drawing parameters of the maternal heart rate signal, and the physiological signal line of the fetal heart rate signal is drawn on the grid line based on the drawing parameters of the fetal heart rate signal. Wherein, the explanation of the same or corresponding terms as the above embodiments is not repeated herein.
Referring to fig. 8, the method of the present embodiment may specifically include the following steps.
S401, aiming at a physiological signal to be drawn, acquiring the number of grids, canvas parameters and calibration parameters corresponding to the physiological signal, wherein the number of grids is the number of grids in grid lines to be drawn on the canvas, the canvas parameters are parameters of the canvas, and the physiological signal comprises a mother heart rate signal and a fetus heart rate signal.
And S402, determining grid line parameters based on the grid number and the canvas parameters, and drawing grid lines in the canvas based on the canvas parameters and the grid line parameters.
S403, acquiring signal information of the physiological signal, and determining drawing parameters of the physiological signal based on the signal information, the calibration parameters and the canvas parameters.
S404, drawing physiological signal lines of the mother heart rate signals on the grid lines based on the drawing parameters of the mother heart rate signals, and drawing physiological signal lines of the fetal heart rate signals on the grid lines based on the drawing parameters of the fetal heart rate signals to obtain a physiological signal map of the physiological signals drawn in the canvas.
In the embodiment of the invention, the physiological signal line of the maternal heart rate signal and the physiological signal line of the fetal heart rate signal can be drawn on the same grid line based on the drawing parameters of the maternal heart rate signal and the drawing parameters of the fetal heart rate signal.
In the embodiment of the invention, the background color of the fetal heart rate signal can be drawn in the grid lines, and the background color can be used for reflecting whether the physiological signal line of the fetal heart rate signal is in the normal heart rate range or not; the normal range of the fetal heart rate can be preset, for example, 110-160 times per minute; presetting the number of fetal heart rates represented by unit grids of the grid lines in the height direction, wherein the number of fetal heart rates represented by the unit grids is 10 times; determining the number of the background color lattices occupied by the background color of the fetal heart rate signal in the height direction according to the normal range and the fetal heart rate number represented by the unit lattices, for example, determining that the number of the background color lattices is 5 lattices according to the examples; the pixel height occupied by the background color may be determined based on the number of grids of the background color and the number of pixels of the height, for example, according to the examples described above, the pixel height fhrbackground. Determining a starting rendering position of a background color of the rendered fetal heart rate signal in a height direction based on the number of height pixels, the normal range and the number of fetal heart rates represented by the unit grid, e.g., according to the examples described above, the canvas top starting rendering position may be calculated by the formula marginTop = gridcanvas. Acturalhight/gridycourth (MaxValueHrY-MinValueHrY)/10, where MaxValueHrY is the maximum value of the normal range of fetal heart rates and MinValueHrY is the minimum value of the normal range of fetal heart rates; the background color of the fetal heart rate signal is plotted in the grid lines by the pixel height occupied by the background color, the canvas top starting plot position, and the canvas width.
According to the technical scheme, physiological signals comprise a mother heart rate signal and a fetus heart rate signal; the physiological signal line of the maternal heart rate signal is drawn on the grid line based on the drawing parameters of the maternal heart rate signal, and the physiological signal line of the fetal heart rate signal is drawn on the grid line based on the drawing parameters of the fetal heart rate signal. In the embodiment of the invention, the physiological signal line of the mother heart rate signal and the physiological signal line of the fetal heart rate signal can be drawn on the same grid line, thereby facilitating the comparison and the check of the mother heart rate signal and the fetal heart rate signal and increasing the drawing effect of the drawn physiological signal diagram.
An optional technical solution, the physiological signal further comprises a contraction signal, the grid lines include heart rate grid lines corresponding to the maternal heart rate signal and the fetal heart rate signal, and the contraction grid lines of the contraction signal; drawing grid lines in the canvas based on the canvas parameters and the grid line parameters, including: drawing heart rate gridlines in the canvas based on the canvas parameters and gridline parameters corresponding to the maternal heart rate signal and the fetal heart rate signal; drawing grid lines in the canvas based on the canvas parameters and the grid line parameters of the shrinkage signal; drawing a physiological signal line of the maternal heart rate signal on a grid line based on the drawing parameters of the maternal heart rate signal, and drawing a physiological signal line of the fetal heart rate signal on the grid line based on the drawing parameters of the fetal heart rate signal, comprising: drawing a physiological signal line of the maternal heart rate signal on a heart rate grid line based on the drawing parameters of the maternal heart rate signal, and drawing a physiological signal line of the fetal heart rate signal on the heart rate grid line based on the drawing parameters of the fetal heart rate signal; drawing a physiological signal line on the grid line based on the drawing parameters, further comprising: and drawing a physiological signal line of the uterine contraction signal on the uterine contraction grid line based on the drawing parameters of the uterine contraction signal.
In the embodiment of the invention, the heart rate gridlines are drawn in the canvas based on canvas parameters and gridline parameters corresponding to the mother heart rate signal and the fetal heart rate signal, wherein the heart rate gridlines are gridlines of physiological signal lines for drawing the heart rate signal; drawing a contraction grid line in the canvas based on the canvas parameters and the grid line parameters of the contraction signal, wherein the contraction grid line is the grid line of the physiological signal line for drawing the contraction signal.
In embodiments of the present invention, there may be separation regions between heart rate grid lines and uterine contraction grid lines for separating the different grid lines. The positional relationship between the heart rate grid lines and the uterine contraction grid lines is not particularly limited in the embodiment of the present invention. The grid lines in the embodiment of the invention are not limited to heart rate grid lines and uterine contraction grid lines, but can be grid lines corresponding to other physiological signals; correspondingly, the drawn physiological signal line can also be the physiological signal line corresponding to other physiological signals. For example, referring to fig. 9, the plotted physiological signal map may include heart rate grid lines, uterine contraction grid lines, grid lines corresponding to electrocardiographic signals, physiological signal lines of maternal heart rate signals, physiological signal lines of fetal heart rate signals, physiological signal lines of uterine contraction signals, and physiological signal lines of electrocardiographic signals. It will be appreciated that referring to fig. 10, the canvas may further include physiological signal maps corresponding to a plurality of different objects, and/or physiological signal maps corresponding to the same object at different times.
By way of example, in connection with the examples described above, where the number of grids corresponding to the heart rate grid lines in the height direction is indicated by GridCountHrY, and heart rate grid lines are drawn in the canvas, the formula codedinatey = gridcanvas, actuallhealth-gridcanvas, actuallhealth/GridCountY (lineedx+gridcountucy) may be performed, and GridCountHrY is performed in a loop through the above formula, and the position codedinaty of each transverse line to be drawn in the canvas is calculated, considering that the origin coordinates of the container are usually from the upper left corner, so that the transverse lines in the grid lines may be drawn from the lower left and from the right according to the position of each transverse line to be drawn, where GridCountUcY may be understood as the number of grids corresponding to the grid lines in the height direction; drawing grid lines in the canvas, performing a formula CoordinateY=GridCanvas. ActualHeight-GridCanvas. ActualHeight/GridCountY LineIDX, performing the above formula circularly for GridCountUcY times, and calculating to obtain a position CoordinateY of each transverse line to be drawn in the canvas, wherein considering that the origin coordinate of the container is usually from the upper left corner, so that the transverse line in the grid lines can be drawn from left to right according to the position of each transverse line to be drawn in the canvas from the lower left; the grid number of the grid lines in the width direction is represented by GridCountX, a formula of CoordinateX=LineIDX/gridCountx+gridcanvas.ActualWidth can be executed, gridCountx is circularly executed by the formula, the position of each longitudinal line to be drawn in the canvas is calculated, and the longitudinal line in the grid lines drawn from bottom to top is realized according to the position of each longitudinal line to be drawn in the canvas.
In the embodiment of the invention, under the condition that the physiological signal line of the maternal heart rate signal, the physiological signal line of the fetal heart rate signal and the physiological signal line of the uterine contraction signal are simultaneously drawn in the same canvas, three signal drawing sets (polylinequality) can be defined to be respectively used for storing the signal information of the fetal heart rate signal, the signal information of the maternal heart rate signal and the signal information of the uterine contraction signal when the signal information of the physiological signals is acquired, and when different physiological signal lines are drawn, the corresponding signal information can be screened out according to the signal types, for example, when the physiological signal line corresponding to the fetal heart rate signal is required to be drawn, the signal information corresponding to the fetal heart rate signal can be screened out according to the signal type datatype=2.
It should be noted that, in the case that the physiological signal line of the maternal heart rate signal, the physiological signal line of the fetal heart rate signal and the physiological signal line of the uterine contraction signal are simultaneously drawn in the same canvas, an example different from the above-mentioned manner of determining the second ordinate of each signal point in the physiological signal in the grid line is provided herein, for example, in combination with the above examples, in the case that the second ordinate of each signal point in the heart rate signal in the grid line is determined, the uterine contraction height pixel number UcHeight of the uterine contraction grid line can be obtained by calculating by the formula ucheight=xgridheight; calculating to obtain the heart rate height pixel number HrHeight of the heart rate grid line through the formula HrHeight=GridCanvas. Actual Height-UcHeight-xGridHeight; calculating to obtain a second ordinate YpixVal of the signal point in the grid line through the formula YpixVal=HrHeight- ((dataValue-MinValueY)/(MaxValueY-MinValueY)); the number of pixels of the uterine height UcHeight of the uterine contraction grid line can be calculated by the formula ucheight=xgridheight×gridcountucy under the condition that the second ordinate of each signal point in the uterine contraction signal in the grid line is determined; the second ordinate YpixVal of the signal point in the grid line is calculated by the formula ypixval=gridcanvas.
In an embodiment of the present invention, referring to fig. 11, the physiological signals further include a contraction signal, the grid lines include heart rate grid lines corresponding to the maternal heart rate signal and the fetal heart rate signal, and the contraction grid lines of the contraction signal; drawing heart rate gridlines in the canvas based on the canvas parameters and gridline parameters corresponding to the maternal heart rate signal and the fetal heart rate signal; drawing grid lines in the canvas based on the canvas parameters and the grid line parameters of the shrinkage signal; drawing a physiological signal line of the maternal heart rate signal on a heart rate grid line based on the drawing parameters of the maternal heart rate signal, and drawing a physiological signal line of the fetal heart rate signal on the heart rate grid line based on the drawing parameters of the fetal heart rate signal; and drawing a physiological signal line of the uterine contraction signal on the uterine contraction grid line based on the drawing parameters of the uterine contraction signal. According to the technical scheme, the physiological signal line of the mother heart rate signal, the physiological signal line of the fetal heart rate signal and the physiological signal line of the uterine contraction signal can be simultaneously drawn in the same canvas, so that the diversification of drawing a thick physiological signal diagram is realized.
For better understanding of the technical solution of the embodiment of the present invention described above, an alternative example is provided herein. For example, referring to fig. 12, in an embodiment of the present invention, a basic plotter (plotter base), an electrocardiograph plotter (ecgcurrvechartplotter), and a heart rate plotter (heart rate plotter) may be obtained according to the above-described methods of plotting physiological signals. The basic plotter declares a basic framework including a reference to a style file (plottebasetstyle), an application of a basic style (DefaultStyle), a gridline canvas (GridCanvas), a physiological signal line (CurveCanvas), and a canvas parameter reading (ReadDpi), which can provide a basic framework for the subsequent concrete implementation; the electrocardiograph is a plotter based on a basic plotter, and can be used for drawing to obtain an electrocardiograph image; the electrocardiograph declares grid line refreshing (RefreshGRID), including drawing a grid line frame (DrawGridBorder), drawing a horizontal axis (DrawAxisX), and drawing a vertical axis (DrawAxisY), declares computing coordinates (CalduleCoordinates), including the position of each longitudinal line to be drawn in the canvas (CoordinateX) and the position of each lateral line to be drawn in the canvas (CoordinateY), declares data refreshing (RefreshDataSource); the heart rate plotter is a plotter obtained based on a basic plotter and can be used for drawing and obtaining a heart rate signal diagram; the heart rate plotter declares a grid line refresh (refreshmetric) comprising drawing a grid line bounding box (DrawGridBorder), drawing a heart rate cross-axis (DrawAxisHrX), drawing a uterine contraction cross-axis (DrawAxisUcX), drawing a vertical axis (DrawAxisY), drawing a coordinate axis (drawcodeaxis), and drawing a heart rate background (drawhcarbackgroup), declares a calculated coordinate (calcluatecode), including the position of each longitudinal line to be drawn in the canvas (CoordinateX) and the position of each transverse line to be drawn in the canvas (coordidinatee y), declares a data refresh (RefreshDataSource). In the embodiment of the invention, a plotter source library (plotter source base) class can be obtained, and a cardiac source (EcgSource), a heart rate source (heart rate source) and a drawing (Draw) are declared; electrocardiogram curve sources (ecgcurrvesource) obtained based on a plotter source library can be obtained for an electrocardiograph plotter and a heart rate plotter, and plotter (Draw) is declared; a heart rate source (heart rate source) based on a plotter source library is also available for use with electrocardiographs as well as heart rate plotters, declaring a plot (Draw).
For better understanding of the technical solution of the embodiment of the present invention described above, an alternative example is provided herein. For example, referring to fig. 13, for a physiological signal to be mapped, mapping parameters are configured, and the mapping parameters may include parameters such as scaling parameters; creating a plotter according to the configuration parameters; determining the magnification of the actual size of the container relative to the reference canvas size in the scaling parameters based on the relevant parameters and the scaling parameters of the container; creating a canvas based on the magnification; obtaining the grid number, canvas parameters and calibration parameters corresponding to physiological signals; determining grid line parameters based on the grid number and the canvas parameters, and drawing grid lines in the canvas based on the canvas parameters and the grid line parameters; acquiring signal information of a physiological signal, and determining drawing parameters of the physiological signal based on the signal information, the calibration parameters and the canvas parameters; loading the rendering parameters of the physiological signal into a signal buffer; and drawing the physiological signal line on the grid line based on the drawing parameters in the signal buffer area to obtain a physiological signal diagram of the physiological signal drawn in the canvas.
Example five
Fig. 14 is a block diagram of a physiological signal rendering device according to a fifth embodiment of the present invention, which is configured to execute the physiological signal rendering method according to any of the above embodiments. The device belongs to the same inventive concept as the physiological signal rendering method of each of the above embodiments, and for details not described in detail in the embodiments of the physiological signal rendering device, reference may be made to the embodiments of the physiological signal rendering method. Referring to fig. 14, the apparatus may specifically include: a scaling parameter acquisition module 510, a grid line drawing module 520, a drawing parameter determination module 530, and a physiological signal map obtaining module 540.
The calibration parameter obtaining module 510 is configured to obtain, for a physiological signal to be drawn, a grid number, a canvas parameter, and a calibration parameter corresponding to the physiological signal, where the grid number is the number of grids in the grid line to be drawn on the canvas, and the canvas parameter is a parameter of the canvas.
And a gridline drawing module 520 for determining gridline parameters based on the grid number and the canvas parameters, and drawing gridlines in the canvas based on the canvas parameters and the gridline parameters.
The drawing parameter determining module 530 is configured to obtain signal information of the physiological signal, and determine drawing parameters of the physiological signal based on the signal information, the scaling parameters, and the canvas parameters.
The physiological signal map obtaining module 540 is configured to draw physiological signal lines on the grid line based on the drawing parameters, and obtain a physiological signal map of the physiological signal drawn in the canvas.
Optionally, the canvas parameters include a number of height pixels and a number of width pixels of the canvas, and the number of lattices includes a number of lattices in the grid lines in a preset direction.
The gridline drawing module 520 may include: a first pixel number determining unit, configured to determine, according to the height pixel number and the grid number, a first pixel number of a unit grid in the grid line when the preset direction is a height direction of the canvas; a first number determining unit configured to determine a first number of lattices in the width direction of the canvas in the grid lines, based on the width pixel number and the first pixel number; a first grid line parameter determining unit configured to determine a grid line parameter based on the number of grids and the first number; and/or a second pixel number determining unit, configured to determine, according to the number of width pixels and the number of grid elements, a second number of pixels of a unit grid in the grid line, in a case that the preset direction is the width direction of the canvas; a second number determining unit configured to determine a second number of lattices in the height direction of the canvas in the grid lines, based on the height pixel number and the second pixel number; and a second grid line parameter determining unit for determining grid line parameters according to the number of grids and the second number.
Optionally, the physiological signal includes an electrocardiograph signal, the canvas parameter further includes a height dimension and a width dimension of the canvas, and the calibration parameter includes a preset dimension of a unit grid in the grid line, a paper feeding speed and a sampling rate; the drawing parameter determination module 530 may include: a third pixel number determining unit for determining a third pixel number of a unit size in the height direction of the canvas according to the height pixel number and the height size; a magnification determining unit, configured to determine a magnification of the actual size of the unit cell compared to the preset size according to the first pixel number and/or the second pixel number, and the third pixel number and the preset size; the maximum number determining unit is used for determining the maximum number of signal points which can be drawn for physiological signals on one screen of canvas according to the width size, the paper feeding speed, the amplification factor and the sampling rate; a first abscissa determining unit for determining a first abscissa of each signal point in the physiological signal in the grid line based on the signal information, the number of width pixels, and the maximum number; a first ordinate determining unit for determining a first ordinate of each signal point in the physiological signal in the grid line based on the signal information, the third pixel count, and the magnification; and the first drawing parameter determining unit is used for determining the drawing parameters of the physiological signals according to the first abscissa and the first ordinate.
Optionally, the canvas parameters include a height pixel number and a width pixel number of the canvas, and the scaling parameters include a preset duration span of the canvas and a maximum value and a minimum value preset for a signal type of the physiological signal; the drawing parameter determination module 530 may include: a second abscissa determining unit, configured to determine a second abscissa of each signal point in the physiological signal in the grid line based on the obtained current time value, the preset duration span, the signal time value in the signal information, and the number of width pixels; a second ordinate determining unit, configured to determine a second ordinate of each signal point in the physiological signal in the grid line according to the number of height pixels, the maximum value, the minimum value, and the physiological signal value in the signal information; and the second drawing parameter determining unit is used for determining the drawing parameters of the physiological signals according to the second abscissa and the second ordinate.
On the basis of the above scheme, optionally, the physiological signal drawing device may further include: the time sliding bar drawing module is used for drawing the time sliding bar in the canvas based on the preset time span; the second abscissa determining unit may include: a second abscissa determining subunit, configured to determine a second abscissa of each signal point in the physiological signal in the grid line based on the acquired pre-sliding time value, the sliding point time value, the current time value, and the preset duration span, the signal time value in the signal information, and the number of width pixels; wherein, for a sliding point located on the time slider, the pre-sliding time value is a time value at which a sliding operation acting on the sliding point is started in response; the sliding point time value is a time value corresponding to the sliding point on the time slide bar after the sliding operation is performed on the sliding point.
Optionally, the physiological signal comprises a maternal heart rate signal and a fetal heart rate signal; the physiological signal map obtaining module 540 may include: the first physiological signal line drawing unit is used for drawing the physiological signal line of the mother heart rate signal on the grid line based on the drawing parameters of the mother heart rate signal and drawing the physiological signal line of the fetal heart rate signal on the grid line based on the drawing parameters of the fetal heart rate signal.
On the basis of the scheme, optionally, the physiological signals further comprise uterine contraction signals, and the grid lines comprise heart rate grid lines corresponding to the mother heart rate signals and the fetus heart rate signals and uterine contraction grid lines of the uterine contraction signals; the gridline drawing module 520 may further include: the heart rate gridline drawing unit is used for drawing heart rate gridlines in the canvas based on canvas parameters and gridline parameters corresponding to the maternal heart rate signal and the fetal heart rate signal; the drawing unit of the grid line of the palace is used for drawing the grid line of palace in the canvas based on canvas parameter and grid line parameter of the palace signal; the first physiological signal line drawing unit may include: a physiological signal line drawing subunit, configured to draw a physiological signal line of the maternal heart rate signal on the heart rate grid line based on the drawing parameter of the maternal heart rate signal, and draw a physiological signal line of the fetal heart rate signal on the heart rate grid line based on the drawing parameter of the fetal heart rate signal; the physiological signal map obtaining module 540 may further include: and the second physiological signal line drawing unit is used for drawing the physiological signal line of the uterine contraction signal on the uterine contraction grid line based on drawing parameters of the uterine contraction signal.
According to the physiological signal drawing device provided by the fifth embodiment of the invention, the calibration parameter acquisition module is used for acquiring the number of grids, canvas parameters and calibration parameters corresponding to the physiological signals aiming at the physiological signals to be drawn, wherein the number of the grids is the number of the grids in the grid lines to be drawn on the canvas, and the canvas parameters are parameters of the canvas; determining grid line parameters based on the grid number and the canvas parameters through a grid line drawing module, and drawing grid lines in the canvas based on the canvas parameters and the grid line parameters; acquiring signal information of the physiological signal through a drawing parameter determining module, and determining drawing parameters of the physiological signal based on the signal information, the calibration parameters and the canvas parameters; and drawing a physiological signal line on the grid line based on the drawing parameters by a physiological signal diagram obtaining module to obtain a physiological signal diagram of the physiological signal drawn in the canvas. According to the device, based on the preset grid number and canvas parameters of the canvas, the physiological signal diagram obtained by drawing can be drawn according to canvases which are suitable for different sizes, the drawing of the self-adaptive physiological signal diagram is realized, a large amount of research and development time is not needed for building and developing a new physiological signal drawing function for a new project, and therefore the expandability of the physiological signal drawing is improved.
The physiological signal drawing device provided by the embodiment of the invention can execute the physiological signal drawing method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
It should be noted that, in the above embodiment of the physiological signal rendering device, each unit and module included are only divided according to the functional logic, but not limited to the above division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for distinguishing from each other, and are not used to limit the protection scope of the present invention.
Example six
Fig. 15 shows a schematic diagram of the structure of an electronic device 10 that may be used to implement an embodiment of the present invention. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. Electronic equipment may also represent various forms of mobile devices, such as personal digital processing, cellular telephones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 15, the electronic device 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 may also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
Various components in the electronic device 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information/data with other devices via a computer network, such as the internet, and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as physiological signal rendering methods.
In some embodiments, the physiological signal rendering method may be implemented as a computer program, which is tangibly embodied on a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the physiological signal mapping method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the physiological signal rendering method by any other suitable means (e.g. by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the electronic device. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic input, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A physiological signal mapping method, comprising:
aiming at a physiological signal to be drawn, obtaining the number of grids, canvas parameters and calibration parameters corresponding to the physiological signal, wherein the number of grids is the number of grids in grid lines to be drawn on a canvas, and the canvas parameters are parameters of the canvas;
determining grid line parameters based on the grid number and the canvas parameters, and drawing the grid lines in the canvas based on the canvas parameters and the grid line parameters;
Acquiring signal information of the physiological signal, and determining drawing parameters of the physiological signal based on the signal information, the scaling parameters and the canvas parameters;
and drawing a physiological signal line on the grid line based on the drawing parameters to obtain a physiological signal diagram of the physiological signal drawn in the canvas.
2. The method of claim 1, wherein the canvas parameters comprise a number of height pixels and a number of width pixels of the canvas, the number of lattices comprising a number of lattices in the grid line in a preset direction;
the determining grid line parameters based on the grid number and the canvas parameters includes:
determining a first pixel number of unit grids in the grid lines according to the height pixel number and the grid number under the condition that the preset direction is the height direction of the canvas;
determining a first number of grids in the grid line in the width direction of the canvas according to the width pixel number and the first pixel number;
determining grid line parameters according to the grid number and the first quantity;
and/or the number of the groups of groups,
determining a second pixel number of unit grids in the grid lines according to the width pixel number and the grid number under the condition that the preset direction is the width direction of the canvas;
Determining a second number of lattices in the grid line in the height direction of the canvas according to the height pixel number and the second pixel number;
and determining grid line parameters according to the grid number and the second number.
3. The method of claim 2, wherein the physiological signal comprises an electrocardiograph signal, the canvas parameters further comprise a height dimension and a width dimension of the canvas, and the scaling parameters comprise a preset dimension of a unit cell in the grid line, a paper feed speed, and a sampling rate;
the determining rendering parameters of the physiological signal based on the signal information, the scaling parameters, and the canvas parameters comprises:
determining a third pixel number of a unit size in the height direction of the canvas according to the height pixel number and the height size;
determining the magnification factor of the actual size of the unit cell compared with the preset size according to the first pixel number and/or the second pixel number, the third pixel number and the preset size;
determining a maximum number of signal points which can be drawn on a screen of the canvas for the physiological signal according to the width dimension, the paper feeding speed, the magnification factor and the sampling rate;
Determining a first abscissa of each signal point in the physiological signal in the grid line based on the signal information, the number of width pixels, and the maximum number;
determining a first ordinate of each signal point in the physiological signal in the grid line based on the signal information, the third pixel count, and the magnification;
and determining the drawing parameters of the physiological signals according to the first abscissa and the first ordinate.
4. The method of claim 1, wherein the canvas parameters comprise a height pixel count and a width pixel count of the canvas, and the scaling parameters comprise a preset duration span of the canvas and a preset maximum and minimum value for a signal type of the physiological signal;
the determining rendering parameters of the physiological signal based on the signal information, the scaling parameters, and the canvas parameters comprises:
determining a second abscissa of each signal point in the physiological signal in the grid line based on the acquired current time value, the preset duration span, the signal time value in the signal information and the width pixel number;
Determining a second ordinate of each signal point in the physiological signal in the grid line according to the height pixel number, the maximum value, the minimum value and the physiological signal value in the signal information;
and determining the drawing parameters of the physiological signals according to the second abscissa and the second ordinate.
5. The method according to claim 4, further comprising:
drawing a time sliding bar in the canvas based on the preset duration span;
the determining, based on the obtained current time value, the preset duration span, the signal time value in the signal information, and the width pixel number, a second abscissa of each signal point in the physiological signal in the grid line includes:
determining a second abscissa of each signal point in the physiological signal in the grid line based on the acquired pre-slip time value, the acquired slip point time value and the acquired current time value, and the preset duration span, the acquired signal time value in the signal information and the acquired width pixel number;
wherein, for a sliding point located on the time slider, the pre-sliding time value is a time value at which a sliding operation acting on the sliding point is started in response; the sliding point time value is a time value corresponding to the sliding point on the time sliding bar after the sliding operation is performed on the sliding point.
6. The method of claim 1, wherein the physiological signals comprise a maternal heart rate signal and a fetal heart rate signal;
the drawing of physiological signal lines on the grid lines based on the drawing parameters includes:
the method further comprises drawing a physiological signal line of the maternal heart rate signal on the grid line based on the drawing parameters of the maternal heart rate signal, and drawing a physiological signal line of the fetal heart rate signal on the grid line based on the drawing parameters of the fetal heart rate signal.
7. The method of claim 6, wherein the physiological signal further comprises a uterine contraction signal, the grid lines comprise heart rate grid lines corresponding to the maternal heart rate signal and the fetal heart rate signal, and the uterine contraction grid lines of the uterine contraction signal;
the drawing the grid lines in the canvas based on the canvas parameters and the grid line parameters includes:
drawing the heart rate gridlines in the canvas based on the canvas parameters and gridline parameters corresponding to the maternal heart rate signal and the fetal heart rate signal;
drawing the contraction grid lines in the canvas based on the canvas parameters and the grid line parameters of the contraction signal;
The drawing of the physiological signal line of the maternal heart rate signal on the grid line based on the drawing parameters of the maternal heart rate signal, and the drawing of the physiological signal line of the fetal heart rate signal on the grid line based on the drawing parameters of the fetal heart rate signal, comprising:
drawing a physiological signal line of the maternal heart rate signal on the heart rate grid line based on the drawing parameters of the maternal heart rate signal, and drawing a physiological signal line of the fetal heart rate signal on the heart rate grid line based on the drawing parameters of the fetal heart rate signal;
the drawing of physiological signal lines on the grid line based on the drawing parameters further includes:
and drawing a physiological signal line of the uterine contraction signal on the uterine contraction grid line based on the drawing parameters of the uterine contraction signal.
8. A physiological signal rendering device, comprising:
the calibration parameter acquisition module is used for acquiring the number of grids, canvas parameters and calibration parameters corresponding to the physiological signals aiming at the physiological signals to be drawn, wherein the number of the grids is the number of the grids in the grid lines to be drawn on the canvas, and the canvas parameters are parameters of the canvas;
The grid line drawing module is used for determining grid line parameters based on the grid number and the canvas parameters and drawing the grid lines in the canvas based on the canvas parameters and the grid line parameters;
the drawing parameter determining module is used for acquiring signal information of the physiological signal and determining drawing parameters of the physiological signal based on the signal information, the calibration parameters and the canvas parameters;
and the physiological signal diagram obtaining module is used for drawing physiological signal lines on the grid lines based on the drawing parameters to obtain the physiological signal diagram of the physiological signals drawn in the canvas.
9. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores a computer program executable by the at least one processor to cause the at least one processor to perform the physiological signal rendering method of any one of claims 1-7.
10. A computer readable storage medium storing computer instructions for causing a processor to perform the physiological signal rendering method according to any one of claims 1-7.
CN202310430495.0A 2023-04-21 2023-04-21 Physiological signal drawing method and device, electronic equipment and storage medium Active CN116152385B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310430495.0A CN116152385B (en) 2023-04-21 2023-04-21 Physiological signal drawing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310430495.0A CN116152385B (en) 2023-04-21 2023-04-21 Physiological signal drawing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN116152385A true CN116152385A (en) 2023-05-23
CN116152385B CN116152385B (en) 2023-07-07

Family

ID=86354643

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310430495.0A Active CN116152385B (en) 2023-04-21 2023-04-21 Physiological signal drawing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN116152385B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102499643A (en) * 2011-10-31 2012-06-20 深圳市理邦精密仪器股份有限公司 Mother's life sign and fetus united monitoring method and system thereof
CN104473633A (en) * 2014-12-31 2015-04-01 广州视源电子科技股份有限公司 Judging method and device of abnormal electrocardio data
CN106821373A (en) * 2016-12-30 2017-06-13 武汉明德生物科技股份有限公司 The method, system and device of electrocardiogram are drawn in a kind of local updating
CN110613444A (en) * 2019-09-16 2019-12-27 深圳市理邦精密仪器股份有限公司 Method and device for displaying mother-fetus mixed electrocardiosignals
CN111820887A (en) * 2019-04-16 2020-10-27 何正林 Live electrocardiogram drawing method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102499643A (en) * 2011-10-31 2012-06-20 深圳市理邦精密仪器股份有限公司 Mother's life sign and fetus united monitoring method and system thereof
CN104473633A (en) * 2014-12-31 2015-04-01 广州视源电子科技股份有限公司 Judging method and device of abnormal electrocardio data
CN106821373A (en) * 2016-12-30 2017-06-13 武汉明德生物科技股份有限公司 The method, system and device of electrocardiogram are drawn in a kind of local updating
CN111820887A (en) * 2019-04-16 2020-10-27 何正林 Live electrocardiogram drawing method
CN110613444A (en) * 2019-09-16 2019-12-27 深圳市理邦精密仪器股份有限公司 Method and device for displaying mother-fetus mixed electrocardiosignals

Also Published As

Publication number Publication date
CN116152385B (en) 2023-07-07

Similar Documents

Publication Publication Date Title
CN111625668A (en) Object detection and candidate filtering system
US10803304B2 (en) Gesture recognition method, device, apparatus, and storage medium
CN113064897A (en) Method, device, equipment and storage medium for generating business index model
CN114610295A (en) Layout method, device, equipment and medium for page container
CN116152385B (en) Physiological signal drawing method and device, electronic equipment and storage medium
CN111414124A (en) Image measuring method, device, equipment and storage medium
JP2024502516A (en) Data annotation methods, apparatus, systems, devices and storage media
CN115878935B (en) Method, system, device, equipment and medium for partial refreshing of chart
CN112700511B (en) Data drawing method and device, electronic equipment and storage medium
US10580175B2 (en) Apparatus, method and system for resolution dependent graphical representation of signals
CN115568834A (en) Data processing method and device
CN115761119A (en) Neighborhood voxel storage method and device, computer equipment and storage medium
CN115631151A (en) Ultrasonic image interception method and device, electronic equipment and storage medium
CN115546345A (en) Gantt chart drawing method, apparatus, device, storage medium and program product
CN115153632A (en) Ultrasonic imaging positioning system, method, device, equipment and storage medium
CN110851521B (en) Method, device and storage medium for data visualization
KR102460899B1 (en) Method and System for People Count based on Deep Learning
CN108228030B (en) Album display method, apparatus, storage medium and electronic device
CN103927770A (en) Method and system for drawing waveforms under grid background
CN113129407B (en) Physiological waveform drawing method, device, computer equipment and readable storage medium
CN110136253B (en) Three-dimensional display device and equipment for nodules
CN113408633B (en) Method, apparatus, device and storage medium for outputting information
CN115034190A (en) Form generation method and device, electronic equipment and storage medium
CN116126262B (en) Virtual spliced wall area windowing display method, system, terminal and medium
CN114092715A (en) Pointer data transmission method, device, computer equipment, storage medium and system

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