CN109674449A - A kind of method and device of data processing - Google Patents

A kind of method and device of data processing Download PDF

Info

Publication number
CN109674449A
CN109674449A CN201811580523.2A CN201811580523A CN109674449A CN 109674449 A CN109674449 A CN 109674449A CN 201811580523 A CN201811580523 A CN 201811580523A CN 109674449 A CN109674449 A CN 109674449A
Authority
CN
China
Prior art keywords
data
user
dormant data
sleep state
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201811580523.2A
Other languages
Chinese (zh)
Inventor
张启
王鑫宇
叶继明
刘子威
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Het Data Resources and Cloud Technology Co Ltd
Original Assignee
Shenzhen Het Data Resources and Cloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Het Data Resources and Cloud Technology Co Ltd filed Critical Shenzhen Het Data Resources and Cloud Technology Co Ltd
Priority to CN201811580523.2A priority Critical patent/CN109674449A/en
Publication of CN109674449A publication Critical patent/CN109674449A/en
Pending legal-status Critical Current

Links

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/48Other medical applications
    • A61B5/4806Sleep evaluation
    • A61B5/4809Sleep detection, i.e. determining whether a subject is asleep or not
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/72Signal processing specially adapted for physiological signals or for diagnostic purposes

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Molecular Biology (AREA)
  • Animal Behavior & Ethology (AREA)
  • Pathology (AREA)
  • Physics & Mathematics (AREA)
  • Biomedical Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Medical Informatics (AREA)
  • Veterinary Medicine (AREA)
  • Surgery (AREA)
  • Biophysics (AREA)
  • General Health & Medical Sciences (AREA)
  • Public Health (AREA)
  • Anesthesiology (AREA)
  • Artificial Intelligence (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physiology (AREA)
  • Psychiatry (AREA)
  • Signal Processing (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)

Abstract

The present invention provides a kind of method and devices of data processing.The described method includes: receiving the dormant data of the user of monitoring device feedback;The dormant data is analyzed with the sleep state of the determination user using regulation engine;Target device is determined according to sleep state, and sends operational order to the target device according to preset rules.The technical solution provided through the invention can acquire the dormant data of user in real time, and be judged by stages in real time according to dormant data progress, to improve dormant data judgement by stages.

Description

A kind of method and device of data processing
Technical field
The present invention relates to internet of things field, in particular to a kind of method and device of data processing.
Background technique
With the development of science and technology, people are monitored to obtain the sleep state of human body by various monitoring devices Then monitoring data are analyzed monitoring data the health status to determine user.
However, current use pattern is essentially all the monitoring data first obtained whole night, it is then based on the data of acquisition Analyzed and determined, and can not for user sleep state carry out in real time monitoring analysis processing, it is even more impossible to other Internet of Things Net equipment carries out real-time, interactive.
Summary of the invention
The embodiment of the invention provides a kind of method and device of data processing, by using method provided by the invention, The dormant data of user can be acquired in real time, and is judged by stages in real time according to dormant data progress, to improve dormant data Judgement by stages.
First aspect present invention discloses a kind of method of data processing, which comprises
Receive the dormant data of the user of monitoring device feedback;
The dormant data is analyzed with the sleep state of the determination user using regulation engine;
Target device is determined according to sleep state, and sends operational order to the target device according to preset rules.
Optionally, described to match the dormant data with the sleep shape of the determination user with the regulation engine Before state, the method also includes:
The dormant data of the acquisition is processed to propose the exceptional value in the dormant data;
Missing values are carried out to the dormant data after processing using the mode of linear interpolation to fill up to obtain complete number Dormant data;
It is described to match the dormant data with the regulation engine with the sleep state of the determination user, packet It includes:
The complete dormant data will be matched with the regulation engine with the sleep state of the determination user.
Optionally, described that the dormant data is analyzed with the sleep of the determination user using the regulation engine State, comprising:
Judge whether the dormant data of the user received in bed duration and last time has according to the dormant data Effect;Wherein, if time interval between the dormant data that the dormant data and last time that this time receive receive be greater than it is default between Every, it is determined that the dormant data that the last time receives is invalid dormant data;
If the user's is greater than first in bed duration and is preset in a duration and dormant data that last time receives is nothing Imitate data, it is determined that the current sleep state of the user is that user goes to bed state.
If the user is nothing in the dormant data that bed duration is preset in less than second duration and last time receives Imitate dormant data, it is determined that the current sleep state of the user is user's waking state.
Optionally, the method also includes:
If turning over number lower than default number or the body energy of turning over higher than default body energy, it is determined that at the user In microarousal state.
Optionally, the method also includes:
If it is determined that last time sleep state is not present and physical function parameter is located at the first parameter section, it is determined that the user Current sleep state is sleeping state, and the physical function parameter is determined by the dormant data;
If it is determined that the sleep state of last time is sleeping state and this time physical function parameter is located at the second parameter section, then Determine that the current sleep state of the user is deep sleep state.
Optionally, the method also includes:
If the dormant data length is less than preset data length, it is determined that the current sleep state of the user is from bed State.
Optionally, before the dormant data of the user for receiving monitoring device feedback, which comprises
Obtain the historical sleep data of the user;
The historical sleep data are slided according to the time window of preset duration to extract target data;
To the target data analyzed with determination described first be preset in a duration, described second be preset in bed when Long, default body energy, first parameter section and second parameter section.
Optionally, it is described according to preset rules to the target device send operational order after, the method also includes:
The dormant data received is stored;
When the length of the dormant data of storage is greater than preset length, pass through the dormant data progress to the storage Analysis described first is preset in a duration, described second is preset in a duration, default body energy, first parameter to update Section and second parameter section.
First aspect present invention discloses a kind of data processing equipment, and the data processing equipment includes transceiver, processing Device and memory;It wherein is stored with program code in the memory, when said program code is run,
Operation is sended and received described in the transceiver execution first aspect is any;
The processor executes any processing operation of first aspect.
Third aspect present invention discloses a kind of storage medium, program code is stored in the storage medium, when described When program code is run, the method for the first aspect can be performed;
Fourth aspect present invention discloses a kind of controller, and the controller includes processor and transceiver, wherein second Transmission-receiving function described in aspect can realize that (i.e. logic unit is had logic function described in second aspect by the transceiver The function of body) it can be realized by processor;
Fifth aspect present invention discloses a kind of computer program product, includes program in the computer program product Code;When said program code is run, the method for the first aspect can be performed.
As can be seen that receiving the dormant data of the user of monitoring device feedback in the scheme of the embodiment of the present invention;It utilizes Regulation engine analyzes with the sleep state of the determination user dormant data;Determine that target is set according to sleep state It is standby, and operational order is sent to the target device according to preset rules.The technical solution provided through the invention, can be real-time The dormant data of user is acquired, and is judged by stages in real time according to dormant data progress, is judged by stages to improve dormant data Ability.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to needed in the embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are some embodiments of the invention, general for this field For logical technical staff, without creative efforts, it is also possible to obtain other drawings based on these drawings.
Fig. 1 is a kind of schematic diagram of data processing method provided in an embodiment of the present invention;
Fig. 1 a is a kind of schematic diagram of linear interpolation method provided in an embodiment of the present invention;
Fig. 2 is the schematic diagram for another data processing method that the embodiment of the present invention provides;
Fig. 3 is a kind of schematic diagram of data processing method provided in an embodiment of the present invention;
Fig. 4 is the building-block of logic of a data processing equipment provided in an embodiment of the present invention;
Fig. 5 provides the building-block of logic of another data processing equipment for the embodiment of the present invention;
Fig. 6 provides the building-block of logic of another data processing equipment for the embodiment of the present invention;
Fig. 7 is a kind of physical structure schematic diagram of data processing equipment provided in an embodiment of the present invention.
Specific embodiment
In order to enable those skilled in the art to better understand the solution of the present invention, below in conjunction in the embodiment of the present invention Attached drawing, technical solution in the embodiment of the present invention are explicitly described, it is clear that described embodiment is the present invention one The embodiment divided, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art are not doing Every other embodiment obtained under the premise of creative work out, should fall within the scope of the present invention.
The term " first " that occurs in description of the invention, claims and attached drawing, " second " and " third " etc. are to use In the different object of difference, and it is not intended to describe specific sequence.In addition, term " includes " and " having " and they are any Deformation, it is intended that cover and non-exclusive include.Such as contain the process, method, system, product of a series of steps or units Or equipment is not limited to listed step or unit, but optionally further comprising the step of not listing or unit, or can Selection of land further includes the other step or units intrinsic for these process, methods, product or equipment.
Referring to Fig. 1, Fig. 1 is a kind of flow diagram of the method for data processing provided by one embodiment of the present invention. Wherein, as shown in Figure 1, a kind of method for data processing that one embodiment of the present of invention provides, the method includes following interior Hold:
101, the dormant data of the user of monitoring device feedback is received;
Wherein, it should be pointed out that monitoring device can be sleep belt, intelligent mattress, intelligent bracelet, intelligent watch etc. Deng the device for monitoring user's body function.Wherein, wherein dormant data includes the data of physical function parameter.Citing comes It says, the data of common physical function include heart rate, respiratory rate, body energy, the dynamic number of body etc..
Executing subject of the invention can be a smart machine, and the dormant data that can be monitored according to monitoring device carries out Analysis, and export analysis result.It is understood that technical solution provided by the invention can also be directly installed on monitoring device In;Certainly, technical solution provided by the invention can also it is separately installed in one apparatus, pass through receive monitoring device feedback Dormant data is analyzed and exports analysis result.
Wherein, it should be pointed out that in order to guarantee the accuracy of monitoring data, need to add the dormant data of monitoring Work.Specifically, described match the dormant data with regulation engine with before the sleep state of the determination user, institute State method further include:
The dormant data of acquisition is processed to propose the exceptional value in the dormant data;Use linear interpolation Mode to after processing the dormant data carry out missing values fill up to obtain complete dormant data;It is described by the sleep Data are matched with regulation engine with the sleep state of the determination user, comprising: by the complete dormant data and rule Then engine is matched with the sleep state of the determination user.
Wherein, it should be pointed out that linear interpolation is the widely used interpolation side in the fields such as mathematics, computer graphics Method.Assuming that our known coordinates (x0, y0) and (x1, y1), will obtain the y of a certain position x on straight line in the section [x0, x1] Value.Such as Fig. 1 a, according to as shown in the figure, it is assumed that have a bit (x, y) on AB, two similar triangles can be made, we obtain (y- Y0)/(y1-y0)=(x-x0)/(x1-x0) assumes that the value on equation both sides is α, then this value be exactly interpolation coefficient-from x0 to The ratio of the distance of x and the distance from x0 to x1.As known to x value, it is possible to the value of α is obtained from formula, α=(x-x0)/ (x1-x0), equally, α=(y-y0)/(y1-y0).In this way, can be expressed as on algebra are as follows:
Y=(1- α) y0+ α y1, alternatively, y=y0+ α (y1-y0).Y can be directly obtained by α in this way.In fact, i.e. Make x not between x0 to x1 and α is also not between 0 to 1, this formula is also to set up.
102, the dormant data is analyzed with the sleep state of the determination user using regulation engine;
Wherein, it should be pointed out that it include various threshold values in regulation engine, and various threshold values are to pass through machine according to knowledge base Device study determination.Common machine learning algorithm includes classification learning algorithm, support vector machines learning algorithm, Bayesian learning Algorithm etc., herein with no restrictions.
Specifically, before receiving the dormant data of user of monitoring device feedback, the method also includes:
Obtain the historical sleep data of the user;To the historical sleep data according to preset duration time window into Row sliding is to extract target data;The target data is analyzed, a duration, described are preset in determination described first Two are preset in a duration, default body energy, first parameter section and second parameter section.
Wherein, the process of analysis can be the process for taking quantile, comprising:, can be by institute for limited manifold One that middle is found out after having observed value height to sort is used as median.If observed value has an even number, median is not only One, usually take the average of most intermediate two values as median.If it is section, can be carried out based on median Interval extension.As an example it is assumed that first a length of data point when being preset in bed, then the median obtained can serve as The data point;If first to be preset in a duration be a data interval for this, left and right extension can be carried out based on median, For example median is 5 minutes, then can be extended to 4-6 minutes.
Specifically, described analyze with the sleep shape of the determination user dormant data using regulation engine State, the determination including following state.
1, whether user is in the state of going to bed.
Specifically, whether having in bed duration and the data of last time for the user can be judged according to the dormant data Effect;Wherein, if time interval between the dormant data that the dormant data and last time that this time receive receive be greater than it is default between Every, it is determined that the dormant data that the last time receives is invalid dormant data;If the user's is greater than in bed duration First is preset in a duration and dormant data that last time receives is invalid data, it is determined that the current sleep shape of the user State is that user goes to bed state.
For example, for example, when user in bed when monitoring device the sign data of user can be monitored, and And can feed back the data that once monitor every 5 minutes, and the data that ten minutes ability feedback receptions of this septum secundum arrive.Illustrate this The time interval between dormant data that the secondary dormant data received and last time receive is greater than preset interval, it is, with Family should leave bed before, and the dormant data that the last time receives can be determined as invalid dormant data.According to this Secondary monitoring data are it is found that if being this time greater than first in bed duration is preset in a duration and dormant data that last time receives is Invalid data, it is determined that the current sleep state of the user is that user goes to bed state.
Wherein it is possible to understand, can be determined by installing pressure detector in bed user whether in bed, with And the duration of pressure determine user in the bed time.
For example, the determination method fallen asleep a little is as follows: by connection database obtain a certain user for the previous period The data the whole night (including: heart rate, respiratory rate, body energy, body moves number) of (threshold value is adjustable).Determine that user's is upper by program After bed point, take the data of a period of time after going to bed a little (threshold value is adjustable).It slides according to the time window of 5 minutes length to data It extracts, takes each 5 minutes mean values respectively, quantile row is carried out after counting to the mean value of each 5 minutes section Sequence.The above-mentioned steps of data the whole night all for the previous period of user are calculated.To the calculated all quantiles of progress Data take mean value and are set as point optimal threshold of falling asleep.
2, whether user is in waking state
If the user is nothing in the dormant data that bed duration is preset in less than second duration and last time receives Imitate data, it is determined that the current sleep state of the user is user's waking state.
For example, if the data that receive of last time are invalid data, illustrate that user just goes to bed, if this time go to bed Time is preset in a duration (such as 5 or 10 minutes) less than second, it can be understood as, the shorter entrance also useless of user's bedtime Sleep state, therefore may determine that state at this time is waking state.
3, whether user is in microarousal state
It can judge according to number and body energy is turned over.Specifically, turning over number lower than default if turning over number Or body energy is higher than default body energy, it is determined that the user is in microarousal state.
It is understood that body energy is higher if user is in waking state, and if in sleep state It is lower to carry energy.So can be according to the current body energy of user and the default sleep state for carrying energy and determining user.
4, user is in shallow sleep or deep sleep
Specifically, the judgment method include: if it is determined that last time sleep state is not present and physical function parameter (i.e. this time The dormant data received) it is located at the first parameter section, it is determined that and the current sleep state of the user is sleeping state;If Determine that the sleep state of last time is sleeping state and this time physical function parameter is located at the second parameter section, it is determined that the use The current sleep state in family is deep sleep state.
Wherein, it should be pointed out that physical function parameter may include heart rate, respiratory rate, body energy, the dynamic number of body. First parameter section includes the numberical range of above-mentioned parameters.Similarly, the second parameter section includes above-mentioned parameters Numberical range.
Wherein, it should be pointed out that because everyone physical function varies with each individual.So the first parameter of different people Section and the second parameter section may be different.However, it will be understood that once people enters deep sleep state, body it is each Item function can become slow, therefore the value in the second parameter section is less than the first parameter section.
In addition, the historical sleep data that the first parameter section and the second parameter section are users obtain after analyzing. Detailed process includes: to obtain the historical sleep data of the user;To the historical sleep data according to the time of preset duration Window is slided to extract target data;To the target data analyzed with determination described first be preset in a duration, Described second is preset in a duration, default body energy, first parameter section and second parameter section.
It is understood that the dormant data this time received is exactly the parameter of physical function, which can pass through monitoring Device obtains, which can be sleep belt, and intelligent mattress, intelligent bracelet, intelligent watch etc. are for monitoring user The device of physical function.
Wherein it is possible to understand, if user does not enter sleep state before, and this time physical function parameter is located at the Between one parameter region, then illustrating that user has just fallen asleep soon, then generally in sleeping state;Further, if body machine Energy parameter is between the second parameter region, then illustrating that user's time for falling asleep is longer, then generally in deep sleep state.
Wherein it is possible to understand, deep sleep is compared with shallow sleep, and the dynamic number of body is less, body energy is lower, heart rate And respiratory rate all can be lower.
Further it will be understood that the physical function of each user is there are individual difference, thus the first parameter section and Second parameter section is also to vary with each individual.
5, whether user is in from bed state.
If the data length this time received is less than preset data length, it is determined that the current sleep state of the user is From bed state.
103, target device is determined according to the sleep state, and sends and operates to the target device according to preset rules Instruction.
For example, if state of going to bed is in than user, then can turn off the light with command and control device.It says for another example, If user is deep sleep, then air-conditioning can be commanded to be adjusted to sleep pattern or air-conditioner temperature is transferred to before user A preference temperature being arranged, wind speed are turned down.
In addition, optional, it is described send operational order to the target device according to preset rules after, the method is also It include: to be stored to the dormant data received;When the length of the dormant data of storage is greater than preset length, storage is utilized Data update described first and be preset in a duration, described second be preset in a duration, default body energy, first parameter Section and second parameter section.By instant update relevant parameter, so that the sleep state to user judges more Accurately
As can be seen that data processing equipment receives the sleep number of the user of monitoring device feedback in the scheme of the present embodiment According to;The dormant data is analyzed with the sleep state of the determination user using regulation engine;It is true according to sleep state Set the goal equipment, and sends operational order to the target device according to preset rules.The technical solution provided through the invention, The dormant data of user can be acquired in real time, and is judged by stages in real time according to dormant data progress, to improve dormant data Judgement by stages.
Referring to Fig. 2, Fig. 2 be another embodiment of the present invention provides another data processing method flow signal Figure.Wherein, as shown in Figure 2, which comprises
201, the dormant data of the user of monitoring device feedback is received;
Wherein, it should be pointed out that monitoring device can be sleep belt, intelligent mattress, intelligent bracelet, intelligent watch etc. Deng the device for monitoring user's body function.Wherein, the data of common physical function include heart rate, respiratory rate, body kinetic energy Amount, body move number etc..
Wherein, optionally, before the dormant data of the user of the reception monitoring device feedback, which comprises Obtain the historical sleep data of the user;To the historical sleep data according to the time window of preset duration slided with Extract target data;The target data is analyzed, a duration is preset in determination described first, described second is preset in Bed duration, default body energy, first parameter section and second parameter section.
202, the dormant data of acquisition is processed to propose the exceptional value in the dormant data;
203, missing values are carried out to the dormant data after processing using the mode of linear interpolation and fills up complete to obtain Dormant data;
204, the complete dormant data is matched with the regulation engine with the sleep shape of the determination user State;
205, target device is determined according to sleep state, and sends operation to the target device according to preset rules and refers to It enables.
Wherein, it should be pointed out that the particular content of Fig. 2 described embodiment can refer to embodiment corresponding to Fig. 1 Explanation.
As can be seen that having carried out further working process to the dormant data monitored in the scheme of the present embodiment.It is logical It crosses using technical solution provided in an embodiment of the present invention, further ensures the accuracy of the dormant data monitored.
As shown in figure 3, another embodiment of the present invention provides another data processing method flow schematic diagram.Its In, as shown in Figure 3, which comprises
301, the historical sleep data of the user are obtained;
302, the historical sleep data are slided according to the time window of preset duration to extract target data;
303, the target data is analyzed and a duration is preset in determination described first, described second is preset in bed Duration, default body energy, first parameter section and second parameter section;
304, the dormant data of the user of monitoring device feedback is received;
305, the dormant data is analyzed with the sleep state of the determination user using regulation engine;
306, target device is determined according to the sleep state, and sends and operates to the target device according to preset rules Instruction;
307, the dormant data received is stored;
308, when the length of the dormant data of storage is greater than preset length, pass through the dormant data to the storage It is analyzed to update and described first be preset in a duration, described second be preset in a duration, default body energy, described first Parameter section and second parameter section.
As can be seen that having carried out further working process to the dormant data monitored in the scheme of the present embodiment.It is logical It crosses using technical solution provided in an embodiment of the present invention, further ensures the accuracy of the dormant data monitored.
As shown in figure 4, a kind of data processing equipment 400 that one embodiment of the present of invention provides, wherein the device 400 Including with lower unit:
Receiving unit 401, the dormant data of the user for receiving monitoring device feedback;
Analytical unit 402 is slept for being analyzed using regulation engine the dormant data with the determination user Dormancy state;
Determination unit 403, for determining target device according to sleep state;
Transmission unit 404, for sending operational order to the target device according to preset rules.
Wherein, optionally, device 400 further includes acquiring unit 405 and processing unit 406;
Acquiring unit 405, it is different in the dormant data to propose for being processed to the dormant data of acquisition Constant value;
Unit 406 is processed, missing values are carried out to the dormant data after processing for the mode using linear interpolation and are filled out It mends to obtain complete dormant data;
Analytical unit 402, specifically for matching the complete dormant data with the regulation engine with determination The sleep state of the user.
Wherein, analytical unit 402 can do analysis below: according to the dormant data judge the user in bed duration And whether the dormant data that last time receives is effective;Wherein, if the dormant data this time received was received with last time Dormant data between time interval be greater than preset interval, it is determined that the dormant data that the last time receives is invalid Dormant data;If the user's is greater than first in bed duration and is preset in a duration and the sleep that the last time receives Data are invalid data, it is determined that the current sleep state of the user is that user goes to bed state.If the user in bed It is long to be preset in a duration less than second and dormant data that last time receives is invalid dormant data, it is determined that the user works as Preceding sleep state is user's waking state.If turning over number lower than default number or the body energy of turning over higher than default body kinetic energy Amount, it is determined that the user is in microarousal state.If it is determined that last time sleep state is not present and physical function parameter is located at the One parameter section, it is determined that the current sleep state of the user is sleeping state;The physical function parameter passes through described Dormant data determines;If it is determined that the sleep state of last time is sleeping state and this time physical function parameter is located at the second parameter region Between, it is determined that the current sleep state of the user is deep sleep state.If it is long that the dormant data length is less than preset data Degree, it is determined that the current sleep state of the user is from bed state.
Optionally, device 400 further includes extraction unit 407;
Acquiring unit 405, for obtaining the historical sleep data of the user;
Extraction unit 407, for being slided to the historical sleep data according to the time window of preset duration to mention Take target data;
Analytical unit 402, is also used to analyze the target data and is preset in a duration, institute with determination described first It states second and is preset in a duration, default body energy, first parameter section and second parameter section.
Optionally, device 400 further includes storage unit 408 and updating unit 409;
Storage unit 408, for being stored to the dormant data received;
Updating unit 409, for when the length of the dormant data of storage be greater than preset length when, by the storage Dormant data analyzed with update described first be preset in a duration, described second be preset in a duration, default body energy, First parameter section and second parameter section.
Wherein, receiving unit 401, analytical unit 402, determination unit 403, transmission unit 404, acquiring unit 405, processing Unit 406, extraction unit 407, storage unit 408 and updating unit 409 can be used for executing step 101- in embodiment 1 Method described in 103 specifically describes description of the detailed in Example 1 to the method, and details are not described herein.
As shown in figure 5, a kind of data processing equipment 500 that one embodiment of the present of invention provides, wherein the device 500 Including with lower unit:
Receiving unit 501, the dormant data of the user for receiving monitoring device feedback;
Wherein, it should be pointed out that monitoring device can be sleep belt, intelligent mattress, intelligent bracelet, intelligent watch etc. Deng the device for monitoring user's body function.Wherein, the data of common physical function include heart rate, respiratory rate, body kinetic energy Amount, body move number etc..
Wherein, optionally, before the dormant data of the user of the reception monitoring device feedback, which comprises Obtain the historical sleep data of the user;To the historical sleep data according to the time window of preset duration slided with Extract target data;The target data is analyzed, a duration is preset in determination described first, described second is preset in Bed duration, default body energy, first parameter section and second parameter section.
Unit 502 is processed, is proposed for being processed to the dormant data of the acquisition different in the dormant data Constant value;
Shim 503 carries out missing values to the dormant data after processing for the mode using linear interpolation and fills out It mends to obtain complete dormant data;
Matching unit 504, for the complete dormant data to be matched described in determination with the regulation engine The sleep state of user;
Determination unit 505, for determining target device according to sleep state;
Transmission unit 506, for sending operational order to the target device according to preset rules.
Wherein, said units 501-506 can be used for executing method described in step 201-205 in embodiment 2, specifically retouch Description of the detailed in Example 2 to the method is stated, details are not described herein.
As shown in fig. 6, a kind of data processing equipment 600 that one embodiment of the present of invention provides, wherein the device 600 Including with lower unit:
Acquiring unit 601, for obtaining the historical sleep data of the user;
Extraction unit 602, for being slided to the historical sleep data according to the time window of preset duration to mention Take target data;
Analytical unit 603 is preset in a duration, described for being analyzed the target data with determination described first Second is preset in a duration, default body energy, first parameter section and second parameter section;
Receiving unit 604, the dormant data of the user for receiving monitoring device feedback;
Analytical unit 603 is also used to analyze with the determination user's the dormant data using regulation engine Sleep state;
Determination unit 605, for determining target device according to the sleep state;
Transmission unit 606, for sending operational order to the target device according to preset rules;
Receiving unit 607, for being stored to the dormant data received;
Updating unit 608, for when the length of the dormant data of storage be greater than preset length when, by storage The dormant data is analyzed to update described first and be preset in that a duration, described second to be preset in a duration, default body dynamic Energy, first parameter section and second parameter section.
Wherein, said units 601-608 can be used for executing method described in step 301-308 in embodiment 2, specifically retouch Description of the detailed in Example 3 to the method is stated, details are not described herein.
Referring to Fig. 7, in another embodiment of the present invention, providing a kind of data processing equipment 700.Device 700 wraps Include the hardware such as CPU 701, memory 702, bus 703, transceiver 704.Above-mentioned Fig. 4-logic unit shown in fig. 6 can pass through figure Hardware device shown in 7 is realized.
Wherein, CPU 701 executes the server program being stored in advance in memory 702, which specifically includes:
Receive the dormant data of the user of monitoring device feedback;
The dormant data is analyzed with the sleep state of the determination user using regulation engine;
Target device is determined according to sleep state, and sends operational order to the target device according to preset rules.
Optionally, described that the dormant data is analyzed with the sleep state of the determination user using regulation engine Before, the implementation procedure further include:
The dormant data of the acquisition is processed to propose the exceptional value in the dormant data;
Missing values are carried out to the dormant data after processing using the mode of linear interpolation to fill up to obtain and completely sleep Dormancy data;
It is described that the dormant data is analyzed with the sleep state of the determination user using regulation engine, comprising:
The complete dormant data is matched with the regulation engine with the sleep state of the determination user.
Optionally, described to match the complete dormant data with the determination user's with the regulation engine Sleep state, comprising:
The dormant data received in bed duration and last time for judging the user according to the dormant data is It is no effective;Wherein, if between time between the dormant data that receives of the dormant data this time received and last time Every greater than preset interval, it is determined that the dormant data that the last time receives is invalid dormant data;
If the user's is greater than first in bed duration and is preset in a duration and the dormant data that last time receives For invalid data, it is determined that the current sleep state of the user is that user goes to bed state.
If the user is nothing in the dormant data that bed duration is preset in less than second duration and last time receives Imitate data, it is determined that the current sleep state of the user is user's waking state.
Optionally, the implementation procedure further include:
If turning over number lower than default number or the body energy of turning over higher than default body energy, it is determined that at the user In microarousal state.
Optionally, the implementation procedure further include:
If it is determined that last time sleep state is not present and physical function parameter is located at the first parameter section, it is determined that the user Current sleep state is sleeping state, and the physical function parameter is determined by the dormant data;
If it is determined that the sleep state of last time is sleeping state and this time physical function parameter is located at the second parameter section, then Determine that the current sleep state of the user is deep sleep state.
Optionally, the implementation procedure further include:
If the dormant data length is less than preset data length, it is determined that the current sleep state of the user is from bed State.
Optionally, before the dormant data of the user for receiving monitoring device feedback, the implementation procedure further include:
Obtain the historical sleep data of the user;
The historical sleep data are slided according to the time window of preset duration to extract target data;
To the target data analyzed with determination described first be preset in a duration, described second be preset in bed when Long, default body energy, first parameter section and second parameter section.
Optionally, it is described according to preset rules to the target device send operational order after, the implementation procedure is also Include:
The dormant data received is stored;
When the length of the dormant data of storage is greater than preset length, pass through the dormant data progress to storage Analysis described first is preset in a duration, described second is preset in a duration, default body energy, first parameter to update Section and second parameter section in another embodiment of the present invention, disclose a kind of storage medium, the storage Program code is stored in medium, when said program code is run, the method in preceding method embodiment can be performed.
From the above it can be seen that receiving the sleep number of the user of monitoring device feedback in technical solution provided in an embodiment of the present invention According to;The dormant data is analyzed with the sleep state of the determination user using regulation engine;It is true according to sleep state Set the goal equipment, and sends operational order to the target device according to preset rules.The technical solution provided through the invention, The dormant data of user can be acquired in real time, and is judged by stages in real time according to dormant data progress, to improve dormant data Judgement by stages.
In another embodiment of the present invention, a kind of computer program product, the computer program product are disclosed In include program code;When said program code is run, the method in preceding method embodiment can be performed.
In another embodiment of the present invention, a kind of chip is disclosed, includes program code in the chip;Work as institute When stating program code and being run, the method in preceding method embodiment can be performed.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way It realizes.For example, the apparatus embodiments described above are merely exemplary, such as the division of the unit, it is only a kind of Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit, It can be electrical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words It embodies, which is stored in a storage medium, including some instructions are used so that a computer Equipment (can for personal computer, server or network equipment etc.) execute each embodiment the method for the present invention whole or Part steps.And storage medium above-mentioned includes: that USB flash disk, read-only memory (ROM, Read-Only Memory), arbitrary access are deposited Reservoir (RAM, Random Access Memory), mobile hard disk, magnetic or disk etc. be various to can store program code Medium.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these It modifies or replaces, the range for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.

Claims (10)

1. a kind of method of data processing, which is characterized in that the described method includes:
Receive the dormant data of the user of monitoring device feedback;
The dormant data is analyzed with the sleep state of the determination user using regulation engine;
Target device is determined according to the sleep state, and sends operational order to the target device according to preset rules.
2. the method according to claim 1, wherein described divide the dormant data using regulation engine Before analysis is with the sleep state of the determination user, the method also includes:
The dormant data of acquisition is processed to propose the exceptional value in the dormant data;
Missing values are carried out to the dormant data after processing using the mode of linear interpolation to fill up to obtain complete sleep number According to;
It is described that the dormant data is analyzed with the sleep state of the determination user using regulation engine, comprising:
The complete dormant data is matched with the regulation engine with the sleep state of the determination user.
3. according to the method described in claim 2, it is characterized in that, described draw the complete dormant data with the rule It holds up and is matched with the sleep state of the determination user, comprising:
Judge whether the dormant data of the user received in bed duration and last time has according to the dormant data Effect;Wherein, if the time interval between the dormant data that receives of the dormant data this time received and last time is big In preset interval, it is determined that the dormant data that the last time receives is invalid dormant data;
If the user's is greater than first in bed duration and is preset in a duration and the dormant data that the last time receives For invalid dormant data, it is determined that the current sleep state of the user is that user goes to bed state;
If the user in the dormant data that bed duration is preset in less than second duration and the last time receives For invalid dormant data, it is determined that the current sleep state of the user is user's waking state.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
If turning over number number is turned over or body energy is higher than default body energy lower than default, it is determined that the user is current Sleep state is microarousal state.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
If it is determined that last time sleep state is not present and physical function parameter is located at the first parameter section, it is determined that the user is current Sleep state be sleeping state, the physical function parameter by the dormant data determination;
If it is determined that the sleep state of last time is sleeping state and this time physical function parameter is located at the second parameter section, it is determined that The current sleep state of the user is deep sleep state.
6. according to the method described in claim 5, it is characterized in that, the method also includes:
If the dormant data length is less than preset data length, it is determined that the current sleep state of the user is from bed shape State.
7. according to the method described in claim 6, it is characterized in that, the dormant data of the user for receiving monitoring device feedback Before, which comprises
Obtain the historical sleep data of the user;
The historical sleep data are slided according to the time window of preset duration to extract target data;
The target data is analyzed, a duration is preset in determination described first, described second is preset in a duration, pre- If body energy, first parameter section and second parameter section.
8. the method according to the description of claim 7 is characterized in that described send according to preset rules to the target device is grasped After instructing, the method also includes:
The dormant data received is stored;
When the length of the dormant data of storage is greater than preset length, by analyzing the dormant data of storage It described first is preset in a duration to update, described second is preset in a duration, default body energy, first parameter section And second parameter section.
9. a kind of data processing equipment, which is characterized in that the data processing equipment includes transceiver, processor and storage Device;It wherein is stored with program code in the memory, when said program code is run,
Operation is sended and received described in the transceiver perform claim requirement 1 to 8 is any;
The processor perform claim requires 1 to 8 any processing operation.
10. a kind of storage medium, which is characterized in that computer program code is stored in the storage medium, when the calculating Machine program code is performed, and any method of claim 1 to 8 can be run.
CN201811580523.2A 2018-12-24 2018-12-24 A kind of method and device of data processing Pending CN109674449A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811580523.2A CN109674449A (en) 2018-12-24 2018-12-24 A kind of method and device of data processing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811580523.2A CN109674449A (en) 2018-12-24 2018-12-24 A kind of method and device of data processing

Publications (1)

Publication Number Publication Date
CN109674449A true CN109674449A (en) 2019-04-26

Family

ID=66188934

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811580523.2A Pending CN109674449A (en) 2018-12-24 2018-12-24 A kind of method and device of data processing

Country Status (1)

Country Link
CN (1) CN109674449A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111895625A (en) * 2020-06-30 2020-11-06 广州番禺职业技术学院 Indoor environment improvement method and system based on neural network algorithm and storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103750820A (en) * 2013-12-26 2014-04-30 沈阳熙康阿尔卑斯科技有限公司 Method and device for monitoring sleep quality
CN104896656A (en) * 2015-05-11 2015-09-09 小米科技有限责任公司 Method and device for starting air conditioner
CN105286783A (en) * 2014-05-26 2016-02-03 爱信精机株式会社 Sleep evaluation device
CN105431196A (en) * 2013-04-15 2016-03-23 神经系统检测公司 Transcutaneous electrical nerves stimulator with automatic detection of user sleep-wake state
CN105796111A (en) * 2016-03-09 2016-07-27 安徽华米信息科技有限公司 Monitoring method and device for sleep turning actions and wearable equipment
CN107249443A (en) * 2014-12-05 2017-10-13 苹果公司 Sleep measurement computer system
CN107252313A (en) * 2017-05-25 2017-10-17 深圳市卡迪赛克科技有限公司 The monitoring method and system of a kind of safe driving, automobile, readable storage medium storing program for executing
CN108042108A (en) * 2017-12-06 2018-05-18 中国科学院苏州生物医学工程技术研究所 A kind of sleep quality monitoring method and system based on body shake signal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105431196A (en) * 2013-04-15 2016-03-23 神经系统检测公司 Transcutaneous electrical nerves stimulator with automatic detection of user sleep-wake state
CN103750820A (en) * 2013-12-26 2014-04-30 沈阳熙康阿尔卑斯科技有限公司 Method and device for monitoring sleep quality
CN105286783A (en) * 2014-05-26 2016-02-03 爱信精机株式会社 Sleep evaluation device
CN107249443A (en) * 2014-12-05 2017-10-13 苹果公司 Sleep measurement computer system
CN104896656A (en) * 2015-05-11 2015-09-09 小米科技有限责任公司 Method and device for starting air conditioner
CN105796111A (en) * 2016-03-09 2016-07-27 安徽华米信息科技有限公司 Monitoring method and device for sleep turning actions and wearable equipment
CN107252313A (en) * 2017-05-25 2017-10-17 深圳市卡迪赛克科技有限公司 The monitoring method and system of a kind of safe driving, automobile, readable storage medium storing program for executing
CN108042108A (en) * 2017-12-06 2018-05-18 中国科学院苏州生物医学工程技术研究所 A kind of sleep quality monitoring method and system based on body shake signal

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111895625A (en) * 2020-06-30 2020-11-06 广州番禺职业技术学院 Indoor environment improvement method and system based on neural network algorithm and storage medium

Similar Documents

Publication Publication Date Title
Jalal et al. A Triaxial acceleration-based human motion detection for ambient smart home system
Jung et al. Occupant-centered real-time control of indoor temperature using deep learning algorithms
CN109568760B (en) Sleep environment adjusting method and system
CN108253588A (en) Control method and device of air conditioner, storage medium and processor
WO2017008321A1 (en) Smart home energy management method based on smart wearable device behavior detection
CN107883535A (en) Air conditioner control method and device
CN105902257A (en) Sleep state analysis method and device and intelligent wearable equipment
CN109044272A (en) Sleep state monitoring and sleep environment parameter regulation method, system and terminal device
CN104490401B (en) Method for intelligent terminal for automatically recognizing human behaviors based on acceleration data
CN111288986B (en) Motion recognition method and motion recognition device
CN105808959A (en) Motion detection system, motion detection terminal and cloud platform
CN107886103B (en) Method, device and system for identifying behavior patterns
CN112926541A (en) Sleeping post detection method and device and related equipment
CN106308822A (en) Method and system for judging mood of animal
CN110084293A (en) A kind of determination method and apparatus in complete bright pattern house
CN112057066A (en) Heart rate detection method, wearable device and computer storage medium
CN105868519A (en) Human body characteristic data processing method and apparatus
CN107844771A (en) Method, system, computer installation and the storage medium of crop production management
Langensiepen et al. Activities recognition and worker profiling in the intelligent office environment using a fuzzy finite state machine
SE537695C2 (en) Method and apparatus for analysis of periodic motion
CN110363143A (en) Monitoring method, device and system
CN111197845A (en) Deep learning-based control method and system for air conditioner operation mode
CN109674449A (en) A kind of method and device of data processing
CN111199187A (en) Animal behavior identification method based on algorithm, corresponding storage medium and electronic device
CN111141284A (en) Intelligent building personnel thermal comfort level and thermal environment management system and method

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190426