A kind of wearable device promotes the method and system of sleep quality
Technical field
Promote the method for sleep quality the present invention relates to Intelligent bracelet field more particularly to a kind of wearable device and is
System.
Background technology
As modern life rhythm is getting faster, pressure is growing day by day, and majority of populations all lack or sleep in the presence of sleep
The bad situation of dormancy quality, for such case, people can be relieved stress by taking a walk, riding or others move, and be promoted
It into sleep, keeps fit, suitable movement can promote to sleep, but excessive movement can aggravate fatigue instead, can also
The secretion for promoting adrenal hormone, makes people that can not fall asleep in excitatory state, people also need to make during movement
With wearable device come scientific and effective monitoring amount of exercise, reach movement purpose to ensure.
Existing wearable device such as Intelligent bracelet etc. is able to record sleeping time and the exercise data of user, such as
User can be recorded in sleep state user sound sleep, it is shallow sleep the time, the daily running of user can also be recorded
Data, step number and the calorie of consumption etc. exercise data, user only need to install corresponding software on mobile terminals just
All data informations can intuitively be obtained.But above-mentioned Intelligent bracelet only counts data, lacks corresponding analysis
Processing function can not prompt the amount of exercise situation of user, and user can not recognize that current amount of exercise is to promote
Into sleep or physical fatigue can be caused, influence sleep quality.
The patent of publication number CN104887190A discloses a kind of method with assisting sleep function, system and is integrated with
The mobile phone of the system, method include:Obtain eeg signal;Analyzing processing is carried out to the eeg signal, when brain wave is believed
When number reaching the first predetermined state, judge that sleep quality at this time needs to carry out assistant interventional;Pass through the electricity of the second predetermined state
Magnetic wave carries out wireless coupling to the eeg signal in first predetermined state, makes the brain wave of first predetermined state
Eeg signal state when signal is adjusted to sleep steady.The invention assists user's sleep, purpose also to promote by electromagnetic wave
Promote sleep quality into the sleep of user, but not by motion exercise, it further also can not be to the amount of exercise of user
It is prompted.
Invention content
The present invention provides the method and system that a kind of wearable device promotes sleep quality, to solve existing intelligent hand
Ring can not be by carrying out mutually, it should be mentioned that the problem of promoting to sleep user movement amount.
To achieve the goals above, the technical solution adopted by the present invention is as follows:
A kind of method that wearable device promotes sleep quality, including step:
S10:Amount of exercise data and corresponding sleeping time are obtained, will compare sleeping time, it is longest to obtain the time
Sleeping time;
S20:The longest sleeping time is obtained as best sleeping time, longest sleeping time corresponding fortune
Momentum data are as amount of exercise threshold value;
S30:Continue to obtain sleeping time, judges whether there is sleeping time length and be more than the best sleeping time, if so,
Step S20 is then gone to, if it is not, thening follow the steps S40;
S40:Current kinetic amount is acquired, compares the size of current kinetic amount and the amount of exercise threshold value, according to comparison result
Corresponding standby signal is generated to be prompted.
Further, the acquisition amount of exercise data include with corresponding sleeping time:
S101:Obtain user's heart rate value;
S102:When the heart rate value is in default first heart rate value range, sleeping time information is obtained;
S103:When the heart rate value is in default second heart rate value range, amount of exercise data are obtained.
Further, the sleeping time includes being slept the time with shallow the daily sound sleep time, and the amount of exercise data include
The daily stair climbing number of plies, walking milimeter number, milimeter number of running, ride milimeter number or daily energy expenditure total amount.
Further, further include step after the step S20:
The best sleeping time, amount of exercise threshold value are transmitted to mobile terminal by wired or wireless connection.
Further, the step S40 further includes step:
The comparing result is prompted by vibrations or sound.
The system that a kind of wearable device promotes sleep quality, including:
Data acquisition module:For persistently obtaining amount of exercise data and corresponding sleeping time, will carry out sleeping time pair
Than obtaining time longest sleeping time;
Data validation module:It is described longest to sleep for obtaining the longest sleeping time as best sleeping time
Time corresponding amount of exercise data sleep as amount of exercise threshold value;
Judge detection module:For continuing to obtain sleeping time, it is best more than described to judge whether there is sleeping time length
Sleeping time, if so, data validation module is gone to, if it is not, then going to prompt output module;
Prompt output module:For acquiring current kinetic amount, compare the size of current kinetic amount and the amount of exercise threshold value,
Corresponding standby signal is generated to be prompted according to comparison result.
Further, the data acquisition module includes:
Heart rate acquiring unit:For obtaining user's heart rate value;
First judging unit:For when the heart rate value is in default first heart rate value range, obtaining sleeping time letter
Breath;
Second judgment unit:For when the heart rate value is in default second heart rate value range, obtaining total amount of exercise number
According to.
Further, the sleeping time includes being slept the time with shallow the daily sound sleep time, and the amount of exercise data include
The daily stair climbing number of plies, walking milimeter number, milimeter number of running, ride milimeter number or daily energy expenditure total amount.
Further, the system also includes:
Data transmission blocks:For the best sleeping time, amount of exercise threshold value to be transmitted by wired or wireless connection
To mobile terminal.
Further, the prompt output module further includes:
Prompt unit:For being prompted the comparing result by vibrations or sound.
Using the present invention, Intelligent bracelet can be analyzed and obtain at user according to the sleep state and amount of exercise situation of user
Required amount of exercise when best sleep state, is reminded in user movement, prevents amount of exercise too high or too low, with
Reach best sleeper effect.
Description of the drawings
Fig. 1 is the method flow diagram that a kind of wearable device provided by the invention promotes sleep quality;
Fig. 2 is the method flow diagram that a kind of wearable device provided by the invention promotes sleep quality;
Fig. 3 is the system construction drawing that a kind of wearable device provided by the invention promotes sleep quality;
Fig. 4 is the system construction drawing that a kind of wearable device provided by the invention promotes sleep quality.
Specific implementation mode
Following is a specific embodiment of the present invention in conjunction with the accompanying drawings, technical scheme of the present invention will be further described,
However, the present invention is not limited to these examples.
In the present invention, wearable device can record the sleep quality and amount of exercise data of user, with it is existing most
For common Intelligent bracelet, have the characteristics that small, easy to carry, data record accuracy is high, more using crowd
Extensively, user can get information about the data information of Intelligent bracelet record by the Intelligent bracelet APP on mobile phone.
Sleeping time includes the sound sleep time and shallow sleeps the time, it is to be understood that, the sleep quality of user is with sound sleep
The length of time is judged that the sound sleep time is long, and sleep quality is improved, and wearable device can be according to the heart rate of user
Value, body temperature, eyeball action etc. judge whether in sound sleep or it is shallow sleep state, it is corresponding to record the sound sleep time and shallow to sleep the time long
Degree.
In the present invention, user carries out unidirectional or multinomial different types of movement daily, for example, run stair, take exercise on foot,
Open air takes exercise by running, movement etc. of riding, the amount of exercise summations of all different types of movement constitute user on the day of total amount of exercise,
Amount of exercise can intuitively be embodied by the calorie numerical value of consumption.
Embodiment one
As shown in Figure 1, present embodiments providing a kind of method of wearable device promotion sleep quality, including step:
S10:Amount of exercise data and corresponding sleeping time are obtained, will compare sleeping time, it is longest to obtain the time
Sleeping time;
S20:The longest sleeping time is obtained as best sleeping time, longest sleeping time corresponding fortune
Momentum data are as amount of exercise threshold value;
S30:Continue to obtain sleeping time, judges whether there is sleeping time length and be more than the best sleeping time, if so,
Step S20 is then gone to, if it is not, thening follow the steps S40;
S40:Current kinetic amount is acquired, compares the size of current kinetic amount and the amount of exercise threshold value, according to comparison result
Corresponding standby signal is generated to be prompted.
In step S10, sleeping time and amount of exercise data be according to the time in correspondence with each other, when the daily sleep of user
Between corresponding same day user amount of exercise data, after one section of such as two weeks in period of wearable device, equipment can adopt user
Collect 15 groups of data of user, each group of data all include the sleeping time length and the same day corresponding amount of exercise number on the same day
According to.In these multi-group datas, with the variation of the daily amount of exercise of user, there are the sleeping time length of one group of data most
It is long, indicate that user's certain day sleep quality within one section of period is optimal.
In step S20, there are the amount of exercise data on the corresponding same day in daily sleeping time in correspondence with each other, and sleeping time is most
The long same day, corresponding amount of exercise are exactly amount of exercise threshold value, less than the amount of exercise threshold value or are more than the amount of exercise threshold value, user
Sleeping time length can all reduce, best sleep quality is not achieved.
In step S30, it can be a revocable numerical value that user, which needs the amount of exercise threshold value reached needed for best sleep,
For example, user, in the period of different or under different environment, sleeping time length can change, reach needed for best sleep
Amount of exercise threshold value can also change, according to different situations, required amount of exercise can increase or reduce, and Intelligent bracelet can root
It is compared according to the sleeping time of user, real-time update is carried out to amount of exercise threshold value, ensures its accuracy to ensure sleeping for user
Dormancy quality.
In step S40, Intelligent bracelet acquires amount of exercise data when user movement, and real time contrast judges that current kinetic amount is
It is no to reach amount of exercise threshold value, user is prompted by sound or vibrations, such as when amount of exercise does not reach threshold value, by sound into
Row prompt can send out vibrations and sound to be carried out at the same time prompt, prevent user's excessive amount of motion from leading after amount of exercise reaches threshold value
Sleep quality is caused to decline.
By comparing the current amount of exercise of user with amount of exercise threshold value, user is reminded, prevents user from transporting
Momentum is too high or too low, ensures that the amount of exercise of user can reach best sleep state, promotes the sleep quality of user.
Embodiment two
As shown in Fig. 2, present embodiments providing a kind of method of wearable device promotion sleep quality, not with embodiment one
It is with place, at least further includes following steps in step S10:
S101:Obtain user's heart rate value;
S102:When the heart rate value is in default first heart rate value range, sleeping time information is obtained;
S103:When the heart rate value is in default second heart rate value range, amount of exercise data are obtained.
Specifically,
Heartbeat is very fast during exercise by user, and heart rate value is larger, and in sleep, palmic rate is lower, and heart rate value is smaller, and people exists
Heartbeat per minute is between 60 to 100 times under normal circumstances, and during the motion, beats obviously become more, Medium and low intensity
Beats are moved between 110 to 140, faster, and heart rate when sleeping is then more than normal cardiac rate for strenuous exercise's beats
It is low, generally below 60.
Intelligent bracelet can judge user's current state according to the variation of heart rate value, record sleeping time and movement
Amount, ensures the accuracy of data.
In the present embodiment, sleeping time include the sound sleep time and it is shallow sleep the time, under normal circumstances, using the sound sleep time as use
The judgment criteria of family sleep quality, the sound sleep time is longer, then sleep quality is better, and Sleep efficiency is higher, sleeps the time on the contrary, shallow and gets over
Long, then the sleep quality of user is poor, while Sleep efficiency is relatively low.Amount of exercise data include the daily stair climbing number of plies, walking
Milimeter number, milimeter number of running, ride milimeter number or daily energy expenditure total amount, interior at the same time, strenuous exercise's consumption
Energy ratio move slowly consumption energy it is more, the amount of exercise reached also bigger, for different movements, the calculating of amount of exercise needs
In conjunction with type of sports and run duration or directly by calorie consume number calculate the amount of exercise of user, it is ensured that obtain
The amount of exercise data accurate and effective taken.
Specifically, road-work is only carried out for the single user of motion mode, such as the user, it is only necessary to analysis running
The amount of exercise of movement and the influence relationship of sleeping time, obtain the amount of exercise threshold value of road-work, here it is the users to reach most
Amount of exercise threshold value needed for good sleep state, but the various user of motion mode, such as the user are run, ridden
Multi-motion, it is also necessary to analysis ride movement amount of exercise and sleeping time influence relationship, the amount of exercise for the movement that obtains riding
Data threshold further combines the amount of exercise threshold value of road-work to carry out comprehensive analysis, the final use for determining multimode movement
Family reaches the amount of exercise threshold value needed for best sleep state.
The present embodiment is also differ in that with embodiment one, further includes step after step S20:
S210:The best sleeping time, amount of exercise threshold value are transmitted to mobile terminal by wired or wireless connection.
Specifically,
Smartwatch is small, and light weight is convenient for carrying, and can transfer data to corresponding shifting by wired and wireless
Dynamic terminal, for example, mobile phone can get intelligent hand by installing the APP of smartwatch with smartwatch by being wirelessly connected
Oneself sleep state and amount of exercise data can be understood more intuitively in the collected data of ring, user on mobile phone, the palm
Hold the variation of itself sleep quality.
Required amount of exercise, allows user is scientific and effective to move when reaching best sleep by analyzing user,
Not only the purpose of the motion exercise body reached, but also sleep quality can be further increased.
Embodiment three
As shown in figure 3, a kind of system construction drawing of wearable device promotion sleep quality is present embodiments provided, including:
Data acquisition module:For persistently obtaining amount of exercise data and corresponding sleeping time, will carry out sleeping time pair
Than obtaining time longest sleeping time;
Data validation module:It is described longest to sleep for obtaining the longest sleeping time as best sleeping time
Time corresponding amount of exercise data sleep as amount of exercise threshold value;
Judge detection module:For continuing to obtain sleeping time, it is best more than described to judge whether there is sleeping time length
Sleeping time, if so, data validation module is gone to, if it is not, then going to prompt output module;
Prompt output module:For acquiring current kinetic amount, compare the size of current kinetic amount and the amount of exercise threshold value,
Corresponding standby signal is generated to be prompted according to comparison result.
It is added after the module with corresponding function in Intelligent bracelet, by cooperating between each module, when to sleep
Between and the processing of amount of exercise data analyze, obtain user and reach amount of exercise threshold value needed for best sleep state, and user is worked as
Preceding amount of exercise is prompted, and is ensured that current kinetic amount reaches amount of exercise threshold value, is promoted the sleep quality of user.
Data acquisition module, sleeping time and amount of exercise data be according to the time in correspondence with each other, user is daily to sleep
The amount of exercise data of user on the day of time correspondence of sleeping, user is after one section of such as two weeks in period of wearable device, equipment
15 groups of data of user can be collected, each group of data all include the sleeping time length and the same day corresponding amount of exercise on the same day
Data.In these multi-group datas, with the variation of the daily amount of exercise of user, there are the sleeping time length of one group of data most
It is long, indicate that user's certain day sleep quality within one section of period is optimal.
In data validation module, there are the amount of exercise data on the corresponding same day in daily sleeping time in correspondence with each other, sleep
Time on the longest same day, corresponding amount of exercise are exactly amount of exercise threshold value, less than the amount of exercise threshold value or are more than the amount of exercise threshold
Value, the sleeping time length of user can all reduce, and best sleep quality is not achieved.
Judge in detection module, it can be one revocable that user, which needs the amount of exercise threshold value reached needed for best sleep,
Numerical value reaches and most preferably sleeps for example, user, in the period of different or under different environment, sleeping time length can change
Amount of exercise threshold value needed for sleeping can also change, and according to different situations, required amount of exercise can increase or reduce, Intelligent bracelet
It can be compared according to the sleeping time of user, real-time update is carried out to amount of exercise threshold value, ensures its accuracy to ensure to use
The sleep quality at family.
It prompts in output module, Intelligent bracelet acquires amount of exercise data when user movement, and real time contrast judges current fortune
Whether momentum reaches amount of exercise threshold value, prompts user to pass through such as when amount of exercise does not reach threshold value by sound or vibrations
Sound is prompted, and after amount of exercise reaches threshold value, can be sent out vibrations and sound to be carried out at the same time prompt, be prevented user excessive
Movement causes sleep quality to decline.
By comparing the current amount of exercise of user with amount of exercise threshold value, user is reminded, prevents user from transporting
Momentum is too high or too low, ensures that the amount of exercise of user can reach best sleep state, promotes the sleep quality of user.
Example IV
As shown in figure 4, present embodiments providing a kind of system of wearable device promotion sleep quality, not with embodiment three
It is with place, the data acquisition module further includes
Heart rate acquiring unit:For obtaining user's heart rate value;
First judging unit:For when the heart rate value is in default first heart rate value range, obtaining sleeping time letter
Breath;
Second judgment unit:For when the heart rate value is in default second heart rate value range, obtaining total amount of exercise number
According to.
Heartbeat is very fast during exercise by user, and heart rate value is larger, and in sleep, palmic rate is lower, and heart rate value is smaller, and people exists
Heartbeat per minute is between 60 to 100 times under normal circumstances, and during the motion, beats obviously become more, Medium and low intensity
Beats are moved between 110 to 140, faster, and heart rate when sleeping is then more than normal cardiac rate for strenuous exercise's beats
It is low, generally below 60.
Intelligent bracelet can judge user's current state according to the variation of heart rate value, record sleeping time and movement
Amount, ensures the accuracy of data.
In the present embodiment, sleeping time include the sound sleep time and it is shallow sleep the time, under normal circumstances, using the sound sleep time as use
The judgment criteria of family sleep quality, the sound sleep time is longer, then sleep quality is better, and Sleep efficiency is higher, sleeps the time on the contrary, shallow and gets over
Long, then the sleep quality of user is poor, while Sleep efficiency is relatively low.Amount of exercise data include the daily stair climbing number of plies, walking
Milimeter number, milimeter number of running, ride milimeter number or daily energy expenditure total amount, interior at the same time, strenuous exercise's consumption
Energy ratio move slowly consumption energy it is more, the amount of exercise reached also bigger, for different movements, the calculating of amount of exercise needs
In conjunction with type of sports and run duration or directly by calorie consume number calculate the amount of exercise of user, it is ensured that obtain
The amount of exercise data accurate and effective taken.
Specifically, road-work is only carried out for the single user of motion mode, such as the user, it is only necessary to analysis running
The amount of exercise of movement and the influence relationship of sleeping time, obtain the amount of exercise threshold value of road-work, here it is the users to reach most
Amount of exercise threshold value needed for good sleep state, but the various user of motion mode, such as the user are run, ridden
Multi-motion, it is also necessary to analysis ride movement amount of exercise and sleeping time influence relationship, the amount of exercise for the movement that obtains riding
Data threshold further combines the amount of exercise threshold value of road-work to carry out comprehensive analysis, the final use for determining multimode movement
Family reaches the amount of exercise threshold value needed for best sleep state.
The present embodiment is also differ in that with embodiment three, further includes:
Data transmission blocks:For the best sleeping time, amount of exercise threshold value to be transmitted by wired or wireless connection
To mobile terminal.
Specifically,
Smartwatch is small, and light weight is convenient for carrying, and can transfer data to corresponding shifting by wired and wireless
Dynamic terminal, for example, mobile phone can get intelligent hand by installing the APP of smartwatch with smartwatch by being wirelessly connected
Oneself sleep state and amount of exercise data can be understood more intuitively in the collected data of ring, user on mobile phone, the palm
Hold the variation of itself sleep quality.
In the present embodiment, prompt output module further includes:
Prompt unit:For being prompted the comparing result by vibrations or sound.
It by prompt unit, prompts the user whether to need to continue to reinforce movement, improves amount of exercise to reach best sleep shape
Amount of exercise threshold value needed for state, it is also possible to according to unfinished amount of exercise how much, pass through auditory tone cues motion switch side
Formula.
Required amount of exercise, allows user is scientific and effective to move when reaching best sleep by analyzing user,
Not only the purpose of the motion exercise body reached, but also sleep quality can be further increased.
Specific embodiment described herein is only an example for the spirit of the invention.Technology belonging to the present invention is led
The technical staff in domain can make various modifications or additions to the described embodiments or replace by a similar method
In generation, however, it does not deviate from the spirit of the invention or beyond the scope of the appended claims.