A method, device, system, and storage medium for adjusting mattress firmness.

By using the control box and airbag system inside the mattress, combined with heart rate monitoring of user data, the mattress firmness is dynamically adjusted, solving the problem that existing smart mattresses cannot automatically adjust, and achieving personalized firmness adjustment and continuous improvement of sleep quality.

CN117461961BActive Publication Date: 2026-05-26JASON FURNITURE(HANGZHOU) CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
JASON FURNITURE(HANGZHOU) CO LTD
Filing Date
2023-11-01
Publication Date
2026-05-26

AI Technical Summary

Technical Problem

Existing smart mattresses cannot automatically adjust to changes in mattress firmness based on user preferences, failing to meet consumers' personalized firmness needs and resulting in poor sleep quality at different stages of sleep.

Method used

By acquiring firmness ratings and sleep quality scores, the mattress uses internal control boxes, airbags, and heart rate monitors user data to dynamically adjust the firmness, gradually approaching the user's ideal firmness and improving sleep quality.

Benefits of technology

It enables dynamic adjustment of mattress firmness to adapt to users' individual needs, continuously improve sleep quality, and enhance users' comfort and sleep experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117461961B_ABST
    Figure CN117461961B_ABST
Patent Text Reader

Abstract

This application relates to the technical field of smart mattress monitoring, and in particular to a method, device, system, and storage medium for adjusting mattress firmness. The method includes steps S100: obtaining a firmness level value and a sleep quality score based on the firmness level value; step S200: obtaining a first judgment set based on the firmness level value and a preset interval; step S300: obtaining a reference score based on reference values ​​within the first judgment set, and determining whether the sleep quality score corresponding to the firmness level value is the optimal score among the reference scores corresponding to the first judgment set; step S400: if the sleep quality score is the optimal score, updating the preset interval and executing steps S200-S300; and step S500: if the sleep quality score is not the optimal score, updating the firmness level value and executing steps S200-S300. This application has the ability to adjust the mattress firmness level value by monitoring the user's sleep quality score, providing the user with a selectable mattress firmness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of intelligent mattress monitoring, and in particular to a method, device, system and storage medium for adjusting mattress firmness. Background Technology

[0002] Mattresses are essential daily necessities for the general public. Most mattresses currently consist of a single mattress core or a mattress core and a decorative cover that wraps around the mattress core. However, different users prefer different levels of firmness in their mattresses.

[0003] The mattresses feature airbags inside, allowing users to adjust the overall firmness by regulating the air pressure within the airbags. Individual airbags can be placed under different parts of the body, allowing for adjustments to their height and firmness, thus making the mattress more ergonomic and meeting consumers' needs for varying levels of firmness.

[0004] The algorithms and firmness of smart mattresses are fixed at the factory. Users choose a mattress that suits their needs based on its firmness. However, consumers' requirements for mattress firmness are not static. Therefore, existing mattresses cannot automatically change their firmness as people change their preferences, and do not provide users with a choice of mattress firmness. Summary of the Invention

[0005] To meet consumers' personalized needs and provide mattresses with different firmness options, this application provides a mattress firmness adjustment method, device, system, and storage medium.

[0006] In a first aspect, this application provides a method for adjusting the firmness of a mattress, employing the following technical solution:

[0007] A method for adjusting mattress firmness includes the following steps:

[0008] Step S100: Obtain the hardness / softness level value, and obtain the sleep quality score based on the hardness / softness level value;

[0009] Step S200: Obtain a first determination set based on the software and hardware level values ​​and a preset interval. The first determination set contains at least one reference value. The preset interval represents the absolute value of the difference between the reference value in the first determination set and the software and hardware level values.

[0010] Step S300: Obtain a reference score based on the reference values ​​in the first judgment set, and determine whether the sleep quality score is the optimal score among the reference scores corresponding to the first judgment set.

[0011] Step S400: If the sleep quality score is the optimal score among the reference scores corresponding to the first judgment set, then reduce the preset interval and execute steps S200-S300.

[0012] Step S500: If the sleep quality score is not the optimal score among the reference scores corresponding to the first judgment set, then obtain the replacement value and the replacement score corresponding to the replacement value according to the first judgment set, and use the replacement value as the soft and hard level value, and the replacement score as the sleep quality score, and execute steps S200-S300.

[0013] By adopting the above technical solution, a sleep quality score is obtained based on the acquired firmness level value. A first judgment set is obtained based on the firmness level value and a preset interval. A reference score is obtained based on the reference value in the first judgment set. By judging whether the sleep quality score is the optimal score among the reference scores, different processing methods are provided. If the sleep quality score is the optimal score, the preset interval is reduced. If the sleep quality score is not the optimal score, the firmness level value is updated according to step S500. By iterating the firmness level value and the preset interval multiple times based on the sleep quality score, a mattress level suitable for the user is further obtained, providing the user with different firmness mattresses.

[0014] In some embodiments, determining whether the sleep quality score corresponding to the soft / hardness rating is the optimal score among the reference scores corresponding to the first determination set includes the following steps:

[0015] A comparison value is obtained based on the reference score corresponding to the first judgment set, and the comparison value represents the largest value among the reference scores corresponding to the first judgment set;

[0016] The comparison value is compared with the sleep quality score;

[0017] If the comparison value is less than the sleep quality score, then the sleep quality score corresponding to the soft and hardness level value is determined to be the optimal score among the reference scores in the first determination set.

[0018] If the comparison value is greater than the sleep quality score, then it is determined that the sleep quality score corresponding to the soft and hardness level value is not the optimal score among the reference scores in the first determination set.

[0019] In some embodiments, after using the replacement value as the hardness / softness rating value and the replacement score as the sleep quality score, the following steps are further included:

[0020] An interval level set is obtained based on the software and hardware level values ​​and a preset interval, wherein the interval level set has at least two reference values;

[0021] A second determination set is obtained based on the interval level set and the first determination set, wherein the second determination set contains at least one comparison value;

[0022] The obtained second determination set is used as the first determination set in step S200, and step S300 is executed.

[0023] In some embodiments, obtaining the second determination set based on the interval level set and the first determination set includes the following steps:

[0024] The reference values ​​in the interval level set are obtained sequentially as temporary elements, and it is determined whether a corresponding element identical to the temporary element is found in the first determination set.

[0025] If the reference element cannot be found, the temporary element is placed into the second determination set.

[0026] In some embodiments, reducing the preset interval includes the following steps:

[0027] Obtain the preset interval as the initial interval, and determine whether the initial interval is less than the standard preset interval;

[0028] If the initial interval is less than the standard preset interval, a level control command is generated and sent to the mattress controller so that the mattress controller controls the mattress to maintain the firmness level value.

[0029] If the initial interval is greater than the standard preset interval, then the change interval is obtained based on the initial interval and the preset specified ratio, and the change interval is used as the updated preset interval.

[0030] In some embodiments, obtaining the hardware / software grade value includes the following steps:

[0031] Determine whether the user's initial data has been obtained before a specified time.

[0032] If the user's initial data is obtained before the specified time, the corresponding reference hardware and software level is selected from the preset theoretical hardware and software level table based on the user's initial data.

[0033] The level fine-tuning value is obtained based on the user's initial data, and the software and hardware level value is obtained based on the level fine-tuning value and the comparison software and hardware level.

[0034] If the user's initial data is not obtained before the specified time, the default hardware / software level is obtained and used as the hardware / software level value.

[0035] In some embodiments, obtaining the replacement value based on the first determination set includes the following steps: obtaining a comparison level based on the comparison value, wherein the comparison level represents the reference value corresponding to the comparison value in the first determination set;

[0036] Use the comparison level as the replacement value.

[0037] In some embodiments, after the sleep quality score is determined to be the optimal score, the following steps are also included:

[0038] The sleep quality score is compared with a standard preset score;

[0039] If the sleep quality score is less than the standard preset score, then an update interval value is obtained based on the difference between the sleep quality score and the standard preset score, and the update interval value is used as the preset interval, and steps S200-S500 are executed.

[0040] Secondly, this application provides a mattress firmness adjustment device, which adopts the following technical solution:

[0041] A mattress firmness adjustment device, performing a mattress firmness adjustment method as described in the first aspect, includes a control box, an airbag, an air tube, and a heart rate belt, wherein the control box, airbag, air tube, and heart rate belt are all disposed inside the mattress.

[0042] The heart rate belt is used to monitor the user's initial data and generate a voltage signal from the user's initial data, which is then sent to the control box. The control box is connected to the airbag through the air tube, and the control box is connected to the heart rate belt to receive the voltage signal. The user's sleep quality is obtained through the voltage signal, thereby controlling the inflation amount of the airbag.

[0043] Thirdly, this application provides a storage medium, which adopts the following technical solution:

[0044] A storage medium storing at least one instruction, at least one program, a code set, or an instruction set, wherein the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement the mattress firmness adjustment method described in the first aspect.

[0045] The mattress firmness adjustment method, device, system, and storage medium provided in this application embodiment obtain a sleep quality score based on the acquired firmness level value, and obtain a first judgment set based on the firmness level value and a preset interval. A reference score is obtained based on the reference value in the first judgment set. By determining whether the sleep quality score is the optimal score among the reference scores, different processing methods are provided. If the sleep quality score is the optimal score, the preset interval is reduced. If the sleep quality score is not the optimal score, the firmness level value is updated. By iterating the firmness level value and the preset interval multiple times based on the sleep quality score, a mattress level suitable for the user is further obtained, providing the user with mattresses of different firmness.

[0046] The mattress firmness is adjusted by regulating the air pressure of its internal airbags, and the airbag pressure values ​​are correlated with the overall firmness level of the mattress to meet the needs of dynamic adjustment at different firmness levels. A heart rate monitoring belt is used to monitor and analyze the user's sleep quality under different mattress firmness levels. The mattress firmness level is dynamically adjusted, gradually approaching and continuously fine-tuning, so that the mattress actively adapts to the user's firmness needs without requiring the user to manually set the mattress firmness. It also makes dynamic adjustments based on the user's actual sleep quality, thereby continuously improving and enhancing the user's sleep quality. Attached Figure Description

[0047] Figure 1 This is a flowchart illustrating the steps of a mattress firmness adjustment method provided in this embodiment;

[0048] Figure 2 This is a flowchart illustrating the steps involved in determining whether a sleep quality score is the optimal score.

[0049] Figure 3 This is a flowchart illustrating the steps of another embodiment of this application;

[0050] Figure 4 This is a flowchart illustrating the steps of yet another embodiment of this application;

[0051] Figure 5 This is a structural schematic diagram of a mattress firmness adjustment device provided in this application.

[0052] Explanation of reference numerals in the attached diagram: 10, control box; 20, airbag; 30, trachea; 40, heart rate belt. Detailed Implementation

[0053] To better understand the purpose, technical solutions, and advantages of this application, it has been described and illustrated below with reference to the accompanying drawings and embodiments. However, those skilled in the art should understand that this application can be implemented without these details. In some cases, to avoid obscuring various aspects of this application due to unnecessary description, well-known methods, processes, systems, components, and / or circuits already described at a higher level will not be elaborated upon. It will be apparent to those skilled in the art that various modifications can be made to the embodiments disclosed in this application, and the general principles defined in this application can be applied to other embodiments and application scenarios without departing from the principles and scope of this application. Therefore, this application is not limited to the illustrated embodiments, but conforms to the broadest scope consistent with the scope of protection claimed in this application.

[0054] This application discloses a method for adjusting mattress firmness, applied to a mattress firmness adjustment device. The device includes a processor and a control unit connected to the processor via a network. The control unit is installed in the mattress used by the user. The control unit acquires initial user data and sends it to the processor. The processor processes the initial user data and sends a level control command to adjust the mattress firmness to the corresponding level. During continuous use, the overall firmness of the mattress is continuously adjusted, and the user's sleep quality at that firmness level is monitored. This process gradually approaches the user's ideal firmness, continuously improving the user's sleep quality.

[0055] like Figure 1 As shown, the method for adjusting mattress firmness includes the following steps:

[0056] S100 obtains the hardness / softness level value and obtains a sleep quality score based on the hardness / softness level value.

[0057] The mattress firmness rating indicates the firmness of the user's mattress, while the sleep quality score indicates the sleep quality corresponding to that firmness rating. Since different users have different firmness requirements—for example, someone with a herniated disc might experience lower back discomfort on a softer mattress, leading to poor sleep quality—the processor continuously adjusts the mattress firmness rating based on the user's sleep quality score. This allows the mattress to offer different firmness levels for different users, further improving sleep quality and making the mattress more adaptable.

[0058] It should be noted that the firmness rating in step S100 refers to the firmness rating of the mattress before the user begins using it. This firmness rating is primarily obtained based on the user's initial data. The specific steps for obtaining the firmness rating include:

[0059] S110, determine whether the user's initial data has been obtained before the specified time.

[0060] S120: If the user's initial data is obtained before the specified time, the corresponding reference hardware and software level is selected from the preset theoretical hardware and software level table based on the user's initial data.

[0061] S130 obtains the level fine-tuning value based on the user's initial data, and obtains the software and hardware level value based on the level fine-tuning value and the comparison with the software and hardware level.

[0062] S140, if the user's initial data is not obtained before the specified time, the default hardware / software level is obtained and used as the hardware / software level value.

[0063] In step S110 above, the specified time represents the time before the user lies on the mattress. The user's initial data includes the user's height, weight, age, and gender. Whether the user's initial data has been obtained before the specified time is mainly determined by whether the processor has obtained the user's input initial data before the specified time. This allows the processor to issue corresponding instructions to the control device, thereby enabling the control device to adjust the firmness of the mattress.

[0064] The preset theoretical hardness rating table mentioned in step S120 above mainly refers to the comparison table between height and weight and theoretical hardness. This table is mainly obtained through experiments, or it can be obtained directly based on existing technology. The preset theoretical hardness rating table is shown in Table 1.

[0065] Table 1. Comparison of Height, Weight, and Theoretical Softness / Hardness

[0066]

[0067] Based on Table 1, a reference firmness level can be obtained according to the user's height and weight, corresponding to the user's initial data. The firmness of the mattress can be adjusted based on this reference firmness level as the firmness level value, which can infinitely approach the firmness of the mattress that the user is comfortable with within a certain range.

[0068] It's important to clarify that the specific method for obtaining the theoretical firmness rating will not be detailed here. It primarily relies on testing mattress samples with individuals of varying heights and weights. The mattress's internal control system includes a main control box and air chambers. The main control box receives the pressure exerted on the mattress by the test user, thus determining the theoretical firmness rating for different heights and weights. To facilitate subsequent processor control of the control system for rapid adjustment of mattress firmness, the main control box stores the equivalent conversion information of the air chamber pressure values ​​corresponding to the overall firmness rating of the mattress. The specific conversion method, based on existing technology or multiple experiments, will not be elaborated upon here.

[0069] In step S130 above, the level fine-tuning value is obtained based on the user's initial data, and the software and hardware level values ​​are obtained based on the level fine-tuning value and the comparison with the software and hardware levels. The user's age and gender are mainly obtained from the initial data. For users whose age is less than a first preset age or greater than a second preset age, the level fine-tuning value can be appropriately obtained. In this embodiment, the first preset age is set to 25 years old, and the second preset age is set to 50 years old. When the difference between the first preset age and the user's age is 1 year, the first level ratio is 0.2. When the difference between the user's age and the second preset age is 1 year, the first level ratio is 0.5.

[0070] For example, if a user is 30 years old, their age is greater than a first preset age but less than a second preset age. Therefore, their corresponding hardware / software level value is the reference hardware / software level. If a user is 20 years old, their age is less than the first preset age, and their corresponding first-level ratio is 0.1. Therefore, the user's level adjustment value is the product of the first preset age, the user's age difference, and the first-level ratio, resulting in a level adjustment value of 1. The user's corresponding hardware / software level value is the difference between the reference hardware / software level and the level adjustment value. When a user is 55 years old, their age is greater than the second preset age, and their corresponding second-level ratio is 0.5. Therefore, the user's level adjustment value is the product of the user's age difference and the second preset age, and the second-level ratio, resulting in a level adjustment value of 2.5. The user's corresponding hardware / software level value is the difference between the reference hardware / software level and the level adjustment value.

[0071] For female users, the specific calculation process is the same as or similar to that described above. The level adjustment value for female users is set to 0.5. That is, when a user is female, the corresponding hardness / softness level value for that user is the difference between the reference hardness / softness level and the level adjustment value.

[0072] In addition, after the mattress is manufactured, the processor will preset a default firmness level value. This value is mainly used as the firmness level value in step S100 when the user does not input the initial user data when using the mattress.

[0073] Specifically, when a user uses the smart mattress, it connects to their mobile phone and prompts the user to input information such as height, weight, age, and gender. The processor receives this information from the phone and sends the initial user data to the main control box. The main control box first performs a fuzzy search for the user's suitable firmness level based on height and weight information, and then fine-tunes it based on age, gender, and other data. For example, for teenagers or middle-aged and elderly users, the recommended firmness level is appropriately lowered (i.e., firmed). This process calculates the theoretically suitable firmness level for the user. If the user does not set height and weight information, the default firmness level is level 5. It's important to note that for a family, a mattress is not just for one person. To make the mattress more adaptable, the firmness adjustment device includes two sets of control devices. During mattress design, these two sets of control devices can be specifically configured, placed in their respective positions according to user habits, and the data from both control devices is sent to the processor for processing. The processor can obtain user data by the pressure the user exerts on the mattress, then distinguish the user's sleep data and process it to obtain the optimal mattress firmness for that user. The processing data in this embodiment are all calculations for a single user, which will not be emphasized further later.

[0074] For step S100, obtaining a sleep quality score based on the softness / hardness level includes the following steps:

[0075] S140: Obtain several sets of sleep data within a specified period, and obtain the corresponding sleep scores based on the several sets of sleep data in sequence.

[0076] S150 processes the sleep scores to obtain an average sleep score, and uses the average sleep score as the sleep quality score.

[0077] The specified period represents a pre-set user testing period, sleep data represents sleep data within the specified period, sleep score represents the daily sleep score within the specified period, and average sleep score represents the average sleep score within the specified period. By testing users' sleep data over a period of time, and then analyzing this data to obtain the corresponding sleep score for that period, a sleep quality score can be obtained.

[0078] The processor acquires sleep data through the heart rate monitor installed in the control device. The sleep data mainly includes the user's heart rate, breathing, body movement, and other data. This data is then reported to the processor, which generates a sleep report based on this data. The sleep report includes sleep score, sleep duration, deep sleep / light sleep duration, average heart rate / breathing / body movement, and other data.

[0079] It should be noted that personal user behavior can also affect sleep quality, such as drinking alcohol on the same day. Therefore, scores with large fluctuations in sleep scores within the same period are removed before calculating the average sleep score for each period.

[0080] The specific methods for obtaining sleep scores include the following steps:

[0081] S141, obtain the full score for sleep and compare the sleep data with the preset standard data.

[0082] S142, If the sleep data is greater than the preset standard data, the deduction value is obtained based on the difference between the sleep data and the preset standard data.

[0083] S143, the sleep score is calculated based on the difference between the maximum sleep score and the deduction score.

[0084] The maximum score for sleep can be preset. In this embodiment, it is preferably set to 100 points. The preset standard data represents the optimal sleep data. For example, heart rate, breathing and body movement correspond to the corresponding situation. Of course, everyone's actual situation is different. Therefore, the preset standard data represents a range. For example, the range of heart rate, breathing and body movement corresponding to the optimal sleep.

[0085] The deduction value is obtained based on the difference between the sleep data and the preset standard data. This mainly refers to a situation where a certain item in the user's sleep data differs too much from the preset standard data. In this case, the deduction ratio can be obtained based on the difference between the corresponding data of the sleep data and the preset standard data, and then the deduction value can be obtained through the deduction ratio.

[0086] Specifically, a high or low sleep score represents the quality of sleep. The sleep score is calculated by comprehensively evaluating other sleep data. The maximum sleep score is 100 points. The user's sleep status is obtained based on the user's initial data. The user's sleep status is then deducted based on the sleep status. The sleep score is obtained based on the maximum sleep score and the deducted points.

[0087] It's important to note that the sleep duration deduction criteria are based on the user's initial data to obtain total sleep duration, then deep sleep duration, and finally the ratio of deep sleep duration to total sleep duration to determine the deep sleep percentage. A lower deep sleep percentage, greater fluctuations in heart rate and respiratory data, and more body movement result in greater point deductions and a lower sleep report score. A lower sleep score indicates poorer sleep quality.

[0088] For example, the sleep data corresponds to 10 body movements, while the preset standard data corresponds to 3-5 body movements. By comparison, the sleep data is greater than the preset standard data. Therefore, based on the difference of 5 between the sleep data and the preset standard data regarding body movements, a sleep score of 10 is obtained. Assuming that the user's sleep data only has body movements greater than the preset standard data, while the rest are within the standard range, then the user's sleep score is 90.

[0089] It's important to note that the deduction percentages for different sleep data points vary and can be set according to specific circumstances. In this example, for heart rate, a difference of 1 point deducts 10 points, and for body movement, a difference of 1 point deducts 2 points. The shorter the sleep duration, the lower the proportion of deep sleep, the greater the fluctuations in heart rate and respiratory data, and the more body movement, the greater the deductions, resulting in a lower sleep report score. A lower sleep score indicates poorer sleep quality for the user.

[0090] The heart rate difference here represents the difference between the sleep data and the preset standard data heart rate, and the body movement difference represents the difference between the sleep data and the body movement in the preset standard data.

[0091] S200: Obtain a first determination set based on the software and hardware level values ​​and a preset interval. The first determination set contains at least one reference value.

[0092] The preset interval represents the absolute value of the difference between the reference value and the software / hardware level value in the first determination set. The first determination set is mainly obtained based on the software / hardware level values, and the reference values ​​in the first determination set are those software / hardware level values ​​that are adjacent and have an equal preset interval.

[0093] For example, the first determination set includes a first reference value and a second reference value. The first reference value represents the sum of the soft and hard grade values ​​and the preset interval, and the second reference value represents the difference between the soft and hard grade values ​​and the preset interval.

[0094] S300: Obtain a reference score based on the reference values ​​in the first judgment set, and determine whether the sleep quality score is the optimal score among the reference scores corresponding to the first judgment set.

[0095] The reference score represents the sleep quality value corresponding to the reference value in the first judgment set, and there is at least one reference score.

[0096] Combination Figure 2 For step S300 above, determining whether the sleep quality score corresponding to the soft / hardness level is the optimal score among the reference scores corresponding to the first judgment set includes the following steps:

[0097] S310, obtain the comparison value based on the reference score corresponding to the first judgment set.

[0098] S320 compares the numerical values ​​with the sleep quality score.

[0099] S330, if the comparison value is less than the sleep quality score, then the sleep quality score is determined to be the optimal score among the reference scores corresponding to the first determination set.

[0100] S340. If the comparison value is greater than the sleep quality score, then the sleep quality score is determined to be not the optimal score among the reference scores in the first determination set.

[0101] Here, the comparison value represents the largest value among the corresponding reference scores in the first judgment set. When the comparison value equals the sleep quality score, the sleep quality score corresponding to the soft / hardness level is the optimal score among the corresponding reference scores in the first judgment set.

[0102] It should be noted that the optimal sleep quality score is determined by the fact that, in the first set of judgments, the sleep quality score corresponding to the soft and hardness level is greater than the comparison value.

[0103] It should be noted that the calculation method for the reference value is the same as or similar to the calculation process for the sleep quality score, so it will not be described in detail here.

[0104] S400, if the sleep quality score is the optimal score among the reference scores corresponding to the first judgment set, then reduce the preset interval and execute steps S200-S300.

[0105] If the sleep quality score described in step S400 above is the optimal score, it means that the sleep quality score corresponding to the soft and hardness level value is the highest reference score in the first judgment set. Therefore, at this time, it is only necessary to re-obtain the first judgment set based on the soft and hardness level value and the updated preset interval.

[0106] Specifically, reducing the preset interval includes the following steps:

[0107] S410, obtain the preset interval as the initial interval, and determine whether the initial interval is less than the standard preset interval.

[0108] S420: If the initial interval is less than the standard preset interval, a level control command is generated and sent to the mattress controller so that the mattress controller controls the mattress to maintain the firmness level value.

[0109] S430, if the initial interval is greater than the standard preset interval, then the change interval is obtained according to the initial interval and the preset specified ratio, and the change interval is used as the updated preset interval.

[0110] The standard preset interval represents the minimum interval value generated by the processor during data processing, i.e., the minimum interval value for iterative cycles. The standard preset interval can be set according to actual conditions; in this embodiment, it is preferably set to 0.02. The level control instruction represents the instruction sent by the processor to the control device, mainly used to instruct the control device to adjust the mattress to maintain its firmness level. The specified ratio represents the ratio formed by the updated preset interval and the original preset interval. When the initial interval equals the standard preset interval, a level control instruction is generated and sent to the mattress controller to instruct the mattress controller to maintain the firmness level of the mattress. It should be noted that the instruction ratio can be set to other values; in this embodiment, it is set to one-half, but it is not limited to this.

[0111] For example, in this embodiment, the specified ratio can be set to one-half. Therefore, when the preset interval is set to 1, after the first comparison of sleep scores, if it is still determined that the sleep quality score corresponding to the firmness level value is the optimal score in the first judgment set, then the preset interval is updated for the first time, and the resulting change interval is 0.5. This change interval is used as the updated preset interval, so the updated preset interval is 0.5. After obtaining the updated preset interval, steps S200-S300 are executed. At this time, if it is determined in step S300 that the sleep quality score corresponding to the firmness level value is still the optimal score in the first judgment set, then the preset interval is updated for the second time, and the resulting change interval is 0.25. Therefore, the updated preset interval is 0.25. Until the preset interval is less than the standard preset interval, the processor generates a level control instruction and sends it to the mattress controller to control the mattress to maintain the firmness level value. For example, the first judgment set includes a first reference value and a second reference value. The first reference value represents the sum of the firmness level value and the preset interval, and the second reference value represents the difference between the firmness level value and the preset interval. The specified cycle is set to 7 days, the firmness level is set to 8, and the preset interval is set to 1. In the first cycle, the mattress firmness is adjusted to the firmness corresponding to the second reference value. In the second cycle, the mattress firmness is adjusted to the firmness corresponding to the firmness level. In the third cycle, the mattress firmness is adjusted to the firmness corresponding to the first reference value. The system continuously monitors the user's sleep quality each night within the specified cycle, primarily by acquiring the user's initial data each night, obtaining a sleep score based on the initial data, and determining the user's sleep quality at that firmness level based on the sleep score.

[0112] The firmness / softness levels are represented by the letter S. Assuming the user achieved the best sleep quality at the firmness / softness level corresponding to S in the first round, the second round continues to use the firmness / softness level corresponding to S as the benchmark. This time, the preset interval is adjusted, narrowed down to 0.5, and the user's sleep quality is tested at firmness / softness levels of (S-0.5) and (S+0.5), with each sleep score calculated to analyze the user's ideal firmness / softness level. In the third round, the user achieved the best sleep quality at the firmness / softness level corresponding to S. Again using S as the benchmark, the user's sleep quality is tested at firmness / softness levels of (S±0.25), and the firmness / softness level is continuously fine-tuned to approach the user's ideal firmness / softness level, thus continuously improving the user's sleep quality.

[0113] S500, if the sleep quality score is not the optimal score among the reference scores corresponding to the first judgment set, then obtain the replacement value and the replacement score corresponding to the replacement value according to the first judgment set, and use the replacement value as the soft and hard level value, and the replacement score as the sleep quality score, and execute steps S200-S300.

[0114] In step S500 above, if the sleep quality score is not the optimal score among the reference scores corresponding to the first judgment set, it means that the sleep quality score obtained from the hardness / softness level values ​​in step S100 is not the optimal score among the first judgment set. Therefore, it indicates that the sleep score corresponding to the reference value in the first judgment set is the highest. Specifically, obtaining the replacement value based on the first judgment set includes the following steps:

[0115] S510, obtain the comparison level based on the comparison value.

[0116] S520 uses the comparison level as the replacement value.

[0117] Here, the comparison level represents the reference value corresponding to the comparison value in the first decision set. The comparison value mentioned here is the same as the comparison value in step S320, so it will not be described in detail here.

[0118] It should be noted that the comparison value represents the largest reference score corresponding to the reference value in the first judgment set, while the comparison level represents one of the reference values ​​in the first judgment set, and this comparison level is the reference value with the largest reference score in the first judgment set.

[0119] In another embodiment, since the sleep quality score obtained from the hardness / softness level values ​​mentioned in step S100 is not the optimal score in the first judgment set, a new hardness / softness level value is obtained based on the elements in the first judgment set, and a new round of data analysis is performed. However, in order to reduce the processor's repeated calculation of data and improve the processor's overall computing efficiency, in another embodiment, a second judgment set is obtained based on the first judgment set, and the processor performs data processing based on the second judgment set.

[0120] Combination Figure 3 After using the replacement value as the hardness / softness rating and the replacement score as the sleep quality score, the following steps are also included:

[0121] S610 obtains a set of interval levels based on the hardware and software level values ​​and the preset interval.

[0122] S620, obtain the second judgment set based on the interval level set and the first judgment set.

[0123] S630, the obtained second determination set is used as the first determination set in step S200, and step S300 is executed.

[0124] The interval level set has at least two reference values, the second judgment set has at least one comparison value, and the interval level set is obtained in the same way as the first judgment set. The sum of the soft and hard level values ​​and the preset interval can be used as the reference value 1 of the interval level set, and the difference between the soft and hard level values ​​and the preset interval can be used as the reference value 2 of the interval level set.

[0125] The specific steps for obtaining the second determination set based on the interval level set and the first determination set in step S620 are as follows: S621, obtain the reference values ​​in the interval level set as temporary elements in turn, and determine whether the same corresponding element as the temporary element is found in the first determination set.

[0126] S622, if no matching element is found, the temporary element is placed into the second decision set.

[0127] Specifically, the comparison values ​​in the second decision set belong to the interval level set but not to the first decision set. Then, the obtained second decision set replaces the original first decision set, and steps S300-S500 are executed.

[0128] For example, the first reference value is represented by the letter (S+1), and the second reference value is represented by the letter (S-1). The first round of testing uses mattresses with firmness levels of (S-1), S, and (S+1). The test result shows that the user has the highest sleep quality at the (S-1) firmness level. Based on the (S-1) firmness and a preset interval, an interval level set is obtained as (S-2) firmness and S firmness. Steps S621-S622 obtain the comparison value of the second judgment set, which is the value corresponding to (S-2) firmness. If the sleep quality is still highest at the (S-1) firmness level, the second round of testing focuses on the user's sleep quality at firmness levels between (S-1.5) and (S-0.5). Similarly, the best firmness level for sleep quality in the second round is determined to be (S+1) firmness. (S+1) firmness is then used as the firmness level value, and steps S100-S300 are executed.

[0129] In another embodiment, the second determination set may also be obtained according to other acquisition methods, such as obtaining a set of ordered arrays based on the hardness / softness level values ​​and a preset interval, wherein the values ​​in the array are arranged in ascending order, and the values ​​in the array are arranged in ascending order.

[0130] Based on the hard and soft grade values ​​in step S100, obtain the corresponding values ​​in the array, and take the two adjacent values ​​that are adjacent to the first determination set.

[0131] If the sleep quality score is not the optimal score according to the judgment in steps S100-S300, and based on the comparison level obtained in step S510, a value is obtained from the array in the opposite direction of the soft and hard level values ​​in step S100, and this value is used as the second judgment set.

[0132] In another embodiment, sometimes the firmness rating obtained based on the user's initial data is not very accurate. The processor updates the mattress at preset intervals multiple times based on the firmness rating, but this does not necessarily determine the optimal firmness for the user's mattress. Therefore, it is also necessary to assess the sleep quality score to determine whether the obtained user's sleep quality score meets the standard preset score.

[0133] Combination Figure 4 After achieving the optimal sleep quality score, the following steps are also included:

[0134] The S710 compares the sleep quality score with the standard preset score.

[0135] S720, if the sleep quality score is less than the standard preset score, then obtain the update interval value based on the difference between the sleep quality score and the standard preset score, and use the update interval value as the preset interval, and execute steps S200-S500.

[0136] The standard preset score corresponds to the lowest sleep quality score associated with the user's mattress firmness. If the sleep quality score is greater than the standard preset score, it indicates that the sleep quality obtained from the mattress firmness level corresponding to that sleep quality meets the standard. Multiple iterations can be performed based on the firmness level value to obtain a more suitable mattress firmness level for the user. If the sleep quality score is equal to the standard preset score, multiple iterations are performed based on the firmness level value. If the sleep quality score is less than the standard preset score, the firmness level value is adjusted based on the difference between the sleep quality score and the standard preset score, and steps S200-S500 are executed.

[0137] It should be noted here that the specific operation process of obtaining the update interval difference based on the difference between the sleep quality score and the standard preset score is as follows: obtain the quality score difference based on the difference between the sleep quality score and the standard preset score, obtain the update interval value based on the quality score difference, use the update interval value as the preset interval, and execute steps S200-S500.

[0138] The implementation principle is as follows:

[0139] In step S100, the processor obtains the hardware and software level values ​​based on the user's initial data, and obtains a sleep quality score based on the hardware and software level values. In step S200, a first judgment set is obtained based on the hardware and software level values ​​and a preset interval. The first judgment set contains at least one reference value. Through the judgment in step S300, a reference score is obtained based on the reference value in the first judgment set, and it is determined whether the sleep quality score is the optimal score among the reference scores corresponding to the first judgment set. If the sleep quality score is the optimal score, the preset interval is updated, and steps S200-S300 are repeated. If the sleep quality score is not the optimal score among the reference scores corresponding to the first judgment set, a replacement value and a replacement score corresponding to the replacement value are obtained based on the first judgment set. The replacement value is used as the hardware and software level value, and the replacement score is used as the sleep quality score. Steps S200-S300 are then executed.

[0140] This application also discloses a mattress firmness adjustment device.

[0141] like Figure 5 As shown, the mattress firmness adjustment device includes a control unit, which includes a control box, an air bladder, an air tube, and a heart rate belt. The control box, air bladder, air tube, and heart rate belt are all located inside the mattress.

[0142] The heart rate monitor is used to monitor the user's initial data and generate a voltage signal, which is then sent to the control box. The control box is connected to the airbag via an airway, and it is also connected to the heart rate monitor to receive the voltage signal. The voltage signal is used to determine the user's sleep quality and control the inflation level of the airbag.

[0143] Specifically, the control box and airbags are connected via air tubes. The airbags are independent left and right sections, each independent of the other, and the left and right sections can be separated to correspond to different body parts. The control box integrates an air pump, solenoid valves, and other electrical components, enabling the regulation of air pressure within the airbags. Lower air pressure results in a softer mattress, while higher pressure results in a firmer mattress. The main control box contains air pressure sensors that monitor the air pressure of each airbag in real time and pre-test the correlation between different mattress firmness levels and airbag pressure values. A ceramic piezoelectric heart rate monitor is used, with independent monitors on both sides positioned on the user's chest. By converting pressure changes such as the user's heartbeat, breathing, and turning over into voltage signals, and then processing this data through hardware filtering and software algorithms, the system generates data on the user's heart rate, breathing, and body movement. This real-time data is used to generate sleep reports, enabling the monitoring and analysis of the user's sleep quality.

[0144] In another embodiment, this application also discloses a mattress firmness adjustment system, which executes a mattress firmness adjustment method, including a data acquisition module, a processing module, a judgment module, a first execution module, and a second execution module. The data acquisition module acquires firmness level values ​​and obtains a sleep quality score based on these values. The processing module acquires a first judgment set based on the firmness level values ​​and a preset interval, where the first judgment set contains at least one reference value. The judgment module determines whether the sleep quality score is the optimal score within the first judgment set. If the sleep quality score is the optimal score, the first execution module updates the preset interval and repeats steps S200-S300. If the sleep quality score is not the optimal score, the second execution module acquires a replacement value and a corresponding replacement score based on the first judgment set, uses the replacement value as the firmness level value and the replacement score as the sleep quality score, and executes steps S200-S300.

[0145] The other functions performed in the data acquisition module, processing module, judgment module, first execution module, and second execution module, as well as the technical details of each function, are the same as or similar to the corresponding features in the mattress firmness adjustment method described above, so they will not be repeated here.

[0146] This application also discloses a storage medium storing at least one instruction, at least one program, a code set, or an instruction set, wherein the at least one instruction, the at least one program, the code set, or the instruction set is loaded and executed by a processor to implement a mattress firmness adjustment method.

[0147] It should be understood that although the steps in the flowcharts in the accompanying drawings are shown sequentially as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Unless otherwise expressly stated herein, there is no strict order in which these steps are performed, and they may be performed in other orders.

[0148] The above are all preferred embodiments of this application, and are not intended to limit the scope of protection of this application. Therefore, all equivalent changes made in accordance with the structure, shape and principle of this application should be covered within the scope of protection of this application.

Claims

1. A method for adjusting the firmness of a mattress, characterized in that, Includes the following steps: Step S100: Obtain the hardness / softness level value, and obtain the sleep quality score based on the hardness / softness level value; Step S200: Obtain a first determination set based on the software and hardware level values ​​and a preset interval. The first determination set contains at least one reference value. The preset interval represents the absolute value of the difference between the reference value in the first determination set and the software and hardware level values. Step S300: Obtain a reference score based on the reference values ​​in the first judgment set, and determine whether the sleep quality score is the optimal score among the reference scores corresponding to the first judgment set. Step S400: If the sleep quality score is the optimal score among the reference scores corresponding to the first judgment set, then reduce the preset interval and execute steps S200-S300. Step S500: If the sleep quality score is not the optimal score in the reference scores corresponding to the first judgment set, then obtain the replacement value and the replacement score corresponding to the replacement value according to the first judgment set, and use the replacement value as the soft and hard level value, and the replacement score as the sleep quality score, and execute steps S200-S300. The process of reducing the preset interval includes the following steps: Obtain the preset interval as the initial interval, and determine whether the initial interval is less than the standard preset interval; If the initial interval is less than the standard preset interval, a level control command is generated and sent to the mattress controller so that the mattress controller controls the mattress to maintain the firmness level value. If the initial interval is greater than the standard preset interval, then the change interval is obtained based on the initial interval and the preset specified ratio, and the change interval is used as the updated preset interval.

2. The mattress firmness adjustment method according to claim 1, characterized in that... The step of determining whether the sleep quality score corresponding to the softness / hardness level is the optimal score among the reference scores corresponding to the first determination set includes the following steps: A comparison value is obtained based on the reference score corresponding to the first judgment set, and the comparison value represents the largest value among the reference scores corresponding to the first judgment set; The comparison value is compared with the sleep quality score; If the comparison value is less than the sleep quality score, then the sleep quality score corresponding to the soft and hardness level value is determined to be the optimal score among the reference scores in the first determination set. If the comparison value is greater than the sleep quality score, then it is determined that the sleep quality score corresponding to the soft and hardness level value is not the optimal score among the reference scores in the first determination set.

3. The mattress firmness adjustment method according to claim 1, characterized in that, After using the replacement value as the hardness / softness rating value and the replacement score as the sleep quality score, the following steps are also included: An interval level set is obtained based on the software and hardware level values ​​and a preset interval, wherein the interval level set has at least two reference values; A second determination set is obtained based on the interval level set and the first determination set, wherein the second determination set contains at least one comparison value; The obtained second determination set is used as the first determination set in step S200, and step S300 is executed.

4. The mattress firmness adjustment method according to claim 3, characterized in that, The step of obtaining the second determination set based on the interval level set and the first determination set includes the following steps: The reference values ​​in the interval level set are obtained sequentially as temporary elements, and it is determined whether a corresponding element identical to the temporary element is found in the first determination set. If the reference element cannot be found, the temporary element is placed into the second determination set.

5. The mattress firmness adjustment method according to claim 1, characterized in that, Obtaining the hardware / software grade values ​​includes the following steps: Determine whether initial user data has been obtained before a specified time. If the user's initial data is obtained before the specified time, the corresponding reference hardware and software level is selected from the preset theoretical hardware and software level table based on the user's initial data. The level fine-tuning value is obtained based on the user's initial data, and the software and hardware level value is obtained based on the level fine-tuning value and the reference software and hardware level. If the user's initial data is not obtained before the specified time, the default hardware / software level is obtained and used as the hardware / software level value.

6. The mattress firmness adjustment method according to claim 2, characterized in that, The step of obtaining the replacement value based on the first determination set includes the following steps: A comparison level is obtained based on the comparison value, and the comparison level represents the reference value corresponding to the comparison value in the first determination set; Use the comparison level as the replacement value.

7. The mattress firmness adjustment method according to claim 1, characterized in that, After the sleep quality score is determined to be the optimal score, the following steps are also included: The sleep quality score is compared with a standard preset score; If the sleep quality score is less than the standard preset score, then an update interval value is obtained based on the difference between the sleep quality score and the standard preset score, and the update interval value is used as the preset interval, and steps S200-S500 are executed.

8. A mattress firmness adjustment device, characterized in that, A mattress firmness adjustment method according to any one of claims 1-7 includes a control box, an airbag, an air tube, and a heart rate belt, wherein the control box, airbag, air tube, and heart rate belt are all disposed inside the mattress; The heart rate belt is used to monitor the user's initial data and generate a voltage signal from the user's initial data, which is then sent to the control box. The control box is connected to the airbag via the air tube, and the control box is connected to the heart rate belt to receive the voltage signal. The user's sleep quality is obtained through the voltage signal, thereby controlling the inflation amount of the airbag.

9. A storage medium, characterized in that, The storage medium stores at least one instruction, at least one program, a code set, or an instruction set, wherein the at least one instruction, the at least one program, the code set, or the instruction set is loaded by a processor. And execute to achieve the mattress firmness adjustment method as described in any one of claims 1-7.