A sleep-aiding device, method, terminal and storage medium for automatically switching modules
By integrating the transcranial electrical stimulation module and the percutaneous electrical stimulation module in the sleep aid device, and using the dynamic switching module for the electroencephalopathy and hand movement trajectory, the problem of reduced sleep aid caused by the fallout of the wearable sleep aid device is solved, and a more stable sleep aid effect is achieved.
Patent Information
- Application Number
- CN202310245647.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-09
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2043-03-09
AI Technical Summary
The existing wearable sleep aid device only acts on one body part, and once it falls off, it will make the sleep aid effect worse.
A sleep aid device with an automatic switching module is designed, including a transcranial electrical stimulation module and a percutaneous electrical stimulation module. By obtaining the user's electroencephalopathy and hand movement trajectory, the operation of the two modules is dynamically switched to ensure continuous sleep aid effect.
It effectively solves the problem of reduced sleep aid effect caused by the fallout of wearable sleep aid device. Through the dynamic switching module operation, the stable effect of the sleep aid device in different body parts is ensured, and the quality of sleep is improved.
Smart Images

Figure CN116271409B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of sleep aids, and in particular to a sleep aid device, method, terminal and storage medium for automatically switching modules. Background Art
[0002] In order to improve the sleep quality of users, various wearable sleep aids have appeared on the market. These wearable sleep aids usually act on a specific part of the user's body. Since some users tend to move their hands randomly during sleep, there is a risk of wearable sleep aids falling off. Once they fall off, the sleep aid effect will be reduced.
[0003] Therefore, the existing technology still needs to be improved and developed. Summary of the invention
[0004] The technical problem to be solved by the present invention is that, in view of the above-mentioned defects of the prior art, a sleep aid device, method, terminal and storage medium with automatic switching modules are provided, aiming to solve the problem that the current wearable sleep aid device only acts on one part of the body and the sleep aid effect will be reduced once it falls off.
[0005] The technical solution adopted by the present invention to solve the problem is as follows:
[0006] In a first aspect, an embodiment of the present invention provides a sleep aid device with an automatic switching module, wherein the device includes an electrical stimulation module and a control module;
[0007] The electrical stimulation module comprises: a transcranial electrical stimulation module and a transcutaneous electrical stimulation module; the transcranial electrical stimulation module contacts the ear of the user; the transcutaneous electrical stimulation module contacts the forehead of the user; the transcranial electrical stimulation module and the transcutaneous electrical stimulation module are both used to emit current to stimulate the cranial nerves of the user, and the current intensity of the transcranial electrical stimulation module is less than the current intensity of the transcutaneous electrical stimulation module;
[0008] The control module is used to obtain the EEG activity of the user within a preset time period;
[0009] Determining first usage priorities corresponding to the transcranial electrical stimulation module and the transcutaneous electrical stimulation module respectively according to the EEG activity;
[0010] Acquiring the hand movement trajectory of the user within the preset time period;
[0011] Determining second usage priorities corresponding to the transcranial electrical stimulation module and the transcutaneous electrical stimulation module respectively according to the hand movement trajectory;
[0012] The operation of the transcranial electrical stimulation module and the transcutaneous electrical stimulation module are regulated according to the first usage priority and the second usage priority.
[0013] In one implementation, obtaining the EEG activity of the user within a preset time period includes:
[0014] Acquire brain wave data of the user within the preset time period, and determine two waveform envelope data according to the brain wave data;
[0015] Determine a plurality of pairs of data points that are evenly distributed in the two waveform envelope data, and obtain a first distance value between two data points in each pair of data points;
[0016] Determine an average distance value of two waveform envelope data according to the first distance values corresponding to each pair of data points;
[0017] The EEG activity is determined according to the average distance value.
[0018] In one embodiment, determining the first usage priorities corresponding to the transcranial electrical stimulation module and the transcutaneous electrical stimulation module respectively according to the EEG activity includes:
[0019] Determining a sleep state category of the user according to the EEG activity;
[0020] When the sleep state category is awake, the first use priority of the transcranial electrical stimulation module is lower than the first use priority of the transcutaneous electrical stimulation module;
[0021] When the sleep state category is a quiet state, the first usage priority of the transcranial electrical stimulation module is greater than the first usage priority of the transcutaneous electrical stimulation module.
[0022] In one implementation, the obtaining of the hand movement trajectory of the user within the preset time period includes:
[0023] Acquire a plurality of posture images corresponding to the upper body of the user within the preset time period,
[0024] Determine, according to each of the posture images, a plurality of moving parts of the user's upper body and the moving directions corresponding to each of the moving parts;
[0025] Determine an average moving direction according to each of the moving directions, and take the moving part corresponding to the moving direction with the largest difference from the average moving direction as the target moving part;
[0026] The moving trajectory of the target moving part is determined according to each of the posture images to obtain the hand moving trajectory.
[0027] In one embodiment, determining the second usage priorities corresponding to the transcranial electrical stimulation module and the transcutaneous electrical stimulation module respectively according to the hand movement trajectory includes:
[0028] Determining second distance values between the user's hand and the transcranial electrical stimulation module and the transcutaneous electrical stimulation module, respectively, according to the hand movement trajectory;
[0029] Determining the knockdown risk values corresponding to the transcranial electrical stimulation module and the transcutaneous electrical stimulation module respectively according to the second distance value between the transcranial electrical stimulation module and the transcutaneous electrical stimulation module;
[0030] The second usage priorities respectively corresponding to the transcranial electrical stimulation module and the transcutaneous electrical stimulation module are determined according to the knock-off risk values of the transcranial electrical stimulation module and the transcutaneous electrical stimulation module.
[0031] In one embodiment, regulating the operation of the transcranial electrical stimulation module and the transcutaneous electrical stimulation module according to the first usage priority and the second usage priority includes:
[0032] Performing a weighted calculation according to the first usage priority and the second usage priority, wherein a weight value of the second usage priority is greater than a weight value of the first usage priority;
[0033] The module with the largest weighted result between the transcranial electrical stimulation module and the transcutaneous electrical stimulation module is used as the operating module.
[0034] In one embodiment, the method further comprises:
[0035] Determining the degree of occlusion of the running module according to each of the posture images;
[0036] When the degree of shielding is greater than a preset threshold, module switching is performed.
[0037] In a second aspect, an embodiment of the present invention further provides a method for automatically switching modules of a sleep aid device, wherein the method is applied to a sleep aid device, the device comprising an electrical stimulation module, the electrical stimulation module comprising: a transcranial electrical stimulation module and a transcutaneous electrical stimulation module; the transcranial electrical stimulation module contacts the ear of the user; the transcutaneous electrical stimulation module contacts the forehead of the user; the transcranial electrical stimulation module and the transcutaneous electrical stimulation module are both used to emit current to stimulate the cranial nerves of the user, and the current intensity of the transcranial electrical stimulation module is less than the current intensity of the transcutaneous electrical stimulation module; the method comprises:
[0038] Obtaining the EEG activity of the user within a preset time period;
[0039] Determining first usage priorities corresponding to the transcranial electrical stimulation module and the transcutaneous electrical stimulation module respectively according to the EEG activity;
[0040] Acquiring the hand movement trajectory of the user within the preset time period;
[0041] Determining second usage priorities corresponding to the transcranial electrical stimulation module and the transcutaneous electrical stimulation module respectively according to the hand movement trajectory;
[0042] The operation of the transcranial electrical stimulation module and the transcutaneous electrical stimulation module are regulated according to the first usage priority and the second usage priority.
[0043] In a third aspect, an embodiment of the present invention further provides a terminal, wherein the terminal includes a memory and one or more processors; the memory stores one or more programs; the program includes instructions for executing a method for automatically switching a module of a sleep aid device as described in any one of the above; and the processor is used to execute the program.
[0044] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a plurality of instructions stored thereon, wherein the instructions are suitable for being loaded and executed by a processor to implement the steps of any of the above-mentioned methods for automatically switching modules of a sleep aid device.
[0045] Beneficial effects of the invention: The embodiment of the invention integrates a transcranial electrical stimulation module and a transcutaneous electrical stimulation module into a sleep aid device, and dynamically switches the operation of the two modules according to the EEG activity and the hand movement trajectory. Since the two modules act on different parts of the body respectively, it can effectively solve the problem that the current wearable sleep aid device only acts on one part of the body, and once it falls off, the sleep aid effect will be reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] 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 recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0047] Figure 1 Schematic diagram of a sleep aid device with automatic switching modules provided in an embodiment of the present invention.
[0048] Figure 2 It is a flowchart of a method for automatically switching modules of a sleep aid device provided by an embodiment of the present invention.
[0049] Figure 3It is a principle block diagram of a terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0050] The present invention discloses a sleep aid device, method, terminal and storage medium for automatically switching modules. In order to make the purpose, technical solution and effect of the present invention clearer and more specific, the present invention is further described in detail with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention.
[0051] It will be understood by those skilled in the art that, unless expressly stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the term "comprising" used in the specification of the present invention refers to the presence of the features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof. It should be understood that when we refer to an element as being "connected" or "coupled" to another element, it may be directly connected or coupled to the other element, or there may be intermediate elements. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein includes all or any unit and all combinations of one or more associated listed items.
[0052] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as generally understood by those skilled in the art in the art to which the present invention belongs. It should also be understood that terms such as those defined in general dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless specifically defined as herein.
[0053] In view of the above-mentioned defects of the prior art, the present invention provides a sleep aid device with automatic switching modules, the device comprising an electrical stimulation module and a control module; the electrical stimulation module comprises: a transcranial electrical stimulation module and a transcutaneous electrical stimulation module; the transcranial electrical stimulation module contacts the user's ear; the transcutaneous electrical stimulation module contacts the user's forehead; the transcranial electrical stimulation module and the transcutaneous electrical stimulation module are both used to emit current to stimulate the user's cranial nerves, and the current intensity of the transcranial electrical stimulation module is less than the current intensity of the transcutaneous electrical stimulation module; the control module is used to obtain the user's electroencephalographic activity within a preset time period; determine the first usage priority corresponding to the transcranial electrical stimulation module and the transcutaneous electrical stimulation module respectively according to the electroencephalographic activity; obtain the user's hand movement trajectory within the preset time period; determine the second usage priority corresponding to the transcranial electrical stimulation module and the transcutaneous electrical stimulation module respectively according to the hand movement trajectory; and regulate the operation of the transcranial electrical stimulation module and the transcutaneous electrical stimulation module according to the first usage priority and the second usage priority. The present invention integrates a transcranial electrical stimulation module and a transcutaneous electrical stimulation module into a sleep aid device, and dynamically switches the operation of the two modules through EEG activity and hand movement trajectory. Since the two modules act on different parts of the user's body respectively, it can effectively solve the problem that current wearable sleep aid devices only act on one part of the body, and once they fall off, the sleep aid effect will be reduced.
[0054] like Figure 1 As shown, the device includes an electrical stimulation module 01 and a control module 02;
[0055] The electrical stimulation module 01 includes: a transcranial electrical stimulation module and a transcutaneous electrical stimulation module; the transcranial electrical stimulation module contacts the user's ear; the transcutaneous electrical stimulation module contacts the user's forehead; the transcranial electrical stimulation module and the transcutaneous electrical stimulation module are both used to emit current to stimulate the user's cranial nerves, and the current intensity of the transcranial electrical stimulation module is less than the current intensity of the transcutaneous electrical stimulation module;
[0056] The control module 02 is used to obtain the EEG activity of the user within a preset time period; determine the first usage priorities corresponding to the transcranial electrical stimulation module and the transcutaneous electrical stimulation module respectively based on the EEG activity; obtain the hand movement trajectory of the user within the preset time period; determine the second usage priorities corresponding to the transcranial electrical stimulation module and the transcutaneous electrical stimulation module respectively based on the hand movement trajectory; and regulate the operation of the transcranial electrical stimulation module and the transcutaneous electrical stimulation module based on the first usage priority and the second usage priority.
[0057] Specifically, this embodiment integrates a transcranial electrical stimulation module (CES) and a transcutaneous electrical stimulation module (TENS), the former contacts the user's ear, and the latter contacts the user's forehead. The two act on different parts of the user's body and have different action intensities. Users have different needs for sleep aids at different EEG activity levels, and different sleep aid needs require different current intensities to meet. For example, the higher the EEG activity, the higher the need for sleep aid, and an electrical stimulation module with a stronger current intensity is required to help sleep. Therefore, this embodiment first uses EEG activity to determine the first use priority of the transcranial electrical stimulation module and the transcutaneous electrical stimulation module. Secondly, since some users will unconsciously wave their hands during sleep, it is easy to cause the worn sleep aid device to be knocked off. Once knocked off, the sleep aid effect will be greatly reduced. In this embodiment, when one electrical stimulation module is knocked off, the other electrical stimulation module can continue to work to ensure the sleep aid effect, so this embodiment will also determine the risk of the two electrical stimulation modules being knocked off based on the hand movement trajectory, and then determine the second use priority of the two electrical stimulation modules. Finally, the first usage priority and the second usage priority are combined to determine which electrical stimulation module to use first, so as to meet the user's sleep-aiding needs and ensure the sleep-aiding effect as much as possible.
[0058] In one implementation, obtaining the EEG activity of the user within a preset time period includes:
[0059] Acquire brain wave data of the user within the preset time period, and determine two waveform envelope data according to the brain wave data;
[0060] Determine a plurality of pairs of data points that are evenly distributed in the two waveform envelope data, and obtain a first distance value between two data points in each pair of data points;
[0061] Determine an average distance value of two waveform envelope data according to the first distance values corresponding to each pair of data points;
[0062] The EEG activity is determined according to the average distance value.
[0063] Specifically, in order to easily extract the information reflected by the brain wave data, the present embodiment will first convert the brain wave data into two waveform envelope data, one waveform envelope data is obtained based on the connection of each peak value in the brain wave data, and the other waveform envelope data is obtained based on the connection of each valley value of the brain wave data. Therefore, the relative distance between the two waveform envelope data can reflect the gap between the peak value and the valley value in the brain wave data, thereby reflecting the fluctuation amplitude of the brain wave data. In order to obtain a more reliable and true relative distance between two waveform envelope data, the present embodiment selects several pairs of data points evenly distributed on the two waveform envelope data, each pair of data points corresponds to a horizontal coordinate, and by obtaining the average value of the relative distance between the two data points in each pair of data points, the distance between the two waveform envelope data can be determined, and then the fluctuation amplitude of the brain wave data can be accurately determined, and then the fluctuation amplitude of the brain wave data can be used to evaluate the current brain wave activity of the user.
[0064] In one implementation, determining the first usage priorities corresponding to the transcranial electrical stimulation module and the transcutaneous electrical stimulation module respectively according to the EEG activity includes:
[0065] Determining a sleep state category of the user according to the EEG activity;
[0066] When the sleep state category is awake, the first use priority of the transcranial electrical stimulation module is lower than the first use priority of the transcutaneous electrical stimulation module;
[0067] When the sleep state category is a quiet state, the first usage priority of the transcranial electrical stimulation module is greater than the first usage priority of the transcutaneous electrical stimulation module.
[0068] Specifically, the user's EEG activity is different in different sleep states. Usually, the sleep state is mainly divided into four types: awake state, calm state, light sleep state and deep sleep state. The EEG activity of the four sleep states decreases successively, and the need for sleep aid is usually related to the first two sleep states. The current intensity of the transcutaneous electrical stimulation module is higher than that of the transcranial electrical stimulation module, so the former has a better sleep aid effect. Since the EEG activity corresponding to the awake state is higher than that corresponding to the calm state, the need for sleep aid is greater in the awake state than in the calm state. This embodiment sets the user to give priority to the transcutaneous electrical stimulation module in the awake state, and give priority to the transcranial electrical stimulation module in the calm state. Thereby achieving dynamic switching of different electrical stimulation modules according to the user's sleep state.
[0069] In one implementation, the obtaining of the hand movement trajectory of the user within the preset time period includes:
[0070] Acquire a plurality of posture images corresponding to the upper body of the user within the preset time period,
[0071] Determine, according to each of the posture images, a plurality of moving parts of the user's upper body and the moving directions corresponding to each of the moving parts;
[0072] Determine an average moving direction according to each of the moving directions, and take the moving part corresponding to the moving direction with the largest difference from the average moving direction as the target moving part;
[0073] The moving trajectory of the target moving part is determined according to each of the posture images to obtain the hand moving trajectory.
[0074] Specifically, some users may flip over their bodies in addition to waving their hands while sleeping, so there may be multiple moving parts detected in the multiple posture images collected continuously. However, compared with the hands, the movement directions of other parts of the body are relatively limited, and usually they are horizontal displacements based on the flipping of the body. Only the movement directions of the hands are relatively diverse. Therefore, these posture images can be used to first determine the multiple moving parts that have been displaced and the moving directions of each moving part, and then the moving part whose moving direction is obviously different from that of other moving parts is determined as the target moving part, that is, the user's hand. Finally, the movement trajectory of the target moving part is extracted through each posture image, that is, the hand movement trajectory. Compared with traditional image analysis, this embodiment determines the area of the hand in the image by the moving direction, avoids the computational overhead of feature extraction, feature analysis and other links, and can quickly and easily identify the area where the hand is located in the image.
[0075] In one implementation, determining the second usage priorities corresponding to the transcranial electrical stimulation module and the transcutaneous electrical stimulation module respectively according to the hand movement trajectory includes:
[0076] Determining second distance values between the user's hand and the transcranial electrical stimulation module and the transcutaneous electrical stimulation module, respectively, according to the hand movement trajectory;
[0077] Determining the knockdown risk values corresponding to the transcranial electrical stimulation module and the transcutaneous electrical stimulation module respectively according to the second distance value between the transcranial electrical stimulation module and the transcutaneous electrical stimulation module;
[0078] The second usage priorities respectively corresponding to the transcranial electrical stimulation module and the transcutaneous electrical stimulation module are determined according to the knock-off risk values of the transcranial electrical stimulation module and the transcutaneous electrical stimulation module.
[0079] Specifically, the hand movement trajectory can be used to determine whether the user's hand is gradually approaching the transcranial electrical stimulation module and the transcutaneous electrical stimulation module, that is, the second distance value between the user's hand and the transcranial electrical stimulation module and the transcutaneous electrical stimulation module is obtained, and then the corresponding risk values of being knocked off the transcranial electrical stimulation module and the transcutaneous electrical stimulation module are determined. The higher the risk value of being knocked off, the lower the possibility that the module will play a normal sleep-aiding role in the future. Therefore, the module with a lower risk value of being knocked off should be used first, that is, the risk value of being knocked off is inversely proportional to the second usage priority.
[0080] In one implementation, regulating the operation of the transcranial electrical stimulation module and the transcutaneous electrical stimulation module according to the first usage priority and the second usage priority includes:
[0081] Performing a weighted calculation according to the first usage priority and the second usage priority, wherein a weight value of the second usage priority is greater than a weight value of the first usage priority;
[0082] The module with the largest weighted result between the transcranial electrical stimulation module and the transcutaneous electrical stimulation module is used as the operating module.
[0083] Specifically, this embodiment combines the first use priority and the second use priority in a weighted manner. Since the first use priority is related to the sleep-aiding effect, and the second use priority is related to whether the module can normally play the role of sleep-aiding in the future, and the sleep-aiding effect is only produced under the premise that the module functions stably, this embodiment sets the weight value of the second use priority to be greater than the weight value of the first use priority. The module with the larger weighted result may have better sleep-aiding effect and stability, so the module with the largest weighted result is preferentially used as the running module.
[0084] In one implementation, the method further includes:
[0085] Determining the degree of occlusion of the running module according to each of the posture images;
[0086] When the degree of shielding is greater than a preset threshold, module switching is performed.
[0087] Specifically, if the running module is blocked, it means that it may be covered by the user's body. In order to ensure that the sleep aid device can stably exert the sleep aid effect, this embodiment determines whether to switch modules according to the blocking degree of the running module.
[0088] Based on the above embodiments, the present invention further provides a method for automatically switching modules of a sleep aid device, the method being applied to the sleep aid device, the device comprising an electrical stimulation module, the electrical stimulation module comprising: a transcranial electrical stimulation module and a transcutaneous electrical stimulation module; the transcranial electrical stimulation module is in contact with the ear of the user; the transcutaneous electrical stimulation module is in contact with the forehead of the user; the transcranial electrical stimulation module and the transcutaneous electrical stimulation module are both used to emit current to stimulate the cranial nerves of the user, the current intensity of the transcranial electrical stimulation module is less than the current intensity of the transcutaneous electrical stimulation module; Figure 2 As shown, the method includes:
[0089] Step S100, obtaining the EEG activity of the user within a preset time period;
[0090] Step S200, determining the first usage priorities corresponding to the transcranial electrical stimulation module and the transcutaneous electrical stimulation module respectively according to the EEG activity;
[0091] Step S300, obtaining the hand movement trajectory of the user within the preset time period;
[0092] Step S400, determining the second usage priorities corresponding to the transcranial electrical stimulation module and the transcutaneous electrical stimulation module respectively according to the hand movement trajectory;
[0093] Step S500: regulating the operation of the transcranial electrical stimulation module and the transcutaneous electrical stimulation module according to the first usage priority and the second usage priority.
[0094] Based on the above embodiment, the present invention further provides a terminal, whose principle block diagram can be shown as follows: Figure 3 As shown. The terminal includes a processor, a memory, a network interface, and a display screen connected via a system bus. Among them, the processor of the terminal is used to provide computing and control capabilities. The memory of the terminal includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the terminal is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a method for automatically switching modules of a sleep aid device is implemented. The display screen of the terminal can be a liquid crystal display screen or an electronic ink display screen.
[0095] Those skilled in the art will understand that Figure 3 The principle block diagram shown in the figure is only a block diagram of a partial structure related to the scheme of the present invention, and does not constitute a limitation on the terminal to which the scheme of the present invention is applied. The specific terminal may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0096] In one implementation, the memory of the terminal stores one or more programs, and is configured to be executed by one or more processors, and the one or more programs include instructions for performing a method for automatically switching modules of a sleep aid device.
[0097] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided by the present invention can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0098] In summary, the present invention discloses a sleep aid device, method, terminal and storage medium with automatic module switching, the device includes an electrical stimulation module and a control module; the electrical stimulation module includes: a transcranial electrical stimulation module and a transcutaneous electrical stimulation module; the transcranial electrical stimulation module contacts the ear; the transcutaneous electrical stimulation module contacts the forehead; the control module is used to determine the first usage priority corresponding to the two modules according to the user's EEG activity; determine the second usage priority corresponding to the two modules according to the user's hand movement trajectory; and regulate the operation of the two modules according to the first usage priority and the second usage priority. The present invention integrates the transcranial electrical stimulation module and the transcutaneous electrical stimulation module into a sleep aid device, and dynamically switches the operation of the two modules through EEG activity and hand movement trajectory. Since the two modules act on different parts of the body respectively, it can effectively solve the problem that the current wearable sleep aid device only acts on one part of the body, and once it falls off, the sleep aid effect will be reduced.
[0099] It should be understood that the application of the present invention is not limited to the above examples. For ordinary technicians in this field, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A sleep aid device with automatic module switching, characterized in that: The device includes an electrical stimulation module and a control module; The electrical stimulation module comprises: a transcranial electrical stimulation module and a transcutaneous electrical stimulation module; the transcranial electrical stimulation module contacts the ear of the user; the transcutaneous electrical stimulation module contacts the forehead of the user; the transcranial electrical stimulation module and the transcutaneous electrical stimulation module are both used to emit current to stimulate the cranial nerves of the user, and the current intensity of the transcranial electrical stimulation module is less than the current intensity of the transcutaneous electrical stimulation module; The control module is used to obtain the EEG activity of the user within a preset time period; Determining the first usage priorities respectively corresponding to the transcranial electrical stimulation module and the transcutaneous electrical stimulation module according to the EEG activity, including: determining the sleep state category of the user according to the EEG activity; when the sleep state category is awake, the first usage priority of the transcranial electrical stimulation module is less than the first usage priority of the transcutaneous electrical stimulation module; when the sleep state category is calm, the first usage priority of the transcranial electrical stimulation module is greater than the first usage priority of the transcutaneous electrical stimulation module; Acquiring the hand movement trajectory of the user within the preset time period; Determining the second usage priorities corresponding to the transcranial electrical stimulation module and the transcutaneous electrical stimulation module respectively according to the hand movement trajectory, including: determining the second distance values between the user's hand and the transcranial electrical stimulation module and the transcutaneous electrical stimulation module respectively according to the hand movement trajectory; determining the knockdown risk values corresponding to the transcranial electrical stimulation module and the transcutaneous electrical stimulation module respectively according to the second distance values of the transcranial electrical stimulation module and the transcutaneous electrical stimulation module; determining the second usage priorities corresponding to the transcranial electrical stimulation module and the transcutaneous electrical stimulation module respectively according to the knockdown risk values of the transcranial electrical stimulation module and the transcutaneous electrical stimulation module; The operation of the transcranial electrical stimulation module and the transcutaneous electrical stimulation module are regulated according to the first usage priority and the second usage priority.
2. The sleep aid device with automatic switching module according to claim 1, characterized in that: The obtaining of the EEG activity of the user within a preset time period includes: Acquire brain wave data of the user within the preset time period, and determine two waveform envelope data according to the brain wave data; Determine a plurality of pairs of data points that are evenly distributed in the two waveform envelope data, and obtain a first distance value between two data points in each pair of data points; Determine an average distance value of two waveform envelope data according to the first distance values corresponding to each pair of data points; The EEG activity is determined according to the average distance value.
3. The sleep aid device with automatic switching module according to claim 1, characterized in that: The obtaining of the hand movement trajectory of the user within the preset time period includes: Acquire a plurality of posture images corresponding to the upper body of the user within the preset time period, Determine, according to each of the posture images, a plurality of moving parts of the user's upper body and the moving directions corresponding to each of the moving parts; Determine an average moving direction according to each of the moving directions, and take the moving part corresponding to the moving direction with the largest difference from the average moving direction as the target moving part; The moving trajectory of the target moving part is determined according to each of the posture images to obtain the hand moving trajectory.
4. The sleep aid device with automatic switching module according to claim 3, characterized in that: The regulating the operation of the transcranial electrical stimulation module and the transcutaneous electrical stimulation module according to the first usage priority and the second usage priority includes: Performing a weighted calculation according to the first usage priority and the second usage priority, wherein a weight value of the second usage priority is greater than a weight value of the first usage priority; The module with the largest weighted result between the transcranial electrical stimulation module and the transcutaneous electrical stimulation module is used as the operating module.
5. The sleep aid device with automatic switching module according to claim 4, characterized in that: The device is also used for: Determining the degree of occlusion of the running module according to each of the posture images; When the degree of shielding is greater than a preset threshold, module switching is performed.
6. A method for automatically switching modules of a sleep aid device, characterized in that: The method is applied to a sleep aid device, the device includes an electrical stimulation module, the electrical stimulation module includes: a transcranial electrical stimulation module and a transcutaneous electrical stimulation module; the transcranial electrical stimulation module is in contact with the ear of the user; the transcutaneous electrical stimulation module is in contact with the forehead of the user; the transcranial electrical stimulation module and the transcutaneous electrical stimulation module are both used to emit current to stimulate the cranial nerves of the user, and the current intensity of the transcranial electrical stimulation module is less than the current intensity of the transcutaneous electrical stimulation module; the method includes: Obtaining the EEG activity of the user within a preset time period; Determining the first usage priorities respectively corresponding to the transcranial electrical stimulation module and the transcutaneous electrical stimulation module according to the EEG activity, including: determining the sleep state category of the user according to the EEG activity; when the sleep state category is awake, the first usage priority of the transcranial electrical stimulation module is less than the first usage priority of the transcutaneous electrical stimulation module; when the sleep state category is calm, the first usage priority of the transcranial electrical stimulation module is greater than the first usage priority of the transcutaneous electrical stimulation module; Acquiring the hand movement trajectory of the user within the preset time period; Determining the second usage priorities corresponding to the transcranial electrical stimulation module and the transcutaneous electrical stimulation module respectively according to the hand movement trajectory, including: determining the second distance values between the user's hand and the transcranial electrical stimulation module and the transcutaneous electrical stimulation module respectively according to the hand movement trajectory; determining the knockdown risk values corresponding to the transcranial electrical stimulation module and the transcutaneous electrical stimulation module respectively according to the second distance values of the transcranial electrical stimulation module and the transcutaneous electrical stimulation module; determining the second usage priorities corresponding to the transcranial electrical stimulation module and the transcutaneous electrical stimulation module respectively according to the knockdown risk values of the transcranial electrical stimulation module and the transcutaneous electrical stimulation module; The operation of the transcranial electrical stimulation module and the transcutaneous electrical stimulation module are regulated according to the first usage priority and the second usage priority.
7. A terminal, characterized in that: The terminal includes a memory and one or more processors; the memory stores one or more programs; the programs include instructions for executing the method of automatically switching the module of the sleep aid device as described in any one of claims 1 to 5; and the processor is used to execute the programs.
8. A computer-readable storage medium having a plurality of instructions stored thereon, characterized in that: The instructions are suitable for being loaded and executed by a processor to implement the steps of the method for automatically switching modules of a sleep aid device as described in any one of claims 1 to 5.
Citation Information
Patent Citations
Intelligent complex-waveform transcranial electric stimulation system
CN107684664A
Intelligent sleep assistance system with transcranial magnetic stimulation
CN109453453A
Cited By
Mask for electrosleep and transcranial electrical stimulation procedures
RU243610U1