Protection method and device for preventing bed from falling, storage medium and mattressTechnical Field
The application relates to the technical field of electronic information, in particular to a protection method and device for preventing a bed from falling, a storage medium and a mattress.
Background
With the continuous development of science and technology, more and more homes are combined with intelligent equipment, when a user is on a mattress, the sleeping posture or position can be changed unconsciously, particularly when the user is in a sleeping state, when the user is in an unsafe sleeping posture or position, the sleeping posture or position can not only be influenced on the sleeping quality of the user, but also can seriously cause falling injury caused by falling from the mattress.
The existing intelligent bed cushion only plays a role of early warning when the user is in an unsafe sleeping posture or position, and reminds the user in modes of voice and the like. However, reminding the user in a voice manner also has different effects on the sleep quality of the user, and the reminding manner cannot effectively guarantee the safety of the user.
Therefore, ensuring the safety of the user on the mattress becomes a problem to be solved urgently.
Disclosure of Invention
In order to solve the problems, the application provides a protection method, a protection device, a storage medium and a mattress for preventing a user from falling off a bed, which can effectively monitor the position and the posture of the user on the mattress, and can prevent the user from falling off the edge of the mattress by changing the shape of the mattress when the user is in an unsafe position and posture, thereby ensuring the sleep quality and the safety of the user.
In a first aspect, the present application provides a method of protecting a fall-off prevention bed, the method comprising:
when the position and posture state of the user on the mattress body is determined not to be the safe position and posture state, obtaining a mattress deformation parameter by using a mattress parameter prediction model according to the position and posture state;
and controlling a mattress deformation adjusting device to execute corresponding intervention operation according to the mattress deformation parameters so as to deform the mattress body.
According to an embodiment of the application, optionally, in the protection method, before the step of determining that the posture state of the user on the mattress body is not the safe posture state, the protection method further includes:
and acquiring a pose state and a safe pose state.
According to an embodiment of the present application, optionally, in the protection method, the protection method further includes:
acquiring human body sign information detected by intelligent monitoring equipment;
and judging whether the user is in a sleeping state or not according to the human body sign information, and acquiring a pose state and a preset safety pose state when the user is determined to be in the sleeping state.
According to an embodiment of the present application, optionally, in the protection method, the step of acquiring the pose state includes:
acquiring pressure data detected by a pressure sensor arranged on a mattress body;
and obtaining the pose state by utilizing a preset pose prediction model according to the pressure data.
According to an embodiment of the present application, optionally, in the protection method, the pose prediction model is constructed by the following steps:
acquiring a first sample set, wherein the first sample set comprises a plurality of first sample data, and each first sample data comprises a plurality of sample pressure data and a sample pose state corresponding to the plurality of sample pressure data;
and taking a plurality of first sample data as input, and training a first preset model to obtain the pose prediction model.
According to an embodiment of the present application, optionally, in the protection method, the mattress parameter prediction model is constructed by the following steps:
acquiring a second sample set, wherein the second sample set comprises a plurality of second sample data, and each second sample data respectively comprises a sample pose state and a sample deformation parameter corresponding to the sample pose state;
and taking a plurality of second sample data as input, training a second preset model, and obtaining the mattress parameter prediction model.
In a second aspect, the present application provides a protection device comprising:
the prediction module is used for obtaining mattress deformation parameters by utilizing a mattress parameter prediction model according to the pose state when the pose state of the user on the mattress body is determined not to be the safe pose state;
and the execution module is used for controlling the mattress deformation adjusting device to execute corresponding intervention operation according to the mattress deformation parameters so as to deform the mattress body.
In a third aspect, the present application provides a storage medium storing a computer program executable by one or more processors for implementing the protection method as described above.
In a fourth aspect, the present application provides a mattress comprising a mattress body, a plurality of pressure sensors, a mattress deformation adjustment device, a memory, and a processor;
the pressure sensors are arranged on the mattress body and used for detecting pressure data;
the mattress deformation adjusting device is arranged in the mattress body and is used for executing intervention operation so as to deform the mattress body;
the memory is used for storing a safe pose state;
the processor is used for determining a pose state according to the pressure data, obtaining a mattress deformation parameter by using a mattress parameter prediction model according to the pose state when the pose state is not a safe pose state, and controlling the mattress deformation adjusting device to execute corresponding intervention operation according to the mattress deformation parameter so as to deform the mattress body.
According to an embodiment of the application, optionally, in the above protection device, a plurality of pressure sensor arrays are disposed on the mattress body, and the mattress deformation adjusting devices are plural and disposed on the mattress body and near the edge of the mattress body respectively.
Compared with the prior art, one or more embodiments in the above scheme can have the following advantages or beneficial effects:
the application provides a protection method, a device, a storage medium and a mattress for preventing falling off a bed, wherein the protection method comprises the following steps: when the position and posture state of the user on the mattress body is determined not to be the safe position and posture state, obtaining a mattress deformation parameter by using a mattress parameter prediction model according to the position and posture state; and controlling the mattress deformation adjusting device to execute corresponding intervention operation according to the mattress deformation parameters, so that the mattress body deforms, and the user is guided to be converted from the current unsafe pose state to a relatively safe pose state by monitoring the pose state of the user on the mattress body, particularly the pose state of the user in a sleeping state on the mattress body, and changing the shape of the mattress body when the user is in the unsafe pose state, so that the user is prevented from falling from the edge of the mattress body, and the sleeping quality and safety of the user are further ensured.
Drawings
The present application will be described in more detail below on the basis of embodiments and with reference to the accompanying drawings.
Fig. 1 is a schematic flow chart of a protection method for preventing a falling bed according to an embodiment of the present disclosure.
Fig. 2 is a schematic diagram of a training process of a mattress parameter prediction model according to an embodiment of the present application.
Fig. 3 is another schematic flow chart of a protection method for preventing a falling bed according to an embodiment of the present disclosure.
Fig. 4 is a schematic diagram of a training process of a median pose prediction model according to an embodiment of the present application.
Fig. 5 is another schematic flow chart of a protection method for preventing a falling bed according to an embodiment of the present disclosure.
Fig. 6 is a connection block diagram of a protection device for preventing a falling bed according to the second embodiment of the present application.
In the drawings, like parts are designated with like reference numerals, and the drawings are not drawn to scale.
Detailed Description
The following detailed description will be provided with reference to the accompanying drawings and embodiments, so that how to apply the technical means to solve the technical problems and achieve the corresponding technical effects can be fully understood and implemented. The embodiments and various features in the embodiments of the present application can be combined with each other without conflict, and the formed technical solutions are all within the scope of protection of the present application.
Example one
Referring to fig. 1, the present application provides a protection method for preventing a falling bed, which can be applied to a processor located in a mattress body, and performs steps S13 and S14 when the protection method is applied to the processor.
Step S13: and when the posture state of the user on the mattress body is determined not to be the safe posture state, obtaining the deformation parameter of the mattress by using the mattress parameter prediction model according to the posture state.
Step S14: and controlling a mattress deformation adjusting device to execute corresponding intervention operation according to the mattress deformation parameters so as to deform the mattress body.
In the embodiment, by monitoring the posture state of the user on the mattress body, when the user is not in a safe posture state on the mattress body, the shape of the mattress body is changed to guide the user to be converted from the current unsafe posture state into a relatively safe posture state, so that the user is prevented from falling from the edge of the mattress body, and the sleeping quality and safety of the user are further guaranteed.
In step S13, the pose state includes a position and a posture; the safe pose state can be set by a user through a controller, the controller can be a mobile phone or a remote controller carried by the mattress, and the controller can establish communication connection with a processor in the mattress through a wireless device; the mattress deformation parameter is the actual parameter of the deformation size of the mattress body. Wherein, the mattress deformation parameter can be the height parameter that the mattress body takes place the altitude variation.
For example, assuming that the mattress body is a bed with a size of 1.5 meters, the safe pose state includes a safe position and a safe pose, the safe position may be within 1 meter of the left and right sides of the mattress body, and when the pose state represents the position of the user within the edge range of 25 centimeters on the right side of the mattress body, the pose state of the current user is indicated as one not belonging to the safe pose state; when the user lies on the side and the position is within the edge range of 25 cm on the right side of the mattress body, the user can fall from the mattress body more easily, and the posture state can be taken as another state which does not belong to the safe posture state.
Referring to fig. 2, the mattress parameter prediction model can be obtained through the training in steps S1301 and S1302.
Step S131: and acquiring a second sample set, wherein the second sample set comprises a plurality of second sample data, and each second sample data respectively comprises a sample pose state and a sample deformation parameter corresponding to the sample pose state.
Step S132: and taking a plurality of second sample data as input, training a second preset model, and obtaining the mattress parameter prediction model.
In step S131, the second sample set includes a plurality of second sample data, and each second sample data includes a sample pose state and a sample deformation parameter corresponding to the sample pose state. The pose state is an unsafe pose state, and the sample deformation parameter representation can effectively guide a user to convert the current unsafe pose state into a relatively safe pose state parameter.
Wherein the second sample data may be obtained experimentally. Specifically, a user can lie in the unsafe area on the mattress body in different postures and positions, and then the mattress deformation adjusting device performs intervention operation on the mattress body according to different deformation parameters to deform the mattress body, so that the posture state and the sample deformation parameters corresponding to the posture state are obtained.
In step S132, a second preset model is trained through second sample data, and rules corresponding to different pose states and sample deformation parameters are established, so that when a pose state is input into the second preset model, a deformation parameter corresponding to the pose state is correspondingly output.
The step S132 includes: inputting a plurality of second sample data into the second preset model so that the second preset model sequentially outputs predicted deformation parameters, sequentially determining the difference value between the predicted deformation parameters and the corresponding sample deformation parameters in the second sample data, and adjusting the second preset model according to the difference value. And when the difference value reaches a preset condition, obtaining a mattress parameter prediction model.
The second sample data input to the second preset model may be second sample data acquired by one batch of experiments, or second sample data acquired only by different batches of experiments. Generally, a plurality of second sample data of experiments in different batches are input into a second preset model, so that the diversity of data is ensured. And determining the difference value between the predicted deformation parameter and the corresponding sample deformation parameter in the second sample data in sequence, wherein the difference value can represent the accuracy of the second preset model for predicting the deformation parameter in the training round, adjusting the second preset model according to the difference value to reduce the difference between the predicted deformation parameter and the corresponding sample deformation parameter in the second sample data, updating the second preset model, and putting the updated second preset model into the next training round. And under the condition that the difference value between the predicted deformation parameter and the sample deformation parameter in the corresponding second sample data reaches a preset condition, obtaining a mattress parameter prediction model. Wherein the preset condition may be that the difference is lower than a preset threshold.
In addition, the preset condition for stopping the adjustment of the second preset model may be that the number of times of updating the second preset model reaches a preset number threshold.
In step S14, the mattress deformation adjusting means is a mechanical means for deforming the mattress body, and performs an intervening operation according to the mattress deformation parameter, the intervening operation being an operation for deforming the mattress body by a deformation amount corresponding to the mattress deformation parameter.
Illustratively, also taking the example in step S13 above as an example, when the pose state represents the position of the user within the 25 cm edge range of the right side of the mattress body, the pose state is input into the mattress parameter prediction model, the obtained mattress deformation parameter is to raise the right side of the mattress body by 5 cm, and correspondingly, the intervention operation is to raise the right side of the mattress body by 5 cm, and the intervention operation is performed by the mattress deformation adjusting device to deform the right side edge of the mattress body.
Referring to fig. 3, the present application further provides a method for protecting a falling bed using a mattress, before performing the step S13, the method further includes the step S12: and acquiring a pose state and a safe pose state.
In step S12, the step of acquiring the pose state may include step S121 and step S122.
Step S121: pressure data detected by a pressure sensor arranged on the mattress body is acquired.
Step S122: and obtaining the pose state according to the pressure data and a pose prediction model.
In step S121, when a user lies on the mattress body, the pressure sensor provided in the mattress body detects pressure data, and the posture state of the user on the mattress body can be obtained through the pressure data detected by the pressure sensor. Illustratively, and also taking the example in the above step S13 as an example, a pressure sensor is disposed in a 25 cm region of the right edge of the mattress body, and when the user is located in the region, the pressure sensor in the region is stressed to detect corresponding pressure data.
It can be understood that a certain position of the user is not in a safe pose state and can not fall. For example, if a certain leg of the user is located in a 25 cm region of the right edge of the mattress body, the detected posture state is not a safe posture state, but the falling of the certain leg in the region is not caused. Therefore, the position and posture state of the user can be accurately obtained through comprehensive judgment by setting the pressure data detected by the pressure sensors, so that unnecessary intervention operation executed when a certain position of the user is not in a safe position and posture state is avoided, and the power consumption of the processor in the mattress can be reduced.
In step S122, the pose prediction model is a rule representing correspondence between the pressure data and the pose state. For example, the plurality of pressure data detected by the plurality of pressure sensors located at the edge of the mattress body correspond to a state other than a safe posture state.
And inputting the pressure data into a pose prediction model to obtain a pose state corresponding to the pressure data.
The pose prediction model is obtained by establishing the pressure data and the law of the pose state corresponding to the pressure data, so that the model can output the corresponding pose state when the pressure data is input.
Referring to fig. 4, the method for training the pose prediction model includes steps S1221 and S1222.
Step S1221: obtaining a first sample set, wherein the first sample set comprises a plurality of first sample data, and each first sample data comprises a plurality of sample pressure data and a sample pose state corresponding to the plurality of sample pressure data.
In this embodiment, the first sample data includes a plurality of sample pressure data and sample pose states corresponding to the plurality of sample pressure data.
Wherein the first sample data may also be obtained experimentally. Specifically, a user can lie on different regions of the mattress body in different postures and positions to obtain pressure data detected by a plurality of pressure sensors corresponding to the regions on the mattress body at the moment, the posture and position information is used as a posture state, and the pressure data is used as first sample data. Through a plurality of experiments, a first sample set is obtained.
Step S1222: and taking a plurality of first sample data as input, and training a first preset model to obtain the pose prediction model.
In this embodiment, the first sample data input to the first preset model may be the first sample data acquired by one batch of experiments, or may be the first sample data acquired by different batches of experiments. The second preset model is trained through the plurality of first sample data, and the corresponding rules of the plurality of sample pressure data and the pose states in different areas are established, so that the pose states corresponding to the plurality of sample pressure data can be correspondingly output when the second preset model inputs the plurality of sample pressure data.
It will be appreciated that when the user is not sleeping, the user may consciously (non-sleeping mode) determine whether his or her position or posture is in an unsafe condition (e.g., the edge of the mattress body), and when in the unsafe condition, the user may consciously change his or her position or posture to avoid falling from the mattress. Therefore, referring to fig. 5, the protection method further includes step S10 and step S11.
Step S10: and acquiring human body sign information detected by intelligent monitoring equipment.
In this embodiment, the intelligent monitoring device may be a contact-type intelligent device, such as an intelligent bracelet, and may detect physical sign information such as a heart rate of a user; the intelligent monitoring device can also be a non-contact intelligent device, such as a radar, and can detect physical sign information such as brain waves of a user.
Step S11: and judging whether the user is in a sleeping state or not according to the human body sign information, and acquiring a pose state and a preset safety pose state when the user is determined to be in the sleeping state.
In this embodiment, when it is detected that the user is in a sleep state according to the human body sign information, it indicates that the user is in an unconscious state, and when the self pose state is not a safe pose state, the self pose cannot be adjusted consciously. And when the user is in a sleeping state, executing the step of acquiring the pose state and the safe pose state, and further performing anti-falling protection measures on the user.
In this embodiment, the posture state of the user in the sleep state is monitored in real time, and when the posture state is not the safe posture state, the mattress deformation parameter is generated, so that the mattress deformation adjusting device is controlled to execute the intervention operation corresponding to the mattress deformation parameter, the mattress body is deformed, and the safety of the user is protected. And the steps of acquiring the pose state and the safe pose state are executed in the sleep state, so that the power consumption of the step of acquiring the pose state and the safe pose state and the like which are executed by the user in a conscious state is reduced.
Example two
Referring to fig. 6, the present embodiment further provides a protection device for preventing a bed from falling, the protection device includes: a processor for executing the following program modules stored in memory: the prediction module 21 is used for obtaining a mattress deformation parameter by using a mattress parameter prediction model according to the pose state when the pose state of the user on the mattress body is determined not to be the safe pose state; and the execution module 22 is used for controlling the mattress deformation adjusting device to execute corresponding intervention operation according to the mattress deformation parameters so as to deform the mattress body.
The implementation principle of the prediction module 21 is similar to that of step S13, and therefore, the detailed description of the prediction module 21 may refer to the first embodiment, which is not described herein again. The implementation principle of the execution module 22 is similar to that of step S14, and therefore, the detailed description of the execution module 22 can refer to the first embodiment, which is not described herein again.
EXAMPLE III
The present embodiments also provide a computer readable storage medium, such as a flash memory, a hard disk, a multimedia card, a card type memory (e.g., SD or DX memory, etc.), a Random Access Memory (RAM), a Static Random Access Memory (SRAM), a Read Only Memory (ROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a Programmable Read Only Memory (PROM), a magnetic memory, a magnetic disk, an optical disk, a server, an App application mall, etc., having stored thereon a computer program that when executed by a processor, performs the method steps as in the first embodiment.
The specific embodiment process of the above method steps can be referred to as embodiment one, and the detailed description of this embodiment is not repeated herein.
Example four
The embodiment of the application provides a mattress, including mattress body, a plurality of pressure sensor, mattress deformation adjusting device, memory and treater.
The processor is a control center of the mattress, is connected with other parts in the mattress by various interfaces and lines, obtains mattress deformation parameters by using a mattress parameter prediction model according to the pose state when determining that the pose state of a user on the mattress body is not a safe pose state, and controls the mattress deformation adjusting device to execute corresponding intervention operation according to the mattress deformation parameters so as to deform the mattress body. The processor may be an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a controller, a microcontroller, a microprocessor, or other electronic components.
The memory is used to store various types of data including, for example, instructions for any application or method in the mattress and application-related data, such as safety pose status, etc. The Memory may be implemented by any type of volatile or nonvolatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically erasable Programmable Read-Only Memory (EEPROM), erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk or optical disk.
The plurality of pressure sensors are arranged on the mattress body and used for detecting pressure data, and the processor determines the position and the posture of a user on the mattress body, namely the posture state according to the plurality of detected pressure data. Wherein the plurality of pressure sensor arrays are disposed on the mattress body.
The mattress deformation adjusting device is arranged in the mattress body and used for executing intervention operation so as to deform the mattress body. Because the mattress body belongs to the elasticity equipment, consequently, can set up the mattress deformation adjusting device who makes the mattress body take place deformation in the mattress body. The mattress deformation adjusting devices are multiple and are respectively arranged on the mattress body and close to the edge of the mattress body. The mattress deformation adjusting device comprises a vertical lifting unit, and the vertical lifting size of the vertical lifting unit is changed to form a curved surface on the upper surface of the mattress body. Wherein the vertical lifting unit can be realized by hydraulic pressure or air pressure.
For example, a set of vertical lifting units may be disposed at an edge of the mattress body, and when the user is located at the edge of the mattress body and the posture state of the user on the mattress body is not a safe posture state, a mattress parameter prediction model is used to obtain a mattress deformation adjustment parameter, where the mattress deformation adjustment parameter represents a parameter of a rising height of the vertical lifting units, that is, in this case, the set of mattress vertical lifting units disposed at the edge of the mattress body may be raised by a certain height so that a plane located at the edge of the mattress body is higher than other planes except the edge, so as to guide the user to move from the edge to the center of the mattress body and avoid the user falling from the mattress body.
It will be appreciated that the mattress may also include a communication assembly. The communication component is used for carrying out wired or wireless communication between the mattress and other equipment. Wireless Communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G or 4G, or a combination of one or more of them, so that the corresponding Communication component may include: Wi-Fi module, bluetooth module, NFC module.
In this embodiment, a plurality of pressure sensors disposed on the mattress body detect a plurality of pressure data, the plurality of pressure data are input to the pose prediction model to obtain a pose state, and when it is determined that the pose state of the user on the mattress body is not a safe pose state, the processor inputs the pose state to the mattress parameter prediction model to obtain a mattress deformation parameter, and controls the mattress deformation adjusting device to execute a corresponding intervention operation according to the mattress deformation parameter to deform the mattress body, thereby preventing the user from falling from the mattress body and protecting the safety of the user.
In summary, the application provides a protection method, a device, a storage medium and a mattress for preventing falling off of a bed, wherein the protection method comprises the following steps: when the position and posture state of the user on the mattress body is determined not to be the safe position and posture state, obtaining a mattress deformation parameter by using a mattress parameter prediction model according to the position and posture state; and controlling a mattress deformation adjusting device to execute corresponding intervention operation according to the mattress deformation parameters so as to deform the mattress body. By monitoring the posture state of a user on the mattress body and changing the shape of the mattress body when the user is in an unsafe posture state, the user is guided to be converted from the current unsafe posture state into a relatively safe posture state, the user is prevented from falling from the edge of the mattress body, and the sleeping quality and safety of the user are further ensured; and the steps of acquiring the pose state and the safe pose state are executed in the sleep state, so that the power consumption of the step of acquiring the pose state and the safe pose state and the like which are executed by the user in a conscious state is reduced.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The system and method embodiments described above are merely illustrative.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
Although the embodiments disclosed in the present application are described above, the descriptions are only for the convenience of understanding the present application, and are not intended to limit the present application. It will be understood by those skilled in the art that various changes in form and details may be made therein without departing from the spirit and scope of the disclosure as defined by the appended claims.