Mattress, smart home system, control method, and storage medium
Patent Information
- Application Number
- CN202610860746.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-06-15
- Publication Date
- 2026-08-21
AI Technical Summary
然而,该方法的主要缺点在于:无法区分双人床上左侧用户与右侧用户的睡眠状态差异
在本申请的实施例中,首先,通过旋转件同步带动左右两侧聚光件转动,实现了对左右两侧光线出射角度的独立或协同调节,用户可根据实际需要灵活选择单侧照明或双侧照明,有效解决了双人床上单侧用户照明时对另一侧造成的光线干扰问题,提升了睡眠环境的舒适度和隐私性。其次,采用聚光件反射照明而非光源直射,光线更加均匀、柔和,且可通过调整反射角度改变照射区域,适应不同身高、睡姿的用户需求。
Smart Images

Figure CN122604188A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of mattress technology, specifically to mattresses, smart home systems, control methods, and storage media. Background Technology
[0002] Currently, one method for controlling lighting on smart mattresses is a pressure-detection-based sleep nightlight control method. This method uses a pressure sensor installed on the mattress to detect whether the user is on the mattress. Once the user is detected as being in bed, the mattress's built-in nightlight is automatically turned on, while the main indoor light is turned off to facilitate the user's nighttime activities. However, the main drawback of this method is its inability to distinguish between the sleep states of the user on the left and right sides of a double bed. When one user is asleep while the other is awake and needs lighting, turning on the nightlight will cause the light to shine directly onto the face of the sleeping user, thus interfering with their sleep quality. Therefore, how to provide effective lighting for awake users while avoiding light interference for sleeping users is a technical problem that urgently needs to be solved in this field. Summary of the Invention
[0003] Embodiments of this application provide a mattress, a smart home system, a control method, and a storage medium to at least partially solve the aforementioned technical problems.
[0004] To achieve the above objectives, according to a first aspect of this application, a mattress is provided, comprising: Base plate; Back plate, connected to the base plate; A lighting assembly is mounted on the back panel. The lighting assembly includes a rotating component, a left-side focusing component, a right-side focusing component, a left-side illumination component, and a right-side illumination component. The left-side and right-side focusing components are both connected to the rotating component. The rotating component is used to drive the left-side and right-side focusing components to rotate. The left-side illumination component is connected to the side of the left-side focusing component opposite to the right-side focusing component, and the right-side illumination component is connected to the side of the right-side focusing component opposite to the left-side focusing component. The left-side focusing component is used to reflect the light emitted by the left-side illumination component to the left side of the mattress, and the right-side focusing component is used to reflect the light emitted by the right-side illumination component to the right side of the mattress.
[0005] In one embodiment, the mattress further includes: A detection component for detecting the sleep status of the user on the left side of the mattress and the user on the right side of the mattress; A control component is communicatively connected to the main indoor lighting fixture. Both the lighting fixture and the detection component are electrically connected to the control component. The control component is configured to control the operation of the main indoor lighting fixture and the lighting fixture based on the detection data from the detection component.
[0006] According to a second aspect of this application, a smart home system is provided, including the mattress described above.
[0007] According to a third aspect of this application, a control method based on the mattress described above is provided, comprising: S100: Obtain the sleep status of the user on the left and the user on the right; S200. Based on the sleep state of the left user and the sleep state of the right user, determine whether only one side of the user is in a sleep state. S300: Based on the judgment that only one user is asleep, control the main indoor lighting to turn off; S400: Based on the judgment result that only one side of the user is in a sleep state, determine the side where the user in a non-sleep state is located as the target lighting side, and determine the target lighting component based on the target lighting side; S500: Control the target lighting component to turn on, and obtain the real-time posture of the user on the target lighting side; S600: Based on the real-time posture of the user on the target lighting side, control the rotating component to drive the target lighting component to rotate to the target angle.
[0008] In one embodiment, step S100 includes: S101. Collect left-side pressure signals based on a pressure sensor array located in the left-side area of the mattress, and collect right-side pressure signals based on a pressure sensor array located in the right-side area of the mattress. S102. The presence status of the user on the left is obtained based on the first comparison result between the left pressure signal and the preset presence pressure threshold, and the presence status of the user on the right is obtained based on the second comparison result between the right pressure signal and the preset presence pressure threshold. S103. Based on the left pressure signal and the right pressure signal, count the number of left pressure changes and the number of right pressure changes within a preset time window, respectively. S104. The left user's body movement frequency is obtained based on the number of pressure changes on the left side and the preset time window; the right user's body movement frequency is obtained based on the number of pressure changes on the right side and the preset time window. S105. The sleep state of the left user is obtained based on the third comparison result between the body movement frequency of the left user and the preset body movement frequency threshold, and the sleep state of the right user is obtained based on the fourth comparison result between the body movement frequency of the right user and the preset body movement frequency threshold. S106. Based on the existence status of the left user and the existence status of the right user, verify the validity of the sleep status of the left user and the sleep status of the right user respectively. When the existence status of the left user is not present, set the sleep status of the left user to non-sleep state. When the existence status of the right user is not present, set the sleep status of the right user to non-sleep state.
[0009] In one embodiment, step S200 includes: S201. Based on the first matching result between the left user's sleep state and the first preset sleep state value, a left-side determination result is obtained to determine whether the left side is in a sleep state; based on the second matching result between the right user's sleep state and the first preset sleep state value, a right-side determination result is obtained to determine whether the right side is in a sleep state. S202. Based on the left-side determination result and the right-side determination result, count the number of user sides determined to be in a sleep state to obtain the sleep side count; S203. Based on the first numerical comparison result between the sleep side count and the preset value 1, a preliminary judgment result on whether it is unilateral sleep is obtained; S204. Based on the left-side determination result and the right-side determination result, determine the user side that is determined to be in a non-sleep state, and obtain the single-side identification result; S205. Based on the preliminary judgment result and the unilateral identification result, generate a final judgment result on whether only one side of the user is in a sleep state.
[0010] In one embodiment, step S500 includes: S501. Based on the target lighting side, determine the lighting element in the lighting assembly corresponding to the target lighting side as the target lighting element, generate an opening command for the target lighting element, and control the target lighting element to turn on based on the opening command; S502. Based on the target illumination side, select a pressure sensor unit corresponding to the target illumination side from the pressure sensor array disposed on the mattress, as the target detection area; S503. Based on the target detection area, collect real-time pressure distribution data at the current moment; S504. Based on the real-time pressure distribution data, extract the coordinates of all sensor positions where the pressure amplitude is greater than the preset contact pressure threshold to obtain the pressure contact point set; S505. Based on the set of pressure contact points, calculate the maximum coordinate difference of the set of pressure contact points in the length direction of the mattress and the maximum coordinate difference in the width direction of the mattress, and use the maximum coordinate difference as the extension range of the torso, and use the end coordinates corresponding to the maximum coordinate difference as the estimated position of the head. S506. Based on the torso extension range and the estimated head position, determine the real-time posture of the user on the target lighting side as supine, lateral, or sitting.
[0011] In one embodiment, step S100 specifically includes: S101a. Acquire left-sided cardiac impact signal based on a piezoelectric thin film sensor located in the left side region of the mattress, and acquire right-sided cardiac impact signal based on a piezoelectric thin film sensor located in the right side region of the mattress. S102a. Based on the first amplitude comparison result between the left cardiac impact signal and the preset resting signal amplitude threshold, a left body movement presence indicator is obtained; based on the second amplitude comparison result between the right cardiac impact signal and the preset resting signal amplitude threshold, a right body movement presence indicator is obtained. S103a. Calculate the instantaneous heart rate on the left side based on the time interval between adjacent heartbeat peaks in the left-side cardiac impact signal, and calculate the instantaneous heart rate on the right side based on the time interval between adjacent heartbeat peaks in the right-side cardiac impact signal. S104a. Based on the first heart rate comparison result between the left instantaneous heart rate and the preset upper limit of sleep heart rate, a left heart rate sleep identifier is obtained; based on the second heart rate comparison result between the right instantaneous heart rate and the preset upper limit of sleep heart rate, a right heart rate sleep identifier is obtained. S105a. Based on the left-side body movement presence identifier and the left-side heart rate sleep identifier, generate the left-side user sleep state, wherein when the left-side body movement presence identifier is no body movement and the left-side heart rate sleep identifier is below the upper limit of sleep heart rate, it is determined to be a sleep state; otherwise, it is determined to be a non-sleep state. Based on the right-side body movement presence identifier and the right-side heart rate sleep identifier, generate the right-side user sleep state, wherein when the right-side body movement presence identifier is no body movement and the right-side heart rate sleep identifier is below the upper limit of sleep heart rate, it is determined to be a sleep state; otherwise, it is determined to be a non-sleep state.
[0012] In one embodiment, the step of obtaining the real-time pose of the user on the target illumination side includes: S501b: Based on the target lighting side, select the pressure sensor unit corresponding to the target lighting side from the pressure sensor array set on the mattress, collect the current pressure value of all sensor units in the area, and obtain the target side pressure distribution matrix; S502b: Based on the target-side pressure distribution matrix, extract the coordinates of all sensor positions whose pressure values are greater than a preset contact pressure threshold to form a target-side contact point set; S503b. Based on the coordinates of all positions in the target-side contact point set, calculate the geometric center coordinates of the target-side contact point set as the position of the torso's centroid. S504b. Based on the coordinates of all positions in the target-side contact point set, calculate the principal axis direction angle of the target-side contact point set, wherein the principal axis direction angle is the direction that minimizes the rotational inertia of the contact point set about the center of mass of the torso. S505b: Based on the position of the torso's center of mass and the angle of the main axis, respectively, the percentage of the number of target-side contact points concentrated in the upper half and lower half of the mattress length direction are calculated to obtain the torso tilt direction; S506b. Based on the angular inclusion relationship between the torso tilt direction and the preset supine angle range, determine that the real-time posture of the user on the target lighting side is a supine posture, a side-lying posture, or a sitting posture.
[0013] According to a fifth aspect embodiment of the present application, a non-transitory computer-readable storage medium includes a computer program that, when executed by the processor, implements the control method described above.
[0014] The beneficial effects of the embodiments of this application are as follows: In the embodiments of this application, firstly, by synchronously driving the left and right focusing elements to rotate through the rotating component, the independent or coordinated adjustment of the light emission angle on both sides is achieved. Users can flexibly choose single-sided or double-sided lighting according to their actual needs, effectively solving the problem of light interference on the other side when lighting is applied to one side of a double bed, thus improving the comfort and privacy of the sleep environment. Secondly, by using focused element reflective lighting instead of direct light from the light source, the light is more uniform and softer, and the illumination area can be changed by adjusting the reflection angle to adapt to the needs of users of different heights and sleeping positions. Attached Figure Description
[0015] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1 This is a schematic diagram of the mattress structure provided in an embodiment of this application; Figure 2 This is a partial structural schematic diagram of a mattress provided in an embodiment of this application; Figure 3 This is a flowchart illustrating the control method provided in an embodiment of this application. Detailed Implementation
[0017] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application. In addition, it should be understood that the specific embodiments described herein are only for illustration and explanation of this application and are not intended to limit this application. In this application, unless otherwise stated, directional terms such as "upper" and "lower" generally refer to the upper and lower positions of the device in actual use or operation, specifically the drawing directions in the accompanying drawings; while "inner" and "outer" refer to the outline of the device.
[0018] The following is combined with Figures 1 to 3 This application describes the mattress, smart home system, control method, and storage medium.
[0019] According to the embodiments of the first aspect of this application, such as Figure 1 and Figure 2 As shown, the mattress includes: Base plate 1; Back plate 2 is connected to the base plate 1; A lighting assembly 3 is installed on the back panel 2. The lighting assembly 3 includes a rotating component 31, a left-side focusing component 32, a right-side focusing component 33, a left-side lighting component 34, and a right-side lighting component 35. The left-side focusing component 32 and the right-side focusing component 33 are both connected to the rotating component 31. The rotating component 31 is used to drive the left-side focusing component 32 and the right-side focusing component 33 to rotate. The left-side lighting component 34 is connected to the side of the left-side focusing component 32 away from the right-side focusing component 33. The right-side lighting component 35 is connected to the side of the right-side focusing component 33 away from the left-side focusing component 32. The left-side focusing component 32 is used to reflect the light emitted by the left-side lighting component 34 to the left side of the mattress. The right-side focusing component 33 is used to reflect the light emitted by the right-side lighting component 35 to the right side of the mattress.
[0020] Understandably, when only left-side lighting is needed, the user controls the rotation of the rotating component 31 to adjust the left-side focusing element 32 to a suitable reflection angle. The light emitted by the left-side lighting element 34 is reflected by the left-side focusing element 32 and directed onto the left side of the mattress. Meanwhile, the right-side focusing element 33 rotates synchronously with the rotating component 31, directing the light from the right-side lighting element 35 to a location outside the right side (e.g., towards the outside of the mattress or upwards), thus avoiding light interference for the user on the right side. Similarly, when only right-side lighting is needed, the rotating component 31 adjusts the angle of the right-side focusing element 33, concentrating the light onto the right side of the mattress. When simultaneous lighting on both sides is required, the left and right focusing elements can be adjusted to their respective symmetrical reflection angles, allowing the light to cover both sides. Since the left-side lighting element 34 and the right-side lighting element 35 are respectively located outside their respective focusing elements and separated by the rotating component 31, the light sources do not obstruct each other, and the reflection of the focusing elements makes the light concentrated and soft, avoiding direct sunlight on the eyes.
[0021] First, the rotating component 31 synchronously drives the left and right focusing components to rotate, enabling independent or coordinated adjustment of the light emission angle on both sides. Users can flexibly choose single-sided or double-sided lighting according to their actual needs, effectively solving the problem of light interference on the other side when lighting is applied to one side of a double bed, thus improving the comfort and privacy of the sleeping environment. Second, the use of reflective lighting from the focusing components instead of direct light from the light source results in more uniform and softer light. Furthermore, the illumination area can be changed by adjusting the reflection angle to accommodate users of different heights and sleeping positions. In addition, the left and right lighting components are installed on the outside of the focusing components, resulting in a compact structure and easy installation. The rotating component 31 can be designed as a manual knob or electrically driven, offering flexible control.
[0022] In some examples, the rotating component 31 is a horizontally extending rotating shaft, with the left focusing component 32 and the right focusing component 33 fixed to the left and right ends of the rotating shaft, respectively. The rotating shaft is mounted on the back plate 2 via a bearing seat.
[0023] In some embodiments, the mattress further includes: A detection component for detecting the sleep status of the user on the left side of the mattress and the user on the right side of the mattress; The control component is communicatively connected to the main indoor lighting fixture. Both the lighting fixture 3 and the detection component are electrically connected to the control component. The control component is configured to control the operation of the main indoor lighting fixture and the lighting fixture 3 based on the detection data from the detection component.
[0024] Understandably, the detection component collects sleep parameters from the users on the left and right sides of the mattress in real time and sends the data to the control component. After analyzing the data, the control component determines the user's sleep depth, whether they are in a light sleep stage, or are about to wake up. When it detects signs of awakening such as turning over, opening their eyes, or preparing to get up, the control component can first adjust the corresponding side's light component 3 (left-side spotlight 32 or right-side spotlight 33) to a low brightness or reflect it under the bed to a direction that does not shine directly into the eyes, serving as a low-light guide at night. If the user sits up completely or gets out of bed, the control component further controls the main room light to gradually turn on, providing sufficient ambient light. At the same time, if the user on the other side is still in a deep sleep, the control component keeps their side's light component 3 off and adjusts the direction of the main light or the light shield to avoid light disturbing their sleep. In addition, the control component can also be linked with smart home devices to automatically open curtains and adjust the room temperature when both people wake up at the same time.
[0025] The benefits of this implementation are significant. First, by monitoring the sleep status of the left and right users in real time through the detection component, the control component can intelligently distinguish the needs of users on different sides, achieving zoned lighting management so that "the left user getting up at night does not disturb the right user," significantly improving the user experience and sleep quality of the double bed. Second, the reflective lighting of the lighting component 3 works in conjunction with the main indoor lighting, gradually adjusting the brightness according to the user's status, which not only meets the basic lighting needs for nighttime activities but also avoids discomfort or waking others caused by sudden bright light stimulation.
[0026] In some examples, the detection components include piezoelectric film sensors or fiber optic sensors embedded on the left and right sides of the mattress, respectively, for detecting body movement and heart rate. The control component is a controller with a built-in MCU that communicates with the smart ceiling light (main indoor lighting) via a Zigbee or Wi-Fi module. When the detection components detect an increase in the body movement frequency and heart rate of the user on the left (indicating that they are about to get up), while the user on the right is still in a stable deep sleep, the control component controls the left lighting component 34 to light up at 5% brightness, and reflects the light to the ground through the left spotlight component 32 to create a night light effect; if the user on the left gets out of bed, the control component sends a command to the ceiling light to slowly light up at 20% brightness, while keeping the right lighting component 3 off. After the user on the left returns to bed and falls asleep again, all lights automatically turn off.
[0027] According to an embodiment of the second aspect of this application, the smart home system includes the aforementioned mattress. This smart home system possesses all the beneficial effects of the aforementioned mattress, which will not be elaborated further herein.
[0028] According to the embodiments of the third aspect of this application, such as Figure 3 As shown, the control method for the above-mentioned mattress includes the following steps: S100. Acquire the sleep status of the user on the left and the user on the right. Specifically, the sleep parameters of the users on the left and right sides of the mattress are collected in real time through the detection components embedded in the mattress (such as piezoelectric film sensors, heart rate sensors, or body movement sensors), including heart rate, respiratory rate, number of body movements, and frequency of turning over. The data is processed and analyzed to determine whether the user on each side is currently in a sleep state or not (such as light sleep, deep sleep, about to wake up, or already awake).
[0029] S200. Based on the sleep states of the left-hand user and the right-hand user, determine whether only one side of the user is asleep. That is, determine whether only one side of the user is asleep, while the other side is awake or not in bed.
[0030] S300: Based on the determination that only one side of the user is asleep, the main indoor light is turned off. When only one side of the user is asleep, in order to avoid the light from the main light disturbing the rest of the user on that side, the control component automatically turns off the main indoor light (or adjusts it to the lowest brightness), while providing targeted local lighting for the awake user on the other side.
[0031] S400: Based on the determination that only one side of the user is asleep, the side of the user who is not asleep is identified as the target lighting side, and the target lighting element is determined based on the target lighting side. For example, if the user on the left is asleep and the user on the right is awake, then the target lighting side is the right side, and the target lighting element is the right-side lighting element 35. The reverse is also true.
[0032] S500: Control the target lighting component to turn on and obtain the real-time posture of the user on the target lighting side. Turn on the light component 3 on the target side (such as the right-side lighting component 35), and obtain the real-time posture of the user on that side through a posture detection sensor (such as a pressure distribution sensor, camera, or infrared pyroelectric sensor) set in the corresponding area of the mattress, such as whether the user is lying flat, lying on their side, sitting up, preparing to get out of bed, or already standing.
[0033] S600. Based on the real-time posture of the user on the target lighting side, control the rotating component 31 to rotate the target lighting component to the target angle. Depending on the user's posture, control the rotating component 31 to drive the left focusing component 32 or the right focusing component 33 to rotate, so that the light emitted by the target lighting component is reflected by the focusing component and precisely projected onto the area required for the user's activity. For example: when the user is only sitting up, the light is reflected to the head of the bed or a low point on the ground, providing a soft nightlight effect; when the user is standing and preparing to walk, the light is reflected to the front of the bed or the path leading to the bathroom, forming guiding lighting; when the user is fully awake and gets out of bed, the light can be switched to general illumination or turned off.
[0034] The benefits of this implementation method are significant. First, by differentiating between left and right sleep states, the main light is turned off and local lighting is activated only when one side of the user is asleep. This avoids interference from the main light on the sleeper while providing necessary activity lighting for the awake user, achieving zoned lighting management in a two-person scenario and improving sleep quality and user experience. Second, the angle of the spotlight is dynamically adjusted based on the real-time posture of the awake user, ensuring that the light always follows the user's activity area. This satisfies lighting needs while preventing direct light from shining into the eyes or scattering onto the sleeping side, achieving intelligent and user-friendly following lighting. Furthermore, this control method is fully automated, requiring no manual operation from the user, making it particularly suitable for scenarios such as getting up at night or waking up early, reducing the risk of falls due to uncomfortable lighting.
[0035] In some embodiments, step S100 (obtaining the sleep state of the left user and the sleep state of the right user) specifically includes the following sub-steps: S101. Pressure signals from the left side of the mattress are acquired using an array of pressure sensors located on the left side of the mattress, and pressure signals from the right side of the mattress are acquired using an array of pressure sensors located on the right side of the mattress. The pressure sensor arrays can continuously detect the pressure distribution and amplitude in each area.
[0036] S102. The presence status of a user on the left side is obtained based on a first comparison result between the left pressure signal and a preset presence pressure threshold, and the presence status of a user on the right side is obtained based on a second comparison result between the right pressure signal and the preset presence pressure threshold. For example, when the maximum pressure value or average pressure value on a certain side exceeds the preset presence pressure threshold (such as the pressure corresponding to 10 kg), it is determined that a user exists on that side; otherwise, it is determined that no user exists.
[0037] S103. Based on the left-side pressure signal and the right-side pressure signal, count the number of pressure changes on the left side and the number of pressure changes on the right side within a preset time window. The preset time window can be set to 1 minute or 2 minutes, and the number of pressure changes can be counted based on the number of times the pressure value fluctuation exceeds a preset change threshold.
[0038] S104. The left-side user's body movement frequency is obtained based on the number of pressure changes on the left side and the preset time window; the right-side user's body movement frequency is obtained based on the number of pressure changes on the right side and the preset time window. For example, body movement frequency = number of pressure changes / time window (minutes), in units of times / minute.
[0039] S105. The sleep state of the left user is obtained based on the third comparison result between the body movement frequency of the left user and the preset body movement frequency threshold, and the sleep state of the right user is obtained based on the fourth comparison result between the body movement frequency of the right user and the preset body movement frequency threshold. Generally, a low body movement frequency (e.g., less than 5 times / minute) is determined to be a sleep state, and a high body movement frequency (e.g., greater than or equal to 5 times / minute) is determined to be a non-sleep state (e.g., light sleep, about to wake up, or already awake).
[0040] S106. Based on the presence status of the left user and the right user, verify the validity of the sleep state of the left user and the right user, respectively. When the presence status of the left user is "not present," forcibly set the sleep state of the left user to a non-sleep state; when the presence status of the right user is "not present," forcibly set the sleep state of the right user to a non-sleep state. This step is used to correct misjudgments caused by noise from body movement signals in empty beds, ensuring that the sleep state is only valid for actual users.
[0041] Through the above steps, the control component can accurately and in real time obtain the sleep status of users on both the left and right sides, providing a reliable basis for subsequent zoned lighting control.
[0042] This implementation method offers significant advantages. First, by collecting pressure signals from both sides using a pressure sensor array and independently calculating body movement frequencies, it achieves accurate differentiation of the sleep states of the left and right users in a double bed, avoiding the defect of unilateral body movement affecting the judgment of the other side. Second, the introduction of a presence verification mechanism effectively eliminates false body movement signals generated by sensor noise or interference on the empty bed side, ensuring the accuracy and reliability of sleep state judgment and preventing the lights from being mistakenly turned on on the unoccupied side.
[0043] In some embodiments, step S200 (determining whether only one side of the user is asleep based on the sleep states of the left and right users) specifically includes the following sub-steps: S201. Based on the first matching result between the left user's sleep state and the first preset sleep state value, a left-side determination result is obtained regarding whether the left side is in a sleep state; based on the second matching result between the right user's sleep state and the first preset sleep state value, a right-side determination result is obtained regarding whether the right side is in a sleep state. The first preset sleep state value can be set as the quantized value corresponding to "sleep" (e.g., "sleep" = 1, "non-sleep" = 0). By matching the detected sleep state with this preset value, a Boolean determination of whether each side is in a sleep state can be obtained.
[0044] S202. Based on the determination results of the left side and the right side, count the number of user sides determined to be in a sleep state to obtain a sleep side count. For example, if both the left and right sides are in a sleep state, the count is 2; if only one side is in a sleep state, the count is 1; if neither side is in a sleep state, the count is 0.
[0045] S203. Based on the comparison result between the sleep side count and the preset value 1, a preliminary judgment result is obtained as to whether it is unilateral sleep. When the sleep side count is equal to 1, it is preliminarily judged as unilateral sleep; when the count is 0 or 2, it is preliminarily judged as non-unilateral sleep.
[0046] S204. Based on the left-side determination result and the right-side determination result, determine the user side that is determined to be in a non-sleep state, and obtain a single-side identification result. That is, if only the left side is non-sleep and the right side is sleep, the single-side identification result is "left side"; if only the right side is non-sleep and the left side is sleep, the identification result is "right side".
[0047] S205. Based on the preliminary judgment result and the unilateral identification result, generate a final judgment result on whether only one side of the user is in a sleeping state. If the preliminary judgment is "unilateral sleep" and the unilateral identification result clearly points to a certain side, then the final output is "Yes, only the left user is sleeping" or "Yes, only the right user is sleeping"; if the preliminary judgment is not unilateral sleep, then the final output is "No".
[0048] Through the above steps, the control component can accurately identify whether only one side of the user in the double bed is asleep, and determine which side the user is awake and which side the user is still asleep, providing accurate target side information for subsequent zoned lighting control.
[0049] The beneficial effects of this implementation method are significant. First, by matching sleep states with preset values and statistically counting them, a quantitative comparison of left and right sleep states is achieved. The judgment logic is clear, the calculation is simple, and misjudgments caused by fuzzy logic are avoided. Second, by determining the unilateral identification result, not only is it known whether unilateral sleep occurs, but the position of the awake side (left or right) is also accurately indicated, providing a clear basis for determining the target illumination device and adjusting the light angle in subsequent steps. In addition, the dual verification (preliminary judgment + identification) enhances the robustness of the judgment and prevents unilateral misjudgments due to transient sensor malfunctions.
[0050] In some examples, the first preset sleep state value is set to 1 for "sleep state" and 0 for "non-sleep state". Steps S101-S106 result in a left-side sleep state value of 1 (sleep) and a right-side sleep state value of 0 (non-sleep). The left-side determination is "yes", and the right-side determination is "no". The sleep side count is 1, initially indicating unilateral sleep. The unilateral identification result is "right side" (because the right side is non-sleep). The final determination is: only the right-side user is in a non-sleep state (i.e., the left-side user is asleep). The control component then executes S300-S600, turning off the main light, turning on the right-side illuminator 35, and adjusting the angle of the right-side spotlight 33 according to the right-side user's posture.
[0051] In some embodiments, step S500 (controlling the target illumination element to turn on and acquiring the real-time posture of the user on the target illumination side) specifically includes the following sub-steps: S501. Based on the target illumination side, determine the illumination element in the lighting assembly 3 corresponding to the target illumination side as the target illumination element, and generate an activation command for the target illumination element. Control the activation of the target illumination element based on the activation command. For example, if the target illumination side is the left side, the target illumination element is the left-side illumination element 34; if it is the right side, it is the right-side illumination element 35. When activated, the brightness can be adjusted to a lower level (e.g., 5%~10%) according to the preset ambient brightness or time (e.g., late at night) to avoid strong light stimulation.
[0052] S502. Based on the target illumination side, select a pressure sensor unit corresponding to the target illumination side from the pressure sensor array installed on the mattress as the target detection area. Independent pressure sensor arrays are arranged on the left and right sides of the mattress. After the target illumination side is determined, only the pressure sensor unit on that side is activated to collect data, reducing the amount of data processing and avoiding interference from the body movements of the user on the other side.
[0053] S503. Based on the target detection area, collect real-time pressure distribution data at the current moment. This data reflects the contact pressure distribution between the user's body and the mattress on the target side, including the coordinates and pressure amplitude of each sensor unit.
[0054] S504. Based on the real-time pressure distribution data, extract the coordinates of all sensor locations whose pressure amplitude is greater than a preset contact pressure threshold to obtain a set of pressure contact points. The preset contact pressure threshold can be set to a small value (e.g., 2~5 kPa) to distinguish between actual human contact and mattress deformation or noise signals. This set of points represents the actual contact area between the user's body and the mattress.
[0055] S505. Based on the set of pressure contact points, calculate the maximum coordinate difference of the set of pressure contact points along the length direction (i.e., head-to-tail direction) and the maximum coordinate difference along the width direction (i.e., left-to-right direction) of the mattress. Use the maximum coordinate difference as the torso extension range, and the end coordinates corresponding to the maximum coordinate difference as the estimated head position. Specifically, find the minimum and maximum coordinates along the length direction in the set of contact points; the difference is the torso extension range along the length direction. The difference between the minimum and maximum coordinates along the width direction reflects the body's lateral width. Typically, the estimated head position is determined by the maximum coordinate along the length direction (assuming the head is located at the top of the mattress) or by combining the center of gravity of the pressure distribution.
[0056] S506. Based on the torso extension range and the estimated head position, determine the real-time posture of the user on the target lighting side as supine, lateral, or sitting. For example: if the torso extension range is greater than 60% of the total mattress length and the difference in width coordinates is small, it can be determined as a supine posture; if the torso extension range is large but the difference in width coordinates is large and the pressure is concentrated on one side, it can be determined as a lateral posture; if the torso extension range is short (e.g., less than 30%), the pressure is concentrated in the upper middle area of the mattress and there are signs of getting off the bed, it can be determined as a sitting posture (the user is sitting on the edge of the bed). In addition, historical data or heart rate sensor data can be used to assist in confirmation.
[0057] This implementation method offers significant advantages. First, by differentiating the target lighting side and collecting pressure sensor data only from the corresponding side, computational interference caused by mixing data from both sides is avoided, improving the accuracy and efficiency of posture recognition. Second, by utilizing the spatial distribution characteristics of the pressure contact point set (range in length direction, range in width direction, and end coordinates) to determine posture, no additional cameras or wearable devices are required, protecting user privacy, and the method is cost-effective and fast-responding. Furthermore, after accurately identifying the user's posture (supine, side-lying, sitting), the control system can further adjust the reflection angle of the focusing element, ensuring that light is precisely projected onto the area where the user needs the most illumination (such as the bedside table, floor path, or reading position), achieving humanized and intelligent zoned lighting.
[0058] In some examples, the mattress is 2000mm long and 1800mm wide, with 16×16 piezoresistive sensor arrays on each side. The preset contact pressure threshold is 3kPa. When the target illumination side is the right side and the user is in a side-lying position, the maximum coordinate difference of the pressure contact point set in the width direction is relatively large (e.g., exceeding 600mm), while the range in the length direction is approximately 1500mm, with the head estimated to be located at the upper end of the length direction (approximately 200mm). Based on this, the control component determines that the user is lying on their right side and then drives the rotating component 31 to rotate the right-side focusing component 33 to approximately a 15° angle, so that the light shines obliquely downwards onto the right side of the bed surface, avoiding direct light into the user's eyes, while simultaneously providing floor illumination for when the user is about to get out of bed. When the user turns into a sitting position, the length range of the pressure contact point set shrinks to approximately 400mm and is concentrated on the upper part of the mattress. The system determines that the user has sat up, then increases the illumination brightness and adjusts the angle of the focusing component to 45°, directing the light towards the ground in front of the bed and towards the doorway.
[0059] In some embodiments, step S100 (obtaining the sleep state of the left user and the sleep state of the right user) specifically includes the following sub-steps: S101a: A piezoelectric thin-film sensor located on the left side of the mattress acquires a left-sided cardiac impulse signal (BCG signal), and a piezoelectric thin-film sensor located on the right side of the mattress acquires a right-sided cardiac impulse signal. The piezoelectric thin-film sensor can non-contactly sense the weak mechanical vibrations caused by the heartbeat, thereby extracting a composite signal containing information on heartbeat, respiration, and body movement.
[0060] S102a. Based on the first amplitude comparison result between the left cardiac impact signal and the preset resting signal amplitude threshold, a left-side body movement presence indicator is obtained; based on the second amplitude comparison result between the right cardiac impact signal and the preset resting signal amplitude threshold, a right-side body movement presence indicator is obtained. The large amplitude fluctuations in the cardiac impact signal are usually caused by body movements such as turning over or moving limbs. When the signal amplitude exceeds the preset resting signal amplitude threshold, body movement is determined to exist, and the body movement presence indicator is set to "body movement present"; otherwise, it is set to "no body movement present".
[0061] S103a. Calculate the instantaneous heart rate on the left side based on the time interval between adjacent heartbeat peaks in the left-side cardiac impact signal, and calculate the instantaneous heart rate on the right side based on the time interval between adjacent heartbeat peaks in the right-side cardiac impact signal. By filtering the cardiac impact signal and identifying feature points (such as J-wave extraction), the peak corresponding to each heartbeat is detected, the time interval between adjacent peaks is calculated, and then converted into heartbeats per minute to obtain the instantaneous heart rate value.
[0062] S104a. Based on the first heart rate comparison result between the instantaneous heart rate on the left side and the preset upper limit of the sleep heart rate, a left heart rate sleep label is obtained; based on the second heart rate comparison result between the instantaneous heart rate on the right side and the preset upper limit of the sleep heart rate, a right heart rate sleep label is obtained. Normally, the heart rate of a person in a waking state is higher than that in a sleeping state. The preset upper limit of the sleep heart rate can be set to 60-70 beats / minute (adjusted according to individual resting heart rate). When the instantaneous heart rate is lower than or equal to this upper limit, the heart rate sleep label is "sleep heart rate"; otherwise, it is "non-sleep heart rate".
[0063] S105a. Based on the left-side body movement presence identifier and the left-side heart rate sleep identifier, generate the left-side user sleep state. Specifically, when the left-side body movement presence identifier is "no body movement" and the left-side heart rate sleep identifier is "below the upper limit of sleep heart rate", it is determined to be a sleep state; otherwise (body movement exists or heart rate exceeds the upper limit), it is determined to be a non-sleep state. Similarly, based on the right-side body movement presence identifier and the right-side heart rate sleep identifier, generate the right-side user sleep state: when the right-side body movement presence identifier is "no body movement" and the right-side heart rate sleep identifier is "below the upper limit of sleep heart rate", it is determined to be a sleep state; otherwise, it is a non-sleep state.
[0064] By using the above-mentioned method based on the fusion of cardiac impact signals and heart rate, the control component can accurately and non-invasively obtain the real-time sleep status of users on both sides, providing highly reliable input data for subsequent zoned lighting control.
[0065] The benefits of this implementation method are significant. First, it uses a piezoelectric thin-film sensor to collect cardiac impact signals, requiring no user-worn devices or additional protrusions on the mattress surface, making it completely imperceptible and unaffected by sleep comfort. Second, it combines body movement detection and heart rate as dual indicators to determine sleep state: body movement quickly reflects a user's awakening or turning over, while heart rate reflects deeper physiological states. The fusion of these two indicators effectively avoids misjudgments that may arise from a single indicator (e.g., being still but not asleep, or occasionally turning over during sleep), improving the accuracy and robustness of sleep state recognition. Furthermore, the cardiac impact signal and heart rate calculation naturally support independent processing of left and right zones without interference, perfectly adapting to the zoned lighting control needs of double beds.
[0066] In some examples, a piezoelectric thin-film sensor (such as a PVDF piezoelectric film) is embedded on each side of the mattress. The charge signal output by the sensor is amplified, filtered, and converted by an analog-to-digital converter before being sent to the MCU. The preset resting signal amplitude threshold can be set to three times the root mean square of the background noise; fluctuations exceeding this threshold are considered body movement. The preset upper limit for sleep heart rate is set to 65 beats per minute. When the user on the left enters deep sleep, their heart rate stabilizes at 55-60 beats per minute, and body movement is minimal; the left sleep state is "sleep." The user on the right, either not asleep or awake, may have a heart rate reaching 80 beats per minute or experience frequent body movement; therefore, the right sleep state is "non-sleep." The control component determines unilateral sleep based on this information and then executes subsequent lighting control.
[0067] In some embodiments, the step of "obtaining the real-time posture of the user on the target lighting side" specifically includes the following sub-steps: S501b: Based on the target illumination side, select pressure sensor units corresponding to the target illumination side from the pressure sensor array installed on the mattress, collect the current pressure values of all sensor units in that area, and obtain the target side pressure distribution matrix. For example, when the target illumination side is the left side, only the sensor units in the left area are activated to form an M×N pressure value matrix.
[0068] S502b: Based on the target-side pressure distribution matrix, extract the coordinates of all sensor locations where the pressure value is greater than a preset contact pressure threshold (e.g., 3 kPa) to form a target-side contact point set. These coordinate points represent the area where the user's body actually contacts the mattress, excluding low-pressure signals generated by mattress deformation or noise.
[0069] S503b. Based on the coordinates of all positions in the target-side contact point set, calculate the geometric center coordinates of the target-side contact point set as the position of the torso's center of mass. Specifically, calculate the average x-coordinate and average y-coordinate of all points in the contact point set to obtain the center of mass coordinates (x_c, y_c). This position roughly corresponds to the projection of the human torso's center of gravity.
[0070] S504b. Based on the coordinates of all positions in the target-side contact point set, calculate the principal axis direction angle of the target-side contact point set. The principal axis direction angle is the direction that minimizes the rotational inertia of the contact point set about the torso's center of mass, and can be obtained by calculating the covariance matrix of the contact point set and obtaining its eigenvectors. This principal axis direction angle reflects the main extension direction of the human torso on the mattress plane.
[0071] S505b: Based on the position of the torso's center of mass and the angle of the main axis, the percentage of contact points concentrated in the upper half and lower half of the mattress along its length is calculated to determine the torso's tilt direction. For example, the mattress is divided into an upper half (near the headboard) and a lower half (near the footboard) along its length, and the proportion of contact points in the upper half is calculated. Combined with the main axis direction, it can be determined whether the user is lying flat, with their head tilted upwards, or with their feet tilted upwards, etc.
[0072] S506b. Based on the angular inclusion relationship between the torso tilt direction and the preset supine angle range, determine whether the real-time posture of the user on the target lighting side is supine, lateral, or sitting. Specifically, the preset supine angle range is usually 0°±15° (i.e., the angle between the main axis direction and the mattress width direction is very small). If the angle is within this range and the contact area is large, it is determined to be supine; if the angle of the main axis direction is close to 90° and the contact points are concentrated on one side of the body, it is determined to be lateral; if the torso's center of mass is close to the top of the mattress and the contact point area is small and the pressure value is high, it is determined to be sitting.
[0073] The benefits of this implementation method are significant. First, by extracting the target side contact point set and calculating the geometric center and principal axis direction, the overall posture characteristics of the user on the mattress can be accurately characterized with low computational complexity and high real-time performance. Second, by matching the torso tilt direction with a preset angle range, three common nighttime postures—supine, lateral, and sitting—can be clearly distinguished, providing a reliable basis for subsequent adjustments to the angle of the light-reflecting element. Furthermore, this posture recognition method relies entirely on a pressure sensor array, requiring no camera or wearable device, protecting user privacy and not disturbing sleep, making it suitable for intelligent zoned lighting control in double beds.
[0074] In some examples, the mattress is 2000mm long and 1800mm wide, with 16×16 piezoresistive sensor arrays on each side. The preset contact pressure threshold is 2.5kPa. When the right side is the target illumination side, the pressure matrix on the right side is collected, and the centroid coordinates (1500mm, 800mm) are calculated. The principal axis angle is 5° (close to 0°), with 65% of the points in the upper half and 35% in the lower half. This angle falls within the supine position (±15°), so the user is determined to be in a supine position. If the principal axis angle is 85°, and the contact points are concentrated on the right side of the body (the pressure value on the left side is significantly lower), then the user is determined to be in a right lateral decubitus position. If the centroid coordinates are close to the head of the bed (e.g., 200mm, 900mm), and the area of the contact point cluster is less than 30% of the normal lying area, while the pressure amplitude is generally high (e.g., >10kPa), then the user is determined to be in a sitting position (sitting on the edge of the bed). Based on the identified posture, the control component drives the rotating component 31 to rotate the right-side focusing component 33 to the corresponding angle: when lying on the back, the reflected light is obliquely towards the center of the bed surface; when lying on the side, the reflected light is biased towards one side of the bed edge; and when sitting, the reflected light points towards the ground and the doorway, thereby achieving personalized and precise intelligent lighting.
[0075] In some embodiments, after step S600 (the target illumination element is rotated to the target angle based on the real-time attitude control of the rotating component 31 of the user on the target illumination side), the following steps are further included: S701c: Based on a pressure sensor array mounted on the mattress, pressure distribution data of the user on the target lighting side is continuously collected at least three consecutive time intervals to obtain a first time-series pressure distribution, a second time-series pressure distribution, and a third time-series pressure distribution. For example, after posture adjustment is completed, pressure distribution is collected every 0.5 seconds for three consecutive times.
[0076] S702c: Based on the first time-series pressure distribution and the second time-series pressure distribution, calculate the pressure change at the same sensor location to obtain a first pressure change map; based on the second time-series pressure distribution and the third time-series pressure distribution, calculate the pressure change at the same sensor location to obtain a second pressure change map. Each pressure change map reflects the spatial distribution of pressure increase and decrease at adjacent times. Positive values indicate that the pressure in that area increases (the body presses towards that location), and negative values indicate that the pressure decreases (the body moves away from that location).
[0077] S703c: Based on the first pressure change map and the second pressure change map, extract continuous sensor regions where the sign of the pressure value change remains unchanged and the magnitude of the change continues to increase, as the posture movement trend region. For example, if the sensor pressure value of a certain region is positive and the increment gradually increases in two consecutive time intervals, it indicates that the region is experiencing continuously increasing pressure, that is, the user's body is moving in that direction. Conversely, if the pressure change is continuously negative and the absolute value increases, it indicates that the body is leaving the region.
[0078] S704c: Based on the direction of the center of gravity coordinates of the posture movement trend region relative to the estimated current head position of the user on the target lighting side, predict the head movement direction of the user on the target lighting side. Since the human body's turning over or getting up is often driven by the head, by analyzing the direction of the area where the pressure is continuously increasing relative to the estimated head position (e.g., left front, right front, directly front), the direction in which the user is about to turn or the trend of getting up can be predicted.
[0079] S705c: Based on the head movement direction, control the rotating component 31 to drive the target lighting component to pre-rotate along the head movement direction by a preset step angle (e.g., 5°~10°) to obtain the pre-adjusted target angle. This pre-rotation is performed before the user actually completes the turning over or getting up action, so that the light is pre-illuminated on the area that the user is about to face, realizing the "proactive" adjustment of the lighting angle.
[0080] The benefits of this implementation method are significant. First, by continuously collecting multiple frames of pressure distribution data and analyzing pressure change trends, it can anticipate a user's intention to turn over or get up, rather than adjusting the lighting only after the user has completed the action, thus eliminating the lag in lighting response and improving the user experience. Second, the algorithm extracts the posture movement trend region based on the pressure change symbol and amplitude; it is simple and reliable, requires no complex modeling, and is adaptable to users of different body types. Furthermore, the pre-rotation follows the user's movements step by step, avoiding excessively abrupt changes in light that could irritate the user, while smoothly following the user's movement trajectory. This is particularly suitable for providing continuous, soft, and delay-free following lighting when getting up at night or turning over.
[0081] In some examples, a 16×16 pressure sensor array is arranged on each side of the mattress. When the target illumination side is the right side, and the current light angle has been adjusted to 30° according to the user's supine posture, the control system continuously collects pressure distribution data three times at 0.4-second intervals. Calculating the first and second pressure change maps, it is found that the pressure change in the upper right half (near the right shoulder) is positive (+2kPa, +3.5kPa) in both intervals, and the change in the surrounding area is stable. The center of gravity of this continuous area is located approximately 20° to the right and in front of the current estimated head position. Based on this, it is predicted that the user will soon roll over to the right. The control component then controls the rotating component 31 to drive the right-side focusing component 33 to pre-rotate 8° along the predicted direction (to the right and in front). One second later, the user indeed begins to roll over to the right, at which point the light has already illuminated the area of the bed surface that the user will be facing, avoiding the situation where the user is in darkness after rolling over.
[0082] In some embodiments, step S100 (obtaining the sleep state of the left user and the sleep state of the right user) specifically includes the following sub-steps: S101d: Pressure sensing data on the left side is collected based on a first pressure sensor array located on the left side of the mattress, and micro-body movement signals on the left side are collected based on a piezoelectric film sensor located on the left side of the mattress. Similarly, pressure sensing data on the right side is collected based on a second pressure sensor array located on the right side of the mattress, and micro-body movement signals on the right side are collected based on a piezoelectric film sensor located on the right side of the mattress. The pressure sensor array is used to detect whether the user is on the bed and the distribution of body pressure, while the piezoelectric film sensor is used to capture weak vibration signals caused by heartbeat, breathing, and minute limb movements.
[0083] S102d: Based on the first comparison result between the left-side pressure sensing data and the preset pressure threshold, a left-side user in-bed identifier is obtained; based on the second comparison result between the right-side pressure sensing data and the preset pressure threshold, a right-side user in-bed identifier is obtained. For example, when the maximum or average left-side pressure exceeds the preset threshold (e.g., 5 kPa), the left-side user in-bed identifier is determined to be "in bed"; otherwise, it is "out of bed".
[0084] S103d: Based on the third comparison result between the left-side micro-movement signal and the preset body movement amplitude threshold, a left-side body movement level identifier is obtained; based on the fourth comparison result between the right-side micro-movement signal and the preset body movement amplitude threshold, a right-side body movement level identifier is obtained. The amplitude of the micro-movement signal reflects the intensity of the user's physical activity. The body movement level can be divided into multiple levels, such as: no body movement (amplitude below threshold A), slight body movement (amplitude between threshold A and B), and significant body movement (amplitude above threshold B). The body movement level identifier can be used to determine the user's sleep depth or activity intention.
[0085] S104d. Based on the user's "in bed" indicator on the left and the user's body movement level indicator on the left, determine whether the user's "in bed" status is "in bed," "briefly out of bed," or "truly awake." The specific determination logic is as follows: If the user's "in bed" indicator is "in bed," and the body movement level is low or stable within a preset time window, then it is determined as "in bed." If the user's "in bed" indicator changes from "in bed" to "out of bed" within a short period and then recovers, and the body movement level does not change drastically before and after getting out of bed, then it is determined as "briefly out of bed" (e.g., going to the toilet). If the user's "in bed" indicator changes to "out of bed" and does not recover for a long time, and the body movement level significantly increases before getting out of bed (indicating the user actively got up), then it is determined as "truly awake." The same logic applies to the right side.
[0086] S105d. Based on the user's "in bed" indicator and body movement level indicator on the left side, determine whether the user's sleep intention is "lying down for entertainment," "preparing to fall asleep," or "already asleep." Specifically: if the user's "in bed" indicator is "in bed," and the body movement level is high and changes frequently, it is determined to be "lying down for entertainment" (such as looking at a mobile phone or reading); if the body movement level gradually decreases and the heart rate tends to level off, it is determined to be "preparing to fall asleep"; if the body movement level remains at a very low level for a long period of time, and the breathing and heart rate are stable, it is determined to be "already asleep." The same applies to the right side.
[0087] Through the above steps, the control component can comprehensively and meticulously obtain the bed status and sleep intentions of users on both the left and right sides, providing richer and more accurate decision-making basis for subsequent zoned lighting control.
[0088] The benefits of this implementation are significant. First, by integrating pressure sensors and piezoelectric film sensors, it simultaneously detects both "being in bed" and "micro-movements," which, compared to a single sensor, can more accurately determine whether the user has truly left the bed or is only getting up temporarily at night, as well as the user's pre-sleep activity, thus avoiding false or missed lighting triggers. Second, through movement level indicators, it can distinguish different sleep intentions such as lying down for entertainment, preparing to sleep, and already asleep, making lighting control more user-friendly: for example, providing reading light when lying down for entertainment, gradually dimming the light when preparing to sleep, and completely turning it off after falling asleep. Furthermore, this solution can recognize brief periods away from the bed (such as going to the toilet at night). The system can turn on a guiding nightlight when the user leaves the bed and automatically turn it off upon returning, while automatically turning on the main light when the user actually gets up, achieving refined and scenario-based intelligent lighting management.
[0089] In some examples, a 16×16 thin-film pressure sensor array and a PVDF piezoelectric film are arranged on each side of the mattress. The preset pressure threshold is 4 kPa. Body movement levels are divided into three levels: no body movement (signal peak-to-peak value < 0.1V), slight body movement (0.1V~0.5V), and significant body movement (> 0.5V). When the user on the left is lying down and frequently flipping their phone (significant body movement), it is judged as "lying down for entertainment," and the system adjusts the left-side light to a warm-colored, low-brightness reading mode. When the user on the left stops body movement for more than 10 minutes, it is judged as "asleep," and the light slowly turns off. If the user on the left suddenly exhibits significant body movement late at night and the pressure signal disappears (gets out of bed), and does not return within 2 minutes, it is judged as "truly getting up," and the system immediately turns on the main indoor light and turns off the left-side night light. If the user returns within 2 minutes of getting out of bed, it is judged as "briefly getting out of bed," and only the floor night light remains on.
[0090] In some embodiments, after step S600 (the target illumination element is rotated to the target angle based on the real-time attitude control of the rotating component 31 of the user on the target illumination side), the following steps are further included: S701e: Based on the sleep states of the left and right users, obtain the in-bed status and sleep intentions of the first and second users, where the first user is the left user and the second user is the right user. Specifically, through the comprehensive information such as user sleep state, in-bed status, body movement level, and sleep intention obtained in the aforementioned steps S100 to S105d, the current status of the left and right users is clearly distinguished. For example, the left user may be in a "briefly out of bed" state, while the right user may be in a "sleep" state.
[0091] S702e: Based on the determination result of the first user's in-bed status as having briefly left the bed and the determination result of the second user's sleep intention as having fallen asleep, a first scene control command is generated for the first user to turn on the first side nightlight associated with the user on the left, and a second scene control command is generated for the second user to maintain the current sleep mode. That is, when the user on the left temporarily leaves the bed (such as getting up to go to the toilet at night) while the user on the right is still in a deep sleep state, the control system only activates the left side partial nightlight without disturbing the right user's sleep environment.
[0092] S703e: Based on the first scene control command, control the auxiliary light located in the left side area of the mattress to turn on in a preset low brightness mode. This auxiliary light can be the lighting element in the left-side spotlight 32 or a low-position night light independently installed on the side of the bed. The preset low brightness mode is usually an extremely low illuminance (such as 1~5 lumens). The light is reflected or shines directly downwards, illuminating only the floor or passageway on the left side of the bed, avoiding light scattering upwards to the right side.
[0093] S704e: Based on the second scene control command, the main bedroom light remains off and no wake-up devices are triggered. That is, the user on the right is still asleep, and the control system will not turn on the main room light, play sounds, or vibrate the pillow when the user on the left gets out of bed, ensuring that the user on the right is not awakened.
[0094] S705e: Based on the fact that the user's brief period of being out of bed on the left side continues for more than a preset time threshold (e.g., 2 minutes) and the pressure sensor data on the left side recovers to above the in-bed threshold, the first side nightlight is turned off. This means that after the user returns to bed, the brief period of being out of bed ends, the nightlight automatically turns off, and a completely dark sleep environment is restored. If the user's time out of bed exceeds a preset threshold (e.g., 15 minutes), it may be determined as a genuine awakening, and other scenarios (e.g., turning on the main lighting) may be executed.
[0095] The beneficial effects of this implementation method are significant. First, by distinguishing between brief periods of getting out of bed and actual wake-up, and based on the judgment of the sleep state of the user on the other side, intelligent lighting control is achieved in a double-person scenario, ensuring "one-sided nighttime awakening without disturbing the neighbor." The low-brightness nightlight on the bedside automatically turns on when the user gets up at night and automatically turns off upon returning, requiring no manual operation and significantly reducing the probability of waking the partner by turning on the light. Second, the auxiliary light uses a low-brightness, directional illumination method to avoid direct light shining into the eyes or scattering into the sleeping area, protecting the deep sleep of the user on the right. Furthermore, this method, combined with the focusing and reflecting structure of the lighting component 3, further concentrates the light along the ground path, meeting lighting needs without disturbing others, significantly improving the sleep quality and convenience of nighttime activities for double-bed users.
[0096] In some examples, a flexible LED light strip (auxiliary light) is installed below the left edge of the mattress and electrically connected to the controller. A pressure sensor array and piezoelectric film sensor on the left side monitor the user's status in bed in real time. When the system determines that the user on the left has "briefly left the bed" (e.g., significant body movement before the pressure signal disappears, and pressure returns within 5 minutes after disappearance), and the user on the right is "asleep" (minimal body movement, stable heart rate below 60 beats / min), the controller automatically turns on the left light strip at 3% brightness (approximately 2 lumens), illuminating the ground downwards to form a soft light strip around the feet. Simultaneously, the main bedroom light remains off, and smart speakers, vibrating alarms, etc., around the user on the right are all silent. After the user on the left returns to bed, the pressure sensors detect pressure again, and the light strip gradually dims within 10 seconds. If the user on the left has not returned to bed for more than 15 minutes, it is considered a genuine awakening, and the system switches to turning on the main bedroom light at 20% brightness while keeping the right-side light off.
[0097] In some embodiments, after step S600 (the target illumination element is rotated to the target angle based on the real-time attitude control of the rotating component 31 of the user on the target illumination side), the following steps are further included: S801f: Based on the sleep states of the left-hand user and the right-hand user, obtain the in-bed status and sleep intention of the first user and the second user, wherein the first user is the left-hand user and the second user is the right-hand user. Through the aforementioned steps, monitor the in-bed status, body movement level, heart rate, and other parameters of the users on both sides of the double bed in real time, and comprehensively determine the in-bed status (in bed, briefly out of bed, actually awake) and sleep intention (lying down for entertainment, preparing to fall asleep, already asleep) of each user.
[0098] S802f: Based on the first user's status determination result being that they have truly woken up and the second user's sleep intention determination result being that they have fallen asleep, a first scene control command is generated for the first user to trigger the morning scene associated with the user on the left, and a second scene control command is generated for the second user to keep the bedroom main light off or switch to soft light mode. That is, when the user on the left truly wakes up in the morning (such as when the alarm clock rings or they wake up naturally), while the user on the right is still in deep sleep, the system initiates a gradual morning wake-up scene for the user on the left, while strictly protecting the sleep environment of the user on the right from disturbance.
[0099] S803f, based on the first scene control command, sequentially executes the following morning scene actions: controls the bedroom main light to gradually brighten to a preset morning brightness (e.g., smoothly increasing from 0% to 50% within 1 minute), controls the electric curtains to open to a preset morning opening degree (e.g., half-open or fully open), and controls the smart speaker to play preset morning content (e.g., soft music, news, or weather reports). These actions are executed sequentially or in tandem to help the user on the left gently transition from sleep to wakefulness.
[0100] S804f: Based on the second scene control command, keep the main bedroom light off and control the secondary light on the side where the second user is located to switch to soft light mode, wherein the brightness of the soft light mode is lower than the preset morning brightness. The right secondary light may switch to a very low brightness warm light (such as 2% brightness) or be completely off, and no audio will be played in the right area to ensure that the right user is not disturbed by the morning scene. If the right user also gradually wakes up, it can selectively switch to soft light mode to provide dim light guidance.
[0101] S805f: If the pressure sensor data corresponding to the actual wake-up determination result remains below the preset pressure threshold for more than the preset wake-up confirmation time, the execution state of the morning scene is locked until a reset command is received. For example, if the pressure signal disappears after the user on the left leaves the mattress, and does not recover for more than 5 minutes, the system confirms that the user has actually woken up rather than temporarily left the bed. In this case, the morning scene will remain active (lights, curtains, and music will continue to run) to prevent accidental exit from the scene due to the user briefly returning to bed (such as to pick up a mobile phone). The system will only exit the morning scene and return to standby mode when the user sends a reset command via voice, APP, or manual switch.
[0102] This implementation method offers significant benefits. First, by differentiating the sleep states of the left and right users, it achieves differentiated scene control, allowing for "wake-up on one side while the other continues sleeping." The left-side user enjoys a gradual morning wake-up experience, while the right-side user remains undisturbed by light and sound, meeting the needs of users with different sleep schedules in a double bed. Second, the gradual brightening of the lights, opening of the curtains, and music playback in the morning scene are executed sequentially, simulating the natural sunrise process, which is more comfortable and healthier than a sudden alarm clock, helping to alleviate morning grumpiness. Furthermore, the soft light mode of the secondary light provides a low-light transition for the right-side user who may be about to wake up, avoiding the discomfort of suddenly switching from complete darkness to bright light. Finally, a pressure sensor confirms actual wake-up and locks the scene state, preventing accidental exit due to brief return to bed, ensuring the complete execution of the morning scene. This control method is suitable for smart double beds, elderly care beds, and high-end hotel twin rooms, significantly improving the personalization and intelligence of the sleep environment.
[0103] In some examples, pressure sensor arrays and micro-motion sensors are installed on both sides of the mattress. When the user on the left side experiences a sustained increase in body movement at 6:30 AM (indicating waking up), followed by a disappearance of pressure signals for more than 2 minutes (indicating actual waking up), while the user on the right side has a stable heart rate and minimal body movement (indicating falling asleep), the system performs the following actions: the master bedroom ceiling light gradually brightens from dim to 40% brightness within 60 seconds; the electric curtains open to 50%; and the smart speaker plays a preset morning news at 20% volume. Simultaneously, the under-bed light on the right side remains off, and all smart devices in the right-side area are silent. If the user on the right side is affected by the dim light, they can softly say "soft light mode," and the system will adjust the right-side auxiliary light to a 3% warm night light mode. If the user on the left side returns to bed to retrieve something after getting up, the morning scene will not end until the brief pressure recovery lasts no more than 3 minutes; the scene only ends when the user on the left side clicks "end morning" via the mobile app or leaves the bed for more than 15 minutes.
[0104] According to an embodiment of the fourth aspect of this application, the application further includes a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, is implemented to perform the control methods provided above, the method comprising: Get the sleep status of the user on the left and the user on the right; Based on the sleep states of the user on the left and the user on the right, determine whether only one side of the user is asleep. Based on the judgment that only one side of the user is asleep, the main indoor lighting is turned off; Based on the judgment that only one side of the user is in a sleeping state, the side where the user in a non-sleeping state is located is determined as the target lighting side, and the target lighting component is determined based on the target lighting side. Control the target lighting device to turn on and obtain the real-time posture of the user on the target lighting side; Based on the real-time posture of the user on the target lighting side, the rotating component 31 is controlled to drive the target lighting component to rotate to the target angle.
[0105] The embodiments of this application have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of this application. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of this application. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of this application. Therefore, the content of this specification should not be construed as a limitation of this application.
Claims
1. A mattress, characterized in that, include: Base plate; Back plate, connected to the base plate; A lighting assembly is mounted on the back panel. The lighting assembly includes a rotating component, a left-side focusing component, a right-side focusing component, a left-side illumination component, and a right-side illumination component. The left-side and right-side focusing components are both connected to the rotating component. The rotating component is used to drive the left-side and right-side focusing components to rotate. The left-side illumination component is connected to the side of the left-side focusing component opposite to the right-side focusing component, and the right-side illumination component is connected to the side of the right-side focusing component opposite to the left-side focusing component. The left-side focusing component is used to reflect the light emitted by the left-side illumination component to the left side of the mattress, and the right-side focusing component is used to reflect the light emitted by the right-side illumination component to the right side of the mattress.
2. The mattress according to claim 1, characterized in that, The mattress also includes: A detection component for detecting the sleep status of the user on the left side of the mattress and the user on the right side of the mattress; A control component is communicatively connected to the main indoor lighting fixture. Both the lighting fixture and the detection component are electrically connected to the control component. The control component is configured to control the operation of the main indoor lighting fixture and the lighting fixture based on the detection data from the detection component.
3. A smart home system, characterized in that, Including the mattress as described in claim 1 or 2.
4. A control method based on a mattress as described in claim 1 or 2, characterized in that, include: S100: Obtain the sleep status of the user on the left and the user on the right; S200. Based on the sleep state of the left user and the sleep state of the right user, determine whether only one side of the user is in a sleep state. S300: Based on the judgment that only one user is asleep, control the main indoor lighting to turn off; S400: Based on the judgment result that only one side of the user is in a sleep state, determine the side where the user in a non-sleep state is located as the target lighting side, and determine the target lighting component based on the target lighting side; S500: Control the target lighting component to turn on, and obtain the real-time posture of the user on the target lighting side; S600: Based on the real-time posture of the user on the target lighting side, control the rotating component to drive the target lighting component to rotate to the target angle.
5. The control method according to claim 4, characterized in that, Step S100 includes: S101. Collect left-side pressure signals based on a pressure sensor array located in the left-side area of the mattress, and collect right-side pressure signals based on a pressure sensor array located in the right-side area of the mattress. S102. The left user presence state is obtained based on the first comparison result between the left pressure signal and the preset presence pressure threshold, and the right user presence state is obtained based on the second comparison result between the right pressure signal and the preset presence pressure threshold. S103. Based on the left pressure signal and the right pressure signal, count the number of left pressure changes and the number of right pressure changes within a preset time window, respectively. S104. The left user's body movement frequency is obtained based on the number of pressure changes on the left side and the preset time window; the right user's body movement frequency is obtained based on the number of pressure changes on the right side and the preset time window. S105. The sleep state of the left user is obtained based on the third comparison result between the body movement frequency of the left user and the preset body movement frequency threshold, and the sleep state of the right user is obtained based on the fourth comparison result between the body movement frequency of the right user and the preset body movement frequency threshold. S106. Based on the existence status of the left user and the existence status of the right user, verify the validity of the sleep status of the left user and the sleep status of the right user respectively. When the existence status of the left user is not present, set the sleep status of the left user to non-sleep state. When the existence status of the right user is not present, set the sleep status of the right user to non-sleep state.
6. The control method according to claim 4, characterized in that, Step S200 includes: S201. Based on the first matching result between the left user's sleep state and the first preset sleep state value, a left-side determination result is obtained to determine whether the left side is in a sleep state; based on the second matching result between the right user's sleep state and the first preset sleep state value, a right-side determination result is obtained to determine whether the right side is in a sleep state. S202. Based on the left-side determination result and the right-side determination result, count the number of user sides determined to be in a sleep state to obtain the sleep side count; S203. Based on the first numerical comparison result between the sleep side count and the preset value 1, a preliminary judgment result on whether it is unilateral sleep is obtained; S204. Based on the left-side determination result and the right-side determination result, determine the user side that is determined to be in a non-sleep state, and obtain the single-side identification result; S205. Based on the preliminary judgment result and the unilateral identification result, generate a final judgment result on whether only one side of the user is in a sleep state.
7. The control method according to claim 4, characterized in that, Step S500 includes: S501. Based on the target lighting side, determine the lighting element in the lighting assembly corresponding to the target lighting side as the target lighting element, generate an opening command for the target lighting element, and control the target lighting element to turn on based on the opening command; S502. Based on the target illumination side, select a pressure sensor unit corresponding to the target illumination side from the pressure sensor array disposed on the mattress, as the target detection area; S503. Based on the target detection area, collect real-time pressure distribution data at the current moment; S504. Based on the real-time pressure distribution data, extract the coordinates of all sensor positions where the pressure amplitude is greater than the preset contact pressure threshold to obtain the pressure contact point set; S505. Based on the set of pressure contact points, calculate the maximum coordinate difference of the set of pressure contact points in the length direction of the mattress and the maximum coordinate difference in the width direction of the mattress, and use the maximum coordinate difference as the extension range of the torso, and use the end coordinates corresponding to the maximum coordinate difference as the estimated position of the head. S506. Based on the torso extension range and the estimated head position, determine the real-time posture of the user on the target lighting side as supine, lateral, or sitting.
8. The control method according to claim 4, characterized in that, Step S100 specifically includes: S101a. Acquire left-sided cardiac impact signal based on a piezoelectric thin film sensor located in the left side region of the mattress, and acquire right-sided cardiac impact signal based on a piezoelectric thin film sensor located in the right side region of the mattress. S102a. Based on the first amplitude comparison result between the left cardiac impact signal and the preset resting signal amplitude threshold, a left body movement presence indicator is obtained; based on the second amplitude comparison result between the right cardiac impact signal and the preset resting signal amplitude threshold, a right body movement presence indicator is obtained. S103a. Calculate the instantaneous heart rate on the left side based on the time interval between adjacent heartbeat peaks in the left-side cardiac impact signal, and calculate the instantaneous heart rate on the right side based on the time interval between adjacent heartbeat peaks in the right-side cardiac impact signal. S104a. Based on the first heart rate comparison result between the left instantaneous heart rate and the preset upper limit of sleep heart rate, a left heart rate sleep identifier is obtained; based on the second heart rate comparison result between the right instantaneous heart rate and the preset upper limit of sleep heart rate, a right heart rate sleep identifier is obtained. S105a. Based on the left-side body movement presence identifier and the left-side heart rate sleep identifier, a left-side user sleep state is generated, wherein a sleep state is determined when the left-side body movement presence identifier is no body movement and the left-side heart rate sleep identifier is below the upper limit of sleep heart rate; otherwise, a non-sleep state is determined. Based on the right-side body movement presence identifier and the right-side heart rate sleep identifier, a right-side user sleep state is generated, wherein a sleep state is determined when the right-side body movement presence identifier is no body movement and the right-side heart rate sleep identifier is below the upper limit of sleep heart rate; otherwise, a non-sleep state is determined.
9. The control method according to claim 4, characterized in that, The step of obtaining the real-time attitude of the user on the target lighting side includes: S501b: Based on the target lighting side, select the pressure sensor unit corresponding to the target lighting side from the pressure sensor array set on the mattress, collect the current pressure value of all sensor units in the area, and obtain the target side pressure distribution matrix; S502b: Based on the target-side pressure distribution matrix, extract the coordinates of all sensor positions whose pressure values are greater than a preset contact pressure threshold to form a target-side contact point set; S503b. Based on the coordinates of all positions in the target-side contact point set, calculate the coordinates of the geometric center of the target-side contact point set, and use it as the position of the torso's centroid. S504b. Based on the coordinates of all positions in the target-side contact point set, calculate the principal axis direction angle of the target-side contact point set, wherein the principal axis direction angle is the direction that minimizes the rotational inertia of the contact point set about the center of mass of the torso. S505b: Based on the position of the torso's center of mass and the angle of the main axis, respectively, the percentage of the number of target-side contact points concentrated in the upper half and lower half of the mattress length direction are calculated to obtain the torso tilt direction; S506b. Based on the angular inclusion relationship between the torso tilt direction and the preset supine angle range, determine that the real-time posture of the user on the target lighting side is a supine posture, a side-lying posture, or a sitting posture.
10. A non-transitory computer-readable storage medium, the non-transitory computer-readable storage medium comprising a computer program, characterized in that, When the computer program is executed by the processor, it implements the control method according to any one of claims 4 to 9.