Sleep assistance method based on mattress, mattress and storage medium
By integrating vital sign sensors and communication modules on the mattress, we can judge the status of the human body and pets and control the smart pet equipment, the problem of pet awake state affecting the owner's sleep is solved and the quality of sleep is improved.
Patent Information
- Application Number
- CN202211046270.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-30
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2042-08-30
AI Technical Summary
Intermittent sleep of pets may affect the owner's sleep quality, especially when the owner and the pet fall asleep together, the pet's awake state will lead to slapping, screaming, and fighting around the owner, affecting the owner's sleep.
By integrating vital sign sensors and communication modules on the mattress, collect and separate vital sign data of the human body and pet, and judge the sleep state of the human body and pet. If the human body is sleeping and the pet is awake, send control instructions to the smart pet equipment. For example, sound or luminous operation or feeder drops food to attract the attention of the pet and distract its impact on the owner's sleep.
Effectively reduce the impact of pets on the owner's sleep quality. By attracting the attention of pets, reducing the behavior of slapping and spinning around, and even leading the pets to other places to play, opening the distance between pets and owners, improving the owner's sleep quality.
Smart Images

Figure CN115381404B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of intelligent furniture, and in particular to a mattress-based sleep assistance method, a mattress and a storage medium. Background Art
[0002] With the improvement of economic level, more and more people choose to keep pets at home. In addition, some pet owners can accept their pets sleeping in the same bed with them. However, in practice, it is found that there are certain differences in the sleep rhythms of animals and humans. For example, humans can sleep continuously for 6-8 hours, but cats can only sleep continuously for a maximum of 4 hours. The sleep rhythms of most animals are similar to those of cats, mostly intermittent sleep. They may sleep multiple times a day, but each sleep duration is shorter. Therefore, when the owner and the pet fall asleep together, they are prone to the problem that the intermittent sleep of the pet may affect the owner's sleep quality. Summary of the invention
[0003] The embodiments of the present application disclose a mattress-based sleep assistance method, a mattress, and a storage medium, which can attract the attention of an awake pet and reduce the impact of the pet on the owner's sleep quality.
[0004] The embodiment of the present application discloses a sleep assistance method based on a mattress, wherein the mattress comprises: a vital sign sensor and a communication module, and the mattress is communicatively connected with a smart pet appliance based on the communication module. The method comprises:
[0005] collecting vital sign data through the vital sign sensor;
[0006] Separating human vital sign data and pet vital sign data from the collected vital sign data;
[0007] If it is determined based on the human vital signs data that the human body is in a sleeping state and based on the pet vital signs data that the pet is in an awake state, a control instruction is sent to the smart pet appliance through the communication module; the control instruction is used to trigger the smart pet appliance to perform an operation corresponding to the control instruction to attract the attention of the pet.
[0008] In one embodiment, the smart pet appliance comprises: a smart pet toy; the control instruction is used to trigger the smart pet toy to perform a sound operation or a light operation; and / or,
[0009] The smart pet appliance comprises: a smart feeder; and the control instruction is used to trigger the smart feeder to drop food.
[0010] In one embodiment, after determining that the human body is in a sleeping state according to the human vital sign data and determining that the pet is in an awake state according to the pet vital sign data, and before sending a control instruction to the smart pet appliance through the communication module, the method further includes:
[0011] Determining whether the pet is in motion;
[0012] And, sending a control instruction to the smart pet appliance through the communication module includes:
[0013] If it is determined that the pet is in motion, a control instruction is sent to the smart pet appliance through the communication module.
[0014] In one embodiment, the mattress comprises: at least two pressure sensors arranged at different positions; and the determining whether the pet is in motion comprises:
[0015] Acquire pressure value data collected by each of the at least two pressure sensors within a preset time period;
[0016] Determine the number of the pressure sensors having pressure value changes according to the pressure value data collected by each of the pressure sensors;
[0017] If the number of the pressure sensors with pressure value changes is greater than a number threshold, it is determined that the pet is in motion.
[0018] In one embodiment, the mattress is also in communication with an electronic collar worn by the pet; the method further comprises:
[0019] If it is determined that the human body is in an awake state according to the human body vital sign data and the pet is in a sleeping state according to the pet vital sign data, then it is determined whether the current moment is in a preset sleeping period;
[0020] If the current time is outside the sleeping period, a vibration instruction is sent to the electronic collar worn by the pet through the communication module, so that the electronic collar performs a vibration operation in response to the vibration instruction.
[0021] The embodiment of the present application discloses a mattress, comprising: a vital sign sensor, a communication module, a separation module and a first judgment module; the communication module is communicatively connected with a smart pet appliance;
[0022] The vital sign sensor is used to collect vital sign data;
[0023] The separation module is used to separate human vital sign data and pet vital sign data from the collected vital sign data;
[0024] The first judgment module is used to judge whether the human body is in a sleeping state according to the human body vital sign data, and to judge whether the pet is in a waking state according to the pet vital sign data;
[0025] The communication module is used to send a control instruction to the smart pet appliance after the first judgment module determines that the human body is in a sleeping state and the pet is in an awake state; the control instruction is used to trigger the smart pet appliance to perform an operation corresponding to the control instruction to attract the attention of the pet.
[0026] In one embodiment, the mattress further comprises:
[0027] The second judgment module is further used to judge whether the pet is in motion after the first judgment module judges that the human body is in a sleeping state and the pet is in an awake state, and before the communication module sends a control instruction to the smart pet appliance;
[0028] The communication module is further used to send a control instruction to the smart pet appliance after the second determination module determines that the pet is in motion.
[0029] In one embodiment, the mattress further comprises: at least two pressure sensors arranged at different positions; and a second judgment module comprising:
[0030] An acquisition unit, used to acquire pressure value data respectively collected by each of the at least two pressure sensors within a preset time period;
[0031] A statistical unit, used to determine the number of the pressure sensors having pressure value changes according to the pressure value data collected by each of the pressure sensors;
[0032] A determination unit is configured to determine that the pet is not walking on the mattress when the number of the pressure sensors having pressure value changes is less than or equal to a number threshold.
[0033] An embodiment of the present application discloses a mattress, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor implements any one of the mattress-based sleep assistance methods disclosed in the embodiment of the present application.
[0034] The embodiment of the present application discloses a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, any mattress-based sleep assistance method disclosed in the embodiment of the present application is implemented.
[0035] Compared with the related art, the embodiments of the present application have the following beneficial effects:
[0036] The mattress can determine whether the human body is in a sleeping state and the pet is in an awake state based on the collected vital sign data, and after determining that the human body is in a sleeping state and the pet is in an awake state, send a control instruction to the smart pet appliance, so that the smart pet appliance can respond to the control instruction and perform an operation corresponding to the control instruction to attract the pet's attention. After the pet's attention is distracted, the behavior of patting the owner and circling around the owner is reduced, and the pet can even be led away from the mattress and attracted to other places to play, thereby reducing the contact between the pet and the owner who has fallen asleep, increasing the distance between the pet and the owner, and reducing the impact of the pet on the owner's sleep quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0038] Figure 1 is a schematic diagram of an application scenario of a mattress-based sleep assistance method disclosed in an embodiment;
[0039] Figure 2 is a schematic flow chart of a mattress-based sleep assistance method disclosed in an embodiment;
[0040] Figure 3 is a schematic flow chart of another mattress-based sleep assistance method disclosed in an embodiment;
[0041] Figure 4 is a schematic flow chart of another mattress-based sleep assistance method disclosed in an embodiment;
[0042] Figure 5 is a structural schematic diagram of a mattress disclosed in an embodiment;
[0043] Figure 6 It is a schematic structural diagram of another mattress disclosed in an embodiment. DETAILED DESCRIPTION
[0044] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0045] It should be noted that the terms "including" and "having" and any variations thereof in the embodiments of the present application and the accompanying drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device including a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.
[0046] When owners and pets sleep together, there is a risk that the pets' intermittent sleep may affect the owner's sleep quality. It has been observed that after waking up, pets may slap their owners with their paws, make noises, or play around with their owners, all of which may affect the owner's sleep quality.
[0047] The embodiments of the present application disclose a mattress-based sleep assistance method, a mattress, and a storage medium, which can attract the attention of an awake pet and reduce the impact of the pet on the owner's sleep quality.
[0048] The following are detailed descriptions of each.
[0049] See also Figure 1 , Figure 1 The following is a schematic diagram of an application scenario of a mattress-based sleep assistance method disclosed in an embodiment. Figure 1 As shown, the mattress 10 can be connected to the smart pet appliance 20. The smart pet appliance 20 can include smart pet toys, smart feeders, etc., which are not specifically limited.
[0050] The mattress 10 may include at least a vital sign sensor and a communication module.
[0051] The vital sign sensor may include one or more of a heart rate sensor, a breathing sensor, and the like, without limitation.
[0052] Exemplarily, the vital sign sensor on the mattress 10 may be a non-contact vital sign sensor. For example, a vital sign sensor based on ultra-wide band (UWB) can collect vital sign data of any living being on the mattress.
[0053] The communication module may include: a Bluetooth communication module, a Wi-Fi communication module, an ultra-wideband UWB communication module, etc., without specific limitation.
[0054] The mattress 10 can establish a communication connection with the smart pet appliance 20 through the above-mentioned communication module, and perform data transmission based on the communication connection.
[0055] See also Figure 2 , Figure 2 The present invention is a flowchart of a mattress-based sleep aid method disclosed in an embodiment. The method can be applied to the mattress disclosed in the above embodiment and can be executed by a computing module such as an electronic control unit (ECU) and a microprocessing unit (MCU) of the mattress. Figure 2 As shown, the method may include the following steps:
[0056] 210. Collect vital sign data through vital sign sensors.
[0057] In the embodiment of the present application, the vital signs data may include heart rate data, breathing data, etc., which are not specifically limited. The type of vital signs data collected can be determined according to the type of life sensor. For example, if the mattress is equipped with a heart rate sensor, heart rate data can be collected; if the mattress is equipped with a breathing sensor, breathing data can be collected; if the mattress is equipped with the above two sensors, heart rate data and breathing data can be collected.
[0058] 220. Separate human vital signs data and pet vital signs data from the collected vital signs data.
[0059] In the embodiment of the present application, the human body and the pet are on the same mattress, and the vital sign data collected by the vital sign sensor is a mixture of the human body's human vital sign data and the pet's pet vital sign data. The data features of the human body's vital sign data and the pet's vital sign data have significant differences, and the two can be separated.
[0060] As an optional implementation, the mattress can extract data within the range of human vital signs data from the collected vital signs data as human vital signs data, and extract data within the range of pet vital signs data from the collected vital signs data as pet vital signs data. Exemplarily, if the collected vital signs data is heart rate data, the range of human vital signs data can be 60 beats / minute to 120 beats / minute, and the range of pet vital signs data can be 120 beats / minute to 140 beats / minute.
[0061] 230. Determine whether the human body is in a sleeping state based on the human vital signs data, and determine whether the pet is in an awake state based on the pet vital signs data; if the human body is in a sleeping state and the pet is in an awake state, execute step 240; otherwise, end this process.
[0062] In an embodiment of the present application, the vital signs data of a human body in a sleeping state and a waking state have significant differences. Exemplarily, the heart rate range of a human body in a sleeping state is generally 50 beats / minute to 70 beats / minute, and the heart rate range of a human body in a waking state may be 60 beats / minute to 100 beats / minute. The fluctuation of the heart rate data is reduced when the human body is in a sleeping state, while the fluctuation of the heart rate data may be more frequent when the human body is in a waking state. Therefore, the mattress can process the collected human vital signs data to determine whether the human body is in a sleeping state.
[0063] Correspondingly, there are significant differences in the vital signs data of pets when they are sleeping and awake, so the mattress can determine whether the pet is awake based on the collected vital signs data of the pet.
[0064] The aforementioned otherwise may include any of the following situations: both the human body and the pet are in a sleeping state, both the human body and the pet are in a wakeful state, or the human body is in a wakeful state and the pet is in a sleeping state.
[0065] 240. Send a control instruction to the smart pet appliance through the communication module.
[0066] After receiving the control instruction, the smart pet appliance can respond to the control instruction and perform an operation corresponding to the control instruction to attract the attention of the pet.
[0067] For example, if the mattress determines that the human body is in a sleeping state and the pet is in an awake state based on the vital signs data of the human body and the pet, the smart pet toy can be triggered to perform a sound operation or a light operation through a control instruction; and / or, the smart feeder can be triggered to drop food through a control instruction.
[0068] Optionally, the smart pet toy may pre-store multiple audio signals with different sound frequencies. After receiving the control instruction, the smart pet toy may determine an audio signal with a sound frequency outside the hearing range of the human ear from the multiple audio signals as a target audio signal. The smart pet toy may perform a sound generation operation including: playing the target audio signal. That is, when the smart pet toy performs a sound generation operation in response to the control instruction sent by the mattress, the audio signal played is an audio signal that cannot be heard by the human ear but can be heard by the pet, so as to further reduce the impact on the owner's sleep quality.
[0069] The sound, light and electricity effects of smart pet toys or the food that automatically drops from smart feeders can attract the pet's attention. Once the pet's attention is distracted, the pet's behaviors of patting the owner and circling around the owner will decrease. The pet can even be led away from the mattress and attracted to other places to play, thereby reducing the contact between the pet and the owner who has fallen asleep, increasing the distance between the pet and the owner, and reducing the impact of the pet on the owner's sleep quality.
[0070] See also Figure 3 , Figure 3 This is a schematic flow chart of another mattress-based sleep aid method disclosed in an embodiment. The method can be applied to the mattress disclosed in the above embodiment. Figure 3 As shown, the method may include the following steps:
[0071] 310. Collect vital sign data through vital sign sensors.
[0072] 320. Separate human vital signs data and pet vital signs data from the collected vital signs data.
[0073] 330. Determine whether the human body is in a sleeping state based on the human vital signs data, and determine whether the pet is in an awake state based on the pet vital signs data; if the human body is in a sleeping state and the pet is in an awake state, execute step 340; otherwise, end this process.
[0074] The implementation of steps 310 to 330 can refer to the above-mentioned embodiment, and will not be described in detail below.
[0075] 340. Determine whether the pet is in motion; if so, execute step 350; if not, end this process.
[0076] In the embodiment of the present application, the awake state of the pet may include the following two situations: 1. The pet is in a resting state; 2. The pet is in a moving state. When the pet is in a resting state, even if the pet is awake, the impact on the owner's sleep quality may be small; while when the pet is in a moving state, the pet has a greater impact on the owner's sleep quality. Therefore, after determining that the pet is awake, the mattress can further determine which stage of the awake state the pet belongs to.
[0077] It should be noted that smart pet appliances are generally not placed on the bed and are at a certain distance from the human body. When the human body is in a sleeping state, the operations performed by the smart pet appliances generally do not affect the owner's sleep quality, but to a certain extent, they also increase the risk of waking the owner. Therefore, in the embodiment of the present application, if the mattress determines that the pet is in a resting state of wakefulness, the mattress may not send control instructions for the smart pet appliances to reduce unnecessary interference; if the pet is in a state of awake movement, the mattress may execute the following step 350 to guide the pet to move away from the mattress by attracting the pet's attention.
[0078] As an optional embodiment, the mattress may include at least two pressure sensors disposed at different positions, and step 340 may include the following steps:
[0079] S11, obtaining the pressure value data collected by each pressure sensor within a preset time period. The preset time period can be set according to actual business needs, for example, 30 seconds, 1 minute, etc., and is not specifically limited.
[0080] S12. Determine the number of pressure sensors with pressure value changes based on the pressure value data collected by each pressure sensor. The pressure value changes may include: the pressure value change amount within a preset time period is not 0; or the pressure value change amount within a preset time period is greater than a preset change amount threshold, that is, a small range of pressure value changes can be considered as a sensitivity difference of the pressure sensor, and the small range of pressure value changes can be filtered.
[0081] S13. If the number of pressure sensors with pressure value changes is greater than the number threshold, it is determined that the pet is in motion. The number threshold can be set according to actual business needs, for example, it can be set to 2, 3, etc., and is not specifically limited. Optionally, the number threshold can be positively correlated with the setting density of the pressure sensors in the mattress. The higher the setting density of the pressure sensors, the larger the number threshold.
[0082] When the pet is in motion, all pressure sensors set within the pet's motion range may detect changing pressure values. For example, when the pet jumps from point A to point B on the mattress, the pressure values detected by the pressure sensors set around point A show a trend of first increasing and then decreasing, while the pressure values detected by the pressure sensors set around point B show a trend of gradually increasing. Moreover, the more pressure sensors with changing pressure values, the more likely it is that the pressure value changes are caused by the pet's motion; otherwise, if the number of pressure sensors with changing pressure values is small, it may be caused by differences in the sensitivity of the pressure sensors. In addition, since the owner is in a sleeping state, the frequency of human body movement on the mattress is low, and the pressure value changes caused by the human body are less likely.
[0083] Therefore, the mattress can accurately determine whether the pet is in motion based on the number of pressure sensors that have pressure value changes.
[0084] As another optional implementation, the mattress may also be connected to a camera device, and the camera device's field of view includes the mattress. The camera device may be a visible light camera, an infrared camera, etc., and is not specifically limited. The implementation of step 340 may include the following steps:
[0085] S21, obtaining a mattress image captured by a camera device.
[0086] S22, judging whether the pet is in motion based on the acquired mattress image. For example, the mattress image can be subjected to target recognition for the pet, and the image position of the pet in the mattress image of the current frame can be identified; the image position of the pet in the mattress image of the current frame is compared with the image position of the pet in the mattress image of the previous frame. If the image positions of the pet in the two mattress images are different, it can be determined that the pet is in motion.
[0087] 350. Send a control instruction to the smart pet appliance through the communication module.
[0088] It can be seen that in the aforementioned embodiment, after the mattress determines that the human body is in a sleeping state and the pet is in an awake state based on the collected vital signs data, it can further determine whether the pet is in motion. After determining that the pet is in motion, it sends a control instruction to the smart pet appliance to attract the pet's attention through the operation performed by the smart pet appliance in response to the control instruction, thereby more accurately triggering the smart pet appliance to perform related operations, thereby guiding the pet to move away from the mattress while reducing unnecessary interference to the owner.
[0089] In some embodiments, the smart pet appliance may include: electric pet toys, such as electric cat balls, electric mice, etc. The electric pet toys can move under the drive of a motor, for example, the electric cat ball can roll, and the electric mouse can be provided with rollers and move by the rollers. In the aforementioned step 350, the control instruction may include a moving direction, and the moving direction may be generated by the mattress. That is, before executing the aforementioned step 350, the following steps may also be included:
[0090] S31. The mattress can transmit a ranging signal with the electric pet toy based on the communication module, and determine the relative position of the electric pet toy relative to the mattress according to the transmission of the ranging signal. For example, the communication connection between the mattress and the electric pet toy can be a Bluetooth communication connection, and the ranging signal can be a Bluetooth ranging signal. The penetration point can determine the relative position of the electric pet toy relative to the mattress through the Bluetooth ranging method of the angle of arrival (AOA) or the angle of departure (AOD). Among them, the relative position may include relative orientation and relative distance.
[0091] S32: The mattress determines a first moving direction of the electric pet toy according to the relative position of the electric pet toy, wherein the first moving direction is a direction for increasing the relative distance between the electric pet toy and the mattress.
[0092] S33: The mattress generates a control instruction including a first moving direction.
[0093] The aforementioned step 350 may include: the mattress sends a control instruction including a first moving direction to the electric pet toy through the communication module.
[0094] That is, after the mattress determines that the human body is in a sleeping state and the pet is in an awake state, it can send a control instruction to the electric pet toy, and the control instruction can carry a first moving direction for increasing the relative distance between the electric pet toy and the mattress. After receiving the control instruction including the moving direction, the electric pet toy can respond to the control instruction and move in the first moving direction to attract the pet to a position away from the mattress.
[0095] As an optional implementation, after the mattress performs the aforementioned step S31 to determine the relative position of the electric pet toy with respect to the mattress, the mattress may further perform the following steps:
[0096] The mattress determines whether the relative distance between the electric pet toy and the mattress is greater than the distance threshold. Among them, the distance threshold can be set according to actual business needs, for example, set to 1 meter, 0.5 meters, etc., without specific limitation. Optionally, the distance threshold can be determined according to the type of pet. The mattress can pre-acquire the pet type entered by the owner, such as a cat or a dog, and the dog can include a small dog, a medium dog, a large dog, etc. Different pet types may correspond to different distance thresholds, which may be positively correlated with the size of the pet. For example, the distance threshold corresponding to a large dog can be set to 2 meters, and the distance threshold corresponding to a cat can be set to 0.5 meters.
[0097] If the relative distance is greater than the distance threshold, the mattress can determine the second moving direction of the electric pet toy according to the relative position of the electric pet toy, and the second moving direction is a direction to shorten the relative distance between the electric pet toy and the mattress. The mattress can further include control instructions for the first moving direction and the second moving direction, and the execution timing of the second moving direction is earlier than that of the first moving direction.
[0098] Furthermore, the aforementioned step 350 may include:
[0099] If the relative distance is greater than the distance threshold, the mattress sends a control instruction to the electric pet toy through the communication module, and the control instruction includes a first moving direction and a second moving direction, and the execution sequence of the second moving direction is earlier than the first moving direction. After receiving the control instruction, the electric pet toy can move in the second moving direction to approach the mattress according to the instructions of the execution sequence, and then move in the first moving direction to move away from the mattress.
[0100] If the relative distance is less than or equal to the distance threshold, the control instruction sent by the mattress to the electric pet toy through the communication module only includes the aforementioned first moving direction.
[0101] That is to say, after determining the relative position of the electric pet toy relative to the mattress, the mattress can first determine whether the distance between the electric pet toy and the mattress is too far. If the distance is too far, the electric pet toy may not be able to attract the pet's attention. Therefore, when the mattress determines that the distance is too far, it can first trigger the electric pet toy to move in the direction closer to the mattress, and then move away from the mattress. In addition, when the mattress determines whether the distance between the electric pet toy and the mattress is too far, it can use an appropriate distance threshold according to the different pet body sizes, which can improve the effectiveness of distance judgment and more accurately attract the pet's attention through the movement of the electric pet toy.
[0102] See also Figure 4 , Figure 4 This is a schematic flow chart of another mattress-based sleep aid method disclosed in an embodiment. The method can be applied to the mattress disclosed in the above embodiment. Figure 4 As shown, the method may include the following steps:
[0103] 410. Collect vital sign data through vital sign sensors.
[0104] 420. Separate human vital signs data and pet vital signs data from the collected vital signs data.
[0105] 430. Determine whether the human body is in a sleeping state based on the human vital signs data, and determine whether the pet is in an awake state based on the pet vital signs data; if the human body is in a sleeping state and the pet is in an awake state, execute step 440; if the human body is in an awake state and the pet is in a sleeping state, execute step 450.
[0106] 440. Send a control instruction to the smart pet appliance through the communication module.
[0107] 450. Determine whether the current time is within the preset sleep time period; if so, end this process; if not, execute step 460.
[0108] In the embodiment of the present application, the preset sleep time period can be a custom setting. For example, the sleep time period can be 22:00-7:00, which can be input by the owner through the remote control of the mattress. Alternatively, the sleep time period can also be set by the owner on a mobile terminal such as a smart phone, and the mattress can obtain the information of the sleep time period from the mobile terminal.
[0109] 460. Send a vibration instruction to the electronic collar worn by the pet through the communication module, so that the electronic collar performs a vibration operation in response to the vibration instruction.
[0110] In the embodiment of the present application, the mattress establishes a communication connection with the electronic collar worn by the pet via Bluetooth, Wi-Fi, etc. The electronic collar may also include a vibration device such as a linear motor or a rotor motor. After receiving a vibration instruction, the electronic collar may control the vibration device to perform a vibration operation. Since the electronic collar is in contact with the pet's body, the vibration of the electronic collar may wake the pet from sleep.
[0111] That is to say, when the mattress determines that the owner is awake and the pet is asleep, it can determine whether the current moment is within the sleeping time set by the owner. If so, it may correspond to scenes such as the owner not falling asleep normally or waking up in a dream. The sleeping pet has less interference with the owner, and the mattress can perform no operation. If not, it means that the pet fell asleep during the owner's non-sleeping time period. If the pet sleeps too long during the owner's non-sleeping time period, it is easy for the pet to stay awake during the owner's sleeping time period, affecting the owner's sleep. For example, if the pet sleeps too long during the day, it will cause the pet to stay awake at night. Therefore, when the mattress determines that the current moment is outside the sleeping time period, it can send a vibration command to the electronic collar worn by the pet, wake up the pet through the vibration of the electronic collar, reduce the pet's sleep time during the owner's non-sleeping time period, and make the pet fall asleep faster and more easily enter deep sleep during the owner's sleeping time period, so as to reduce the impact of the pet on the owner's sleep quality.
[0112] In some embodiments, the mattress can be connected to at least two electronic collars for communication. For example, the owner has two pets and wears an electronic collar for each pet.
[0113] If there are two or more pets on the mattress, the pet vital sign data separated in the aforementioned step 420 may include pet vital sign data corresponding to each pet. It should be noted that not only are there significant differences in the vital sign data between humans and animals, but there are also significant differences in the vital sign data between different individuals of the same species. Therefore, when there are multiple pets on the mattress, the mattress can separate the pet vital sign data corresponding to each pet.
[0114] Accordingly, when executing the aforementioned step 430, the mattress can process the pet vital sign data corresponding to the multiple pets one by one to determine whether each pet is awake or asleep. After determining that there is a pet in a sleeping state and before executing step 460, the mattress can also perform the following steps:
[0115] S41. Identify the identity information of the pet in a sleeping state according to the pet's vital sign data.
[0116] For example, the mattress can identify whether the sleeping pet is Cat A or Cat B based on the pet's vital signs data.
[0117] S42: According to the identity information of the pet in the sleeping state, determine the electronic collar worn by the pet in the sleeping state from at least two electronic collars in communication connection.
[0118] Accordingly, an implementation of step 460 may include: sending a vibration command to an electronic collar worn by a pet in a sleeping state.
[0119] That is to say, when there are two or more pets, the mattress can further identify the identity information of the pet that falls asleep during the non-sleeping period based on the pet's vital signs data, and based on the identified identity information, find the electronic collar worn by the sleeping pet, so as to accurately send vibration commands to the electronic collar worn by the sleeping pet, accurately wake up the sleeping pet, and reduce accidental injuries to pets that are not asleep.
[0120] See also Figure 5 , Figure 5 FIG. 1 is a schematic diagram of the structure of a mattress disclosed in an embodiment. Figure 5 As shown, the mattress 500 may include: a vital sign sensor 510, a communication module 520, a separation module 530 and a judgment module 540. The aforementioned separation module 530 and the first judgment module 540 may be included in the ECU, MCU and other computing modules of the mattress.
[0121] A vital sign sensor 510, for collecting vital sign data;
[0122] The separation module 530 is used to separate the human vital sign data and the pet vital sign data from the collected vital sign data;
[0123] A first judgment module 540 is used to judge whether the human body is in a sleeping state according to the human body vital sign data, and to judge whether the pet is in a waking state according to the pet vital sign data;
[0124] The communication module 520 is used to send a control instruction to the smart pet appliance after the first judgment module 540 determines that the human body is in a sleeping state and the pet is in an awake state; the control instruction is used to trigger the smart pet appliance to perform an operation corresponding to the control instruction to attract the attention of the pet.
[0125] In one embodiment, the mattress 500 may further include: a second determination module.
[0126] The second judgment module is further used to judge whether the pet is in motion after the first judgment module judges that the human body is in a sleeping state and the pet is in an awake state, and before the communication module sends a control instruction to the smart pet appliance;
[0127] The communication module 520 is further configured to send a control instruction to the smart pet appliance after the second determination module determines that the pet is in motion.
[0128] In one embodiment, the mattress 500 may include: at least two pressure sensors arranged at different positions; the second determination module may include:
[0129] An acquisition unit, used to acquire pressure value data respectively collected by each of the at least two pressure sensors within a preset time period;
[0130] A statistical unit, used to determine the number of the pressure sensors having pressure value changes according to the pressure value data collected by each of the pressure sensors;
[0131] A determination unit is configured to determine that the pet is not walking on the mattress when the number of the pressure sensors having pressure value changes is less than or equal to a number threshold.
[0132] In one embodiment, the smart pet appliance may include an electric pet toy, which can move under the drive of a motor. The mattress 500 may also include a distance measurement module.
[0133] The communication module 520 may also be used to transmit a ranging signal to the electric pet toy after the first determination module 540 determines that the human body is in a sleeping state and the pet is in an awake state, and before sending a control instruction to the smart pet appliance;
[0134] The distance measurement module can be used to determine the relative position of the electric pet toy relative to the mattress according to the transmission of the distance measurement signal; and determine the first moving direction of the electric pet toy according to the relative position of the electric pet toy, and generate a control instruction including the first moving direction. The first moving direction is the direction of increasing the relative distance between the electric pet toy and the mattress.
[0135] The communication module 520 may also be used to send a control instruction including a first moving direction to the electric pet toy, so that the electric pet toy moves in the first moving direction in response to the control instruction.
[0136] In one embodiment, the mattress 500 may further include: a third judgment module.
[0137] The third judgment module can be used to determine whether the relative distance between the electric pet toy and the mattress is greater than a distance threshold after the distance measurement module determines the relative position of the electric pet toy relative to the mattress according to the transmission of the distance measurement signal. Optionally, the distance threshold can be determined according to the type of pet and can be positively correlated with the body size of the pet.
[0138] The distance measuring module can also be used to determine the second moving direction and the first moving direction of the electric pet toy according to the relative position of the electric pet toy after the third judging module judges that the relative distance is greater than the distance threshold, wherein the second moving direction is the direction of shortening the relative distance between the electric pet toy and the mattress, and the first moving direction is the direction of increasing the relative distance between the electric pet toy and the mattress. And, generate a control instruction including the first moving direction and the second moving direction, and the execution timing of the second moving direction is earlier than that of the first moving direction.
[0139] The communication module 520 may also be used to send a control instruction including a first moving direction and a second moving direction to the electric pet toy, wherein the execution timing of the second moving direction is earlier than that of the first moving direction.
[0140] The distance measuring module can also be used to determine the first moving direction of the electric pet toy according to the relative position of the electric pet toy after the third judging module judges that the relative distance is less than or equal to the distance threshold, and generate a control instruction including the first moving direction.
[0141] In one embodiment, the mattress 500 can also be connected to the electronic collar worn by the pet through the communication module 520; the mattress 500 can also include: a fourth judgment module.
[0142] The fourth judgment module may also be used to judge whether the current moment is in a preset sleep period after the first judgment module 540 judges that the human body is in an awake state according to the human vital sign data and judges that the pet is in a sleeping state according to the pet vital sign data;
[0143] The communication module 520 can also be used to send a vibration instruction to the electronic collar worn by the pet after the fourth judgment module determines that the current moment is outside the sleeping period, so that the electronic collar performs a vibration operation in response to the vibration instruction.
[0144] In one embodiment, the communication module 520 can be connected to at least two electronic collars for communication. The mattress 500 can also include: an identification module.
[0145] The identification module can be used to identify the identity information of a pet in a sleeping state based on the pet's vital signs data.
[0146] The communication module 520 can also be used to determine the electronic collar worn by the sleeping pet from at least two electronic collars in communication connection according to the identity information of the sleeping pet, and send a vibration command to the electronic collar worn by the sleeping pet.
[0147] It can be seen that the mattress disclosed in the above embodiment can send a control instruction to the smart pet appliance after judging that the human body is in a sleeping state and the pet is in an awake state according to the collected vital sign data, so that the smart pet appliance can respond to the control instruction after receiving the control instruction and perform an operation corresponding to the control instruction to attract the attention of the pet. After the pet's attention is distracted, the behavior of patting the owner and circling around the owner is reduced, and the pet can even be led away from the mattress and attracted to other places to play, thereby reducing the contact between the pet and the owner who has fallen asleep, increasing the distance between the pet and the owner, and reducing the impact of the pet on the owner's sleep quality.
[0148] See also Figure 6 , Figure 6 This is a schematic diagram of the structure of another mattress disclosed in an embodiment. Figure 6 As shown, the mattress 600 may include:
[0149] A memory 610 storing executable program codes;
[0150] a processor 620 coupled to the memory 610;
[0151] The processor 620 calls the executable program code stored in the memory 610 to execute any one of the mattress-based sleep assistance methods disclosed in the embodiments of the present application.
[0152] The embodiment of the present application discloses a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements any mattress-based sleep assistance method disclosed in the embodiment of the present application.
[0153] The embodiments of the present application disclose a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program is operable to cause a computer to execute any mattress-based sleep assistance method disclosed in the embodiments of the present application.
[0154] It should be understood that the "one embodiment" or "an embodiment" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" appearing throughout the specification does not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. Those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required for the present application.
[0155] In the various embodiments of the present application, it should be understood that the size of the serial numbers of the above-mentioned processes does not necessarily mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0156] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0157] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0158] If the above-mentioned integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-accessible memory. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a memory and includes several requests for a computer device (which can be a personal computer, a server or a network device, etc., specifically a processor in a computer device) to perform some or all of the steps of the above-mentioned methods of various embodiments of the present application.
[0159] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.
[0160] The above is a detailed introduction to a mattress-based sleep aid method, mattress, and storage medium disclosed in the embodiment of the present application. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method and its core idea of the present application. At the same time, for those of ordinary skill in the art, according to the idea of the present application, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A sleep aid method based on a mattress, characterized in that: The mattress comprises: a vital sign sensor and a communication module, and the mattress is communicatively connected with the smart pet appliance based on the communication module. The method comprises: Collecting vital sign data through the mattress’s vital sign sensors; Separating human vital sign data and pet vital sign data from the collected vital sign data; If it is determined based on the human vital signs data that the human body is in a sleeping state and based on the pet vital signs data that the pet is in an awake state, a control instruction is sent to the smart pet appliance through the communication module; the control instruction is used to trigger the smart pet appliance to perform an operation corresponding to the control instruction to attract the attention of the pet.
2. The method according to claim 1, characterized in that The smart pet appliance comprises: a smart pet toy; the control instruction is used to trigger the smart pet toy to perform a sound operation or a light operation; and / or, The smart pet appliance comprises: a smart feeder; and the control instruction is used to trigger the smart feeder to drop food.
3. The method according to claim 1, characterized in that After determining that the human body is in a sleeping state according to the human vital sign data and determining that the pet is in an awake state according to the pet vital sign data, and before sending a control instruction to the smart pet appliance through the communication module, the method further includes: Determining whether the pet is in motion; And, sending a control instruction to the smart pet appliance through the communication module includes: If it is determined that the pet is in motion, a control instruction is sent to the smart pet appliance through the communication module.
4. The method according to claim 3, characterized in that The mattress comprises: at least two pressure sensors arranged at different positions; and the determining whether the pet is in motion comprises: Acquire pressure value data collected by each of the at least two pressure sensors within a preset time period; Determine the number of the pressure sensors having pressure value changes according to the pressure value data collected by each of the pressure sensors; If the number of the pressure sensors with pressure value changes is greater than a number threshold, it is determined that the pet is in motion.
5. The method according to any one of claims 1 to 4, characterized in that: The mattress is also in communication connection with an electronic collar worn by the pet; the method further comprises: If it is determined that the human body is in an awake state according to the human body vital sign data and the pet is in a sleeping state according to the pet vital sign data, then it is determined whether the current moment is in a preset sleeping period; If the current time is outside the sleeping period, a vibration instruction is sent to the electronic collar worn by the pet through the communication module, so that the electronic collar performs a vibration operation in response to the vibration instruction.
6. A mattress, characterized in that: include: A vital sign sensor, a communication module, a separation module and a first judgment module; the communication module is in communication connection with the smart pet appliance; The vital sign sensor is used to collect vital sign data; The separation module is used to separate human vital sign data and pet vital sign data from the collected vital sign data; The first judgment module is used to judge whether the human body is in a sleeping state according to the human body vital sign data, and to judge whether the pet is in a waking state according to the pet vital sign data; The communication module is used to send a control instruction to the smart pet appliance after the first judgment module determines that the human body is in a sleeping state and the pet is in an awake state; the control instruction is used to trigger the smart pet appliance to perform an operation corresponding to the control instruction to attract the attention of the pet.
7. The mattress according to claim 6, characterized in that: Also includes: The second judgment module is further used to judge whether the pet is in motion after the first judgment module judges that the human body is in a sleeping state and the pet is in an awake state, and before the communication module sends a control instruction to the smart pet appliance; The communication module is further used to send a control instruction to the smart pet appliance after the second determination module determines that the pet is in motion.
8. The mattress according to claim 7, characterized in that: The mattress comprises: at least two pressure sensors arranged at different positions; a second judgment module comprising: An acquisition unit, used to acquire pressure value data respectively collected by each of the at least two pressure sensors within a preset time period; A statistical unit, used to determine the number of the pressure sensors having pressure value changes according to the pressure value data collected by each of the pressure sensors; A determination unit is configured to determine that the pet is not walking on the mattress when the number of the pressure sensors having pressure value changes is less than or equal to a number threshold.
9. A mattress, characterized in that: The method comprises a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor implements the steps of the method according to any one of claims 1 to 5.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
