Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that the described embodiment is only a part of the embodiment of the present invention, instead of all the embodiments.Based on this
Embodiment in invention, every other reality obtained by those of ordinary skill in the art without making creative efforts
Example is applied, shall fall within the protection scope of the present invention.
The scheme of the embodiment of the present invention may be implemented
From bed state or from being to be determined in bed state from bed state change.It is generated particular by the vibration according to target bed
Signal judged so that it is determined that user be in bed state perhaps from bed state so that judge user bed duration or from
Bed duration is that signal in the surrounding time section to the signal detected and the signal carries out synthesis and sentences due to the judging result
It is disconnected to obtain, may be implemented accurately to judge user in bed or from bed state;And this method calculates simple and calculation amount
It is small, determining target object is improved in bed or efficiency from bed state.
It is a kind of flow diagram of monitoring method to bed provided in an embodiment of the present invention referring to Fig. 1, Fig. 1, as schemed institute
Show, this method comprises:
S101 obtains the first monitoring signals associated with the vibration of target bed.
Here, target bed is the bed for being equipped with monitoring device.Optionally, monitoring device can be installed on user on target bed
Above the bed position often touched, such as the head of a bed, tailstock, mattress, in pillow, in mattress etc., selected position not Ying Ying
Lying down or sleeping for user is rung, the installation site of monitoring device is not defined herein.
In a kind of possible implementation, obtain the first monitoring signals associated with the vibration of target bed may include with
Lower step:
One, the second monitoring signals are generated according to the vibration of target bed.
Here, the second monitoring signals are to pass through the collected signal of sensor in monitoring device.Here, sensor can be with
For jogging sensor, such as piezoelectric film sensor, acceleration transducer etc..The working principle of piezoelectric film sensor are as follows: when
When pressure is acted directly on the diaphragm of sensor, diaphragm can be made to generate the micro-displacement proportional to pressure medium, cause to sense
The resistance of device changes, and by the way that the variation of the resistance is converted to the standard signal corresponding to the pressure, the standard signal is then
For the second monitoring signals.
Second monitoring signals are generated according to the vibration of target bed.For example, the second monitoring signals may include following several
At least one of kind signal: the signal that the operation (go to bed, operate from bed etc.) executed by target object to target bed generates;By
Target object is toward the signal generated when placing article on target bed;The signal that heartbeat of the target object on target bed generates;Bed
The signal etc. that the signal and bed for slightly vibrating generation do not have any vibration to generate.For example, bed does not have any vibration to generate
Signal can be stable noise signal.
Optionally, the second monitoring signals can also be pre-processed.Here, pretreatment may include enhanced processing and filter
Wave processing.In the specific implementation, being not easy to subsequent to signal due to smaller by the collected second monitoring signals intensity of sensor
It is handled, therefore collected second monitoring signals can be amplified by amplifier.It can also be to amplified
Two monitoring signals carry out signal filtering, and to keep, signal is undistorted, prevents signal frequency from aliasing etc. occur.Here, aliasing, which refers to, takes
The phenomenon that overlapping each other and being distorted is generated when sample signal is reduced into continuous signal, when aliasing occurs, original signal can not be from
Sampled signal reduction.
Two, the second monitoring signals are filtered by bandpass filter to obtain the first monitoring signals, bandpass filter
First cutoff frequency is first frequency threshold value, and the second cutoff frequency of bandpass filter is second frequency threshold value, first frequency threshold
Value is less than second frequency threshold value, and bandpass filter is for filtering out noise signal.
Since the application needs to determine whether that there are the first signal, heart rate signal and invalid letters from the first monitoring signals
Number, and the first signal, heart rate signal are more related to signal frequency, therefore first frequency threshold value here is used to indicate the first letter
Number and heart rate signal in possible minimum frequency value;Second frequency threshold value is used to indicate possible in the first signal and heart rate signal
Maximum frequency values.Signal in the case where in this way being filtered out the noise signal in the second monitoring signals by second step, after filtering out
(i.e. the first monitoring signals) also retain that this application involves the first signals and heart rate signal arrived.
Here, the first monitoring signals are to pass through first greater than first frequency threshold value and less than the signal of second frequency threshold value
Cutoff frequency is first frequency threshold value and the second cutoff frequency is the bandpass filter of second frequency threshold value to the first monitoring signals
It is filtered the noise that can filter out less than first frequency threshold value and be greater than second frequency threshold value.First frequency threshold value can be 1
Hertz (Hz, the basic unit of frequency), second frequency threshold value can be 30Hz, then are small by the signal that bandpass filter filters out
In 1Hz and greater than the noise signal of 30Hz, the frequency of obtained signal is the frequency within the scope of 1Hz~30Hz, i.e., the first prison
Survey signal.For example, passing through the first cutoff frequency when first frequency threshold value is 2Hz and in the case that second frequency threshold value is 10Hz
For first frequency threshold value and the second cutoff frequency is that the bandpass filter of second frequency threshold value is filtered the second monitoring signals
The first monitoring signals obtained afterwards can be as shown in Fig. 2, Fig. 2 be provided in an embodiment of the present invention a kind of by bandpass filter filter
Wave obtains the schematic diagram of the first monitoring signals.
S102, in the case where there is the first signal for meeting first condition in detecting the first monitoring signals, the company of determination
The first time period that first signal of at least one continuous occupies in the first monitoring signals, first condition are the letter in preset duration
Quantity in number more than the peak value of peak threshold is greater than preset quantity.
Here, peak threshold may include upper threshold value and lower threshold value, and upper threshold value can be the positive number greater than 0, such as can be with
For the numerical value such as 60,80;Lower threshold value can be the negative less than 0, such as can be the numerical value such as -60, -80.For example, peak threshold can
As shown in figure 3, Fig. 3 is a kind of schematic diagram of peak threshold provided in an embodiment of the present invention, wherein 1 represents upper threshold value, 2 generations
Table lower threshold value.The positive integer that preset quantity can be greater than 10 for 10,11,12 etc..Preset duration can be 1s, 1.5s, 2s etc..The
One signal is the signal for being greater than preset quantity more than the quantity of the peak value of peak threshold in the signal of preset duration.For example, pre-
If quantity is 10, then the first signal is the letter for being greater than 10 times more than the quantity of the peak value of peak threshold in the signal of preset duration
Number.Here, the first signal can be named as body movement signal, and body movement signal is the movement for being used to indicate target object and being directed to target bed
State.The embodiment of the present invention to the duration of first time period without limitation.
Here, may exist multiple continuous first signals in the first monitoring signals, exist in the first monitoring signals more
In the case where a continuous first signal, when determining multiple continuous first signals occupy in the first monitoring signals first
Between section.
In the concrete realization, by taking preset duration is 1.5s as an example, the specific implementation of step S102 including the following steps:
If 1, can determine the first signal for meeting first condition in a 1.5s, and earlier than this 1.5s and continuously
A 1.5s in signal be not the first signal, to indicate the first signal in step 1 at the beginning of be at the first time
At the beginning of section;
2, continuous next 1.5s is then obtained in the first monitoring signals, and judges whether the signal in the 1.5s is full
Sufficient first condition;
If 3, the signal in the 1.5s in step 2 meets first condition, step 2 is executed again;
If 4, the signal in the 1.5s in step 2 is unsatisfactory for first condition, it is determined that at least one continuous first signal
The first time period occupied in the first monitoring signals, first time period here are that the first signal determined from step 1 accounts for
Start at the beginning of, and is in the finish time with the last one continuous the first signal of the first signal in step 1
Terminate.
S103 obtains the second signal for occupying second time period in the first monitoring signals and occupies the of the third period
Three signals, wherein second time period is earlier than first time period and period adjacent with first time period, third period are
It is later than first time period and the period adjacent with first time period.
Here, second signal is the signal of the previous period of first time period, and third signal is first time period
The signal of the latter period.For example, first time period, second time period and third period can be as shown in figure 4, Fig. 4
It is the schematic diagram of period provided in an embodiment of the present invention a kind of, wherein A represents second time period, B represents first time period, C
Represent the third period.
The embodiment of the present invention to the duration of second time period and third period without limitation.
S104, if second signal is invalid signals and third signal is heart rate signal, it is determined that first time period it
Target object is in for target bed in bed state afterwards.
Can be in bed state here refers to that target object on the target bed, can be recumbency, be seated etc. state.
Invalid signals are signal of the peak value in invalid peak ranges, and invalid peak value may include upward peak and lower peak value, and upward peak can
To be equal to upper threshold value, lower peak value can be equal to lower threshold value, then invalid peak ranges are less than upper threshold value and greater than the model of lower threshold value
It encloses.
Heart rate signal is the heart rate amplitude and the signal in heart rate period for meeting living body.By taking third signal as an example, it can pass through
Following steps determine whether third signal is heart rate signal:
Firstly, determining the signal period of third signal.Wherein determine that the method for the signal period of third signal can use
Method of existing period measurement, such as cross zero detecting method, shaping pulse method etc., details are not described herein.For example, the application is implemented
One way in which is introduced in example: relevant calculation, the auto-correlation function of third signal x (n) are carried out to third signal are as follows:
N=1 indicates first moment in the third period, and N is the last one moment in the third period, and m is small
In or equal to N positive integer.In the maximum situation of R (m), the minimum value of m corresponding with this R (m) is third signal x
(n) signal period.
Optionally, due to needing to be implemented autocorrelation calculation, the third period of third signal can be using value as heart rate signal
Possible period maximum value.
Then, if the signal period is within the scope of predetermined period, it is determined that third signal is heart rate signal.Here, week is preset
Phase may range from the ranges such as 0.5s-1.5s, 1s-1.6s, 0.5s-1.6s.
In the embodiment of the present invention, if second signal is invalid signals and third signal is heart rate signal, and continuously extremely
The duration of a few third signal is more than the first duration threshold value, it is determined that target object is in after the first period of time in bed shape
State.For example, the first signal, heart rate signal and invalid signals can be as shown in figure 5, Fig. 5 be provided in an embodiment of the present invention one
Kind determines the schematic diagram in bed state of target object by the first signal, second signal and third signal, wherein a1 is represented
Invalid signals, b1 represent the first signal, c1 represents heart rate signal.
It is understood that meeting first condition in the first signal and second signal is invalid signals and third signal is the heart
In the case where rate signal, monitoring device can determine that target object is executing movement of going to bed to target bed in first time period,
And then determine target object on target bed in bed state after the first period of time.This mode can be determined accurately
Target object is at the beginning of bed state.It is understood that the time sequencing generated according to signal, it can be seen that mesh
Mark object is carved into finish time of third period at the beginning of from second time period, for target bed target object be from from
In the case that bed state transformation is in order to be lasting heart rate signal after bed state and third period, target can be determined
Object is in bed state within the period of lasting heart rate signal.
Optionally, it in the case where the duration of at least one continuous third signal is no more than the first duration threshold value, determines
Target object is in from bed state, is in by judging whether target object is in bed state and combining target object
The third signal in certain time length after bed state carries out judging whether target object is in very (preventing target object in bed state
It is false in bed state, it is false in bed state, that is, target object after bed again at once from bed), can be improved determining target object in bed
The accuracy of state judgement.
Here, the first duration threshold value can be any positive numbers such as 5s, 8s, 10s.Target object in the embodiment of the present application is
The object of operation (go to bed/operate from bed) is executed to target bed.
S105, if second signal is heart rate signal and third signal is invalid signals, it is determined that first time period it
Target object is in for target bed from bed state afterwards.
Can be from bed state here refers to that target object leaves target bed.In one possible implementation, second
Signal is heart rate signal and third signal is invalid signals.Specifically the process that second signal is determined as heart rate signal can be referred to
Third signal is determined as being discussed in detail for heart rate signal in step S104, details are not described herein.
In the embodiment of the present invention, if second signal is heart rate signal and third signal is invalid signals, and continuously extremely
The duration of a few third signal is more than the second duration threshold value, it is determined that target object is in after the first period of time from bed shape
State.For example, the first signal, heart rate signal and invalid signals can be as shown in fig. 6, Fig. 6 be provided in an embodiment of the present invention one
Kind determines the schematic diagram in bed state of target object by the first signal, second signal and third signal, wherein a2 is represented
Heart rate signal, b2 represent the first signal, c2 represents invalid signals.
It is understood that meeting first condition in the first signal and second signal is heart rate signal and third signal is nothing
In the case where imitating signal, monitoring device can determine that target object is executed to target bed from bed movement in first time period,
And then determine target object on target bed in from bed state after the first period of time.This mode can be determined accurately
At the beginning of target object is in from bed state.It is understood that the time sequencing generated according to signal, it can be seen that mesh
Mark object is carved into finish time of third period at the beginning of from second time period, for target bed target object be from
The transformation of bed state in order to from bed state, and after the third period be it is lasting it is invalid in the case where, can determine target object
It is from bed state within the period of lasting invalid signals.
Optionally, it in the case where the duration of at least one continuous third signal is no more than the second duration threshold value, determines
Target object is in bed state, by judge target object whether be in from bed state and combining target object in from
The third signal in certain time length after bed state carries out judging whether target object is in very (preventing target object from bed state
It is false from bed state, it is false from bed state, that is, target object from after bed again at once in bed), can be improved determining target object from bed
The accuracy of state judgement.Second duration threshold value can for greater than the first duration threshold value any positive number, such as can for 15s,
20s, 30s etc..
In a kind of possible situation, which can be applied in the scene in home for destitute, by by the monitoring
Device be mounted on the bed of old man can accurately determine out old man in bed and from bed state, so that administrative staff be made to know
Whether current old man can prevent old man from occurring unexpected long very much from the bed time in bed and from bed duration etc..
In the case where alternatively possible, which can also be applied in the scene of students' dormitory, by the prison
Survey device be installed on the bed of student, can monitor student in bed and from bed state, for instance in Nighttime sleep
Duan Shi can determine current student in the case where determining that student is in from bed state and is more than certain time length from bed state
Not in bed, to remind houseparent to check the dormitory to determine that student whether in dormitory, facilitates students' dormitory
Management, can also determine whether student situations such as unexpected occurs.
In the case where alternatively possible, which can also be applied in the scene of hotel management, by the prison
Device is surveyed to be installed on hotel's bed, can monitor customer in bed state and from bed state, which can also be with
Light control switch be connected, for example, when determine current customer be in bed state, light can be automatically closed;Work as determination
When current customer is in from bed state out, light can be automatically opened, to play better service effectiveness.
In the embodiment of the present invention, the first monitoring signals associated with the vibration of target bed are obtained, and detecting first
There are in the case where the first signal in monitoring signals, the signal in time adjacent segments before the first signal and later is carried out
Judgement, when the signal in time adjacent segments before judging the first signal is adjacent after invalid signals and the first signal
Between in the case that signal in section is heart rate signal, determine that target object is in after the first period of time in bed state, sentencing
The signal in time adjacent segments before disconnected first signal out is in the time adjacent segments after heart rate signal and the first signal
In the case that signal is invalid signals, determine that target object is in after the first period of time from bed state;Due to judging target
Combined when the state change of object the first signal it is adjacent for the previous period in signal and it is adjacent after signal in a period of time,
To signal carry out the target object that comprehensive descision can be such that judgement obtains in bed or more acurrate from bed state outcome;Due to this
Monitoring device can be installed on any position for having touching relationship with bed accessory, therefore can detecte any angle and any position
The signal for the bed set, by the signal is analyzed can accurately obtain target object in bed or from bed state;And it should
Method calculates that simple and calculation amount is small, improves determining target object in bed or efficiency from bed state.
It is the flow diagram of another monitoring method to bed provided in an embodiment of the present invention referring to Fig. 7, Fig. 7, such as schemes
It is shown, this method comprises:
S201 obtains the first monitoring signals associated with the vibration of target bed.
S202, in the case where there is the first signal for meeting first condition in detecting the first monitoring signals, the company of determination
The first time period that first signal of at least one continuous occupies in the first monitoring signals, first condition are the letter in preset duration
Quantity in number more than the peak value of peak threshold is greater than preset quantity.
S203 obtains the second signal for occupying second time period in the first monitoring signals and occupies the of the third period
Three signals, wherein second time period is earlier than first time period and period adjacent with first time period, third period are
It is later than first time period and the period adjacent with first time period.
S204, if second signal is invalid signals and third signal is heart rate signal, it is determined that first time period it
Target object is in for target bed in bed state afterwards.
S205, if second signal is heart rate signal and third signal is invalid signals, it is determined that first time period it
Target object is in for target bed from bed state afterwards.
Here, the specific implementation of step S201~S205 can refer to step S101 in the corresponding embodiment of Fig. 1~
The description of S105, details are not described herein again.
S206 obtains the permission of target object from bed duration.
Here it is possible to the permission for presetting target object from bed duration, allow from bed duration can for five minutes, very
Any duration such as clock, half an hour, one hour.
Optionally, different permissions can also be set previously according to the difference of period from bed duration.Such as 6 points of morning
The permission at 6 points in afternoon to 10 points at night can be greater than from bed duration, at 6 points in afternoon to evening from bed duration to 6 points of permission in afternoon
Upper 10 points of permission can be greater than at ten two points in evening to 6 points of permission in morning from bed duration from bed duration.Such as 6 points of morning is extremely
6 points of permission in afternoon can be able to be half small from bed duration for 6 points to 10 points at night one hour, of permission in afternoon from bed duration
When, at night ten two points to 6 points of permission in morning from bed duration can be 15 minutes.
S207 records target object from bed determining target object from the case where bed state is changed into from bed state
Duration is exported and is reminded from bed time-out, remind from bed time-out in the case where target object is more than to allow from bed duration from bed duration
For prompt target object from bed duration be more than allow from bed duration.
Here, target object is determined for target bed, from being feelings from bed state in bed state change by step S205
Under condition, i.e., in the case that target object leaves target bed, target object is recorded from bed duration.When physical record target object is from bed
Long method can be record target object first from the bed moment, when target object reaches permission from bed duration from bed duration
In the case of, it exports and is reminded from bed time-out.For example, a length of one hour when allowing from bed, when determine target object from the bed moment
When for noon 12:00, i.e. when noon 12:00 target object by bed state to from bed state, if in the afternoon 1:00 when do not examine also
Target object is measured by bed state (i.e. target object is not returned on target bed), then exporting and mentioning from bed time-out from bed state
It wakes up.Reminding from bed time-out to be output " XX user is from bed time-out ", can also pass through voice broadcast " XX user is from bed time-out "
Deng.
It is alternatively possible to determining that it is overtime from bed in cancelling after bed state on target bed that there are target objects
It reminds.
Optionally, it can also be closed detecting to trigger to remind from bed time-out to the administrative staff that target object is managed
In the case where closing instruction, cancelling should remind from bed time-out, out code should be reminded to remind for cancelling from bed time-out from bed time-out.
It is alternatively possible to reminded according to cancelling from the first instruction in bed time-out out code for administrative staff's triggering from bed time-out,
Meet to export again in the case where should reminding from bed time-out next time and be reminded from bed time-out, such as second day phase is determined in the same time
Target object does not export then from bed to be reminded from bed time-out;Alternatively, what can also be triggered according to administrative staff refers to from the closing of bed time-out
The second instruction in order is temporarily cancelled to be reminded from bed time-out, is exported in the case where meeting and reminding again from bed time-out from bed time-out
It reminds, for example, can be reminded to export again ten minutes later from bed time-out from the second instruction in bed time-out out code.
In the embodiment of the present invention, it can be divided by the monitoring signals that the vibration to target bed generates based on the application
Analysis, obtain target object in bed or from bed state, and can remember in the case where determining that target object leaves target bed
Record it is corresponding from the bed moment, therefore can determine target object from bed duration be more than allow from bed duration in the case where,
It exports and is reminded from bed time-out, should remind from bed time-out can remind the super from bed duration of relevant administrative staff's current target object
When, to be managed accordingly.
It is the flow diagram of another monitoring method to bed provided in an embodiment of the present invention referring to Fig. 8, Fig. 8, such as schemes
It is shown, this method comprises:
S301 obtains the first monitoring signals associated with the vibration of target bed.
S302, in the case where there is the first signal for meeting first condition in detecting the first monitoring signals, the company of determination
The first time period that first signal of at least one continuous occupies in the first monitoring signals, first condition are the letter in preset duration
Quantity in number more than the peak value of peak threshold is greater than preset quantity.
S303 obtains the second signal for occupying second time period in the first monitoring signals and occupies the of the third period
Three signals, wherein second time period is earlier than first time period and period adjacent with first time period, third period are
It is later than first time period and the period adjacent with first time period.
S304, if second signal is invalid signals and third signal is heart rate signal, it is determined that first time period it
Target object is in for target bed in bed state afterwards.
S305, if second signal is heart rate signal and third signal is invalid signals, it is determined that first time period it
Target object is in for target bed from bed state afterwards.
Here, the specific implementation of step S301~S305 can refer to step S101 in the corresponding embodiment of Fig. 1~
The description of S105, details are not described herein again.
S306 obtains the prompting of target object from the bed moment.
Here it is possible to preset the prompting of target object from the bed moment.Optionally, it can be more for reminding from the bed moment
It is a, for example, target object from the bed moment can for one in any times such as 6:00 in morning, 7:00 in morning, 7:30 in morning or
It is multiple.
S307, determining that target object is converted in the case where bed state from from bed state, if current time is more than to mention
It wakes up from the bed moment, exports and reminded from bed, remind from bed for prompting target object to leave target bed.
In the embodiment of the present invention, determining that target object is converted in the case where bed state from from bed state, acquisition is worked as
The preceding moment exports if current time is more than to remind (reminding from bed moment target object not from bed) from the bed moment from bed
It reminds.For example, remind from the bed moment be 7:00 in morning, when determine target object be from bed state to bed state and it is current when
Carve be 7:00 in morning when, and target object also in the case where bed state, export from bed remind.Optionally, in determination
Remind when from the bed moment target object not in the case where bed out, i.e., target object was completed in bed state reminding from the bed moment
In the case where to transformation (i.e. target object remind got up from the bed moment) from bed state, does not export and reminded from bed.
It is alternatively possible to cancel and being reminded from bed after determining target object from bed.
Optionally, can also be in the case where target object trigger and reminds out code from bed, cancelling should remind from bed,
Out code should be reminded to remind for cancelling from bed from bed.It is alternatively possible to according to target object triggering from bed out code
In the first instruction cancel and being reminded from bed, export in the case where meeting should remind from bed next time and reminded from bed again, such as the
Two days phases are determined that target object does not export then from bed in the same time and are reminded from bed;Alternatively, can also be triggered according to target object
From in bed out code second instruction temporarily cancel from bed remind, meet again from bed remind in the case where export from bed
It reminds, for example, can be reminded to export again ten minutes later from bed from the second instruction in bed out code.Can be from bed prompting
Output " from the bed time to ", " XX user arrives from the bed time ", can also by voice broadcast " being arrived from the bed time ", " XX user from
The bed time arrives " etc..
In the embodiment of the present invention, it can be divided by the monitoring signals that the vibration to target bed generates based on the application
Analysis, obtain target object in bed or from bed state, therefore can in target object on target bed in bed state
In the case of, if current time is more than to remind from the bed moment, exports and reminded from bed, may be implemented to remind target object from bed, subtract
Lack and reminded what bed state exported from bed when target object is not at, has improved the validity reminded from bed.
The method of inventive embodiments is described above, the device of inventive embodiments is described below.
It is a kind of composed structure schematic diagram of monitoring device provided in an embodiment of the present invention, the device 90 referring to Fig. 9, Fig. 9
Include:
Signal acquisition module 901, for obtaining the first monitoring signals associated with the vibration of the target bed;
First signal determining module 902 meets first condition for existing in detecting first monitoring signals
In the case where first signal, at least one continuous described first signal occupies in first monitoring signals first is determined
Period, the first condition are that the quantity in the signal of preset duration more than the peak value of peak threshold is greater than preset quantity;
Second signal determining module 903 occupies the second of second time period for obtaining in first monitoring signals
Signal and occupy the third period third signal, wherein the second time period for earlier than the first time period and with institute
State the first time period adjacent period, the third period be later than the first time period and with the first time period
The adjacent period;
In bed state determining module 904, if being invalid signals for the second signal and the third signal is the heart
Rate signal, it is determined that target object is in for the target bed in bed state after the first time period;
From bed state determining module 905, if being heart rate signal for the second signal and the third signal is nothing
Imitate signal, it is determined that target object is in for the target bed from bed state after the first time period;
Wherein, the invalid signals are signal of the peak value in invalid peak ranges;The heart rate signal is to meet living body
The heart rate period signal.
In a kind of possible design, the signal acquisition module 901 is specifically used for:
The second monitoring signals are generated according to the vibration of the target bed;
Second monitoring signals are filtered by bandpass filter to obtain the first monitoring signals, the bandpass filtering
First cutoff frequency of device is first frequency threshold value, and the second cutoff frequency of the bandpass filter is second frequency threshold value, institute
First frequency threshold value is stated less than the second frequency threshold value, the bandpass filter is for filtering out noise signal.
It is described in bed state determining module 904 in a kind of possible design, it is specifically used for: if the second signal
For invalid signals and the third signal is heart rate signal, and the duration of at least one continuous third signal is more than first
Duration threshold value, it is determined that target object is in for the target bed in bed state after the first time period.
It is described from bed state determining module 905 in a kind of possible design, it is specifically used for: if the second signal
For heart rate signal and the third signal is invalid signals, and the duration of at least one continuous third signal is more than second
Duration threshold value, it is determined that target object is in for the target bed from bed state after the first time period.
In a kind of possible design, described device 90, further includes:
Heart rate signal determining module 906, for determining the signal period of the third signal;
The heart rate signal determining module 906, if being also used to the signal period within the scope of predetermined period, it is determined that the
Three signals are heart rate signal.
In a kind of possible design, described device 90, further includes:
From bed time-out reminding module 907, for obtaining the permission of the target object from bed duration;
It is described from bed time-out reminding module 907, be also used to determining that the target object is changed into from bed state from bed
In the case where state, record the target object from bed duration, it is described from bed duration be more than described allow from bed duration
In the case of, it exports and is reminded from bed time-out, it is described to remind from bed time-out for prompting the target object from bed duration more than described
Allow from bed duration.
In a kind of possible design, described device 90, further includes:
From bed reminding module 908, for obtaining the prompting of the target object from the bed moment;
It is described from bed reminding module 908, be also used to determining that the target object is changed into from from bed state in bed state
In the case where, if current time reminds more than described from the bed moment, exports and reminded from bed, it is described described for prompting from bed prompting
Target object leaves the target bed.
It should be noted that unmentioned content can be found in the description of embodiment of the method in the corresponding embodiment of Fig. 9, here
It repeats no more.
In the embodiment of the present invention, the first monitoring signals associated with the vibration of target bed are obtained, and detecting first
There are in the case where the first signal in monitoring signals, the signal in time adjacent segments before the first signal and later is carried out
Judgement, when the signal in time adjacent segments before judging the first signal is adjacent after invalid signals and the first signal
Between in the case that signal in section is heart rate signal, determine that target object is in after the first period of time in bed state, sentencing
The signal in time adjacent segments before disconnected first signal out is in the time adjacent segments after heart rate signal and the first signal
In the case that signal is invalid signals, determine that target object is in after the first period of time from bed state;Due to judging target
Combined when the state change of object the first signal it is adjacent for the previous period in signal and it is adjacent after signal in a period of time,
To signal carry out the target object that comprehensive descision can be such that judgement obtains in bed or more acurrate from bed state outcome;Due to this
Monitoring device can be installed on any position for having touching relationship with bed accessory, therefore can detecte any angle and any position
The signal for the bed set, by the signal is analyzed can accurately obtain target object in bed or from bed state;And it should
Method calculates that simple and calculation amount is small, improves determining target object in bed or efficiency from bed state.
It is a kind of composed structure schematic diagram of monitoring device provided in an embodiment of the present invention, the monitoring referring to Figure 10, Figure 10
Equipment 100 includes sensor 1001, processor 1002 and memory 1003.Sensor 1001 is connected with processor 1002, place
Reason device 1002 is connected with memory 1003, such as processor 1002 can be connected to memory 1003 by bus.
Processor 1002 is configured as the monitoring method for supporting the monitoring device to execute described in Fig. 1, Fig. 7, Fig. 8 to bed
In corresponding function.The processor 1002 can be central processing unit (central processing unit, CPU), at network
It manages device (network processor, NP), hardware chip or any combination thereof.Above-mentioned hardware chip can be dedicated integrated
Circuit (application specific integrated circuit, ASIC), programmable logic device
(programmable logic device, PLD) or combinations thereof.Above-mentioned PLD can be Complex Programmable Logic Devices
(complex programmable logic device, CPLD), field programmable gate array (field-
Programmable gate array, FPGA), Universal Array Logic (generic array logic, GAL) or its any group
It closes.
1003 memory of memory is for storing program code etc..Memory 1003 may include volatile memory
(volatile memory, VM), such as random access memory (random access memory, RAM);Memory 1003
It also may include nonvolatile memory (non-volatile memory, NVM), such as read-only memory (read-only
Memory, ROM), flash memory (flash memory), hard disk (hard disk drive, HDD) or solid state hard disk
(solid-state drive, SSD);Memory 1003 can also include the combination of the memory of mentioned kind.
The sensor 1001 is used to generate the first monitoring signals according to the vibration of target bed.
Processor 1002 can call said program code to execute following operation:
Obtain the first monitoring signals that sensor 1001 is generated according to the vibration of the target bed;
In the case where there is the first signal for meeting first condition in detecting first monitoring signals, determine continuous
The first time period that is occupied in first monitoring signals of at least one described first signal, the first condition is pre-
If the quantity in the signal of duration more than the peak value of peak threshold is greater than preset quantity;
The second signal for occupying second time period is obtained in first monitoring signals and occupies the of the third period
Three signals, wherein the second time period is the period earlier than the first time period and adjacent with the first time period,
The third period is to be later than the first time period and the period adjacent with the first time period;
If the second signal is invalid signals and the third signal is heart rate signal, it is determined that at described first
Between after section target object be in for the target bed in bed state;
If the second signal is heart rate signal and the third signal is invalid signals, it is determined that at described first
Between after section target object be in for the target bed from bed state;
Wherein, the invalid signals are signal of the peak value in invalid peak ranges;The heart rate signal is to meet living body
The heart rate period signal.
Optionally, which can also include hardware circuit 1004, and the hardware circuit 1004 is used for described
Sensor 1001 is filtered according to the second monitoring signals that the vibration of target bed generates.Hardware circuit 1004 and sensor
1001 are connected with processor 1002.Further, which can be also used for sensor 1001 according to target bed
Vibration generate the second monitoring signals carry out signal enhanced processing, with improve the second monitoring signals signal strength.
The processor 1002 is specifically used for: being filtered to obtain to second monitoring signals by bandpass filter
One monitoring signals, the first cutoff frequency of the bandpass filter are first frequency threshold value, second section of the bandpass filter
Only frequency is second frequency threshold value, and the first frequency threshold value is less than the second frequency threshold value, and the bandpass filter is used for
Filter out noise signal.
The processor 1002 is specifically used for: if the second signal is invalid signals and the third signal is heart rate
Signal, and the duration of at least one continuous third signal is more than the first duration threshold value, it is determined that in the first time
Target object is in for the target bed in bed state after section.
The processor 1002 is specifically used for: if the second signal is heart rate signal and the third signal is invalid
Signal, and the duration of at least one continuous third signal is more than the second duration threshold value, it is determined that in the first time
Target object is in for the target bed from bed state after section.
The processor 1002 is also used to:
Determine the signal period of the third signal;
If the signal period is within the scope of predetermined period, it is determined that third signal is heart rate signal.
Optionally, which can also include transceiver 1005, and the transceiver 1005 is used for output data,
Such as it exports and is reminded from bed time-out, exported from bed prompting etc..Transceiver 1005 is connected to memory 1003 and processor 1002, example
As transceiver 1005 can be connected to memory 1003 and processor 1002 by bus.
The processor 1002 is also used to:
The permission of the target object is obtained from bed duration;
Determining that the target object from the case where bed state is changed into from bed state, records the target object
From bed duration, it is described be more than described allow from bed duration from bed duration in the case where, the transceiver 1005 exports super from bed
When remind, described remind from bed time-out for prompting the target object from bed duration is more than described to allow from bed duration.
The processor 1002 is also used to:
The prompting of the target object is obtained from the bed moment;
Determining that the target object is changed into the case where bed state from from bed state, if current time is more than described
It reminds from the bed moment, the transceiver 1005 is exported to be reminded from bed, described to remind from bed for prompting the target object to leave
The target bed.
It should be noted that realizing for each operation can also corresponding description to should refer to above method embodiment.
The embodiment of the present invention also provides a kind of computer storage medium, and the computer storage medium is stored with computer journey
Sequence, the computer program include program instruction, and described program instruction executes the computer such as
Method described in previous embodiment, the computer can be a part of monitoring device mentioned above.It is for example, above-mentioned
Processor 1002.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with
Relevant hardware is instructed to complete by computer program, the program can be stored in computer-readable storage medium
In, the program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, the storage medium can be magnetic
Dish, CD, ROM or RAM etc..
The above disclosure is only the preferred embodiments of the present invention, cannot limit the right model of the present invention with this certainly
It encloses, therefore equivalent changes made in accordance with the claims of the present invention, is still within the scope of the present invention.