CN112924007B - Weight measurement method based on target sleep - Google Patents

Weight measurement method based on target sleep Download PDF

Info

Publication number
CN112924007B
CN112924007B CN202110074124.4A CN202110074124A CN112924007B CN 112924007 B CN112924007 B CN 112924007B CN 202110074124 A CN202110074124 A CN 202110074124A CN 112924007 B CN112924007 B CN 112924007B
Authority
CN
China
Prior art keywords
weight
steady state
sleep
time
bed
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
CN202110074124.4A
Other languages
Chinese (zh)
Other versions
CN112924007A (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.)
Chongqing Huohoucao Technology Co ltd
Original Assignee
Chongqing Huohoucao 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 Chongqing Huohoucao Technology Co ltd filed Critical Chongqing Huohoucao Technology Co ltd
Priority to CN202110074124.4A priority Critical patent/CN112924007B/en
Publication of CN112924007A publication Critical patent/CN112924007A/en
Application granted granted Critical
Publication of CN112924007B publication Critical patent/CN112924007B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01GWEIGHING
    • G01G19/00Weighing apparatus or methods adapted for special purposes not provided for in the preceding groups
    • G01G19/44Weighing apparatus or methods adapted for special purposes not provided for in the preceding groups for weighing persons
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01GWEIGHING
    • G01G19/00Weighing apparatus or methods adapted for special purposes not provided for in the preceding groups
    • G01G19/44Weighing apparatus or methods adapted for special purposes not provided for in the preceding groups for weighing persons
    • G01G19/445Weighing apparatus or methods adapted for special purposes not provided for in the preceding groups for weighing persons in a horizontal position
    • GPHYSICS
    • G01MEASURING; TESTING
    • G01GWEIGHING
    • G01G19/00Weighing apparatus or methods adapted for special purposes not provided for in the preceding groups
    • G01G19/52Weighing apparatus combined with other objects, e.g. furniture

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)

Abstract

The invention discloses a weight measuring method based on target sleep, which is characterized in that a plurality of pressure sensors are arranged under a bed, and the duration of a measuring time interval is determined; and after a measuring time interval is finished, selecting one-time sleep as target sleep, and calculating the time interval weight of the user in the measuring time interval by using the steady state weight value of a certain steady state or a plurality of steady states in the target sleep. According to the invention, the steady state with low reliability is removed by selecting the target sleep method, and the selection range of the steady state is narrowed, so that the steady state with high reliability can be extracted, and further the weight value capable of representing the actual weight of the user is obtained, and accurate weight data is provided for basic health monitoring.

Description

Weight measurement method based on target sleep
Technical Field
The invention relates to the field of basic health monitoring, in particular to a weight measurement method based on target sleep.
Background
The accuracy of a conventional electronic scale is generally 0.1kg, at which the reading is relatively easy to stabilize, and once stabilized, the electronic scale outputs the reading to a display screen as if only one value is read. In fact, the readings obtained by weighing the body weight using any electronic weighing device are a sequence and not a single value. Since basic health monitoring needs to acquire high-precision weight data of a user so as to analyze and monitor health status, generally, a high-precision pressure sensor with the weight below 10g is used, measurement of the pressure sensor is a dynamic process, as long as certain precision is achieved, slight disturbance can generate reading difference, and if measurement is performed once per second, different readings can be generated per second, so that the weight data is difficult to stabilize, for example, the length of time of the user in a bed is 8 hours, that is, the length of time of 8 × 60 × 60 is 28800 seconds, and 28800 weighing readings can be generated; it is difficult to determine which weighing data can more accurately reflect the actual weight of the user.
Additionally, the movement of the person in bed, such as: the reading of the pressure sensor is influenced when people get on the bed, get off the bed, turn over and the like, and large instantaneous fluctuation occurs; some behavioral habits of the user, such as whether to take the mobile phone, glasses, bedding, clothes and the like up and down, can also disturb the reading. If these effects are not eliminated, the measured weight values are distorted significantly.
Disclosure of Invention
The invention aims to provide a weight measurement method based on target sleep.
The technical scheme of the invention is as follows:
a method of weight measurement based on target sleep comprising the steps of:
step S1, a plurality of pressure sensors are provided under the bed, and each pressure sensor is spaced by a first preset time T. Testing primary pressure, converting the pressure into weight, defining a total reading A to represent the sum of the reading values of all pressure sensors, and predefining an empty bed reading B to represent the total reading in an empty bed state; defining the instantaneous body weight W-A-B measured at each measurement moment;
step S2, determining the duration of a measuring period, and determining the reference weight W of the user in the measuring period r
Step S3, after a measuring time interval is finished, judging whether a main sleep exists in the measuring time interval, wherein the main sleep judging method is to preset a main sleep time threshold value, and judging the sleep with the total sleep time length being more than or equal to the main sleep time threshold value as the main sleep, if so, executing the step S4, otherwise, executing the step S5;
step S4, selecting one-time main sleep as target sleep, and executing step S6;
step S5, selecting the sleep with the longest steady state duration in the measurement period as the target sleep, and executing step S6;
step S6, defining steady state body weight W C Representing the weight value of the user during steady state, defining the weight W of the user during a period of time Z Representing the body weight value measured by the user during a measurement period, using the steady state body weight W of a certain steady state or a plurality of steady states in the target sleep C The value of (A) calculates the weight W of the user during the measurement period Z
Further, a time threshold for getting on and off the bed is set in advance, and if the user gets out of the bed during sleep but gets on the bed again within the time threshold for getting on and off the bed, the user counts one sleep before and after.
Further, when the time of leaving the bed of the user in a measurement period is smaller than the time threshold of getting on or off the bed, the steady state time length is taken as the sleep time length to judge the main sleep and the target sleep, and the values of the main sleep time threshold and the time threshold of getting on or off the bed are reduced.
Further, for the sleep spanning two measurement periods, when calculating the sleep time length, the sleep is divided into a front part and a rear part according to the measurement period, if the time length of the front part is more than that of the rear part, the sleep is counted into the statistics of the front measurement period, and if the time length of the front part is less than or equal to that of the rear part, the sleep is counted into the statistics of the rear measurement period.
Further, after the target sleep is selected, if the target sleep comprises multiple stages of steady states, all the steady states in the target sleep are ranked from high to low according to the confidence level C, and the steady state weight W of the stage of steady state with the highest confidence level C is selected C As the user's weight W during the last measurement period Z And a reference weight W for the current measurement period r (ii) a Or calculating the steady state weight W of the first several steady states ranked by the confidence C C As the user's weight W during the last measurement period Z And a reference weight W for the current measurement period r
Further, determining the steady state body weight W C The method comprises the following steps:
step S101, judging whether the measuring time is in an empty bed state or not according to the value of the weight W after each measurement, and returning to continue to execute the step S101 if the measuring time is in the empty bed state; if the bed is in the state, executing step S102;
step S102, defining the starting time as a certain measuring time of the pressure sensor and the length as uT 0 The time period of (1) is a long time window, wherein u is a natural number, whether the instantaneous weight W in the long time window with the current measurement time as the end time is in a stable state or not is judged, if the instantaneous weight W in the long time window is in the stable state, the current state is judged to be in the stable state, and the step S103 is executed, otherwise, the step S101 is executed;
step S103, judging whether the steady state is finished or not, and executing step S104 if the steady state is finished; otherwise, returning to continue executing step S103;
step S104, determining the steady state weight W of the user in the steady state period according to the value of the instantaneous weight W measured at a certain measuring time or a plurality of measuring times in the steady state period C
Further, in the step S102, the moment in the long time window is determinedThe method for judging whether the body weight W is in a stable state comprises the following steps: defining the standard deviation of all instantaneous weight W values recorded over a long time window as σ TWC Setting a long steady state standard deviation threshold delta 1 When a long time window ends, if σ of the long time window TWC ≤δ 1 Judging that the instantaneous weight W in the long time window is in a stable state; if σ TWC >δ 1 Then, the instantaneous weight W in the long time window is determined to be in an unstable state.
Further, a confidence level for each steady state is calculated at the end of the steady state, wherein the confidence level for the steady state is indicative of the steady state body weight W measured in the steady state C The confidence level of (C) is recorded as a steady-state confidence level C; after the end of the measurement period, determining the weight W of the user during the measurement period Z The method comprises ranking the steady states in the measurement period according to the confidence of the steady state, and taking the weight W of one or more steady states during the steady state according to the ranking C Determining the weight W of the user during the measurement period Z
Further, the method for calculating the steady-state confidence coefficient C includes: defining a reference weight confidence C r Shows the steady state body weight W according to the steady state C And a reference body weight W r The smaller the difference is, the reference weight confidence C r The higher; defining an eccentricity confidence C b Representing the confidence coefficient obtained by the eccentricity of the stress action point of the total load of the user after getting on the bed, deviating from the geometric center of the bed, wherein the smaller the eccentricity is, the higher the eccentricity confidence coefficient C is b The higher; defining a steady state duration confidence C h Representing the confidence coefficient obtained from the steady state duration, the longer the steady state duration, the confidence coefficient C of the steady state duration h The higher; use of C r 、C b 、C h 、C r ×C h 、C r ×C b 、C b ×C h Or C r ×C b ×C h As the steady state confidence C.
Further, in the step S2, the reference weight W of the user in the measurement period is determined r The method comprises the following steps: for a first measuring period, a weight value is presetAs reference body weight W r (ii) a For a second measurement period, reference body weight W r The calculated user's time-interval body weight W for the first measurement time interval Z For the third and subsequent measurement periods, the body weight W is determined in accordance with the periods of two measurement periods preceding the measurement period Z The formed trend line determines the reference body weight W r
Has the advantages that: according to the invention, the steady state with low reliability is removed by selecting the target sleep method, and the selection range of the steady state is narrowed, so that the steady state with high reliability can be extracted, and further the weight value capable of representing the actual weight of the user is obtained, and accurate weight data is provided for basic health monitoring.
Drawings
FIG. 1 is a flow chart of a preferred embodiment of a method for weight measurement based on target sleep according to the present invention;
FIG. 2 is a respective graph of reference body weight confidence for a reference body weight of 80Kg using a normal distribution;
fig. 3 is a schematic diagram of the force condition of the bed plate when four pressure sensors are used.
Detailed Description
In order to make the technical solutions in the embodiments of the present invention better understood and make the above objects, features and advantages of the embodiments of the present invention more comprehensible, the technical solutions in the embodiments of the present invention are described in further detail below with reference to the accompanying drawings.
In the description of the present invention, unless otherwise specified and limited, it is to be noted that the term "connected" is to be interpreted broadly, and may be, for example, a mechanical connection or an electrical connection, or a communication between two elements, or may be a direct connection or an indirect connection through an intermediate medium, and a specific meaning of the term may be understood by those skilled in the art according to specific situations. In addition, for convenience of description, the units of "weight", "force" and "load" in this application are in terms of mass and in units of g.
As shown in fig. 1, a preferred embodiment of the weight measuring method based on target sleep of the present invention comprises the following steps:
step S1, arranging a plurality of pressure sensors under the bed, wherein each pressure sensor is spaced for a first preset time T 0 Testing primary pressure and converting the pressure into weight, preferably arranging a pressure sensor under each of four bed feet of the bed for a first preset time T 0 Preferably 1s, of course, the first preset time T 0 Other values may also be set; defining a total reading A to represent the sum of the reading values of the pressure sensors, and a predefined empty bed reading B to represent the total reading in an empty bed state, wherein the value of the empty bed reading B can be modified and corrected in the measuring process; the instantaneous body weight W measured at each measurement instant is defined as a-B.
Step S2, determining the duration of a measuring period, and determining the reference weight W of the user in the measuring period r . For statistical purposes, a measurement period of 24 hours is typically set, and a measurement period of 12:00:00 pm on each day to 11:59:59 pm on the next day is preferably selected.
Body weight W in defined time interval Z Representing the weight value measured by the user in the measuring time interval, and determining the reference weight W of the user in the measuring time interval r The method comprises the following steps: for a first measurement period, a weight value is preset as a reference weight W r (ii) a For a second measurement period, reference body weight W r The calculated user's time-interval body weight W for the first measurement time interval Z For the third and subsequent measurement periods, the body weight W is determined from the periods of the previous two measurement periods Z The formed trend line determines the reference body weight W r (ii) a For example, the body weight W during a second measurement period when the measurement period is preceded by Z 60.1KG, the body weight W of the first measurement period preceding the measurement period Z At 60KG, the reference weight W of the measurement period is set r Three replicates were aligned at 59.9 KG. Of course, for the second and subsequent measurement periods, the reference body weight W can also be determined from the mean or median of the preceding measurement periods r (ii) a That is, the reference body weight W for the second to mth measurement periods r For all before the measurement periodBody weight W of a measurement session Z For the (m +1) th and subsequent measurement periods, the reference body weight W r The body weight W of a period m measurement periods before the measurement period Z Average or median of. m is a natural number greater than 2, for example, when m is 5, the period weight W of 5 measurement periods before the measurement period (all measurement periods before the measurement period when less than 5 measurement periods before the measurement period) is set Z The mean or median of (1) is the reference body weight W of the measurement period r To reduce the influence of an abnormality in a measurement value in a certain measurement period on a subsequent measurement period.
Step S3, after a measurement time period ends, determining whether there is a main sleep in the measurement time period, if there is a main sleep, executing step S4, otherwise, executing step S5.
The method for judging the main sleep comprises the steps of presetting a main sleep time threshold, judging the sleep with the total sleep time length being more than or equal to the main sleep time threshold as the main sleep, if a user leaves the bed in the middle of the sleep, but gets into the bed again in the time threshold of getting into the bed and getting out of the bed, counting the time for one sleep before and after, not counting the time for two times, and regarding a common user, the total time length of getting into the bed (namely the time length of the bed in the in-bed state) can be used as the total sleep time length; the values of the main sleep time threshold and the time thresholds for getting on and off the bed can be set and adjusted according to actual conditions; for example, the main sleep time threshold may be set to 3h, and the time threshold for getting on or off bed may be set to 30 min.
Step S4, selecting one-time main sleep as target sleep, and executing step S6;
step S5, selecting the sleep with the longest steady state duration in the measurement period as the target sleep, and executing step S6;
step S6, defining steady state body weight W C Representing the weight value of the user during steady state, defining the weight W of the user during a period of time Z Representing the weight value measured by the user in a measurement time interval, sequencing all steady states in the measurement time interval according to the confidence coefficient of the steady states, and selecting the steady state weight W with the highest confidence coefficient in the bed state C Or steady state body weight W of the first few ranked C As the time period weight W of the user Z Steady state body weight W C The instantaneous weight W measured at any measurement time in the steady state may be taken, or the average value of the instantaneous weights W measured at all measurement times in the steady state may be taken, and preferably the instantaneous weight W measured at the end time of the steady state is taken as the steady state weight W C . In addition, one-time main sleep can be selected as the target sleep in the measurement period, if the main sleep does not exist, one-time sleep with the longest steady state duration in the measurement period is selected as the target sleep, and the steady state weight W in the target sleep is used C Daily reference body weight W is carried out r And (4) calculating.
The following special cases may exist:
(1) when the sleep spanning the time point of 12:00:00 at noon (namely the sleep spanning two measurement periods) is calculated, the sleep is divided into a part before 12:00:00 and a part after 12:00:00, if the time length of the former part is longer than that of the latter part, the sleep is counted as the statistics of the previous day, and if the time length of the former part is less than or equal to that of the latter part, the sleep is counted as the statistics of the latter day; therefore, as long as the time length of the latter part exceeds the former part, the sleep report statistics of the previous day can be started without waiting until the end of the sleep.
(2) For a user who is in bed for a long time, because the time of leaving the bed is often less than half an hour, the condition of sleeping for one time cannot be divided in the 24-hour time which is specified by people, the user is marked as long-term lying in bed, then the main sleeping time and the target sleeping time are marked based on the steady state time instead of the time of being in bed and the time of falling asleep, and the values of the main sleeping time threshold value and the time threshold values of getting on and off the bed for judging the main sleeping time are reduced; for example, a main sleep time threshold value of 30min and a time threshold value of getting on or off bed of 1min can be set; of course, the specific value can be adjusted according to the actual situation.
After the target sleep is selected, if the target sleep comprises multiple stages of steady states, all the steady states in the target sleep are sorted from high to low according to the confidence level C, and the steady states are taken and placedSteady state body weight W of a segment of steady state with highest confidence C C As the user's weight W during the last measurement session Z And a reference weight W for the current measurement period r (ii) a Of course, the steady state body weight W of the first several steady states with the confidence C ranking can also be calculated C As the average value of the user's weight W in the last measurement period Z And a reference weight W for the current measurement period r
After the measuring time period is finished, the sleep quality of the user in the measuring time period can be evaluated according to indexes such as the sleep times, the sleep duration and abnormal quiet events in the sleep process in the measuring time period; and can be based on the weight W of each previous measurement period Z The change condition and the sleep quality condition of the user are evaluated.
Determining the Steady State body weight W C The method comprises the following steps:
step S101, after each measurement, judging whether the measurement time is in an empty bed state or not according to the value of the measured instantaneous weight W, and if the measurement time is in the empty bed state, returning to continue to execute the step S101; if in-bed state, step S102 is performed.
In the present embodiment, the method of determining whether the empty bed state is present is: defining the starting moment as a certain measuring moment of the pressure sensor and the length as vT 0 The time period of (1) is a short time window, wherein v is a natural number less than u, whether the short time window taking the current measurement time as the end time is in a stable state or not is judged, if the short time window is in the stable state, the average value or the median of the instantaneous body weight W in the short time window is taken as the measured body weight W of the measurement time 1 Comparing the measured body weight W 1 Is less than the empty bed threshold value, if the measured body weight W 1 If the value of (A) is less than the empty bed threshold value, judging that the measurement moment is in an empty bed state; otherwise, it is determined to be in bed. Since the measurement accuracy of the pressure sensor is 10g or less (about 7g), the empty bed threshold value may be set to 10g, but may be set to other values such as 15g and 20 g.
The method for judging whether the short time window is in a stable state comprises the following steps: defining the standard deviation of all instantaneous weight W values recorded within a short time window as σ TWD Setting a short steady state standard deviation threshold delta 0 When a short time window ends, if σ of the short time window TWD ≤δ 0 Judging that the instantaneous weight W in the short time window is in a stable state; if σ TWD >δ 0 Then, the instantaneous weight W in the short time window is determined to be in an unstable state.
During the steady state of the empty bed condition, each pressure sensor is calibrated once every second preset time, preferably 30 minutes, although the second preset time may be set to other values. In the present embodiment, the calibration method is to use the value of the total reading a currently measured (i.e., the average or median of the total readings at each measurement time within a short time window in which the current measurement time is the end time) as the value of the empty bed reading B, and to measure the weight W at that measurement time 1 The value of (d) is 0. The influence of temperature change on the pressure sensor can be reduced through calibration, and the measurement precision is improved.
Step S102, defining the starting time as a certain measuring time of the pressure sensor and the length as uT 0 The time period of (a) is a long time window, where u is a natural number, preferably u is 60 (i.e., uT) 0 1 minute) of the measurement time, whether the instantaneous weight W within a long time window having the current measurement time as the end time is in a steady state or not is judged, if the instantaneous weight W within the long time window is in a steady state, it is judged that the instantaneous weight W is in a steady state currently, and step S103 is executed, and if the instantaneous weight W within the long time window is in an unsteady state, step S101 is executed.
The method for judging whether the instantaneous weight W in the long time window is in a stable state comprises the following steps: defining the standard deviation of all instantaneous weight W values recorded over a long time window as σ TWC Setting a long steady state standard deviation threshold delta 1 When a long time window ends, if σ of the long time window YWC ≤δ 1 Judging that the instantaneous weight W in the long time window is in a stable state; if σ TWC >δ 1 Then, the instantaneous weight W in the long time window is judged to be in an unstable stateState.
The steady state is defined as: if the long time window of the stable state is included between two adjacent long time windows of the unstable state, the duration of the long time window of the stable state between the two adjacent long time windows of the unstable state is defined as a stable state.
In this embodiment, the time of the ith measurement is defined as t i I is a natural number; defining a starting time t i Has a long time window TW i Defining the starting time as t i+1 Has a long time window TW i+1 If the long time window TW i For non-steady state, the long time window TW i+1 In steady state, the slave long time window TW is considered i+1 At a starting time t i+1 Begins to enter a steady state, t i+1 A start time defined as a steady state; if long time window TW i ~TW i+k All are in steady state, k is a natural number, and the long time window TW i+k+1 If the state is unstable, the long time window TW is considered i+k End time (t) i+k +uT 0 ) End of steady state, will (t) i+k +uT 0 ) Defined as the end time of the steady state.
Step S103, judging whether the steady state is finished or not, and executing step S104 if the steady state is finished; otherwise, the process returns to step S103.
Step S104, defining steady state body weight W C Representing the weight value of the user in the steady state period, and determining the steady state weight W of the user in the steady state period according to the instantaneous weight W measured at a certain measuring moment or a plurality of measuring moments in the steady state period C For example, the value of the instantaneous weight W at the steady-state end time may be set as the steady-state weight W during the steady state C The average value of the instantaneous body weights W at all the measurement times during the steady state period may be used as the steady state body weight W during the steady state period C (ii) a The confidence of the steady state is calculated, and the execution returns to step S3.
Defining a Steady State confidence C representing the Steady State body weight W tested in Steady State C The method for calculating the steady-state confidence coefficient C comprises the following steps: defining a reference weight confidence C r Indicating a steady state body according to the steady stateHeavy W C And a reference body weight W r The smaller the difference is, the reference weight confidence C r The higher; defining an eccentricity confidence C b Representing the confidence coefficient obtained by the eccentricity of the stress action point of the total load of the user after getting on the bed, deviating from the geometric center of the bed, wherein the smaller the eccentricity is, the higher the eccentricity confidence coefficient C is b The higher; defining a steady state duration confidence C h Representing the confidence coefficient obtained from the steady state duration, the longer the steady state duration, the confidence coefficient C of the steady state duration h The higher; use of C r 、C b 、C h 、C r ×C h 、C r ×C b 、C b ×C h Or C r ×C b ×C h As the steady-state confidence C, it is preferable to use C r ×C b ×C h As the steady state confidence C.
1. Method for calculating confidence of steady-state duration
The confidence of the steady state duration is determined by the duration of the steady state, specifically, the duration of the steady state is calculated by subtracting the start time of the steady state from the end time of the steady state, for example, the long time window of the first steady state in the steady state is TW i+1 The last steady state long time window is TW i+K Then the steady state duration is: t is t i+K +uT 0 -t i+1 =(u+k-1)T 0 . Then manually setting a standard value T of the expected steady state duration A This value can be updated iteratively, so that in theory its initial value can be arbitrarily specified, e.g. T can be specified A 1 h; selecting one with T A For statistical distribution of expected values, which is a time interval based statistic, we temporarily choose exponential distribution according to general experience, although other distributions can be chosen.
For a random variable X, if an exponential distribution is followed, it is written as X to Exp (λ), and its cumulative distribution function can be expressed as:
Figure BDA0002905602230000131
wherein,the independent variable x is the time length of a certain period of steady state, and the lambda expresses the frequency of the occurrence of non-steady-state events in unit time and defines T A Is the desired value of the steady-state time duration, i.e. the standard value of the desired steady-state time duration, λ is 1/T A
In the present system, the argument x is the duration T of a certain steady state N And λ is the frequency of occurrence of an unsteady state event per unit time. The purpose of using this function is to calculate the cumulative sum of the probabilities of non-steady-state events occurring in all time periods less than a certain time period, i.e. the cumulative distribution function, as our steady-state time period confidence function, thus giving the time period T of any one steady state N The confidence of the steady state duration under a certain expected condition is marked as C h This is equivalent to giving a confidence score of 1 score for full score, the higher the score, C h The higher. C h Is the same as the cumulative distribution function, namely:
Figure BDA0002905602230000132
wherein λ is 1/T A ,x=T N
The expected value T needs to be specified in advance before calculation A E.g. an expected value T specifying the distribution A 1h (i.e. only 1 non-steady state event occurs within 1 hour), the steady state duration T can be derived from the functional expression N And steady state duration confidence C h The value correspondence of (a) is shown in table 1:
TABLE 1 Steady-State duration and Steady-State duration confidence degree correspondence Table (T) A =1h)
x=T N 0.1 0.2 0.3 0.4 0.5 0.6
F X (x)=C h 0.0952 0.1813 0.2592 0.3297 0.3935 0.4512
x=T N 0.7 0.8 0.9 1.0 1.1 1.2
F X (x)=C h 0.5034 0.5507 0.5934 0.6321 0.6671 0.6988
x=T N 1.3 1.4 1.5 1.6 1.7 1.8
F X (x)=C h 0.7275 0.7534 0.7769 0.7981 0.8173 0.8347
x=T N 1.9 2.0 2.1 2.2 2.3 2.4
F X (x)=C h 0.8504 0.8647 0.8775 0.8892 0.8997 0.9093
x=T N 2.5 2.6 2.7 2.8 2.9 3.0
F X (x)=C h 0.9179 0.9257 0.9328 0.9392 0.9450 0.9502
Looking up a table, when the steady-state time length TN is 1h, the confidence coefficient C of the steady-state time length h 0.6321, when the steady state time period T N At 0.5h, the confidence coefficient C of the steady state duration h Is 0.3935.
Steady state duration confidence C h Mainly used for combining with the reference weight confidence coefficient and the eccentricity confidence coefficient and obtaining the steady state weight W under each steady state of the same sleep C Compared with the degree of closeness of the actual body weight, therefore, if the set expected value T is found in the actual operation of the system A Too high (it is difficult for a person to achieve a steady state of up to 1h during sleep) and thus the score is too low, especially after the three confidences are combined, the value of the steady state confidence number C is too small, 0 after the decimal point is too large to be observed, and the expectation value T can be adjusted down properly A For example, specifying the expected value T A When 0.5h, the steady state duration T N And steady state duration confidence C h The relationship of (A) is shown in Table 2:
TABLE 2 Steady-State duration and Steady-State duration confidence level mapping Table (T) A =0.5h)
Figure BDA0002905602230000141
Figure BDA0002905602230000151
Thus, the steady state duration T N At 0.5h, the confidence coefficient C of the steady state duration h 0.6321, steady state duration T N At 1h, the confidence coefficient C of the steady state duration h Reaching 0.8647.
2. Calculation method of reference weight confidence
The reference weight confidence coefficient is determined by the steady state weight W of the steady state C And a reference body weight W r Is determined if the last weight value of a person was W i In the absence of any additional disturbance (e.g. eating or defecation), it is clear that the result obtained is, with respect to confidence, the weight value to be weighed next time equal to W i The time confidence is definitely better than the weight value of (W) i 1kg), the weight value of the next weighing is (W) i 1kg) is definitely better than the value of body weight (W) i 2kg), and so on, that is, the closer the weight value of the next weighing is to W i The more trusted it is, and the less trusted it is otherwise. In practical application, we refer to the weight W r As a basis for the calculation to estimate the steady state body weight W C Confidence of (2), i.e. reference body weight confidence, denoted C r
In this embodiment, the reference weight confidence level C is characterized by the probability of the non-confidence interval of the normal distribution function r . The specific calculation method is as follows:
if the random variable X follows a normal distribution with a position parameter (mean) of μ and a scale parameter (standard deviation) of σ, its probability density can be expressed as:
Figure BDA0002905602230000152
where x is the argument of the probability density distribution function. Defining the probability that a random event X deviates from μ by less than or equal to X as P (X ≦ X), the cumulative distribution function may be expressed as:
Figure BDA0002905602230000161
let mu be W r I.e. with reference body weight W r As the mean μ of a normal distribution; standard deviation sigma is body weight standard deviation sigma r In this case, the standard deviation σ of body weight is first specified r The value of (a), which can be empirically specified when first measured r An initial value of (1); sigma r Is not appropriate or relevant, and the standard deviation sigma of the body weight can be measured according to the statistical condition of historical data in the subsequent measurement r Is iteratively updated.
For any X, consider the probability that random event X deviates from μ by more than X, i.e., when X < μ, the probability of X < X is P (X < X, and X ≧ 2 μ -X); when X ≧ μ, this probability is P (X < 2 μ -X, and X ≧ X). The range of X in parentheses is the confidence interval for X (as opposed to the confidence interval normally used, as illustrated, the system focuses on the dark shaded portion), and the corresponding P is the probability that X falls within this confidence interval, known as the confidence level.
P (X < X, and X ≧ 2 μ -X) ═ 2f (X) when X < μ;
when X is not less than mu, P (X < 2 mu-X, and X not less than X) is 2[1-F (X) ].
Similarly, for any steady state body weight W C Instantaneous body weight W at any measurement instant deviates from W r To an extent exceeding W C Deviation W r Is (i.e. W falls within the range of W) C And W r Probability of a defined non-confidence interval), i.e., reflects W C The confidence level of this reading, which is the reference weight confidence C r Is strictly defined. Namely:
W C <W r time, reference weight confidence C r Expressed as:
Figure BDA0002905602230000171
W C ≥W r time, reference weight confidence C r Expressed as:
Figure BDA0002905602230000172
wherein x ═ W c ,μ=W r ,σ=σ r
Examples are as follows: the weight fluctuation of an adult within one day is that + -1% of his total body weight is very normal, nor is + -2% rare, but more than + -3% is rare. According to the definition of normal distribution,. mu. +. 2. sigma r The probability of occurrence of an internal event is about 0.9545, and we can tentatively assign a + -3% offset level of + -2 σ r Then for a reference weight W r 2 sigma for an adult of 80kg r 80 × 3% ═ 2.4, i.e.,. sigma. r 1.2 kg. The results of this calculation are shown in table 3: TABLE 3 confidence degree correspondence table between measured body weight and reference body weight
x=W 76.2 76.4 76.6 76.8 77.0 77.2 77.4 77.6
C r =P 0.1133 0.1336 0.1566 0.1824 0.2113 0.2433 0.2787 0.3173
x=W 77.8 78.0 78.2 78.4 78.6 78.8 79.0 79.2
C r =P 0.3593 0.4047 0.4533 0.5050 0.5597 0.6171 0.6769 0.7389
x=W 79.4 79.6 79.8 80.0 80.2 80.4 80.6 80.8
C r =P 0.8026 0.8676 0.9336 1.0000 0.9336 0.8676 0.8026 0.7389
x=W 81.0 81.2 81.4 81.6 81.8 82.0 82.2 82.4
C r =P 0.6769 0.6171 0.5597 0.5050 0.4533 0.4047 0.3593 0.3173
x=W 82.6 82.8 83.0 83.2 83.4 83.6 83.8 84.0
C r =P 0.2787 0.2433 0.2113 0.1824 0.1566 0.1336 0.1133 0.0956
As shown in FIG. 2, the dark shaded portion is the steady state body weight W C Exceed (W) r ±2σ r ) Range (i.e. W) C > 82.4kg or W C < 77.6kg) of body weight. And by using normal distribution calculation, the deviation degrees of the two are the same, the directions are opposite, and the confidence degrees are the same. Of course, since W C ≥W r Confidence of time is higher than W C <W r The confidence of the time, therefore, the reference weight confidence C can be calculated by adjusting the normal distribution to the skewed distribution r
3. Method for calculating eccentricity confidence
The eccentricity confidence coefficient is determined by the eccentricity deviating from the geometric center of the bed according to the stress action point of the total load of the user after getting on the bed, and the following description takes the example that 1 pressure sensor is respectively arranged on four bed legs of the bed; defining the measurement values of four pressure sensors, namely absolute outputs of A1, A2, A3 and A4; defining the measurement values of the four pressure sensors in an empty bed state, namely reference outputs of the four pressure sensors are B1, B2, B3 and B4 respectively; the pressure value increased by a single pressure sensor in the bed state relative to the empty bed state is defined as the reading of the pressure sensor, and is respectively marked as I1, I2, I3 and I4, I1-A1-B1, I2-A2-B2, I3-A3-B3 and I4-A4-B4; the stress condition of the bed board is shown in figure 3.
Assuming that the bed plate is an ideal rectangle, the gravity center of the bed plate is the geometric center of the bed plate, and the pressure sensors are accurately installed at the four corners of the bed plate, a rectangular plane coordinate system as shown in fig. 3 can be set to use the action point (x) of I3 3 ,y 3 ) As origin, the point of action of I3 and the point of action of I4 (x) 4 ,y 4 ) The line is the x-axis, the action point of I3 and the action point of I1 (x) 1 ,y 1 ) The connecting line is a y-axis, and the coordinate of the action point of I2 is (x) 2 ,y 2 ) Then x is 3 =x 1 =0,y 3 =y 4 =0,(x c ,y c ) Is the geometric center of the bed board.
Similar to the calculation method of the reference weight confidence coefficient, the total load F at any time of the steady state is taken as the total load F of the steady state according to the cumulative distribution function calculation formula of normal distribution 0 Preferably, the total load F at the end of the steady state is taken as F 0 Let the coordinate of the point of application of force be (x) 0 ,y 0 ) Let x be the argument of the probability density distribution function 0 The abscissa of the point of application of force of the total load F at any measurement instant deviates from x c To an extent exceeding x 0 Deviation x c Is determined (i.e. the abscissa component of the point of action of the total load F falls by x) 0 And x c Probability of a defined non-confidence interval), i.e. reflecting F 0 The confidence level due to its eccentricity, which is the eccentricity confidence C b Is strictly defined.
According to the stress balance and the moment balance respectively taking the x axis and the y axis as rotating shafts, the united vertical type can be obtained:
Figure BDA0002905602230000191
due to x 2 =x 4 ,y 1 =y 2 And is easy to obtain:
Figure BDA0002905602230000192
Figure BDA0002905602230000193
coordinate point (x) 0 ,y 0 ) Deviated from the geometric center (x) of the bed board c ,y c ) The distance of (c) may be referred to as eccentricity. However, in general, the behavior of a person in bed is mainly a sideways flip around a line in the direction of the short side, or approximately parallel to the long side, so that in general we only need to care about the eccentricity in the direction of the short side, neglecting the eccentricity in the direction of the long side, and the total eccentricity. Then, if the x-axis direction of the abscissa is the short side of the bed, we only need to care about the eccentricity in this direction. (Note: the x-axis direction of the abscissa in the example graph is more like the long side due to perspective reasons.)
The eccentricity confidence is intuitively seen, namely the more the person leans to the middle of the bed, the more reliable the weighing reading is, and the closer to the bed side, the more unreliable the weighing reading is.
Of course, in practical applications, the pressure may be transmitted through the bed legs, the bed legs may not be exactly located at the four corners of the bed, the four stress points may not be in an ideal rectangle, but the interference caused by these factors is negligible, and for a system in which four bed legs are distributed in a nearly rectangular shape, the distance between the bed legs can be calculated according to the above formula as long as the distance is known.
For the condition that n bed legs are arranged on n pressure sensors, n is a natural number larger than 3, calculation can be carried out by the same method as long as a plane rectangular coordinate system is established and the horizontal coordinate and the vertical coordinate of each pressure sensor are determined, and the stress expression is as follows:
Figure BDA0002905602230000201
the calculation yields:
Figure BDA0002905602230000202
Figure BDA0002905602230000203
where Ii denotes the pressure value of the ith pressure sensor increased in the bed state relative to the empty bed state, x i Denotes the abscissa, y, of the ith pressure sensor i The ordinate of the i-th pressure sensor is indicated.
When only the eccentricity in the x-axis direction of the abscissa is considered, the eccentricity confidence coefficient C can be obtained b The calculation method of (c) is as follows:
x 0 <x c time, eccentricity confidence C b Is shown as
Figure BDA0002905602230000204
x 0 ≥x c Time, eccentricity confidence C b Is shown as
Figure BDA0002905602230000211
Wherein σ b As the standard deviation of eccentricity in the x-axis direction of the abscissa, σ can be empirically specified at the time of the first measurement b An initial value of (1); sigma b Is not appropriate or relevant, and the eccentricity standard deviation sigma can be measured later according to the statistical condition of historical data b And performing iterative updating.
The undescribed parts of the present invention are consistent with the prior art, and are not described herein.
The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all equivalent structures made by using the contents of the present specification and the drawings can be directly or indirectly applied to other related technical fields, and are within the scope of the present invention.

Claims (7)

1. A weight measurement method based on target sleep is characterized by comprising the following steps:
step S1, arranging a plurality of pressure sensors under the bed, wherein each pressure sensor is spaced for a first preset time T 0 Testing primary pressure, converting the pressure into weight, defining a total reading A to represent the sum of the reading values of all pressure sensors, and predefining an empty bed reading B to represent the total reading in an empty bed state; defining the instantaneous body weight W-A-B measured at each measurement moment;
step S2, determining the duration of a measuring period, and determining the reference weight W of the user in the measuring period r
Step S3, after a measuring time interval is finished, judging whether a main sleep exists in the measuring time interval, wherein the main sleep judging method is to preset a main sleep time threshold value, and judging the sleep with the total sleep time length being more than or equal to the main sleep time threshold value as the main sleep, if so, executing the step S4, otherwise, executing the step S5;
step S4, selecting one-time main sleep as target sleep, and executing step S6;
step S5, selecting the sleep with the longest steady state duration in the measuring time interval as the target sleep, and executing step S6; the steady state determination method comprises the following steps: defining the starting time as a certain measuring time of the pressure sensor and the length as uT 0 The time period of (1) is a long time window, wherein u is a natural number, whether the instantaneous weight W in the long time window taking the current measurement time as the end time is in a stable state or not is judged, and if the instantaneous weight W in the long time window is in the stable state, the current state is judged to be in a stable state; the method for judging whether the instantaneous weight W in the long time window is in a stable state comprises the following steps: defining the standard deviation of all instantaneous weight W values recorded over a long time window as σ TWC Setting a long steady state standard deviation threshold delta 1 When a long time window ends, if σ of the long time window TWC ≤δ 1 Judging that the instantaneous weight W in the long time window is in a stable state; if σ TWC >δ 1 Judging that the instantaneous weight W in the long time window is in an unstable state;
step S6, defining steady state body weight W C Representing the weight value of the user during steady state, defining the weight W of the user during a period of time Z Representing the body weight value measured by the user during a measurement period, using the steady state body weight W of a certain steady state or a plurality of steady states in the target sleep C The value of (A) calculates the weight W of the user during the measurement period Z (ii) a The method comprises the following steps:
defining a reference weight confidence C r Shows the steady state body weight W according to the steady state C And a reference body weight W r The smaller the difference is, the reference weight confidence C r The higher; defining an eccentricity confidence C b Representing the confidence coefficient obtained by the eccentricity of the stress action point of the total load of the user after getting on the bed, deviating from the geometric center of the bed, wherein the smaller the eccentricity is, the higher the eccentricity confidence coefficient C is b The higher; defining a steady state duration confidence C h Representing the confidence coefficient obtained from the steady state duration, the longer the steady state duration, the confidence coefficient C of the steady state duration h The higher; use of C r 、C b 、C h 、C r ×C h 、C r ×C b 、C b ×C h Or C r ×C b ×C h As a steady state confidence C; if the target sleep comprises multiple stages of steady states, all the steady states in the target sleep are ranked from high to low according to the confidence level C, and the steady state weight W of one stage of steady state with the highest confidence level C is taken C As the user's weight W during the last measurement period Z (ii) a Or calculating the steady state weight W of the first several steady states ranked by the confidence C C As the average value of the user's weight W in the last measurement period Z
2. The method for measuring body weight based on target sleep according to claim 1, wherein the time thresholds for getting on and off the bed are set in advance, and when the user gets out of the bed during sleep and gets on the bed again within the time thresholds for getting on and off the bed, the user counts a sleep before and after.
3. The method of claim 2, wherein when the time taken for the user to get out of bed in a measurement period is less than the time threshold for getting in or out of bed, the steady-state duration is used as the sleep duration to determine the main sleep and the target sleep, and the values of the time threshold for the main sleep and the time threshold for getting in or out of bed are decreased.
4. The method of claim 1, wherein the sleep time length is calculated for the sleep spanning two measurement periods, the sleep is divided into two parts, i.e., a front part and a rear part according to the measurement periods, if the time length of the front part is longer than that of the rear part, the sleep is counted as the statistics of the previous measurement period, and if the time length of the front part is less than or equal to that of the rear part, the sleep is counted as the statistics of the rear measurement period.
5. The method of claim 1, wherein after the target sleep is selected, if the target sleep includes multiple stages of homeostasis, all the homeostasis in the target sleep is ranked from high to low with confidence level C, and the steady state weight W of the stage with highest confidence level C is selected C As a reference weight W of the user during the current measurement period r (ii) a Or calculating the steady state weight W of the first several steady states ranked by the confidence C C As the reference weight W of the user during the current measurement period r
6. The sleep goal-based weight measurement method of claim 1, wherein a steady state weight Wt is determined C The method comprises the following steps:
step S101, judging whether the measuring time is in an empty bed state or not according to the value of the weight W after each measurement, and returning to continue to execute the step S101 if the measuring time is in the empty bed state; if the bed is in the state, executing step S102;
step S102, judging whether the current state is a steady state or not, if so, executing step S103, otherwise, returning to execute step S101;
step S103, judging whether the steady state is finished or not, and executing step S104 if the steady state is finished; otherwise, returning to continue executing step S103;
step S104, determining the steady state weight W of the user in the steady state period according to the value of the instantaneous weight W measured at a certain measuring time or a plurality of measuring times in the steady state period C
7. The sleep-targeted weight measurement method according to claim 1, wherein in the step S2, the reference weight W of the user during the measurement period is determined r The method comprises the following steps: for a first measurement period, a weight value is preset as a reference weight W r (ii) a For a second measurement period, reference body weight W r The calculated user's time-interval body weight W for the first measurement time interval Z For the third and subsequent measurement periods, the body weight W is determined in accordance with the periods of time two measurement periods before the measurement period Z The formed trend line determines the reference body weight W r
CN202110074124.4A 2021-01-19 2021-01-19 Weight measurement method based on target sleep Active CN112924007B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110074124.4A CN112924007B (en) 2021-01-19 2021-01-19 Weight measurement method based on target sleep

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110074124.4A CN112924007B (en) 2021-01-19 2021-01-19 Weight measurement method based on target sleep

Publications (2)

Publication Number Publication Date
CN112924007A CN112924007A (en) 2021-06-08
CN112924007B true CN112924007B (en) 2022-08-05

Family

ID=76164455

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110074124.4A Active CN112924007B (en) 2021-01-19 2021-01-19 Weight measurement method based on target sleep

Country Status (1)

Country Link
CN (1) CN112924007B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113514140A (en) * 2021-06-30 2021-10-19 北京三快在线科技有限公司 Electronic scale, weight detection method and device for target object and storage medium
CN114027792B (en) * 2021-11-09 2024-04-09 重庆火后草科技有限公司 A method for detecting metabolic rate during sleep based on linear correlation coefficient interference elimination
CN113974567B (en) * 2021-11-09 2024-03-26 重庆火后草科技有限公司 How to calculate metabolic rate during sleep
CN113974568B (en) * 2021-11-09 2024-03-26 重庆火后草科技有限公司 Slope interference-free method for calculating metabolic rate of sleep process
CN118464170B (en) * 2024-07-15 2024-09-24 爱梦睡眠(珠海)智能科技有限公司 Weight measurement method and device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103381123A (en) * 2013-06-13 2013-11-06 厚福医疗装备有限公司 High-precision dynamic weighing sickbed system and automatic control method thereof

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6536056B1 (en) * 1996-11-18 2003-03-25 John H. Vrzalik Bariatric treatment system and related methods
WO2007148638A1 (en) * 2006-06-19 2007-12-27 Showa Denko K.K. Method of detecting presence of subject on bed
JP2008057988A (en) * 2006-08-29 2008-03-13 Tanita Corp Digital weighing scale
JP5017021B2 (en) * 2007-08-24 2012-09-05 株式会社タニタ Sleep measuring device
JP2010181377A (en) * 2009-02-09 2010-08-19 Omron Healthcare Co Ltd Device, method and program for controlling body weight
JP5389916B2 (en) * 2009-06-11 2014-01-15 パラマウントベッド株式会社 Bed equipment
CN102078184A (en) * 2010-12-31 2011-06-01 深圳清华大学研究院 Method for monitoring body position by using weighing bed and weighing bed
DE102011118998A1 (en) * 2011-11-14 2013-05-16 Seca Ag Method and device for determining the body weight of a person
US9383250B2 (en) * 2012-11-05 2016-07-05 Hill-Rom Services, Inc. Automatic weight offset calculation for bed scale systems
JP6241079B2 (en) * 2013-06-03 2017-12-06 アイシン精機株式会社 Weight measuring device
JP2017077404A (en) * 2015-10-21 2017-04-27 富士通株式会社 Measuring apparatus, measuring method, and measuring program
CN106725327A (en) * 2016-12-28 2017-05-31 天津众阳科技有限公司 Based on dormant sleep quality computational methods
CN112082633A (en) * 2020-09-11 2020-12-15 深圳市双佳医疗科技有限公司 Weight measuring method for stabilizing weight value under human body shaking condition

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103381123A (en) * 2013-06-13 2013-11-06 厚福医疗装备有限公司 High-precision dynamic weighing sickbed system and automatic control method thereof

Also Published As

Publication number Publication date
CN112924007A (en) 2021-06-08

Similar Documents

Publication Publication Date Title
CN112924007B (en) Weight measurement method based on target sleep
CN112891098B (en) Body weight measuring method for health monitor
CN112914883B (en) Method for measuring weight value in sleep state through eccentricity confidence
CN112914884B (en) Method for measuring weight value in sleep state through steady-state duration confidence
TWI378330B (en) Statistical method and system for monitoring parameters in an electric power distribution system
CN1057177C (en) Synchronization circuit using a high speed digital slip counter
US20110137583A1 (en) Method and apparatus for enhancing in-situ gas flow measurement performance
CN110849459B (en) Creep deformation correction method for weighing sensor
CN116800334A (en) A data synchronization transmission optimization method and system based on simulated optical fiber communication
CN112462846A (en) Clock correction method, clock correction device, computer equipment and storage medium
JPH10274555A (en) Electronic weighing instrument
CN116719220B (en) RTC device time synchronization methods and systems
CN114910150B (en) Calibration method and device of capacitive weight sensor, intelligent pad and storage medium
Yao et al. JY1 time scale: a new Kalman-filter time scale designed at NIST
CN114027792B (en) A method for detecting metabolic rate during sleep based on linear correlation coefficient interference elimination
CN111184932B (en) Method for detecting air leakage of respiratory support equipment and respiratory support equipment
US11796381B1 (en) Weight verification and tare process for scale
CN113974568B (en) Slope interference-free method for calculating metabolic rate of sleep process
CN117348686A (en) Clock signal temperature drift correction method, circuit, chip and electronic equipment
CN110133383A (en) Noise Sensitivity Coefficient Measurement Method Based on Noise Correlation
CN103575982B (en) A kind of real-time frequency Analysis on Stability method
JP6733415B2 (en) Frequency counters and field devices
TWI484142B (en) A multi-sensing element correction system, a correction method and a recording medium
TWI614510B (en) Humidity sensor calibration method
CN113974567B (en) How to calculate metabolic rate during sleep

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