Summary of the invention
The technical problem to be solved in the present invention is, for the drawbacks described above of prior art, it is provided that one sets based on intelligence
Standby detection human fatigue provides the method and system of prompting.Provide a kind of method providing prompting by detection human fatigue,
When detecting that user occurs the state of fatigue under doing the scenario set, situation and scene in conjunction with surrounding provide user and carry
Wake up, thus avoid user to cause work, impact in life because of absent minded, improve safety.
It is as follows that the present invention solves the technical scheme that technical problem used:
A kind of method providing prompting based on smart machine detection human fatigue, wherein, including step:
A, the fatigue detecting pre-setting the different activity scene correspondence of entrance different are reminded;
B, when fatigue detecting need to be carried out, open fatigue detecting prompting function, detect and record the playground being presently in
Scape;
Whether C, detection user are in fatigue state under the activity scene being presently in;
D, when detecting that user is in fatigue state, then the activity scene being presently according to the user that detects, transfer
With the fatigue detecting indicating mode of current active scene matching, provide corresponding prompting.
The described method providing prompting based on smart machine detection human fatigue, it is characterised in that described step A is concrete
Including:
The activity scene of pre-setting be drive or by bus state fatigue detecting remind for vibrations add the tinkle of bells prompting;
And the activity scene of pre-setting is that fatigue detecting in a meeting is reminded as vibration reminding.
The described method providing prompting based on smart machine detection human fatigue, wherein, the detection in described step A is also
The activity scene that record is presently in includes: whether the activity scene that detection is presently in is method in a meeting;
Wherein, whether the activity scene that detection is presently in is method in a meeting, specifically, existed by detection user
In the meeting memorandum arranged on smart machine, corresponding element of time, judges that whether the activity scene being presently in is in meeting
In view, or identify that label judges that the activity scene that is presently in is the most in a meeting by be arranged on meeting room.
The described method providing prompting based on smart machine detection human fatigue, wherein, the detection in described step A is also
The activity scene that record is presently in also includes: whether user is in car, by prefabricated acceleration in smart machine in detection
Sensor detects.
The described method providing prompting based on smart machine detection human fatigue, wherein, the detection in described step C is used
Whether family is in fatigue state under the activity scene being presently in specifically includes:
C1, in advance measure user under the state of sitting up straight, the referred to as standard of the distance between chin and clavicle sits up straight distance, and
Record user is when different activity scene, and in the unit interval, distance between chin and clavicle is not equal to described standard and sits up straight distance
Benchmark number of times, and be stored in smart machine;
C2, when needing fatigue detecting, in real time whether detection active user's chin and clavicle spacing less than described normal end
Sit distance;In the record unit time real-time and incremental when sitting up straight distance less than described standard, the spacing of chin and clavicle is not
The number of times of distance is sat up straight, for current number of times etc. described standard;
C3, predetermined to described current number of times and the one benchmark number of times being used for detecting user the most tired is compared, when
Described current number of times is less than described first benchmark number of times, then judge that active user belongs to tired, doze state.
The described method providing prompting based on smart machine detection human fatigue, wherein, described step C1 specifically includes:
C11, in advance measure user under the state of sitting up straight, the referred to as standard of the distance between chin and clavicle sits up straight distance h1,
It is stored in the memory headroom of smart machine;
C12 and record user are running, during scene of speaking, and distance between chin and clavicle in the unit interval
Sitting up straight the benchmark number of times of distance h1 in described standard, claim running benchmark number of times f (1) respectively, benchmark number of times f (2) of speaking is stored in
In memory headroom;Chin often rocks once, then f+1.
The described method providing prompting based on smart machine detection human fatigue, wherein, described step C3 specifically includes:
C31, call the most real-time described current number of times;
C32 and call running, during scene of speaking, in the unit interval, the distance between chin and clavicle is not equal to standard
Sit up straight described running benchmark number of times f (1) of distance h1, benchmark number of times f (2) of speaking;
C33, by described current number of times f (t) and described running benchmark number of times f (1), that benchmark number of times f (2) of speaking is carried out is right
Ratio;
C34, when described current number of times f (t) > described running benchmark number of times f (1) time, it is judged that user is non-fatigue, sleepy
State;
When described current number of times f (t) < described running benchmark number of times f (1), and determine whether described current number of times f
(t) whether more than speaking benchmark number of times f (2), if greater than benchmark number of times f (2) of speaking then judge user's brain be in speak or
The state that person is more active than speaking, non-fatigue, doze state;If described current number of times f (t) <benchmark number of times f (2) of speaking
Then judge that user is in fatigue, doze state, and export corresponding result and point out accordingly.
A kind of system providing prompting based on smart machine detection human fatigue, wherein, including:
Pre-set module, enter the corresponding different fatigue detecting prompting of different activity scenes for pre-setting;
Open and detection module, for when fatigue detecting need to be carried out, open fatigue detecting prompting function, detection record
The activity scene being presently in;
Fatigue detecting module, for detecting whether user is in fatigue state under the activity scene being presently in;
Transfer and prompting processing, for when detecting that user is in fatigue state, then work as according to the user detected
Activity scene residing for before, transfers the fatigue detecting indicating mode with current active scene matching, provides corresponding prompting.
The described system providing prompting based on smart machine detection human fatigue, wherein, pre-sets module and includes:
First pre-sets unit, for pre-set activity scene be drive or by bus state fatigue detecting remind
Add the tinkle of bells for vibrations to remind;
Second pre-sets unit, is that fatigue detecting prompting in a meeting carries for vibrations for pre-setting activity scene
Wake up.
Described fatigue detecting module includes:
Measure and record unit in advance, for measuring user's distance under the state of sitting up straight, between chin and clavicle in advance
It is referred to as standard and sits up straight distance, and record user is when different activity scene, distance between chin and clavicle in the unit interval
It is not equal to described standard and sits up straight the benchmark number of times of distance, and be stored in smart machine;
Detector unit, for when needing fatigue detecting, whether detection active user's chin is less than with clavicle spacing in real time
Described standard sits up straight distance;Chin and clavicle in the record unit time real-time and incremental when sitting up straight distance less than described standard
The spacing described standard such as not sit up straight the number of times of distance, for current number of times;
Contrast judging unit, for be used for detecting the most tired benchmark of user secondary by predetermined to described current number of times and one
Number compares, and when described current number of times is less than described first benchmark number of times, then judges that active user belongs to tired, doze state
And remind active user.
The described system providing prompting based on smart machine detection human fatigue, wherein, described measurement and record in advance
Unit includes:
Measuring unit, in advance, measurement user is under the state of sitting up straight, and the distance between chin and clavicle is referred to as normal end
Sit distance h1, be stored in the memory headroom of smart machine;
Record unit, is used for recording user and is running, during scene of speaking, and distance between chin and clavicle in the unit interval
Being not equal to described standard and sit up straight the benchmark number of times of distance h1, claim running benchmark number of times f (1) respectively, benchmark number of times f (2) of speaking is deposited
It is stored in memory headroom;Chin often rocks once, then f+1;
Pre-defined unit, be used for being defined previously as described in benchmark number of times f (2) of speaking the most tired for being used for detecting user
Benchmark number of times;
Described contrast judging unit includes:
First call unit, for calling the most real-time described current number of times;
Second call unit, is used for calling running, and during scene of speaking, in the unit interval, the distance between chin and clavicle is not
Described running benchmark number of times f (1) of distance h1, benchmark number of times f (2) of speaking is sat up straight equal to standard;
Contrast unit, is used for described current number of times f (t) with described running benchmark number of times f (1), speak benchmark number of times f
(2) contrast;
Judging unit, for when described current number of times f (t) > described running benchmark number of times f (1) time, it is judged that user is non-
Fatigue, doze state;When described current number of times f (t) < described running benchmark number of times f (1), and determine whether described currently
Whether number of times f (t) is more than speaking benchmark number of times f (2), and if greater than speaking, benchmark number of times f (2) then judges that user's brain is in
Words or the state more active than speaking, non-fatigue, doze state;If described current number of times f (t) <benchmark number of times of speaking
F (2) then judges that user is in fatigue, doze state.
The method and system providing prompting based on smart machine detection human fatigue provided by the present invention, make smart machine
Add New function: there is the function that fatigue detecting is reminded, by detection user's chin deviation normal level within the unit interval
Number of times, with user in the case of various chin deviation normal level number of times carry out contrasting thus judge user whether be in beat sleepy
The fatigue state slept, when when detecting that user occurs the state of fatigue under doing the scenario set, in conjunction with the situation of surrounding
Provide user reminding with scene, thus avoid user to cause work, impact in life because of absent minded, improve safety
Property.
Detailed description of the invention
The method and system providing prompting based on smart machine detection human fatigue provided by the present invention, for making the present invention
Purpose, technical scheme and advantage clearer, clear and definite, the embodiment that develops simultaneously referring to the drawings is to the present invention the most specifically
Bright.Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
Referring to Fig. 1, Fig. 1 is the preferable enforcement that the present invention provides the method for prompting based on smart machine detection human fatigue
The flow chart of example.A kind of method providing prompting based on smart machine detection human fatigue shown in Fig. 1, comprises the following steps:
Step S100, the fatigue detecting pre-setting the different activity scene correspondence of entrance different are reminded;
In the embodiment of the present invention, need to pre-set the fatigue detecting entering different activity scene correspondences different and remind,
User can be set using scene, arranges that user is required opens whole detection the scene reminded, such as meeting, driving etc. can because
The tired scene made troubles to user.Such as: the activity scene of pre-setting is to drive or the fatigue detecting of state by bus carries
Wake up and add the tinkle of bells prompting for vibrations;And the activity scene of pre-setting is that fatigue detecting in a meeting is reminded as vibration reminding.
Step S200, when fatigue detecting need to be carried out, open fatigue detecting prompting function, detect and record and be presently in
Activity scene.
Such as when carrying out fatigue detecting, the operational order receiving user opens fatigue detecting prompting function, Ke Yiyong
In unlatching, closing this detection reminder process: in the case of unlatching, user starts detection and judges whether according to testing result
Remind.In the case of closedown, terminal does not activate detection, until open next time.
Except user manually opened in the case of, when whether equipment Inspection is given under above scenario back to user
Open detection the process reminded.
Wherein, the activity scene being presently in includes: whether the activity scene that detection is presently in is side in a meeting
Method;Wherein, whether the activity scene that detection is presently in is method in a meeting, specifically, by detection user in intelligence
In the meeting memorandum arranged on equipment, corresponding element of time, judges that whether the activity scene being presently in is in meeting
In, or identify that label judges that the activity scene that is presently in is the most in a meeting by be arranged on meeting room.
Such as, when user setup meeting memorandum, mobile terminal device such as mobile phone passes through bluetooth, NFC, the mode such as infrared
Being synchronized to wearable intelligent equipment, wearable intelligent equipment can also simultaneously to arrange corresponding meeting standby in face the most on mobile terminals
Forget;Can also arrange, when detecting that in meeting memorandum, the time of meeting starts first 10 minutes, can automatically issue out whether user holds
Open the prompting of detection.
And for detection user whether in car, can be by prefabricated acceleration in mobile client or Wearable
Degree sensor detects.Its operation principle is exactly the crystal inside deformation utilizing acceleration to cause, owing to this deforms meeting
Produce voltage, calculate the relation produced between voltage and the acceleration applied, it is possible to acceleration is changed into voltage defeated
Go out.Therefore, it is the biggest that acceleration transducer can well detect user movement state, i.e. motion amplitude, and its output voltage values is more
Height, the oscillogram peak value of output is the highest.As user, onboard or when riding public transportation means, movement velocity is very fast, and process is relative
Relatively steady, therefore motion frequency is relatively fast, and amplitude of variation is inconspicuous.
User's motion amplitude in car is as in figure 2 it is shown, when Wearable or mobile terminal pass through acceleration transducer
Then judge when motion amplitude such as Fig. 2 of user being detected that user is in driving or being seated within a vehicle.
If Wearable device is then run, if user opens this according to user's whether open detection reminder process
Process, then start to detect in real time.If user is not turned on, does not the most enter detection reminder process and avoid with then existing with this
By bus rather than drive.
Whether step S300, detection user are in fatigue state under the activity scene being presently in.
Wherein described in detail below about human fatigue detection.
Step S400, when detecting that user is in fatigue state, then the playground being presently according to the user that detects
Scape, transfers the fatigue detecting indicating mode with current active scene matching, provides corresponding prompting.
When detecting that user is in fatigue state, then the activity scene being presently according to the user detected, by advance
The activity scene of setting be drive or by bus state fatigue detecting remind then for vibrations add the tinkle of bells prompting;If activity scene is
It is then vibration reminding that fatigue detecting in a meeting is reminded.
Because owing to user's the tinkle of bells of meeting closing hand phone or other electronic equipments when meeting is reminded, so at meeting shape
Under state, in the way of vibration, user is reminded.Reminder time or vibration mode can be that user is arranged voluntarily, such as vibration
Mode is the modes such as continuous shaking, intermittent control shaking, crescendo.
And it is concrete whether to be in fatigue state under the activity scene being presently in about detection user in step S300, please
See Fig. 3, Fig. 3 to be the present invention based on smart machine detection human fatigue be given and the method for prompting detects user be presently in
Activity scene under whether be in the flow chart of preferred embodiment of fatigue state.As it is shown on figure 3, the present embodiment detection user exists
Whether it is in fatigue state under the activity scene being presently in comprise the following steps:
S310, in advance measure user under the state of sitting up straight, the referred to as standard of the distance between chin and clavicle sits up straight distance, with
And record user is when different activity scene, in the unit interval distance between chin and clavicle be not equal to described standard sit up straight away from
From benchmark number of times, and be stored in smart machine.
In the embodiment of the present invention, primarily need the distance measuring user in advance under the state of sitting up straight, between chin and clavicle
It is referred to as standard and sits up straight distance h1, be stored in the memory headroom of smart machine.As shown in Figure 4, and record user run, say
During the scenes such as words, in the unit interval, distance between chin and clavicle is not equal to described standard and sits up straight the benchmark number of times of distance h1,
Claiming running benchmark number of times f (1) respectively, benchmark number of times f (2) of speaking is stored in memory headroom;Chin often rocks once, then f+1.
Certainly the different activity scenes described in the embodiment of the present invention include but not limited to that user is running, the scene such as speak.
In the specific embodiment of the invention, the distance between described chin and clavicle sits up straight distance less than described standard, and
And in the unit interval, distance between chin and clavicle is not equal to described standard and sits up straight the benchmark number of times of distance h1, speaks than usual
Benchmark number of times the fewest time less than speak benchmark number of times f (2) time, illustrate that the chin of user rocks that number of times is little and chin
And rock distance between clavicle and sit up straight distance h1 again smaller than standard, then explanation user is substantially at fatigue, doze state, so this
Benchmark number of times f (2) of speaking described in defined in embodiment is for detecting the benchmark number of times that user is the most tired.
Wherein, the record duration of unit interval can be arranged voluntarily by user, it is also possible to is to divide time such as 1min(of standard
Clock), 2min, 3min.Smart machine arrange corresponding path for user enter gathers above scene chin and interclavicular away from
From, this is arranged can be to be entered by menu, it is also possible to be the various paths such as quick entrance.
The data recorded above are stored in smart machine, such as can and the input data of module end as a comparison,
By record data in the case of user opens detection in real time, run the data called as comparison module.
Smart machine in the present invention includes intelligent mobile terminal and Wearable, its Wearable include glasses,
Bracelet, necklace etc., intelligent mobile terminal includes mobile phone, with the other-end of photographic head.
S320, when needing fatigue detecting, in real time whether detection active user's chin and clavicle spacing less than described standard
Sit up straight distance;Chin and the spacing of clavicle in the record unit time real-time and incremental when sitting up straight distance less than described standard
Not etc. described standard does not sits up straight the number of times of distance, for current number of times.
In the embodiment of the present invention after the fatigue detecting function opening smart machine, detection active user's chin and lock in real time
Whether bone spacing sits up straight distance h1 less than the most described standard of distance between chin and clavicle in the case of sitting up straight.Real time record is worked as
Front user's chin and interclavicular current distance h (t), when h (t) < h (1), under real-time and incremental record unit time is interior
The spacing of bar and the clavicle described standard such as not sits up straight number of times f (t) of distance h1.
S330, the first tired benchmark number of times being used for described current number of times and detecting user the most tired compare
Relatively, when described current number of times is less than the described first tired benchmark number of times, then judge that active user belongs to tired, doze state.
During the present invention implements, need to compare the benchmark number of times of described current number of times with each activity scene, such as, incite somebody to action
Detecting real-time described current number of times f (t) of gained and running benchmark number of times f (1), benchmark number of times f (2) of speaking carries out intersection ratio
Relatively, and export comparing result, and belong to tired according to carrying out judging whether, doze state.
Because user is blunt because of brain response when dozing off so that musculi colli loosens, when musculi colli relax to
When being not enough to the weight of a fastener, head will be naturally toward sagging.Because this person is when dozing off, first point one will be formed
The posture of point.When nodding, chin will reduce with interclavicular distance.And owing to now brain response is blunt, the frequency nodded
Rate can frequency less than speaking at ordinary times, time on foot etc..So speaking described in defined in the present embodiment, benchmark number of times f (2) is for being used for
The benchmark number of times that detection user is the most tired;
Wherein, contrast judges that flow process is as follows:
1) smart machine calls the most real-time described current number of times f (t);
2) smart machine calls running, and during the scene such as speak, in the unit interval, the distance between chin and clavicle is not equal to
Standard sits up straight the number of times f (1) of distance h1, f (2), i.e. calls described running benchmark number of times f (1), benchmark number of times f (2) of speaking;
3), described current number of times f (t) is contrasted with described running benchmark number of times f (1), benchmark number of times f (2) of speaking.
When described current number of times f (t) > described running benchmark number of times f (1) time, then the explanation frequency currently nodded of user is more than when running
Frequency, health is more positive than strenuous exercise state;So judging that user is as non-fatigue, doze state;As described current number of times f
T () < for increasing degree of accuracy, described running benchmark number of times f (1) determines whether that whether described current number of times f (t) is more than speaking
If greater than benchmark number of times f (2) of speaking, benchmark number of times f (2), then judges that user's brain is in and speaks or more active than speaking
State, non-fatigue, doze state;If <benchmark number of times f (2) of speaking judges that user is in tired to described current number of times f (t)
Labor, doze state;
And when detecting that user is in fatigue state, then the activity scene being presently according to the user detected, transfer
With the fatigue detecting indicating mode of current active scene matching, provide corresponding prompting.
Therefore, the invention provides a kind of method providing prompting by detection human fatigue, thus avoid user
Cause work, impact in life because of absent minded, improve safety.
Based on above-described embodiment, present invention also offers and a kind of based on what smart machine detection human fatigue provided prompting be
System, as it is shown in figure 5, described system includes:
Pre-set module 510, enter the corresponding different fatigue detecting prompting of different activity scenes for pre-setting;
Specifically as described in above-mentioned steps S100.
Opening and detection module 520, for when carrying out fatigue detecting, open fatigue detecting prompting function, detection is also
The activity scene that record is presently in;Specifically as described in above-mentioned steps S200.
Fatigue detecting module 530, for detecting whether user is in fatigue state under the activity scene being presently in;Tool
Body is as described in above-mentioned steps S300.
Transfer and prompting processing 540, for when detecting that user is in fatigue state, then according to the user detected
The activity scene being presently in, transfers the fatigue detecting indicating mode with current active scene matching, provides corresponding prompting;Tool
Body is as described in above-mentioned steps S400.
The described system providing prompting based on smart machine detection human fatigue, wherein, pre-sets module and includes:
First pre-sets unit, for pre-set activity scene be drive or by bus state fatigue detecting remind
Add the tinkle of bells for vibrations to remind;As detailed above.
Second pre-sets unit, is that fatigue detecting prompting in a meeting carries for vibrations for pre-setting activity scene
Wake up;As detailed above.
Described fatigue detecting module includes:
Measure and record unit in advance, for measuring user's distance under the state of sitting up straight, between chin and clavicle in advance
It is referred to as standard and sits up straight distance, and record user is when different activity scene, distance between chin and clavicle in the unit interval
It is not equal to described standard and sits up straight the benchmark number of times of distance, and be stored in smart machine;As detailed above.
Detector unit, for when needing fatigue detecting, whether detection active user's chin is less than with clavicle spacing in real time
Described standard sits up straight distance;Chin and clavicle in the record unit time real-time and incremental when sitting up straight distance less than described standard
The spacing described standard such as not sit up straight the number of times of distance, for current number of times;As detailed above.
Contrast judging unit, for be used for detecting the most tired benchmark of user secondary by predetermined to described current number of times and one
Number compares, and when described current number of times is less than described first benchmark number of times, then judges that active user belongs to tired, doze state
And remind active user;As detailed above.
The described system providing prompting based on smart machine detection human fatigue, wherein, described measurement and record in advance
Unit includes:
Measuring unit, in advance, measurement user is under the state of sitting up straight, and the distance between chin and clavicle is referred to as normal end
Sit distance h1, be stored in the memory headroom of smart machine;As detailed above.
Record unit, is used for recording user and is running, during scene of speaking, and distance between chin and clavicle in the unit interval
Being not equal to described standard and sit up straight the benchmark number of times of distance h1, claim running benchmark number of times f (1) respectively, benchmark number of times f (2) of speaking is deposited
It is stored in memory headroom;Chin often rocks once, then f+1;As detailed above.
Pre-defined unit, be used for being defined previously as described in benchmark number of times f (2) of speaking the most tired for being used for detecting user
Benchmark number of times;As detailed above.
Described contrast judging unit includes:
First call unit, for calling the most real-time described current number of times;As detailed above.
Second call unit, is used for calling running, and during scene of speaking, in the unit interval, the distance between chin and clavicle is not
Described running benchmark number of times f (1) of distance h1, benchmark number of times f (2) of speaking is sat up straight equal to standard;As detailed above.
Contrast unit, is used for described current number of times f (t) with described running benchmark number of times f (1), speak benchmark number of times f
(2) contrast;As detailed above.
Judging unit, for when described current number of times f (t) > described running benchmark number of times f (1) time, it is judged that user is non-
Fatigue, doze state;When described current number of times f (t) < described running benchmark number of times f (1), and determine whether described currently
Whether number of times f (t) is more than speaking benchmark number of times f (2), and if greater than speaking, benchmark number of times f (2) then judges that user's brain is in
Words or the state more active than speaking, non-fatigue, doze state;If described current number of times f (t) <benchmark number of times of speaking
F (2) then judges that user is in fatigue, doze state;As detailed above.
In sum, the method and system providing prompting based on smart machine detection human fatigue provided by the present invention,
Smart machine is made to add New function: to have the function that fatigue detecting is reminded, inclined by detection user's chin within the unit interval
From the number of times of normal level, with user in the case of various the number of times of chin deviation normal level carry out contrasting thus judge that user is
The no fatigue state being in doze, when working as the state detecting that user occurs fatigue under doing the scenario set, in conjunction with
Situation around and scene provide user reminding, thus avoid user to cause work because of absent minded, impact in life,
Improve safety.
It should be appreciated that the application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can
To be improved according to the above description or to convert, all these modifications and variations all should belong to the guarantor of claims of the present invention
Protect scope.