Method, smart bed, device, equipment and storage medium for generating sleep report

By installing a detection module on the smart bed to analyze the vibration parameters of the human body, the problem that the smart bed cannot distinguish the number of users is solved, and the generation of adaptive sleep reports is realized, improving intelligence and user experience.

CN115153442BActive Publication Date: 2025-06-06GREE ELECTRIC APPLIANCE INC OF ZHUHAI
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210873032.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-21
Publication Date
2025-06-06
Estimated Expiration
2042-07-21

AI Technical Summary

Technical Problem

Currently, smart beds cannot distinguish the number of users on smart beds, resulting in the inability to generate adaptive sleep reports, which are low in intelligence and poor user experience.

Method used

The first detection module and the second detection module are laid on the smart bed, which are respectively used to detect the human vibration parameters of the left and right half of the smart bed. By obtaining and analyzing these vibration parameters, the number of users on the smart bed within the preset sleep time is determined, and corresponding sleep reports are generated based on the number.

Benefits of technology

It realizes accurate identification of the number of users on the smart bed, and adaptively generates sleep reports, improving intelligence and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115153442B_ABST
    Figure CN115153442B_ABST
Patent Text Reader

Abstract

The present application relates to a method for generating a sleep report, a smart bed, a device, an equipment and a storage medium. The method includes: obtaining a first set of vibration parameters collected by a first detection module within a preset sleep duration, and a second set of vibration parameters collected by a second detection module; based on the first set of vibration parameters and the second set of vibration parameters, determining the number of users on the smart bed within the preset sleep duration; and generating a sleep report corresponding to the first set of vibration parameters and the second set of vibration parameters according to the number. This embodiment determines the number of users on the smart bed based on the first set of vibration parameters and the second set of vibration parameters within the preset sleep duration, and realizes accurate identification of the number of people using the smart bed; and based on the number of users on the smart bed, adaptively generates a sleep report for users to obtain sleep health, with a high degree of intelligence and a good user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of smart furniture, and in particular to a method for generating a sleep report, a smart bed, a device, equipment and a storage medium. Background Art

[0002] With the development of society and the advancement of science and technology, intelligent products have been widely used in our lives. As users have higher and higher requirements for sleep health, many smart beds have appeared on the market. However, current smart beds cannot distinguish the number of users on the smart beds, and thus cannot adaptively generate sleep reports based on the number of users on the smart beds. Their intelligence is low and the user experience is poor. Summary of the invention

[0003] The present application provides a method for generating a sleep report, a smart bed, an apparatus, a device and a storage medium, so as to solve the problem that the current smart bed cannot distinguish the number of users on the smart bed and cannot adaptively generate a sleep report based on the users on the smart bed.

[0004] In a first aspect, an embodiment of the present application provides a method for generating a sleep report, which is applied to a smart bed, wherein a first detection module and a second detection module are provided on the smart bed, wherein the first detection module is used to detect vibration parameters of a human body located on the left half of the smart bed, and the second detection module is used to detect vibration parameters of a human body located on the right half of the smart bed; the method comprises:

[0005] Acquire a first group of vibration parameters collected by the first detection module within a preset sleep duration, and a second group of vibration parameters collected by the second detection module;

[0006] Determining the number of users located on the smart bed within the preset sleep duration based on the first set of vibration parameters and the second set of vibration parameters;

[0007] A sleep report corresponding to the first set of vibration parameters and the second set of vibration parameters is generated according to the number.

[0008] Optionally, determining the number of users on the smart bed within the preset sleep duration based on the first set of vibration parameters and the second set of vibration parameters includes:

[0009] determining whether all parameters in the first group of vibration parameters are vibration parameters of the user, and whether all parameters in the second group of vibration parameters are vibration parameters of the user;

[0010] If so, determining that the number of users located on the smart bed within the preset sleep duration is at least two;

[0011] Otherwise, obtaining a first group of target parameters belonging to the user from the first group of vibration parameters, and obtaining a second group of target parameters belonging to the user from the second group of vibration parameters, calculating a difference between the first group of target parameters and the second group of target parameters, and determining the number of users located on the smart bed within the preset sleep duration based on the difference;

[0012] When the difference is greater than a difference threshold, the number is determined to be at least two, and when the difference is not greater than the difference threshold, the number is determined to be one.

[0013] Optionally, determining whether all parameters in the first group of vibration parameters are vibration parameters of the user includes:

[0014] Determining whether there is an invalid vibration parameter in the first group of vibration parameters, wherein the parameter value of the invalid vibration parameter is a preset value;

[0015] When the invalid vibration parameter does not exist in the first group of vibration parameters, it is determined that all parameters in the first group of vibration parameters are vibration parameters of the user.

[0016] Optionally, calculating the difference between the first set of target parameters and the second set of target parameters includes:

[0017] calculating a first mean of the first set of target parameters, and calculating a second mean of the second set of target parameters;

[0018] Calculating a difference between the first mean and the second mean;

[0019] The difference between the first mean and the second mean is used as the difference between the first set of target parameters and the second set of target parameters.

[0020] Optionally, the first group of target parameters includes a first group of breathing parameters and a first group of heartbeat parameters, and the second group of target parameters includes a second group of breathing parameters and a second group of heartbeat parameters;

[0021] Calculating a difference between the first set of target parameters and the second set of target parameters comprises:

[0022] Calculating a breathing difference between the first set of breathing parameters and the second set of breathing parameters, and calculating a heartbeat difference between the first set of heartbeat parameters and the second set of heartbeat parameters;

[0023] The breathing difference and the heartbeat difference are used as the difference between the first set of target parameters and the second set of target parameters.

[0024] Optionally, generating a sleep report corresponding to the first set of vibration parameters and the second set of vibration parameters according to the quantity includes:

[0025] When it is determined that the number is one, generating a sleep report based on the first set of vibration parameters and the second set of vibration parameters; using the sleep report as the sleep report corresponding to the first set of vibration parameters and the second set of vibration parameters;

[0026] When it is determined that the number is at least two, a first sleep report is generated based on the first set of vibration parameters, and a second sleep report is generated based on the second set of vibration parameters; the first sleep report and the second sleep report are used as sleep reports corresponding to the first vibration parameters and the second vibration parameters.

[0027] Optionally, the collection moments of two adjacent target parameters in the first group of target parameters are separated by one collection cycle; the collection moments of two adjacent target parameters in the second group of target parameters are separated by one collection cycle; before calculating the difference between the first group of target parameters and the second group of target parameters, it also includes: determining that the number of vibration parameters in the first group of target parameters is greater than a number threshold; and determining that the number of vibration parameters in the second group of target parameters is greater than the number threshold.

[0028] In a second aspect, an embodiment of the present application provides a smart bed, comprising:

[0029] A bed, and a first detection module and a second detection module laid on the bed;

[0030] The bed body is used to obtain a first group of vibration parameters collected by the first detection module within a preset sleep duration, and a second group of vibration parameters collected by the second detection module; based on the first group of vibration parameters and the second group of vibration parameters, determine the number of users located on the smart bed within the preset sleep duration; and generate a sleep report corresponding to the first group of vibration parameters and the second group of vibration parameters according to the number.

[0031] In a third aspect, an embodiment of the present application provides a device for generating a sleep report, which is applied to a smart bed, wherein the smart bed is provided with a first detection module and a second detection module, wherein the first detection module is used to detect vibration parameters of a human body located on a left half of the smart bed, and the second detection module is used to detect vibration parameters of a human body located on a right half of the smart bed;

[0032] The device comprises:

[0033] An acquisition module, used to acquire a first group of vibration parameters collected by the first detection module within a preset sleep duration, and a second group of vibration parameters collected by the second detection module;

[0034] a determination module, configured to determine the number of users located on the smart bed within the preset sleep duration based on the first set of vibration parameters and the second set of vibration parameters;

[0035] A generating module is used to generate a sleep report corresponding to the first set of vibration parameters and the second set of vibration parameters according to the quantity.

[0036] In a fourth aspect, an embodiment of the present application provides an electronic device, including:

[0037] A processor, a memory and a communication bus, wherein the processor and the memory communicate with each other via the communication bus;

[0038] The memory is used to store computer programs;

[0039] The processor is used to execute the program stored in the memory to implement the method for generating a sleep report described in the first aspect.

[0040] In a fifth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program for implementing the method for generating a sleep report as described in the first aspect.

[0041] The above technical solution provided by the embodiment of the present application has the following advantages over the prior art: the method provided by the embodiment of the present application obtains the first group of vibration parameters collected by the first detection module within the preset sleep duration, and the second group of vibration parameters collected by the second detection module; based on the first group of vibration parameters and the second group of vibration parameters, the number of users on the smart bed within the preset sleep duration is determined; according to the number, a sleep report corresponding to the first group of vibration parameters and the second group of vibration parameters is generated. This embodiment determines the number of users on the smart bed based on the first group of vibration parameters and the second group of vibration parameters within the preset sleep duration, and realizes accurate identification of the number of people using the smart bed; and based on the number of users on the smart bed, a sleep report for users to obtain sleep health is adaptively generated, which has a high degree of intelligence and a good user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.

[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0044] Figure 1This is a flowchart of a method for generating a sleep report in an embodiment of the present application;

[0045] Figure 2 A schematic diagram of determining whether there is a user on the smart bed in an embodiment of the present application;

[0046] Figure 3 This is a schematic diagram of the structure of a smart bed in an embodiment of the present application;

[0047] Figure 4 This is a flowchart of another method for generating a sleep report in an embodiment of the present application;

[0048] Figure 5 A schematic diagram of the structure of a device for generating a sleep report provided in an embodiment of the present application;

[0049] Figure 6 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0050] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0051] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0052] An embodiment of the present application provides a method for generating a sleep report, which can be applied to an electronic device, which is a smart bed or a server capable of communicating with a smart bed.

[0053] like Figure 1 As shown, an embodiment of the present application provides a method for generating a sleep report, which may include the following steps:

[0054] Step 101 : obtaining a first group of vibration parameters collected by a first detection module within a preset sleep duration, and a second group of vibration parameters collected by a second detection module.

[0055] It should be understood that the smart bed is provided with a first detection module and a second detection module, wherein the first detection module is laid on the left half of the smart bed, and is used to detect the vibration parameters of the human body when a user is located on the left side of the smart bed; the second detection module is laid on the right half of the smart bed, and is used to detect the vibration parameters of the human body when a user is located on the right side of the smart bed.

[0056] It should be understood that the preset sleep duration can be set according to the user's actual sleep conditions.

[0057] In a specific application, the left and right sides of the smart bed can be determined in the following manner: first, the position of the head of the smart bed is determined; then, the user using the smart bed faces the head of the smart bed; the left side of the user currently facing the head of the smart bed corresponds to the position of the smart bed and the right side of the user currently facing the head of the smart bed corresponds to the position of the smart bed as the right side of the smart bed.

[0058] In a specific embodiment, the parameter type of the first group of vibration parameters collected by the first detection module and the parameter type of the second group of vibration parameters collected by the second detection module are the same parameter type. Wherein, the parameter type of the first group of vibration parameters or the parameter type of the second group of vibration parameters include the user's heartbeat parameters and / or the user's breathing parameters. The breathing parameters can be the breathing rate, and the heartbeat parameters can be the heart rate.

[0059] In a specific implementation, the first detection module and the second detection module can be a sleep monitoring box based on a piezoelectric film, which is seamlessly connected with the unique laminated structure of the smart mattress. When the user is sitting on the smart bed, the sleep monitoring box can detect the user's heartbeat and breathing in real time.

[0060] Step 102: Determine the number of users on the smart bed within a preset sleep duration based on the first set of vibration parameters and the second set of vibration parameters.

[0061] It should be understood that the user on the smart bed may be lying on the smart bed, lying on the smart bed, or sitting on the smart bed, etc., which is not specifically limited in this embodiment.

[0062] In a specific embodiment, it is determined whether all the parameters in the first group of vibration parameters are the vibration parameters of the user, and whether all the parameters in the second group of vibration parameters are the vibration parameters of the user. If so, it is determined that the number of users on the smart bed within the preset sleep duration is at least two. Otherwise, a first group of target parameters belonging to the user is obtained from the first group of vibration parameters, and a second group of target parameters belonging to the user is obtained from the second group of vibration parameters. The difference between the first group of target parameters and the second group of target parameters is calculated, and the number of users on the smart bed within the preset sleep duration is determined based on the difference. When the difference is greater than a difference threshold, it is determined that the number of users on the smart bed is at least two; when the difference is not greater than the difference threshold, the number is determined to be one.

[0063] It should be understood that the vibration parameters of the same person in the normal sleep stage have a smaller range of variation, while the vibration parameters of different people in the normal sleep stage have a larger difference. Therefore, the difference threshold can be set according to the actual situation.

[0064] It should be understood that determining whether all the parameters in the first group of vibration parameters are the vibration parameters of the user can be performed by determining whether there are invalid vibration parameters in the first group of vibration parameters, the parameter values ​​of the invalid vibration parameters are preset values, and when there are no invalid vibration parameters in the first group of vibration parameters, it is determined that all the parameters in the first group of vibration parameters are the vibration parameters of the user. In this embodiment, by determining whether there are invalid vibration parameters with parameter values ​​of preset values ​​in the first group of vibration parameters, when there are no invalid vibration parameters in the first group of vibration parameters, it is determined that all the parameters in the first group of vibration parameters are the vibration parameters of the user, that is, when searching for parameters with preset values ​​in the first group of vibration parameters, compared with searching for other parameters of multiple different parameters that are not preset values ​​in the first group of vibration parameters, the amount of calculation is smaller, and it is also faster to determine whether all the parameters in the first group of vibration parameters are the vibration parameters of the user.

[0065] Among them, the parameter corresponding to the preset value is not the vibration parameter of the user.

[0066] In a specific implementation, when there is no user on the smart bed, the parameter collected by the vibration module is 0, and the collected parameter is not the vibration parameter of the user, so the preset value can be set to parameter 0. In other practical situations, the preset value can be set to other vibration parameter values ​​that are not for the user, and this embodiment does not make specific limitations.

[0067] It should be understood that the collection moments of two adjacent target parameters in the first group of target parameters are separated by one collection cycle, and the collection moments of two adjacent target parameters in the second group of target parameters are separated by one collection cycle.

[0068] It should be understood that in order to ensure the effectiveness of determining the number of users based on the difference between the first group of target parameters and the second group of target parameters, before calculating the difference between the first group of target parameters and the second group of target parameters, the effectiveness of the first group of target parameters and the second group of target parameters need to be determined, and the effectiveness of the first group of target parameters and the second group of target parameters can be determined by determining that the number of vibration parameters in the first group of target parameters is greater than a number threshold, and determining that the number of vibration parameters in the second group of target parameters is greater than a number threshold.

[0069] This embodiment avoids collecting vibration parameters of abnormal sleep stages within the user's preset sleep duration by determining that the number of obtained first group vibration parameters is greater than a number threshold, and the collection times of two adjacent vibration parameters in the first group of vibration parameters differ by one collection cycle. Because the vibration parameters of the user in the abnormal sleep stage vary greatly, this embodiment avoids collecting vibration parameters of abnormal sleep stages within the user's preset sleep duration with a large difference when collecting the user's vibration parameters, thereby more accurately determining whether the user is within the preset sleep duration.

[0070] In a specific embodiment, within the preset sleep duration, if the first detection module collects the first set of vibration parameters emitted by the user, it is determined that the user is located on the left side of the smart bed corresponding to the first detection module, and the second detection module also collects the second set of vibration parameters emitted by the user, it is determined that the user is located on the right side of the smart bed corresponding to the second detection module. Furthermore, it is necessary to determine whether the first set of vibration parameters does not meet the continuity condition, and whether the second set of vibration parameters does not meet the continuity condition.

[0071] First, within the preset sleep duration, it is necessary to determine whether there are users on the left and right sides of the smart bed, which can be determined in the following manner: for the left side of the smart bed, if it is determined that the number of the first group of vibration parameters collected by the first detection module is greater than the number threshold, and the collection time of two adjacent vibration parameters in the first group of vibration parameters differs by one collection cycle, then it is determined that there is a user located in the left half of the smart bed within the preset sleep duration. The above method is also applied to the second group of vibration parameters collected by the second detection module to determine that there is a user located in the right half of the smart bed within the preset sleep duration. This embodiment avoids collecting vibration parameters of abnormal sleep stages within the preset sleep duration of the user by determining that the number of the first group of vibration parameters is greater than the number threshold, and the collection time of two adjacent vibration parameters in the first group of vibration parameters differs by one collection cycle, because the vibration parameters of the user in the abnormal sleep stage differ by a large amplitude. When collecting the vibration parameters of the user, this embodiment avoids collecting vibration parameters of abnormal sleep stages within the preset sleep duration of the user with a large amplitude difference, thereby more accurately determining whether there is a user within the preset sleep duration.

[0072] To facilitate understanding of the above determination of whether there are users on the left and right sides of the smart bed, Figure 2 As shown, in the preset sleep duration, A is the first detection module on the left side of the smart bed, B is the second detection module on the right side of the smart bed, and the threshold value of the number of vibration parameters is set to 3. In the first group, A detects vibration parameter groups in two time periods, and the number is greater than 3, that is, the vibration parameters collected by A are the vibration parameters generated by the user in the normal sleep stage, and B detects a vibration parameter group in a time period, and the number is greater than 3. Similarly, the vibration parameters collected by B are also the vibration parameters generated by the user in the normal sleep stage. Taking the time period detected by B as 1 hour as an example, it is collected once every 10 minutes, and 6 vibration parameters are collected in B within one hour, and the collection time difference of these 6 adjacent vibration parameters is 10 minutes of a collection cycle, then it is determined that there is a user on the right side of the smart bed corresponding to B. If the number of vibration parameters collected by B within this hour is less than 3, and is 2, it means that the difference between the collection time of these two vibration parameters is not a collection cycle. That is, the vibration parameters collected by B are probably the vibration parameters generated by the user in the abnormal sleep stage. In the second group, the collection durations of A and B are continuous within the preset sleep duration. The first type, corresponding to A>3, B<3, determines that there are people on the left and right sides of the smart bed; the second type, corresponding to A>3, B<3, determines that there are people on the left and no one on the right. The third group is the situation where the time periods of the vibration parameters collected by A and B overlap within the preset sleep duration, and the fourth group is the time periods of the vibration parameters collected by A and B are non-overlapping and discontinuous within the preset sleep duration. The fifth group is another way of the time periods of the vibration parameters collected by A and B. Among them, in the third to fifth groups, the number of collections on the left and right sides of the corresponding smart bed is greater than the number threshold, and the collection times of two adjacent vibration parameters differ by one collection cycle, and it is determined that there are users on the left and right sides of the corresponding smart bed within the preset sleep duration. This embodiment is not limited to the method.

[0073] It should be understood that the continuous condition can be determined by the fact that the parameters in any one of the first group of vibration parameters or the second group of vibration parameters are all vibration parameters of the user collected within the preset sleep duration. The following example is used to illustrate: the user presets the sleep duration to be 8 hours, and the corresponding time period is from 22:00 on the first night to 6:00 on the second morning. All the parameters in the first group of vibration parameters are collected between 22:00 on the first night and 6:00 on the second morning, and all the parameters in the first group of vibration parameters are vibration parameters of the user, that is, there is no empty data in the first group of vibration parameters; similarly, all the parameters in the second group of vibration parameters are collected between 22:00 on the first night and 6:00 on the second morning. In specific implementation, it can be determined whether the first group of vibration parameters or the second group of vibration parameters does not meet the continuous condition in the following way. Taking the determination of whether the first group of vibration parameters does not meet the continuity condition as an example, first, obtain the vibration parameters whose values ​​are not preset values ​​in the first group of vibration parameters, obtain the collection time of the vibration parameters whose values ​​are not preset values, determine the collection duration of the vibration parameters whose values ​​are not preset values ​​based on the collection time, and determine whether the first group of vibration parameters does not meet the continuity condition based on the collection duration and the preset sleep duration. When the collection duration is not the preset sleep duration, it is determined that the first group of vibration parameters does not meet the continuity condition. It should be understood that the above-mentioned method of determining whether the first group of vibration parameters does not meet the continuity condition is also applied to whether the second group of vibration parameters does not meet the continuity condition, and this embodiment will not repeat it.

[0074] Among them, the parameter corresponding to the preset value is not the vibration parameter of the user.

[0075] For ease of understanding, taking the first group of vibration parameters as the user's heartbeat parameters as an example, the user presets the sleep duration to 8 hours, and the corresponding time period is from 22:00 at night on the first day to 6:00 in the morning of the next day; when the first detection module collects the user's heartbeat parameters for a duration of 8 hours, and the start time when the first detection module collects the user's heartbeat parameters is 22:00 at night on the first day, and the end time when the heartbeat parameters are collected is 6:00 in the morning of the next day, it is determined that the first group of vibration parameters collected by the first detection module meets the continuity condition; on the contrary, when the first detection module collects the user's vibration parameters for a duration of less than 8 hours within the preset sleep duration, such as the start time when the first detection module collects the user's vibration parameters is 5:00 in the morning of the next day, and the end time when the vibration parameters are collected is 6:00 in the morning of the next day, and the actual time when the user's vibration parameters are collected is 1 hour, it is determined that the first group of vibration parameters collected by the first detection module does not meet the continuity condition. If the first detection module collects the user's heartbeat parameters from 22:00 on the first night to 6:00 on the next morning, the actual duration of collecting the heartbeat parameters is 0, and the corresponding heartbeat parameter is also 0. It should be understood that the heartbeat parameter is 0, which is the above-mentioned preset value.

[0076] In an embodiment of the present application, if it is determined that the first group of vibration parameters does not satisfy the continuity condition, and the second group of vibration parameters does not satisfy the continuity condition, the first group of target parameters are obtained from the first group of vibration parameters, and the second group of target parameters are obtained from the second group of vibration parameters, and the difference between the first group of target parameters and the second group of target parameters is calculated. When it is determined that the difference is greater than the difference threshold, it is determined that the number of users located on the smart bed within the preset sleep duration is at least two; when it is determined that the difference is not greater than the difference threshold, it is determined that the number of users located on the smart bed within the preset sleep duration is one.

[0077] The difference threshold can be set according to actual conditions.

[0078] Among them, the first group of target parameters are parameters in the first group of vibration parameters whose values ​​are not preset values, the second group of target parameters are parameters in the second group of vibration parameters whose values ​​are not preset values, and the number of the first group of target parameters is the same as that of the second group of target parameters.

[0079] In this embodiment, while ensuring that the number of the first group of target parameters and the second group of target parameters are the same, the first group of target parameters can be randomly obtained from the first group of vibration parameters, and the second group of vibration parameters can be randomly obtained from the second group of vibration parameters.

[0080] It should be understood that, since the vibration parameters of the human body usually do not change significantly over time, obtaining the first set of target parameters and the second set of target parameters in a random manner will not affect the accuracy of the implementation of this solution.

[0081] Of course, in practical applications, in order to further improve the accuracy of solution implementation, the first set of target parameters and the second set of target parameters may also be obtained in a manner corresponding to the acquisition time.

[0082] In a specific embodiment, the first set of target parameters and the second set of target parameters are obtained as follows:

[0083] Obtain the number a of all vibration parameters in the first group of vibration parameters, obtain the number b of all vibration parameters in the second group of vibration parameters, and compare the number a with the number b. In the first method, if the number a=the number b, all vibration parameters in the first group of vibration parameters are used as the first group of target parameters, and all vibration parameters in the second group of vibration parameters are used as the second group of target parameters. In the second method, if the number a>the number b, obtain the number b of vibration parameters in the first group of vibration parameters as the first group of target parameters, and use the number b of vibration parameters in the second group of vibration parameters as the second group of target parameters. Among them, the method of obtaining the vibration parameters of quantity b in the first group of vibration parameters is as follows: first, determine whether there are vibration parameters in the first group of vibration parameters with the same collection time as those in the second group of vibration parameters; if so, determine the vibration parameters C and quantity c in the first group of vibration parameters with the same collection time as those in the second group of vibration parameters; if quantity c = quantity b, then the vibration parameters C of quantity c in the first group of vibration parameters are used as the vibration parameters of quantity b in the first group of vibration parameters; if quantity c < quantity b, calculate the difference between quantity b and quantity c to obtain quantity d, obtain the vibration parameters of quantity d in the first group of vibration parameters whose collection time is sequentially close to the collection time of all vibration parameters of quantity b in the second group of vibration parameters, and then use the vibration parameters C of quantity c in the first group of vibration parameters and the vibration parameters sequentially close to quantity d in the second group of vibration parameters as the vibration parameters of quantity b in the first group of vibration parameters. If not, use the vibration parameters of quantity b in the first group of vibration parameters whose collection time is sequentially close to the collection time of all vibration parameters in the second group of vibration parameters as the first group of target parameters. In this embodiment, the first set of target parameters and the second set of target parameters can be accurately obtained in the above manner, and the user on the smart bed can be accurately determined through the first set of target parameters and the second set of target parameters.

[0084] For ease of understanding, an example is given here. The first acquisition module and the second acquisition module can respectively collect 4 groups of vibration parameters per hour; the time when the first acquisition module collects the first group of vibration parameters is from 22:00 on the first day to 2:00 on the second day, a total of 4 hours, 16 vibration parameters; the first type, the time when the second acquisition module collects the second group of vibration parameters is from 23:00 on the first day to 3:00 on the second day, a total of 4 hours, 16 vibration parameters, then the 16 vibration parameters collected by the first acquisition module are used as the first group of target parameters, and the 16 vibration parameters collected by the second acquisition module are used as the second group of target parameters. The second type, the time when the second acquisition module collects the second group of vibration parameters is from 22:00 on the first day to 1:00 on the second day, a total of 3 hours, 12 vibration parameters, then the 12 vibration parameters collected by the first acquisition module from 22:00 on the first day to 1:00 on the second day are used as the first group of target parameters, and all 12 vibration parameters collected by the second acquisition module are used as the second group of target parameters. The third type is that the time of the second group of vibration parameters collected by the second acquisition module is from 1:00 to 3:00 of the next day, a total of 2 hours, 8 vibration parameters, then the vibration parameters collected by the first acquisition module from 0:00 to 2:00 of the next day are used as the first group of target parameters, and all 8 vibration parameters collected by the second acquisition module are used as the second group of target parameters. The fourth type is that the time of the second group of vibration parameters collected by the second acquisition module is from 4:00 to 5:00 of the next day, a total of 1 hour, 4 vibration parameters, then the 4 vibration parameters collected by the first acquisition module from 1:00 to 2:00 of the next day are used as the first group of target parameters, and the 4 vibration parameters collected by the second acquisition module are used as the second group of target parameters.

[0085] In a specific implementation, the difference between the first set of target parameters and the second set of target parameters may be calculated in the following manner.

[0086] The first method is to calculate a first mean of the first set of target parameters and a second mean of the second set of target parameters, calculate a difference between the first mean and the second mean, and use the difference between the first mean and the second mean as the difference between the first set of target parameters and the second set of target parameters.

[0087] It should be understood that when the difference between the first mean and the second mean is greater than the difference threshold, it is determined that the number of users located on the smart bed within the preset sleep duration is at least two; when the difference between the first mean and the second mean is not greater than the difference threshold, it is determined that the number of users located on the smart bed within the preset sleep duration is one.

[0088] For ease of understanding, an example is given here. The first set of target parameters includes target parameters collected at 7 different times, namely a1, b1, c1, d1, e1, f1, and g1, where the data values of the parameter values are arranged as a1 < b1 < c1 < d1 < e1 < f1 < g1; the second set of target parameters includes target parameters collected at 7 different times, namely a2, b2, c2, d2, e2, f2, and g2, where the data set sizes of the parameter values are arranged as a2 < b2 < c2 < d2 < e2 < f2 < g2; it should be understood that there are multiple ways to determine the difference between the first mean value and the second mean value; first, the mean value obtained by adding the data values of the 7 target parameters in the first set of target parameters and dividing by the number of added parameters is used as the first mean value, and the mean value obtained by adding the data values of the 7 target parameters in the second set of target parameters and dividing by the number of added parameters is used as the second mean value. The first mean value is subtracted from the second mean value, and the absolute value of the subtraction result is used as the difference between the first mean value and the second mean value. Second, the maximum value g1 and the minimum value a1 among the 7 data in the first set of target parameters are removed, and the mean value obtained by adding the data values of the remaining 5 target parameters in the first set of target parameters and dividing by the number of added parameters is used as the first mean value; the maximum value g2 and the minimum value a2 among the 7 data in the second set of target parameters are removed, and the mean value obtained by adding the data of the remaining 5 target parameters in the second set of target parameters and dividing by the number of added parameters is used as the second mean value. The first mean value is subtracted from the second mean value, and the absolute value of the subtraction result is used as the difference between the first mean value and the second mean value; in this embodiment, by screening and removing the maximum and minimum values in the first target parameter and the second target parameter, the influence on the accuracy of the obtained difference caused by the large differences in the target parameters collected at different times within the first set of target parameter values due to special circumstances of the same user within the preset sleep duration is avoided.

[0089] Second, in the embodiment of the present application, the first set of target parameters includes the first set of respiratory parameters and the first set of heartbeat parameters, and the second set of target parameters includes the second set of respiratory parameters and the second set of heartbeat parameters. Calculate the respiratory difference between the first set of respiratory parameters and the second set of respiratory parameters, and calculate the heartbeat difference between the first set of heartbeat parameters and the second set of heartbeat parameters. The respiratory difference and the heartbeat difference are used as the difference between the first set of target parameters and the second set of target parameters.

[0090] It should be understood that when the respiratory difference is greater than the respiratory difference threshold and the heartbeat difference is greater than the heartbeat difference threshold, it is determined that the difference is greater than the difference threshold. Among them, the respiratory difference threshold and the heartbeat difference threshold can be set according to the actual situation.

[0091] For ease of understanding, here is an example. The user presets the sleep duration to 8 hours, and the corresponding time period is from 22:00 on the first night to 6:00 on the next morning; the first set of target parameters are collected from 22:00 on the first night to 4:00 on the next morning; among them, a set of vibration parameters is collected every two hours, and a total of 3 sets of vibration parameters are collected, including 3 breathing parameters, which are 20 times / minute, 22 times / minute and 24 times / minute; including 3 heartbeat parameters, which are 60 times / minute, 62 times / minute and 64 times / minute; the second set of target parameters are collected from 0:00 on the first night to 6:00 on the next morning. Similarly, a total of 3 sets of vibration parameters are collected. According to the data, the three groups of vibration parameters include three breathing parameters, which are 26 times / min, 28 times / min and 30 times / min respectively; and three heartbeat parameters, which are 70 times / min, 72 times / min and 74 times / min respectively; when calculating the difference between the first group of breathing parameters and the second group of breathing parameters, any one breathing parameter or mean of the three breathing parameters in the first group of target parameters can be subtracted from any one breathing parameter or mean of the three breathing parameters in the second group of target parameters to obtain the first group of breathing parameters, and the present embodiment does not limit the specific calculation method; taking the subtraction of the mean of the three breathing parameters in the first group of target parameters from the mean of the second group of target parameters as an example, the first group of breathing parameters is 22 times / min, and the second group of breathing parameters is 28 times / min. In the same way, the first group of heartbeat parameters is 62 times / min, and the second group of heartbeat parameters is 72 times / min. Then the breathing difference is 6 times / min, and the heartbeat difference is 10 times / min. The breathing difference threshold is set to 4 times / minute and the heartbeat difference threshold is set to 8 times / minute. Then, the current breathing difference is greater than the breathing difference threshold and the heartbeat difference is greater than the heartbeat difference threshold.

[0092] It should be understood that when the breathing difference is greater than the breathing difference threshold, and the heartbeat difference is greater than the heartbeat difference threshold, it is determined that the difference between the first target parameter and the second target parameter is greater than the difference threshold, then the number of users on the smart bed is determined to be at least two, and when the breathing difference is greater than the breathing difference threshold and the heartbeat difference is less than the heartbeat difference threshold, the breathing difference is less than the breathing difference threshold and the heartbeat difference is greater than the heartbeat difference threshold, and the breathing difference is less than the breathing difference threshold and the heartbeat difference is less than the heartbeat difference threshold, then the number of users on the smart bed is determined to be one. In this embodiment, by determining that the breathing difference is greater than the breathing difference threshold and the heartbeat difference is greater than the heartbeat difference threshold, the number of users on the smart bed is determined to be at least two. The number of smart bed users can be more accurately distinguished based on the dual threshold.

[0093] In an embodiment of the present application, if it is determined that the first group of vibration parameters meets the continuity condition, and the second vibration parameter meets the continuity condition, then it is determined that the number of users located on the smart bed within the preset sleep duration is at least two. It should be understood that if the first detection module collects the user's vibration parameters in real time within the preset sleep duration, then there is always a user located on the left side of the smart bed during the preset sleep duration; similarly, if the second detection module collects the user's vibration parameters in real time within the preset sleep duration, then there is always a user located on the right side of the smart bed during the preset sleep duration. By determining that both the first group of vibration parameters and the second group of vibration parameters meet the continuity condition, the embodiment of the present application can quickly determine that the number of users located on the smart bed within the preset sleep duration is at least two, without the need to compare the vibration parameters collected between the first detection module and the second detection module, thereby reducing the parameter calculation process and reducing energy consumption.

[0094] Step 103: Generate a sleep report corresponding to the first set of vibration parameters and the second set of vibration parameters according to the quantity.

[0095] It should be understood that within the preset sleep duration, there can be one user or multiple users on the smart bed. When it is determined that the number of users on the smart bed is one, a sleep report is generated based on the first vibration parameter and the second vibration parameter. When it is determined that the number of users on the smart bed is at least two, a first sleep report is generated based on the first vibration parameter, and a second sleep report is generated based on the second vibration parameter.

[0096] In specific applications, for ease of understanding, an example is given here. In the first case, there is only one user A on the smart bed within the preset sleep duration. If the first vibration parameter collected by the first detection module meets the continuous condition within the preset sleep duration, the second detection module has not collected the vibration parameter of user A. When generating a sleep report for user A, only a sleep report corresponding to the first vibration parameter collected by the first detection module on the left side of the smart bed is generated; if the second vibration parameter collected by the second detection module meets the continuous condition within the preset sleep duration, the first detection module has not collected the vibration parameter of user A. When generating a sleep report for user A, only a sleep report corresponding to the second vibration parameter collected by the second detection module on the right side of the smart bed is generated; if both the first detection module and the second detection module detect the vibration parameter of user A, the first vibration parameter of the first detection module within the preset sleep duration and the second vibration parameter detected by the second detection module are generated simultaneously and merged into a sleep report as the sleep report for user A.

[0097] In the second case, user B and user C are on the smart bed within the preset sleep duration, where user B is located on the left side of the smart bed and user C is located on the right side of the smart bed. The first detection module collects the vibration parameters of user B and the second detection module collects the vibration parameters of user C. A sleep report is generated based on the collected vibration parameters of user B, and another sleep report is generated based on the collected vibration parameters of user C.

[0098] In a specific implementation, the generated sleep report can be viewed on the screen of a user's mobile phone that communicates with the smart bed. When it is determined that the number of smart beds is at least two, a first sleep report and a second sleep report are generated. When viewing the first sleep report and the second sleep report, the mobile phone will display the left and right sides of the smart bed. The user can slide the mobile phone screen left and right to view the first sleep report and the second sleep report generated on the left and right sides of the smart bed. This embodiment generates the first sleep report and the second sleep report when it is determined that the number of smart beds is at least two. When the user views the sleep report, the sleep report corresponding to the user on the left side of the smart bed and the sleep report corresponding to the user on the right side of the smart bed can be viewed by sliding the mobile phone screen according to the left and right sides of the smart bed displayed on the mobile phone screen, so that the user can view the sleep report corresponding to the user on the left side of the smart bed and the sleep report corresponding to the user on the right side of the smart bed, so as to facilitate accurate viewing.

[0099] In an embodiment of the present application, a first set of vibration parameters collected by the first detection module within a preset sleep duration and a second set of vibration parameters collected by the second detection module are obtained; based on the first set of vibration parameters and the second set of vibration parameters, the number of users on the smart bed within the preset sleep duration is determined; according to the number, a sleep report corresponding to the first set of vibration parameters and the second set of vibration parameters is generated. This embodiment determines the number of users on the smart bed based on the first set of vibration parameters and the second set of vibration parameters within the preset sleep duration, and achieves accurate identification of the number of people using the smart bed; and based on the number of users on the smart bed, a sleep report for users to obtain sleep health is adaptively generated, which has a high degree of intelligence and a good user experience.

[0100] like Figure 3 As shown, this embodiment provides a smart bed, including:

[0101] A bed 301, and a first detection module 302 and a second detection module 303 laid on the bed 301;

[0102] The bed body 301 is used to obtain a first set of vibration parameters collected by the first detection module 301 within a preset sleep duration, and a second set of vibration parameters collected by the second detection module 303; based on the first set of vibration parameters and the second set of vibration parameters, the number of users located on the smart bed within the preset sleep duration is determined; and according to the number, a sleep report corresponding to the first set of vibration parameters and the second set of vibration parameters is generated.

[0103] In order to facilitate understanding of a method for generating a sleep report provided in an embodiment of the present application, Figure 4 Further explanation.

[0104] The sleep monitoring box based on piezoelectric film sensors has a laminated structure that is seamlessly connected to the mattress on the smart bed. When the user is on the smart bed, the sleep detection box will detect the user's heartbeat and breathing in real time, and transmit the detected heartbeat signal and breathing signal to the chip for preprocessing of the heartbeat signal and breathing signal to obtain the user's heartbeat parameters and breathing parameters, and then generate a sleep report for the user on the smart bed through the sleep staging algorithm based on the heartbeat parameters and breathing parameters obtained by chip signal preprocessing. The user can display the sleep report through the APP corresponding to the smart bed.

[0105] Based on the same concept, an apparatus for generating a sleep report is provided in the embodiment of the present application. The specific implementation of the apparatus can be found in the description of the method embodiment part, and the repetitive parts will not be repeated. Figure 5 As shown, it is applied to a smart bed, and a first detection module and a second detection module are provided on the smart bed. The first detection module is used to detect the vibration parameters of the human body located on the left half of the smart bed, and the second detection module is used to detect the vibration parameters of the human body located on the right half of the smart bed. The device mainly includes:

[0106] The acquisition module 501 is used to acquire a first group of vibration parameters collected by the first detection module within a preset sleep duration, and a second group of vibration parameters collected by the second detection module.

[0107] The determination module 502 is used to determine the number of users on the smart bed within a preset sleep duration based on the first set of vibration parameters and the second set of vibration parameters.

[0108] The generating module 503 is used to generate a sleep report corresponding to the first group of vibration parameters and the second group of vibration parameters according to the quantity.

[0109] In a specific embodiment, the determination module 502 is used to:

[0110] Determine whether all the parameters in the first group of vibration parameters are the vibration parameters of the user, and whether all the parameters in the second group of vibration parameters are the vibration parameters of the user; if so, determine that the number of users located on the smart bed within the preset sleep duration is at least two; otherwise, obtain a first group of target parameters belonging to the user from the first group of vibration parameters, and obtain a second group of target parameters belonging to the user from the second group of vibration parameters, calculate the difference between the first group of target parameters and the second group of target parameters, and determine the number of users located on the smart bed within the preset sleep duration based on the difference; when the difference is greater than a difference threshold, determine that the number is at least two, and when the difference is not greater than the difference threshold, determine that the number is one.

[0111] In a specific embodiment, the determination module 502 is used to:

[0112] It is determined whether there are invalid vibration parameters in the first group of vibration parameters, and the parameter values ​​of the invalid vibration parameters are preset values; when there are no invalid vibration parameters in the first group of vibration parameters, it is determined that all the parameters in the first group of vibration parameters are vibration parameters of the user.

[0113] In a specific embodiment, the determination module 502 is used to:

[0114] calculating a first mean of the first set of target parameters, and calculating a second mean of the second set of target parameters;

[0115] Calculate the difference between the first mean and the second mean;

[0116] The difference between the first mean and the second mean is taken as the difference between the first set of target parameters and the second set of target parameters.

[0117] In a specific embodiment, the determination module 502 is used to:

[0118] Calculating the difference between the first set of target parameters and the second set of target parameters, including: calculating the breathing difference between the first set of breathing parameters and the second set of breathing parameters, and calculating the heartbeat difference between the first set of heartbeat parameters and the second set of heartbeat parameters; using the breathing difference and the heartbeat difference as the difference between the first set of target parameters and the second set of target parameters.

[0119] In a specific embodiment, the generating module 503 is used to:

[0120] When it is determined that the number is one, generating a sleep report based on the first set of vibration parameters and the second set of vibration parameters; using the sleep report as the sleep report corresponding to the first set of vibration parameters and the second set of vibration parameters;

[0121] When the number is determined to be at least two, a first sleep report is generated based on the first set of vibration parameters, and a second sleep report is generated based on the second set of vibration parameters; the first sleep report and the second sleep report are used as sleep reports corresponding to the first vibration parameters and the second vibration parameters.

[0122] In a specific embodiment, the collection moments of two adjacent target parameters in the first group of target parameters are separated by one collection cycle; the collection moments of two adjacent target parameters in the second group of target parameters are separated by one collection cycle; the device is also used to: before calculating the difference between the first group of target parameters and the second group of target parameters, determine that the number of vibration parameters in the first group of target parameters is greater than a number threshold, and determine that the number of vibration parameters in the second group of target parameters is greater than a number threshold.

[0123] Based on the same concept, an electronic device is also provided in the embodiment of the present application, such as Figure 6 As shown, the electronic device mainly includes: a processor 601, a memory 602 and a communication bus 603, wherein the processor 601 and the memory 602 communicate with each other through the communication bus 603. The memory 602 stores a program that can be executed by the processor 601, and the processor 601 executes the program stored in the memory 602 to implement the following steps:

[0124] Acquire a first set of vibration parameters collected by the first detection module within a preset sleep duration, and a second set of vibration parameters collected by the second detection module; determine the number of users on the smart bed within the preset sleep duration based on the first set of vibration parameters and the second set of vibration parameters; and generate a sleep report corresponding to the first set of vibration parameters and the second set of vibration parameters according to the number.

[0125] The communication bus 603 mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 603 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 6 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0126] The memory 602 may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the processor 601.

[0127] The above-mentioned processor 601 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc., and can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.

[0128] In another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed on a computer, the computer executes a method for generating a sleep report described in the above embodiment.

[0129] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instruction is loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instruction can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instruction is transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, a data center, etc. that contains one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape, etc.), an optical medium (e.g., a DVD) or a semiconductor medium (e.g., a solid-state hard disk), etc.

[0130] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0131] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.

Claims

1. A method for generating a sleep report, It is characterized in that Applied to a smart bed, the smart bed is provided with a first detection module and a second detection module, the first detection module is used to detect the vibration parameters of a human body located in the left half of the smart bed, and the second detection module is used to detect the vibration parameters of a human body located in the right half of the smart bed; The method comprises: Acquire a first group of vibration parameters collected by the first detection module within a preset sleep duration, and a second group of vibration parameters collected by the second detection module; Determining the number of users located on the smart bed within the preset sleep duration based on the first set of vibration parameters and the second set of vibration parameters; generating a sleep report corresponding to the first set of vibration parameters and the second set of vibration parameters according to the number; The method further includes determining whether there is a user on the smart bed in the following manner: If it is determined that the number of the first group of vibration parameters collected by the first detection module is greater than the number threshold, and the collection times of two adjacent vibration parameters in the first group of vibration parameters differ by one collection cycle, it is determined that a user is located in the left half of the smart bed within the preset sleep duration; If it is determined that the number of the second group of vibration parameters collected by the second detection module is greater than the number threshold, and the collection time of two adjacent vibration parameters in the second group of vibration parameters differs by one collection cycle, it is determined that a user is located in the right half of the smart bed within the preset sleep duration; The method further includes determining whether the first set of vibration parameters or the second set of vibration parameters do not satisfy the continuity condition by: Obtaining a vibration parameter whose value is not a preset value in the first group of vibration parameters, wherein the parameter corresponding to the preset value is not a vibration parameter of the user; obtaining a collection time of the vibration parameter whose value is not the preset value; determining a collection time of the vibration parameter whose value is not the preset value based on the collection time; judging whether the first group of vibration parameters does not meet a continuous condition based on the collection time and the preset sleep time; and determining that the first group of vibration parameters does not meet the continuous condition when the collection time is not the preset sleep time; Obtaining a vibration parameter whose value is not a preset value in the second group of vibration parameters, wherein the parameter corresponding to the preset value is not a vibration parameter of the user; obtaining a collection time of the vibration parameter whose value is not the preset value; determining a collection time of the vibration parameter whose value is not the preset value based on the collection time; judging whether the second group of vibration parameters does not meet the continuity condition based on the collection time and the preset sleep time; and determining that the second group of vibration parameters does not meet the continuity condition when the collection time is not the preset sleep time; The determining, based on the first set of vibration parameters and the second set of vibration parameters, the number of users located on the smart bed within the preset sleep duration specifically includes: If it is determined that the first group of vibration parameters does not satisfy the continuity condition, and the second group of vibration parameters does not satisfy the continuity condition, the first group of target parameters is obtained from the first group of vibration parameters, and the second group of target parameters is obtained from the second group of vibration parameters; the difference between the first group of target parameters and the second group of target parameters is calculated; when it is determined that the difference is greater than the difference threshold, it is determined that the number of users located on the smart bed within the preset sleep duration is at least two; when it is determined that the difference is not greater than the difference threshold, it is determined that the number of users located on the smart bed within the preset sleep duration is one.

2. The method according to claim 1, It is characterized in that Determining the number of users on the smart bed within the preset sleep duration based on the first set of vibration parameters and the second set of vibration parameters includes: determining whether all parameters in the first group of vibration parameters are vibration parameters of the user, and whether all parameters in the second group of vibration parameters are vibration parameters of the user; If so, determining that the number of users located on the smart bed within the preset sleep duration is at least two; Otherwise, obtaining a first group of target parameters belonging to the user from the first group of vibration parameters, and obtaining a second group of target parameters belonging to the user from the second group of vibration parameters, calculating a difference between the first group of target parameters and the second group of target parameters, and determining the number of users located on the smart bed within the preset sleep duration based on the difference; When the difference is greater than a difference threshold, the number is determined to be at least two, and when the difference is not greater than the difference threshold, the number is determined to be one.

3. The method according to claim 2, It is characterized in that Determining whether all parameters in the first group of vibration parameters are vibration parameters of the user includes: Determining whether there is an invalid vibration parameter in the first group of vibration parameters, wherein the parameter value of the invalid vibration parameter is a preset value; When the invalid vibration parameter does not exist in the first group of vibration parameters, it is determined that all parameters in the first group of vibration parameters are vibration parameters of the user.

4. The method according to claim 2, It is characterized in that Calculating a difference between the first set of target parameters and the second set of target parameters comprises: calculating a first mean of the first set of target parameters, and calculating a second mean of the second set of target parameters; Calculating a difference between the first mean and the second mean; The difference between the first mean and the second mean is used as the difference between the first set of target parameters and the second set of target parameters.

5. The method according to claim 2, It is characterized in that The first group of target parameters includes a first group of breathing parameters and a first group of heartbeat parameters, and the second group of target parameters includes a second group of breathing parameters and a second group of heartbeat parameters; Calculating a difference between the first set of target parameters and the second set of target parameters comprises: Calculating a breathing difference between the first set of breathing parameters and the second set of breathing parameters, and calculating a heartbeat difference between the first set of heartbeat parameters and the second set of heartbeat parameters; The breathing difference and the heartbeat difference are used as the difference between the first set of target parameters and the second set of target parameters.

6. The method according to claim 1, It is characterized in that Generating a sleep report corresponding to the first set of vibration parameters and the second set of vibration parameters according to the quantity, comprising: When it is determined that the number is one, generating a sleep report based on the first set of vibration parameters and the second set of vibration parameters; using the sleep report as the sleep report corresponding to the first set of vibration parameters and the second set of vibration parameters; When it is determined that the number is at least two, a first sleep report is generated based on the first set of vibration parameters, and a second sleep report is generated based on the second set of vibration parameters; the first sleep report and the second sleep report are used as sleep reports corresponding to the first set of vibration parameters and the second set of vibration parameters.

7. The method according to claim 2, It is characterized in that The collection time interval between two adjacent target parameters in the first group of target parameters is one collection cycle; the collection time interval between two adjacent target parameters in the second group of target parameters is one collection cycle; Before calculating the difference between the first set of target parameters and the second set of target parameters, the method further includes: It is determined that the number of vibration parameters in the first set of target parameters is greater than a number threshold, and it is determined that the number of vibration parameters in the second set of target parameters is greater than the number threshold.

8. A smart bed, It is characterized in that include: A bed, and a first detection module and a second detection module laid on the bed; The bed is used to execute the method for generating a sleep report according to any one of claims 1 to 7.

9. A device for generating a sleep report, It is characterized in that The device is applied to the smart bed as claimed in claim 8; The device comprises: An acquisition module, used to acquire a first group of vibration parameters collected by the first detection module within a preset sleep duration, and a second group of vibration parameters collected by the second detection module; a determination module, configured to determine the number of users located on the smart bed within the preset sleep duration based on the first set of vibration parameters and the second set of vibration parameters; A generating module is used to generate a sleep report corresponding to the first set of vibration parameters and the second set of vibration parameters according to the quantity.

10. An electronic device, It is characterized in that include: A processor, a memory and a communication bus, wherein the processor and the memory communicate with each other via the communication bus; The memory is used to store computer programs; The processor is used to execute the program stored in the memory to implement the method for generating a sleep report according to any one of claims 1 to 7.

11. A computer-readable storage medium storing a computer program, It is characterized in that When the computer program is executed by a processor, the method for generating a sleep report according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Sleeping signal treatment method and device

    CN107951470A

  • Sleep monitoring method and sleep monitoring device

    CN113907716A