CN114451863B - Data processing method, system and electronic equipment - Google Patents

Data processing method, system and electronic equipment Download PDF

Info

Publication number
CN114451863B
CN114451863B CN202011520799.9A CN202011520799A CN114451863B CN 114451863 B CN114451863 B CN 114451863B CN 202011520799 A CN202011520799 A CN 202011520799A CN 114451863 B CN114451863 B CN 114451863B
Authority
CN
China
Prior art keywords
preset
information
gravity
change rule
pressure
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.)
Active
Application number
CN202011520799.9A
Other languages
Chinese (zh)
Other versions
CN114451863A (en
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 Medica Technology Development Co ltd
Original Assignee
Shenzhen Medica Technology Development 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 Medica Technology Development Co ltd filed Critical Shenzhen Medica Technology Development Co ltd
Priority to CN202011520799.9A priority Critical patent/CN114451863B/en
Publication of CN114451863A publication Critical patent/CN114451863A/en
Application granted granted Critical
Publication of CN114451863B publication Critical patent/CN114451863B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/4815Sleep quality
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/103Detecting, measuring or recording devices for testing the shape, pattern, colour, size or movement of the body or parts thereof, for diagnostic purposes
    • A61B5/1036Measuring load distribution, e.g. podologic studies

Abstract

The application discloses a data processing method, a data processing system and electronic equipment. The data processing method comprises the following steps: acquiring first pressure information and first gravity information; if the duration time length of the change rule of the first pressure information accords with the preset rule is longer than a first preset duration time, and the duration time length of the gravity corresponding to the first gravity information, which is longer than the first preset gravity, is longer than the first preset duration time, determining that the user is in a bed state in the first preset duration time; determining sleep quality information of a user based on a time period of the user in a bed state; when the change rule of the first pressure information is related to a preset signal change rule, the change rule of the first pressure information accords with the preset rule. The technical scheme provided by the embodiments of the application can play a role in improving the detection accuracy of the sleep quality information of the user.

Description

Data processing method, system and electronic equipment
Technical Field
The application belongs to the technical field of testing, and particularly relates to a data processing method, a data processing system and electronic equipment.
Background
In the prior art, in the field of sleep quality information testing, sleep quality information of a user can be detected by detecting the in-bed time and out-of-bed time of the user. A common way is to detect whether the user turns over in the bed through a pressure sensor, so as to determine whether the user is in the bed, and further analyze sleep quality information of the user. However, the data of the pressure sensor is easily affected by factors such as the fan blowing the bed surface, the user beating the bed surface, and the like. That is, when the fan blows the bed surface, the user beats the bed surface, and the like, resulting in a change of data of the pressure sensor disposed on the bed, in the scheme in the prior art, the user is directly determined to be on the bed, and thus the detection accuracy of the detection of the sleep quality information of the user is lower.
Disclosure of Invention
The embodiment of the application provides an implementation scheme which is different from the prior art and is suitable for detecting the scene of sleep quality.
Specifically, in one embodiment of the present application, there is provided a data processing method including: acquiring first pressure information and first gravity information; if the duration time length of the change rule of the first pressure information accords with the preset rule is longer than a first preset duration time, and the duration time length of the gravity corresponding to the first gravity information, which is longer than the first preset gravity, is longer than the first preset duration time, determining that the user is in a bed state in the first preset duration time; determining sleep quality information of a user based on a time period of the user in a bed state; when the change rule of the first pressure information is related to a preset signal change rule, the change rule of the first pressure information accords with the preset rule.
In another embodiment of the present application, there is provided a data processing system including: a detection device, a processing device; wherein, the detection device includes: the pressure sensor is used for acquiring first pressure information; the gravity sensor is used for collecting the target gravity information; the processing device is used for acquiring the first pressure information and determining first gravity information according to the target gravity information; if the duration time length of the change rule of the first pressure information accords with the preset rule is longer than a first preset duration time, and the duration time length of the gravity corresponding to the first gravity information, which is longer than the first preset gravity, is longer than the first preset duration time, determining that the user is in a bed state in the first preset duration time; determining sleep quality information of a user based on a time period of the user in a bed state; when the change rule of the first pressure information is related to a preset signal change rule, the change rule of the first pressure information accords with the preset rule.
In yet another embodiment of the present application, there is provided an electronic apparatus including: the memory is used for storing programs; the processor, coupled to the memory, is configured to execute the program stored in the memory for: acquiring first pressure information and first gravity information; if the duration time length of the change rule of the first pressure information accords with the preset rule is longer than a first preset duration time, and the duration time length of the gravity corresponding to the first gravity information, which is longer than the first preset gravity, is longer than the first preset duration time, determining that the user is in a bed state in the first preset duration time; determining sleep quality information of a user based on a time period of the user in a bed state; when the change rule of the first pressure information is related to a preset signal change rule, the change rule of the first pressure information accords with the preset rule.
The embodiments of the application provide a new scheme different from the prior art, wherein the scheme obtains the first pressure information and the first gravity information; if the change rule of the first pressure information is larger than a first preset duration, the duration time related to the preset signal change rule is longer than a first preset duration time, and the duration time of the gravity corresponding to the first gravity information, which is larger than the first preset gravity, is longer than the first preset duration time, the user is determined to be in a bed state in the first preset duration time; based on the time of the user in the on-bed state, the scheme for determining the sleep quality information of the user introduces analysis of gravity information, and combines two key information of pressure information and gravity information to determine whether the user is on-bed, thereby playing a role in improving the detection accuracy of the sleep quality information of the user.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the present application, and other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art. In the drawings:
FIG. 1a is a flow chart illustrating a data processing method according to an embodiment of the present application;
FIG. 1b is a flowchart illustrating a data processing method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of a data processing system according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of an electronic device according to another embodiment of the present application;
fig. 4 is a schematic structural diagram of a data processing apparatus according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments of the present application. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terminology used in the embodiments of the application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise, the "plurality" typically includes at least two, but does not exclude the case of at least one. It should be understood that the description herein of "first," "second," etc. is for distinguishing between different elements, devices, etc. and not necessarily for describing a sequential or otherwise indicated, and that "first" and "second" are not necessarily of the same type. The words "if", as used herein, may be interpreted as "at … …" or "at … …" or "in response to a determination" or "in response to monitoring", depending on the context. Similarly, the phrase "if determined" or "if monitored (stated condition or event)" may be interpreted as "when determined" or "in response to determination" or "when monitored (stated condition or event)" or "in response to monitoring (stated condition or event), depending on the context.
It should also be noted that the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a product or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such product or system. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a commodity or system comprising such elements.
The technical schemes provided by the embodiments of the present application will be described in detail below with reference to the accompanying drawings.
Fig. 1a is a schematic flow chart of a data processing method according to an exemplary embodiment of the present application, and an execution subject of the method may be a processing apparatus, an intelligent device, etc. related to sleep quality detection. The method at least comprises the following steps:
101. acquiring first pressure information and first gravity information;
102. If the duration time length of the change rule of the first pressure information accords with the preset rule is longer than a first preset duration time, and the duration time length of the gravity corresponding to the first gravity information, which is longer than the first preset gravity, is longer than the first preset duration time, determining that the user is in a bed state in the first preset duration time;
103. determining sleep quality information of a user based on a time period of the user in a bed state;
When the change rule of the first pressure information is related to a preset signal change rule, the change rule of the first pressure information accords with the preset rule.
Specifically, the first pressure information is measured by the pressure sensor, the first gravity information may be determined according to the target gravity information detected by the gravity sensor, and the first gravity information may be the same as the target gravity information. The pressure sensor and the gravity sensor can be arranged on the same detection plate, and the detection plate can be placed on a bed, in particular can be placed at a position below the chest of a user when the user lies on the bed.
In some alternative embodiments, the foregoing preset signal change rule may be a change rule of a change curve corresponding to a preset signal, where the change curve corresponding to the preset signal may be a curve related to human body feature information, for example: a curve related to heartbeat information, or a curve related to respiration information.
Further, the change rule of the first pressure information related to the preset signal change rule includes at least one of the following:
The change rule of the amplitude of the pressure curve corresponding to the first pressure information is consistent with the amplitude change rule of the signal curve corresponding to the preset signal change rule;
The variation period of the first pressure information is smaller than a preset threshold value, and the difference value of the variation period of the signal corresponding to a preset signal variation rule is smaller than a preset threshold value.
Further, the correlation between the change rule of the first pressure information and the preset signal change rule further includes: in the pressure curve corresponding to the first pressure information, the number of times that the wave crest value exceeds the preset wave crest value is the same as the number of times corresponding to the preset signal change rule or is larger than the number of times corresponding to the preset signal change rule.
In some alternative embodiments of the application, the pressure sensor will detect heartbeat information and/or respiration information of the user while the user is lying in the bed. For example: the heart of the user beats and the respiration can cause the deformation of the resistor or the elastic sheet in the pressure sensor, the deformation information corresponds to the detection result of the pressure sensor, the deformation information can be specifically reflected as pressure information (also called pressure signal) detected by the pressure sensor, and the pressure information at different moments can form a pressure curve.
Further, for the step 103, a total duration corresponding to the sleep quality information of the user may be set, that is, the step 103 may specifically include: and determining sleep quality information of the user in the preset total duration based on all the in-bed durations of the user in the preset total duration. For example: all the in-bed time periods of the user in the in-bed state within the preset total time period can be counted to determine the sleep quality information of the user.
Alternatively, the sleep quality information may be used to indicate the level of sleep quality, and the level of sleep quality may be classified into three levels of good, bad, and bad. The application can determine the sleep quality information of the user based on the time interval of the duration of the user in the bed. In some alternative embodiments, the length of time the user is in the bed if: the sleep quality information of the user can be determined to be optimal from 10 late to 6 early and from 12 midday to 13 midday; if the time length of the user in bed is from 11 late to 7 early, the sleep quality information of the user can be determined to be good, if the time length of the user in bed is from 2 early to 6 early, the sleep quality information of the user can be determined to be bad, and the corresponding relation of the time length of the user in bed, the time period of the time length of the user in bed and the corresponding sleep quality information can be set by the user or acquired from a network.
In addition, the sleep quality information of the user can be determined according to the time interval to which the time of the user getting out of the bed belongs, and the application is not limited.
The determination as to the length of time the user leaves the bed may be determined based on the preset total length of time, and the length of time the user is in the bed, for example: the difference between the preset total time length and the user in-bed time length is the user out-of-bed time length, and can be determined according to the following modes: if the duration time length of the change rule of the first pressure information, which does not accord with the preset rule, is longer than a second preset duration time, or the duration time length of the gravity corresponding to the first gravity information, which is smaller than the second preset gravity, is longer than the second preset duration time, the user is determined to be in a bed leaving state in the second preset duration time.
The second preset gravity may be less than or equal to the first preset gravity, the first preset gravity may be gravity information set by the user and equal to or similar to the weight of the user, and the first preset duration and the second preset duration may be set according to the user requirement.
In some optional embodiments of the present application, the method further comprises:
s1, if the power-on of the pressure sensor is detected or a starting instruction is acquired, acquiring second pressure information acquired by the pressure sensor;
s2, initializing gravity if the change range of the second pressure information in the third preset time period is smaller than the first preset range, so as to determine initial gravity information;
wherein the initial gravity information is used to determine the first gravity information.
Specifically, the steps S1 and S2 are performed before the step 101, and are used for determining first gravity information, where determining the first gravity information according to the target gravity information detected by the gravity sensor may include: and taking the difference value between the target gravity information and the initial gravity information as the first gravity information.
Further, a variation range of the second pressure information within the third preset time period being smaller than the first preset range indicates that the data of the pressure sensor (namely, the second pressure information) is in a stable state, and the pressure sensor does not detect vibration information (such as heartbeat information or breathing information); the user can indicate that no person is on the bed at the current moment within the third preset time period, namely, the user is in an off-bed state. The third preset time period may be 1 minute. The present application is not limited in this regard.
Optionally, before the step S2, the method further includes: and if the deformation information corresponding to the second pressure information at the current moment is smaller than the preset deformation range, triggering and executing the step S2.
In some optional embodiments of the present application, in the step S2, the "initializing the gravity, determining initial gravity information" includes:
S21, starting timing, and acquiring third pressure information acquired by the pressure sensor after starting timing;
s22, if the duration of the variation range of the third pressure information is continuously smaller than the second preset range and longer than the fourth preset duration, executing a step S23;
S23, ending timing and acquiring second gravity information acquired by the gravity sensor within the fourth preset time period;
And S24, determining the initial gravity information according to the second gravity information and the third gravity information acquired by the gravity sensor at the end time corresponding to the timing end.
Specifically, when the duration of the change range of the third pressure information is continuously smaller than the second preset range and is longer than the fourth preset duration, the user is indicated to be in the off-bed state continuously within the fourth preset duration, and the starting timing indicates that the weighing signal (gravity information) starts the initialization process, and the second preset range may be the same as the first preset range or smaller than the first preset range. The fourth preset time period may be 6 seconds. The second gravity information is all gravity information acquired by the gravity sensor within 6 seconds. Further, the end time corresponding to the end of the timing may be the last time when the pressure sensor collects the pressure information in the fourth preset time period, or the initial time when the pressure sensor collects the pressure information after the end of the fourth preset time period, which is not limited in the present application.
The collecting time of the pressure information collected by the pressure sensor and the gravity information collected by the gravity sensor can be the same, including the collecting period.
Optionally, in the foregoing step S24, "determining the initial gravity information according to the second gravity information and the third gravity information acquired by the gravity sensor at the end time corresponding to the end of the timing", includes:
S241, calculating average gravity information of the second gravity information in the fourth preset time period;
S242, calculating a difference value between the third gravity information and the average gravity information, and determining the initial gravity information by using the difference value.
Optionally, the difference between the third gravity information and the average gravity information is the initial gravity information, specifically, if the fourth preset duration is 6 seconds, the average value of the second gravity information in 6 seconds may be calculated, after the 6 seconds are finished, if the acquisition period of the gravity information acquired by the gravity sensor is 0.1 seconds, the third gravity information acquired by the gravity sensor in 0.1 seconds (i.e. from starting timing, the 6.1 seconds) is acquired after the 6 seconds are finished. The value of the initial gravity information is the difference between the value of the third gravity information at 6.1 seconds after starting the timer and the value of the average gravity information within 6 seconds. Ideally, the initial gravity information has a value of 0.
In the application, the process of initializing the gravity after determining that the user is in the off-bed state is to remove the gravity information of the bedding articles arranged on the bed detected by the gravity sensor when the user is in the off-bed state. Among other things, bedding articles may include a variety of articles such as: bedding, bedspread, quilts, covers, pillows, and the like. After the gravity is initialized, the initial gravity information is approximately 0, so that the first gravity information can directly reflect the weight borne by the current bed, whether the user is in the bed or not can be directly determined according to the relation between the first gravity information and the first preset gravity (the weight of the user) and the first pressure information, and the confirmation efficiency of determining whether the user is in the bed or not is improved.
Further, if the duration of the change range of the third pressure information, which is continuously smaller than the second preset range, is smaller than the fourth preset duration, the timing is stopped, the gravity is initialized again, and the initial gravity information is determined. After the initialization is started, the process of determining the initial gravity information is referred to in the foregoing, and will not be described herein.
In summary, when the initialization is not completed, it may be determined whether the user is in an out-of-bed state based on only the data of the pressure sensor. If the current initialization is complete, pressure information detected by the piezoelectric sensor, and gravitational information detected by the gravitational sensor may be used to determine if the user is in bed (see steps 101-103 for details).
In other optional embodiments of the present application, when the gravity corresponding to the first gravity information is less than the second preset gravity, it may also be determined that the user is out of bed directly.
Optionally, the method further comprises: and sending the sleep quality information to target equipment corresponding to the user.
Further, in the foregoing 103, the time period of the user in the bed may include time information of the user in the bed and time period information, and likewise, the time period of the user out of the bed may include time information of the user out of the bed and time period information.
According to the scheme of the application, besides the condition that the user is away from the bed is determined according to the data detected by the pressure sensor, gravity data is obtained through the gravity sensor side, and whether the user is in the bed or not is determined by combining the two key information of the pressure information and the gravity information, so that the anti-interference capability is improved, the technical effect of improving the accuracy of the detection result of the sleep quality is further achieved, and the method is suitable for a wider use environment.
Fig. 1b is a flow chart of a data processing method according to an exemplary embodiment of the present application, and the following is an example of an application scenario of the present solution with reference to fig. 1 b:
When the piezoelectric sensor is electrified or the processing device is started, judging the user's in-bed state through the piezoelectric sensor, specifically, if the pressure information (deformation information) currently detected by the pressure sensor is smaller than a preset pressure range, determining that the user is out of bed, otherwise, determining that the user is in bed;
After the user is determined to leave the bed, the timing can be started after 1 minute, the gravity information starts to initialize, if the pressure information is detected to be continuously and stably in 6 seconds, the average weighing value in 6 seconds and the weighing value after 6 seconds are obtained, the relative weighing value (namely the initial gravity information) is calculated according to the weighing data after 6 seconds and the average weighing value in 6 seconds, and the initialization is completed. If the duration of the continuous and stable pressure information is detected to be less than 6 seconds, namely the pressure information is unstable, the pressure information is disturbed in 6 seconds, the user is on the bed at the moment corresponding to the disturbance, the initialization is stopped, the timing is stopped, and the gravity information is initialized again; until the initialization is completed.
After the initialization is completed, the user is judged to be away from the bed by combining the pressure information and the gravity information together, and specifically, if the pressure information indicates that the user is in the bed (the change rule of the first pressure information accords with the preset rule) and the gravity information also indicates that the user is in the bed (the gravity corresponding to the first gravity information is greater than the first preset gravity), the user is determined to be in the bed. If the pressure information indicates that the user leaves the bed (the change rule of the first pressure information does not accord with the preset rule), or the gravity information indicates that the user leaves the bed (the gravity corresponding to the first gravity information is smaller than the second preset gravity), the user is determined to leave the bed.
The foregoing may be referred to in the related embodiments of the present embodiment, and will not be described herein.
FIG. 2 is a schematic diagram of a data processing system according to an exemplary embodiment of the present application; wherein the data processing system comprises: a detection device 21, a processing device 22; wherein the detecting means 21 comprises:
a pressure sensor 211 for acquiring first pressure information;
A gravity sensor 212 for acquiring target gravity information;
the processing device 22 is configured to obtain the first pressure information, and determine first gravity information according to the target gravity information; if the duration time length of the change rule of the first pressure information accords with the preset rule is longer than a first preset duration time, and the duration time length of the gravity corresponding to the first gravity information, which is longer than the first preset gravity, is longer than the first preset duration time, determining that the user is in a bed state in the first preset duration time;
determining sleep quality information of a user based on a time period of the user in a bed state;
When the change rule of the first pressure information is related to a preset signal change rule, the change rule of the first pressure information accords with the preset rule.
The processing device may be a user terminal or a device specially used for processing detection data of the pressure sensor and the gravity sensor, and may be disposed near the bed, and establish communication connection with the pressure sensor and the gravity sensor.
The foregoing may be referred to for related implementation of the constituent units in this embodiment of the system, and will not be described herein.
Fig. 3 is a schematic structural diagram of an electronic device according to an exemplary embodiment of the present application, including: a memory 31 and a processor 32; wherein,
The memory 31 is used for storing a program;
The processor 32 is coupled to the memory 31 for executing the program stored in the memory 31 for:
Acquiring first pressure information and first gravity information;
If the duration time length of the change rule of the first pressure information accords with the preset rule is longer than a first preset duration time, and the duration time length of the gravity corresponding to the first gravity information, which is longer than the first preset gravity, is longer than the first preset duration time, determining that the user is in a bed state in the first preset duration time;
determining sleep quality information of a user based on a time period of the user in a bed state;
When the change rule of the first pressure information is related to a preset signal change rule, the change rule of the first pressure information accords with the preset rule.
The memory 31 may be configured to store various other data to support operations on the electronic device. Examples of such data include instructions for any application or method operating on an electronic device. The memory 31 may be implemented by any type or combination of volatile or non-volatile memory devices, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The processor 32 may realize other functions in addition to the above functions when executing the program in the memory 31, and the above description of the embodiments can be specifically referred to.
Further, as shown in fig. 3, the electronic device further includes: a display 33, a power supply assembly 34, a communication assembly 35, and other components. Only some of the components are schematically shown in fig. 3, which does not mean that the electronic device comprises the components shown in fig. 3.
Fig. 4 is a schematic structural diagram of a data processing apparatus according to an exemplary embodiment of the present application, where the apparatus includes: an acquisition module 41, a first determination module 42 and a second determination module 43, wherein:
An acquisition module 41 for acquiring first pressure information, and first gravity information;
A first determining module 42, configured to determine that a user is in a bed state within a first preset duration if a duration of the change rule of the first pressure information conforming to the preset rule is longer than a first preset duration, and a duration of gravity corresponding to the first gravity information greater than a first preset gravity is longer than the first preset duration;
A second determining module 43, configured to determine sleep quality information of the user based on a time period during which the user is in a bed state;
When the change rule of the first pressure information is related to a preset signal change rule, the change rule of the first pressure information accords with the preset rule.
Optionally, the change rule of the first pressure information related to the preset signal change rule includes at least one of the following: the change rule of the amplitude of the pressure curve corresponding to the first pressure information is consistent with the amplitude change rule of the signal curve corresponding to the preset signal change rule; the variation period of the first pressure information is smaller than a preset threshold value, and the difference value of the variation period of the signal corresponding to a preset signal variation rule is smaller than a preset threshold value.
Optionally, if the duration time of the change rule of the first pressure information, which does not conform to the preset rule, is longer than a second preset duration time, or the duration time of the gravity corresponding to the first gravity information, which is smaller than the second preset gravity, is longer than the second preset duration time, the user is determined to be in an out-of-bed state within the second preset duration time.
Optionally, the above device is further configured to:
if the power-on of the pressure sensor is detected or a starting instruction is acquired, acquiring second pressure information acquired by the pressure sensor;
if the variation range of the second pressure information in the third preset time period is smaller than the first preset range, initializing the gravity to determine initial gravity information;
wherein the initial gravity information is used to determine the first gravity information.
The device is used for initializing the gravity and determining initial gravity information, and is particularly used for:
Starting timing, and acquiring third pressure information acquired by the pressure sensor after starting timing;
if the duration of the variation range of the third pressure information, which is continuously smaller than the second preset range, is longer than the fourth preset duration, then
Ending the timing and acquiring second gravity information acquired by the gravity sensor within the fourth preset time period;
And determining the initial gravity information according to the second gravity information and the third gravity information acquired by the gravity sensor at the end time corresponding to the timing end.
The device is specifically configured to, when determining the initial gravity information according to the second gravity information and the third gravity information acquired by the gravity sensor at the end time corresponding to the end of timing:
Calculating average gravity information of the second gravity information in the fourth preset time period;
and calculating a difference value between the third gravity information and the average gravity information, and determining the initial gravity information by using the difference value.
Optionally, the device is further configured to stop timing and reinitialize gravity if the duration of the change range of the third pressure information lasting less than the second preset range is less than the fourth preset duration, so as to determine the initial gravity information.
Optionally, the above device is further configured to: and sending the sleep quality information to target equipment corresponding to the user.
The foregoing may be referred to for a specific implementation of the embodiment of the present apparatus, which is not described herein.
Accordingly, the embodiments of the present application also provide a computer-readable storage medium storing a computer program capable of implementing the steps or functions of the data processing method provided in the above embodiments when the computer program is executed by a computer.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims (10)

1. A method of data processing, comprising:
Acquiring first pressure information and first gravity information;
If the duration time length of the change rule of the first pressure information accords with the preset rule is longer than a first preset duration time, and the duration time length of the gravity corresponding to the first gravity information, which is longer than the first preset gravity, is longer than the first preset duration time, determining that the user is in a bed state in the first preset duration time;
determining sleep quality information of a user based on a time period of the user in a bed state;
When the change rule of the first pressure information is related to a preset signal change rule, the change rule of the first pressure information accords with the preset rule;
The preset signal change rule may be a change rule of a change curve corresponding to a preset signal, and the change curve corresponding to the preset signal may be a curve related to human body characteristic information; the change rule of the first pressure information is related to a preset signal change rule and comprises at least one of the following steps: the change rule of the amplitude of the pressure curve corresponding to the first pressure information is consistent with the amplitude change rule of the signal curve corresponding to the preset signal change rule; the difference value of the change periods of the signals corresponding to the preset signal change rule is smaller than a preset threshold value;
the first pressure information change rule related to a preset signal change rule further includes: in the pressure curve corresponding to the first pressure information, the number of times that the wave crest value exceeds the preset wave crest value is the same as the number of times corresponding to the preset signal change rule or is larger than the number of times corresponding to the preset signal change rule.
2. The method of claim 1, wherein the first pressure information change rule is associated with a preset signal change rule comprising at least one of:
The change rule of the amplitude of the pressure curve corresponding to the first pressure information is consistent with the amplitude change rule of the signal curve corresponding to the preset signal change rule;
The variation period of the first pressure information is smaller than a preset threshold value, and the difference value of the variation period of the signal corresponding to a preset signal variation rule is smaller than a preset threshold value.
3. The method of claim 1, wherein if the duration of the change rule of the first pressure information does not conform to the preset rule is longer than a second preset duration, or if the duration of the gravity corresponding to the first gravity information is longer than the second preset duration, where the gravity corresponding to the first gravity information is smaller than the second preset gravity, is longer than the second preset duration, determining that the user is in an out-of-bed state within the second preset duration.
4. The method as recited in claim 1, further comprising:
if the power-on of the pressure sensor is detected or a starting instruction is acquired, acquiring second pressure information acquired by the pressure sensor;
if the variation range of the second pressure information in the third preset time period is smaller than the first preset range, initializing the gravity to determine initial gravity information;
wherein the initial gravity information is used to determine the first gravity information.
5. The method of claim 4, wherein initializing gravity and determining initial gravity information comprises:
Starting timing, and acquiring third pressure information acquired by the pressure sensor after starting timing;
if the duration of the variation range of the third pressure information, which is continuously smaller than the second preset range, is longer than the fourth preset duration, then
Ending the timing and acquiring second gravity information acquired by the gravity sensor within the fourth preset time length;
And determining the initial gravity information according to the second gravity information and the third gravity information acquired by the gravity sensor at the end time corresponding to the timing end.
6. The method of claim 5, wherein determining the initial gravity information from the second gravity information and third gravity information collected by the gravity sensor at an end time corresponding to a timing end comprises:
Calculating average gravity information of the second gravity information in the fourth preset time period;
and calculating a difference value between the third gravity information and the average gravity information, and determining the initial gravity information by using the difference value.
7. The method of claim 5, wherein if the range of variation of the third pressure information is continuously smaller than the second preset range for a duration smaller than the fourth preset duration, stopping timing, and re-initializing the gravity to determine the initial gravity information.
8. The method as recited in claim 1, further comprising: and sending the sleep quality information to target equipment corresponding to the user.
9. A data processing system, comprising: a detection device, a processing device; wherein, the detection device includes:
The pressure sensor is used for acquiring first pressure information;
the gravity sensor is used for collecting the target gravity information;
The processing device is used for acquiring the first pressure information and determining first gravity information according to the target gravity information; if the duration time length of the change rule of the first pressure information accords with the preset rule is longer than a first preset duration time, and the duration time length of the gravity corresponding to the first gravity information, which is longer than the first preset gravity, is longer than the first preset duration time, determining that the user is in a bed state in the first preset duration time;
determining sleep quality information of a user based on a time period of the user in a bed state;
When the change rule of the first pressure information is related to a preset signal change rule, the change rule of the first pressure information accords with the preset rule;
The preset signal change rule may be a change rule of a change curve corresponding to a preset signal, and the change curve corresponding to the preset signal may be a curve related to human body characteristic information; the change rule of the first pressure information is related to a preset signal change rule and comprises at least one of the following steps: the change rule of the amplitude of the pressure curve corresponding to the first pressure information is consistent with the amplitude change rule of the signal curve corresponding to the preset signal change rule; the difference value of the change periods of the signals corresponding to the preset signal change rule is smaller than a preset threshold value;
the first pressure information change rule related to a preset signal change rule further includes: in the pressure curve corresponding to the first pressure information, the number of times that the wave crest value exceeds the preset wave crest value is the same as the number of times corresponding to the preset signal change rule or is larger than the number of times corresponding to the preset signal change rule.
10. An electronic device, comprising: a memory and a processor; wherein,
The memory is used for storing programs;
The processor, coupled to the memory, is configured to execute the program stored in the memory for:
Acquiring first pressure information and first gravity information;
If the duration time length of the change rule of the first pressure information accords with the preset rule is longer than a first preset duration time, and the duration time length of the gravity corresponding to the first gravity information, which is longer than the first preset gravity, is longer than the first preset duration time, determining that the user is in a bed state in the first preset duration time;
determining sleep quality information of a user based on a time period of the user in a bed state;
When the change rule of the first pressure information is related to a preset signal change rule, the change rule of the first pressure information accords with the preset rule;
The preset signal change rule may be a change rule of a change curve corresponding to a preset signal, and the change curve corresponding to the preset signal may be a curve related to human body characteristic information; the change rule of the first pressure information is related to a preset signal change rule and comprises at least one of the following steps: the change rule of the amplitude of the pressure curve corresponding to the first pressure information is consistent with the amplitude change rule of the signal curve corresponding to the preset signal change rule; the difference value of the change periods of the signals corresponding to the preset signal change rule is smaller than a preset threshold value;
the first pressure information change rule related to a preset signal change rule further includes: in the pressure curve corresponding to the first pressure information, the number of times that the wave crest value exceeds the preset wave crest value is the same as the number of times corresponding to the preset signal change rule or is larger than the number of times corresponding to the preset signal change rule.
CN202011520799.9A 2020-12-21 2020-12-21 Data processing method, system and electronic equipment Active CN114451863B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011520799.9A CN114451863B (en) 2020-12-21 2020-12-21 Data processing method, system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011520799.9A CN114451863B (en) 2020-12-21 2020-12-21 Data processing method, system and electronic equipment

Publications (2)

Publication Number Publication Date
CN114451863A CN114451863A (en) 2022-05-10
CN114451863B true CN114451863B (en) 2024-04-30

Family

ID=81404148

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011520799.9A Active CN114451863B (en) 2020-12-21 2020-12-21 Data processing method, system and electronic equipment

Country Status (1)

Country Link
CN (1) CN114451863B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI809889B (en) * 2022-05-23 2023-07-21 矽統科技股份有限公司 Electronic wake-up device and wake-up method thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007020844A (en) * 2005-07-15 2007-02-01 Nippon Telegr & Teleph Corp <Ntt> Apparatus and method for detecting motion of leaving one's sickbed
CN105716196A (en) * 2015-11-04 2016-06-29 美的集团股份有限公司 Control system and method of air conditioner
CN107951470A (en) * 2017-12-12 2018-04-24 深圳市迈迪加科技发展有限公司 Sleep signal processing method and processing device
CN108055607A (en) * 2017-12-13 2018-05-18 深圳职业技术学院 Intelligent sleep bidirectional monitoring earphone
CN110464564A (en) * 2019-09-19 2019-11-19 陈浩 A kind of intelligent double serviced bed board system based on automatic detection and remote analysis
CN111083864A (en) * 2019-12-31 2020-04-28 杨铭轲 Illumination method and illumination device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007020844A (en) * 2005-07-15 2007-02-01 Nippon Telegr & Teleph Corp <Ntt> Apparatus and method for detecting motion of leaving one's sickbed
CN105716196A (en) * 2015-11-04 2016-06-29 美的集团股份有限公司 Control system and method of air conditioner
CN107951470A (en) * 2017-12-12 2018-04-24 深圳市迈迪加科技发展有限公司 Sleep signal processing method and processing device
CN108055607A (en) * 2017-12-13 2018-05-18 深圳职业技术学院 Intelligent sleep bidirectional monitoring earphone
CN110464564A (en) * 2019-09-19 2019-11-19 陈浩 A kind of intelligent double serviced bed board system based on automatic detection and remote analysis
CN111083864A (en) * 2019-12-31 2020-04-28 杨铭轲 Illumination method and illumination device

Also Published As

Publication number Publication date
CN114451863A (en) 2022-05-10

Similar Documents

Publication Publication Date Title
JP6283407B2 (en) Contextual heart rate monitoring
JP5427350B2 (en) Trend prediction device and trend prediction system
CA2056370C (en) Sleep detecting apparatus
JP6129327B2 (en) Measurement of psychological stress from cardiovascular and activity signals
EP1740266B1 (en) Detection of diastolic heart failure
US9173613B2 (en) Method of autonomously monitoring the movement activity of a fetus
CN114451863B (en) Data processing method, system and electronic equipment
RU2016125502A (en) DEVICE FOR SLEEP CONTROL
JP2007516815A5 (en)
CA2503856A1 (en) Electrosurgical generator and method for cross-checking output power
US11734405B2 (en) Biometric data capturing and analysis
CN109541984B (en) Clothes solarization degree control algorithm suitable for intelligent clothes hanger
JP2006507866A5 (en)
US20170257929A1 (en) Control method of information terminal apparatus provided with vibration sensor
CN104905779A (en) Method and system for sleep reminding based on mobile terminal and mobile terminal
JP6385470B2 (en) Device, system and computer program for detecting the health condition of a subject
JP4806237B2 (en) Sleep state estimation method, system and operation program thereof
JP6373014B2 (en) Diagnosis support apparatus, change information output method, and program
CN113576419B (en) Method and device for determining sleep time of user
TW201342048A (en) Server and method of recording environment parameters thereof
JP7279812B2 (en) STRESS ESTIMATION DEVICE, OPERATION METHOD OF STRESS ESTIMATION DEVICE, AND PROGRAM
CN115770001A (en) Tableware placing control method and system, placing equipment, electronic equipment and medium
US20200151461A1 (en) Resident activity recognition system and method thereof
CN113520306A (en) Human sleep state monitoring method and intelligent household device
US20210401243A1 (en) Drying system, information processing apparatus, and non-temporary storage medium

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
GR01 Patent grant