User sleep posture detection method, intelligent pillow, device and storage medium

This smart pillow, which adjusts the head and neck airbags separately, combines pre-inflation pressure and body movement data to solve the problem of large errors in judging the position of the neck airbag alone, achieving more accurate sleeping posture judgment and a better user experience.

CN116268902BActive Publication Date: 2026-04-07JIAXING DERUCCI SMART HOME CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-03-10
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

Existing smart pillows rely on individual neck airbags to determine sleeping posture, which has a large margin of error, leading to inaccurate judgments, increased structural costs, and negative impacts on user experience and aesthetics.

Method used

It uses separate head and neck airbags for adjustment and control, and judges sleeping posture by pre-inflation pressure and pressure changes. It combines body movement data to improve accuracy and reduce reliance on additional sensors.

Benefits of technology

It improves the accuracy of sleeping posture judgment, makes the pillow more in line with the curve of the human head and neck, enhances user experience and product aesthetics, and reduces costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116268902B_ABST
    Figure CN116268902B_ABST
Patent Text Reader

Abstract

This invention discloses a user sleeping posture detection method, a smart pillow, an electronic device, and a storage medium. The method includes: determining the target user's state and a corresponding first sleeping posture result based on the pre-inflation pressure values ​​of the head and neck airbags, and the pressure changes of the head and neck airbags during pre-inflation; when the first sleeping posture result is detected as a stable state, determining the pressure ratio of the head and neck airbags based on the target user's body movement data, and determining a second sleeping posture result corresponding to the target user based on the pressure ratio; and determining the target user's sleeping posture based on the first and second sleeping posture results. This invention, by determining the pressure ratio of the head and neck airbags during pre-inflation in conjunction with the user's body movement data, determines the user's sleeping posture, solving the problem of large errors in sleeping posture judgment using only the neck airbag, and improving the accuracy of sleeping posture judgment and user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of smart pillow technology, and more particularly to a method for detecting user sleeping posture, a smart pillow, a device, and a storage medium. Background Technology

[0002] To improve sleep quality, everything from beds and mattresses to pillows is evolving towards greater intelligence and user-friendliness. Therefore, accurately determining a person's sleeping posture with and off the pillow, understanding the user's needs, and truly improving sleep have become hot research and improvement topics in recent years. Current technologies rely on individual neck airbags for posture detection, or add external sensors and other accessories to smart pillows to detect changes in body position. However, these methods are prone to significant errors, leading to inaccurate posture assessments. Furthermore, they increase the pillow's structure and cost, create a cumbersome feeling, and result in a poor user experience, negatively impacting the product's aesthetics. Summary of the Invention

[0003] In view of this, the present invention provides a user sleeping posture detection method, a smart pillow, an electronic device, and a storage medium, which can solve the problem of large errors in sleeping posture judgment by using only the neck airbag, improve the accuracy of sleeping posture judgment, and adjust and control the neck airbag and head airbag separately, so that the pillow better conforms to the curve and needs of the human head and neck, improving the user experience and the aesthetics of the product.

[0004] According to one aspect of the present invention, an embodiment of the present invention provides a user sleeping posture detection method, applied to a smart pillow, the method comprising:

[0005] The target user's state and the corresponding first sleeping position result are determined based on the pre-inflation pressure values ​​of the head airbag and the neck airbag, respectively, and the pressure changes of the head airbag and the neck airbag during the pre-inflation process.

[0006] When the first sleeping position result is detected to be a stable state, the pressure ratio of the head airbag and the neck airbag is determined based on the target user's body movement data, and the second sleeping position result corresponding to the target user is determined based on the pressure ratio.

[0007] The target user's sleeping position is determined based on the first sleeping position result and the second sleeping position result.

[0008] According to another aspect of the present invention, an embodiment of the present invention also provides a smart pillow, the smart pillow comprising: a head airbag, a neck airbag, a first pressure sensor, a second pressure sensor, and a microcontroller;

[0009] The first pressure sensor is connected to the neck airbag and is used to collect the pressure value of the neck airbag in real time.

[0010] The second pressure sensor is connected to the head airbag and is used to collect the pressure value of the head airbag in real time;

[0011] The neck airbag is connected to the microcontroller and is used to support the smart pillow and generate the neck airbag pressure value.

[0012] The head airbag is connected to the microcontroller and is used to support the smart pillow and generate the head airbag pressure value.

[0013] The microcontroller is connected to the first pressure sensor and the second pressure sensor respectively, and is used in the user sleeping posture detection method described in any embodiment of the present invention.

[0014] According to another aspect of the present invention, embodiments of the present invention also provide an electronic device, the electronic device comprising:

[0015] At least one processor; and

[0016] A memory communicatively connected to the at least one processor; wherein,

[0017] The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the user sleeping posture detection method according to any embodiment of the present invention.

[0018] According to another aspect of the present invention, embodiments of the present invention also provide a computer-readable storage medium storing computer instructions for causing a processor to execute and implement the user sleeping posture detection method according to any embodiment of the present invention.

[0019] The technical solution described in this invention addresses the problem of large errors in sleep posture judgment when using only the neck airbag by determining the pressure ratio of the head and neck airbags based on their pre-inflation pressure values ​​and pressure changes during pre-inflation, combined with the user's body movement data. This improves the accuracy of sleep posture judgment. Furthermore, by adjusting and controlling the neck and head airbags separately, the pillow better conforms to the curve and needs of the human head and neck, achieving low-cost sleep posture judgment without the need for additional sensors and accessories, thus enhancing user experience and product aesthetics.

[0020] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of the present invention, nor is it intended to limit the scope of the invention. Other features of the invention will become readily apparent from the following description. Attached Figure Description

[0021] To more clearly illustrate the technical solutions in the embodiments of the present invention, 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 the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0022] Figure 1 A flowchart of a user sleeping posture detection method provided in an embodiment of the present invention;

[0023] Figure 2 A flowchart of another user sleeping posture detection method provided in an embodiment of the present invention;

[0024] Figure 3 This is a flowchart illustrating the initial sleeping posture determination after moving from one pillow to the other, according to an embodiment of the present invention.

[0025] Figure 4 This is a flowchart illustrating the process of determining different sleeping positions during pillow use, as provided in an embodiment of the present invention.

[0026] Figure 5 This is a schematic diagram illustrating the characteristics of head and neck pressure changes under different sleeping positions, provided as an embodiment of the present invention.

[0027] Figure 6 This is a schematic diagram illustrating the pressure ratio variation characteristics between the head airbag and the neck airbag under different sleeping positions, as provided in an embodiment of the present invention.

[0028] Figure 7 This is a structural block diagram of a smart pillow provided in one embodiment of the present invention;

[0029] Figure 8 A schematic diagram of the structure of an electronic device provided for implementing embodiments of the present invention. Detailed Implementation

[0030] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.

[0031] It should be noted that the terms "first," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.

[0032] In one embodiment, Figure 1 This is a flowchart illustrating a user sleeping posture detection method according to an embodiment of the present invention. This embodiment is applicable to situations where a user's sleeping posture is determined. The method can be executed by a smart pillow, which can be implemented in hardware and / or software. Figure 1 As shown, the method includes:

[0033] S110. Determine the target user's state and corresponding first sleeping position result based on the pre-inflation pressure values ​​of the head airbag and neck airbag respectively, and the pressure changes of the head airbag and neck airbag during the pre-inflation process.

[0034] The pre-inflation pressure values ​​include those for the head airbag and neck airbag, respectively. These refer to the pressure at which the pillow is pre-inflated based on user-inputted body parameters such as shoulder width and neck circumference before the user places their head on the pillow. The first sleeping position result refers to the initial sleeping position determination result when the target user moves from leaving the pillow to placing it on. In this embodiment, the head airbag and neck airbag can be pre-inflated based on the user's basic information, such as gender, height, weight, shoulder width, neck circumference, head circumference, and the shoulder width coefficient corresponding to the shoulder width information.

[0035] In this embodiment, the target user's state can include two states: the target user is in a pillow state and the target user is not in a pillow state. The pressure changes of the head airbag and neck airbag during the pre-inflation process can be used to determine whether the target user is in a pillow state.

[0036] In this embodiment, the first pre-inflation pressure and the second pre-inflation pressure corresponding to the head airbag and neck airbag can be determined based on the target user's basic information. The pressure change curves corresponding to the first and second pre-inflation pressures are used to determine whether the target user is already on the pillow. If the target user is already on the pillow, the height values ​​corresponding to the head airbag and neck airbag are adjusted, and the pressure values ​​corresponding to the head airbag and neck airbag are continuously monitored. The state is marked as "on the pillow, no sleeping posture". If the target user is not on the pillow, the state of the target user and the corresponding first sleeping posture result are determined based on the pressure change curves corresponding to the first and second pre-inflation pressures during the pre-inflation process, as well as the abrupt changes and slopes of the pressure change curves. In some embodiments, the state of the target user can be determined by the pressure change curves corresponding to the first and second pre-inflation pressures, and the sleeping posture of the target user can be determined based on the first pressure value corresponding to the head airbag and the second pressure value corresponding to the neck airbag, as well as the pressure ratio between the head airbag and neck airbag.

[0037] S120. When the first sleeping position result is detected to be stable, the pressure ratio of the head airbag and the neck airbag is determined based on the target user's body movement data, and the second sleeping position result corresponding to the target user is determined based on the pressure ratio.

[0038] Among these, motion data can be understood as the relevant motion data generated when the target user performs actions such as rolling over. Motion data can characterize the pressure changes on the head airbag and neck airbag during such actions.

[0039] In this embodiment, the second sleeping position result refers to the sleeping position determined based on the pressure ratio of the head airbag and neck airbag after the user lies on the pillow and is stable behind the pillow. Of course, the second sleeping position result can include side sleeping, supine sleeping, the user changing from side sleeping to supine sleeping, and the user changing from supine sleeping to side sleeping, etc., where side sleeping can include both left side sleeping and right side sleeping.

[0040] In this embodiment, a stable state refers to a state in which the target user does not change their sleeping posture within a preset time period. This can be understood as follows: when the first sleeping posture result is detected on the pillow for the first time, and the target user does not send any further changes in sleeping posture within a fixed time period—that is, when the pressure of the head airbag and neck airbag remains at a stable value within a fixed time period—the user's state and the pressure state of the head and neck airbags are recorded at this time. When the user turns over or moves again, the pressure ratio of the head and neck airbags is determined based on the user's second movement data, and the corresponding second sleeping posture result for the target user is determined based on the pressure ratio.

[0041] In this embodiment, when the first sleeping position result is detected as a stable state, the pressure change curves corresponding to the head airbag and neck airbag can be determined based on the target user's body movement data, as well as the third and fourth pressure values ​​corresponding to the head airbag and neck airbag, respectively. The pressure ratio of the head airbag and neck airbag can then be determined using these pressure change curves, third and fourth pressure values, and the second sleeping position result corresponding to the target user can be determined using this pressure ratio. In some embodiments, when the pressure change curve of the head airbag is within the first curve range, the target user is considered to be in a supine sleeping position; when the pressure change curve of the head airbag is within the second curve range, the target user is considered to be in a side-sleeping position; when the pressure change curve of the neck airbag is within the third curve range, the target user is considered to be in a supine sleeping position; and when the pressure change curve of the neck airbag is within the fourth curve range, the target user is considered to be in a side-sleeping position. The first curve range is greater than the second curve range, the third curve range is greater than the fourth curve range, and the first curve range is greater than the third curve range, while the second curve range is greater than the fourth curve range. In some embodiments, when the pressure ratio curve corresponding to the pressure ratio is within a first pressure ratio variation range, the target user is determined to be in a supine sleeping state; when the pressure ratio curve corresponding to the pressure ratio is within a second pressure ratio variation range, the target user is determined to be in a side sleeping state; wherein, the first pressure ratio variation range is smaller than the second pressure ratio variation range.

[0042] S130. Determine the target user's sleeping position based on the results of the first and second sleeping positions.

[0043] In this embodiment, the target user's sleeping position can be determined based on the first and second sleeping position results. The first and second sleeping position results can be matched for judgment. If the first and second sleeping position results match the sleeping position determination result, the target user's sleeping position is determined. It should be noted that whenever the target user's sleeping position changes, the head and neck airbags continuously collect the resulting pressure changes and judge the trend of these pressure changes. The sleeping position determination is continuously corrected based on the changing trend. Theoretically, the more times the user changes their sleeping position, the more accurate the sleeping position determination will be.

[0044] The technical solution described in this invention addresses the problem of large errors in sleep posture judgment when using only the neck airbag by determining the pressure ratio of the head airbag and the neck airbag respectively, based on the pre-inflation pressure values ​​of the head airbag and the neck airbag, as well as the pressure changes of the head airbag and neck airbag during the pre-inflation process, and in conjunction with the user's body movement data. This improves the accuracy of sleep posture judgment. Furthermore, by adjusting and controlling the neck airbag and head airbag separately, the pillow better conforms to the curve and needs of the human head and neck, enhancing the user experience and the aesthetics of the product.

[0045] In one embodiment, the user sleeping posture detection method further includes:

[0046] The system analyzes the target users' body movement data and sleep posture changes to generate sleep reports, which are then used to improve the target users' sleep quality.

[0047] In this embodiment, a sleep report for the target user can be generated by statistically analyzing the target user's body movement data and the patterns of changes in sleeping posture, so that the sleep quality of the target user can be improved based on the sleep report.

[0048] In addition, if the target user's body movement data does not reach the preset body movement threshold, the target user's comfort level is adjusted, and the first body movement data that does not reach the preset body movement threshold is recorded; when the first body movement data that reaches the preset number of times triggers the sleeping posture adjustment, the sleeping posture threshold that triggers the target user's body movement data is automatically learned and lowered.

[0049] This can be understood as follows: human behavior is often unpredictable, and users are not machines with no set patterns. Therefore, in addition to the operations mentioned above, sleep monitoring can be used to correct inaccuracies in a user's sleeping posture or to address body movements and other actions that may occur during adjustments. First, when a user generates body movement data, but the corresponding changes in sleeping posture are minor, if it is found that the user's sleeping posture remains unchanged, or only changes from sleeping on the left side to sleeping on the right side, or from sleeping on the back to sleeping in a semi-back position, then the original judgment will be maintained, and only comfort adjustments will be made without any other actions. If the user's body movements are slight and do not trigger body movement detection, the current body movement data is recorded. If multiple consecutive body movement data collections fail to trigger a sleep posture adjustment, the system automatically learns and lowers the threshold for triggering a sleep posture. When body movement occurs at a lower threshold, a sleep posture determination is made based on the user's body movement data. However, if multiple consecutive slight body movement sleep posture determinations show no change in sleep posture, the original sleep posture determination threshold is restored. Conversely, a specific sleep posture determination threshold is set for that user. In this embodiment, during the sleep posture adjustment process, the user generates body movement data, and the collected air pressure change curve is not a smooth curve. In this case, processing the abrupt changes in the collected air pressure change curve allows for determination of whether the user made a movement during the adjustment, and further determination or re-inflation can be performed.

[0050] In one embodiment, Figure 2This is a flowchart of another user sleeping posture detection method provided in an embodiment of the present invention. Based on the above embodiments, this embodiment further refines the determination of the target user's state and the corresponding first sleeping posture result based on the pre-inflation pressure values ​​corresponding to the head airbag and neck airbag, and the pressure changes of the head airbag and neck airbag during pre-inflation; when the first sleeping posture result is detected as a stable state, the pressure ratio of the head airbag and neck airbag is determined based on the target user's body movement data, and the corresponding second sleeping posture result is determined based on the pressure ratio; and the determination of the target user's sleeping posture based on the first and second sleeping posture results is further detailed, such as... Figure 2 As shown, the user sleeping posture detection method in this embodiment may specifically include the following steps:

[0051] S210. Determine the first pre-inflation pressure and the second pre-inflation pressure corresponding to the head airbag and the neck airbag respectively based on the target user's shoulder width information, neck circumference information and head circumference information.

[0052] The first pre-inflation pressure refers to the pre-inflation pressure of the head airbag. The second pre-inflation pressure refers to the pre-inflation pressure of the neck airbag.

[0053] In this embodiment, the first pre-inflation pressure for the head airbag and the second pre-inflation pressure for the neck airbag can be determined based on the target user's shoulder width, neck circumference, and head circumference information. It should be noted that the pre-inflation pressure values ​​for the head and neck airbags are generally different for different users. This can be understood as follows: when the pressure generated by the shoulder width, neck circumference, head circumference, and the corresponding shoulder width coefficient is relatively high, the pre-inflation pressure of the head and neck airbags can be completed within a first preset time. When the pressure generated by the shoulder width, neck circumference, head circumference, and the corresponding shoulder width coefficient is relatively low, the pre-inflation pressure of the head and neck airbags can be completed within a second preset time. In this embodiment, the first preset time is longer than the second preset time.

[0054] S220. Determine whether the target user is already on the pillow based on the inflation pressure change curves corresponding to the first pre-inflation pressure and the second pre-inflation pressure, respectively.

[0055] In this embodiment, the first pre-inflation pressure corresponds to a corresponding inflation pressure change curve, and the second pre-inflation pressure also corresponds to a corresponding inflation pressure change curve. Based on the inflation pressure change curves corresponding to the first and second pre-inflation pressures, it can be determined whether the target user is already on the pillow, and different operations can be performed based on whether the target user is on the pillow.

[0056] S230. When the target user is already using a pillow, adjust the height values ​​of the head airbag and neck airbag respectively, and continuously monitor the pressure values ​​of the head airbag and neck airbag respectively, marking the state as "in pillow state".

[0057] In this embodiment, when the target user is already on a pillow, the height values ​​of the head airbag and neck airbag can be adjusted so that the head airbag and neck airbag can be compatible with the current pressure. The pressure values ​​of the head airbag and neck airbag are continuously monitored, and the user is waiting to take the next action. The state is marked as being on a pillow and having no sleeping posture.

[0058] S240. When the target user is not on the pillow, determine the target user's state and the corresponding first sleeping position based on the inflation pressure change curves corresponding to the first and second pre-inflation pressures during the pre-inflation process, as well as the abrupt changes in the pressure change curves and the slope of the pressure curves.

[0059] In this embodiment, during the pre-inflation of the neck and head airbags, the first pre-inflation pressure of the head airbag corresponds to a corresponding inflation pressure change curve, and the second pre-inflation pressure of the neck airbag also corresponds to a corresponding inflation pressure change curve. The target user's state and the corresponding first sleeping position can be determined based on the inflation pressure change curves corresponding to the first and second pre-inflation pressures during the pre-inflation process, as well as the abrupt changes and slopes of the pressure change curves. Specifically, the target user's state can be determined by the inflation pressure change curves corresponding to the first and second pre-inflation pressures during the pre-inflation process. When the target user's state is from a pillow-off to a pillow-on state, the first pressure value corresponding to the head airbag and the second pressure value corresponding to the neck airbag are collected, and the corresponding pressure ratio is obtained. The first sleeping position of the target user is then finally determined using the first pressure change curve corresponding to the neck airbag and the second pressure change curve corresponding to the head airbag.

[0060] In one embodiment, the state of the target user and the corresponding first sleeping position are determined based on the inflation pressure change curves corresponding to the first and second pre-inflation pressures during the pre-inflation process, as well as the abrupt changes and slopes of the pressure change curves. This includes:

[0061] The status of the target user is determined based on the inflation pressure change curves corresponding to the first and second pre-inflation pressures, respectively.

[0062] When the target user is in a state of being off-pillow to on-pillow, the first pressure value corresponding to the head airbag and the second pressure value corresponding to the neck airbag are collected.

[0063] Determine the first pressure ratio between the first pressure value and the second pressure value, and determine the preliminary first sleeping position result based on the first pressure ratio;

[0064] Based on the preliminary first sleeping position results, the neck airbag and head airbag were pre-inflated, and the first pressure change curve corresponding to the neck airbag and the second pressure change curve corresponding to the head airbag were collected during the pre-inflating process.

[0065] If there is a sudden change in the first pressure change curve and / or the second pressure change curve, the above pre-charge pressure process is returned, and the first pressure change curve and the second pressure change curve are re-acquired.

[0066] If no abrupt change occurs in the first pressure change curve and / or the second pressure change curve, the preliminary second sleeping position result is determined based on the slope of the pressure curves corresponding to the first and second pressure change curves, respectively.

[0067] The target user's first sleeping position is determined based on the preliminary first sleeping position results and the preliminary second sleeping position results.

[0068] The first pressure value refers to the pressure on the head airbag during the process of the user moving from the pillow to the head. The second pressure value refers to the pressure on the neck airbag during the same process. The preliminary first sleeping position result can be understood as the initial sleeping position result determined based on the ratio of the first and second pressure values. The first pressure change curve refers to the pressure change curve corresponding to the neck airbag during pre-inflation. The second pressure change curve refers to the pressure change curve corresponding to the head airbag during pre-inflation. The preliminary second sleeping position result can be understood as the initial sleeping position result determined based on the slopes of the pressure curves corresponding to the first and second pressure change curves, respectively.

[0069] In this embodiment, the target user's state can be determined by the inflation pressure change curves corresponding to the first and second pre-inflation pressures, respectively. When the target user's state is from the pillow-off to the pillow-on state, the first pressure value corresponding to the head airbag and the second pressure value corresponding to the neck airbag are collected. The first pressure ratio between the first and second pressure values ​​is determined, and a preliminary first sleeping position result is determined based on the first pressure ratio. The neck airbag and head airbag are pre-inflated according to the preliminary first sleeping position result, and the first pressure change curve corresponding to the neck airbag and the second pressure change curve corresponding to the head airbag are collected during the pre-inflation process. If the first pressure change curve and / or the second pressure change curve change abruptly occur, the pre-inflation process is returned, and the first and second pressure change curves are collected again. If the first pressure change curve and / or the second pressure change curve change do not abruptly occur, a preliminary second sleeping position result is determined based on the slope of the pressure curves corresponding to the first and second pressure change curves, respectively. The target user's first sleeping position result is determined based on the preliminary first sleeping position result and the preliminary second sleeping position result.

[0070] In some embodiments, abrupt changes in the first pressure change curve and / or the second pressure change curve include:

[0071] The pressure data generated by the neck airbag and head airbag were sorted.

[0072] Find the first maximum pressure value and the first minimum pressure value corresponding to the neck airbag, and the second maximum pressure value and the second minimum pressure value corresponding to the head airbag from the sorted pressure data.

[0073] If the difference between the first maximum value and the first minimum value exceeds the first threshold range, and / or the excess value between the second maximum value and the second minimum value exceeds the second threshold range, then it is considered that the first pressure change curve corresponding to the neck airbag and / or the second pressure change curve corresponding to the head airbag have undergone abrupt changes.

[0074] The pressure data can be understood as multiple pressure values ​​generated by the neck airbag and the head airbag respectively. The first maximum pressure value refers to the maximum pressure value generated by the neck airbag, and the first minimum pressure value refers to the minimum pressure value generated by the neck airbag. The second maximum pressure value refers to the maximum pressure value generated by the head airbag, and the second minimum pressure value refers to the minimum pressure value generated by the head airbag. The first threshold range and the second threshold range can be the same or different. They can be set according to experience or manually. This embodiment does not impose any restrictions on this.

[0075] In this embodiment, the pressure data generated by the neck airbag and the head airbag are sorted. The first maximum pressure value and the first minimum pressure value corresponding to the neck airbag, and the second maximum pressure value and the second minimum pressure value corresponding to the head airbag are found from the sorted pressure data. If the difference between the first maximum value and the first minimum value exceeds the first threshold range, and / or the excess value between the second maximum value and the second minimum value exceeds the second threshold range, then it is considered that the first pressure change curve corresponding to the neck airbag and / or the second pressure change curve corresponding to the head airbag have abruptly changed.

[0076] S250: When the first sleeping position result is detected as stable, the third and fourth pressure values ​​corresponding to the head airbag and neck airbag are determined based on the target user's body movement data.

[0077] The third pressure value refers to the pressure value of the head airbag when the user is stably resting on the pillow. The fourth pressure value refers to the pressure value of the neck airbag when the user is stably resting on the pillow.

[0078] In this embodiment, when the user is stable on the pillow after lying down, the pillow enters the target user's body movement data monitoring state, records the third pressure value corresponding to the head airbag and the fourth pressure value corresponding to the neck airbag generated by the target user's body movement data, and determines the third pressure value and the fourth pressure value corresponding to the head airbag and the neck airbag respectively through the target user's body movement data.

[0079] S260. Determine the pressure ratio of the head airbag and the neck airbag based on the third and fourth pressure values, and statistically analyze the pressure ratio according to the time granularity.

[0080] In this embodiment, the pressure ratio of the head airbag and the neck airbag can be determined by using the third pressure value corresponding to the head airbag and the fourth pressure value corresponding to the neck airbag. The pressure ratio is then statistically analyzed over a time interval. This prevents slow changes in airbag pressure and serves as a criterion for determining whether the airbag is leaking. For example, the time interval is 50 seconds; the pressure ratio is automatically calculated and updated every 50 seconds to prevent slow changes in airbag pressure and to serve as a criterion for determining whether the airbag is leaking.

[0081] S270. Determine the pressure ratio curve corresponding to the pressure ratio.

[0082] In this embodiment, a pressure ratio curve corresponding to the pressure ratio is determined based on the pressure ratio of the head airbag and the neck airbag according to the time granularity statistics, so as to determine the sleeping posture of the target user through the pressure ratio of the head airbag and the neck airbag.

[0083] S280. When the pressure ratio curve is within the first pressure ratio variation range, the target user's second sleeping position is determined to be supine.

[0084] The first pressure ratio variation range refers to the pressure ratio variation range of the target user in a supine sleeping state. For example, the first pressure ratio variation range is within the pressure ratio variation range of 1.05 to 1.1.

[0085] In this embodiment, after determining the pressure ratio curve corresponding to the pressure ratio, when the pressure ratio curve is within the first pressure ratio variation range, the target user's second sleeping position is determined to be a supine sleeping position. For example, the first pressure ratio variation range is a pressure ratio variation range of 1.05 to 1.1, and when the pressure ratio curve is within the pressure ratio variation range of 1.05 to 1.1, the target user's second sleeping position is determined to be a supine sleeping position.

[0086] S290. When the pressure ratio curve is within the second pressure ratio variation range, the target user's second sleeping position is determined to be a side-sleeping state; wherein, the first pressure ratio variation range is smaller than the second pressure ratio variation range.

[0087] The second pressure ratio variation range refers to the range of pressure ratio variation in the target user's side-sleeping state. For example, the second pressure ratio variation range is within the range of pressure ratio variation of 1.1 to 1.15.

[0088] In this embodiment, after determining the pressure ratio curve corresponding to the pressure ratio, when the pressure ratio curve falls within the second pressure ratio variation range, the target user's second sleeping position is determined to be a side-sleeping state. It should be noted that the first pressure ratio variation range is smaller than the second pressure ratio variation range. For example, the second pressure ratio variation range is a pressure ratio variation range of 1.1 to 1.15. When the pressure ratio curve falls within the pressure ratio variation range of 1.1 to 1.15, the target user's second sleeping position is determined to be a side-sleeping state.

[0089] S2100. Within a preset time period, when the pressure ratio curve shows the trend of the first curve, determine that the target user's second sleeping position is changed from supine to side sleeping.

[0090] The first curve trend refers to the situation where the pressure ratio curve shows a downward trend over a certain period of time.

[0091] In this embodiment, within a preset time period, if the pressure ratio curve shows a first curve trend, the target user's second sleeping position is determined to be a change from supine to side sleeping. For example, within a certain time period, if the pressure ratio changes from 1.1 to 1.15 to 1.05 to 1.1, it is considered that the pressure ratio curve shows a downward trend, and at this time, the target user's second sleeping position is determined to be a change from supine to side sleeping.

[0092] S2110. Within a preset time period, when the pressure ratio curve shows a second curve trend, determine that the target user's second sleeping position result is a change from a side sleeping state to a supine sleeping state.

[0093] The second curve trend refers to the situation where the pressure ratio curve shows an upward trend over a certain period of time.

[0094] In this embodiment, within a preset time period, when the pressure ratio curve shows a second curve trend, the target user's second sleeping position is determined to be a change from a side sleeping position to a supine sleeping position. For example, within a certain time period, when the pressure ratio change range increases from 1.05 to 1.1 to 1.1 to 1.15, it is considered that the pressure ratio curve shows an upward curve trend, and at this time, the target user's second sleeping position is determined to be a change from a side sleeping position to a supine sleeping position.

[0095] S2120. Match the results of the first sleeping position and the second sleeping position to determine the matching result.

[0096] S2130. Determine the target user's sleeping position based on the matching results.

[0097] In this embodiment, the first sleeping posture result and the second sleeping posture result are matched and judged to determine the matching result, and the target user's sleeping posture is determined based on the matching result. This can be understood as follows: if the first sleeping posture result and the second sleeping posture result are determined to match the sleeping posture judgment result, then the target user's sleeping posture is determined. In this embodiment, after determining the user's sleeping posture, a final sleeping posture matching adjustment can be performed. If it does not match, cannot be judged, or is determined that the sleeping posture has not changed and the user has only moved, then it will be determined whether the user is sleeping comfortably. In this case, the hardware autonomous learning and matching function will be activated. At this time, the head airbag and neck airbag will be connected, allowing the head airbag and neck airbag to match according to the pressure of the user's head and neck on the pillow, truly achieving a perfect fit.

[0098] It should be noted that after the user's sleeping position is determined on the pillow, if there is no adjustment movement, it means that the user may have moved away from the pillow. At this time, the user's body movement data is monitored, and the pressure of the neck airbag and head airbag is collected. When it is found that the pressure of the head airbag and neck airbag has dropped and the conditions for moving away from the pillow are met, it is initially determined that the user has moved away from the pillow. Then the system performs a pre-inflation of the pillow and confirms it again during the inflation process, and finally determines whether the user has truly moved away from the pillow.

[0099] The above-described technical solution in this embodiment determines the first and second pre-inflation pressures corresponding to the head and neck airbags based on the target user's shoulder width, neck circumference, and head circumference information. It then determines whether the target user is already on the pillow based on the inflation pressure change curves corresponding to the first and second pre-inflation pressures. If the target user is not on the pillow, it determines the target user's state and the corresponding first sleeping posture result based on the inflation pressure change curves corresponding to the first and second pre-inflation pressures during the pre-inflation process, as well as the abrupt changes and slopes of the pressure change curves. When the first sleeping posture result is detected to be stable, it further determines the target user's... The system uses motion data to determine the third and fourth pressure values ​​for the head and neck airbags, respectively. Based on these values, it calculates the pressure ratio between the head and neck airbags, and statistically analyzes the pressure ratio over time. The system then determines the user's second sleeping position based on this ratio. This allows for accurate assessment of the user's initial sleeping position after placing the pillow on it, as well as real-time assessment of the sleeping position during pillow use. This addresses the issue of significant errors in determining sleeping position using only the neck airbag, improving the accuracy of position assessment. Furthermore, by adjusting and controlling the neck and head airbags separately, the pillow better conforms to the curves and needs of the human head and neck, enhancing both user experience and product aesthetics.

[0100] In one embodiment, to facilitate a better understanding of the process and method for determining the first sleeping position after the user moves from the pillow to the upper pillow, Figure 3This is a flowchart illustrating the initial sleeping posture determination after a person falls onto the pillow, according to an embodiment of the present invention. First, after the pillow is powered on, the air pump pre-inflates and balances the pressure of the head and neck airbags. When a person lies on the pillow, the neck and head airbags experience pressure changes. At this point, the system initially determines that the user is on the pillow and simultaneously detects the user's body movement data, collecting the pressure of the head airbag and calculating a ratio with the pressure of the neck airbag. Based on this ratio, the user's sleeping posture can be initially calculated. However, this is only a preliminary determination. The pillow then performs a pre-adjustment based on this preliminary determination. During the adjustment process, the pressure change curve of the neck airbag is collected. After the pre-adjustment is completed, the collected pressure changes are processed, including two steps: finding abrupt changes and calculating the slope of the pressure change curve. If no abrupt changes are found during the adjustment process, it is determined that the user is stably on the pillow. The sleeping posture is then confirmed again using the slope. After confirmation, the final adjustment is performed according to the sleeping posture. If a sudden change is detected, it is likely that the user moved during the pillow adjustment process. At this time, the pillow enters the active sleeping posture recognition state. The pillow will then go through a deflation and pre-inflation process to re-collect the air pressure change curve and determine the sleeping posture.

[0101] Specifically, such as Figure 3 As shown, the specific method for determining the first sleeping position after moving from the pillow to the upper pillow is as follows:

[0102] S310. Pre-inflate the head airbag and neck airbag respectively, and determine whether the target user is already on the pillow based on the inflation pressure change curve corresponding to the pre-inflation pressure. If yes, proceed to S320; otherwise, proceed to S330.

[0103] S320, adjust to compatible pressure and height, continuously monitor the pressure values ​​corresponding to the head airbag and neck airbag respectively, wait for the user's next action, mark the status as in pillow state, no sleeping position.

[0104] The S330 continuously monitors the pressure of the head airbag and neck airbag respectively, waiting for the user to put on the pillow.

[0105] S340. Based on the pressure changes corresponding to the neck airbag and head airbag respectively, determine whether the user has put on the pillow. If yes, proceed to S350; otherwise, return to S330.

[0106] S350: Collect the first pressure value and the second pressure value corresponding to the head airbag and the neck airbag respectively, and determine the pressure ratio between the first pressure value and the second pressure value. Based on the pressure ratio, determine the preliminary first sleeping position result.

[0107] S360. Based on the initial first sleeping position results, pre-inflate the neck airbag and head airbag respectively.

[0108] S370. During the pre-inflation process, collect the first pressure change curve corresponding to the neck airbag and the second pressure change curve corresponding to the head airbag, and determine whether the first pressure change curve and the second pressure change curve have abruptly changed during the pre-inflation process. If yes, return to execute S360; otherwise, execute S380.

[0109] S380. Determine the preliminary second sleeping position result based on the slope of the pressure curve corresponding to the first pressure change curve and the second pressure change curve, respectively.

[0110] S390. Determine whether the preliminary first sleeping position result and the preliminary second sleeping position result match. If yes, proceed to S3100; otherwise, return to S320.

[0111] S3100: Based on the preliminary first sleeping position result and the preliminary second sleeping position result, determine the target user's first sleeping position result, output the first sleeping position result, and enter the state of continuous monitoring of the pressure change of the neck airbag and head airbag, waiting for the user to make the next body movement.

[0112] In one embodiment, to facilitate a better understanding of the process and method for determining different sleeping positions during pillow use, Figure 4 This is a flowchart illustrating the process of determining different sleeping positions during pillow use, as provided in an embodiment of the present invention. Specifically, the method for determining different sleeping positions during pillow use is as follows:

[0113] S410: When the first sleeping position result is detected as stable, continuously monitor the pressure corresponding to the head airbag and neck airbag respectively, and wait for the user to make body movements.

[0114] S420. Determine the third pressure value and the fourth pressure value corresponding to the head airbag and the neck airbag respectively based on the target user's body movement data.

[0115] S430. Determine the pressure ratio of the head airbag and the neck airbag based on the third and fourth pressure values, and statistically analyze the pressure ratio according to the time granularity.

[0116] S440. Determine the pressure ratio curve corresponding to the pressure ratio.

[0117] S450. When the pressure ratio curve is within the first pressure ratio variation range, the target user's second sleeping position is determined to be supine.

[0118] S460. When the pressure ratio curve is within the second pressure ratio variation range, the target user's second sleeping position is determined to be a side-sleeping state; wherein, the first pressure ratio variation range is smaller than the second pressure ratio variation range.

[0119] S470. Within a preset time period, determine whether the user has changed their sleeping position based on the status of the pressure ratio curve. If yes, execute S480; otherwise, return to execute S410.

[0120] S480: Further process the pressure data of the head airbag and neck airbag, and process the trend of pressure data changes to further confirm the sleeping position.

[0121] S490, Output the user's sleeping posture results.

[0122] In this embodiment, once the user is firmly seated behind the pillow, the pillow enters a body movement monitoring state and records the current pressure of the head and neck airbags. The pressure ratio is then calculated using a time-granularity method, for example, automatically updating every 50 seconds to prevent slow changes in airbag pressure and serving as a criterion for detecting airbag leaks. To better understand the characteristics of head and neck pressure changes under different sleeping positions, Figure 5 This is a schematic diagram illustrating the characteristics of head and neck pressure changes under different sleeping positions, as provided in an embodiment of the present invention. Figure 5 As shown, the horizontal axis represents time in milliseconds (ms), and the vertical axis represents the pressure values ​​of the neck airbag and head airbag. It can be seen that when the pressure change curve of the head airbag is in the range of 560-650, the target user is considered to be in a supine position; when the pressure change curve of the head airbag is in the range of 450-500, the target user is considered to be in a side-lying position. Similarly, when the pressure change curve of the neck airbag is in the range of 500-600, the target user is considered to be in a supine position; and when the pressure change curve of the neck airbag is in the range of 400-450, the target user is considered to be in a side-lying position.

[0123] To better understand the characteristics of pressure ratio changes between head and neck airbags under different sleeping positions, Figure 6 This is a schematic diagram illustrating the pressure ratio variation characteristics between the head airbag and the neck airbag under different sleeping positions, as provided in an embodiment of the present invention. Figure 6As shown, the horizontal axis represents time in milliseconds (ms), and the vertical axis represents the pressure ratio between the neck airbag and the head airbag. It can be seen that when the pressure ratio curve corresponds to a pressure ratio variation range of 1.05-1.1, the target user is determined to be in a supine sleeping position; when the pressure ratio curve corresponds to a pressure ratio variation range of 1.1-1.15, the target user is determined to be in a side-sleeping position. When changing from a supine to a side-sleeping position, the pressure on the pillow surface tends to decrease due to the support of the shoulder; conversely, when changing from a side-sleeping to a supine position, the pressure on the pillow surface increases. At this point, the pressure ratio of the collected head and neck pressures is calculated. Under normal circumstances, the pressure ratio between the neck airbag and the head airbag when the user is supine is less than that when the user is side-sleeping. Therefore, the user's sleeping posture can be further determined. The results of the first and second sleeping postures are matched for judgment. If the results of the first and second sleeping postures match the judgment result, the target user's sleeping posture is determined.

[0124] In one embodiment, Figure 7 This is a structural block diagram of a smart pillow according to an embodiment of the present invention. This smart pillow is suitable for recognizing the user's position and sleeping posture when away from the pillow. The smart pillow can be implemented using hardware or software. Figure 7 As shown, the smart pillow 710 includes: a head airbag 711, a neck airbag 712, a first pressure sensor 713, a second pressure sensor 714, and a microcontroller 715.

[0125] The first pressure sensor 713 is connected to the neck airbag 712 and is used to collect the pressure value of the neck airbag 712 in real time.

[0126] The second pressure sensor 714 is connected to the head airbag 711 and is used to collect the pressure value of the head airbag 711 in real time.

[0127] The neck airbag 712 is connected to the microcontroller 715 to support the smart pillow 710 and generate the neck airbag pressure value.

[0128] The head airbag 711 is connected to the microcontroller 715 and is used to support the smart pillow and generate the head airbag pressure value.

[0129] The microcontroller 715 is connected to the first pressure sensor 713 and the second pressure sensor 714 respectively, and is used to execute any of the user sleeping posture detection methods described in the embodiments of the present invention.

[0130] In one embodiment, the smart pillow 710 further includes: an air pump and a solenoid valve;

[0131] The air pump is connected to the neck airbag 712 and the head airbag 711 via a solenoid valve, and is used to inflate the neck airbag 712 and the head airbag 711.

[0132] The solenoid valve is connected to the neck airbag 712 and the head airbag 711 respectively and is used to control the inflation and deflation of the neck airbag 712 and the head airbag 711.

[0133] The smart pillow provided in this embodiment of the invention can execute the user sleeping posture detection method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the method.

[0134] In one embodiment, Figure 8 This is a schematic diagram of an electronic device provided for implementing embodiments of the present invention. The electronic device 10 is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device may also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices (e.g., helmets, glasses, watches, etc.), and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.

[0135] like Figure 8 As shown, the electronic device 10 includes at least one processor 11 and a memory, such as a read-only memory (ROM) 12 or a random access memory (RAM) 13, communicatively connected to the at least one processor 11. The memory stores computer programs executable by the at least one processor. The processor 11 can perform various appropriate actions and processes based on the computer program stored in the ROM 12 or loaded from storage unit 18 into the RAM 13. The RAM 13 can also store various programs and data required for the operation of the electronic device 10. The processor 11, ROM 12, and RAM 13 are interconnected via a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0136] Multiple components in electronic device 10 are connected to I / O interface 15, including: input unit 16, such as keyboard, mouse, etc.; output unit 17, such as various types of displays, speakers, etc.; storage unit 18, such as disk, optical disk, etc.; and communication unit 19, such as network card, modem, wireless transceiver, etc. Communication unit 19 allows electronic device 10 to exchange information / data with other devices through computer networks such as the Internet and / or various telecommunications networks.

[0137] Processor 11 can be a variety of general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special-purpose artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any suitable processor, controller, microcontroller, etc. Processor 11 performs the various methods and processes described above, such as user sleeping posture detection methods.

[0138] In some embodiments, the user sleeping posture detection method may be implemented as a computer program tangibly contained in a computer-readable storage medium, such as storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on electronic device 10 via ROM 12 and / or communication unit 19. When the computer program is loaded into RAM 13 and executed by processor 11, one or more steps of the user sleeping posture detection method described above may be performed. Alternatively, in other embodiments, processor 11 may be configured to perform the user sleeping posture detection method by any other suitable means (e.g., by means of firmware).

[0139] Various embodiments of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field-programmable gate arrays (FPGAs), application-specific integrated circuits (ASICs), application-specific standard products (ASSPs), systems-on-a-chip (SoCs), payload-programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments may include implementations in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which may be a dedicated or general-purpose programmable processor, capable of receiving data and instructions from a storage system, at least one input device, and at least one output device, and transmitting data and instructions to the storage system, the at least one input device, and the at least one output device.

[0140] Computer programs used to implement the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, such that when executed by the processor, the computer programs cause the functions / operations specified in the flowcharts and / or block diagrams to be performed. The computer programs may be executed entirely on a machine, partially on a machine, or as a standalone software package, partially on a machine and partially on a remote machine, or entirely on a remote machine or server.

[0141] In the context of this invention, a computer-readable storage medium can be a tangible medium that may contain or store a computer program for use by or in conjunction with an instruction execution system, apparatus, or device. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination thereof. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination thereof.

[0142] To provide interaction with a user, the systems and techniques described herein can be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user provides input to the electronic device. Other types of devices can also be used to provide interaction with the user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including sound input, voice input, or tactile input).

[0143] The systems and technologies described herein can be implemented in computing systems that include backend components (e.g., as data servers), or computing systems that include middleware components (e.g., application servers), or computing systems that include frontend components (e.g., user computers with graphical user interfaces or web browsers through which users can interact with implementations of the systems and technologies described herein), or any combination of such backend, middleware, or frontend components. The components of the system can be interconnected via digital data communication of any form or medium (e.g., communication networks). Examples of communication networks include local area networks (LANs), wide area networks (WANs), blockchain networks, and the Internet.

[0144] A computing system can include clients and servers. Clients and servers are generally located far apart and typically interact through communication networks. The client-server relationship is created by computer programs running on the respective computers and having a client-server relationship with each other. The server can be a cloud server, also known as a cloud computing server or cloud host, which is a hosting product within the cloud computing service system to address the shortcomings of traditional physical hosts and VPS services, such as high management difficulty and weak business scalability.

[0145] It should be understood that the various forms of processes shown above can be used, with steps reordered, added, or deleted. For example, the steps described in this invention can be executed in parallel, sequentially, or in different orders, as long as the desired result of the technical solution of this invention can be achieved, and this is not limited herein.

[0146] The specific embodiments described above do not constitute a limitation on the scope of protection of this invention. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of this invention should be included within the scope of protection of this invention.

Claims

1. A method for detecting a user's sleeping posture, characterized in that, The method, applied to a smart pillow, includes: The target user's state and the corresponding first sleeping position result are determined based on the pre-inflation pressure values ​​of the head airbag and the neck airbag, respectively, and the pressure changes of the head airbag and the neck airbag during the pre-inflation process. When the first sleeping position result is detected to be a stable state, the pressure ratio of the head airbag and the neck airbag is determined based on the target user's body movement data, and the second sleeping position result corresponding to the target user is determined based on the pressure ratio. The sleeping position of the target user is determined based on the first sleeping position result and the second sleeping position result; The step of determining the target user's state and the corresponding first sleeping position based on the pre-inflation pressure values ​​of the head airbag and neck airbag, respectively, and the pressure changes of the head airbag and neck airbag during pre-inflation includes: Based on the target user's shoulder width, neck circumference, and head circumference information, determine the first pre-inflation pressure and the second pre-inflation pressure corresponding to the head airbag and the neck airbag, respectively. Based on the inflation pressure change curves corresponding to the first pre-inflation pressure and the second pre-inflation pressure, it is determined whether the target user is already on the pillow; When the target user is already using a pillow, adjust the height values ​​of the head airbag and the neck airbag respectively, and continuously monitor the pressure values ​​of the head airbag and the neck airbag respectively, marking the state as "in pillow state". When the target user is not on the pillow, the state of the target user and the first sleeping position result corresponding to the state are determined based on the inflation pressure change curves corresponding to the first pre-inflation pressure and the second pre-inflation pressure during the pre-inflation process, as well as the abrupt changes and slope of the pressure change curves. The step of determining the target user's state and the corresponding first sleeping position based on the inflation pressure change curves corresponding to the first and second pre-inflation pressures during the pre-inflation process, as well as the abrupt changes and slopes of the pressure change curves, includes: The state of the target user is determined based on the inflation pressure change curves corresponding to the first pre-inflation pressure and the second pre-inflation pressure, respectively. When the target user is in a state of being off-pillow to on-pillow, the first pressure value corresponding to the head airbag and the second pressure value corresponding to the neck airbag are collected. Determine a first pressure ratio between the first pressure value and the second pressure value, and determine a preliminary first sleeping position result based on the first pressure ratio; Based on the preliminary first sleeping position results, the neck airbag and the head airbag are pre-inflated, and during the pre-inflating process, the first pressure change curve corresponding to the neck airbag and the second pressure change curve corresponding to the head airbag are collected. If the first pressure change curve and / or the second pressure change curve change abruptly, the above pre-charge pressure process is returned, and the first pressure change curve and the second pressure change curve are reacquired. If there is no abrupt change in the first pressure change curve and / or the second pressure change curve, the preliminary second sleeping position result is determined based on the slope of the pressure curves corresponding to the first pressure change curve and the second pressure change curve, respectively. The first sleeping position result of the target user is determined based on the preliminary first sleeping position result and the preliminary second sleeping position result.

2. The method according to claim 1, characterized in that, The method further includes: The body movement data and sleeping posture change patterns of the target user are statistically analyzed to generate a sleep report for the target user, so as to improve the sleep quality of the target user based on the sleep report.

3. The method according to claim 1, characterized in that, The situations in which the first pressure change curve and / or the second pressure change curve undergo abrupt changes include: The pressure data generated by the neck airbag and the head airbag are sorted. Find the first maximum pressure value and the first minimum pressure value corresponding to the neck airbag, and the second maximum pressure value and the second minimum pressure value corresponding to the head airbag from the sorted pressure data. If the difference between the first maximum pressure value and the first minimum pressure value exceeds the first threshold range, and / or the excess value between the second maximum pressure value and the second minimum pressure value exceeds the second threshold range, then it is considered that the first pressure change curve corresponding to the neck airbag and / or the second pressure change curve corresponding to the head airbag has abruptly changed.

4. The method according to claim 1, characterized in that, Determining the pressure ratio of the head airbag and the neck airbag based on the target user's body movement data includes: The third and fourth pressure values ​​corresponding to the head airbag and the neck airbag are determined based on the target user's body movement data. The pressure ratio of the head airbag and the neck airbag is determined based on the third pressure value and the fourth pressure value, and the pressure ratio is statistically analyzed according to the time granularity.

5. The method according to claim 1, characterized in that, The step of determining the second sleeping position result corresponding to the target user based on the pressure ratio includes: Determine the pressure ratio curve corresponding to the pressure ratio; When the pressure ratio curve is within the first pressure ratio variation range, the second sleeping position result of the target user is determined to be supine sleeping. When the pressure ratio curve is within the second pressure ratio variation range, the second sleeping position result of the target user is determined to be a side-sleeping state; wherein, the first pressure ratio variation range is smaller than the second pressure ratio variation range; Within a preset time period, if the pressure ratio curve shows the trend of the first curve, the second sleeping position of the target user is determined to be a change from supine to side sleeping. Within the preset time period, if the pressure ratio curve shows a second curve trend, the second sleeping position result of the target user is determined to be a change from a side sleeping state to a supine sleeping state.

6. The method according to claim 1, characterized in that, Determining the target user's sleeping position based on the first sleeping position result and the second sleeping position result includes: The first sleeping position result and the second sleeping position result are matched to determine the matching result; The sleeping position of the target user is determined based on the matching results.

7. A smart pillow, characterized in that, The smart pillow includes: a head airbag, a neck airbag, a first pressure sensor, a second pressure sensor, and a microcontroller; The first pressure sensor is connected to the neck airbag and is used to collect the pressure value of the neck airbag in real time. The second pressure sensor is connected to the head airbag and is used to collect the pressure value of the head airbag in real time; The neck airbag is connected to the microcontroller and is used to support the smart pillow and generate the neck airbag pressure value. The head airbag is connected to the microcontroller and is used to support the smart pillow and generate the head airbag pressure value. The microcontroller is connected to the first pressure sensor and the second pressure sensor respectively, and is used to execute the user sleeping posture detection method according to any one of claims 1-6.

8. The smart pillow according to claim 7, characterized in that, The smart pillow also includes: an air pump and a solenoid valve; The air pump is connected to the neck airbag and the head airbag via a solenoid valve, and is used to inflate the neck airbag and the head airbag; The solenoid valve is connected to the neck airbag and the head airbag respectively and is used to control the inflation and deflation of the neck airbag and the head airbag.

9. An electronic device, characterized in that, The electronic device includes: At least one processor; and A memory communicatively connected to the at least one processor; wherein, The memory stores a computer program that can be executed by the at least one processor, the computer program being executed by the at least one processor to enable the at least one processor to perform the user sleeping posture detection method according to any one of claims 1-6.

10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions that cause a processor to execute the user sleeping posture detection method according to any one of claims 1-6.

Citation Information

Patent Citations

  • Sleep quality improving method and pillow

    CN110687835A

  • Air bag pillow capable of recognizing sleeping postures and control method thereof

    CN114259162A

  • User state recognition method, intelligent pillow, equipment and storage medium

    CN114886287A