Light-electric combined neural regulation sleep-promoting device and related products
By dynamically adjusting electrical stimulation and light stimulation, and performing personalized processing according to the user's EEG signal status, the problem of poor sleep promotion effect caused by fixed stimulation methods in the existing technology is solved, and sleep quality is significantly improved.
Patent Information
- Application Number
- CN202411045630.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-01
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-08-01
AI Technical Summary
Existing sleep control devices use fixed stimulation methods and lack pertinence, resulting in poor sleep promotion effects.
Through the collection of EEG signals, the parameters of electrical stimulation and light stimulation are dynamically adjusted, and personalized electrical and light stimulation is carried out according to the user's EEG signal status to improve the pertinence and effect.
It improves the pertinence and effect of sleep promotion, ensures the adaptability of electrical and light stimulation to the user's EEG signal, and enhances sleep quality.
Smart Images

Figure CN118557870B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of medical technology, and specifically to a light-electric combined neural regulation sleep-promoting device and related products. Background Art
[0002] With the acceleration of the pace of modern life, sleep quality problems seriously affect people's normal daily life. Severe sleep disorders can cause neurasthenia and decreased immunity of patients. At present, sleep control devices can be used to stimulate users to alleviate their insomnia. However, when existing sleep control devices are used to treat users, they often use fixed stimulation methods to stimulate users. This stimulation method is not targeted, thereby reducing the sleep promotion effect on users. Summary of the invention
[0003] The present application provides a light-electric combined neural regulation sleep-promoting device and related products, which determine appropriate electrical stimulation and light stimulation for each user based on the user's EEG signals, thereby improving the sleep-promoting effect of electrical stimulation and light stimulation on the user.
[0004] In a first aspect, the present application provides a light-electric combined neural regulation sleep-promoting device, the device comprising an EEG acquisition module, a stimulation electrode, a light source, and a processing module;
[0005] The processing module is used to obtain the treatment duration and the preset sleep duration;
[0006] The processing module is used to perform a first electrical stimulation for the treatment duration on the ears of the user through the stimulation electrodes, and to perform a first optical stimulation for the treatment duration on the eyes of the user through the light source;
[0007] The processing module is used to collect the EEG signal of the user through the EEG collection module at a start time to obtain a plurality of first EEG signals, wherein the start time is a time when the first electrical stimulation and the first light stimulation are started to be performed on the user;
[0008] The processing module is used to collect the second EEG signal of the user through the EEG collection module after the treatment time;
[0009] The processing module is used to perform a second electrical stimulation on the ears of the user through the stimulation electrodes and to perform a second optical stimulation on the eyes of the user through the light source based on the multiple first EEG signals, the second EEG signal and the preset sleep duration.
[0010] In a second aspect, the present application provides a method for promoting sleep by combining light and electricity with neural regulation, the method is applied to a device for promoting sleep by combining light and electricity with neural regulation, the device for promoting sleep by combining light and electricity with neural regulation includes an electroencephalogram acquisition module, a stimulation electrode, a light source, and a processing module; the method includes:
[0011] Get treatment duration and preset sleep duration;
[0012] Performing a first electrical stimulation for the treatment duration on the ears of the user, and performing a first optical stimulation for the treatment duration on the eyes of the user;
[0013] Collecting an electroencephalogram signal of the user at a start time to obtain a plurality of first electroencephalogram signals, wherein the start time is a time when the first electrical stimulation and the first optical stimulation are started on the user;
[0014] After the treatment time, collecting a second EEG signal of the user;
[0015] Based on the multiple first EEG signals, the second EEG signal and the preset sleep duration, a second electrical stimulation is performed on the ears of the user, and a second optical stimulation is performed on the eyes of the user.
[0016] In a third aspect, the present application provides an electronic device, comprising: a processor and a memory, the processor being connected to the memory, the memory being used to store a computer program, and the processor being used to execute the computer program stored in the memory, so that the electronic device performs the method of the second aspect.
[0017] In a fourth aspect, the present application provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the method described in the second aspect is implemented.
[0018] In a fifth aspect, the present application provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, it implements the method described in the second aspect.
[0019] Implementing the embodiments of the present application has the following beneficial effects:
[0020] It can be seen that in the embodiment of the present application, the treatment duration and the preset sleep duration are obtained; the first electrical stimulation for the treatment duration is performed on the user's ears, and the first light stimulation for the treatment duration is performed on the user's eyes; the user's EEG signal is collected at the start time to obtain multiple first EEG signals, wherein the start time is the time when the first electrical stimulation and the first light stimulation are started on the user; after the treatment duration, the user's second EEG signal is collected; based on the multiple first EEG signals, the second EEG signal and the preset sleep duration, the user's ears are subjected to a second electrical stimulation, and the user's eyes are subjected to a second light stimulation. In the present application, the multiple first EEG signals are collected when the first electrical stimulation and the first light stimulation are started on the user, and the user will not immediately fall asleep, therefore, the multiple first EEG signals are EEG signals of the user in an awake state. Then, after the user is subjected to the first light stimulation and the first electrical stimulation, the user's second EEG signal will be collected again, that is, the second EEG signal is the EEG signal obtained by the user after receiving the first electrical stimulation and the first light stimulation. Finally, based on the user's multiple first EEG signals in the awake state, the second EEG signal after receiving the first electrical stimulation and the first light stimulation, and the preset sleep duration, the second light stimulation and the second electrical stimulation are determined for the user again to adapt to the user's state after receiving the first electrical stimulation and the first light stimulation. That is to say, in the present application, the second light stimulation and the second electrical stimulation will be determined for each user in a targeted manner, rather than using fixed light stimulation and electrical stimulation to continuously stimulate the user. Targeted determination of the second light stimulation and the second electrical stimulation for each user can improve the compatibility of the second light stimulation and the second electrical stimulation with the user's EEG signal, thereby ensuring that the second light stimulation and the second electrical stimulation can better promote the user's sleep, and improve the effect of the light-electric combined neural regulation sleep-promoting device on the user's sleep. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0022] Figure 1 A schematic diagram of a scenario of light-electric combined neural regulation to promote sleep provided in an embodiment of the present application;
[0023] Figure 2 A schematic diagram of the functional modules of a light-electric combined neural regulation sleep-promoting device provided in an embodiment of the present application;
[0024] Figure 3A schematic diagram of a light-electric combined neural regulation sleep-promoting device provided in an embodiment of the present application;
[0025] Figure 4 A schematic diagram of another optical-electrical combined neural regulation sleep-promoting device provided in an embodiment of the present application;
[0026] Figure 5 A schematic diagram of a process for promoting sleep by combining light and electricity with neural regulation provided in an embodiment of the present application;
[0027] Figure 6 A schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0028] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0029] The terms "first", "second", "third" and "fourth" etc. in the specification, claims and drawings of the present application are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes steps or units that are not listed, or optionally includes other steps or units inherent to these processes, methods, products or devices.
[0030] Reference to "embodiments" herein means that a particular feature, result, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0031] In order to facilitate understanding of the technical solution of the present application, the relevant technologies involved in the present application are first explained and illustrated.
[0032] The EEG signal acquisition module in this application records the brain's EEG signals by placing electrodes on the user's head.
[0033] It should be noted that the consciousness state in this application includes a deep sleep state and a non-deep sleep state.
[0034] Deep sleep state: also known as positive sleep state or non-rapid eye movement (NREM) sleep state, which is characterized by synchronized slow waves on the electroencephalogram. Therefore, deep sleep state can also be called slow-wave sleep state.
[0035] Non-deep sleep state: usually refers to the rapid eye movement (REM) sleep state, also known as the paradoxical sleep state or the rapid eye movement (REM) sleep state. Compared with the deep sleep state, the brain activity during the non-deep sleep state is more active, and the EEG shows a low-amplitude, high-frequency waveform. In this stage, the eye movement is fast and accompanied by dreams, so the non-deep sleep state can also be called the non-slow-wave sleep state.
[0036] Delta wave: The frequency of Delta wave is usually between 0.5 and 4 Hz. This slow wave mainly appears in the deep sleep stage, especially in the deep sleep stage of adults. When entering deep sleep, the activity of Delta wave gradually increases, and its intensity can be used as an indicator of sleep quality. The preset band in this application refers to Delta wave.
[0037] It should be noted that in the present application, the light-electric combined neural regulation sleep-promoting device is mainly used to adjust the user's insomnia symptoms, the pure yellow light source is used to promote the user to fall asleep, and the pure blue light source is used to promote the user to wake up. Specifically, the pure yellow light source is used to promote the secretion of melatonin to promote the user to fall asleep, and the pure blue light source is used to inhibit the secretion of melatonin to promote the user to wake up. The light-electric combined neural regulation sleep-promoting device can be an eye mask. In the present application, the light-electric combined neural regulation sleep-promoting device is an eye mask as an example for explanation.
[0038] See also Figure 1 , Figure 1 A schematic diagram of a scenario of light-electric combined neural regulation to promote sleep provided in an embodiment of the present application.
[0039] From the structure of the light-electric combined neural regulation sleep-promoting device, Figure 1 As shown, the light-electric combined neural regulation sleep-promoting device includes: an eye mask body, two eye mask structures (such as Figure 1 The first mask eye structure and the second mask eye structure in the figure), two stimulation lines (such as Figure 1 The first stimulation line and the second stimulation line in the two stimulation electrodes (such as Figure 1The invention relates to a method for manufacturing a plurality of eye mask structures, comprising: manufacturing a first stimulation electrode and a second stimulation electrode in the eye mask; and a fixing belt, wherein the eye mask body and the two stimulation electrodes are connected via two stimulation lines respectively, the two eye-covering structures are symmetrically distributed in the middle of the eye mask body, the eye-covering structures are used to cover the user's eyes via the two eye-covering structures when the user uses the eye mask, one end of the fixing belt is connected to the left side of the eye mask body, and the other end is connected to the right side of the eye mask body, wherein the fixing belt is used to fix the position of the eye mask body, and the fixing belt is a fixing belt with variable length.
[0040] When it is time to sleep, the user (e.g. Figure 1 The user in the example may wear a light-electric combined neural regulation sleep-promoting device, and wear the light-electric combined neural regulation sleep-promoting device on the user's head (such as Figure 1 Specifically, the two eye mask structures in the optical-electric combined neural regulation and sleep-promoting device are worn on the eye parts of the user's head, the eye mask body is fixed by a fixing belt, and the two stimulation electrodes of the optical-electric combined neural regulation and sleep-promoting device are clamped on the ears respectively. The treatment duration and the preset sleep duration are obtained through the optical-electric combined neural regulation sleep-promoting device; the first electrical stimulation for the treatment duration is performed on the user through the stimulation electrodes in the optical-electric combined neural regulation sleep-promoting device, and the first light stimulation for the treatment duration is performed on the user's eyes through the light source in the optical-electric combined neural regulation sleep-promoting device; at the start time, the user's EEG signal is collected through the EEG acquisition module in the optical-electric combined neural regulation sleep-promoting device to obtain a plurality of first EEG signals, wherein the start time is the time when the first electrical stimulation and the first light stimulation are started on the user; after the treatment duration, the user's second EEG signal is collected through the EEG acquisition module in the optical-electric combined neural regulation sleep-promoting device; based on the plurality of first EEG signals, the second EEG signal and the preset sleep duration, the user's ears are subjected to a second electrical stimulation through the stimulation electrodes in the optical-electric combined neural regulation sleep-promoting device, and the user's eyes are subjected to a second light stimulation through the light source in the optical-electric combined neural regulation sleep-promoting device.
[0041] See also Figure 3 , Figure 3 A schematic diagram of a light-electric combined neural regulation sleep-promoting device provided in an embodiment of the present application.
[0042] From the perspective of the functions of the optical-electrical combined neural regulation sleep-promoting device, the optical-electrical combined neural regulation sleep-promoting device includes: an EEG acquisition module, a stimulation electrode, a light source, and a processing module (such as Figure 2 EEG acquisition module, stimulation electrode, light source and processing module). Figure 3As shown, the EEG acquisition module includes a first differential electrode and a second differential electrode, and a ground electrode, the stimulation electrode includes a first stimulation electrode and a second stimulation electrode, the light source includes a pure blue light source and a pure yellow light source, and the processing module includes a first processing module and a second processing module. The light sources are distributed in two eye mask structures, and the eye mask structures are used to cover the user's eyes through the two eye mask structures when the user uses the eye mask, wherein each eye mask structure is provided with the pure yellow light source and the pure blue light source, and the pure yellow light source and the pure blue light source arranged on each eye mask structure are distributed at intervals, and further, the interval between each light source is equal, that is, the pure yellow light source and the pure blue light source are evenly distributed on each eye mask structure. In addition, as Figure 3 As shown, the light-electricity combined nerve regulation sleep-promoting device also includes: a fixing belt and a stimulation line. The fixing belt is used to fix the light-electricity combined nerve regulation sleep-promoting device, and the stimulation line is used to connect the first stimulation electrode and the second stimulation electrode to the eye mask body.
[0043] It should be noted that in order to balance the weights on the left and right sides of the optical-electric combined neural regulation sleep-promoting device, the volume material of the first processing module and the second processing module are the same; in addition, in order to speed up the calculation efficiency, the first processing module and the second processing module can also be responsible for different functions of the optical-electric combined neural regulation sleep-promoting device, for example, the first processing module can be used to obtain the treatment time and the preset sleep time; the first electrical stimulation of the user's ear for the treatment time is performed through the stimulation electrode, and the first light stimulation of the user's eye for the treatment time is performed through the light source; it is used to collect the user's EEG signal through the EEG acquisition module at the beginning to obtain multiple first EEG signals; it is used to collect the user's second EEG signal through the EEG acquisition module after the treatment time; the second processing module can be used to perform a second electrical stimulation on the user's ear through the stimulation electrode and a second light stimulation on the user's eye through the light source based on the multiple first EEG signals, the second EEG signal and the preset sleep time. It should be noted that the above-mentioned functional division of the first processing module and the second processing module is only for example, and does not limit the functional division method of the first processing module and the second processing module.
[0044] It should be noted that the EEG acquisition module, stimulation electrodes, light source and processing module in the present application can exist independently or be integrated into one processing unit, and the present application does not make any specific limitations thereon.
[0045] Exemplarily, before starting to perform electrical stimulation and light stimulation on the user, the processing module needs to obtain the treatment duration and the preset sleep duration, wherein each user can freely set the treatment duration and the preset sleep duration that suits their own habits. The treatment duration refers to the duration of each light stimulation and electrical stimulation, and the preset sleep duration refers to the desired sleep duration set by the user, such as eight hours. Further, after the setting is completed, the processing module can obtain the treatment duration and the preset sleep duration, and start to perform the first light stimulation and the first electrical stimulation on the user at the same time.
[0046] It should be noted that, optionally, the user can set the treatment duration and the preset sleep duration by pressing buttons on the optical-electric combined neural regulation sleep-promoting device. Figure 4 As shown, Figure 4 The first button, the second button, the first indicator light corresponding to the first button, the second indicator light corresponding to the second button, and the first processing module can be used to obtain the treatment time and the preset sleep time set by the user. Specifically, the first button is the button corresponding to the treatment time, the first button corresponds to the first indicator light, and the user can set the treatment time through the first button. Specifically, the first processing module sets a basic treatment time and a maximum treatment time. If n press operations of the user are detected, n-1 third preset time lengths are added to the basic treatment time. If the user's continuous pressing causes the treatment time to exceed the maximum treatment time, it returns to the basic treatment time. At the same time, each time a user's pressing operation is detected, the color of the first indicator light changes once, and each color corresponds to a different treatment time, until no user's pressing operation is detected within the fourth preset time length, the treatment time corresponding to the user's last pressing operation is used as the treatment time. For example, the basic treatment time is 30 minutes, the third preset time is 15 minutes, and the maximum treatment time is 60 minutes. The colors of the first indicator light include red, yellow and blue, among which the treatment time corresponding to red is 30 minutes, the treatment time corresponding to yellow is 45 minutes, and the treatment time corresponding to blue is 60 minutes. That is, if the user presses the first button once, the color of the first indicator light is red, if the user presses the first button twice, the color of the first indicator light is yellow, and if the user presses the first button three times, the color of the first indicator light is blue. When the user presses the first button for the fourth time, since the treatment time (75 minutes) at this time is greater than the maximum treatment time (60 minutes), it will return to the basic treatment time at this time, that is, the treatment time indicated by the user pressing the first button for the fourth time is 30 minutes, and the color of the first indicator light is red. If the pressing operation of the first button is not detected within the fourth preset time (for example, 30s), the treatment time is determined to be 30 minutes.
[0047] Similarly, the second button is a button corresponding to the preset sleep duration, and the second button corresponds to the second indicator light. The user can set the preset sleep duration through the second button. Specifically, the first processing module sets a basic sleep duration and a maximum sleep duration. If n presses by the user are detected, n-1 fifth preset durations are added to the basic sleep duration. If the user's continuous pressing causes the preset sleep duration to exceed the maximum sleep duration, it returns to the basic sleep duration. At the same time, each time a press operation by the user is detected, the color of the second indicator light changes once, and each color corresponds to a different preset sleep duration, until no press operation by the user is detected within the fourth preset duration, the preset sleep duration corresponding to the user's last press operation is used as the preset sleep duration. The specific setting method is similar to the setting method of the above-mentioned treatment duration, and this application will not repeat it here.
[0048] It should be stated that Figure 4 Other features in Figure 3 Detailed description is given in the present application and will not be repeated here.
[0049] It should be noted that the present application does not limit the method for setting the treatment duration and the preset sleep duration. Specifically, the user can also set the treatment duration and the preset sleep duration respectively by setting the treatment duration setting button and the preset sleep duration setting button on the light-electric combined neural regulation sleep-promoting device. For example, six buttons can be set on the light-electric combined neural regulation sleep-promoting device, of which three are treatment duration setting buttons and the other three are preset sleep duration setting buttons. In the treatment duration setting button, the three buttons respectively represent the treatment durations of 15 minutes, 30 minutes, and 45 minutes, etc.; in the preset sleep duration setting button, the three buttons respectively represent the preset sleep durations of 6 hours, 8 hours, and 10 hours, etc. Alternatively, a first button, a second button, and a speaker can be set, the first button is used to set the treatment duration, and the second button is used to set the preset sleep duration. Every time the user presses the first button, the processing module will broadcast the corresponding treatment time through the speaker, and every time the user presses the second button, the processing module will also broadcast the corresponding preset sleep time through the speaker. Until no user pressing operation is detected within the fourth preset time, the last broadcasted treatment time will be used as the treatment time, or the last broadcasted preset sleep time will be used as the preset sleep time.
[0050] Specifically, the processing module performs a first electrical stimulation of the user's ear for a treatment duration by controlling the stimulation electrode, and performs a first optical stimulation of the user's eye for a treatment duration by using a light source. The stimulation electrode includes a first stimulation electrode and a second stimulation electrode, the first stimulation electrode and the second stimulation electrode are respectively clamped on the user's ear, the first stimulation electrode and the second stimulation electrode are respectively connected to the eye mask body through a stimulation line, and the current flows to the stimulation electrode through the stimulation line, and then the user's ear is electrically stimulated. Furthermore, the first optical stimulation can be optical stimulation performed by a pure yellow light source in the light source, and the user is promoted to fall asleep by electrical stimulation and optical stimulation at the same time.
[0051] Optionally, the processing module is used to collect the user's EEG signal through the EEG acquisition module at the start time to obtain multiple first EEG signals, wherein the start time is the time when the first electrical stimulation and the first light stimulation are started to be performed on the user. Because the user is still in a sober state at the time of starting the first light stimulation and the first electrical stimulation to the user, the EEG signal of the user in the sober state can be collected by the EEG acquisition module to obtain multiple first EEG signals. Specifically, the number of first EEG signals can be a preset number. When the EEG acquisition module collects EEG signals, each EEG signal collected will be subjected to noise discrimination by the processing module. If it is determined that the EEG signal is a noise segment, the EEG signal of the noise segment is discarded; if it is determined that the EEG signal is a non-noise segment, the EEG signal of the non-noise segment is used as the first EEG signal until a preset number of multiple first EEG signals are collected, wherein the duration of each first EEG signal is the same.
[0052] Further, the processing module performs noise discrimination on the collected EEG signal, including: determining the first energy of the Beta wave and the second energy of the Delta wave in the EEG signal, if the first energy is greater than the second energy, the EEG signal is a noise segment and should be removed and not used as the first EEG signal for subsequent threshold determination; if the first energy is less than the second energy, the EEG signal is a non-noise segment and should be retained as the first EEG signal for subsequent threshold determination. In EEG analysis, noise segments usually refer to time periods that do not contain useful neurophysiological information. If the energy of the Beta wave is higher than that of the Delta wave, this high-energy Beta wave activity may be caused by external interference or muscle activity, and is therefore not considered a true signal reflecting normal brain function. If the energy of the Beta wave is abnormally elevated, this may be due to interference caused by muscle activity, electrode movement or other non-EEG activity. In this case, this part of the data may not be suitable for clinical evaluation or research purposes. Therefore, if the energy of the Beta wave is higher than that of the Delta wave, care should be taken to check whether there is an interference source, and consider excluding these noise segments to improve the accuracy of data analysis.
[0053] Exemplarily, after the treatment time, the processing module collects the user's second EEG signal through the EEG acquisition module. It should be noted that after the treatment time refers to the time when the time interval from the start time is a preset time, that is, the time after the first electrical stimulation and the first light stimulation are completed.
[0054] Exemplarily, the processing module is used to perform a second electrical stimulation on the ears of the user through the stimulation electrodes, and a second optical stimulation on the eyes of the user through the light source based on multiple first EEG signals, second EEG signals, and preset sleep duration. Specifically, it includes: determining the threshold corresponding to the preset band in the multiple first EEG signals based on the multiple first EEG signals; determining the state of consciousness of the user based on the threshold and the second EEG signal; obtaining the time interval between the start time and the first time, wherein the first time is the time to stop collecting the second EEG signal; based on the state of consciousness, the time interval, and the preset sleep duration, performing a second electrical stimulation on the ears of the user through the stimulation electrodes, and performing a second optical stimulation on the eyes of the user through the light source.
[0055] Specifically, based on multiple first EEG signals, the threshold corresponding to the preset band in the multiple first EEG signals is determined, wherein the preset band can be a Delta wave. The fifth EEG signal corresponding to the preset band in each first EEG signal is obtained. It should be noted that before the fifth EEG signal corresponding to the preset band in each first EEG signal is obtained, the multiple first EEG signals need to be denoised to obtain multiple denoised first EEG signals. Specifically, each of the multiple first EEG signals is subjected to 50Hz notch and 0.5-30Hz bandpass filtering. A band-stop filter is designed, and parameters are set to filter out 50Hz power frequency noise, remove 50Hz power line noise and its harmonics mixed in the first EEG signal, and this noise will have a significant impact on the first EEG signal, covering up or distorting the real signal of brain activity. By notch filtering, this external interference can be effectively reduced, thereby improving the quality and reliability of the first EEG signal data. Bandpass filtering is performed on the multiple first EEG signals after denoising to determine the fifth EEG signal corresponding to the preset band in each first EEG signal. Specifically, each first EEG signal after denoising is bandpass filtered by second-order bandpass filtering to obtain the fifth EEG signal corresponding to the preset band in each first EEG signal, that is, the fifth EEG signal corresponding to the Delta wave (0.5-4Hz) in each first EEG signal.
[0056] Each fifth EEG signal is segmented to obtain a plurality of EEG signal segments corresponding to each fifth EEG signal, including: windowing each fifth EEG signal based on a first preset window to obtain a plurality of EEG signal segments corresponding to each fifth EEG signal. The first preset window is slid along the timing direction of each fifth EEG signal with a first preset step length to obtain a plurality of EEG signal segments corresponding to each fifth EEG signal, wherein, because the Delta wave fluctuates at a lower frequency, in order to fully reflect the changing characteristics of the Delta wave, the length of the first preset window should be greater than the first preset value.
[0057] Obtain the fourth standard deviation of multiple EEG signal segments corresponding to each fifth EEG signal; take an example to determine the fourth standard deviation of multiple fifth EEG signal segments corresponding to the ith fifth EEG signal, wherein the ith fifth EEG signal is any one of the multiple fifth EEG signals. Determine the sum of squares of the amplitudes of each EEG signal segment in the ith fifth EEG signal, wherein the sum of squares represents the total energy of the corresponding EEG signal segment, and determine the standard deviation between the sum of squares of the amplitudes of each EEG signal segment in the ith fifth EEG signal, thereby obtaining the fourth standard deviation of the ith fifth EEG signal. Based on the method for determining the fourth standard deviation of the ith fifth EEG signal, determine the fourth standard deviation of multiple EEG signal segments corresponding to each fifth EEG signal.
[0058] Based on the fourth standard deviation corresponding to each fifth EEG signal, the average standard deviation of the plurality of fifth EEG signals and the fifth standard deviation of the plurality of fifth EEG signals are determined. That is, the fourth standard deviation corresponding to each fifth EEG signal is averaged to obtain the average standard deviation of the plurality of fifth EEG signals, and based on the fourth standard deviation corresponding to each fifth EEG signal, the standard deviation is calculated again to obtain the fifth standard deviation of the plurality of fifth EEG signals.
[0059] The threshold is determined based on the average standard deviation and the fifth standard deviation. Specifically, the sum of the average standard deviation and the fifth standard deviation can be directly used as the threshold, or the threshold can be determined based on the average standard deviation and k times the fifth standard deviation. Specifically, the sum of the average standard deviation and k times the fifth standard deviation can be used as the threshold, or the difference between the average standard deviation and k times the fifth standard deviation can be used as the threshold.
[0060] It should be noted that in this application, the threshold is used to determine whether the user has entered a sleeping state. If the user has entered a sleeping state, the Delta wave should fluctuate greatly according to the changing nature of the Delta wave when the user enters a sleeping state from an awake state. Because the average standard deviation is measured when the user is awake, therefore, when determining whether the user has entered a sleeping state, the difference between the threshold and the average standard deviation should be as large as possible. In other words, the threshold cannot be determined solely based on the average standard deviation as a basis for determining whether the user has entered a sleeping state. Because, if it is only greater than the average standard deviation, it does not mean that the Delta wave has fluctuated greatly, that is, it cannot be determined that the user has entered a sleeping state.
[0061] Further, the sum of the average standard deviation and k times the fifth standard deviation, or the difference between the average standard deviation and k times the fifth standard deviation, is used as a threshold. The fifth standard deviation represents the degree of fluctuation of the fourth standard deviation corresponding to multiple fifth EEG signals. In order for the threshold to be able to judge whether the Delta wave has a large fluctuation, the threshold should be significantly higher than the maximum value of the fourth standard deviation of multiple fifth EEG signals, or significantly lower than the minimum value of the fourth standard deviation of multiple fifth EEG signals. Therefore, the absolute value of the difference between the threshold and the maximum value in the fourth standard deviation, or the absolute value of the difference between the threshold and the minimum value in the fourth standard deviation should be greater than the second preset value and less than the third preset value. For example, k can be set to 8, 10, 12, etc. to ensure that the threshold is significantly higher than the maximum value of the fourth standard deviation of multiple fifth EEG signals, or significantly lower than the minimum value of the fourth standard deviation of multiple fifth EEG signals. The second preset value and the third preset value are used to ensure that the absolute value of the difference between the threshold and the maximum value in the fourth standard deviation, or the absolute value of the difference between the threshold and the minimum value in the fourth standard deviation, are both within the range of the second preset value to the third preset value to avoid the threshold being too large or too small.
[0062] It can be seen that in the embodiment of the present application, the threshold is determined based on the average standard deviation and k times the fifth standard deviation, so that the threshold is significantly higher than the maximum value of the fourth standard deviation of multiple fifth EEG signals, or significantly lower than the minimum value of the fourth standard deviation of multiple fifth EEG signals, so that the threshold can have the function of judging whether the Delta wave has a large fluctuation, thereby improving the accuracy of the threshold determination, so as to further improve the accuracy of determining the user's state of consciousness.
[0063] Furthermore, a threshold is determined for each user in a waking state, and the adaptability of the threshold to each user is improved, so that the consciousness state of each user can be accurately determined in subsequent steps.
[0064] Exemplarily, the user's state of consciousness is determined based on the threshold and the second EEG signal, specifically including: if the duration of collecting the second EEG signal at the second moment is greater than the first preset duration, then obtaining a third EEG signal of the first preset duration before the second moment from the second EEG signal collected at the second moment; obtaining a fourth EEG signal corresponding to a preset band in the third EEG signal; based on the fourth EEG signal, determining the first standard deviation of the fourth EEG signal; and determining the user's state of consciousness based on the first standard deviation and the threshold.
[0065] Specifically, if the duration of collecting the second EEG signal at the second moment is longer than the first preset duration, then the third EEG signal of the first preset duration before the second moment is obtained from the second EEG signal collected at the second moment. Among them, the third EEG signal is used to calculate the characteristics of the Delta wave. Because the Delta wave fluctuates at a lower frequency, the Delta wave needs to collect a longer EEG signal to fully reflect the fluctuation characteristics of the Delta wave. Therefore, it is necessary to collect the second moment, that is, when the duration of the collected second EEG signal is longer than the first preset duration, the third EEG signal of the first preset duration before the second moment can be obtained for the subsequent judgment of the state of consciousness. That is, in order to make the obtained EEG signal fully express the fluctuation frequency of the Delta wave, it is necessary to start judging the state of consciousness of the user only when the length of the second EEG signal reaches the first preset duration.
[0066] Similarly, obtaining a fourth EEG signal corresponding to a preset band in a third EEG signal includes: denoising the third EEG signal to obtain a denoised third EEG signal; bandpass filtering the denoised third EEG signal to obtain a fourth EEG signal corresponding to a preset band (i.e., Delta wave) in the third EEG signal. The specific denoising and bandpass filtering methods are similar to the aforementioned denoising of multiple first EEG signals and the bandpass filtering of multiple denoised first EEG signals, and are not described in detail in this application.
[0067] Based on the fourth EEG signal, the first standard deviation of the fourth EEG signal is determined. Specifically, the amplitudes of the fourth EEG signal at each moment within the first preset time period are averaged, the amplitudes are converted into positive numbers, and then the standard deviation of the averaged amplitudes is calculated to obtain the first standard deviation of the fourth EEG signal.
[0068] Exemplarily, based on the first standard deviation and the threshold, the user's state of consciousness is determined, specifically including: if the first standard deviation is less than the threshold, determining that the state of consciousness is a non-deep sleep state; if the first standard deviation is greater than the threshold, sequentially obtaining the second standard deviation of each moment within a second preset time period after the second moment; if the second standard deviation of each moment is greater than the threshold, determining that the state of consciousness is a deep sleep state; if the second standard deviation of any moment is less than the threshold, determining that the state of consciousness is a non-deep sleep state.
[0069] If the first standard deviation is less than the threshold, it is determined that the state of consciousness is not a deep sleep state. If the first standard deviation is less than the threshold, it means that the activity of the Delta wave in the first preset time before the second moment is relatively weak, indicating that the user has not entered a sleep state, let alone a deep sleep state, so it can be determined that the user's state of consciousness is not a deep sleep state. After determining that the state of consciousness is not a deep sleep state, stop collecting the second EEG signal, that is, in this case, the first moment and the second moment are the same.
[0070] If the first standard deviation is greater than the threshold, it means that the activity of the Delta wave within the first preset time before the second moment is gradually strengthened, and the amplitude becomes significantly larger. Therefore, it can be determined that the user is in a sleeping state, but at this time it is only entering a sleeping state, and it cannot be determined that the user has entered a deep sleep state. At this time, the electrical stimulation and light stimulation cannot be easily stopped, and it is necessary to further determine whether the user has entered a deep sleep state. Specifically, the second standard deviation of each moment after the second moment is obtained in sequence. Specifically, if the i-th moment is any moment after the second moment, the method for determining the second standard deviation of the i-th moment is: obtain the sixth EEG signal of the first preset time before the i-th moment, and determine the second standard deviation of the i-th moment based on the sixth EEG signal, wherein the method for determining the second standard deviation of the i-th moment based on the sixth EEG signal is similar to the method for determining the first standard deviation based on the third EEG signal, and this application will not repeat it here.
[0071] If the second standard deviation of each moment within the second preset time is greater than the threshold, it is determined that the state of consciousness is a deep sleep state. If the second standard deviation of each moment within the second preset time is greater than the threshold, it means that the user's state of consciousness is a sleep state within the first preset time and the second preset time. At this time, it can be determined that the user has entered a deep sleep state, and the collection of the second EEG signal is stopped. That is, in this case, the time interval between the first moment and the second moment is the second preset time, and the second moment is earlier than the first moment.
[0072] If the second standard deviation of a moment (recorded as the third moment for ease of description) detected within the second preset time period is less than the threshold, it is determined that the state of consciousness is the non-deep sleep state. If the second standard deviation of a moment detected within the second preset time period is less than the threshold, the activity of the user's Delta wave at the third moment is relatively weak, that is, the user has not entered a sleep state. Therefore, it can be determined that the user's state at the third moment is a non-deep sleep state, and the collection of the second EEG signal is stopped. That is, in this case, the first moment and the third moment are the same, that is, the first moment is the moment when the second standard deviation of a moment detected within the second preset time period is less than the threshold.
[0073] In this application, taking seconds as the minimum division unit of moments as an example, if the second moment is the 6th second, the next step is to obtain the second standard deviation of the seventh second, and judge the second standard deviation of the seventh second. If the second standard deviation of the seventh second is less than the threshold value (which can be understood as the third moment mentioned above), stop collecting the second EEG signal, and stop obtaining the second standard deviation of the eighth second, and directly determine that the user's state of consciousness is a non-deep sleep state. If the second standard deviation of the seventh second is greater than the threshold value, continue to obtain the second standard deviation of the eighth second, and judge the second standard deviation of the eighth second. If the second standard deviation of each moment within the second preset time is greater than the threshold value, the user's state of consciousness is determined to be a deep sleep state. This real-time state of consciousness determination method can speed up the state determination efficiency, so as to further speed up the efficiency of light-electric combined neural regulation to promote sleep.
[0074] Exemplarily, after determining the user's state of consciousness, the time interval between the start moment and the first moment is obtained, wherein the first moment is the moment of stopping collecting the second EEG signal. The specific description of the first moment has been described in the foregoing content and will not be repeated in this application.
[0075] Exemplarily, based on the state of consciousness, the time interval and the preset sleep duration, a second electrical stimulation is performed on the ears of the user through the stimulation electrodes, and a second optical stimulation is performed on the eyes of the user through the light source.
[0076] Optionally, if the state of consciousness is a deep sleep state, the second electrical stimulation and the second light stimulation are stopped. After the user enters a deep sleep state, in order to avoid affecting the user's sleep, the second electrical stimulation and the second light stimulation should not be performed on the user, but the EEG signal should be recollected by the EEG acquisition module.
[0077] Furthermore, if the state of consciousness is a deep sleep state, the second electrical stimulation and the second light stimulation are stopped, and the second EEG signal is stopped from being collected. However, a new round of EEG signals should be collected again to re-determine the state of consciousness of the user, so that if the user enters a non-deep sleep state, the third electrical stimulation and the third light stimulation can be determined in time to help the user enter deep sleep again, or promote the user to wake up. Specifically, the method for re-determining the state of consciousness of the user is similar to the method for determining the state of consciousness of the user described above, and this application will not be repeated here. The method for determining the third electrical stimulation and the third light stimulation is similar to the method for determining the second electrical stimulation and the second light stimulation, that is, if the user's state of consciousness is re-determined to be a deep sleep state, the third electrical stimulation and the third light stimulation will not be performed on the user; if the user's state of consciousness is re-determined to be a non-deep sleep state, and the time interval is less than the preset sleep duration, the second EEG signal is stopped from being collected, the user's ears are subjected to the third electrical stimulation through the stimulation electrodes, and the user's eyes are subjected to the third light stimulation through a pure yellow light source; if the user's state of consciousness is re-determined to be a non-deep sleep state, and the time interval is greater than the preset sleep duration, the second EEG signal is stopped from being collected, the second electrical stimulation will not be performed on the user, and the user's eyes are subjected to the second light stimulation through a pure blue light source.
[0078] Optionally, if the state of consciousness is a non-deep sleep state, and the time interval is less than the preset sleep duration, the second EEG signal is stopped from being collected, and the user's ears are subjected to a second electrical stimulation through the stimulation electrode, and the user's eyes are subjected to a second light stimulation through the pure yellow light source. If the user is still in a non-deep sleep state, and the time interval has not reached the preset sleep duration predefined by the user, it means that the user still needs electrical stimulation and light stimulation to continue sleeping. For example, if the user's preset sleep duration is eight hours, the start time is 23:00 in the evening, and the first moment is 4:00 in the morning, then the time interval is five hours. If the state of consciousness determined at the first moment is a non-deep sleep state, and because the time interval has not reached eight hours, it is necessary to continue to electrically and lightly stimulate the user so that the user enters a deep sleep and improves the user's sleep quality. Because the pure yellow light source has the effect of promoting sleep, the user's eyes are subjected to a second light stimulation through the pure yellow light source, and the user's ears are subjected to a second electrical stimulation through the stimulation electrode, so that the user can enter a deep sleep.
[0079] Optionally, if the state of consciousness is a non-deep sleep state, and the time interval is greater than the preset sleep duration, the second EEG signal is stopped from being collected, the second electrical stimulation is not performed on the user, and the second light stimulation is performed on the user's eyes through a pure blue light source. If the state of consciousness is a non-deep sleep state, and the time interval is greater than the preset sleep duration, it means that the user has entered a stage where he needs to wake up gradually. At this time, the purpose of electrical stimulation or light stimulation to the user is not to promote this sleep, but to stimulate after waking up, so as to facilitate entering the next sleep. Therefore, the second EEG signal can be stopped from being collected, the second electrical stimulation is not performed on the user, and the second light stimulation is performed on the user's eyes through a pure blue light source, because irradiating the user's eyes with a pure blue light source can promote waking up, so that the user wakes up after the expected preset sleep duration. If the user is not awakened after the preset sleep duration, it will affect the user's next sleep. Therefore, in order to help the user establish a regular sleep time, the user should be awakened by a pure blue light source when he needs to wake up, so that the user can stay awake after the preset sleep duration, so that he can better enter sleep in the next preset sleep duration.
[0080] It can be seen that in the embodiment of the present application, if the state of consciousness is a deep sleep state, the second electrical stimulation and the second light stimulation are stopped for the user. That is to say, only after the user enters a deep sleep state, the user will not be subjected to electrical stimulation and light stimulation, thereby ensuring the sleep-promoting effect of the light-electric combined neural regulation sleep-promoting device. Moreover, after the user enters a deep sleep state, in order to avoid affecting the user's sleep, the second electrical stimulation and the second light stimulation should not be performed on the user, but the EEG acquisition module should continue to collect EEG signals, so that if the user enters a non-deep sleep state, the third electrical stimulation and the third light stimulation can be determined in time, thereby helping the user to enter a deep sleep again, or promoting the user to wake up, thereby ensuring the sleep-promoting effect of the light-electric combined neural regulation sleep-promoting device.
[0081] Furthermore, if the state of consciousness is a non-deep sleep state and the time interval is less than the preset sleep duration, the collection of the second EEG signal is stopped, and a second electrical stimulation is performed on the user's ears through the stimulating electrodes, and a second light stimulation is performed on the user's eyes through the pure yellow light source. If the user is still in a non-deep sleep state and the time interval has not reached the preset sleep duration predefined by the user, it means that the user still needs electrical and light stimulation to continue sleeping. Because the pure yellow light source has the effect of promoting sleep, the second light stimulation of the user's eyes through the pure yellow light source and the second electrical stimulation of the user's ears through the stimulating electrodes can improve the sleep-promoting effect of the light-electric combined neural regulation sleep-promoting device.
[0082] Furthermore, if the time interval is less than the preset sleep duration, and the state of consciousness is a deep sleep state, the second electrical stimulation and the second light stimulation are not performed on the user. If the state of consciousness is not a deep sleep state, and the time interval is greater than the preset sleep duration, it means that the user has entered a stage where he needs to wake up gradually. At this time, the purpose of electrical stimulation or light stimulation to the user is not to promote this sleep, but to stimulate after waking up, so as to facilitate entering the next sleep. Therefore, the collection of the second EEG signal can be stopped, and the user can be given no second electrical stimulation. The second light stimulation can be performed on the user's eyes through a pure blue light source, because irradiating the user's eyes with a pure blue light source can promote awakening, so that the user wakes up after the expected preset sleep duration. If the user is not awakened after the preset sleep time, it will affect the user's next sleep. Therefore, in order to help the user establish a regular sleep time, the user should be awakened by a pure blue light source when he needs to wake up, so that the user can stay awake after the preset sleep time, and thus fall asleep better in the next preset sleep time, thereby improving the light-electric combined neural regulation sleep-promoting effect of the light-electric combined neural regulation sleep-promoting device on the user.
[0083] It should be noted that in the embodiment of the present application, the threshold is determined based on the average standard deviation and k times the fifth standard deviation, and the setting of k in the threshold is described.
[0084] The k in the threshold value is strongly correlated with the judgment of the user's state of consciousness and the second light stimulation and the second electrical stimulation performed on the user.
[0085] Because if the user's consciousness state is determined to be a deep sleep state, the second light stimulation and the second electrical stimulation will be stopped. Therefore, the value of k in the threshold is crucial to the judgment of the user's consciousness state and the subsequent second light stimulation and the second electrical stimulation. The value of k in the threshold depends on whether the judgment of the deep sleep state is more stringent or loose, and whether it is more inclined to stop the second light stimulation and the second electrical stimulation on the user, or more inclined to perform the second light stimulation and the second electrical stimulation on the user. That is, the value of k can represent the tolerance for determining the deep sleep state. If the judgment of the deep sleep state is more stringent, that is, the tolerance is lower (that is, it is more inclined to perform the second light stimulation and the second electrical stimulation on the user), the value of k can be increased and a higher threshold can be set. If the judgment of the sleep state is more loose, that is, the tolerance is higher (that is, it is more inclined not to perform the second light stimulation and the second electrical stimulation on the user), the value of k can be reduced and a lower threshold can be set.
[0086] In the embodiment of the present application, it can be seen that when determining k in the threshold, k in the threshold can be set based on whether it is more inclined to perform the second light stimulation and the second electrical stimulation on the user, or more inclined not to perform the second light stimulation and the second electrical stimulation on the user. If it is more inclined to perform the second light stimulation and the second electrical stimulation on the user, the value of k can be increased and a higher threshold can be set; the judgment of the user's sleep state can be made more stringent, that is, it is necessary to fully ensure that the user enters a deep sleep state before not performing the second light stimulation and the second electrical stimulation on the user, so as to fully ensure the therapeutic effect of electrical stimulation and light stimulation on insomniac users.
[0087] If it is more preferred not to perform the second light stimulation and the second electrical stimulation on the user, the value of k can be lowered and a lower threshold can be set; this can make the judgment of the user's sleep state more relaxed, that is, when the user just enters a deep sleep state, the user will not be performed the second light stimulation and the second electrical stimulation, which can improve the treatment efficiency and train the user's own ability to regulate sleep.
[0088] It should be noted that the above-mentioned neural stimulation module, EEG acquisition module and processing module can be actual functional modules or logically divided functional modules, and this application does not limit this.
[0089] See also Figure 5 , Figure 5 A schematic flow chart of a method for promoting sleep by combining light and electricity with neural regulation is provided in an embodiment of the present application. The method is applied to the above-mentioned device for promoting sleep by combining light and electricity with neural regulation. The method includes but is not limited to the following steps:
[0090] S501: Obtain treatment duration and preset sleep duration.
[0091] S502: Performing a first electrical stimulation on the ears of the user for a treatment duration, and performing a first optical stimulation on the eyes of the user for a treatment duration through a light source.
[0092] S503: Collecting the user's electroencephalogram signals at the start time to obtain a plurality of first electroencephalogram signals.
[0093] The starting time is the time when the first electrical stimulation and the first light stimulation are started to be performed on the user.
[0094] S504: After the treatment period, a second EEG signal of the user is collected.
[0095] S505: Based on the multiple first EEG signals, the second EEG signals and the preset sleep duration, a second electrical stimulation is performed on the ears of the user through the stimulation electrodes, and a second optical stimulation is performed on the eyes of the user through the light source.
[0096] Among them, the specific implementation process of steps S501 to S505 can refer to the specific functions of the above-mentioned EEG acquisition module, stimulation electrodes, light source and processing module, and will not be repeated here.
[0097] See also Figure 6 , Figure 6 It is a schematic diagram of an electronic device provided in an embodiment of the present application. Figure 6 The electronic device 600 shown may be the above-mentioned light-electric combined neural regulation sleep-promoting device. Figure 6 The electronic device 600 shown includes a memory 601, a processor 602, a communication interface 603 and a bus 604. The memory 601, the processor 602 and the communication interface 603 are connected to each other through the bus 604.
[0098] Among them, the processor 602 can be integrated with the functions of the above-mentioned processing module to obtain the treatment time and the preset sleep time; perform a first electrical stimulation on the user's ears for the treatment time through the stimulation electrodes, and perform a first light stimulation on the user's eyes for the treatment time through the light source; collect the user's EEG signal through the EEG acquisition module at the start time to obtain multiple first EEG signals, wherein the start time is the time when the first electrical stimulation and the first light stimulation are started to be performed on the user; after the treatment time, collect the user's second EEG signal through the EEG acquisition module; based on the multiple first EEG signals, the second EEG signal and the preset sleep time, perform a second electrical stimulation on the user's ears through the stimulation electrodes, and perform a second light stimulation on the user's eyes through the light source.
[0099] The communication interface 603 may integrate the functions of the above-mentioned EEG acquisition module, stimulation electrodes and light source, and be used to collect EEG signals from the user and perform electrical and optical stimulation on the user.
[0100] The memory 601 may be a read-only memory (ROM), a static storage device, a dynamic storage device or a random access memory (RAM). The memory 601 may store a program. When the program stored in the memory 601 is executed by the processor 602, the processor 602 and the communication interface 603 are used to execute the various steps of the light-electric combined neural regulation sleep-promoting method of the embodiment of the present application.
[0101] Processor 602 can adopt a general-purpose central processing unit (CPU), a microprocessor, an application specific integrated circuit (ASIC), a graphics processing unit (GPU) or one or more integrated circuits to execute relevant programs to realize the functions required to be performed by the units in the light-electric combined neural regulation sleep-promoting device, or to execute the light-electric combined neural regulation sleep-promoting method of the method embodiment of the present application.
[0102] The processor 602 may also be an integrated circuit chip with signal processing capabilities. In the implementation process, each step in the light-electric combined neural regulation sleep promotion method of the present application may be completed by the hardware integrated logic circuit or software instructions in the processor 602. The above-mentioned processor 602 may also be a general-purpose processor, a digital signal processor (Digital Signal Processing, DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application may be directly embodied as being executed by a hardware decoding processor, or may be executed by a combination of hardware and software modules in a decoding processor. The software module may be located in a mature storage medium in the art such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory, or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 601, and the processor 602 reads the information in the memory 601, and combines its hardware to complete the functions required to be performed by the units included in the optical-electric combined neural regulation and sleep-promoting device of the embodiment of the present application, or executes the various steps in the optical-electric combined neural regulation and sleep-promoting method of the method embodiment of the present application.
[0103] The communication interface 603 uses a transceiver such as, but not limited to, a transceiver, an input-output device, etc. to realize communication between the electronic device 600 and other devices or a communication network. For example, multiple first EEG signals of the user can be collected through the communication interface 603. Specifically, when the communication interface 603 is an output device, it can be a stimulation electrode for electrically stimulating the user; it can also be a light source for optically stimulating the user; when the communication interface 603 is an input device, it can be the above-mentioned EEG acquisition module to collect multiple first EEG signals and second EEG signals of the user.
[0104] The bus 604 may include a path for transmitting information between various components of the device electronic device 600 (eg, the memory 601 , the processor 602 , the communication interface 603 ).
[0105] It should be noted that although Figure 6 The electronic device 600 shown only shows a memory, a processor, and a communication interface, but in the specific implementation process, those skilled in the art should understand that the electronic device 600 also includes other devices necessary for normal operation. At the same time, according to specific needs, those skilled in the art should understand that the electronic device 600 may also include hardware devices for implementing other additional functions. In addition, those skilled in the art should understand that the electronic device 600 may also only include the devices necessary to implement the embodiments of the present application, and does not necessarily include Figure 6 All devices shown in .
[0106] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0107] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0108] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0109] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0110] If the function 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, the technical solution of the present application can essentially or in other words, the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, and other media that can store program codes.
[0111] The above are only specific implementations of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
[0112] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. The computer program is executed by a processor to implement part or all of the steps of any one of the photoelectric combined neural regulation sleep-promoting methods recorded in the above method embodiments.
[0113] An embodiment of the present application also provides a computer program product, which includes a non-transitory computer-readable storage medium storing a computer program, and the computer program can be operated to cause a computer to execute part or all of the steps of any one of the photoelectric combined neural regulation sleep-promoting methods recorded in the above method embodiments.
[0114] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present application.
[0115] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0116] In the several embodiments provided in the present application, it should be understood that the disclosed devices can be implemented in other ways. For example, the device embodiments described above are only schematic, such as the division of units, which is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or units can be electrical or other forms.
[0117] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0118] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of a software program module.
[0119] If the integrated unit is implemented in the form of a software program module and sold or used as an independent product, it can be stored in a computer-readable memory. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a memory, including a number of instructions to enable a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned memory includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), mobile hard disk, disk or optical disk and other media that can store program codes.
[0120] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be completed by instructing related hardware through a program, and the program may be stored in a computer-readable memory, which may include a flash drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.
[0121] The embodiments of the present application are introduced in detail above. Specific examples are used in this article to illustrate the principles and implementation methods of the present application. The description of the above embodiments is only used to help understand the method of the present application and its core idea. At the same time, for those skilled in the art, according to the idea of the present application, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as a limitation on the present application.
Claims
1. A light-electric combined neural regulation sleep-promoting device, characterized in that: The device includes an EEG acquisition module, stimulation electrodes, a light source and a processing module; The processing module is used to obtain the treatment duration and the preset sleep duration; The processing module is used to perform a first electrical stimulation for the treatment duration on the ears of the user through the stimulation electrodes, and to perform a first optical stimulation for the treatment duration on the eyes of the user through the light source; The processing module is used to collect the EEG signal of the user through the EEG collection module at a start time to obtain a plurality of first EEG signals, wherein the start time is a time when the first electrical stimulation and the first light stimulation are started to be performed on the user; The processing module is used to collect the second EEG signal of the user through the EEG collection module after the treatment time; The processing module is used to perform a second electrical stimulation on the ears of the user through the stimulation electrodes and to perform a second optical stimulation on the eyes of the user through the light source based on the multiple first EEG signals, the second EEG signal and the preset sleep duration, specifically for: Based on the multiple first EEG signals, determining a threshold value corresponding to a preset band in the multiple first EEG signals; Determining the state of consciousness of the user based on the threshold and the second EEG signal is specifically used for: If the duration of collecting the second EEG signal at the second moment is longer than the first preset duration, obtaining a third EEG signal of the first preset duration before the second moment from the second EEG signal collected at the second moment; Acquire a fourth EEG signal corresponding to the preset band in the third EEG signal; Based on the fourth EEG signal, determining a first standard deviation of the fourth EEG signal; If the first standard deviation is less than the threshold, determining that the state of consciousness is a non-deep sleep state; If the first standard deviation is greater than the threshold, sequentially obtaining the second standard deviation at each moment after the second moment; If the second standard deviation at each moment within the second preset time period is greater than the threshold, it is determined that the state of consciousness is a deep sleep state; If the second standard deviation of a moment detected within the second preset time period is smaller than the threshold, it is determined that the consciousness state is the non-deep sleep state; Acquire the time interval between the start time and a first time, wherein the first time is the time when the collection of the second EEG signal is stopped; Based on the state of consciousness, the time interval and the preset sleep duration, a second electrical stimulation is performed on the ears of the user through the stimulation electrode, and a second optical stimulation is performed on the eyes of the user through the light source, wherein the light source includes a pure yellow light source and a pure blue light source, and the first optical stimulation is optical stimulation performed by the pure yellow light source, specifically for: If the state of consciousness is the deep sleep state, stopping the second electrical stimulation and the second light stimulation to the user; If the state of consciousness is the non-deep sleep state and the time interval is less than the preset sleep duration, stop collecting the second electroencephalogram signal, perform the second electrical stimulation on the ears of the user through the stimulation electrodes, and perform the second light stimulation on the eyes of the user through the pure yellow light source; If the state of consciousness is the non-deep sleep state and the time interval is greater than the preset sleep duration, the collection of the second EEG signal is stopped, and the second light stimulation is performed on the user's eyes through the pure blue light source.
2. The device according to claim 1, characterized in that The device comprises two eye-covering structures, wherein each eye-covering structure is provided with the pure yellow light source and the pure blue light source, and the pure yellow light source and the pure blue light source arranged on each eye-covering structure are distributed at intervals.
3. The device according to claim 1 or 2, characterized in that: In terms of determining the threshold corresponding to the preset band in the plurality of first EEG signals based on the plurality of first EEG signals, the processing module is specifically used to: Acquire a fifth EEG signal corresponding to the preset band in each first EEG signal; Segmenting each fifth EEG signal to obtain a plurality of EEG signal segments corresponding to each fifth EEG signal; Obtaining a fourth standard deviation of a plurality of EEG signal segments corresponding to each fifth EEG signal; Determine an average standard deviation of a plurality of fifth EEG signals and a fifth standard deviation of the plurality of fifth EEG signals based on a fourth standard deviation corresponding to each fifth EEG signal; The threshold is determined based on the average standard deviation and the fifth standard deviation.
4. An electronic device, characterized in that: include: A processor and a memory, wherein the processor is connected to the memory, the memory is used to store a computer program, and the processor is used to execute the computer program stored in the memory, so that the electronic device performs the following steps: Get treatment duration and preset sleep duration; Performing a first electrical stimulation for the treatment duration on the ears of the user, and performing a first optical stimulation for the treatment duration on the eyes of the user; Collecting an electroencephalogram signal of the user at a start time to obtain a plurality of first electroencephalogram signals, wherein the start time is a time when the first electrical stimulation and the first optical stimulation are started on the user; After the treatment time, collecting a second EEG signal of the user; Based on the multiple first EEG signals, the second EEG signal and the preset sleep duration, performing a second electrical stimulation on the ears of the user and performing a second optical stimulation on the eyes of the user, comprising: Based on the multiple first EEG signals, determining a threshold value corresponding to a preset band in the multiple first EEG signals; Determining the state of consciousness of the user based on the threshold and the second EEG signal includes: If the duration of collecting the second EEG signal at the second moment is longer than the first preset duration, obtaining a third EEG signal of the first preset duration before the second moment from the second EEG signal collected at the second moment; Acquire a fourth EEG signal corresponding to the preset band in the third EEG signal; Based on the fourth EEG signal, determining a first standard deviation of the fourth EEG signal; If the first standard deviation is less than the threshold, determining that the state of consciousness is a non-deep sleep state; If the first standard deviation is greater than the threshold, sequentially obtaining the second standard deviation at each moment after the second moment; If the second standard deviation at each moment within the second preset time period is greater than the threshold, it is determined that the state of consciousness is a deep sleep state; If the second standard deviation of a moment detected within the second preset time period is smaller than the threshold, it is determined that the consciousness state is the non-deep sleep state; Acquire the time interval between the start time and a first time, wherein the first time is the time when the collection of the second EEG signal is stopped; Based on the state of consciousness, the time interval, and the preset sleep duration, a second electrical stimulation is performed on the ears of the user through a stimulation electrode, and a second optical stimulation is performed on the eyes of the user through a light source, wherein the light source includes a pure yellow light source and a pure blue light source, and the first optical stimulation is optical stimulation performed by the pure yellow light source, including: If the state of consciousness is the deep sleep state, stopping the second electrical stimulation and the second light stimulation to the user; If the state of consciousness is the non-deep sleep state and the time interval is less than the preset sleep duration, stop collecting the second electroencephalogram signal, perform the second electrical stimulation on the ears of the user through the stimulation electrodes, and perform the second light stimulation on the eyes of the user through the pure yellow light source; If the state of consciousness is the non-deep sleep state and the time interval is greater than the preset sleep duration, the collection of the second EEG signal is stopped, and the second light stimulation is performed on the user's eyes through the pure blue light source.
5. A computer-readable storage medium, characterized in that: The computer readable storage medium stores a computer program, and the computer program is executed by a processor to implement the following steps: Get treatment duration and preset sleep duration; Performing a first electrical stimulation for the treatment duration on the ears of the user, and performing a first optical stimulation for the treatment duration on the eyes of the user; Collecting an electroencephalogram signal of the user at a start time to obtain a plurality of first electroencephalogram signals, wherein the start time is a time when the first electrical stimulation and the first optical stimulation are started on the user; After the treatment time, collecting a second EEG signal of the user; Based on the multiple first EEG signals, the second EEG signal and the preset sleep duration, performing a second electrical stimulation on the ears of the user and performing a second optical stimulation on the eyes of the user, comprising: Based on the multiple first EEG signals, determining a threshold value corresponding to a preset band in the multiple first EEG signals; Determining the state of consciousness of the user based on the threshold and the second EEG signal includes: If the duration of collecting the second EEG signal at the second moment is longer than the first preset duration, obtaining a third EEG signal of the first preset duration before the second moment from the second EEG signal collected at the second moment; Acquire a fourth EEG signal corresponding to the preset band in the third EEG signal; Based on the fourth EEG signal, determining a first standard deviation of the fourth EEG signal; If the first standard deviation is less than the threshold, determining that the state of consciousness is a non-deep sleep state; If the first standard deviation is greater than the threshold, sequentially obtaining the second standard deviation at each moment after the second moment; If the second standard deviation at each moment within the second preset time period is greater than the threshold, it is determined that the state of consciousness is a deep sleep state; If the second standard deviation of a moment detected within the second preset time period is smaller than the threshold, it is determined that the consciousness state is the non-deep sleep state; Acquire the time interval between the start time and a first time, wherein the first time is the time when the collection of the second EEG signal is stopped; Based on the state of consciousness, the time interval, and the preset sleep duration, a second electrical stimulation is performed on the ears of the user through a stimulation electrode, and a second optical stimulation is performed on the eyes of the user through a light source, wherein the light source includes a pure yellow light source and a pure blue light source, and the first optical stimulation is optical stimulation performed by the pure yellow light source, including: If the state of consciousness is the deep sleep state, stopping the second electrical stimulation and the second light stimulation to the user; If the state of consciousness is the non-deep sleep state and the time interval is less than the preset sleep duration, stop collecting the second electroencephalogram signal, perform the second electrical stimulation on the ears of the user through the stimulation electrodes, and perform the second light stimulation on the eyes of the user through the pure yellow light source; If the state of consciousness is the non-deep sleep state and the time interval is greater than the preset sleep duration, the collection of the second EEG signal is stopped, and the second light stimulation is performed on the user's eyes through the pure blue light source.
