Linkage scene setting method and device
A scene and target device technology, applied in devices that cause sleep or relaxation, devices that cause changes in perception, hypnosis devices, etc., can solve problems such as inability to adapt to sleep disorders, dependence on user operations, and single
Active Publication Date: 2021-01-12
深圳数联天下智能科技有限公司
0 Cites 0 Cited by
AI-Extracted Technical Summary
Problems solved by technology
[0004] In view of this, the embodiment of the present application provides a method and device for setting a linkage scene, which can solve the problem that the traditional linkage scene se...
Method used
In this embodiment, by identifying the user group type of the user; the sleep information is input into the sleep disorder recognition model corresponding to the user group type, and the sleep disorder recognition model output corresponding to the group type is obtained The type of sleep disorder corresponding to the user. In the above solution, the types of sleep disorders are identified according to the sleep disorder recognition models corresponding to different types of user groups, which improves the r...
Abstract
The invention is suitable for the technical field of smart home, and provides a linkage scene setting method and device. The method comprises the following steps: obtaining sleep information of a userin a preset duration; inputting the sleep information into a pre-trained sleep disorder recognition model to obtain a sleep disorder type which corresponds to the user and is output by the sleep disorder recognition model; according to the sleep disorder type, preset setting information of a linkage scene strategy associated with the sleep disorder type is matched, wherein the linkage scene strategy is control information of target equipment, and the target equipment at least comprises a mattress; and setting a linkage scene strategy of the target equipment according to the preset setting information. According to the scheme, the sleep disorder type is recognized through the sleep information, so that different linkage scene strategies are set according to the different sleep disorder types. The linkage scene strategies corresponding to different sleep disorder types can be set without depending on setting of the linkage scene strategies by the user.
Application Domain
Diagnostic recording/measuringSensors +2
Technology Topic
Sleep disorderPhysical therapy +2
Image
Examples
- Experimental program(1)
Example Embodiment
[0031]In the following description, for the purpose of illustration rather than limitation, specific details such as a specific system structure and technology are proposed for a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application can also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to avoid unnecessary details from obstructing the description of this application.
[0032]It should be understood that when used in the specification and appended claims of this application, the term "comprising" indicates the existence of the described features, wholes, steps, operations, elements and/or components, but does not exclude one or more other The existence or addition of features, wholes, steps, operations, elements, components, and/or collections thereof.
[0033]It should also be understood that the term "and/or" used in the specification of this application and the appended claims refers to any combination of one or more of the associated listed items and all possible combinations, and includes these combinations.
[0034]As used in the description of this application and the appended claims, the term "if" can be interpreted as "when" or "once" or "in response to determination" or "in response to detecting ". Similarly, the phrase "if determined" or "if detected [described condition or event]" can be interpreted as meaning "once determined" or "in response to determination" or "once detected [described condition or event]" depending on the context ]" or "in response to detection of [condition or event described]".
[0035]In addition, in the description of the specification of this application and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the description, and cannot be understood as indicating or implying relative importance.
[0036]The reference to "one embodiment" or "some embodiments" described in the specification of this application means that one or more embodiments of this application include a specific feature, structure, or characteristic described in combination with the embodiment. Therefore, the words "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. appearing in different places in this specification are not necessarily All refer to the same embodiment, but mean "one or more but not all embodiments" unless otherwise specifically emphasized in other ways. The terms "including", "including", "having" and their variations all mean "including but not limited to" unless otherwise specifically emphasized.
[0037]Smart home is a living environment, which is a residential environment with a smart home system installed as a platform. In the smart home, the linkage scene is one of the important functions, which is increasingly valued by users. The linkage scene refers to the control of multiple devices to perform target actions to meet the needs of different scenarios (for example: when the linkage scene is a sleep scene, control the light strip to turn off, sleep music on, and turn on the massager. The linkage scene is the wake up scene When, control the light strip to turn off, sleep music off, massager off, etc. to meet the needs of different scenes).
[0038]The user can set the device in the linkage scene to realize the customized settings of the linkage scene. However, due to the setting method of the traditional linkage scene, it can only adapt to a single type of sleep disorder, and depends on user operations, and cannot adapt to different types of sleep disorders.
[0039]In view of this, the embodiments of the present application provide a method and device for setting a linkage scene, which can solve the above technical problem.
[0040]Seefigure 1 ,figure 1 It shows a schematic diagram of a linkage control system provided by an embodiment of the present application. Such asfigure 1 As shown, the linkage control system includes multiple target devices, and the target devices may be mattresses 11, electric curtains 12, electric lights 13, TV 14 or air conditioners 15. The mattress 11 is connected to the electric curtain 12, the electric light 13, the TV 14 or the air conditioner 15, and the connection mode can be a wired connection or a wireless connection.figure 1 The linkage control system is only indicative.figure 1 There are no restrictions on the type and number of devices in the.
[0041]The mattress 11 includes modules such as a bed body, a sensor, a memory, a processor, and a communication module.
[0042]The sensor in the mattress 11 is used to collect human physiological data, such as body weight, respiration, pulse, snoring, body movement and other human physiological data. The human body physiological data is sent to the processor, and the processor obtains sleep information according to the human body physiological data. The sensor may be one or a combination of a micro-motion sensor and a pressure sensor.
[0043]The processor in the mattress 11 is used to obtain sleep information of the user within a preset time period. The processor inputs the sleep information into a pre-trained sleep disorder recognition model, and obtains the sleep disorder type corresponding to the user output by the sleep disorder recognition model. The processor matches the preset setting information of the linkage scene strategy associated with the sleep disorder type according to the sleep disorder type (the target device includes one of the mattress 11, the electric curtain 12, the electric light 13, the TV 14 and the air conditioner 15 or Multiple devices). The processor sets the linkage scenario strategy of the target device according to the preset setting information.
[0044]The communication module in the mattress 11 is used to establish a communication connection between the electric curtain 12, the electric light 13, the TV 14 and the air conditioner 15 to set the linkage scenario strategy of the target device.
[0045]The mattress 11 also includes multiple functional modules, such as a massager, a heater, or a light strip, etc., to meet the needs of alleviating sleep disorders. Seefigure 2 ,figure 2 It shows a schematic diagram of a mattress in a linkage scene system provided by an embodiment of the present application. The mattress 11 includes a massager 121, a heater 122 and a light belt 123.figure 2 The mattress is just a sign, rightfigure 2 There are no restrictions on the type and number of functional modules in the.
[0046]Based on the above hardware environment, this application provides a method for setting a linkage scene, and the main body of execution of this method is the mattress 11. Seeimage 3 ,image 3 It shows a schematic flowchart of a method for setting a linkage scene provided by the present application.
[0047]Such asimage 3 As shown, the method may include the following steps:
[0048]Step 301: Acquire sleep information of the user within a preset time period, where the sleep information is used to indicate the sleep depth of the user.
[0049]The normal sleep structure cycle of the human body is divided into two phases: non-rapid eye movement sleep (NREM) and rapid eye movement sleep (REM). The non-rapid eye movement sleep period is divided into four periods: falling asleep period, light sleep period, deep sleep period and deep sleep period. Normal adults enter the non-rapid eye movement sleep period first after falling asleep, usually in the order of onset period → light sleep period → deep sleep period → deep sleep period → deep sleep period → light sleep period, which lasts from 70 minutes to 100 minutes. Immediately enter the rapid eye movement sleep phase, about 5 minutes to 15 minutes, complete a sleep cycle.
[0050]Sleep disorders are caused by disorder in different sleep stages or awakening stages. Common sleep disorders manifested as:
[0051]① Occurs in the early stage of sleep, it is difficult to fall asleep, and is the most common insomnia.
[0052]② Sleep when you wake up all night.
[0053]③ It occurs during REM sleep, and the patient wakes up too early and can no longer fall asleep.
[0054]④ Sleep too much or too much during the day, or sleep too long at night to wake up.
[0055]Different sleep disorders present different characteristics in different sleep stages. Different sleep disorders require different auxiliary means to alleviate sleep disorders, that is, "prescribe the right medicine" to achieve the best relief effect. Therefore, in this embodiment, the sleep information of the user within the preset time period is obtained to identify the type of sleep disorder of the user.
[0056]Among them, the preset duration may be the whole night or a certain period of night, etc., which is not limited here. Sleep information includes but is not limited to sleep curve graphs, etc.
[0057]Step 302: Input the sleep information into a pre-trained sleep disorder recognition model to obtain a sleep disorder type corresponding to the user output by the sleep disorder recognition model. The sleep disorder type includes endogenous sleep disorder, Mental illness sleep disorder or physical illness sleep disorder.
[0058]The processor inputs the sleep information into the pre-trained sleep disorder recognition model, and obtains the sleep disorder type corresponding to the user output by the sleep disorder recognition model. Among them, sleep disorder recognition models include neural network models or support vector machines (Support Vector Machine, SVM) and other classification models.
[0059]Sleep disorders include but are not limited to sleep disorder types including endogenous sleep disorders, mental illness sleep disorders, or physical illness sleep disorders.
[0060]Step 303: According to the sleep disorder type, match preset setting information of a linkage scenario strategy associated with the sleep disorder type, where the linkage scenario strategy is control information of a target device, and the target device includes at least a mattress.
[0061]Since the quality of sleep is closely related to the sleep environment, this implementation uses different linkage scenarios based on the type of sleep disorder to alleviate sleep disorders.
[0062]Different types of sleep disorders correspond to different preset setting information. The preset setting information may be system default setting information or user-defined setting information to adapt to the use requirements of the target device under different sleep disorders, thereby changing the sleep environment and achieving the effect of alleviating sleep disorders.
[0063]The processor matches the preset setting information of the linkage scene strategy associated with the sleep disorder type according to the sleep disorder type. For example: mental illness sleep disorder is caused by nervous tension, which causes sleep disorder. At this time, the purpose of alleviating sleep disorder is to relax the body and mind, so the preset setting information can be to turn on the sound (play sleep aid music), turn on the massager, and turn on the aromatherapy Wait for the setting information corresponding to the linkage scenario strategy to adjust the user’s sleeping environment. Another example: Somatic sleep disorder is caused by physical discomfort, which causes sleep disorder. At this time, the purpose of relieving sleep disorder is to relieve physical discomfort. Therefore, the preset setting information can be to turn on the massager and adjust the softness of the mattress to a preset value. Or adjust the setting information corresponding to the linkage scenario strategy such as adjusting the air conditioner to the preset temperature. Another example: drowsiness sleep disorder is caused by excessive sleep, so the purpose of alleviating sleep disorder is to wake up the user at a predetermined time, so the preset setting information can be turn on the lights, turn on the curtains, turn on the sound (wake up music), and turn on Setting information corresponding to the linkage scenario strategy such as vibrator.
[0064]Step 304: Set the linkage scenario strategy of the target device according to the preset setting information.
[0065]The processor sets the linkage scene strategy of the mattress according to the preset setting information. The linkage scenario strategy is the control information of the target device. The control information comes from the preset setting information, that is, the linkage scenario strategy is set according to the preset setting information, and the control information in the linkage scenario strategy is obtained. The control information is used to control the target device to perform the target action to alleviate sleep disorders.
[0066]In this embodiment, by acquiring the sleep information of the user within a preset period of time; inputting the sleep information into a pre-trained sleep disorder recognition model, and obtaining the sleep corresponding to the user output by the sleep disorder recognition model A type of disorder; according to the type of sleep disorder, matching preset setting information of a linkage scenario strategy associated with the type of sleep disorder, the linkage scenario strategy being control information of a target device, the target device including at least a mattress; The preset setting information sets the linkage scenario strategy of the target device. In the above solution, the type of sleep disorder is identified through sleep information, so as to set different linkage scenario strategies according to different types of sleep disorder. Without relying on the user to set the linkage scenario strategy, the linkage scenario strategy corresponding to different sleep disorder types can be set.
[0067]Specifically, in the aboveimage 3 On the basis of the illustrated embodiment, the sleep information includes a sleep curve graph, and the method specifically includes the following steps, please refer toFigure 4 ,Figure 4 It shows a specific schematic flowchart in a method for setting a linkage scene provided by the present application. Steps 403 to 405 in this embodiment are the same asimage 3 Steps 302 to 304 in the illustrated embodiment are the same, please refer toimage 3 The related description of step 302 to step 304 in the illustrated embodiment will not be repeated here.
[0068]Step 401: Collect the corresponding sleep depth of the user at different moments according to the preset sampling frequency.
[0069]The method for acquiring the depth of sleep is as follows: the sensor collects one or more biological characteristic information of the human body's heart rate, breathing rate, body movement, snoring sound, and EEG signals. The processor performs time-domain low-pass filtering on the time sequence of one or more biometric information collected within a preset time period to obtain a time-domain sequence, and at the same time performs fast Fourier transform on the sensor signal time sequence to obtain a frequency-domain sequence. The processor performs smooth filtering and down-sampling on the time-domain sequence and the frequency-domain sequence to form a sensor time-frequency vector, and inputs the sensor time-frequency vector into a sparse self-encoding deep learning network with a fully connected structure to extract optimal features. The processor inputs the optimal feature into the Softmax classifier to obtain a recognition result. The recognition result may be a numerical value with a certain precision, and the numerical value is used to represent the depth of sleep to complete the collection of the depth of sleep.
[0070]Step 402: Generate the sleep curve graph according to the different moments and the sleep depth corresponding to the different moments.
[0071]The sleep depths corresponding to different moments and different moments are arranged in the order of appearance, and a sleep curve chart is fitted to intuitively reflect the dynamic changes of each stage of sleep. SeeFigure 5 ,Figure 5 It shows a schematic diagram of a sleep curve in the setting of a linkage scene provided by this application. Such asFigure 5 As shown, the sleep depth within the preset time period changes with time, the horizontal direction represents the time, and the vertical direction represents the sleep depth. Different sleep disorders have different sleep curves due to abnormalities in the corresponding sleep stages, and there are certain differences in characteristics. Therefore, different types of sleep disorders can be identified according to the sleep curve graph.
[0072]Step 403: Input the sleep information into a pre-trained sleep disorder recognition model to obtain a sleep disorder type corresponding to the user output by the sleep disorder recognition model. The sleep disorder type includes endogenous sleep disorder, Mental sleep disorder or physical sleep disorder.
[0073]Step 404: According to the sleep disorder type, match preset setting information of a linkage scenario strategy associated with the sleep disorder type, where the linkage scenario strategy is control information of a target device, and the target device includes at least a mattress.
[0074]Step 405: Set a linkage scenario strategy of the target device according to the preset setting information.
[0075]In this embodiment, the sleep depth corresponding to the user at different times is collected according to a preset sampling frequency; the sleep curve graph is generated according to the different times and the sleep depth corresponding to the different times. Through the above solution, the user's sleep curve graph is collected, and then different sleep disorder types are identified, so as to set different linkage scene strategies according to different sleep disorder types. Without relying on the user to set the linkage scenario strategy, the linkage scenario strategy corresponding to different sleep disorder types can be set.
[0076]Optionally, in the aboveFigure 4 On the basis of the illustrated embodiment, the method also includes the following steps, please refer toFigure 6 ,Figure 6 It shows a schematic flowchart of another method for setting a linkage scene provided by the present application. In this embodiment, step 601, step 602, step 604, and step 605 are the same asFigure 4 Step 401, step 402, step 404, and step 405 are the same in the illustrated embodiment, please refer toFigure 4 The related descriptions of step 401, step 402, step 404, and step 405 in the illustrated embodiment will not be repeated here.
[0077]Step 601: Collect the corresponding sleep depth of the user at different moments according to the preset sampling frequency.
[0078]Step 602: Generate the sleep curve graph according to the different moments and the sleep depth corresponding to the different moments.
[0079]Step 603: Input the sleep curve graph into a pre-trained sleep disorder recognition model, and obtain a sleep disorder type corresponding to the user output by the sleep disorder recognition model.
[0080]Sleep disorder recognition models include, but are not limited to, neural network models or support vector machines (Support Vector Machine, SVM) and other classification models. Taking the neural network model as an example, the processor inputs the sleep curve graph into the neural network model, and processes multiple convolution layers and pooling layers in the neural network model to obtain a fully connected layer (Fully Connected Layer). ), and get the output result through the fully connected layer, and the output result is the sleep disorder type.
[0081]Step 604: Match preset setting information of a linkage scene strategy associated with the sleep disorder type according to the sleep disorder type, where the linkage scene strategy is control information of a target device, and the target device includes at least a mattress.
[0082]Step 605: Set a linkage scenario strategy of the target device according to the preset setting information.
[0083]In this embodiment, by inputting the sleep curve graph into a pre-trained sleep disorder recognition model, the sleep disorder type corresponding to the user output by the sleep disorder recognition model is obtained. Through the above scheme, different types of sleep disorders are identified, so as to set different linkage scenario strategies according to different types of sleep disorders. Without relying on the user to set the linkage scenario strategy, the linkage scenario strategy corresponding to different sleep disorder types can be set.
[0084]Optionally, in the aboveFigure 6 On the basis of the illustrated embodiment, before the input of the sleep curve graph into a pre-trained sleep disorder recognition model to obtain the sleep disorder type corresponding to the user output by the sleep disorder recognition model, the method further includes the following Steps, seeFigure 7 ,Figure 7 It shows a schematic flowchart of another method for setting a linkage scene provided by the present application. In this embodiment, step 701, step 702, step 707, step 708, and step 709, andFigure 6 Steps 601 to 605 in the illustrated embodiment are the same, please refer toFigure 6 The related description of step 601 to step 605 in the illustrated embodiment will not be repeated here.
[0085]Step 701: Collect the sleep depth corresponding to the user at different moments according to the preset sampling frequency.
[0086]Step 702: Generate the sleep curve graph according to the different moments and the sleep depth corresponding to the different moments.
[0087]Step 703: Obtain a plurality of sample data, the sample data including a sample sleep curve graph and a sleep disorder type corresponding to the sample sleep curve graph.
[0088]Step 704: Input the sample sleep curve graph into an initial image recognition model to obtain a recognition result.
[0089]Step 705: Compare the recognition result with the sleep disorder type corresponding to the sample sleep curve graph to obtain a comparison result.
[0090]Step 706: Adjust the parameters in the initial image recognition model according to the comparison result to obtain the pre-trained sleep disorder recognition model.
[0091]Step 707: Input the sleep curve graph into a pre-trained sleep disorder recognition model, and obtain a sleep disorder type corresponding to the user output by the sleep disorder recognition model.
[0092]Step 708: According to the sleep disorder type, match preset setting information of a linkage scenario strategy associated with the sleep disorder type, where the linkage scenario strategy is control information of a target device, and the target device includes at least a mattress.
[0093]Step 709: Set a linkage scenario strategy of the target device according to the preset setting information.
[0094]In this embodiment, by acquiring a plurality of sample data, the sample data includes a sample sleep curve chart and the sleep disorder type corresponding to the sample sleep curve chart; input the sample sleep curve chart into the initial image recognition model to obtain Recognition result; compare the recognition result with the sleep disorder type corresponding to the sample sleep curve graph to obtain a comparison result; according to the comparison result, adjust the parameters in the initial image recognition model to obtain the pre-trained Sleep disorder recognition model. In the above solution, different sleep disorder types are recognized through a pre-trained sleep disorder recognition model, so as to set different linkage scenario strategies according to different sleep disorder types. Without relying on the user to set the linkage scenario strategy, the linkage scenario strategy corresponding to different sleep disorder types can be set.
[0095]Optionally, in the aboveimage 3 On the basis of the illustrated embodiment, after the linkage scenario strategy of the target device is set according to the linkage scenario setting information, the following steps are further included. Please refer toFigure 8 ,Figure 8 It shows a schematic flowchart of another method for setting a linkage scene provided by the present application. Step 801, step 805, and step 806 in this embodiment are the same asimage 3 Step 301, step 303, and step 304 in the illustrated embodiment are the same, please refer toimage 3 The related descriptions of step 301, step 303, and step 304 in the illustrated embodiment will not be repeated here.
[0096]Step 801: Acquire sleep information of the user within a preset time period, where the sleep information is used to indicate the sleep depth of the user.
[0097]Step 802: Input the sleep information into a pre-trained sleep disorder recognition model to obtain a sleep disorder type corresponding to the user output by the sleep disorder recognition model. The sleep disorder type includes endogenous sleep disorder, Mental illness sleep disorder or physical illness sleep disorder.
[0098]Step 803: According to the sleep disorder type, match preset setting information of a linkage scenario strategy associated with the sleep disorder type, where the linkage scenario strategy is control information of a target device, and the target device includes at least a mattress.
[0099]Step 804: Set a linkage scenario strategy of the target device according to the preset setting information.
[0100]Step 805: Acquire the moment when the user falls asleep according to the sleep information.
[0101]Since different users fall asleep time is different, this implementation sets the execution time of the target device according to the fall asleep time of different users, so as to better achieve the effect of alleviating sleep disorders.
[0102]Step 806: Set the sleeping moment as the execution moment of the target device.
[0103]In this embodiment, the time when the user falls asleep is acquired according to the sleep information. The falling asleep moment is set as the execution moment of the target device. In the above solution, different execution times are set according to the sleeping habits of different users to adapt to the use needs of different users.
[0104]Optionally, in the aboveimage 3 On the basis of the illustrated embodiment, before the obtaining the sleep information of the user within the preset time period, the following steps are further included. Please refer toPicture 9 ,Picture 9 It shows a schematic flowchart of another method for setting a linkage scene provided by the present application. In this embodiment, steps 901, 804, and 805 are the same asimage 3 Step 301, step 303, and step 304 in the illustrated embodiment are the same, please refer toimage 3 The related descriptions of step 301, step 303, and step 304 in the illustrated embodiment will not be repeated here.
[0105]Step 901: Identify the user group type of the user.
[0106]Due to the various types of user groups, there are certain group characteristics and differences between different user groups. In order to improve the recognition accuracy of the sleep disorder recognition model. Therefore, in this embodiment, before identifying the type of sleep disorder, the user group type of the user is first identified, so as to classify and recognize different user group types. User group types include but are not limited to gender types and age group types.
[0107]Specifically, the user group type includes age group type, and the user group type identifying a user includes the following steps, please refer toPicture 10 ,Picture 10 It shows a specific schematic flowchart in a method for setting a linkage scene provided by the present application.
[0108]Step 9011: Obtain the time of getting out of bed each time the user leaves the mattress within a preset time period.
[0109]Nocturia is a characteristic of the human body during sleep. In different age groups, the frequency of nocturia has certain characteristics. For example, normal adults get up at night, or the number of nocturias is less than 2 times. In the elderly, the concentration function of the kidney decreases with age, and the increase in renal blood flow at night increases the amount of urine in the supine position, resulting in an increase in the frequency of nocturia. Therefore, this embodiment identifies the user group type based on the number of nocturias.
[0110]First, the processor obtains the time of getting out of bed each time the user leaves the mattress in a preset time period. The preset time period can be the entire night time or a certain time at night.
[0111]Step 9012: Count the number of times of getting out of bed when the length of getting out of bed exceeds the preset period of time.
[0112]Step 9013: Determine the user group type according to the number of times of getting out of bed, where different age group types correspond to different times of getting out of bed.
[0113]Step 902: Acquire sleep information of the user within a preset time period, where the sleep information is used to indicate the sleep depth of the user.
[0114]Step 903: Input the sleep information into the sleep disorder recognition model corresponding to the user group type, and obtain the sleep disorder type corresponding to the user output by the sleep disorder recognition model corresponding to the group type.
[0115]Step 904: Invoke a linkage scene strategy associated with the user information in the sleep state; wherein the linkage scene strategy is preset control information of a target device, and the target device includes at least the mattress.
[0116]Step 905: According to the sleep disorder type, match preset setting information of a linkage scene strategy associated with the sleep disorder type, where the linkage scene strategy is control information of a target device, and the target device includes at least a mattress.
[0117]Step 906: Set the linkage scenario strategy of the target device according to the preset setting information.
[0118]In this embodiment, by identifying the user group type of the user; inputting the sleep information into the sleep disorder recognition model corresponding to the user group type, the user output by the sleep disorder recognition model corresponding to the group type is obtained Corresponding sleep disorder type. In the above solution, the types of sleep disorders are recognized according to the sleep disorder recognition models corresponding to different user group types, which improves the accuracy of identifying the types of sleep disorders.
[0119]Such asPicture 11 This application provides a linkage scene setting device 11, please refer toPicture 11 ,Picture 11 Shows a schematic diagram of a device for setting a linkage scene provided by this application, such asPicture 11 The setting device of a linkage scene shown includes:
[0120]The obtaining unit 111 is configured to obtain sleep information of the user within a preset period of time, where the sleep information is used to indicate the sleep depth of the user;
[0121]The recognition unit 112 is configured to input the sleep information into a pre-trained sleep disorder recognition model to obtain a sleep disorder type corresponding to the user output by the sleep disorder recognition model, and the sleep disorder type includes endogenous Sleep disorders, psychiatric sleep disorders or physical sleep disorders;
[0122]The matching unit 113 is configured to match preset setting information of a linkage scene strategy associated with the sleep disorder type according to the sleep disorder type, where the linkage scene strategy is control information of a target device, and the target device includes at least a bed pad;
[0123]The setting unit 114 is configured to set the linkage scenario strategy of the target device according to preset setting information.
[0124]The device for setting a linkage scene provided by the present application obtains sleep information of a user within a preset period of time; inputs the sleep information into a pre-trained sleep disorder recognition model, and obtains the output of the sleep disorder recognition model The type of sleep disorder corresponding to the user; according to the type of sleep disorder, matching preset setting information of the linkage scenario strategy associated with the type of sleep disorder; setting the linkage scenario of the target device according to the preset setting information Strategy. In the above solution, the type of sleep disorder is identified through sleep information, so as to set different linkage scenario strategies according to different types of sleep disorder. Without relying on the user to set the linkage scenario strategy, the linkage scenario strategy corresponding to different sleep disorder types can be set.
[0125]It should be understood that the size of the sequence number of each step in the foregoing embodiment does not mean the order of execution. The execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application.
[0126]Picture 12It shows a schematic diagram of a mattress provided by an embodiment of the present application. Such asPicture 12As shown, a mattress 11 of this embodiment includes: a bed body 121, a sensor 122, a memory 123, a processor 124, a computer program 125 stored in the memory 123 and running on the processor 124, and Communication module 126.
[0127]The processor 121, the memory 122, and a computer program 125 that is stored in the memory 123 and can run on the processor 124, such as a program for setting linkage scenes. When the processor 124 executes the computer program 125, the steps in the above-mentioned method for setting each linkage scene are implemented, for exampleimage 3 Steps 301 to 304 are shown. Or, when the processor 124 executes the computer program 125, the function of each unit in the foregoing device embodiments is implemented, for example,Picture 10 Units 101 to 104 are shown.
[0128]Exemplarily, the computer program 125 may be divided into one or more units, and the one or more units are stored in the memory 123 and executed by the processor 124 to complete the application. The one or more units may be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the computer program 125 in the kind of mattress 11. For example, the computer program 125 can be divided into units with specific functions as follows:
[0129]An obtaining unit, configured to obtain sleep information of the user within a preset time period, where the sleep information is used to indicate the sleep depth of the user;
[0130]The recognition unit is configured to input the sleep information into a pre-trained sleep disorder recognition model to obtain a sleep disorder type corresponding to the user output by the sleep disorder recognition model, and the sleep disorder type includes endogenous sleep Disorders, psychiatric sleep disorders or physical sleep disorders;
[0131]The matching unit is configured to match preset setting information of a linkage scenario strategy associated with the sleep disorder type according to the sleep disorder type, where the linkage scenario strategy is control information of a target device, and the target device includes at least a mattress ;
[0132]The setting unit is configured to set the linkage scenario strategy of the target device according to preset setting information.
[0133]The kind of mattress 11 may include, but is not limited to, a processor 124 and a memory 123. Those skilled in the art can understand,Picture 12It is only an example of a kind of mattress 11, and does not constitute a limitation to a kind of mattress 11. It may include more or less parts than shown, or a combination of certain parts, or different parts, such as the one mentioned above. This kind of mattress can also include input and output devices, network access devices, buses and so on.
[0134]The sensor 122 may be one or a combination of a micro-motion sensor, a pressure sensor, a temperature and humidity sensor, a thermal imaging sensor, or an ultrasonic sensor.
[0135]The memory 123 may be an internal storage unit of the mattress 11, for example, a hard disk or memory of the mattress 11. The memory 123 may also be an external storage device of the mattress 11, such as a plug-in hard disk equipped on the mattress 11, a smart memory card (Smart Media Card, SMC), and a secure digital (Secure Digital). Digital, SD) card, Flash Card, etc. Further, the memory 123 may also include both an internal storage unit of the mattress 11 and an external storage device. The memory 123 is used to store the computer program and other programs and data required by the type of mattress. The memory 123 can also be used to temporarily store data that has been output or will be output.
[0136]The so-called processor 124 may be a central processing unit (Central Processing Unit, CPU), other general-purpose processors, digital signal processors (Digital Signal Processor, DSP), application specific integrated circuits (Application Specific Integrated Circuit, ASIC), Ready-made programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
[0137]The communication module 126 is used to establish a communication connection with the target device to set the linkage scenario strategy of the target device.
[0138]Those skilled in the art can clearly understand that for the convenience and conciseness of the description, only the division of the above-mentioned functional units and modules is used as an example. In practical applications, the above-mentioned functions can be allocated to different functional units and modules as required. Module completion means dividing the internal structure of the device into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist alone physically, or two or more units can be integrated into one unit. The above-mentioned integrated units can be hardware-based Form realization can also be realized in the form of software functional unit. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the present application. For the specific working process of the units and modules in the foregoing system, reference may be made to the corresponding process in the foregoing method embodiment, which is not repeated here.
[0139]In the above-mentioned embodiments, the description of each embodiment has its own focus. For parts that are not detailed or recorded in an embodiment, reference may be made to related descriptions of other embodiments.
[0140]A person of ordinary skill in the art may realize that the units and algorithm steps of the examples described in combination with the embodiments disclosed herein can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraint conditions of the technical solution. Professionals and technicians can use different methods for each specific application to implement the described functions, but such implementation should not be considered beyond the scope of this application.
[0141]In the embodiments provided in this application, it should be understood that the disclosed mattress and method can be implemented in other ways. For example, the mattress embodiments described above are only illustrative. For example, the division of the modules or units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units or components. Can be combined or integrated into another system, or some features can be omitted or not implemented. In addition, the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
[0142]The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.
[0143]In addition, the functional units in the various embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units may be integrated into one unit. The above-mentioned integrated unit can be realized in the form of hardware or software functional unit.
[0144]If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium. Based on this understanding, this application implements all or part of the processes in the above-mentioned embodiments and methods, and can also be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the program is executed by the processor, the steps of the foregoing method embodiments can be implemented. Wherein, the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate forms. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (Read-Only Memory, ROM) , Random Access Memory (Random Access Memory, RAM), electrical carrier signal, telecommunications signal, and software distribution media. It should be noted that the content contained in the computer-readable medium can be appropriately added or deleted according to the requirements of the legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to the legislation and patent practice, the computer-readable medium Does not include electrical carrier signals and telecommunication signals.
[0145]The above-mentioned embodiments are only used to illustrate the technical solutions of the present application, not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that they can still implement the foregoing The technical solutions recorded in the examples are modified, or some of the technical features are equivalently replaced; these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the application, and should be included in Between the scope of protection of this application.
PUM


Description & Claims & Application Information
We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.