Sleep monitoring method, sleep monitoring equipment and storage medium
By arranging multiple sensors in the mattress, and using signal strength and separation distance to determine the target sensor, sleep monitoring without specific sleeping positions or wearing equipment is achieved, which solves the problems of wearing burden and reduced sleep naturalness of existing equipment during use. , improving the accuracy and user experience of sleep monitoring.
Patent Information
- Application Number
- CN202410857013.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-09-06
AI Technical Summary
Existing sleep monitoring equipment has problems such as wearing burden, discomfort and reduced naturalness of sleep during use. In particular, wearable devices and devices combined with bedding are difficult to provide convenient, natural and accurate sleep monitoring.
Multiple sensors are installed in the mattress, and the target sensor is determined by sorting the signal strength, which is used to collect the user's sleep monitoring data, and determine the user's identity based on the signal strength difference and separation distance, achieving sleep without the need for specific sleeping positions or wearing equipment. monitor.
It improves the accuracy and user experience of sleep monitoring, provides a more convenient and natural sleep monitoring method, and reduces user operation difficulty and cost.
Smart Images

Figure CN118592901A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of sleep monitoring, and in particular to a sleep monitoring method, a sleep monitoring device and a storage medium. Background Art
[0002] In today's rapidly developing society, sleep problems have become a particularly prominent and concerned issue in the field of public health. The quality of sleep is directly related to people's physical and mental health and the quality of daily life. In the process of in-depth research and solving sleep health problems, detailed and accurate sleep monitoring data (such as heart rate) has become a crucial basis for analysis. The acquisition of this data mainly depends on advanced sleep monitoring equipment.
[0003] In the current market, sleep monitoring devices can be roughly divided into two categories: one is wearable devices, and the other is devices that are closely integrated with bedding (such as smart mattresses). However, both types of devices have limitations that cannot be ignored in practical applications. Specifically, wearable devices require users to fix the device to a specific part of the body, such as the wrist or chest, before going to sleep, which may not only increase the user's wearing burden, but also cause users to feel uncomfortable on hot nights. In addition, such devices usually require regular charging and maintenance, which undoubtedly increases the user's operating difficulty and cost.
[0004] Although the devices combined with bedding do not need to be worn by users, they often require users to adopt a specific sleeping posture during sleep to ensure that the user's sleep monitoring data can be accurately monitored. However, this limitation may affect the naturalness and comfort of the user's sleep, thereby reducing the user experience.
[0005] Therefore, how to provide more convenient, natural, comfortable and accurate sleep monitoring has become one of the technical challenges that need to be overcome urgently in this field.
[0006] The above information is presented as background information only to assist with understanding the present disclosure and no determination or admission is made as to whether any of the above may be used as prior art with respect to the present disclosure. Summary of the invention
[0007] The present invention provides a sleep monitoring method, a sleep monitoring device and a storage medium to solve the problems existing in the prior art.
[0008] To achieve the above object, the present invention provides the following technical solutions:
[0009] In a first aspect, the present invention provides a sleep monitoring method, which is applied to a sleep monitoring device, wherein the sleep monitoring device includes a mattress and a plurality of sensors arranged at different positions in the mattress, and the method includes:
[0010] Acquire monitoring data collected by each of the sensors;
[0011] Sorting the plurality of monitoring data in descending order of signal strength to obtain a sorting result;
[0012] Determine the sensor corresponding to the monitoring data ranked first in the sorting result as the target sensor;
[0013] The monitoring data collected by the target sensor is used as sleep monitoring data of a user lying on the mattress.
[0014] Furthermore, in the sleep monitoring method, after the step of determining the sensor corresponding to the monitoring data ranked first in the sorting result as the target sensor, the method further includes:
[0015] The position of the target sensor is determined as the position of the user's heart, thereby determining the user's sleeping posture.
[0016] Furthermore, in the sleep monitoring method, after the step of sorting the plurality of monitoring data in descending order of signal strength to obtain a sorting result, the method further includes:
[0017] Calculate the difference between the signal strength of the first-ranked monitoring data and the signal strength of the second-ranked monitoring data in the ranking result to obtain a signal strength difference;
[0018] Determine whether the signal strength difference is less than a preset difference threshold; if not, perform the step of determining the sensor corresponding to the first-ranked monitoring data in the sorting result as the target sensor; if so, calculate the interval distance between the sensor corresponding to the first-ranked monitoring data in the sorting result and the sensor corresponding to the second-ranked monitoring data;
[0019] Determine whether the interval distance is less than a preset distance threshold; if so, determine that the monitoring data detected by the two sensors are from the same user, and then execute the step of determining the sensor corresponding to the monitoring data ranked first in the sorting result as the target sensor; if not, determine that the monitoring data detected by the two sensors are from two different users, and determine the sensor corresponding to the monitoring data ranked second in the sorting result as the target sensor, and then execute the step of determining the sensor corresponding to the monitoring data ranked first in the sorting result as the target sensor.
[0020] Furthermore, in the sleep monitoring method, after the step of using the monitoring data collected by the target sensor as sleep monitoring data of the user lying on the mattress, the method further includes:
[0021] Acquire monitoring data collected by each of the sensors;
[0022] Determine whether the number of monitoring data having signal strength greater than a preset strength threshold is greater than a preset number threshold; if so, determine that the user's sleeping position has changed; if not, determine that the user is in normal sleep.
[0023] Furthermore, in the sleep monitoring method, after the step of acquiring the monitoring data collected by each of the sensors, the method further includes:
[0024] Amplify the signal strengths of a number of monitoring data.
[0025] In a second aspect, the present invention provides a sleep monitoring device, the device comprising:
[0026] Mattress;
[0027] A plurality of sensors, wherein the plurality of sensors are arranged in the mattress and are used to collect sleep monitoring data of a user lying on the mattress;
[0028] a memory storing a computer program;
[0029] A processor, wherein when the processor executes the computer program, the following steps are implemented:
[0030] Acquire monitoring data collected by each of the sensors;
[0031] Sorting the plurality of monitoring data in descending order of signal strength to obtain a sorting result;
[0032] Determine the sensor corresponding to the monitoring data ranked first in the sorting result as the target sensor;
[0033] The monitoring data collected by the target sensor is used as sleep monitoring data of a user lying on the mattress.
[0034] Furthermore, in the sleep monitoring device, the processor is further configured to execute the computer program to implement the following steps:
[0035] After the step of determining the sensor corresponding to the monitoring data ranked first in the sorting result as the target sensor, the position of the target sensor is determined as the position of the user's heart, thereby determining the user's sleeping position.
[0036] Furthermore, in the sleep monitoring device, the processor is further configured to execute the computer program to implement the following steps:
[0037] After the step of sorting the plurality of monitoring data in descending order of signal strength to obtain a sorting result, performing a difference calculation between the signal strength of the first-ranked monitoring data and the signal strength of the second-ranked monitoring data in the sorting result to obtain a signal strength difference;
[0038] Determine whether the signal strength difference is less than a preset difference threshold; if not, perform the step of determining the sensor corresponding to the first-ranked monitoring data in the sorting result as the target sensor; if so, calculate the interval distance between the sensor corresponding to the first-ranked monitoring data in the sorting result and the sensor corresponding to the second-ranked monitoring data;
[0039] Determine whether the interval distance is less than a preset distance threshold; if so, determine that the monitoring data detected by the two sensors are from the same user, and then execute the step of determining the sensor corresponding to the monitoring data ranked first in the sorting result as the target sensor; if not, determine that the monitoring data detected by the two sensors are from two different users, and determine the sensor corresponding to the monitoring data ranked second in the sorting result as the target sensor, and then execute the step of determining the sensor corresponding to the monitoring data ranked first in the sorting result as the target sensor.
[0040] Furthermore, in the sleep monitoring device, the processor is further configured to execute the computer program to implement the following steps:
[0041] After the step of using the monitoring data collected by the target sensor as the sleep monitoring data of the user lying on the mattress, acquiring the monitoring data collected by each of the sensors;
[0042] Determine whether the number of monitoring data having signal strength greater than a preset strength threshold is greater than a preset number threshold; if so, determine that the user's sleeping position has changed; if not, determine that the user is in normal sleep.
[0043] Furthermore, in the sleep monitoring device, the processor is further configured to execute the computer program to implement the following steps:
[0044] After the step of acquiring the monitoring data collected by each of the sensors, the signal strengths of a plurality of the monitoring data are amplified.
[0045] In a third aspect, the present invention provides a storage medium comprising computer executable instructions, wherein the computer executable instructions are executed by a computer processor to implement the sleep monitoring method provided in the first aspect above.
[0046] Compared with the prior art, the present invention has the following beneficial effects:
[0047] The present invention provides a sleep monitoring method, sleep monitoring device and storage medium. By utilizing the sleep monitoring device composed of a mattress and a plurality of sensors arranged at different positions in the mattress, there is no need to require the user to adopt a specific sleeping posture or wear additional equipment. Instead, the method only requires analyzing the signal strengths of a plurality of monitoring data, selecting the sensor corresponding to the monitoring data with the highest signal strength as the target sensor, and using the monitoring data collected by the sensor as the sleep monitoring data of the user. This ensures the accuracy of the sleep monitoring data of the user, thereby providing the user with a more convenient and natural sleep monitoring experience and having great market competitiveness.
[0048] The present invention has other features and advantages, which will be apparent from or will be described in detail in the accompanying drawings and the following detailed description incorporated herein, which together serve to explain the specific principles of the invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] 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, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0050] Figure 1 is a flowchart of a sleep monitoring method provided in Embodiment 1 of the present invention;
[0051] Figure 2 is a structural schematic diagram of the sleep monitoring device mentioned in the first embodiment of the present invention;
[0052] Figure 3 is a flowchart of a sleep monitoring method provided in Embodiment 2 of the present invention;
[0053] Figure 4 is a flowchart of a sleep monitoring method provided in Embodiment 3 of the present invention;
[0054] Figure 5 is a flowchart of a sleep monitoring method provided by Embodiment 4 of the present invention;
[0055] Figure 6 is a flowchart of a sleep monitoring method provided in Embodiment 5 of the present invention;
[0056] Figure 7 It is a structural schematic diagram of a sleep monitoring device provided in Embodiment 6 of the present invention.
[0057] Reference numerals:
[0058] Mattress 1, sensor 2, memory 3, processor 4. DETAILED DESCRIPTION
[0059] In order to explain in detail the possible application scenarios, technical principles, specific schemes that can be implemented, and the purposes and effects that can be achieved, the following is a detailed description of the specific embodiments listed in conjunction with the accompanying drawings. The embodiments described herein are only used to more clearly illustrate the technical solutions of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.
[0060] Reference to "embodiment" herein means that the specific features, structures or characteristics described in conjunction with the embodiment may be included in at least one embodiment of the present application. The term "embodiment" appearing in various places in the specification does not necessarily refer to the same embodiment, nor does it particularly limit its independence or association with other embodiments. In principle, in the present application, as long as there is no technical contradiction or conflict, the various technical features mentioned in the embodiments can be combined in any way to form a corresponding implementable technical solution.
[0061] Unless otherwise defined, the technical terms used in this document have the same meanings as those generally understood by those skilled in the art to which this application belongs; the use of relevant terms in this document is only for describing specific embodiments and is not intended to limit this application.
[0062] In the description of this application, the term "and / or" is an expression used to describe the logical relationship between objects, indicating that three relationships may exist, for example, A and / or B, which means: A exists, B exists, and A and B exist at the same time. In addition, the character " / " in this article generally indicates that the objects before and after are in an "or" logical relationship.
[0063] In the present application, terms such as “first” and “second” are merely used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship of quantity, priority or sequence between these entities or operations.
[0064] Without further limitations, in this application, the words "include", "comprises", "has" or other similar expressions used in the sentences are intended to cover non-exclusive inclusion. These expressions do not exclude the presence of additional elements in the process, method or product including the elements, so that the process, method or product including a series of elements may include not only those limited elements, but also other elements not explicitly listed, or also include elements inherent to such process, method or product.
[0065] Similar to the understanding in the Examination Guidelines, in this application, expressions such as "greater than", "less than", "exceed" and the like are understood to exclude the number itself; expressions such as "above", "below", "within" and the like are understood to include the number itself. In addition, in the description of the embodiments of this application, "multiple" means more than two (including two), and similar expressions related to "multiple" are also understood in this way, such as "multiple groups", "multiple times", etc., unless otherwise clearly and specifically limited.
[0066] In the description of the embodiments of the present application, space-related expressions used, such as "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "vertical", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc., indicate the orientation or position relationship based on the orientation or position relationship shown in the specific embodiments or drawings, and are only for the convenience of describing the specific embodiments of the present application or facilitating the reader's understanding, and do not indicate or imply that the referred device or component must have a specific position, a specific orientation, or be constructed or operated in a specific orientation, and therefore cannot be understood as a limitation on the embodiments of the present application.
[0067] Unless otherwise expressly specified or limited, in the description of the embodiments of the present application, the terms such as "install", "connect", "connect", "fix", "set", etc. used should be understood in a broad sense. For example, the "connection" can be a fixed connection, a detachable connection, or an integrated setting; it can be a mechanical connection, an electrical connection, or a communication connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium; it can be the internal connection of two elements or the interaction relationship between two elements. For technicians in the technical field to which the present application belongs, the specific meanings of the above terms in the embodiments of the present application can be understood according to the specific circumstances.
[0068] Embodiment 1
[0069] Please refer to Figure 1 , Figure 1 The flowchart of a sleep monitoring method provided in the first embodiment of the present invention is applicable to a scenario of monitoring the sleep of a user. The method is applied to a sleep monitoring device, which includes a mattress 1 and a plurality of sensors 2 arranged at different positions in the mattress 1, such as Figure 2 The method specifically comprises the following steps:
[0070] S101. Acquire monitoring data collected by each sensor.
[0071] It should be noted that, since a number of sensors are arranged at different positions in the mattress, these sensors can capture various physiological and behavioral information of the user during sleep in a comprehensive and real-time manner regardless of the sleeping position the user adopts.
[0072] The monitoring data may include, but are not limited to, the user's heart rate, respiratory rate, body movement frequency, and other key physiological parameters, which are important indicators that are indispensable for evaluating the user's sleep quality. This embodiment takes the heart rate as an example to explain in detail how to implement the user's sleep monitoring based on the monitoring data collected by the sensor.
[0073] Each sensor collects data independently and transmits the data to the same processor for subsequent signal processing.
[0074] S102: Sort the plurality of monitoring data in descending order of signal strength to obtain a sorting result.
[0075] It should be noted that this step is to sort the signal strength of all collected monitoring data, arranging them from high to low, to form an accurate sorting result.
[0076] The reason for sorting the signal strengths of several monitoring data is that during normal sleep, the user's heart position is constant, and relative to other parts of the body, the signal strength detected by the sensor corresponding to the heart position is usually the strongest. This is because the bioelectric signals (such as electrocardiogram signals) generated by the heart when it beats are the most direct and have the highest intensity. Therefore, by comparing the signal strengths of the monitoring data collected by different sensors, it is possible to roughly determine which sensor is closest to the user's heart position, and the user's heart rate is an important indicator for evaluating the user's sleep quality, which can be used as the user's sleep monitoring data, thereby facilitating the subsequent screening of the sensor closest to the user's heart position as the target sensor.
[0077] Understandably, there are many ways to sort the monitoring data by signal strength from highest to lowest. Here are some common sorting methods:
[0078] Bubble sort: It repeatedly traverses the sequence to be sorted, compares the size of each pair of adjacent elements, and swaps their positions if necessary.
[0079] Selection sort: Find the largest (or smallest) element from the unsorted sequence and store it at the beginning of the sorted sequence. Then, find the largest (or smallest) element from the unsorted sequence and place it at the end of the sorted sequence.
[0080] Insertion sort: Build an ordered sequence. For unsorted data, scan from back to front in the sorted sequence, find the corresponding position and insert it.
[0081] S103: Determine the sensor corresponding to the monitoring data ranked first in the sorting result as the target sensor.
[0082] It should be noted that after sorting the monitoring data collected by several sensors from high to low according to signal strength, a crucial step will be entered, that is, accurately determining the target sensor. The core of this step is to identify the sensor with the strongest signal strength and regard it as the target sensor.
[0083] As mentioned above, the reason why this embodiment attaches so much importance to signal strength is that it is directly related to the location of the sensor and the accuracy of its collected data. In the scenario of sleep monitoring, since the position of the user's heart is constant throughout the user's body, and the bioelectric signals (such as electrocardiogram signals) generated by its beating have extremely high signal strength, the sensor with the strongest signal strength is often located near the user's heart. The monitoring data (i.e., heart rate) collected by the sensor at this location will have unparalleled accuracy and reliability compared to sensors at other locations.
[0084] Based on such considerations, the present embodiment determines the sensor corresponding to the monitoring data with the strongest signal strength as the target sensor. Behind this selection is the strict pursuit of data accuracy and reliability, and also to ensure that the subsequent sleep analysis can be performed based on the most accurate data.
[0085] S104: Using the monitoring data collected by the target sensor as sleep monitoring data of the user lying on the mattress.
[0086] It should be noted that after accurately identifying and determining the target sensor, the next crucial step is to formally establish the monitoring data collected by the target sensor as the sleep monitoring data of the user lying on the mattress. This step is not only a summary of the previous steps, but also lays the foundation for subsequent analysis.
[0087] First of all, it should be emphasized that once the target sensor is determined, the data collected by it becomes the core basis for evaluating the user's sleep quality in this embodiment. The user's heart rate is an important indicator for evaluating sleep quality and has an irreplaceable position. By analyzing these heart rate data, we can gain an in-depth understanding of the user's sleep condition, including key information such as whether there is sleep disorder and whether the heart rate is abnormal. This information not only helps us provide users with more personalized sleep improvement suggestions, but also provides strong support for the user's own health management.
[0088] In addition, this embodiment can further analyze and mine the data collected by the target sensor to discover more valuable sleep information. For example, by analyzing the changing pattern of heart rate, key indicators such as the user's sleep cycle and deep sleep time can be understood, thereby providing the user with a more comprehensive and detailed sleep analysis.
[0089] The sleep monitoring method provided in this embodiment is unique in that it cleverly combines a mattress with multiple sensors distributed at different positions in the mattress to build a sleep monitoring system that does not require the user to have a specific sleeping position or wear additional equipment. This innovative design not only greatly simplifies the user's operation process, but also achieves accurate monitoring of sleep quality in an intelligent way.
[0090] The core of this method is to analyze the signal strength of the monitoring data collected by multiple sensors. The system can automatically determine the sensor with the strongest signal strength and establish it as the target sensor. Since this sensor is often located near the user's heart, the heart rate data it collects is therefore extremely accurate and reliable. This mechanism ensures the accuracy and effectiveness of subsequent analysis.
[0091] In addition, this method also makes full use of the data collected by the target sensor as a benchmark for evaluating the user's sleep quality. These data not only include the user's heart rate information, but may also include key physiological parameters such as breathing rate and body movement rate, providing rich data support for a comprehensive analysis of the user's sleep status.
[0092] It is worth mentioning that the sleep monitoring method of this embodiment not only brings a more convenient and natural experience to users, but also significantly improves the accuracy and reliability of sleep monitoring. Users do not need to worry about affecting their sleep quality due to improper sleeping posture or discomfort in wearing the device. At the same time, the system can monitor the user's sleep status in real time and accurately, and provide users with personalized sleep improvement suggestions.
[0093] In summary, the sleep monitoring method provided in this embodiment, with its unique design concept and advanced technical means, brings unprecedented convenience and comfort to users, and also opens up a new direction for the development of the sleep monitoring field. This innovative method will undoubtedly show great competitiveness and broad application prospects in the market.
[0094] Although the terms such as sensor, monitoring data, and sequencing are used more frequently in this application, the possibility of using other terms is not excluded. These terms are used only to more conveniently describe and explain the essence of the present invention; interpreting them as any additional restrictions is contrary to the spirit of the present invention.
[0095] Embodiment 2
[0096] Please refer to Figure 3 The sleep monitoring method provided in the second embodiment of the present invention is based on the technical solution provided in the first embodiment, and after step S103 "determining the sensor corresponding to the monitoring data ranked first in the sorting result as the target sensor", the method is further optimized. The explanations of the terms that are the same or corresponding to the above embodiments are not repeated here. Specifically, the method provided in this embodiment may also include the following steps:
[0097] The position of the target sensor is determined as the position of the user's heart, thereby determining the user's sleeping posture.
[0098] Based on the above optimization, Figure 3 As shown, a sleep monitoring method provided in this embodiment may specifically include the following steps:
[0099] S201: Acquire monitoring data collected by each sensor.
[0100] S202: Sort the plurality of monitoring data in descending order of signal strength to obtain a sorting result.
[0101] S203: Determine the sensor corresponding to the monitoring data ranked first in the sorting result as the target sensor.
[0102] S204: Using the monitoring data collected by the target sensor as sleep monitoring data of the user lying on the mattress.
[0103] S205: Determine the position of the target sensor as the position of the user's heart, thereby determining the user's sleeping position.
[0104] It should be noted that by knowing the position of the target sensor in the mattress, the system can roughly infer the position of the user's heart. Since the distribution of sensors in the mattress is known, the relative position of the user's heart can be estimated by the position of the target sensor.
[0105] Furthermore, by combining the shape of the mattress, the user's heart position, and the monitoring data of other sensors, the user's sleeping position can be inferred. For example, it can be determined where the user's upper body is and where the lower body is.
[0106] This optimization not only enriches the data dimension of sleep monitoring, but also provides users with a more personalized and accurate service experience. By combining the user's heart rate and sleeping position information, the system can provide users with a more comprehensive sleep analysis and improvement suggestions.
[0107] It is understandable that step S205 follows step S203. Although it is the subsequent execution step of step S203 in the logical flow, in actual application, the execution of this step does not need to wait for step S204 to be completely completed. The system can perform position analysis immediately after determining the target sensor, so as to quickly infer the user's heart position and possible sleeping position.
[0108] In summary, the sleep monitoring method provided in this embodiment, with its unique design concept and advanced technical means, brings unprecedented convenience and comfort to users, and also opens up a new direction for the development of the sleep monitoring field. This innovative method will undoubtedly show great competitiveness and broad application prospects in the market.
[0109] Embodiment 3
[0110] Please refer to Figure 4 The sleep monitoring method provided in the third embodiment of the present invention is based on the technical solution provided in the first embodiment, and after step S102 "sorting the plurality of monitoring data in descending order of signal strength to obtain a sorting result", the method is further optimized. The explanations of the terms identical or corresponding to the above embodiments are not repeated here. Specifically, the method provided in this embodiment may also include the following steps:
[0111] Calculate the difference between the signal strength of the first-ranked monitoring data and the signal strength of the second-ranked monitoring data in the ranking result to obtain a signal strength difference;
[0112] Determine whether the signal strength difference is less than a preset difference threshold; if not, perform the step of determining the sensor corresponding to the first-ranked monitoring data in the sorting result as the target sensor; if so, calculate the interval distance between the sensor corresponding to the first-ranked monitoring data in the sorting result and the sensor corresponding to the second-ranked monitoring data;
[0113] Determine whether the interval distance is less than a preset distance threshold; if so, determine that the monitoring data detected by the two sensors are from the same user, and then execute the step of determining the sensor corresponding to the monitoring data ranked first in the sorting result as the target sensor; if not, determine that the monitoring data detected by the two sensors are from two different users, and determine the sensor corresponding to the monitoring data ranked second in the sorting result as the target sensor, and then execute the step of determining the sensor corresponding to the monitoring data ranked first in the sorting result as the target sensor.
[0114] Based on the above optimization, Figure 4 As shown, a sleep monitoring method provided in this embodiment may specifically include the following steps:
[0115] S301: Acquire monitoring data collected by each sensor.
[0116] S302: Sort the plurality of monitoring data in descending order of signal strength to obtain a sorting result.
[0117] S303: Calculate the difference between the signal strength of the monitoring data ranked first and the signal strength of the monitoring data ranked second in the sorting result to obtain a signal strength difference.
[0118] It should be noted that in the process of sleep monitoring, it is crucial to conduct in-depth analysis of the acquired monitoring data. In this step, the system first identifies the monitoring data ranked first in the sorting result and obtains its signal strength. Next, the system also identifies the second monitoring data that follows it in the sorting result and extracts its signal strength. Subsequently, through precise mathematical operations, the difference between the signal strengths of the two is calculated to obtain a signal strength difference.
[0119] The core purpose of this step is to determine whether there is a significant difference in signal strength between the first two monitoring data in the sorting results through quantitative analysis. The size of the signal strength difference directly reflects whether the signals collected by the two sensors are similar, thus providing an important reference for subsequent judgment on whether the two sensors may monitor the sleep data of the same user.
[0120] Therefore, the calculation of signal strength difference is not only a quantitative processing of monitoring data, but also a key step in multi-user sleep monitoring and analysis, which is of great significance for ensuring the accuracy and reliability of monitoring results.
[0121] S304: Determine whether the signal strength difference is less than a preset difference threshold. If not, execute step S310; if yes, execute step S305.
[0122] It should be noted that the preset difference threshold is set by technicians based on experience, which is based on specific experimental results and can be any value.
[0123] After the calculation of the signal strength difference is completed, the present embodiment enters a key judgment step. In this step, the system compares the calculated signal strength difference with a preset difference threshold.
[0124] The logic of the judgment is as follows: if the signal strength difference is not less than the preset difference threshold, that is, there is a significant difference in the signal strength of the two monitoring data, the system believes that the data collected by the two sensors may come from different parts of the same user, for example, the sensor corresponding to the first-ranked monitoring data collects monitoring data of the user's heart position, and the sensor corresponding to the second-ranked monitoring data collects monitoring data of the user's hand position. In this case, the system will directly execute step S310 to continue the subsequent sleep monitoring analysis.
[0125] However, if the signal strength difference is less than the preset difference threshold, the opposite inference is made, and it is believed that the data collected by the two sensors are likely to be heart rate data at the user's heart position. This is because the heart rate data at the heart position usually has a relatively high signal strength, and if the two sensors are both located near the user's heart, the signal strengths they collect should be similar. Based on this judgment, the system will execute step S305 to further calculate the distance between the two sensors on the mattress to further verify whether they have indeed monitored the sleep data of the same user.
[0126] The signal strength difference judgment in step S304 is an important step in multi-user sleep monitoring. It preliminarily screens and classifies the monitoring data based on a preset difference threshold, providing an important basis for subsequent data analysis and user identification.
[0127] S305: Calculate the interval distance between the sensor corresponding to the monitoring data ranked first and the sensor corresponding to the monitoring data ranked second in the ranking result.
[0128] It should be noted that this interval distance is calculated through the layout and position information of the sensors on the mattress, and can reflect the relative distance between the two sensors in physical space.
[0129] S306, determine whether the interval distance is less than a preset distance threshold; if so, execute step S307; if not, execute step S308.
[0130] It should be noted that the preset distance threshold is set by technicians based on experience, which is based on specific experimental results and can be any value.
[0131] In this step, when judging whether the calculated interval distance is less than the preset distance threshold, the judgment logic is as follows:
[0132] If the distance between the two sensors is less than the preset distance threshold, the system considers that the two sensors are very close in physical location and are likely to be monitoring the sleep data of the same user. In this case, the system will execute step S307 to determine that the monitoring data detected by the two sensors are from the same user.
[0133] However, if the interval distance is greater than or equal to the preset distance threshold, the system will make the opposite inference and believe that the two sensors monitor the sleep data of different users. This is because in actual applications, there is often a certain interval between the positions of different users lying on the mattress. If the distance between the two sensors is too large, then they are likely to correspond to two different users. In this case, the system will execute step S308 to determine that the monitoring data collected by the two sensors are from different users, that is, two users are sleeping on the mattress at the same time.
[0134] S307: Determine that the monitoring data detected by the two sensors are from the same user. Then execute step S310.
[0135] It should be noted that after the distance between the two sensors is determined, if the distance between the two sensors is less than the preset distance threshold, an important judgment will be made: the monitoring data detected by the two sensors comes from the same user. This conclusion is based on the assumption that the two sensors are close in physical location and they may have captured the heart rate data of the same user's heart position.
[0136] After determining the data source, this embodiment will continue to perform subsequent steps to further process and analyze the monitoring data. Since the two sensors are related to the same user, the system will only select the sensor corresponding to the monitoring data ranked first in the sorting result as the target sensor.
[0137] S308: Determine that the monitoring data detected by the two sensors come from two different users. Then execute step S309.
[0138] It should be noted that if the distance between the two sensors is greater than or equal to the preset distance threshold, the system will make the opposite judgment: the monitoring data detected by the two sensors come from two different users. This conclusion is based on the assumption that the two sensors are relatively dispersed in physical locations, and they capture the heart rate data of different users' heart positions.
[0139] S309: Determine the sensor corresponding to the monitoring data ranked second in the ranking result as the target sensor. Then execute step S310.
[0140] It should be noted that, when it is determined that the monitoring data collected by the two sensors are both monitoring data of the heart position and are from different users, it is naturally necessary to determine the two sensors as target sensors.
[0141] S310: Determine the sensor corresponding to the monitoring data ranked first in the sorting result as the target sensor.
[0142] It is understandable that, although step S310 follows step S309 in the above logic flow, in actual applications, after step S308, the order of these two steps is not limited, and either step can come first.
[0143] S311 . Using the monitoring data collected by the target sensor as sleep monitoring data of the user lying on the mattress.
[0144] In summary, the sleep monitoring method provided in this embodiment, with its unique design concept and advanced technical means, brings unprecedented convenience and comfort to users, and also opens up a new direction for the development of the sleep monitoring field. This innovative method will undoubtedly show great competitiveness and broad application prospects in the market.
[0145] It can be understood that this embodiment can be based on the content provided by Example 1 as well as the content provided by Example 2. That is to say, in another implementation manner, this embodiment can further include the content provided by Example 2.
[0146] Embodiment 4
[0147] Please refer to Figure 5 The sleep monitoring method provided in the fourth embodiment of the present invention is based on the technical solution provided in the first embodiment, and after step S104 "using the monitoring data collected by the target sensor as the sleep monitoring data of the user lying on the mattress", the method is further optimized. The explanations of the terms that are the same or corresponding to the above embodiments are not repeated here. Specifically, the method provided in this embodiment may also include the following steps:
[0148] Acquire monitoring data collected by each of the sensors;
[0149] Determine whether the number of monitoring data having signal strength greater than a preset strength threshold is greater than a preset number threshold; if so, determine that the user's sleeping position has changed; if not, determine that the user is in normal sleep.
[0150] Based on the above optimization, Figure 5 As shown, a sleep monitoring method provided in this embodiment may specifically include the following steps:
[0151] S401: Acquire monitoring data collected by each sensor.
[0152] S402: Sort the plurality of monitoring data in descending order of signal strength to obtain a sorting result.
[0153] S403: Determine the sensor corresponding to the monitoring data ranked first in the sorting result as the target sensor.
[0154] S404: Using the monitoring data collected by the target sensor as sleep monitoring data of the user lying on the mattress.
[0155] S405: Acquire monitoring data collected by each of the sensors.
[0156] It should be noted that after determining the target sensor to accurately monitor the user's sleep, it is necessary to continuously obtain the monitoring data collected by each sensor to monitor changes in sleeping posture.
[0157] S406, determining whether the number of monitoring data having signal strength greater than a preset strength threshold is greater than a preset number threshold; if so, executing step S407; if not, executing step S408.
[0158] It should be noted that the preset intensity threshold is set by technicians through experience, which is based on specific experimental results and can be any value. For example, the preset intensity threshold is 2.
[0159] It is understandable that this preset intensity threshold must be greater than the signal intensity of the monitoring data corresponding to the heartbeat, so as to be able to detect the user's large-scale movements. Generally, the signal intensity of the monitoring data corresponding to large-scale movements (such as turning over) is ,Signal The signal strength of the monitoring data corresponding to the heart beat is , small movements (such as slight shaking of the body) correspond to the signal strength of the monitoring data ;in, The maximum signal strength setting.
[0160] S407: Determine whether the user's sleeping position has changed.
[0161] It should be noted that when the number of sensors that detect a signal exceeding a preset strength threshold exceeds a preset number threshold, it is determined that the user's sleeping position has changed. This is because large movements (such as turning over) usually cause multiple sensors to detect strong signals at the same time.
[0162] S408: Determine that the user is in normal sleep.
[0163] It should be noted that if the number of sensors exceeding the preset strength threshold does not exceed the preset number threshold, the system will consider the user to be in normal sleep. This may be because the user is in a static sleep state, making small movements or heartbeats, etc. These activities usually do not cause a sensor to detect a strong signal, or multiple sensors will not detect strong signals at the same time.
[0164] In this way, it is possible to distinguish between a user's normal sleep and changes in sleeping posture, thereby providing the user with more accurate sleep monitoring and analysis.
[0165] In summary, the sleep monitoring method provided in this embodiment, with its unique design concept and advanced technical means, brings unprecedented convenience and comfort to users, and also opens up a new direction for the development of the sleep monitoring field. This innovative method will undoubtedly show great competitiveness and broad application prospects in the market.
[0166] It can be understood that this embodiment can be based on the content provided by Example 1 as well as the content provided by Example 2 and / or Example 3. That is to say, in another implementation, this embodiment can further include the content provided by Example 2 and / or Example 3.
[0167] Embodiment 5
[0168] Please refer to Figure 6 The sleep monitoring method provided in the fifth embodiment of the present invention is based on the technical solution provided in the first embodiment, and after step S101 "obtaining the monitoring data collected by each of the sensors", the method is further optimized. The explanations of the terms that are the same or corresponding to the above embodiments are not repeated here. Specifically, the method provided in this embodiment may also include the following steps:
[0169] Amplify the signal strengths of a number of monitoring data.
[0170] Based on the above optimization, Figure 6 As shown, a sleep monitoring method provided in this embodiment may specifically include the following steps:
[0171] S501: Acquire monitoring data collected by each sensor.
[0172] S502: Amplify the signal strengths of a plurality of monitoring data.
[0173] It should be noted that in actual application, the signal strength of the monitoring data generated by the user during sleep may be relatively low, thereby affecting the subsequent analysis process. Therefore, after step S501, the signal strength of the monitoring data collected by each sensor may be amplified. The amplification process can amplify the signal strength of the monitoring data, thereby improving the accuracy of the subsequent analysis.
[0174] S503: Sort the plurality of monitoring data in descending order of signal strength to obtain a sorting result.
[0175] S504: Determine the sensor corresponding to the monitoring data ranked first in the sorting result as the target sensor.
[0176] S505: Use the monitoring data collected by the target sensor as sleep monitoring data of the user lying on the mattress.
[0177] In summary, the sleep monitoring method provided in this embodiment, with its unique design concept and advanced technical means, brings unprecedented convenience and comfort to users, and also opens up a new direction for the development of the sleep monitoring field. This innovative method will undoubtedly show great competitiveness and broad application prospects in the market.
[0178] It can be understood that, in addition to being based on the content provided by Example 1, this embodiment can also be based on the content provided by Example 2 and / or Example 3 and / or Example 4. That is to say, in another implementation manner, this embodiment can further include the content provided by Example 2 and / or Example 3 and / or Example 4.
[0179] Embodiment 6
[0180] Please refer to Figure 7 , Figure 7 This is a schematic diagram of the structure of a sleep monitoring device provided in Embodiment 6 of the present invention. The system is suitable for executing the sleep monitoring method provided in Embodiment 6 of the present invention. The device includes:
[0181] Mattress 1;
[0182] A plurality of sensors 2, wherein the plurality of sensors 2 are arranged in the mattress 1 and are used to collect sleep monitoring data of a user lying on the mattress 1;
[0183] Memory 3, the memory storing a computer program;
[0184] Processor 4, the processor 4 implements the following steps when executing the computer program:
[0185] Acquire monitoring data collected by each of the sensors;
[0186] Sorting the plurality of monitoring data in descending order of signal strength to obtain a sorting result;
[0187] Determine the sensor corresponding to the monitoring data ranked first in the sorting result as the target sensor;
[0188] The monitoring data collected by the target sensor is used as sleep monitoring data of a user lying on the mattress.
[0189] In an optional embodiment of the present invention, the processor 4 is further configured to execute the computer program to implement the following steps:
[0190] After the step of determining the sensor corresponding to the monitoring data ranked first in the sorting result as the target sensor, the position of the target sensor is determined as the position of the user's heart, thereby determining the user's sleeping position.
[0191] In an optional embodiment of the present invention, the processor 4 is further configured to execute the computer program to implement the following steps:
[0192] After the step of sorting the plurality of monitoring data in descending order of signal strength to obtain a sorting result, performing a difference calculation between the signal strength of the first-ranked monitoring data and the signal strength of the second-ranked monitoring data in the sorting result to obtain a signal strength difference;
[0193] Determine whether the signal strength difference is less than a preset difference threshold; if not, perform the step of determining the sensor corresponding to the first-ranked monitoring data in the sorting result as the target sensor; if so, calculate the interval distance between the sensor corresponding to the first-ranked monitoring data in the sorting result and the sensor corresponding to the second-ranked monitoring data;
[0194] Determine whether the interval distance is less than a preset distance threshold; if so, determine that the monitoring data detected by the two sensors are from the same user, and then execute the step of determining the sensor corresponding to the monitoring data ranked first in the sorting result as the target sensor; if not, determine that the monitoring data detected by the two sensors are from two different users, and determine the sensor corresponding to the monitoring data ranked second in the sorting result as the target sensor, and then execute the step of determining the sensor corresponding to the monitoring data ranked first in the sorting result as the target sensor.
[0195] In an optional embodiment of the present invention, the processor 4 is further configured to execute the computer program to implement the following steps:
[0196] After the step of using the monitoring data collected by the target sensor as the sleep monitoring data of the user lying on the mattress, acquiring the monitoring data collected by each of the sensors;
[0197] Determine whether the number of monitoring data having signal strength greater than a preset strength threshold is greater than a preset number threshold; if so, determine that the user's sleeping position has changed; if not, determine that the user is in normal sleep.
[0198] In an optional embodiment of the present invention, the processor 4 is further configured to execute the computer program to implement the following steps:
[0199] After the step of acquiring the monitoring data collected by each of the sensors, the signal strengths of a plurality of the monitoring data are amplified.
[0200] The sleep monitoring device provided by the present invention utilizes a sleep monitoring device composed of a mattress and a plurality of sensors arranged at different positions in the mattress, so that there is no need to require the user to adopt a specific sleeping posture or wear additional equipment. Instead, the device only analyzes the signal strengths of a plurality of monitoring data, selects the sensor corresponding to the monitoring data with the highest signal strength as the target sensor, and uses the monitoring data collected by the sensor as the sleep monitoring data of the user. This ensures the accuracy of the sleep monitoring data of the user, thereby providing the user with a more convenient and natural sleep monitoring experience, and has great market competitiveness.
[0201] Embodiment 7
[0202] Embodiment 7 of the present invention provides a computer-readable storage medium having computer-executable instructions stored thereon. When the instructions are executed by a processor, the sleep monitoring method provided in all the embodiments of the present application is implemented.
[0203] Any combination of one or more computer-readable media may be used. A computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device, or device.
[0204] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0205] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0206] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0207] Finally, it should be noted that although the above embodiments have been described in the specification and drawings of this application, this does not limit the scope of patent protection of this application. All technical solutions generated by replacing or modifying equivalent structures or equivalent processes based on the essential concept of this application using the contents recorded in the specification and drawings of this application, as well as directly or indirectly implementing the technical solutions of the above embodiments in other related technical fields, are included in the scope of patent protection of this application.
Claims
1. A sleep monitoring method, applied to a sleep monitoring device, wherein the sleep monitoring device comprises a mattress and a plurality of sensors arranged at different positions in the mattress, characterized in that: The method comprises: Acquire monitoring data collected by each of the sensors; Sorting the plurality of monitoring data in descending order of signal strength to obtain a sorting result; Determine the sensor corresponding to the monitoring data ranked first in the sorting result as the target sensor; The monitoring data collected by the target sensor is used as sleep monitoring data of a user lying on the mattress.
2. The sleep monitoring method according to claim 1, characterized in that: After the step of determining the sensor corresponding to the monitoring data ranked first in the sorting result as the target sensor, the method further includes: The position of the target sensor is determined as the position of the user's heart, thereby determining the user's sleeping posture.
3. The sleep monitoring method according to claim 1, characterized in that: After the step of sorting the plurality of monitoring data in descending order of signal strength to obtain a sorting result, the method further comprises: Calculate the difference between the signal strength of the first-ranked monitoring data and the signal strength of the second-ranked monitoring data in the ranking result to obtain a signal strength difference; Determine whether the signal strength difference is less than a preset difference threshold; if not, perform the step of determining the sensor corresponding to the first-ranked monitoring data in the sorting result as the target sensor; if so, calculate the interval distance between the sensor corresponding to the first-ranked monitoring data in the sorting result and the sensor corresponding to the second-ranked monitoring data; Determine whether the interval distance is less than a preset distance threshold; if so, determine that the monitoring data detected by the two sensors are from the same user, and then execute the step of determining the sensor corresponding to the monitoring data ranked first in the sorting result as the target sensor; if not, determine that the monitoring data detected by the two sensors are from two different users, and determine the sensor corresponding to the monitoring data ranked second in the sorting result as the target sensor, and then execute the step of determining the sensor corresponding to the monitoring data ranked first in the sorting result as the target sensor.
4. The sleep monitoring method according to claim 1, characterized in that: After the step of using the monitoring data collected by the target sensor as sleep monitoring data of the user lying on the mattress, the method further includes: Acquire monitoring data collected by each of the sensors; Determine whether the number of monitoring data having signal strength greater than a preset strength threshold is greater than a preset number threshold; if so, determine that the user's sleeping position has changed; if not, determine that the user is in normal sleep.
5. The sleep monitoring method according to claim 1, characterized in that: After the step of acquiring the monitoring data collected by each of the sensors, the method further includes: Amplify the signal strengths of a number of monitoring data.
6. A sleep monitoring device, characterized in that: The device comprises: Mattress; A plurality of sensors, wherein the plurality of sensors are arranged in the mattress and are used to collect sleep monitoring data of a user lying on the mattress; a memory storing a computer program; A processor, wherein when the processor executes the computer program, the following steps are implemented: Acquire monitoring data collected by each of the sensors; Sorting the plurality of monitoring data in descending order of signal strength to obtain a sorting result; Determine the sensor corresponding to the monitoring data ranked first in the sorting result as the target sensor; The monitoring data collected by the target sensor is used as sleep monitoring data of a user lying on the mattress.
7. The sleep monitoring device according to claim 6, characterized in that: The processor is further configured to execute the computer program to implement the following steps: After the step of determining the sensor corresponding to the monitoring data ranked first in the sorting result as the target sensor, the position of the target sensor is determined as the position of the user's heart, thereby determining the user's sleeping position.
8. The sleep monitoring device according to claim 6, characterized in that: The processor is further configured to execute the computer program to implement the following steps: After the step of sorting the plurality of monitoring data in descending order of signal strength to obtain a sorting result, performing a difference calculation between the signal strength of the first-ranked monitoring data and the signal strength of the second-ranked monitoring data in the sorting result to obtain a signal strength difference; Determine whether the signal strength difference is less than a preset difference threshold; if not, execute the step of determining the sensor corresponding to the monitoring data ranked first in the sorting result as the target sensor; If yes, then calculating the interval distance between the sensor corresponding to the first-ranked monitoring data and the sensor corresponding to the second-ranked monitoring data in the ranking result; Determine whether the interval distance is less than a preset distance threshold; If yes, it is determined that the monitoring data detected by the two sensors are from the same user, and then the step of determining the sensor corresponding to the monitoring data ranked first in the ranking result as the target sensor is performed; If not, it is determined that the monitoring data detected by the two sensors come from two different users, and the sensor corresponding to the second-ranked monitoring data in the sorting result is determined as the target sensor, and then the step of determining the sensor corresponding to the first-ranked monitoring data in the sorting result as the target sensor is executed.
9. The sleep monitoring device according to claim 6, characterized in that: The processor is further configured to execute the computer program to implement the following steps: After the step of using the monitoring data collected by the target sensor as the sleep monitoring data of the user lying on the mattress, acquiring the monitoring data collected by each of the sensors; Determine whether the number of monitoring data having signal strength greater than a preset strength threshold is greater than a preset number threshold; if so, determine that the user's sleeping position has changed; if not, determine that the user is in normal sleep.
10. A storage medium containing computer executable instructions, characterized in that: The computer executable instructions are executed by a computer processor to implement the sleep monitoring method according to any one of claims 1 to 5.
