A method and device for measuring weight

By setting up a pressure detector and a deep learning model on the smart mattress, collecting and analyzing the bed foot and bed surface pressure data, identifying the sleeping posture and identity of the target object, and calculating its weight, the problem of low weight measurement accuracy of smart mattresses is solved. problems, improving the reliability of health monitoring and user privacy protection.

CN118464170BActive Publication Date: 2024-09-24HUIZHOU SERTA IND CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410940805.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-15
Publication Date
2024-09-24
Estimated Expiration
2044-07-15

AI Technical Summary

Technical Problem

Existing smart mattresses have problems with low accuracy and measurement errors during the weight measurement process. In particular, the sensor measurement values ​​are easily affected by the user's posture and external interference, resulting in inaccurate measurement results.

Method used

By setting pressure detectors at the foot and surface of the bed, the pressure data of the bed foot and the bed surface pressure map data are collected to detect the stable state of the bed, obtain the position information and sleeping posture of the target object, and combine the deep learning model to identify identity information and calculate the center of gravity. Position and bed foot weight, binding weight information and identity information.

Benefits of technology

It improves the accuracy of weight measurement and the reliability of health monitoring, reduces the user's reliance on inputting identity information, protects user privacy, and avoids weight measurement errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118464170B
    Figure CN118464170B
Patent Text Reader

Abstract

The present invention discloses a weight measurement method and device, including: collecting pressure data of each bed foot and bed surface pressure map data of a target measurement bed; based on the bed foot pressure data, detecting the stable state of the target measurement bed, and determining the target bed foot pressure data corresponding to each bed foot when the target measurement bed is in a stable state; based on the bed foot pressure data and bed surface pressure map data, detecting the target object's in-bed state; when the target object is in the bed state and in a stable state, obtaining the position information and sleeping posture of the target object, and when the sleeping posture is a preset sleeping posture, obtaining the target object's identity information; based on the position information and the target bed foot pressure data, obtaining the target object's center of gravity position and the measured weight of each bed foot, based on the distance between the center of gravity position and each bed foot and the measured weight of each bed foot, obtaining the target object's weight information, and binding the weight information with the identity information. The measurement accuracy and reliability can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of smart home technology, and in particular to a weight measurement method, device, computer equipment and storage medium. Background Art

[0002] With the development of intelligent mattresses, the functions of smart mattresses are becoming more and more powerful. Some mattresses have realized the monitoring of physiological parameter data (weight, heart rate, breathing, body movement, etc.) and some customized functions (specific head of bed tilt angle, foot of bed tilt angle, massage mode, etc.). However, in the process of weight measurement, there is still the problem of how to improve the accuracy of weight measurement.

[0003] Currently, common weight measurement schemes are mainly based on a single sensor and based on multiple sensors. The above-mentioned single sensor mainly refers to a measuring device with only one sensor. Weight fitting is performed by applying pressure on the sensor to achieve weight measurement. This type of method is relatively simple to implement and low cost, but the accuracy is relatively low. The method based on multiple sensors usually includes multiple sensors of different types and multiple sensors of the same type. The most common of these is a weight scale equipped with multiple pressure sensors. The final weight value can be obtained by summing the measurement values ​​of each sensor. However, since the sensor measurement value is easily affected by factors such as the user's current posture and position, measurement errors occur. In addition, the pressure sensor is easily affected by external interference during the measurement process, resulting in measurement differences. For example, when the position moves during the measurement process, the measurement data fluctuates, making the measurement result inaccurate. There is room for improvement. Summary of the invention

[0004] Based on this, it is necessary to provide a weight measurement method, device, computer equipment and storage medium to address the above technical issues, so as to solve at least one problem existing in the above-mentioned prior art.

[0005] In a first aspect, a weight measurement method is provided, comprising the following steps:

[0006] Collect the pressure data of each bed foot and bed surface pressure map data of the target measurement bed;

[0007] Based on the bed foot pressure data, the stable state of the target measurement bed is detected, and the target bed foot pressure data corresponding to each bed foot when the target measurement bed is in a stable state is determined;

[0008] Based on the bed foot pressure data and the bed surface pressure map data, detecting the target object's out-of-bed state;

[0009] When the target object is in bed and the target measurement bed is in a stable state, obtaining the position information and sleeping posture of the target object, and when the sleeping posture is a preset sleeping posture, obtaining the identity information of the target object;

[0010] Based on the position information and the target bed foot pressure data, the center of gravity position of the target object and the measured weight of each bed foot are obtained. Based on the distance between the center of gravity position and each bed foot and the measured weight of each bed foot, the weight information of the target object is obtained, and the weight information is bound to the user identity information.

[0011] In a second aspect, a weight measuring device is provided, comprising:

[0012] A data acquisition unit, used to collect the pressure data of each bed foot of the target measurement bed and the bed surface pressure map data;

[0013] A stable state detection unit, configured to detect the stable state of the target measurement bed based on the bed foot pressure data, and determine target bed foot pressure data corresponding to each bed foot when the target measurement bed is in a stable state;

[0014] In the bed leaving state detection unit, it is used to detect the bed leaving state of the target object based on the bed foot pressure data and the bed surface pressure map data;

[0015] an information acquisition unit, for acquiring the position information and sleeping posture of the target object when the target object is in bed and the target measurement bed is in a stable state, and acquiring the identity information of the target object when the sleeping posture is a preset sleeping posture;

[0016] A weight measurement unit is used to obtain the center of gravity position of the target object and the measured weight of each bed foot based on the position information and the target bed foot pressure data, obtain the weight information of the target object based on the distance between the center of gravity position and each bed foot and the measured weight of each bed foot, and bind the weight information with the user identity information.

[0017] In a third aspect, a computer device is provided, comprising a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, wherein the processor implements the steps of the weight measurement method as described above when executing the computer-readable instructions.

[0018] In a fourth aspect, a readable storage medium is provided, wherein the readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the steps of the weight measurement method as described above are implemented.

[0019] The above-mentioned weight measurement method, device, computer equipment and storage medium, the method implementation of which includes: collecting pressure data of each bed foot and bed surface pressure map data of the target measurement bed; based on the bed foot pressure data, detecting the stable state of the target measurement bed, and determining the target bed foot pressure data corresponding to each bed foot when the target measurement bed is in a stable state; based on the bed foot pressure data and bed surface pressure map data, detecting the target object's out-of-bed state; when the target object is in the bed state and the target measurement bed is in a stable state, obtaining the position information and sleeping posture of the target object, and when the sleeping posture is a preset sleeping posture, obtaining the identity information of the target object; based on the position information and the target bed foot pressure data, obtaining the center of gravity position of the target object and the measured weight of each bed foot, based on the distance between the center of gravity position and each bed foot and the measured weight of each bed foot, obtaining the weight information of the target object, and binding the weight information with the user identity information. In an embodiment of the present application, by setting a pressure detector at the foot of the measuring bed and setting a pressure blanket on the bed surface, the pressure data of the bed foot and the bed surface pressure map data can be collected in real time to obtain the center of gravity position of the user, and the pressure data of the bed foot in a stable state when the user is in bed and out of bed can be obtained to obtain the weight measured at each bed foot, and then the user's weight information is obtained based on the center of gravity position and the weight measured at each bed foot, which can effectively improve the accuracy of weight measurement and improve the reliability of health monitoring. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments of the present invention will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0021] Figure 1 is a flow chart of a weight measurement method according to an embodiment of the present invention;

[0022] Figure 2 It is a schematic structural diagram of a bed foot pressure measuring device of a target measurement bed in one embodiment of the present invention;

[0023] Figure 3 It is a structural schematic diagram of a bed surface pressure measuring device of a target measurement bed in one embodiment of the present invention;

[0024] Figure 4 is a schematic diagram of the framework structure of a first deep learning model in one embodiment of the present invention;

[0025] Figure 5 is a schematic structural diagram of the area where the target object is located in different sleeping positions in one embodiment of the present invention;

[0026] Figure 6 It is a schematic diagram of the structure of key nodes of a human body in a supine position according to an embodiment of the present invention;

[0027] Figure 7 is a schematic diagram of a connection structure between characteristic nodes of a human body in a supine state according to an embodiment of the present invention;

[0028] Figure 8 is a schematic diagram of the framework structure of a first deep learning model in one embodiment of the present invention;

[0029] Fig. 9 is a structural schematic diagram of a weight measuring device in one embodiment of the present invention;

[0030] Fig.10 is a schematic diagram of a computer device in one embodiment of the present invention. DETAILED DESCRIPTION

[0031] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0032] In one embodiment, if Figure 1 As shown, a weight measurement method implementation process is provided, including the following steps:

[0033] In step S110, the pressure data of each bed foot and the bed surface pressure map data of the target measurement bed are collected;

[0034] See also Figure 2 , Figure 3 In an embodiment of the present application, the target measurement bed may include multiple bed legs, and a pressure measuring device, such as a pressure sensor, may be provided at each bed leg. Taking four bed legs as an example, a pressure measuring device, such as S11, S12, S13 and S14, is provided at each bed leg position, respectively, for respectively collecting pressure data of pressure changes caused by changes in the weight on the target measurement bed. And a pressure measuring device S15 is provided on the bed surface of the target measurement bed, that is, on the side where the user lies, and the S15 may be a pressure blanket, or a pressure detection array formed by multiple pressure sensors, and the pressure detection array may include a pressure measuring device arranged horizontally and / or vertically, for collecting bed surface pressure data to form pressure map data.

[0035] Among them, a plurality of pressure sensors are arranged in an array on the pressure blanket, for example, arranged horizontally and / or vertically. When a target object, such as a user, lies on the pressure blanket, a pressure distribution image of the user on the pressure blanket can be obtained through the pressure change state of the pressure sensor.

[0036] It can be understood that the target measurement bed can be a single bed or a double bed. When it is a double bed, a central support foot can be set at the position of the central axis of the target measurement bed, and a pressure measuring device can also be set on the central support foot to improve the accuracy of the pressure detection data.

[0037] In step S120, based on the bed foot pressure data, the stable state of the target measurement bed is detected, and the target bed foot pressure data corresponding to each bed foot when the target measurement bed is in a stable state is determined;

[0038] In an embodiment of the present application, by acquiring the pressure data of each bed foot in real time, the weight change of the target measurement bed is determined. If the target measurement bed remains unchanged within a preset time range, it can be considered that the target measurement bed is in a stable state.

[0039] Among them, the target bed foot pressure data may include the pressure data of each bed foot when the user is in bed, for example, the user is lying on the target measurement bed, and there is no pressure change on the target measurement bed within a certain time range; and the pressure data of each bed foot when the user is out of bed, for example, the user leaves the target measurement bed, and there is no pressure change on the target measurement bed within a certain time range.

[0040] In step S130, based on the bed foot pressure data and the bed surface pressure map data, the target object is detected in the out-of-bed state;

[0041] The in-bed and out-of-bed state may include an in-bed state and an out-of-bed state, that is, a state in which the target object is on the target measurement bed, and a state in which the target object leaves the target measurement bed.

[0042] It can be understood that the target object may be a human body or other objects, such as animals, etc., and may include one or more.

[0043] In an embodiment of the present application, a pressure change state is obtained based on the pressure data at the foot of the bed. Based on the pressure change state, when a large weight change occurs in the target measurement bed, it is determined that the target object is still in bed when the weight change occurs by measuring the ratio of the compressed area to the overall area of ​​the pressure blanket in the pressure graph data and the physiological signal fluctuations in the respiratory frequency band. For example, when the compressed area accounts for more than 5% of the overall area of ​​the pressure blanket and there are physiological signal fluctuations in the respiratory frequency band, it can be considered that the target object is still in bed.

[0044] In step S140, when the target object is in bed and the target measurement bed is in a stable state, the position information and sleeping posture of the target object are obtained, and when the sleeping posture is a preset sleeping posture, the identity information of the target object is obtained;

[0045] In an embodiment of the present application, when it is detected that the target object is in bed, the pressure data of the bed foot within a preset time period can be obtained. If the pressure data of the bed foot does not undergo a large pressure change, it can be considered that the target measurement bed is in a stable state, that is, the target object is in bed, and the target measurement bed is in a stable state.

[0046] In an embodiment of the present application, the pressure map data can be input into a pre-trained deep learning model for prediction to obtain the position information of the target object on the target measurement bed. The position information may include the horizontal coordinate information, vertical coordinate information, height information and width information of the detection frame of the target object, etc., and the detection frame area information of the target object can be extracted based on the horizontal coordinate information, vertical coordinate information, height information and width information of the detection frame of the target object.

[0047] It can be understood that the pre-trained deep learning model can also obtain the current number of target objects on the target measurement bed and the sleeping position of the target objects. When the number of target objects is one, subsequent weight measurements can be continued to avoid the problem of incorrect detection due to the detected weight being used as the weight of any target object when there are multiple people or other items on the bed.

[0048] Through this sleeping posture, it is possible to detect whether the target object's current sleeping posture is supine or prone. If so, the features of the target object can be further extracted through a pre-trained deep learning model and compared one by one with the pre-stored user identities. When the match is consistent, the identity information of the target object can be determined and stored together with the subsequently measured weight, thereby avoiding the problem of associating the weight of user A with that of user B. There is no need for the user to enter identity information, and user privacy can be protected to a certain extent.

[0049] Specifically, see Figure 4The overall framework structure of the pre-trained deep learning model may specifically include 3 convolutional layers and 2 fully connected layers, where Conv represents the convolutional layer, and its specific operations include three steps: Conv2d (convolution), BN (batch normalization), and ReLU (activation). K5 represents the convolution kernel size of 5*5, K3 represents the convolution kernel size of 3*3, s2 represents the step size of 2, s1 represents the step size of 1, p1 represents the padded maxpooling, c16 represents the number of convolution kernels of 16, c32 represents the number of convolution kernels of 32, c64 represents the number of convolution kernels of 64, and 32*16*32 represents the number and form of the output parameters of this layer. The fully connected layer has an output dimension of 11, which includes location information, such as the horizontal and vertical coordinates of the user center point, the width and height of the user box, and the probability of sleeping posture types, such as supine, prone, left trunk, left fetus, right trunk, right fetus, and others. Examples of common sleeping posture types and corresponding labels are as follows: Figure 5 As shown, the label value can be obtained by manual annotation. Figure 5 The types of sleeping positions from left to right and from top to bottom are supine, right tree position, right fetal position, left tree position, left fetal position, prone, double supine, double side-lying, one side-lying and one side-lying.

[0050] It is understandable that the target measurement bed may be used by one person, two people, multiple people, objects placed on the bed, and combinations thereof. To improve the accuracy of weight measurement, the number, location, and sleeping posture of the target objects may be detected. The objects may include pets.

[0051] In step S150, based on the position information and the target bed foot pressure data, the center of gravity position of the target object and the measured weight of each bed foot are obtained, and based on the distance between the center of gravity position and each bed foot and the measured weight of each bed foot, the weight information of the target object is obtained, and the weight information is bound to the user identity information.

[0052] In the embodiment of the present application, the location information may include the horizontal coordinate, vertical coordinate, width of the user frame, and height of the user frame where the user center point is located. The horizontal coordinate, vertical coordinate, width of the user frame, and height of the user frame where the user center point is located can be used to obtain the area where the user is located. Figure 5 In the rectangular frame area shown, at this time, the pressure value of each point in the pressure map of the user's area can be determined, the pressure value of each point is Gaussian filtered and then the sum is calculated, and then the position of the center of gravity of the target object is obtained based on the sum.

[0053] Furthermore, the measured weight of each bed foot can be calculated through the target bed foot pressure data of each bed foot, and then the measured weight of each bed foot is weighted according to the distance between the center of gravity position and each bed foot, and the weighted measured weights of each bed foot are summed to obtain the weight information of the target object.

[0054] In an embodiment of the present application, a health check report can be generated and sent to the user based on the weight information and user identity information stored within a preset time period. The health check report can display the user's weight fluctuations and generate a corresponding weight adjustment plan, such as weight gain, weight loss or maintenance. The user can also execute the weight plan and determine whether the weight plan for this stage is completed through the health check report so as to make corresponding plan adjustments.

[0055] An embodiment of the present application provides a weight measurement method, including: collecting pressure data of each bed foot and bed surface pressure map data of a target measurement bed; based on the bed foot pressure data, detecting the stable state of the target measurement bed, and determining the target bed foot pressure data corresponding to each bed foot when the target measurement bed is in a stable state; based on the bed foot pressure data and bed surface pressure map data, detecting the out-of-bed state of the target object; when the target object is in the in-bed state and the target measurement bed is in a stable state, obtaining the position information and sleeping posture of the target object, and when the sleeping posture is a preset sleeping posture, obtaining the identity information of the target object; based on the position information and the target bed foot pressure data, obtaining the center of gravity position of the target object and the measured weight of each bed foot, and based on the distance between the center of gravity position and each bed foot and the measured weight of each bed foot, obtaining the weight information of the target object, and binding the weight information with the user identity information. In an embodiment of the present application, by setting a pressure detector at the foot of the measuring bed and setting a pressure blanket on the bed surface, the pressure data of the bed foot and the bed surface pressure map data can be collected in real time to obtain the center of gravity position of the user, and the pressure data of the bed foot in a stable state when the user is in bed and out of bed can be obtained to obtain the weight measured at each bed foot, and then the user's weight information is obtained based on the center of gravity position and the weight measured at each bed foot, which can effectively improve the accuracy of weight measurement and improve the reliability of health monitoring.

[0056] In an embodiment of the present application, the obtaining the identity information of the target object includes:

[0057] Based on the bed surface pressure map data, obtaining the location information of the key feature nodes of the target object through a target deep learning model;

[0058] Based on the location information of the key feature nodes, the distances between the target key feature nodes are calculated to form a feature array;

[0059] When the degree of matching between the feature array and the feature array of the pre-stored user is greater than a preset matching threshold, the identity information of the target object is determined.

[0060] Wherein, based on the bed surface pressure map data, obtaining the location information of the key feature nodes of the target object through the target deep learning model includes:

[0061] Inputting the bed surface pressure map data into a first deep learning model for processing to obtain the sleeping posture of the target object;

[0062] When the target object's sleeping posture is supine or prone, the position information of the key feature nodes of the target object is obtained through the second deep learning model.

[0063] It is understandable that when the target object is in bed and the target measurement bed is in a stable state, the position information of the target object and the user identity information can be obtained simultaneously, and the user identity information is bound and stored with the weight information of the target object obtained by subsequent measurement.

[0064] The target deep learning model may include a first deep learning model and a second deep learning model. The first deep learning model may be used to obtain the number, position and sleeping position of the target object. The number and position of the target object may be used for subsequent user weight measurement, and the sleeping position may be used to obtain the user identity. Specifically, when the target object is currently sleeping in a supine or prone position, the second deep learning model may be used to extract the position information of the key nodes of the target object. The specific extracted position information is as follows: Figure 6 As shown, it may include A (the location of the head), B (the location of the right shoulder blade), C (the location of the left shoulder blade), D (the location of the right elbow joint), E (the location of the left elbow joint), F (the location of the right palm), G (the location of the left palm), H (the location of the right hip), I (the location of the left hip), J (the location of the right knee), K (the location of the left knee), L (the location of the right foot), and M (the location of the left foot). It should be noted that the key node position may also include other human body part nodes, which can be set according to actual conditions.

[0065] Figure 7The schematic diagram of the connection structure between the characteristic nodes of the human body in the supine state is shown, and the distance between each target characteristic node can be Euclidean distance or Manhattan distance, etc. For example, the distance d1 between nodes A and N, the distance d2 between N and C or N and B, the distance d3 between H and I, the distance d4 between N and the middle point O of the line connecting H and I, the distance d5 between B and D, the distance d6 between D and F, the distance d7 between C and E, the distance d8 between E and G, the distance d9 between H and J, the distance d10 between J and L, the distance d11 between I and K, and the distance d12 between K and M.

[0066] Wherein, N is the center point of the line between nodes B and C.

[0067] Based on the distances between the above-mentioned target key nodes, a feature array of the target object can be formed, and then the matching coefficients between the feature array and the feature arrays of the pre-stored users can be calculated respectively. Thus, among the matching coefficients between the feature arrays of the pre-stored users, the largest matching coefficient is selected as the target matching coefficient, and the target matching coefficient is compared with the preset coefficient threshold. If the target matching coefficient is greater than the preset coefficient threshold, such as 0.8, it can be considered that the match is consistent. At this time, the identity information of the pre-stored user feature array can be obtained as the identity information of the target object, and the identity information can be stored in correspondence with the measured weight information, so as to record and view the weight changes of the target object, facilitate the formulation of weight loss or weight gain plans, and improve the user experience.

[0068] In many usage scenarios, it is inconvenient to rely too much on the user to input identity information. At the same time, the currently used high-precision solutions such as vision have many problems such as privacy. The above method can quickly identify user information and then assign the measured weight information to the corresponding user. Under the premise of ensuring user privacy, the user identity information can be more conveniently and quickly bound to the weight, thereby improving the weight measurement accuracy and more conveniently and quickly binding the measured weight to the user identity information under the premise of protecting user privacy as much as possible.

[0069] Among them, the overall framework structure of the first deep learning model can be specifically described as follows: Figure 4As shown in the figure, it may include 3 convolutional layers and 2 fully connected layers, where Conv represents the convolutional layer, and its specific operations include three steps: Conv2d (convolution), BN (batch normalization), and ReLU (activation). K5 represents the convolution kernel size of 5*5, K3 represents the convolution kernel size of 3*3, s2 represents the step size of 2, s1 represents the step size of 1, p1 represents the padded maxpooling, c16 represents the number of convolution kernels of 16, c32 represents the number of convolution kernels of 32, and c64 represents the number of convolution kernels of 64. 32*16*32 represents the number and form of the output parameters of this layer. The fully connected layer is a fully connected layer, and the final output dimension is 11 dimensions, which includes position information, such as the horizontal coordinate and vertical coordinate of the user's center point, the width of the user box, the height of the user box, and the probability of the sleeping posture type, such as supine, prone, left trunk, left fetus, right trunk, right fetus, and others. Examples of common sleeping posture types and corresponding labels are shown in Figure 5 As shown in the figure, the label values ​​are obtained by manual annotation.

[0070] Among them, the overall framework structure of the second deep learning model can be specifically described as follows: Figure 8 As shown in the figure, Conv represents the convolution layer, and its specific operations include three steps: Conv2d (convolution), BN (batch normalization), and ReLU (activation). K5 represents the convolution kernel size of 5*5, K3 represents the convolution kernel size of 3*3, s2 represents the step size of 2, s1 represents the step size of 1, p1 represents the padded maxpooling, c16 represents the number of convolution kernels of 16, c32 represents the number of convolution kernels of 32, and c64 represents the number of convolution kernels of 64. 32*16*32 represents the number and form of the output parameters of this layer. Fully connected layer is a fully connected layer, Up x2 represents upsampling by 2 times, Up x4 represents upsampling by 4 times, Down x2 represents downsampling by 2 times, and Down x4 represents downsampling by 4 times. It includes two operations: summation and ReLU. Basic Block is the Basic Block layer in ResNet, that is, the basic block. Conv 1*1 is a 1*1 convolutional layer, which is used to adjust the input size and shape and add nonlinearity (which also includes ReLU operation). The final output is the coordinates of 13 key feature nodes.

[0071] In one embodiment of the present application, determining the target bed foot pressure data corresponding to each bed foot when the target measurement bed is in a stable state includes:

[0072] When the target object is in bed and has not left the bed within a first preset time range, obtaining pressure data of each bed foot in a stable state after being in bed corresponding to the stable state within the first preset time range;

[0073] When the target object is in an out-of-bed state and does not appear in the bed state within a second preset time range, the pressure data of each bed foot in a stable state in front of the bed corresponding to the stable state within the second preset time range is obtained.

[0074] Among them, the first preset time period may specifically refer to the time period from when the target object is detected to be in bed to when it appears in the out-of-bed state, and the second preset time period may specifically refer to the time period from when the target object is detected to be out of bed to when it appears in the bed state.

[0075] The target bed foot pressure data may specifically include the pressure data of each bed foot in the stable state behind the bed corresponding to the stable state within the first preset time range, and the pressure data of each bed foot in the stable state in front of the bed corresponding to the stable state within the second preset time range. The target bed foot pressure data is obtained by real-time acquisition of each bed foot pressure data and determining the out-of-bed state of the target object and the stable state of the target measurement bed based on the pressure change between the previous and next moments.

[0076] In one embodiment of the present application, the step of detecting the stable state of the target measurement bed based on the bed foot pressure data includes:

[0077] Based on the bed foot pressure data, calculating the sum of each bed foot pressure data;

[0078] Calculating a first pressure difference between the current moment and the previous moment, and calculating a first low-pass filter value of the sum of the pressure data of each bed foot;

[0079] Calculate the range of the first low-pass filter value within a first preset time window;

[0080] When the first pressure difference is smaller than a first preset threshold value, and the range is smaller than a second preset threshold value, the target measurement bed is in a stable state.

[0081] Specifically, the pressure value of each bed foot can be obtained by the pressure measuring device set at each bed foot, each pressure value is added to obtain the sum of the pressure values ​​S, and the first low-pass filter value of the sum of the pressure values ​​S is calculated, with a cutoff frequency of 3 Hz, and the current time With the previous moment The difference D1 between the sum S of the pressure data of each bed foot can then be calculated, and the range D2 of the first low-pass filter value in the preset time window can be calculated, the range D2=maximum first low-pass filter value-minimum first low-pass filter value, the time length of the preset time window is T1, and it is judged whether D1 is less than the first preset threshold value TH1, and whether D2 is less than the second preset threshold value TH2. If so, it can be considered that the target measurement bed is in a stable state, based on the pressure data of each bed foot at this time, as the target bed foot pressure data, otherwise, it can be considered that the target measurement bed is in an unstable state.

[0082] In one embodiment of the present application, the detecting of the target object's out-of-bed state based on the bed foot pressure data and the bed surface pressure map data includes:

[0083] Based on the bed foot pressure data and bed surface pressure map data, when a pressure change is detected on the target measurement bed, the area of ​​the bed surface where the pressure change occurs and the physiological signal fluctuation data of the respiratory frequency band are obtained to determine the target object's out-of-bed status.

[0084] Specifically, the pressure change state is obtained based on the pressure data at the foot of the bed. Based on the pressure change state, it is determined that when a large weight change occurs in the target measurement bed, the ratio of the compressed area to the overall area of ​​the pressure blanket in the pressure graph data and the physiological signal fluctuations in the respiratory frequency band are used to judge whether the target object is still in bed when the weight change occurs. For example, when the compressed area accounts for more than 5% of the overall area of ​​the pressure blanket and there are physiological signal fluctuations in the respiratory frequency band, it can be considered that the target object is still in bed.

[0085] In one embodiment of the present application, based on the bed foot pressure data and the bed surface pressure map data, when a pressure change of the target measurement bed is detected, the area of ​​the bed surface where the pressure change occurs and the physiological signal fluctuation data of the respiratory frequency band are obtained, including:

[0086] Based on the bed foot pressure data, calculating the sum of each bed foot pressure data;

[0087] Calculating a second pressure difference between the current moment and the previous moment, and a second low-pass filtered value of the sum of the pressure data of each bed foot;

[0088] When the second pressure difference is greater than a third preset threshold, calculating a low-pass filtered difference between an average of the second low-pass filtered values ​​in a second preset time window before the current moment and an average of the second low-pass filtered values ​​in a third preset time window after the current moment;

[0089] When the low-pass filtering difference is greater than a fourth preset threshold, calculating a ratio of pressure data in the bed surface pressure map data that is greater than a preset pressure threshold and a sum of all pressure data in the bed surface pressure map data;

[0090] Performing bandpass filtering on the sum of all pressure data in the bed surface pressure map data to obtain target pressure data;

[0091] Calculating a standard deviation of the target pressure data within a third preset time window;

[0092] When the ratio is greater than a fifth preset threshold, and the standard deviation is greater than a sixth preset threshold, the target object is in bed.

[0093] Specifically, the pressure value of each bed foot can be obtained by the pressure measuring device set at each bed foot, each pressure value is added to obtain the sum of the pressure values ​​S, and the first low-pass filter value of the sum of the pressure values ​​S is calculated, with a cutoff frequency of 3 Hz, and the current time With the previous moment The second pressure difference between , and the range of the second low-pass filter value within the preset time window , determine the Is it greater than the third preset threshold TH3? If so, calculate the mean of the second low-pass filter value in the second preset time window and the low-pass filter difference D3 between the mean of the second low-pass filter value in the previous time window. The time length of the preset time window is T1. If D3 is greater than the fourth preset threshold TH4, calculate the ratio R1 of the pressure data greater than the preset pressure threshold in the bed surface pressure map data and the sum F of all pressure data in the bed surface pressure map data, and perform bandpass filtering on the sum F of all pressure data in the bed surface pressure map data. The passband range is 0.1Hz~0.6Hz, and obtain , calculate the third preset time window, the time length is T1 If R1 is greater than the fifth preset threshold TH5 and STD1 is greater than the preset threshold TH6, the target object is in bed and the target measurement bed is in a stable state.

[0094] In one embodiment of the present application, the center of gravity position of the target object and the measured weight of each bed foot are obtained based on the position information and the target bed foot pressure data, and the weight information of the target object is obtained based on the distance between the center of gravity position and each bed foot and the measured weight of each bed foot, including:

[0095] Based on the position information, obtaining the position of the center of gravity of the target object;

[0096] Calculating the measured weight of each bed foot based on the target bed foot pressure data;

[0097] Based on the distance between the center of gravity of the target object and each of the bed legs, the measured weights of each of the bed legs are weighted, and the weighted measured weights of each of the bed legs are summed to obtain the weight information of the target object.

[0098] The location information at least includes the horizontal coordinate, the vertical coordinate, the width of the user frame, and the height of the user frame where the user center point is located.

[0099] The area where the target object is located on the target measurement bed can be extracted through the horizontal coordinate, vertical coordinate, width and height of the user frame where the user center point is located. Figure 5 In the rectangular frame area shown, at this time, the pressure value of each point in the pressure map of the user's area can be determined, and the sum value can be calculated after Gaussian filtering of the pressure values ​​of each point, and then the center of gravity position of the target object can be obtained based on the sum value. And through the obtained target bed foot pressure data, the measured weight of each bed foot is calculated, and the distance between the center of gravity position of the target object and each bed foot is calculated, and the measured weight of each bed foot is weighted according to the distance, and the weighted measured weight of each bed foot is summed to serve as the weight information of the target object. By obtaining the center of gravity position of the target object and the measured weight of each bed foot, the weight of the target object can be obtained more accurately, and the calculation process is simple, which can improve the measurement efficiency.

[0100] The measured weight of each bed foot is weighted based on the distance between the center of gravity and each bed foot to obtain the final weight information. The specific calculation method is as follows:

[0101]

[0102] Among them, Weight is the final target object weight, is the weight of the measured weight of the i-th bed foot, is the weight measured at the i-th bed foot, where The calculation method is as follows:

[0103]

[0104] in, It is the ratio of the sum of the distances from the center of gravity to all bed legs to the distance from the center of gravity to the i-th bed leg. The specific calculation is as follows:

[0105]

[0106] in, , is the distance from the center of gravity to the bed foot j and bed foot i. The distance calculation method is as follows:

[0107]

[0108] in is the distance from the foot of the i-th bed to the center of gravity. A coordinate system is established according to the area where the target measurement bed or target object is located. is the distance between each x-axis index, is the x-axis index of the ith bed foot, is the distance between each y-axis index, is the y-axis index of the i-th bed foot.

[0109] After calculating the weight information of the target object in the above manner, the weight information can be bound to the identified user information and uploaded to the server for storage, so as to provide effective data for subsequent health monitoring and improve the accuracy of health monitoring.

[0110] In an embodiment of the present application, obtaining the position of the center of gravity of the target object based on the position information includes:

[0111] Based on the location information, extracting the area where the target object is located;

[0112] Calculating the pressure value of each point in the area where the target object is located, and performing Gaussian smoothing processing;

[0113] Calculate the sum of the pressure values ​​at each point after Gaussian smoothing;

[0114] Based on the sum of the pressure values ​​of each point after the Gaussian smoothing process, the position of the center of gravity of the target object is determined.

[0115] Specifically, based on the position information, that is, the horizontal coordinate, vertical coordinate, width and height of the user frame where the user center point is located, the area where the target object is located on the target measurement bed can be extracted, and then the pressure value of each point in the area can be calculated, that is, the pressure data detected by each pressure measurement device pre-set in the area where the target object is located on the bed surface. Since the pressure data collected by the pressure measurement device is an AD (Analog to Digital) value, there is not a completely linear mapping relationship between the AD value and the pressure value. The mapping relationship is related to the characteristics of the pressure measurement device actually used. The specific mapping relationship can be shown as follows:

[0116]

[0117] Where p is the pressure value measured by the pressure measuring device at each point in the area where the target object is located, , , , , , is the fitting coefficient, AD is the AD value collected by the pressure measuring device at each point, and TH7 and TH8 are the thresholds of the AD value of the pressure measuring device. The above mapping relationship adopts three-segment linear fitting, and its specific parameters are determined by the actual situation of the pressure measuring device. In actual situations, after calibration and other operations, the coefficients and thresholds in the above mapping relationship are also different.

[0118] A pressure matrix is ​​established for the pressure values ​​of the target area, and a 3*3 Gaussian filter is performed to filter out noise. The filter coefficients corresponding to the specific Gaussian filter are as follows:

[0119]

[0120] The calculation method of Gaussian filtering is as follows:

[0121]

[0122] in is the pressure data after Gaussian smoothing. The vertex in the lower left corner of the pressure matrix is ​​the coordinate origin. The horizontal right direction is the positive direction of the horizontal axis, and the vertical upward direction is the positive direction of the vertical axis. x is the horizontal axis coordinate, and y is the vertical axis coordinate. is the original pressure matrix, is the i-th row and j-th column data of the above Gaussian kernel function.

[0123] Then, the sum of the pressure values ​​of the pressure data after Gaussian smoothing is calculated, that is, the sum of the pressure data in the area where the target object is located after Gaussian smoothing, as shown below:

[0124]

[0125] in is the sum of the pressure values ​​of the target object area, m is the row index of the start of the target object area, n is the row index of the end of the target object area, l is the column index of the start of the target object area, k is the column index of the end of the target object area, is the pressure data after Gaussian smoothing.

[0126] Based on the sum of the pressure values ​​in the area where the target object is located, the position of the center of gravity of the target object is calculated, as shown below:

[0127]

[0128]

[0129] in is the row index of the centroid, is the column index of the centroid, i represents the i-th row, and j represents the j-th column.

[0130] In one embodiment of the present application, the step of calculating the measured weight of each bed foot based on the target bed foot pressure data includes:

[0131] Based on the target bed foot pressure data, obtaining first pressure data of each bed foot when the target object is in bed and the target measurement bed is in a stable state;

[0132] Based on the target bed foot pressure data, obtaining second pressure data of each bed foot when the target object is in a bed state and the target measurement bed is in a stable state;

[0133] Based on the first pressure data and the second pressure data, the measured weight of each bed foot is calculated respectively.

[0134] Specifically, the target bed foot pressure data may include the corresponding pressure data of each bed foot in the stable state behind the bed when in the stable state within the first preset time range, and the corresponding pressure data of each bed foot in the stable state in front of the bed when in the stable state within the second preset time range. By collecting the pressure data of each bed foot in real time, and based on the pressure change between the previous and next moments, the target object's out-of-bed state and the stable state of the target measurement bed are determined, thereby obtaining the target bed foot pressure data. Therefore, the first pressure data and the second pressure data of each bed foot can be obtained through the target bed foot pressure data.

[0135] Among them, the first preset time period may specifically refer to the time period from when the target object is detected to be in bed to when it appears in the out-of-bed state, and the second preset time period may specifically refer to the time period from when the target object is detected to be out of bed to when it appears in the bed state.

[0136] The measured weight of each bed foot is calculated based on the first pressure data and the second pressure data, as shown below:

[0137]

[0138] in, is the weight of the target object measured at the jth bed foot, , is the weight coefficient for the conversion between AD value and weight, and its value can be obtained by fitting the actual data. is the first pressure value of the bed foot of the j-th bed foot target object in the stable state behind the bed, is the second pressure value of the bed foot of the j-th bed foot target object in the stable state in front of the bed.

[0139] In an embodiment of the present application, by setting a pressure detector at the foot of the measuring bed and setting a pressure blanket on the bed surface, the pressure data of the bed foot and the bed surface pressure map data can be collected in real time to obtain the center of gravity position of the user, and the pressure data of the bed foot in a stable state when the user is in bed and out of bed can be obtained to obtain the weight measured at each bed foot, and then the user's weight information is obtained based on the center of gravity position and the weight measured at each bed foot, which can effectively improve the accuracy of weight measurement and improve the reliability of health monitoring.

[0140] It should be understood that the order of execution of the steps in the above embodiment does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present invention.

[0141] In one embodiment, a weight measuring device is provided, which corresponds one-to-one to the weight measuring method in the above embodiment. Fig. 9 As shown, the weight measuring device includes a data acquisition unit 10, a stable state detection unit 20, a bed leaving state detection unit 30, an information acquisition unit 40 and a weight measuring unit 50. The functional modules are described in detail as follows:

[0142] The data acquisition unit 10 is used to collect the pressure data of each foot of the target measurement bed and the bed surface pressure map data;

[0143] A stable state detection unit 20, configured to detect the stable state of the target measurement bed based on the bed foot pressure data, and determine target bed foot pressure data corresponding to each bed foot when the target measurement bed is in a stable state;

[0144] The bed leaving state detection unit 30 is used to detect the bed leaving state of the target object based on the bed foot pressure data and the bed surface pressure map data;

[0145] The information acquisition unit 40 is configured to acquire the position information and sleeping posture of the target object when the target object is in bed and the target measurement bed is in a stable state, and acquire the identity information of the target object when the sleeping posture is a preset sleeping posture;

[0146] The weight measurement unit 50 is used to obtain the center of gravity position of the target object and the measured weight of each bed foot based on the position information and the target bed foot pressure data, obtain the weight information of the target object based on the distance between the center of gravity position and each bed foot and the measured weight of each bed foot, and bind the weight information with the user identity information.

[0147] In an embodiment of the present application, the device further includes: a user identity information acquisition unit, configured to:

[0148] Based on the bed surface pressure map data, obtaining the location information of the key feature nodes of the target object through a target deep learning model;

[0149] Based on the location information of the key feature nodes, the distances between the target key feature nodes are calculated to form a feature array;

[0150] When the degree of match between the feature array and the feature array of the pre-stored user is greater than a preset matching threshold, the user identity information of the target object is determined, and the user identity information is bound to the weight information and stored.

[0151] In one embodiment, the user identity information obtaining unit is further used to:

[0152] Inputting the bed surface pressure map data into a first deep learning model for processing to obtain the sleeping posture of the target object;

[0153] When the target object's sleeping posture is supine or prone, the position information of the key feature nodes of the target object is obtained through the second deep learning model.

[0154] In one embodiment of the present application, the stable state detection unit 20 is further used for:

[0155] When the target object is in bed and has not left the bed within a first preset time range, obtaining pressure data of each bed foot in a stable state after being in bed corresponding to the stable state within the first preset time range;

[0156] When the target object is in an out-of-bed state and does not appear in the bed state within a second preset time range, the pressure data of each bed foot in a stable state in front of the bed corresponding to the stable state within the second preset time range is obtained.

[0157] In one embodiment of the present application, the stable state detection unit 20 is further used for:

[0158] Based on the bed foot pressure data, calculating the sum of each bed foot pressure data;

[0159] Calculating a first pressure difference between the current moment and the previous moment, and calculating a first low-pass filter value of the sum of the pressure data of each bed foot;

[0160] Calculate the range of the first low-pass filter value within a first preset time window;

[0161] When the first pressure difference is smaller than a first preset threshold value, and the range is smaller than a second preset threshold value, the target measurement bed is in a stable state.

[0162] In one embodiment of the present application, the bed leaving state detection unit 30 is further used for:

[0163] Based on the bed foot pressure data, calculating the sum of each bed foot pressure data;

[0164] Calculating a second pressure difference between the current moment and the previous moment, and a second low-pass filtered value of the sum of the pressure data of each bed foot;

[0165] When the second pressure difference is greater than a third preset threshold, calculating a low-pass filtered difference between an average of the second low-pass filtered values ​​in a second preset time window before the current moment and an average of the second low-pass filtered values ​​in a third preset time window after the current moment;

[0166] When the low-pass filtering difference is greater than a fourth preset threshold, calculating a ratio of pressure data in the bed surface pressure map data that is greater than a preset pressure threshold and a sum of all pressure data in the bed surface pressure map data;

[0167] Performing bandpass filtering on the sum of all pressure data in the bed surface pressure map data to obtain target pressure data;

[0168] Calculating a standard deviation of the target pressure data within a third preset time window;

[0169] When the ratio is greater than the fifth preset threshold value, and the standard deviation is greater than the sixth preset threshold value, the target object is in bed. In one embodiment of the present application, the weight measurement unit 50 is further used to:

[0170] Based on the position information, obtaining the position of the center of gravity of the target object;

[0171] Calculating the measured weight of each bed foot based on the target bed foot pressure data;

[0172] Based on the distance between the center of gravity of the target object and each of the bed legs, the measured weights of each of the bed legs are weighted, and the weighted measured weights of each of the bed legs are summed to obtain the weight information of the target object.

[0173] In one embodiment of the present application, the weight measurement unit 50 is further used for:

[0174] Based on the location information, extracting the area where the target object is located;

[0175] Calculating the pressure value of each point in the area where the target object is located, and performing Gaussian smoothing processing;

[0176] Calculate the sum of the pressure values ​​at each point after Gaussian smoothing;

[0177] Based on the sum of the pressure values ​​of each point after the Gaussian smoothing process, the position of the center of gravity of the target object is determined.

[0178] In one embodiment of the present application, the weight measurement unit 50 is further used for:

[0179] Acquiring first pressure data of each bed foot when the target object is in a bed state and the target measurement bed is in a stable state;

[0180] Acquire second pressure data of each bed foot before the target object is in a bed state and when the target measurement bed is in a stable state;

[0181] Based on the first pressure data and the second pressure data, the measured weight of each bed foot is calculated respectively.

[0182] In an embodiment of the present application, by setting a pressure detector at the foot of the measuring bed and setting a pressure blanket on the bed surface, the pressure data of the bed foot and the bed surface pressure map data can be collected in real time to obtain the center of gravity position of the user, and the pressure data of the bed foot in a stable state when the user is in bed and out of bed can be obtained to obtain the weight measured at each bed foot, and then the user's weight information is obtained based on the center of gravity position and the weight measured at each bed foot, which can effectively improve the accuracy of weight measurement and improve the reliability of health monitoring.

[0183] For the specific definition of the weight measuring device, please refer to the definition of the weight measuring method above, which will not be repeated here. Each module in the above-mentioned weight measuring device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0184] In one embodiment, a computer device is provided. The computer device may be a terminal device, and its internal structure diagram may be as follows: Fig.10 As shown. The computer device includes a processor, a memory, and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a readable storage medium. The readable storage medium stores computer-readable instructions. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer-readable instructions are executed by the processor, a weight measurement method is implemented. The readable storage medium provided in this embodiment includes a non-volatile readable storage medium and a volatile readable storage medium.

[0185] In an embodiment of the present application, a computer device is provided, including a memory, a processor, and computer-readable instructions stored in the memory and executable on the processor, and when the processor executes the computer-readable instructions, the steps of the weight measurement method described above are implemented.

[0186] In an embodiment of the application, a readable storage medium is provided, wherein the readable storage medium stores computer-readable instructions, and when the computer-readable instructions are executed by a processor, the steps of the weight measurement method described above are implemented.

[0187] Those of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be implemented by instructing related hardware through computer-readable instructions, and the computer-readable instructions can be stored in a non-volatile readable storage medium or a volatile readable storage medium. When the computer-readable instructions are executed, they may include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), etc.

[0188] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above.

[0189] The embodiments described above are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention, and should all be included in the protection scope of the present invention.

Claims

1. A method for measuring weight, It is characterized in that The method comprises: Collect the pressure data of each bed foot and bed surface pressure map data of the target measurement bed; Based on the bed foot pressure data, the stable state of the target measurement bed is detected, and the target bed foot pressure data corresponding to each bed foot when the target measurement bed is in a stable state is determined; Based on the bed foot pressure data and the bed surface pressure map data, detecting the target object's out-of-bed state; When the target object is in bed and the target measurement bed is in a stable state, obtaining the position information and sleeping posture of the target object, and when the sleeping posture is a preset sleeping posture, obtaining the identity information of the target object; Based on the position information, obtaining the position of the center of gravity of the target object; Calculating the measured weight of each bed foot based on the target bed foot pressure data; Based on the distance between the center of gravity of the target object and each of the bed legs, the measured weights of each of the bed legs are weighted, and the weighted measured weights of each of the bed legs are summed to obtain the weight information of the target object, and the weight information is bound to the identity information.

2. The weight measuring method according to claim 1, It is characterized in that The obtaining the identity information of the target object includes: Based on the bed surface pressure map data, obtaining the location information of the key feature nodes of the target object through a target deep learning model; Based on the location information of the key feature nodes, the distances between the target key feature nodes are calculated to form a feature array; When the degree of matching between the feature array and the feature array of the pre-stored user is greater than a preset matching threshold, the identity information of the target object is determined.

3. The weight measuring method according to claim 2, It is characterized in that The step of obtaining the location information of the key feature nodes of the target object based on the bed surface pressure map data through a target deep learning model includes: Inputting the bed surface pressure map data into a first deep learning model for processing to obtain the sleeping posture of the target object; When the target object is sleeping in a supine or prone position, the position information of the key feature nodes of the target object is obtained through the second deep learning model.

4. The weight measuring method according to claim 1, It is characterized in that The step of determining target bed foot pressure data corresponding to each bed foot of the target measurement bed in a stable state includes: When the target object is in bed and has not left the bed within a first preset time range, obtaining pressure data of each bed foot in a stable state after being in bed corresponding to the stable state within the first preset time range; When the target object is in an out-of-bed state and does not appear in the bed state within a second preset time range, the pressure data of each bed foot in a stable state in front of the bed corresponding to the stable state within the second preset time range is obtained.

5. The weight measuring method according to claim 1, It is characterized in that The detecting the stable state of the target measurement bed based on the bed foot pressure data includes: Based on the bed foot pressure data, calculating the sum of each bed foot pressure data; Calculating a first pressure difference between the current moment and the previous moment, and calculating a first low-pass filter value of the sum of the pressure data of each bed foot; Calculate the range of the first low-pass filter value within a first preset time window; When the first pressure difference is smaller than a first preset threshold value, and the range is smaller than a second preset threshold value, the target measurement bed is in a stable state.

6. The weight measuring method according to claim 1, It is characterized in that The detecting of the target object's out-of-bed state based on the bed foot pressure data and the bed surface pressure map data includes: Based on the bed foot pressure data, calculating the sum of each bed foot pressure data; Calculating a second pressure difference between the current moment and the previous moment, and a second low-pass filtered value of the sum of the pressure data of each bed foot; When the second pressure difference is greater than a third preset threshold, calculating a low-pass filtered difference between an average of the second low-pass filtered values ​​in a second preset time window before the current moment and an average of the second low-pass filtered values ​​in a third preset time window after the current moment; When the low-pass filtering difference is greater than a fourth preset threshold, calculating a ratio of pressure data in the bed surface pressure map data that is greater than a preset pressure threshold and a sum of all pressure data in the bed surface pressure map data; Performing bandpass filtering on the sum of all pressure data in the bed surface pressure map data to obtain target pressure data; Calculating a standard deviation of the target pressure data within a third preset time window; When the ratio is greater than a fifth preset threshold, and the standard deviation is greater than a sixth preset threshold, the target object is in bed.

7. The weight measuring method according to claim 1, It is characterized in that The obtaining the position of the center of gravity of the target object based on the position information includes: Based on the location information, extracting the area where the target object is located; Calculating the pressure value of each point in the area where the target object is located, and performing Gaussian smoothing processing; Calculate the sum of the pressure values ​​at each point after Gaussian smoothing; Based on the sum of the pressure values ​​of each point after the Gaussian smoothing process, the position of the center of gravity of the target object is determined.

8. The weight measuring method according to claim 1, It is characterized in that The step of calculating the measured weight of each bed foot based on the target bed foot pressure data includes: Acquiring first pressure data of each bed foot when the target object is in a bed state and the target measurement bed is in a stable state; Acquire second pressure data of each bed foot before the target object is in a bed state and when the target measurement bed is in a stable state; Based on the first pressure data and the second pressure data, the measured weight of each bed foot is calculated respectively.

9. A weight measuring device, It is characterized in that The device comprises: A data acquisition unit, used to collect the pressure data of each bed foot of the target measurement bed and the bed surface pressure map data; A stable state detection unit, configured to detect the stable state of the target measurement bed based on the bed foot pressure data, and determine target bed foot pressure data corresponding to each bed foot when the target measurement bed is in a stable state; In the bed leaving state detection unit, it is used to detect the bed leaving state of the target object based on the bed foot pressure data and the bed surface pressure map data; an information acquisition unit, configured to acquire the position information and sleeping posture of the target object when the target object is in bed and the target measurement bed is in a stable state, and to acquire the identity information of the target object when the sleeping posture is a preset sleeping posture; A weight measurement unit is used to obtain the position of the center of gravity of the target object based on the position information; calculate the measured weight of each bed foot based on the target bed foot pressure data; weight the measured weight of each bed foot based on the distance between the position of the center of gravity of the target object and each bed foot, and sum the weighted measured weights of each bed foot to obtain the weight information of the target object, and bind the weight information with the identity information.