Summary of the invention
In view of the foregoing, it is necessary to a kind of breast rail display system is provided, conveniently checks use
The real-time breath state at family.
There is a need to provide a kind of breast rail display packing, conveniently check the real-time breathing of user
Situation.
A kind of breast rail display system, runs on electronic installation, and this system includes: set up
Module, breathes instruction figure for setting up one on the screen of electronic installation;Receiver module, uses
In receiving, from electrocardiogram measuring device, the electrocardiogram that user is current, and by R ripple in electrocardiogram
Value generate respiratory curve;Computing module, exhales for obtaining active user from respiratory curve
Stage or expiratory phase duration, and calculate expiration phase or expiratory phase duration
Ratio with the correct breathing pattern standard time;And mapping block, for according to calculated
Expiration phase or the air-breathing rank of the active user needing display on instruction figure are breathed described in ratio calculation
The degree of section.
A kind of breast rail display packing, runs on electronic installation, and the method includes walking as follows
Rapid: establishment step, the screen of electronic installation is set up one and breathes instruction figure;Receiving step,
The electrocardiogram that user is current is received from electrocardiogram measuring device, and by R ripple in electrocardiogram
Value generates respiratory curve;Calculation procedure, from respiratory curve obtain active user's expiration phase or
Expiratory phase duration, and calculate expiration phase or expiratory phase duration with correct
The ratio of breathing pattern standard time;And mapping step, according to calculated ratio calculation institute
State expiration phase or the degree of expiratory phase breathing the active user needing display on instruction figure.
Compared to prior art, described breast rail display system and method, can be from electrocardiogram
In grab the breathing situation of user, and this breathing situation is presented to user so that Yong Huke
With the breathing situation of Real Time Observation oneself, and suitably adjust breathing.
Detailed description of the invention
As it is shown in figure 1, be the running environment of breast rail display system preferred embodiment of the present invention
Figure.This breast rail display system 10 runs in electronic installation 1, and this electronic installation 1 is permissible
For mobile phone, panel computer, notebook computer, desktop computer etc..This electronic installation 1 includes data
Storehouse 11 and screen 12, this data base 11 can be built in this electronic installation 1, it is possible to external
In this electronic installation 1.In this data base 11, storage has teaching user according to correct breathing pattern
In standard time, such as yoga motion, the ratio of expiration standard time and air-breathing standard time is
2:1, or the standard time of expiration phase be the N second, the standard time of expiratory phase is the M second
Deng, the standard time of this correct breathing pattern can also be by user or medical personnel's sets itself.
Described screen 12 is for showing the breath state of user.Described electronic installation 1 is connected by network
In ecg measurement instrument 2, it can be that cable network connects or wireless network that this network connects
Connect.This ecg measurement instrument 2 is for measuring the electrocardiogram of user, and is sent out by this electrocardiogram
Give electronic installation 1.Described breast rail display system 10, to this ecg analysis, gets
The breath state of user, and breath state is shown on this electronic installation 1, see for user
The breath state of oneself, and instruct user to adjust breathing.
As in figure 2 it is shown, be the functional block diagram of breast rail display system 10 in Fig. 1.Described
Breast rail display system 10 includes: set up module 100, receiver module 101, detecting module
102, computing module 103 and mapping block 104.Described module is to have the software of specific function
Program segment, this software is stored in computer-readable recording medium or other storage device, can be counted
Calculation machine or other calculating device comprising processor perform, thus complete breast rail in the present invention
The flow process of display.
Set up module 100 when the standard of correct breathing pattern according to storage in data base 11
Between set up on described screen 12 one breathe instruction figure.The available various forms of this breathing instruction figure
Embodying, such as show bar (as shown in Figure 5), user can see current use from this show bar
Whether the breathing at family has reached breathing standard, such as, as described in Figure 5, on show bar only
The process of display 1/4, shows that the breathing of active user is not reaching to breathing standard, and works as
When show bar is filled, show that the breathing of active user has reached breathing standard.This enforcement
Example uses a show bar to represent expiration and air-breathing.Other embodiments of the present invention also can be with two
Show bar represents expiration and air-breathing respectively.
Receiver module 101 is used for receiving, from electrocardiogram measuring device 2, the electrocardiogram that user is current,
And generate respiratory curve (electrocardiogram derived by the value of R ripple in this electrocardiogram
Respiration, EDR).In the present embodiment, by the value of the Electrocardiographic R ripple curve smoothed
Link up and i.e. constitute respiratory curve.
Detecting module 102 is currently to exhale for detecting user in the respiratory curve of above-mentioned generation
Stage or expiratory phase.In the present embodiment, this detecting module 102 is bent according to this breathing of detecting
In line, the slope of each point judges that user is currently expiration phase or expiratory phase.Such as figure
Shown in 4, become 0 when detecting slope from positive number, then it represents that expiration phase terminates;Slope is by 0
Become negative, then it represents that expiratory phase starts;Slope is become 0 from negative, then it represents that air-breathing rank
Section terminates;Slope is become positive number from 0, then it represents that expiration phase starts.If slope is 0 always,
Then it is expressed as breathing no more, such as, feels suffocated.
Computing module 103, for the detecting result obtained according to above-mentioned detecting module 102, obtains
Active user's expiration phase or expiratory phase duration, and calculate expiration phase or air-breathing rank
Section duration and the ratio of correct breathing pattern standard time.Described expiration phase is lasting
Time can be that slope is become positive number from 0 and becomes the time of 0 again, and described expiratory phase is lasting
Time can be that slope is become negative from 0 and becomes the time of 0 again.
Mapping block 104 is for according to breathing instruction figure described in this calculated ratio calculation
Need expiration phase or the degree of expiratory phase of the active user of display.Such as, if user works as
Before be in expiration phase, described computing module 103 is calculated user when currently exhaling lasting
Between be 1:4 with the ratio of the correct standard time exhaled, then indicate figure in the breathing shown in Fig. 5
On show bar on show 1/4 process, user can see oneself from this breathing instruction figure
1/4 degree that the standard that only reached of exhaling is exhaled, needs to continue to exhale.
As it is shown on figure 3, be the work flow of breast rail display packing preferred embodiment of the present invention
Figure.
Step S30, sets up module 100 according to the correct breathing pattern of storage in data base 11
Standard time sets up one on described screen 12 and breathes instruction figure.This breathing instruction figure is available each
The form of kind embodies, and such as show bar (as shown in Figure 5), user can see from this show bar
Whether the breathing of active user has reached breathing standard.
Step S31, receiver module 101 receives, from electrocardiogram measuring device 2, the heart that user is current
Electrograph, and generate respiratory curve (electrocardiogram by the value of R ripple in this electrocardiogram
Derived respiration, EDR).In the present embodiment, by the value of Electrocardiographic R ripple with smooth
Curve link up and i.e. constitute respiratory curve.
Step S32, it is current that detecting module 102 detects user in the respiratory curve of above-mentioned generation
It is expiration phase or expiratory phase.In the present embodiment, this detecting module 102 should according to detecting
In respiratory curve, the slope of each point judges that user is currently expiration phase or expiratory phase
's.As shown in Figure 4,0 is become from positive number when detecting slope, then it represents that expiration phase terminates;
Slope is become negative from 0, then it represents that expiratory phase starts;Slope is become 0 from negative, then table
Show that expiratory phase terminates;Slope is become positive number from 0, then it represents that expiration phase starts.If slope
It is 0, then it represents that for breathing no more, such as, feel suffocated always.
Step S33, the detecting result that computing module 103 obtains according to above-mentioned detecting module 102,
From respiratory curve, obtain active user's expiration phase or expiratory phase duration, and calculate
The ratio of expiration phase or expiratory phase duration and correct breathing pattern standard time.Institute
Stating expiration phase duration can be that slope is become positive number from 0 and becomes the time of 0, institute again
Stating expiratory phase duration can be that slope is become negative from 0 and becomes the time of 0 again.Step
Rapid S34, mapping block 104 is according to breathing described in this calculated ratio calculation on instruction figure
Need expiration phase or the degree of expiratory phase of the active user of display.Such as, if user works as
Before be in expiration phase, described computing module 103 is calculated user when currently exhaling lasting
Between be 1:4 with the ratio of the correct standard time exhaled, then indicate figure in the breathing shown in Fig. 5
On show bar on show 1/4 process, user can see oneself from this breathing instruction figure
1/4 degree that the standard that only reached of exhaling is exhaled, needs to continue to exhale.
It should be noted last that, above example only in order to technical scheme to be described and
Unrestricted, although the present invention being described in detail with reference to preferred embodiment, this area general
It is logical it will be appreciated by the skilled person that technical scheme can be modified or equivalent,
Spirit and scope without deviating from technical solution of the present invention.