Sleep leaving alarm method and system for intelligent bed and storage medium

文档序号:1906346 发布日期:2021-11-30 浏览:32次 中文

阅读说明:本技术 一种用于智能床的睡眠离床报警方法、系统和存储介质 (Sleep leaving alarm method and system for intelligent bed and storage medium ) 是由 姚敏辉 邱耀炜 沈志豪 于 2021-06-24 设计创作,主要内容包括:本发明提供一种用于智能床的睡眠离床报警方法、系统和存储介质,该方法包括:放松阶段,控制电动床执行放松人体模式以对人体肌肉进行放松按摩;助眠阶段,控制电动床执行体位助眠模式以促进人体颅内静脉回流。本发明提供的助眠控制方法、系统和存储介质,在放松阶段对人体进行适度拉伸和震动按摩,舒缓人体紧张肌肉,消除肌肉疲劳,提高人体舒适度,使人体进入深度放松的状态,之后进入助眠阶段,抬高人体头部,减少肺部淤血,增加氧气吸入量,并且减轻颅内压,促进颅内静脉回流,使血液尽快在颅内循环,帮助人体加快进入睡眠阶段,通过以上两个阶段,可以消除疲劳并且促进血液和氧气尽快进入大脑,使人体更快地进入睡眠状态。(The invention provides a sleep leaving alarm method, a sleep leaving alarm system and a storage medium for an intelligent bed, wherein the method comprises the following steps: in the relaxing stage, the electric bed is controlled to execute a human body relaxing mode so as to carry out relaxing massage on human muscles; and in the sleep-aiding stage, the electric bed is controlled to execute a body position sleep-aiding mode so as to promote the intracranial venous return of the human body. The sleep-aiding control method, the sleep-aiding control system and the storage medium provided by the invention have the advantages that the proper stretching and vibration massage are carried out on a human body in the relaxation stage, the tense muscles of the human body are relieved, the muscle fatigue is eliminated, the comfort level of the human body is improved, the human body is enabled to enter the deep relaxation state, then the sleep-aiding stage is carried out, the head of the human body is lifted, the congestion of the lung is reduced, the oxygen inhalation amount is increased, the intracranial pressure is relieved, the intracranial venous reflux is promoted, the blood circulates in the intracranial as soon as possible, the sleep-aiding stage is assisted by the human body, the fatigue can be eliminated, the blood and the oxygen can be promoted to enter the brain as soon as possible through the two stages, and the human body can enter the sleep state more quickly.)

1. A sleep leaving-bed alarming method for an intelligent bed is characterized by comprising the following steps:

the main control box controls the sensor to collect sign data; the main control box is connected with the sensor and arranged on the intelligent bed, and the physical sign data is derived from a human body on the intelligent bed;

the main control box stores the physical sign data to a cloud data storage device;

the server side obtains the sign data from the cloud data storage device and inputs the sign data into a local bed exit algorithm model;

and the server side acquires the bed-in rate output by the bed-out algorithm model, and if the bed-in rate exceeds the preset threshold range, the server side updates the user bed-out record data in a local user health monitoring data table and pushes alarm information to the client side.

2. The sleep exit alarm method according to claim 1, wherein the process of the exit algorithm model outputting the in-bed rate based on the vital sign data comprises:

acquiring the current time of the system;

acquiring alarm starting time, alarm ending time and alarm interval time set by a user, and dividing the time from the alarm starting time to the alarm ending time into time periods based on the alarm interval time;

and acquiring all the sign data in the time period of the current time of the system, calculating the data item quantity ratio of the sign data which is not empty in the time period to all the sign data in the time period, and taking the data item quantity ratio as the bed rate.

3. The sleep leaving bed alarm method according to claim 2, wherein after obtaining the alarm on-time, the alarm off-time and the alarm interval time set by the user, before dividing the time from the alarm on-time to the alarm off-time into time periods based on the alarm interval time, the procedure of the leaving bed algorithm model outputting the bed-in rate based on the physical sign data further comprises:

carrying out legal verification based on the bed leaving algorithm parameters, and stopping the execution of the bed leaving algorithm model if the result of the legal verification is judged to be illegal; wherein the bed exit algorithm parameters include: the user identification, the alarm starting time and the alarm ending time;

the legality check comprises:

if the alarm starting time is the same as the alarm ending time, judging that the alarm is illegal;

and acquiring the intelligent bed use state information of the user according to the user identification, and if the intelligent bed use state information of the user is in an inactivated state, judging that the intelligent bed use state information is illegal.

4. The sleep exit warning method of claim 3,

the legality check further comprises:

if the alarm ending time is greater than the alarm starting time, judging that the time state information is the same day;

if the alarm ending time is less than the alarm starting time, judging whether the time state information is the same day;

the process that the server side updates the bed leaving record data of the user in the local user health monitoring data table comprises the following steps:

detecting bed exit record data of the system in the time period of the current time in the user health monitoring data table;

if the user health monitoring data table does not have the bed leaving record data of the user in the time period, newly establishing a piece of bed leaving record data of the user;

if the user health monitoring data table has the bed leaving record data of the user in the time period, further judging based on the time state information; if the time status information is the same day, updating the bed leaving record data; if the time state information is not the same day, newly establishing a piece of out-of-bed record data of the user;

wherein the bed exit log data comprises: a user identification, the current time of the system, and the bed presence rate.

5. The sleep exit warning method according to any one of claims 1 to 4,

the sensor includes: the pressure sensor is used for monitoring the pressure bearing state of the bed plate, the vibration sensor is used for monitoring the breathing state of a human body, and/or the temperature sensor is used for monitoring the body temperature of the human body;

the sign data comprises: vital sign data formed by the pressure signal of the pressure sensor, the vibration signal of the vibration sensor and/or the temperature signal of the temperature sensor.

6. A sleep alarm system that leaves bed for intelligent bed which characterized in that includes: the system comprises an intelligent bed, cloud data storage equipment, a server and a client;

the intelligent bed is provided with a main control box and a sensor; the main control box is connected with the sensor;

the sensor is used for collecting sign data of a human body on the intelligent bed;

the main control box is used for: storing the physical sign data to the cloud data storage device;

the server side comprises: the system comprises a sign data acquisition module, a bed leaving algorithm module, a bed leaving record updating module and an alarm message pushing module;

the sign data acquisition module is used for acquiring the sign data from the cloud data storage device and inputting the sign data into the bed leaving algorithm module;

the bed leaving algorithm module is used for outputting the bed-in rate according to the physical sign data, and if the bed-in rate exceeds a preset threshold range, the bed leaving state is judged;

the bed leaving record updating module is used for updating the user bed leaving record data in the user health monitoring data table if the bed leaving algorithm module judges that the bed is in a bed leaving state;

and the alarm message pushing module is used for pushing alarm information to the client if the bed leaving algorithm module judges that the bed is in a bed leaving state.

7. The sleep exit alarm system according to claim 6, wherein the exit algorithm module comprises:

the system time submodule is used for acquiring the current time of the system;

the time period setting submodule is used for acquiring the alarm starting time, the alarm ending time and the alarm interval time set by a user, and dividing the time from the alarm starting time to the alarm ending time into time periods based on the alarm interval time;

and the bed rate calculation submodule is used for acquiring all the sign data in the time period of the current time of the system, calculating the data item quantity ratio of the sign data which is not empty in the time period to all the sign data in the time period, and taking the data item quantity ratio as the bed rate.

8. The sleep exit alarm system according to claim 7, wherein the exit algorithm module further comprises: a legal verification module;

the legal verification module is used for:

after the alarm starting time, the alarm ending time and the alarm interval time set by a user are obtained, legal verification is carried out based on bed leaving algorithm parameters before the time from the alarm starting time to the alarm ending time is divided into time periods based on the alarm interval time, and if the result of the legal verification is judged to be illegal, the execution of the bed leaving algorithm model is stopped; wherein the bed exit algorithm parameters include: the user identification, the alarm starting time and the alarm ending time;

the legality check comprises:

if the alarm starting time is the same as the alarm ending time, judging that the alarm is illegal;

and acquiring the intelligent bed use state information of the user according to the user identification, and if the intelligent bed use state information of the user is in an inactivated state, judging that the intelligent bed use state information is illegal.

9. The sleep exit warning system of claim 8,

the validity check module is further configured to:

if the alarm ending time is greater than the alarm starting time, judging that the time state information is the same day;

if the alarm ending time is less than the alarm starting time, judging whether the time state information is the same day;

the bed exit record updating module is used for:

detecting bed exit record data of the system in the time period of the current time in the user health monitoring data table;

if the user health monitoring data table does not have the bed leaving record data of the user in the time period, newly establishing a piece of bed leaving record data of the user;

if the user health monitoring data table has the bed leaving record data of the user in the time period, further judging based on the time state information; if the time status information is the same day, updating the bed leaving record data; if the time state information is not the same day, newly establishing a piece of out-of-bed record data of the user;

wherein the bed exit log data comprises: a user identification, the current time of the system, and the bed presence rate.

10. The sleep exit warning system of any one of claims 6 to 9,

the sensor includes: the pressure sensor is used for monitoring the pressure bearing state of the bed plate, the vibration sensor is used for monitoring the breathing state of a human body, and/or the temperature sensor is used for monitoring the body temperature of the human body;

the sign data comprises: vital sign data formed by the pressure signal of the pressure sensor, the vibration signal of the vibration sensor and/or the temperature signal of the temperature sensor.

11. A storage medium storing computer program instructions for performing a sleep exit warning method according to any one of claims 1 to 5.

Technical Field

The invention relates to the technical field of sleep, in particular to a sleep leaving alarm method and system for an intelligent bed and a storage medium.

Background

The intelligent bed belongs to new equipment of intelligent house, and it is based on internet of things to monitor human sleep environment and human physiology characteristic, is convenient for acquire human sleep data, can adjust the sleep environment based on the monitoring result. However, the existing intelligent bed does not adopt a bed leaving monitoring scheme so as to monitor the bed leaving state of the old. Some existing medical equipment has a bed leaving monitoring scheme, but the scheme generally adopts equipment such as a breathing machine and a heartbeat detector, is not suitable for the field of intelligent home, and has the defects of complex technology and high cost.

Getting out of bed is a common event for the elderly at night. According to investigation, the old people leave the bed half night, and the old people are dangerous, particularly the old people with inconvenient actions, if the old people do not get into the bed for a long time. Since there is no family around the elderly, there is a possibility that the elderly may have fatal injuries without being notified of the guardian, and it is meaningful to know the information of getting out of bed of the elderly in advance.

Disclosure of Invention

The invention provides a sleep leaving-bed alarming method, a sleep leaving-bed alarming system and a storage medium for an intelligent bed, and aims to solve the problem of monitoring the leaving-bed condition of old people.

The invention provides a sleep leaving alarm method for an intelligent bed, which comprises the following steps:

the main control box controls the sensor to collect sign data; the main control box is connected with the sensor and arranged on the intelligent bed, and the physical sign data is derived from a human body on the intelligent bed;

the main control box stores the physical sign data to a cloud data storage device;

the server side obtains the sign data from the cloud data storage device and inputs the sign data into a local bed exit algorithm model;

and the server side acquires the bed-in rate output by the bed-out algorithm model, and if the bed-in rate exceeds the preset threshold range, the server side updates the user bed-out record data in a local user health monitoring data table and pushes alarm information to the client side.

Further, in the sleep leaving-bed alarm method of the present invention, the process of outputting the in-bed rate based on the physical sign data by the leaving-bed algorithm model includes:

acquiring the current time of the system;

acquiring alarm starting time, alarm ending time and alarm interval time set by a user, and dividing the time from the alarm starting time to the alarm ending time into time periods based on the alarm interval time;

and acquiring all the sign data in the time period of the current time of the system, calculating the data item quantity ratio of the sign data which is not empty in the time period to all the sign data in the time period, and taking the data item quantity ratio as the bed rate.

Further, in the sleep leaving-bed alarm method of the present invention, after obtaining the alarm start time, the alarm end time, and the alarm interval time set by the user, before dividing the time from the alarm start time to the alarm end time into time periods based on the alarm interval time, the process of outputting the bed-in rate based on the physical sign data by the leaving-bed algorithm model further includes:

carrying out legal verification based on the bed leaving algorithm parameters, and stopping the execution of the bed leaving algorithm model if the result of the legal verification is judged to be illegal; wherein the bed exit algorithm parameters include: the user identification, the alarm starting time and the alarm ending time;

the legality check comprises:

if the alarm starting time is the same as the alarm ending time, judging that the alarm is illegal;

and acquiring the intelligent bed use state information of the user according to the user identification, and if the intelligent bed use state information of the user is in an inactivated state, judging that the intelligent bed use state information is illegal.

Further, the sleep leaving-bed alarming method of the invention,

the legality check further comprises:

if the alarm ending time is greater than the alarm starting time, judging that the time state information is the same day;

if the alarm ending time is less than the alarm starting time, judging whether the time state information is the same day;

the process that the server side updates the bed leaving record data of the user in the local user health monitoring data table comprises the following steps:

detecting bed exit record data of the system in the time period of the current time in the user health monitoring data table;

if the user health monitoring data table does not have the bed leaving record data of the user in the time period, newly establishing a piece of bed leaving record data of the user;

if the user health monitoring data table has the bed leaving record data of the user in the time period, further judging based on the time state information; if the time status information is the same day, updating the bed leaving record data; if the time state information is not the same day, newly establishing a piece of out-of-bed record data of the user;

wherein the bed exit log data comprises: a user identification, the current time of the system, and the bed presence rate.

Further, the sleep leaving-bed alarming method of the invention,

the sensor includes: the pressure sensor is used for monitoring the pressure bearing state of the bed plate, the vibration sensor is used for monitoring the breathing state of a human body, and/or the temperature sensor is used for monitoring the body temperature of the human body;

the sign data comprises: vital sign data formed by the pressure signal of the pressure sensor, the vibration signal of the vibration sensor and/or the temperature signal of the temperature sensor.

The invention provides a sleep leaving alarm system for an intelligent bed, which comprises: the system comprises an intelligent bed, cloud data storage equipment, a server and a client;

the intelligent bed is provided with a main control box and a sensor; the main control box is connected with the sensor;

the sensor is used for collecting sign data of a human body on the intelligent bed;

the main control box is used for: storing the physical sign data to the cloud data storage device;

the server side comprises: the system comprises a sign data acquisition module, a bed leaving algorithm module, a bed leaving record updating module and an alarm message pushing module;

the sign data acquisition module is used for acquiring the sign data from the cloud data storage device and inputting the sign data into the bed leaving algorithm module;

the bed leaving algorithm module is used for outputting the bed-in rate according to the physical sign data, and if the bed-in rate exceeds a preset threshold range, the bed leaving state is judged;

the bed leaving record updating module is used for updating the user bed leaving record data in the user health monitoring data table if the bed leaving algorithm module judges that the bed is in a bed leaving state;

and the alarm message pushing module is used for pushing alarm information to the client if the bed leaving algorithm module judges that the bed is in a bed leaving state.

Further, in the sleep leaving-bed alarm system of the present invention, the leaving-bed algorithm module includes:

the system time submodule is used for acquiring the current time of the system;

the time period setting submodule is used for acquiring the alarm starting time, the alarm ending time and the alarm interval time set by a user, and dividing the time from the alarm starting time to the alarm ending time into time periods based on the alarm interval time;

and the bed rate calculation submodule is used for acquiring all the sign data in the time period of the current time of the system, calculating the data item quantity ratio of the sign data which is not empty in the time period to all the sign data in the time period, and taking the data item quantity ratio as the bed rate.

Further, in the sleep leaving-bed alarm system of the present invention, the leaving-bed algorithm module further includes: a legal verification module;

the legal verification module is used for:

after the alarm starting time, the alarm ending time and the alarm interval time set by a user are obtained, legal verification is carried out based on bed leaving algorithm parameters before the time from the alarm starting time to the alarm ending time is divided into time periods based on the alarm interval time, and if the result of the legal verification is judged to be illegal, the execution of the bed leaving algorithm model is stopped; wherein the bed exit algorithm parameters include: the user identification, the alarm starting time and the alarm ending time;

the legality check comprises:

if the alarm starting time is the same as the alarm ending time, judging that the alarm is illegal;

and acquiring the intelligent bed use state information of the user according to the user identification, and if the intelligent bed use state information of the user is in an inactivated state, judging that the intelligent bed use state information is illegal.

Further, the sleep leaving bed alarm system of the invention,

the validity check module is further configured to:

if the alarm ending time is greater than the alarm starting time, judging that the time state information is the same day;

if the alarm ending time is less than the alarm starting time, judging whether the time state information is the same day;

the bed exit record updating module is used for:

detecting bed exit record data of the system in the time period of the current time in the user health monitoring data table;

if the user health monitoring data table does not have the bed leaving record data of the user in the time period, newly establishing a piece of bed leaving record data of the user;

if the user health monitoring data table has the bed leaving record data of the user in the time period, further judging based on the time state information; if the time status information is the same day, updating the bed leaving record data; if the time state information is not the same day, newly establishing a piece of out-of-bed record data of the user;

wherein the bed exit log data comprises: a user identification, the current time of the system, and the bed presence rate.

Further, the sleep leaving bed alarm system of the invention,

the sensor includes: the pressure sensor is used for monitoring the pressure bearing state of the bed plate, the vibration sensor is used for monitoring the breathing state of a human body, and/or the temperature sensor is used for monitoring the body temperature of the human body;

the sign data comprises: vital sign data formed by the pressure signal of the pressure sensor, the vibration signal of the vibration sensor and/or the temperature signal of the temperature sensor.

The invention also provides a storage medium storing computer program instructions for execution according to the sleep-out-of-bed alarm method of the invention.

According to the sleep leaving-bed alarm method, system and storage medium for the intelligent bed, the main control box of the intelligent bed controls the sensor arranged on the intelligent bed to acquire the physical sign data of a human body on the intelligent bed and upload the physical sign data to the cloud end, management of the physical sign data is facilitated, when the leaving-bed monitoring is needed, the system server acquires the corresponding physical sign data of a corresponding user from the cloud end, inputs a leaving-bed algorithm model to further obtain a judgment result of whether the user leaves the bed, updates data at the server end according to the judgment result and pushes an alarm message to the client end, a simple and accurate leaving-bed alarm scheme is realized under the intelligent bed system, medical equipment such as a breathing machine and a heartbeat instrument is not needed, and a healthy and safe intelligent home system is provided for the user.

Drawings

Other features, objects and advantages of the invention will become more apparent upon reading of the detailed description of non-limiting embodiments made with reference to the following drawings:

fig. 1 is a schematic structural diagram of an intelligent bed according to an embodiment of the invention;

fig. 2 is a schematic flow chart of a sleep leaving alarm method for an intelligent bed according to an embodiment of the present invention;

FIG. 3 is a schematic flow chart illustrating operation of an out-of-bed algorithm model according to an embodiment of the present invention;

FIG. 4 is a schematic flow chart of the legal verification of the bed exit algorithm model according to the embodiment of the present invention;

FIG. 5 is a flow chart illustrating the updating of the data of the bed exit record according to the embodiment of the present invention;

FIG. 6 is a schematic structural diagram of a sleep exit alarm system for an intelligent bed according to an embodiment of the present invention;

fig. 7 is a schematic structural diagram of a sleep leaving alarm system for an intelligent bed according to another embodiment of the present invention.

Detailed Description

The present invention is described in further detail below with reference to the attached drawing figures.

The intelligent bed of the embodiment of the invention comprises: a main control box and an access unit.

Specifically, the main control box is used for overall control of the electric bed, and the main control unit is arranged in the main control box. The access unit receives and executes the control command sent by the main control unit.

The access unit includes: the short-distance communication/control unit corresponds to the functional modules such as the driving motor, the massage module, the aromatherapy module, the physiological monitoring module, the environment monitoring module and the lighting equipment. Each functional module is correspondingly provided with an access unit. The near field communication includes: bluetooth (Bluetooth) communication; NFC (Near Field Communication ) Communication; WIFI (Wireless-Fidelity) communication; ZigBee (Zigbee) communication, based on IEEE802.15.4 standard low power consumption LAN protocol; LoRa communication, low power wireless wide area network for IoT (Internet of Things).

The massage module can comprise a physical vibrator and the like, is started according to the instruction of the main control unit and controls the intensity, and massages the human body on the bed body.

The fragrance module can adopt a heater to heat the fragrance body, so that the fragrance body emits fragrance, and the fragrance module is controlled by the main control unit.

The physiological monitoring module can adopt a pressure sensor, a body temperature monitor, a blood oxygen monitor and the like, and is used for monitoring the physiological condition of the human body on the bed body according to the control of the main control unit and acquiring physical sign data.

The environment monitoring module mainly adopts a temperature sensor, a light sensation sensor, a sound sensor and the like, and is used for monitoring the surrounding environment of the bed body according to the control of the main control unit, acquiring environment data, and further controlling the lighting equipment to adjust the ambient light according to the environment data.

And the illumination control equipment is used for controlling the brightness, the switch, the color change and the like of the lamp light according to the control of the main control unit.

Fig. 1 is a schematic structural diagram of an intelligent bed according to an embodiment of the present invention, and as shown in fig. 1, the intelligent bed 90 may further include: a driving motor (not shown) and a bed plate 91.

The driving motor can drive the bed board 91 to turn over to enable the electric bed body to form a specific shape, and a better sleeping posture is provided for a human body.

Fig. 2 is a schematic flow chart of a sleep leaving alarm method for an intelligent bed according to an embodiment of the present invention, and as shown in fig. 2, the sleep leaving alarm method for the intelligent bed according to the embodiment of the present invention includes:

and S101, controlling the sensor to collect sign data by the main control box.

The main control box and the sensor are connected and arranged on the intelligent bed, and the physical sign data are derived from a human body on the intelligent bed. For example, a pressure blanket is arranged on the intelligent bed to monitor the pressure distribution of the human body on the intelligent bed, a mattress with specific hardness for making the pressure distribution of the human body more uniform can be recommended to a user based on the pressure distribution of the human body, or the pressure distribution of the human body on the intelligent bed is made more uniform by adjusting the rotation angle of the bed plate, so that the maintenance of lumbar vertebrae and cervical vertebrae is facilitated. The pressure blanket is equipped with pressure sensor, and pressure sensor gathers the pressure signal that intelligent bed human body produced, and the main control unit of main control box acquires pressure signal, and then obtains the sign data based on this pressure signal.

Besides the pressure sensor for monitoring the pressure-bearing state of the bed plate, the sensor provided by the embodiment of the invention can also adopt a vibration sensor for monitoring the respiratory state of a human body and a temperature sensor for monitoring the body temperature of the human body, and correspondingly, the physical sign data comprises: vital sign data formed by a pressure signal of the pressure sensor, vital sign data formed by a vibration signal of the vibration sensor, and vital sign data formed by a temperature signal of the temperature sensor. In addition, other sensors for detecting vital signs may be used with the smart bed of embodiments of the present invention.

Each sensor converts the signal into an electric signal, inputs the electric signal into a central processing unit, filters an environmental noise signal through filtering, and converts the electric signal into a digital signal through Fourier transform, so that various vital sign data such as heart rate, respiration, body movement, body temperature and the like are obtained.

And S102, the main control box stores the sign data to a cloud data storage device.

Wherein, high in the clouds data storage includes: the server is used for cloud data storage, such as a server adopted by a cloud disk, a cloud data warehouse and the like.

And S103, the server side acquires the sign data from the cloud data storage device and inputs the sign data into a local bed exit algorithm model.

Wherein, the bed exit algorithm model is deployed at the server side. The input of the bed leaving algorithm model is sign data, and the output is the bed rate. The working principle of the bed exit algorithm model will be discussed in the following with emphasis.

And step S104, the server side obtains the bed-in rate output by the bed-leaving algorithm model, if the bed-in rate exceeds the range of a preset threshold value, the server side updates the user bed-leaving record data in a local user health monitoring data table, and pushes alarm information to the client side.

The user health monitoring data table is deployed at the server side and comprises a plurality of data records which can reflect the health condition of the user, such as user pressure distribution monitoring records, body temperature monitoring records, heart rate monitoring records, respiration monitoring records and the like besides the bed leaving record data. The server side provides an integral scheme for monitoring the health of the user, and the acquired physical sign data is sorted and aggregated into various physiological index monitoring records of the intelligent bed user according to the data format of the user health monitoring data table, so that more comprehensive and accurate health data service is provided.

Wherein, leave bed alarm system includes: client and server. The user sets a bed leaving alarm option through the client, and the server provides a bed leaving alarm service. The client can adopt an APP (Application) arranged on the intelligent terminal, after a user sets a bed leaving alarm option through the client, a bed leaving alarm service is started, the server periodically acquires sign data from the cloud data storage device, inputs the sign data into a bed leaving algorithm model arranged on the server, and outputs the bed leaving algorithm model according to the sign data. When the bed rate is maintained within the normal value range, the intelligent bed user is basically positioned on the intelligent bed. If the bed rate exceeds the normal numerical range, the intelligent bed user is in a bed leaving state, the user bed leaving record data is updated at the server side, and alarm information is pushed to the client side according to the setting of the bed leaving alarm service.

In one embodiment of the invention, a user A sets a bed leaving alarm service through a client to monitor the bed leaving state of a user B using an intelligent bed, if the user B leaves the bed and does not return for a long time, the bed leaving rate output by a bed leaving algorithm model exceeds a preset threshold range, the bed leaving record data of the user B is searched and updated in a user health monitoring table of a server according to the identification of the user B, and bed leaving alarm information is pushed to a terminal of the user A. The user a may be, for example, a relative of the user B, and may also push out-of-bed alarm information to a terminal of the user C, for example, a medical institution worker.

Wherein the bed exit log data comprises: a user identification, the current time of the system, and the bed presence rate. The user identification comprises a user identification of the intelligent bed user. Furthermore, the bed exit log data may also include: intelligent bed identification, bed presence status based on bed presence rate determinations, historical bed presence rate statistics, and the like.

In one embodiment of the invention, the preset threshold corresponding to the user identifier for the intelligent bed is adjusted according to the historical data in the user bed exit record data. The historical quantity of the bed leaving state information in the user bed leaving record is in an inverse proportional relation with the preset threshold value. For example, if the bed leaving state information of a certain intelligent bed user appears in the bed leaving record for multiple times, which indicates that the intelligent bed user appears the bed leaving condition for multiple times, the user needs to pay attention to the user, and at this time, the preset threshold is reduced, the sensitivity of bed leaving judgment is improved, and the bed leaving risk of the user is reduced.

Fig. 3 is a schematic flow chart of operation of the bed exit algorithm model according to the embodiment of the present invention, and as shown in fig. 3, in the sleep bed exit alarm method according to the embodiment of the present invention, the flow of the bed exit algorithm model outputting the bed presence rate based on the physical sign data includes:

step S201, obtain the current time of the system.

After the bed leaving algorithm model is started, the current time of the bed leaving alarm system is firstly obtained. Since the cloud data storage device may adopt an overseas time zone, and cannot present the time zone in which the user is located, the bed leaving alarm service needs to acquire the current time of the time zone in which the service is provided.

Step S202, obtaining the alarm starting time, the alarm ending time and the alarm interval time set by the user.

The client generally only needs to provide the bed leaving alarm options of the alarm starting time, the alarm ending time and the alarm interval time for the user to select, so that the user operation is facilitated, and the calculation requirement of the client is reduced. For example, the user sets the alarm on time to be 21:00, the alarm off time to be 8:00, and the alarm interval time to be 1 hour. And after the bed leaving alarm service is started, the bed leaving alarm service is started according to a preset time node of the bed leaving alarm service, and the operation of the bed leaving algorithm model is controlled. It is necessary to ensure that at least one preset time node for the bed leaving alert service is provided within each alert interval, for example, the bed leaving alert service is set to be started every 15 minutes to ensure that the bed leaving alert service is started at the beginning of each alert interval.

And step S203, carrying out legal verification based on the bed leaving algorithm parameters, and stopping the execution of the bed leaving algorithm model if the result of the legal verification is judged to be illegal.

Wherein the bed exit algorithm parameters include: the user identification, the alarm starting time and the alarm ending time. The step of legal verification can also be omitted and replaced by other technical means. The steps of the legal verification will be discussed with emphasis below.

And step S204, dividing the time from the alarm starting time to the alarm ending time into time periods based on the alarm interval time.

After the bed leaving algorithm model obtains the alarm starting time, the alarm ending time and the alarm interval time set by the user, the time is uniformly segmented by the alarm interval time, for example, the time is divided into 11 time segments from 21:00 to 8:00 in the next day based on the alarm interval of each hour.

Step S205, all the sign data in the time period of the current time of the system are obtained, the ratio of the number of data items of the sign data which are not empty in the time period to the number of all the sign data in the time period is calculated, and the ratio of the number of data items is used as the bed rate.

For example, at 1:15, the bed exit warning service is started, pressure sign data of 1:00 to 2:00 is obtained, and whether each piece of pressure sign data is empty data is judged. The null data indicates that the pressure sensor does not detect a pressure detection signal, and that the user may be out of bed. Dividing the number of pieces of pressure sign data with non-empty data in the time period of 1:00 to 2:00 by the total number of the pressure sign data in the time period to obtain the bed-in rate. For example, if the user is at 1: 18, if the separation bed is not returned, the bed rate is reduced along with the increase of the number of hollow data in the pressure sign data, and when the preset threshold value is broken, the user is indicated to be out of the bed and not returned for a long time, and an alarm can be given. If the user leaves the bed at 1:00, namely the user does not return to the bed, the bed leaving rate is almost 0 at 1:15, and then an alarm is given immediately. By setting the bed leaving alarm service starting time and the alarm interval time, balance can be carried out between the calculation resources of the service end and the judgment of the bed leaving risk of the user, the waste of the calculation resources is reduced as much as possible under the condition that the bed leaving risk of the user is avoided, and if the bed leaving alarm service is continuously started, the calculation pressure of the service end is overlarge and the resources are wasted. Moreover, the bed rate based on the data ratio which is not empty is matched with the preset threshold value, and false alarm can be avoided. Because the intelligent bed is domestic, in order to reduce cost, the sensitivity of the sensor is difficult to reach the medical equipment standard, certain detection error is provided, and the detection error can be offset by the matching setting of the ratio of the non-empty data in the time period and the preset threshold value, so that accurate alarm is ensured. Moreover, the bed leaving time of the user is too long, so that the quantity of empty data of the pressure sign data is increased rapidly, the bed rate is reduced rapidly, and the bed leaving algorithm model achieves the effect of automatically judging the bed leaving time.

Besides the pressure sign data, the bed-in rate can be calculated for other data capable of representing vital signs, such as temperature sign data, respiration sign data, heart rate sign data, and the like. The in-bed rate calculation method can be used for calculating the in-bed rate of each kind of physical sign data independently and calculating the in-bed rate of aggregated data of various kinds of physical sign data, only whether the data is empty is paid attention to in-bed rate, so that the in-bed rate calculation is carried out based on the mixture of various kinds of physical sign data, the detection errors of the sensors can be further counteracted, and if some sensors are in failure, the overall operation of the in-bed rate is not influenced, and the risk of leaving the bed of a user is reduced.

Fig. 4 is a schematic flow chart of legal verification of the bed exit algorithm model in the embodiment of the present invention, and as shown in fig. 4, in the sleep bed exit alarm method in the embodiment of the present invention, the legal verification flow of the bed exit algorithm model includes:

and S301, if the alarm starting time is the same as the alarm ending time, judging that the alarm is illegal.

For example, if the user sets the time to 21:00, the verification algorithm determines that the time setting is illegal, and notifies the client to reset the legal time.

Step S302, if the alarm ending time is greater than the alarm starting time, the time state information is judged to be the same day.

Step S303, if the alarm ending time is less than the alarm starting time, judging that the time state information is not the same day.

The steps S302 and S303 are not for legal judgment, but provide judgment basis for updating the bed exit record data, and the updating of the bed exit record data will be described in detail below. Because the alarm starting time and the alarm ending time belong to bed leaving algorithm parameters and the verification algorithm needs to carry out validity verification according to the alarm starting time and the alarm ending time, the two judgment flows belong to program modules for legal verification, and programming and debugging are facilitated.

Step S304, obtaining the using state information of the intelligent bed of the user according to the user identification, and if the using state information of the intelligent bed of the user is in an inactivated state, judging that the using state information is illegal.

The intelligent bed monitoring system comprises a user identification, a plurality of intelligent beds, a user identification server and a monitoring server, wherein the user identification can be used for inquiring the intelligent bed use record of the user according to the identification of the intelligent bed user, acquiring information such as the intelligent bed model, the sensor model arranged on the intelligent bed, the intelligent bed use state information and the like, if the user identification server is provided with the plurality of intelligent beds, the use state of the intelligent bed needs to be inquired, and only the activated intelligent bed, namely the intelligent bed in use, is subjected to bed leaving alarm service. The using state information of the intelligent bed is the using state automatically reported by the main control box and is stored in the server, and the using state information may be different from the using state of the bed leaving alarm service, so that the using state of the intelligent bed needs to be inquired to ensure that the bed leaving alarm service is provided for the activated intelligent bed. The legal verification is completed before the bed rate, and the physical sign data is inquired according to the activated sensor model of the intelligent bed so as to obtain the data required by the bed leaving alarm service.

In addition, if the intelligent bed is a double-person bed, the bed side information can be set in the using state information of the intelligent bed, and the bed leaving alarm service is provided only for the activated bed side. For example, the user B, D uses the double intelligent bed simultaneously, the bed side information of the double intelligent bed includes two pieces, if the bed leaving alarm service is provided only for the user B, the bed side information of the intelligent bed used by the user B is activated only, the bed leaving alarm service is based on legal verification, the bed leaving operation is performed only on the physical sign data of the sensor at the bed side of the user B, the interference of the user D data is avoided, and the bed leaving alarm service can be applied to the double intelligent bed.

Fig. 5 is a schematic flowchart of a process of updating bed exit record data according to an embodiment of the present invention, and as shown in fig. 5, in the sleep bed exit alarm method according to the embodiment of the present invention, the process of updating the bed exit record data of the user in the local user health monitoring data table by the server includes:

step S401, detecting the bed leaving record data of the system in the time period of the current time in the user health monitoring data table.

Step S402, if there is no recorded data of leaving bed of the user in the user health monitoring data table in the time period, creating a new recorded data of leaving bed of the user.

Step S403, if there is recorded data of leaving bed of the user in the user health monitoring data table in the time period, further determining based on the time status information.

Step S404, if the time status information is the same day, updating the bed leaving record data; and if the time state information is not the same day, newly establishing a piece of out-of-bed record data of the user.

Wherein, according to the step S302 and the step S303, for example, the alarm opening time is 21:00, the alarm ending time is 8:00, and the verification algorithm determines that the two are not the same day and cross night. The alarm starting time is 1:00, the alarm ending time is 8:00, and the verification algorithm judges that the alarm is the same day and does not cross the night. The judgment is carried out through a server side checking algorithm, and the calculation pressure of a client side can be avoided.

If the bed rate exceeds a preset threshold value, updating of the bed leaving record data is started, and the bed leaving record data of the user in the corresponding alarm interval time period is inquired in the cloud user health monitoring data table according to the intelligent bed user identification. And if the bed leaving alarm record of the user is not inquired, establishing a new bed leaving alarm record. If the bed leaving record data is inquired, whether the data belong to the condition that the data are not on the same day and cross the night or belong to the condition that the data belong to the same day and do not cross the night is further judged. If the current data is not the same day and is over night, the current data is the previous day, and a new piece of the user data needs to be created. If the data are recorded on the same day and not cross night, the original data recorded on the bed are updated without newly creating the data recorded on the bed. And at the same time of updating, the server side sends an alarm to the client side.

Wherein the bed exit log data comprises: a user identification, the current time of the system, and the bed presence rate. The bed leaving record data is used for counting the bed rate of the user according to the alarm time interval, besides the bed leaving alarm, the collected bed leaving record data can also reflect the bed leaving condition of the user, and the bed leaving record data can be used for further analyzing the sleep condition of the user based on the sorting and counting of the bed leaving record data, so that a reasonable sleep solution is provided for the user conveniently or a health monitoring scheme is provided.

Fig. 6 is a schematic structural diagram of a sleep exit warning system for an intelligent bed according to an embodiment of the present invention, and as shown in fig. 6, the sleep exit warning system for an intelligent bed according to an embodiment of the present invention includes: the smart bed 10, the cloud data storage device 20, the server 30 and the client 40.

The intelligent bed is provided with a main control box 11 and a sensor 12, wherein the main control box 11 is connected with the sensor 12.

The sensor 12 is used for collecting sign data of a human body on the intelligent bed 10;

the main control box 11 is used for: storing the physical sign data in the cloud data storage device 20;

the server 30 includes: the system comprises a sign data acquisition module 31, a bed leaving algorithm module 32, a bed leaving record updating module 33 and an alarm message pushing module 34;

the sign data acquisition module 31 is configured to acquire the sign data from the cloud data storage device 20, and input the sign data into the bed exit algorithm module 32;

the bed leaving algorithm module 32 is configured to output a bed-in rate according to the physical sign data, and determine that the patient is in a bed leaving state if the bed-in rate exceeds a preset threshold range;

a bed exit record updating module 33, configured to update the user bed exit record data in the user health monitoring data table if the bed exit algorithm module 32 determines that the user is in a bed exit state;

and an alarm message pushing module 34, configured to push alarm information to the client if the bed leaving algorithm module 32 determines that the bed is in a bed leaving state.

Fig. 7 is a schematic structural diagram of a sleep exit warning system for a smart bed according to another embodiment of the present invention, and as shown in fig. 7, a sleep exit warning system for a smart bed according to another embodiment of the present invention includes: the smart bed 10, the cloud data storage device 20, the server 30 and the client 40.

The intelligent bed is provided with a main control box 11 and a sensor 12, wherein the main control box 11 is connected with the sensor 12;

the sensor 12 is used for collecting sign data of a human body on the intelligent bed 10;

the main control box 11 is used for: storing the physical sign data in the cloud data storage device 20;

the server 30 includes: the system comprises a sign data acquisition module 31, a bed leaving algorithm module 32, a bed leaving record updating module 33 and an alarm message pushing module 34;

the sign data acquisition module 31 is configured to acquire the sign data from the cloud data storage device 20, and input the sign data into the bed exit algorithm module 32;

the bed leaving algorithm module 32 is configured to output a bed-in rate according to the physical sign data, and determine that the patient is in a bed leaving state if the bed-in rate exceeds a preset threshold range;

a bed exit record updating module 33, configured to update the user bed exit record data in the user health monitoring data table if the bed exit algorithm module 32 determines that the user is in a bed exit state;

and an alarm message pushing module 34, configured to push alarm information to the client if the bed leaving algorithm module 32 determines that the bed is in a bed leaving state.

Wherein the sensor comprises: the pressure sensor is used for monitoring the pressure bearing state of the bed plate, the vibration sensor is used for monitoring the breathing state of a human body, and/or the temperature sensor is used for monitoring the body temperature of the human body;

the sign data comprises: vital sign data formed by the pressure signal of the pressure sensor, the vibration signal of the vibration sensor and/or the temperature signal of the temperature sensor.

Wherein the bed exit algorithm module 32 comprises:

the system time submodule 321 is configured to obtain a current time of the system;

the time period setting submodule 322 is configured to obtain alarm start time, alarm end time, and alarm interval time set by a user, and divide time from the alarm start time to the alarm end time into time periods based on the alarm interval time;

the bed rate calculation submodule 323 is configured to obtain all the vital sign data in the time period where the current time of the system is located, calculate a data item quantity ratio between the vital sign data that is not empty in the time period and all the vital sign data in the time period, and use the data item quantity ratio as the bed rate.

A legal verification module 324, configured to, after obtaining the alarm start time, the alarm end time, and the alarm interval time set by the user, perform legal verification based on the bed exit algorithm parameter before dividing the time from the alarm start time to the alarm end time into time periods based on the alarm interval time, and if a result of the legal verification is determined to be illegal, stop execution of the bed exit algorithm model.

Wherein the bed exit algorithm parameters include: the user identification, the alarm starting time and the alarm ending time.

The legality check comprises:

if the alarm starting time is the same as the alarm ending time, judging that the alarm is illegal;

if the alarm ending time is greater than the alarm starting time, judging that the time state information is the same day;

if the alarm ending time is less than the alarm starting time, judging whether the time state information is the same day;

and acquiring the intelligent bed use state information of the user according to the user identification, and if the intelligent bed use state information of the user is in an inactivated state, judging that the intelligent bed use state information is illegal.

The bed exit record updating module 33 is specifically configured to:

detecting bed exit record data of the system in the time period of the current time in the user health monitoring data table;

if the user health monitoring data table does not have the bed leaving record data of the user in the time period, newly establishing a piece of bed leaving record data of the user;

if the user health monitoring data table has the bed leaving record data of the user in the time period, further judging based on the time state information; if the time status information is the same day, updating the bed leaving record data; and if the time state information is not the same day, newly establishing a piece of out-of-bed record data of the user.

Wherein the bed exit log data comprises: a user identification, the current time of the system, and the bed presence rate.

The sleep leaving alarm system of the embodiment of the invention is an implementation device of the sleep leaving alarm method of the embodiment of the invention, and specific principles refer to the leaving alarm method of the embodiment of the invention, which is not described herein again.

The present invention also provides a storage medium storing computer program instructions for execution according to any one of the programming methods of fig. 2-5 of the present invention.

The invention also provides a storage medium storing computer program instructions for performing the bed exit warning method according to an embodiment of the invention.

In a typical configuration of the invention, the storage media include permanent and non-permanent, removable and non-removable media, and the storage of information may be accomplished by any method or technology. The information may be computer readable instructions, data structures, program means, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), other types of Random Access Memory (RAM), Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory or other memory technology, compact disc read only memory (CD-ROM), Digital Versatile Disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission medium that can be used to store information that can be accessed by a computing device.

In one embodiment of the present invention, there is also provided a computing device comprising: a memory for storing computer program instructions and a processor for executing the computer program instructions, wherein the computer program instructions, when executed by the processor, trigger the computing device to perform the method of embodiment one or embodiment two of the present invention.

In one exemplary configuration of the invention, the computing devices each include one or more processors (CPUs), input/output interfaces, network interfaces, and memory.

The memory may include forms of volatile memory in a computer readable medium, Random Access Memory (RAM) and/or non-volatile memory, such as Read Only Memory (ROM) or flash memory (flash RAM). Memory is an example of a computer-readable medium.

The computing device includes, but is not limited to, any electronic product that can perform human-computer interaction with a user (e.g., human-computer interaction through a touch panel), such as a mobile electronic product, e.g., a smart phone, a tablet computer, and the like, and the mobile electronic product may employ any operating system, e.g., an android operating system, an iOS operating system, and the like.

In the embodiments of the present application, the sequence numbers of the processes do not mean the execution sequence, and the execution sequence of the processes should be determined by the functions and the inherent logic of the processes, and should not limit the implementation processes of the present application.

In addition, the term "and/or" herein is only one kind of association relationship describing an associated object, and means that there may be three kinds of relationships, for example, a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.

The steps of a method or algorithm described in connection with the disclosure herein may be embodied in hardware or in software instructions executed by a processor. The software instructions may be comprised of corresponding software modules that may be stored in Random Access Memory (RAM), flash memory, Read Only Memory (ROM), Erasable Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), registers, a hard disk, a removable disk, a compact disc read only memory (CD-ROM), or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such the processor can read information from, and write information to, the storage medium. Of course, the storage medium may also be integral to the processor. The processor and the storage medium may reside in an ASIC. In addition, the ASIC may reside in a terminal device or a core network element. Of course, the processor and the storage medium may reside as discrete components in a terminal device or a core network element.

In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the procedures or functions described in accordance with the present application are generated, in whole or in part. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in or transmitted over a computer-readable storage medium. The computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire (e.g., coaxial cable, fiber optic, Digital Subscriber Line (DSL)), or wirelessly (e.g., infrared, wireless, microwave, etc.). The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., Digital Versatile Disk (DVD), or a semiconductor medium (e.g., Solid State Disk (SSD)), etc.

The above-mentioned embodiments, objects, technical solutions and advantages of the present application are further described in detail, it should be understood that the above-mentioned embodiments are only examples of the present application, and are not intended to limit the scope of the present application, and any modifications, equivalent substitutions, improvements and the like made on the basis of the technical solutions of the present application should be included in the scope of the present application.

22页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:一种地质灾害滑坡监测方法

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!