Sleep data generation method, sleep monitoring device, and storage medium
Patent Information
- Application Number
- CN202210937636.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-05
- Publication Date
- 2026-11-03
- Estimated Expiration
- 2042-08-05
AI Technical Summary
现有非接触式睡眠监测设备无法将睡眠数据与用户身份准确对应,导致生成的睡眠数据准确性不高,尤其在多人情况下难以区分。
By determining the relative positional relationship between the beacon source and the sleep monitoring device, user information associated with the beacon source is obtained, and target sleep signals are identified within the detection area to generate sleep data.
It improves the accuracy of sleep data, enabling the differentiation of sleep signals between users and other individuals in multi-person scenarios, and generating accurate sleep data corresponding to user information.
Smart Images

Figure CN117547220B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of smart devices, and more particularly to a method for generating sleep data, a sleep monitoring device, and a storage medium. Background Technology
[0002] Sleep is essential for life; humans cannot live without it, and it occupies nearly one-third of our lives. Sleep quality plays a crucial role in human health. To better regulate sleep quality, smart devices are used to monitor users' sleep and provide reliable sleep data.
[0003] In related technologies, non-contact sleep monitoring devices incorporate radar. This radar uses a transmitting antenna to emit modulated electromagnetic waves and a receiving antenna to receive the reflected electromagnetic signals from the target object. This allows for the monitoring of the human body within a space and its position, body movement, heart rate, and respiration during sleep. However, radar can only detect the presence of a human body and cannot establish a correlation between sleep data and user identity, resulting in low accuracy in generating sleep data.
[0004] The above content is only used to help understand the technical solution of the present invention and does not represent an admission that the above content is prior art. Summary of the Invention
[0005] The main objective of this invention is to provide a method for generating sleep data, a sleep monitoring device, and a storage medium, with the aim of improving the accuracy of generated sleep data.
[0006] To achieve the above objectives, the present invention provides a method for generating sleep data, the method comprising:
[0007] Determine the relative positional relationship between the beacon source and the sleep monitoring device;
[0008] The detection area corresponding to the beacon source is determined based on the relative positional relationship;
[0009] Obtain user information associated with the beacon source, and determine the target sleep signal within the detection area;
[0010] Sleep data is generated based on the user information and the target sleep signal.
[0011] Optionally, the steps of obtaining user information associated with the beacon source and determining the target sleep signal within the detection area include:
[0012] Receives sleep signals from the human body within the sleep state detection area;
[0013] The body position is determined based on the sleep signals;
[0014] The target sleep signal is determined based on the sleep signal corresponding to the human body whose position is within the detection area.
[0015] Optionally, the step of determining the target sleep signal based on the sleep signal corresponding to the human body whose position is within the detection area includes:
[0016] Determine the number of sleep signal signals corresponding to the human body whose position is within the detection area;
[0017] When the number of signals is less than or equal to a preset number, the sleep signal is taken as the target sleep signal;
[0018] When the number of signals exceeds a preset number, a prompt message to change the beacon source location is output, and multiple sleep data are generated based on the sleep signals.
[0019] Optionally, the step of determining the target sleep signal based on the sleep signal corresponding to the human body whose position is within the detection area includes:
[0020] The distance between the human body within the detection area and the beacon source is determined based on the human body's location.
[0021] The sleep signal corresponding to the human body with the shortest distance is determined as the target sleep signal.
[0022] Optionally, before the step of determining the detection area corresponding to the beacon source based on the relative positional relationship, the method further includes:
[0023] Based on the relative positional relationship, the orientation of the beacon source relative to the sleep monitoring device is determined;
[0024] The region corresponding to the direction is taken as the detection region, wherein the region corresponding to the direction is a radial region starting from the sleep data.
[0025] Optionally, the sleep data generation method further includes:
[0026] Receive broadcast signals emitted by the beacon source;
[0027] Determine the signal strength of the broadcast signal;
[0028] Determine whether there is an obstruction between the beacon source and the sleep monitoring device based on the signal strength;
[0029] If the beacon source and the sleep monitoring device are in the same room, then the step of determining the relative positional relationship between the beacon source and the sleep monitoring device is performed.
[0030] Optionally, after the step of generating sleep data based on the user information and the target sleep signal, the method further includes:
[0031] Identify the linked devices connected to the sleep monitoring device;
[0032] The device that is adjusting environmental parameters is designated as the target device.
[0033] The target linkage device is controlled to adjust its operating parameters based on the sleep data.
[0034] Optionally, before the step of generating sleep data based on the user information and the target sleep signal, the method further includes:
[0035] When the human body corresponding to the target sleep signal is detected to leave the detection area, the human body is tracked using target tracking technology.
[0036] When the human body is detected to have returned to the detection area, the sleep signal of the human body is reacquired as the target sleep signal.
[0037] Optionally, before the steps of obtaining the user information associated with the beacon source and determining the target sleep signal within the detection area, the method includes:
[0038] Receive the user information and the identification information of the beacon source;
[0039] The identification information and the user information are associated and saved.
[0040] In addition, to achieve the above objectives, the present invention also provides a sleep monitoring device, the sleep monitoring device including a memory, a processor, and a sleep data generation program stored in the memory and executable on the processor, wherein the sleep data generation program, when executed by the processor, implements the steps of the sleep data generation method as described above.
[0041] In addition, to achieve the above objectives, the present invention also provides a computer-readable storage medium storing a sleep data generation program, which, when executed by a processor, implements the steps of the sleep data generation method as described above.
[0042] This invention proposes a method for generating sleep data, a sleep monitoring device, and a storage medium. First, the relative positional relationship between a beacon source and the sleep monitoring device is determined. Then, a detection area corresponding to the beacon source is determined based on the relative positional relationship. User information associated with the beacon source is acquired, and a target sleep signal within the detection area is determined. Sleep data is generated based on the user information and the target sleep signal. Users can place the beacon source near themselves before sleeping, or enter the detection area corresponding to the beacon source to sleep. The sleep monitoring device can use the sleep signal detected within the beacon source's detection area as the target sleep signal associated with the user information. This mapping of user information and sleep signals to generate sleep data improves the accuracy of the sleep data. Attached Figure Description
[0043] Figure 1 This is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiments of the present invention;
[0044] Figure 2 This is a flowchart illustrating an embodiment of the sleep data generation method of the present invention;
[0045] Figure 3 This is a flowchart illustrating another embodiment of the sleep data generation method of the present invention;
[0046] Figure 4 This is a three-view diagram of the sleep detection area involved in an embodiment of the sleep data generation method of the present invention;
[0047] Figure 5 This is a schematic diagram of the first detection area involved in an embodiment of the sleep data generation method of the present invention;
[0048] Figure 6 This is a schematic diagram of the second detection area in an embodiment of the sleep data generation method of the present invention.
[0049] Figure 7 This is a flowchart illustrating an application scenario according to another embodiment of the present invention.
[0050] The realization of the objective, functional features and advantages of the present invention will be further explained in conjunction with the embodiments and with reference to the accompanying drawings. Detailed Implementation
[0051] It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
[0052] In related technologies, non-contact sleep monitoring devices incorporate radar. This radar uses a transmitting antenna to emit modulated electromagnetic waves and a receiving antenna to receive the reflected electromagnetic signals (sleep signals) from the target object, thus monitoring the presence of a human body and its physiological characteristics. However, radar can only detect the presence of a human body and cannot establish a correlation between sleep data and user identity, resulting in low accuracy in generating sleep data.
[0053] To improve the accuracy of generated sleep data, this invention provides a sleep data generation method, a sleep monitoring device, and a storage medium. The main steps of the method include:
[0054] Determine the relative positional relationship between the beacon source and the sleep monitoring device;
[0055] The detection area corresponding to the beacon source is determined based on the relative positional relationship;
[0056] Obtain user information associated with the beacon source, and determine the target sleep signal within the detection area;
[0057] Sleep data is generated based on the user information and the target sleep signal.
[0058] When a user sleeps, they place a beacon source associated with their user information nearby, allowing them to sleep within the beacon's detection area. This allows the sleep monitoring device to detect the user's sleep signal within the beacon's detection area. The device then matches the target sleep signal within the detection area with the user information associated with the beacon to generate sleep data, resulting in more accurate sleep data.
[0059] The claims of this invention will be described in detail below with reference to the accompanying drawings.
[0060] like Figure 1 As shown, Figure 1 This is a schematic diagram of the terminal structure of the hardware operating environment involved in the embodiments of the present invention.
[0061] In this embodiment of the invention, the terminal can be a sleep monitoring device.
[0062] like Figure 1 As shown, the terminal may include: a processor 1001, such as a CPU, a memory 1003, and a communication bus 1002. The communication bus 1002 is used to establish communication between these components. The memory 1003 may be high-speed RAM or stable non-volatile memory, such as disk storage. Optionally, the memory 1003 may also be a storage device independent of the aforementioned processor 1001.
[0063] Those skilled in the art will understand that Figure 1 The terminal structure shown does not constitute a limitation on the terminal and may include more or fewer components than shown, or combine certain components, or have different component arrangements.
[0064] like Figure 1 As shown, the memory 1003, which serves as a computer storage medium, may include an operating system and a sleep data generation program.
[0065] exist Figure 1 In the terminal shown, the processor 1001 can be used to call the sleep data generation program stored in the memory 1003 and perform the following operations:
[0066] Determine the relative positional relationship between the beacon source and the sleep monitoring device;
[0067] The detection area corresponding to the beacon source is determined based on the relative positional relationship;
[0068] Obtain user information associated with the beacon source, and determine the target sleep signal within the detection area;
[0069] Sleep data is generated based on the user information and the target sleep signal.
[0070] Furthermore, the processor 1001 can call the sleep data generation program stored in the memory 1003 and also perform the following operations:
[0071] Receives sleep signals from the human body within the sleep state detection area;
[0072] The body position is determined based on the sleep signals;
[0073] The target sleep signal is determined based on the sleep signal corresponding to the human body whose position is within the detection area.
[0074] Furthermore, the processor 1001 can call the sleep data generation program stored in the memory 1003 and also perform the following operations:
[0075] Determine the number of sleep signal signals corresponding to the human body whose position is within the detection area;
[0076] When the number of signals is less than or equal to a preset number, the sleep signal is taken as the target sleep signal;
[0077] When the number of signals exceeds a preset number, a prompt message to change the beacon source location is output, and multiple sleep data are generated based on the sleep signals.
[0078] Furthermore, the processor 1001 can call the sleep data generation program stored in the memory 1003 and also perform the following operations:
[0079] The distance between the human body within the detection area and the beacon source is determined based on the human body's location.
[0080] The sleep signal corresponding to the human body with the shortest distance is determined as the target sleep signal.
[0081] Furthermore, the processor 1001 can call the sleep data generation program stored in the memory 1003 and also perform the following operations:
[0082] Based on the relative positional relationship, the orientation of the beacon source relative to the sleep monitoring device is determined;
[0083] The region corresponding to the direction is taken as the detection region, wherein the region corresponding to the direction is a radial region starting from the sleep data.
[0084] Furthermore, the processor 1001 can call the sleep data generation program stored in the memory 1003 and also perform the following operations:
[0085] Receive broadcast signals emitted by the beacon source;
[0086] Determine the signal strength of the broadcast signal;
[0087] Determine whether there is an obstruction between the beacon source and the sleep monitoring device based on the signal strength;
[0088] If the beacon source and the sleep monitoring device are in the same room, then the step of determining the relative positional relationship between the beacon source and the sleep monitoring device is performed.
[0089] Furthermore, the processor 1001 can call the sleep data generation program stored in the memory 1003 and also perform the following operations:
[0090] Identify the linked devices connected to the sleep monitoring device;
[0091] The device that is adjusting environmental parameters is designated as the target device.
[0092] The target linkage device is controlled to adjust its operating parameters based on the sleep data.
[0093] Furthermore, the processor 1001 can call the sleep data generation program stored in the memory 1003 and also perform the following operations:
[0094] When the human body corresponding to the target sleep signal is detected to leave the detection area, the human body is tracked using target tracking technology.
[0095] When the human body is detected to have returned to the detection area, the sleep signal of the human body is reacquired as the target sleep signal.
[0096] Furthermore, the processor 1001 can call the sleep data generation program stored in the memory 1003 and also perform the following operations:
[0097] Receive the user information and the identification information of the beacon source;
[0098] The identification information and the user information are associated and saved.
[0099] Sleep is a necessity of life; humans cannot live without it, and it occupies nearly one-third of our lives. Sleep quality plays a vital role in human health. To better regulate sleep quality, smart devices are used to monitor users' sleep and provide reliable sleep data.
[0100] In related technologies, non-contact sleep monitoring devices incorporate radar. This radar uses a transmitting antenna to emit modulated electromagnetic waves and a receiving antenna to receive the reflected electromagnetic signals from the target object. This allows for the monitoring of the human body within a given space, including its position, body movement, heart rate, and respiration. However, radar can only detect the presence of a human body and cannot correlate sleep data with the user's identity. Especially when multiple people are present in the monitoring area, multiple detected sleep signals may not be matched with a single user, resulting in inaccurate sleep data.
[0101] Therefore, the aforementioned defects exist in the existing sleep data generation methods. To address these defects, this invention proposes a sleep data generation method that aims to correlate target sleep signals within the detection area corresponding to the beacon source with user information associated with the beacon source, thereby generating sleep data with higher accuracy.
[0102] The following explanation, through specific exemplary solutions, clarifies the scope of protection claimed in the claims of this invention, so that those skilled in the art can better understand the scope of protection of the claims. It is understood that the following exemplary solutions do not limit the scope of protection of this invention, but are only used to explain this invention.
[0103] For example, refer to Figure 2 In one embodiment of the sleep data generation method of the present invention, the sleep data generation method includes the following steps:
[0104] Step S10: Determine the relative positional relationship between the beacon source and the sleep monitoring device;
[0105] In this embodiment, the sleep monitoring device is a device capable of acquiring human sleep signals. The sleep monitoring device may include a radar module, which, during human sleep, transmits modulated electromagnetic waves and receives electromagnetic wave signals reflected by the human body. This electromagnetic wave signal is the human body's sleep signal. By analyzing the sleep signal, the human body's posture information, position information, and physiological characteristic information can be detected, thereby realizing the detection of the human body's sleep state.
[0106] A beacon source is an electronic device capable of emitting broadcast signals. Optionally, the beacon source may be equipped with Bluetooth Low Energy and can be attached to a bedside table or placed on a bedside stick, or it may be compatible with devices such as smartphones and wearable devices that can establish Bluetooth connections. The beacon source can establish a communication connection with a sleep monitoring device. Specifically, the beacon source emits a broadcast signal, which the sleep monitoring device can receive. The sleep monitoring device can determine the beacon source's identification information and the relative positional relationship between the beacon source and the sleep monitoring device based on the broadcast signal emitted by the beacon source.
[0107] Optionally, to better receive sleep signals from people within the space, the sleep monitoring device can be installed on the walls or ceiling of the space, equipped with a Bluetooth chip base station to receive broadcast signals from the beacon source, and also equipped with a two-dimensional antenna array, as shown in the reference. Figure 4 If the rectangular antenna array can detect two perpendicular angles, then the assembly can be confirmed to be reasonable, and the horizontal and vertical azimuth angles of the beacon source relative to the sleep monitoring device can be measured.
[0108] Optionally, the system receives a broadcast signal emitted by the beacon source; determines the signal strength of the broadcast signal; determines whether there is an obstruction between the beacon source and the sleep monitoring device based on the signal strength; if there is no obstruction between the beacon source and the sleep monitoring device, the step of determining the relative positional relationship between the beacon source and the sleep monitoring device is performed.
[0109] To ensure the sleep monitoring device can detect the sleep signals corresponding to the human body within the signal source detection area, and to receive the sleep signals more clearly and accurately, there should ideally be no obstructions between the sleep monitoring device and the signal source, such as walls or cabinets. The presence of obstructions can be determined by the strength of the beacon source broadcast signal received by the sleep monitoring device. If obstructions are present, the beacon source broadcast signal will be weaker than when there are no obstructions. If the signal strength is less than a preset strength, no action is taken, and a prompt to change the beacon source location is output. If the signal strength is greater than or equal to the preset strength, step S10 can be executed.
[0110] Step S20: Determine the detection area corresponding to the beacon source based on the relative positional relationship;
[0111] In this embodiment, the sleep monitoring device can receive human sleep signals within a sleep state detection area. Based on the relative positional relationship between the beacon source and the sleep monitoring device, it determines the detection area corresponding to the beacon source. The detection area is located within the sleep state detection area, and sleep signals detected within this area can be associated with the beacon source, and thus linked to the user information associated with the beacon source. Therefore, before going to sleep, the user can place the beacon source near the sleep area, such as at the head of the bed or on a bedside table, ensuring that their body is within the detection area. In this way, after the sleep monitoring device detects the target sleep signal within the detection area corresponding to the beacon source, it can associate the sleep signal within the detection area with the user.
[0112] Optional, refer to Figure 5 The location of the beacon source is determined based on its relative position to the sleep monitoring device. A detection area (shaded area in the figure) is then defined around the beacon source location. This detection area is independent of the sleep monitoring device, allowing users greater customization of the beacon source placement and fewer detection blind spots. However, it is necessary to ensure that the detection area overlaps with the sleep state detection area.
[0113] Optionally, the direction of the beacon source relative to the sleep monitoring device is determined based on the relative positional relationship, and the area corresponding to the direction is taken as the detection area, wherein the area corresponding to the direction is a radial area starting from the sleep data.
[0114] Reference Figure 6 Based on the relative positions of the sleep monitoring device and the beacon source, the direction of the beacon source relative to the sleep monitoring device is determined. This direction is taken as the starting point of the sleep monitoring device and extends towards the beacon source. The area corresponding to this direction is designated as the beacon source detection area (shaded area in the figure). This area can be rectangular, fan-shaped, or similar. Furthermore, to more accurately determine the target sleep signal corresponding to the user information, the area corresponding to this direction can be further narrowed down. Within this area, the region within a preset distance from the beacon source is designated as the beacon source detection area.
[0115] Step S30: Obtain user information associated with the beacon source and determine the target sleep signal within the detection area;
[0116] In this embodiment, the beacon source has unique identification information, which can be a MAC address. The sleep monitoring device can determine the identification information and location information corresponding to the broadcast signal based on the received broadcast signal from the beacon source, thereby identifying the unique beacon source transmitting the broadcast signal. The identification information of the beacon source can be associated with the user's user information in advance, so that the sleep monitoring device can determine the user information associated with the beacon source based on the identification information. In addition, it is also necessary to determine the target sleep signal within the detection area corresponding to the beacon source. The target sleep signal is one or more signals among the sleep signals in the corresponding detection area. The target sleep signal can be bound to the user information associated with the beacon source, so that the user information can be identified as the user information of the human body reflecting the target sleep signal. The user information can include basic information such as the user's age, gender, height, and weight.
[0117] In one optional implementation, the user information and the identification information of the beacon source are received; the identification information and the user information are associated and saved.
[0118] Sleep monitoring devices can accept user information input by the user, as well as the identification information of beacon sources selected by the user and bound to the user information.
[0119] Optionally, users can directly input their information and select the beacon source's identification information through the sleep monitoring device, and the sleep monitoring device will directly associate and save the user information and identification information.
[0120] Optionally, the sleep monitoring device can be connected to a terminal device, such as a mobile phone. The user enters their information and selects the beacon source's identifier information through an application on the terminal device, then sends the user information and identifier information together and sends them to the sleep monitoring device. The sleep monitoring device saves the user information and identifier information in association. By receiving the broadcast signal from the beacon source, the relative positional relationship between the beacon source and the sleep monitoring device, as well as the identifier information corresponding to the beacon source, can be determined. Based on the identifier information, the user information associated with that beacon source can be retrieved.
[0121] Step S40: Generate sleep data based on the user information and the target sleep signal.
[0122] In this embodiment, before going to sleep, the user places the beacon source near themselves, ensuring their body is within the detection area. The sleep signal received by the sleep monitoring device from the corresponding detection area of the beacon source will include the user's target sleep signal. Since the user's information is associated with the beacon source's identification information, the user information can be linked to the target sleep signal within the beacon source's detection area. The target sleep signal received by the sleep monitoring device can be identified as the sleep signal reflected by the user's body. Sleep data is generated based on the user's target sleep signal and user information, and the user's sleep state can be determined based on this sleep data.
[0123] In an optional implementation of this embodiment, the sleep state of the corresponding user can be determined based on sleep data, that is, the user's posture information and physiological characteristic information during sleep, including: sleep position, respiratory rate, heart rate, etc., and a sleep report on the user's sleep process can be generated based on the sleep state.
[0124] Furthermore, the generation time of the target sleep signal can be obtained, and a sleep stage report of the user's sleep process can be generated based on the generation time of the target sleep signal and the corresponding sleep data. This allows for an understanding of the user's sleep status at different stages of the sleep process.
[0125] Furthermore, when the detected change in sleep data exceeds a preset range, such as a continuous increase in body movement signals (e.g., continuous body movement for 5 minutes), the generation time of the current target sleep signal is obtained, and a sleep report on the change time is generated based on the generation time of the current target sleep signal and the corresponding sleep data.
[0126] Optionally, a linkage device connected to the sleep monitoring device is identified; the linkage device that is adjusting environmental parameters is designated as the target linkage device; and the target linkage device is controlled to adjust its operating parameters based on the sleep data.
[0127] Sleep monitoring devices can also establish communication connections with other electronic devices in the same space. These connected devices are called linked devices. When a user sleeps, some of these linked devices will activate to adjust the sleep environment, such as air conditioners, air purifiers, and humidifiers. These linked devices, currently adjusting environmental parameters, can be designated as target linked devices, and their operating parameters can be adjusted based on the current sleep data. For example, if the sleep data indicates the user is curled up, the air conditioner temperature can be increased; if the sleep data indicates the user's breathing rate is too high, the air purifier can be adjusted to increase oxygen production. Furthermore, the sleep data also includes user information. Based on this information, user settings or habits can be identified, and the target linked devices adjusting environmental parameters can be determined, along with their operating parameters, to improve the user's sleep environment comfort.
[0128] Optionally, when the human body corresponding to the target sleep signal is detected to leave the detection area, the human body is tracked using target tracking technology; when the human body is detected to return to the detection area, the sleep signal of the human body is reacquired as the target sleep signal.
[0129] Sleep monitoring devices continuously detect a user's sleep state. They constantly receive target sleep signals reflected from the user's body and determine the user's location and sleep state based on these signals. When a person corresponding to the target sleep signal leaves the detection area corresponding to the beacon source, target tracking technology is used to track that person until they re-enter the detection area. Once re-entering the detection area, their sleep signal is used as the target sleep signal again, and the system continues to acquire this signal, binding it with user information to generate sleep data. This prevents errors from occurring when other sleep signals within the detection area are used as the target sleep signal after the user leaves, which could lead to inconsistencies in the correspondence between user information and sleep signals and reduce the accuracy of the sleep data.
[0130] In the technical solution disclosed in this embodiment, the relative positional relationship between the beacon source and the sleep monitoring device is determined; the detection area corresponding to the beacon source is determined based on the relative positional relationship; user information associated with the beacon source is obtained, and a target sleep signal within the detection area is determined; sleep data is generated based on the user information and the target sleep signal. In this way, the detection area of the beacon source is determined by the relative positional relationship between the sleep monitoring device and the beacon source, and the target sleep signal within the detection area is bound to the user information associated with the beacon source to generate sleep data that corresponds to the user information. When the sleep monitoring device can detect the sleep signals of multiple people within the sleep state detection area, it can distinguish the sleep signals of the user from those of other people, thereby improving the accuracy of the generated sleep data.
[0131] Optionally, refer to Figure 3 Based on any of the above embodiments, in another embodiment of the sleep data generation method of the present invention, the sleep data generation method further includes:
[0132] Step S31: Receive sleep signals from the human body within the sleep state detection area;
[0133] Step S32: Determine the body position of the human body based on the sleep signal;
[0134] Step S31: Determine the target sleep signal based on the sleep signal corresponding to the human body whose position is within the detection area.
[0135] In this embodiment, the sleep state detection area is the region where the sleep monitoring device can detect sleep signals. Beyond this area, the device cannot detect sleep signals, or the received signals are unclear and cannot be used to analyze the person's sleep state. The sleep monitoring device receives sleep signals within the detection area and determines the corresponding human location based on these signals. A target sleep signal is determined based on the sleep signals corresponding to the human's location within the detection area. The target human signal can be confirmed based on factors such as the distance between the human's location and the beacon source location, and the number of sleep signals.
[0136] Optionally, before determining that the sleep signal in the detection area corresponding to the beacon source is the target sleep signal, the real-time variation range of the human body position is detected. After the real-time variation range is within a preset range for a certain period of time, such as stabilizing for five minutes, the sleep signal can be taken as the target sleep signal.
[0137] In an optional implementation of this embodiment, the number of sleep signals corresponding to the human body whose position is within the detection area is determined; when the number of signals is less than or equal to a preset number, the sleep signal is taken as the target sleep signal; when the number of signals is greater than the preset number, a prompt message to change the beacon source position is output, and multiple sleep data are generated based on the sleep signal.
[0138] User information associated with the signal source's identification information can be bound to one or more target sleep signals. However, the more target sleep signals bound, the more difficult it is to correlate the generated sleep data with the user's identity, and the lower the accuracy of the generated sleep data becomes. Therefore, it is necessary to limit the number of sleep signals bound to user information. The system determines the number of sleep signals corresponding to a human's location within the detection area. When the number of signals exceeds a preset number, a prompt to change the beacon source location is output, prompting the user to change the beacon source location so that the number of sleep signals within the detection area corresponding to the beacon source is less than or equal to the preset number. Multiple sleep data sets can also be generated based on these multiple sleep signals. When the number of signals is less than or equal to the preset number, these sleep signals are used as target sleep signals, bound to user information, and sleep data is generated.
[0139] In an optional implementation of this embodiment, the distance between the human body within the detection area and the beacon source is determined based on the human body's location; the sleep signal corresponding to the human body with the shortest distance is determined as the target sleep signal.
[0140] To reduce the number of target sleep signals, the distance between the human body and the beacon source can be determined based on the human body's location and the beacon source's location. The sleep signal corresponding to the human body closest to the beacon source is then used as the target sleep signal. This way, the number of target sleep signals will likely be equal to one, thus enabling a one-to-one correspondence between sleep signals and user information and improving the accuracy of generated sleep data.
[0141] Furthermore, if there are still multiple sleep signals corresponding to the human body closest to the signal source, a prompt message to change the beacon source location can be output so that the user can change the beacon source location, so that the number of sleep signals in the detection area corresponding to the beacon source is less than or equal to a preset number, and multiple sleep data can be generated corresponding to these multiple sleep signals.
[0142] In an optional implementation of this embodiment, the distance between the human body and the beacon source can be determined based on the human body position and the beacon source position, and the sleep signal with a distance from the signal source within a preset range can be used as the target sleep signal.
[0143] To better understand this embodiment, please refer to... Figure 7Users log in to their accounts via a mobile app, set up user information, select a beacon MAC address, place the beacon source at the bedside, and connect to the sleep monitoring device (which can connect via Wi-Fi or Bluetooth). The sleep monitoring device begins operation, using millimeter-wave radar to monitor the human body. It employs a target tracking algorithm to ensure monitoring of multiple people's sleep. Upon receiving a broadcast signal from the beacon source, it determines whether the beacon source is inside the room without any obstructions based on the signal strength. It associates the beacon MAC address with user information and calculates the beacon source's horizontal and vertical azimuth angles as its location information, i.e., its relative position to the sleep monitoring device. Based on this location information, it determines the detection area corresponding to the beacon source. The millimeter-wave radar detects whether the sleep signal of the closest person to the beacon source exists within this detection area. If not, it continues to monitor sleep signals within the detection area; if present, it determines whether there is a sleep signal from more than one person. If the beacon source exists, multiple sleep data points are generated simultaneously, and the user is prompted to change the beacon source location. If the beacon source does not exist, the sleep signal is used as the target sleep signal and bound to the user information one-to-one. Sleep monitoring and sleep data generation are continuously performed, and a sleep report is generated based on the sleep data.
[0144] In the technical solution disclosed in this embodiment, sleep signals of a human body within a sleep state detection area are received; the human body position is determined based on the sleep signals; and a target sleep signal is determined based on the sleep signals corresponding to the human body whose position is within the detection area. This method of determining the human body position through sleep signals and then determining the target signal within the detection area based on the human body position reduces the number of target signals bound to sleep signals, making the correspondence with the user's body more accurate, thereby improving the accuracy of generated sleep data.
[0145] Furthermore, this invention also proposes a sleep monitoring device, which includes a memory, a processor, and a sleep data generation program stored in the memory and executable on the processor. When the sleep data generation program is executed by the processor, it implements the steps of the sleep data generation method described in the above embodiments.
[0146] Furthermore, embodiments of the present invention also propose a computer-readable storage medium storing a sleep data generation program, wherein when the sleep data generation program is executed by a processor, it implements the steps of the sleep data generation method described in the above embodiments.
[0147] It should be noted that, in this document, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or system. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or system that includes that element.
[0148] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0149] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) as described above, and includes several instructions to cause the sleep monitoring device to execute the methods described in the various embodiments of the present invention.
[0150] The above are merely preferred embodiments of the present invention and do not limit the scope of the patent. Any equivalent structural or procedural transformations made based on the description and drawings of the present invention, or direct or indirect applications in other related technical fields, are similarly included within the scope of patent protection of the present invention.
Claims
1. A method for generating sleep data, characterized in that, The sleep data generation method includes: Determine the relative positional relationship between the beacon source and the sleep monitoring device; Based on the relative positional relationship, the orientation of the beacon source relative to the sleep monitoring device is determined; The area corresponding to the direction is taken as the detection area corresponding to the beacon source, wherein the area corresponding to the direction is the radiation area starting from the sleep monitoring device and pointing towards the beacon source; The system acquires user information associated with the beacon source and receives sleep signals from the human body within the sleep state detection area. The sleep state detection area is the area where the sleep monitoring device can detect sleep signals, and the detection area corresponding to the beacon source is located within the sleep state detection area. The human body position is determined based on the sleep signal, and the target sleep signal is determined based on the sleep signal corresponding to the human body whose position is within the detection area corresponding to the beacon source. Based on the user information and the target sleep signal, sleep data is generated; The step of determining the target sleep signal based on the sleep signal corresponding to the human body whose location is within the detection area corresponding to the beacon source includes: Determine the number of sleep signals corresponding to the human body whose location is within the detection area corresponding to the beacon source; When the number of signals is less than or equal to a preset number, the sleep signal is taken as the target sleep signal; When the number of signals exceeds the preset number, a prompt message to change the beacon source location is output, and multiple sleep data are generated based on the sleep signals; Alternatively, the distance between the human body and the beacon source within the detection area corresponding to the beacon source can be determined based on the human body's location. The sleep signal corresponding to the human body with the shortest distance is determined as the target sleep signal.
2. The sleep data generation method as described in claim 1, characterized in that, The sleep data generation method further includes: Receive broadcast signals emitted by the beacon source; Determine the signal strength of the broadcast signal; Determine whether there is an obstruction between the beacon source and the sleep monitoring device based on the signal strength; If the beacon source and the sleep monitoring device are in the same room, then the step of determining the relative positional relationship between the beacon source and the sleep monitoring device is performed.
3. The sleep data generation method as described in claim 1, characterized in that, After the step of generating sleep data based on the user information and the target sleep signal, the method further includes: Identify the linked devices connected to the sleep monitoring device; The device that is adjusting environmental parameters is designated as the target device. The target linkage device is controlled to adjust its operating parameters based on the sleep data.
4. The sleep data generation method as described in claim 1, characterized in that, Before the step of generating sleep data based on the user information and the target sleep signal, the method further includes: When the human body corresponding to the target sleep signal is detected to leave the detection area corresponding to the beacon source, the human body is tracked using target tracking technology. When the human body is detected to have returned to the detection area corresponding to the beacon source, the sleep signal of the human body is reacquired as the target sleep signal.
5. The sleep data generation method as described in claim 1, characterized in that, Before the steps of obtaining the user information associated with the beacon source and receiving sleep signals from the human body within the sleep state detection area, the following steps are included: Receive the user information and the identification information of the beacon source; The identification information and the user information are associated and saved.
6. A sleep monitoring device, characterized in that, The sleep monitoring device includes: a memory, a processor, and a sleep data generation program stored in the memory and executable on the processor, wherein the sleep data generation program, when executed by the processor, implements the steps of the sleep data generation method as described in any one of claims 1 to 5.
7. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a sleep data generation program, which, when executed by a processor, implements the steps of the sleep data generation method as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Sleep monitoring device and method based on millimeter wave radar and medium
CN112806975A
