Disclosure of Invention
In order to solve the technical problem, the application provides a sleep-aiding method, a sleep-aiding device, a computer device and a storage medium.
In a first aspect, the present application provides a method of aiding sleep, the method comprising:
emitting electric waves of at least two different reference frequencies;
performing logic processing according to the two electric waves with different reference frequencies to obtain equivalent electric waves similar to brain waves of the human body;
and gradually reducing the regulating coefficient and the amplitude of the reference frequency within a preset time length, so that the frequency of the equivalent electric wave influences the frequency of the human brain wave, and the frequency of the human brain wave is gradually reduced to the target frequency of the sleep state.
Optionally, the method further comprises:
the method comprises the steps that stimulation current is released according to the frequency of the equivalent electric wave, the stimulation current is led into a human earlobe through an electrode, the rising edge and the falling edge of the equivalent electric wave are the generation time of the stimulation current, and the stimulation current is used for stimulating the cerebral cortex of a human body according to the rhythm of the frequency change of the equivalent electric wave.
Optionally, one cycle of the equivalent square wave is a stimulation cycle, and the gradually decreasing the adjustment coefficient and the amplitude of the reference frequency makes the frequency of the equivalent electric wave influence the frequency of the human brain wave, so that the frequency of the human brain wave gradually decreases to a target frequency in a sleep state, including:
and gradually reducing the adjusting coefficient of the reference frequency according to the stimulation period within a preset time length, wherein the reference frequency of the current stimulation period is the reference frequency of the previous stimulation period multiplied by the adjusting coefficient of the current stimulation period, and the reference frequency of the current stimulation period is lower than the reference frequency of the previous stimulation period, so that the frequency of the equivalent electric wave is gradually reduced according to the stimulation period, the frequency of the equivalent electric wave is enabled to influence the frequency of the human brain wave, and the frequency of the human brain wave is gradually reduced to the target frequency of a sleep state.
Alternatively, the stimulation period is shortened as the equivalent electric wave is reduced, and the number of times of generation of the stimulation current in the stimulation period is reduced.
Optionally, the target frequency includes a preliminary relaxation frequency, a deep relaxation frequency, a light sleep frequency and a deep sleep frequency, the frequency of the electroencephalogram of the human body is reduced to the preliminary relaxation frequency, and then the deep relaxation frequency, the light sleep frequency and the deep sleep frequency are sequentially transited.
In a second aspect, the present application provides a sleep-aid device, the device comprising a frequency adjustment device and an electrode connection device, the frequency adjustment device and the electrode connection device being connected by a wire, wherein:
the frequency adjusting device is used for adjusting the frequency of the release wave to influence the frequency of the brain waves of the human body to the target frequency;
the electrode device is used for being connected with the ear lobe part of a human body so as to rhythmically stimulate the cerebral cortex of the human body to help sleep.
Optionally, the frequency adjustment device comprises:
the radio wave transmitting module is used for transmitting radio waves with at least two different reference frequencies;
the equivalent processing module is used for carrying out logic processing according to the two electric waves with different reference frequencies to obtain equivalent electric waves close to the brain waves of the human body;
and the frequency modulation module is used for gradually reducing the adjustment coefficient and the amplitude of the reference frequency within a preset time length, so that the frequency of the equivalent electric wave influences the frequency of the human brain wave, and the frequency of the human brain wave is gradually reduced to the target frequency of a sleep state.
Optionally, the frequency adjustment apparatus further includes:
the stimulation current generation module is used for releasing stimulation current according to the frequency of the equivalent electric wave, the stimulation current is led into the human earlobe through the electrode, the rising edge and the falling edge of the equivalent electric wave are the generation time of the stimulation current, and the stimulation current is used for stimulating the cerebral cortex of the human body according to the rhythm of the frequency change of the equivalent electric wave.
A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
emitting electric waves of at least two different reference frequencies;
performing logic processing according to the two electric waves with different reference frequencies to obtain equivalent electric waves similar to brain waves of the human body;
and gradually reducing the regulating coefficient and the amplitude of the reference frequency within a preset time length, so that the frequency of the equivalent electric wave influences the frequency of the human brain wave, and the frequency of the human brain wave is gradually reduced to the target frequency of the sleep state.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
emitting electric waves of at least two different reference frequencies;
performing logic processing according to the two electric waves with different reference frequencies to obtain equivalent electric waves similar to brain waves of the human body;
and gradually reducing the regulating coefficient and the amplitude of the reference frequency within a preset time length, so that the frequency of the equivalent electric wave influences the frequency of the human brain wave, and the frequency of the human brain wave is gradually reduced to the target frequency of the sleep state.
The sleep-aiding method, the sleep-aiding device, the computer equipment and the storage medium comprise the following steps: emitting electric waves of at least two different reference frequencies; performing logic processing according to the two electric waves with different reference frequencies to obtain equivalent electric waves similar to brain waves of the human body; and gradually reducing the regulating coefficient and the amplitude of the reference frequency within a preset time length, so that the frequency of the equivalent electric wave influences the frequency of the human brain wave, and the frequency of the human brain wave is gradually reduced to the target frequency of the sleep state. Based on the adjustment of the two reference frequencies, the equivalent electric wave with the frequency change is generated, so that the equivalent electric wave influences the brain wave of the human body to be reduced to the target frequency of the sleep state, and the sleep aid for the human body is realized.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
FIG. 1 is a diagram of an application environment of a sleep-aiding method in one embodiment. Referring to fig. 1, the sleep-aiding method is applied to a sleep-aiding system. The sleep-aid system includes a sleep-aid apparatus 110 and a communication device 120. The sleep-assisting device 110 is connected to the ear lobe of the human body through an electrode of the sleep-assisting device when in use. The sleep-assisting device 110 can be a small-sized embedded single-chip microcomputer commodity, a rechargeable lithium battery is arranged in the sleep-assisting device 110, and the sleep-assisting device 110 can be provided with a communication device, such as Bluetooth and wireless wifi and is connected with other communication equipment 120.
In one embodiment, fig. 2 is a flow diagram illustrating a sleep-aiding method according to one embodiment, and referring to fig. 2, a sleep-aiding method is provided. The present embodiment is mainly exemplified by applying the method to the sleep-assisting apparatus 110 (or the communication device 120) in fig. 1, and the sleep-assisting method specifically includes the following steps:
in step S210, at least two different reference frequencies of radio waves are emitted.
In the present embodiment, two different reference frequencies of electric waves are emitted, wherein the first reference frequency may be 0.4Hz and the second reference frequency may be 0.5 Hz.
Step S220, performing logic processing according to the two electric waves with different reference frequencies to obtain an equivalent electric wave close to the brain wave of the human body.
In this embodiment, fig. 3 is a schematic diagram illustrating the principle of generating an equivalent electric wave in one embodiment, and referring to fig. 3, an equivalent electric wave close to the frequency of the brain wave of the human body is obtained by subjecting the reference frequency of 0.4Hz and the reference frequency of 0.5Hz to human body equivalence, that is, performing nor logic processing on the two reference frequencies.
And step S230, gradually reducing the adjustment coefficient and the amplitude of the reference frequency within a preset time, enabling the frequency of the equivalent electric wave to influence the frequency of the human body brain wave, and gradually reducing the frequency of the human body brain wave to the target frequency of a sleep state.
In this embodiment, fig. 4 is a schematic diagram of a variation curve of an adjustment coefficient and an amplitude in one embodiment, and referring to fig. 4, the adjustment coefficient of a reference frequency is DtAmplitude of reference frequency of UtA preset duration is set asAnd (2) within 15 minutes, the regulating coefficient and the amplitude are gradually reduced along with the time lapse, the reference frequency is reduced along with the reduction of the regulating coefficient, the frequency of the equivalent electric wave generated equivalently according to the reference frequency is gradually reduced along with the time lapse, the equivalent electric wave influences the brain wave of the human body, the frequency of the brain wave of the human body is guided to be gradually reduced, and the brain wave of the human body is gradually in a relaxation state, a deep relaxation state, a light sleep state and a deep sleep state from an excitation state.
In one embodiment, the stimulation current is released according to the frequency of the equivalent electric wave, the stimulation current is led into the ear lobe of the human body through an electrode, the rising edge and the falling edge of the equivalent electric wave are the generation time of the stimulation current, and the stimulation current is used for stimulating the cerebral cortex of the human body according to the rhythm of the frequency change of the equivalent electric wave.
Specifically, through electrode and human earlobe portion contact, because the electric conductivity of human earlobe portion is better, make the stimulation current of release can successfully stimulate human cerebral cortex, according to the frequency stimulation human cerebral cortex of equivalent electric wave, help the equivalent electric wave to influence human brain wave, along with the lapse of time, the frequency and the amplitude of equivalent electric wave reduce gradually, the wave form of equivalent electric wave guide human brain electric wave becomes gentle gradually, and makes the active intensity of human brain wave reduce.
In one embodiment, one cycle of the equivalent square wave is a stimulation cycle, the adjustment coefficient of the reference frequency is gradually reduced according to the stimulation cycle within a preset time period, the reference frequency of the current stimulation cycle is the reference frequency of the previous stimulation cycle multiplied by the adjustment coefficient of the current stimulation cycle, and the reference frequency of the current stimulation cycle is lower than the reference frequency of the previous stimulation cycle, so that the frequency of the equivalent electric wave is gradually reduced according to the stimulation cycle, the frequency of the equivalent electric wave affects the frequency of the human brain wave, and the frequency of the human brain wave is gradually reduced to the target frequency of a sleep state.
Specifically, the reference frequencies of the current stimulation periods are respectively Dt*0.4、Dt0.5, the reference frequency multiplied by the adjustment factor is lower than the reference frequency of the previous stimulation cycle, sinceThe adjustment coefficient is gradually reduced along with the time, so that the reference frequency of each stimulation period is lower than the reference frequency of the previous stimulation period, the frequency of the equivalent electric wave in each stimulation period is lower than the frequency of the equivalent electric wave in the previous stimulation period, as shown in fig. 3, the first period time of the equivalent square wave is 10s, the stimulation period based on 10s is adjusted, 8 time points of stimulation current generation are provided in the first stimulation period, namely the generation times of the stimulation current in the first stimulation period are 8 times, the stimulation period is gradually shortened along with the reduction of the equivalent electric wave, the generation times of the stimulation current in the stimulation period are also gradually reduced due to the stimulation circuit generated by the rising edge and the falling edge of the stimulation period, the waveform of the equivalent electric wave becomes gentle along with the time, and the stimulation frequency of the stimulation current becomes slow, the common influence of the stimulating current and the equivalent electric waves on the human brain electric waves leads the activity frequency of the human brain electric waves to gradually decrease, so that the oscillogram of the human brain electric waves and the oscillogram of the equivalent electric waves become gentle, and the human body is helped to gradually relax and enter a sleep state.
In one embodiment, the target frequencies include a preliminary relaxation frequency, a deep relaxation frequency, a light sleep frequency and a deep sleep frequency, the frequency of the brain waves of the human body is reduced to the preliminary relaxation frequency, and then the deep relaxation frequency, the light sleep frequency and the deep sleep frequency are sequentially transited.
Specifically, each sleep stage is related to certain brain activity, when the brain of a person is awake and in a relaxed state, the brain is mainly related to α waves, namely about 8Hz to 14Hz, corresponding to the initial relaxation frequency, α waves are dominant brain waves, the person is conscious, but the body is relaxed, the body and the mind consume the least energy, the operation is faster, smoother, agile and more intuitive, the brain activity is very active, the modern science actively calls α waves to be the best brain wave state for people to learn and think, the oscillation frequency range of theta waves is 3Hz to 8Hz, corresponding to the deep relaxation frequency, the spirit of the person is in a deep relaxation state when the brain waves are in the frequency, the attention is concentrated, the inspiration is shoved, the creativity is unprecedented high and high, the brain waves are helpful for triggering deep memory, strengthening long-term memory and the like, but the untrained brain waves are reduced to the frequency of 3Hz to 4Hz, the sleep frequency is corresponding to the shallow sleep frequency, the early sleep state is fast, the sleep state is in a deep sleep state, the early sleep state is quickly, the sleep state is in the middle sleep period of deep sleep is in the sleep, and the sleep period is generally when the brain waves are not in the second sleep, or the late sleep period, the sleep period is 0.5 hours, otherwise, the brain waves are generally in the middle period of sleep.
Fig. 2 is a flow diagram of a sleep-aid method in one embodiment. It should be understood that, although the steps in the flowchart of fig. 2 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least a portion of the steps in fig. 2 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
In one embodiment, fig. 5 is a schematic structural diagram of a sleep-aid device in one embodiment, and as shown in fig. 5, there is provided a sleep-aid device 110, which comprises a frequency adjusting device 310 and an electrode connecting device, wherein the frequency adjusting device 310 and the electrode connecting device are connected by a lead, and wherein:
the frequency adjusting device 310 is used for adjusting the frequency of the release wave to influence the frequency of the brain waves of the human body to the target frequency;
the electrode device 320 is used for connecting with the ear lobe part of the human body so as to rhythmically stimulate the cerebral cortex of the human body to help sleep.
In an embodiment, fig. 6 is a schematic structural diagram of a frequency adjustment apparatus 310 in an embodiment, and as shown in fig. 6, the frequency adjustment apparatus 310 includes:
an electric wave transmitting module 410 for transmitting electric waves of at least two different reference frequencies;
the equivalent processing module 420 is configured to perform logic processing according to the two electric waves with different reference frequencies to obtain an equivalent electric wave similar to the brain wave of the human body;
the frequency modulation module 430 is configured to gradually reduce the adjustment coefficient and the amplitude of the reference frequency within a preset time period, so that the frequency of the equivalent electric wave affects the frequency of the human brain wave, and the frequency of the human brain wave is gradually reduced to a target frequency in a sleep state.
In one embodiment, the frequency adjustment device 310 further comprises:
the stimulation current generation module is used for releasing stimulation current according to the frequency of the equivalent electric wave, the stimulation current is led into the human earlobe through the electrode, the rising edge and the falling edge of the equivalent electric wave are the generation time of the stimulation current, and the stimulation current is used for stimulating the cerebral cortex of the human body according to the rhythm of the frequency change of the equivalent electric wave.
In one embodiment, one cycle of the equivalent square wave is a stimulation cycle, the adjustment coefficient of the reference frequency is gradually reduced according to the stimulation cycle within a preset time period, the reference frequency of the current stimulation cycle is the reference frequency of the previous stimulation cycle multiplied by the adjustment coefficient of the current stimulation cycle, and the reference frequency of the current stimulation cycle is lower than the reference frequency of the previous stimulation cycle, so that the frequency of the equivalent electric wave is gradually reduced according to the stimulation cycle, the frequency of the equivalent electric wave affects the frequency of the human brain wave, and the frequency of the human brain wave is gradually reduced to the target frequency of a sleep state.
In one embodiment, the stimulation period is shortened as the equivalent electric wave is reduced, and the generation times of the stimulation current in the stimulation period are reduced.
In one embodiment, the target frequencies include a preliminary relaxation frequency, a deep relaxation frequency, a light sleep frequency and a deep sleep frequency, the frequency of the brain waves of the human body is reduced to the preliminary relaxation frequency, and then the deep relaxation frequency, the light sleep frequency and the deep sleep frequency are sequentially transited.
FIG. 7 is a diagram illustrating an internal structure of a computer device in one embodiment. The computer device may be specifically the sleep-aid apparatus 110 (or the communication device 120) in fig. 1. As shown in fig. 7, the computer device includes a processor, a memory, an input device, and an output device connected by a system bus. Wherein the memory includes a non-volatile storage medium and an internal memory. The non-volatile storage medium of the computer device stores an operating system and may also store a computer program that, when executed by the processor, causes the processor to implement a sleep-assist method. The internal memory may also have stored therein a computer program that, when executed by the processor, causes the processor to perform a sleep-assist method. The input device of the computer device can be a key, a track ball or a touch pad arranged on the shell of the computer device.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, the sleep-aid apparatus provided in the present application may be implemented in the form of a computer program that is executable on a computer device as shown in fig. 7. The memory of the computer device can store various program modules constituting the sleep-aid apparatus, such as an electric wave transmission module 410, an equivalent processing module 420 and a frequency modulation module 430 shown in fig. 6. The program modules constitute computer programs to make the processor execute the steps in the sleep-aiding method of the embodiments of the present application described in the specification.
The computer apparatus shown in fig. 7 can perform the emission of electric waves of at least two different reference frequencies by the electric wave transmission module 410 in the frequency adjustment device 310 shown in fig. 6. The computer device may perform logic processing according to the two different reference frequencies through the equivalent processing module 420 to obtain an equivalent electric wave similar to the brain wave of the human body. The computer equipment can execute the operation in a preset time length through the frequency modulation module 430, gradually reduce the adjustment coefficient and the amplitude of the reference frequency, enable the frequency of the equivalent electric wave to influence the frequency of the human brain wave, and gradually reduce the frequency of the human brain wave to the target frequency in a sleep state.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
emitting electric waves of at least two different reference frequencies;
performing logic processing according to the two electric waves with different reference frequencies to obtain equivalent electric waves similar to brain waves of the human body;
and gradually reducing the regulating coefficient and the amplitude of the reference frequency within a preset time length, so that the frequency of the equivalent electric wave influences the frequency of the human brain wave, and the frequency of the human brain wave is gradually reduced to the target frequency of the sleep state.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the method comprises the steps that stimulation current is released according to the frequency of the equivalent electric wave, the stimulation current is led into a human earlobe through an electrode, the rising edge and the falling edge of the equivalent electric wave are the generation time of the stimulation current, and the stimulation current is used for stimulating the cerebral cortex of a human body according to the rhythm of the frequency change of the equivalent electric wave.
In one embodiment, the processor, when executing the computer program, further performs the steps of: one period of the equivalent square wave is a stimulation period, the adjusting coefficient of the reference frequency is gradually reduced according to the stimulation period within a preset time length, the reference frequency of the current stimulation period is the reference frequency of the previous stimulation period multiplied by the adjusting coefficient of the current stimulation period, and the reference frequency of the current stimulation period is lower than the reference frequency of the previous stimulation period, so that the frequency of the equivalent electric wave is gradually reduced according to the stimulation period, the frequency of the equivalent electric wave influences the frequency of the human brain wave, and the frequency of the human brain wave is gradually reduced to the target frequency of a sleep state.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the stimulation period is shortened as the equivalent electric wave is reduced, and the generation times of the stimulation current in the stimulation period are reduced.
In one embodiment, the processor, when executing the computer program, further performs the steps of: the target frequency comprises a preliminary relaxation frequency, a deep relaxation frequency, a light sleep frequency and a deep sleep frequency, the frequency of the human brain waves is reduced to the preliminary relaxation frequency, and then the deep relaxation frequency, the light sleep frequency and the deep sleep frequency are sequentially transited.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
emitting electric waves of at least two different reference frequencies;
performing logic processing according to the two electric waves with different reference frequencies to obtain equivalent electric waves similar to brain waves of the human body;
and gradually reducing the regulating coefficient and the amplitude of the reference frequency within a preset time length, so that the frequency of the equivalent electric wave influences the frequency of the human brain wave, and the frequency of the human brain wave is gradually reduced to the target frequency of the sleep state.
In one embodiment, the computer program when executed by the processor further performs the steps of: the method comprises the steps that stimulation current is released according to the frequency of the equivalent electric wave, the stimulation current is led into a human earlobe through an electrode, the rising edge and the falling edge of the equivalent electric wave are the generation time of the stimulation current, and the stimulation current is used for stimulating the cerebral cortex of a human body according to the rhythm of the frequency change of the equivalent electric wave.
In one embodiment, the computer program when executed by the processor further performs the steps of: one period of the equivalent square wave is a stimulation period, the adjusting coefficient of the reference frequency is gradually reduced according to the stimulation period within a preset time length, the reference frequency of the current stimulation period is the reference frequency of the previous stimulation period multiplied by the adjusting coefficient of the current stimulation period, and the reference frequency of the current stimulation period is lower than the reference frequency of the previous stimulation period, so that the frequency of the equivalent electric wave is gradually reduced according to the stimulation period, the frequency of the equivalent electric wave influences the frequency of the human brain wave, and the frequency of the human brain wave is gradually reduced to the target frequency of a sleep state.
In one embodiment, the computer program when executed by the processor further performs the steps of: the stimulation period is shortened as the equivalent electric wave is reduced, and the generation times of the stimulation current in the stimulation period are reduced.
In one embodiment, the computer program when executed by the processor further performs the steps of: the target frequency comprises a preliminary relaxation frequency, a deep relaxation frequency, a light sleep frequency and a deep sleep frequency, the frequency of the human brain waves is reduced to the preliminary relaxation frequency, and then the deep relaxation frequency, the light sleep frequency and the deep sleep frequency are sequentially transited.
Those skilled in the art will appreciate that all or a portion of the processes in the methods of the embodiments described above may be implemented by computer programs that may be stored in a non-volatile computer-readable storage medium, which when executed, may include the processes of the embodiments of the methods described above, wherein any reference to memory, storage, database or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, non-volatile memory may include read-only memory (ROM), programmable ROM (prom), electrically programmable ROM (eprom), electrically erasable programmable ROM (eeprom), or flash memory, volatile memory may include Random Access Memory (RAM) or external cache memory, RAM is available in a variety of forms, such as static RAM (sram), Dynamic RAM (DRAM), synchronous sdram (sdram), double data rate sdram (ddr sdram), enhanced sdram (sdram), synchronous link (sdram), dynamic RAM (rdram) (rdram L), direct dynamic RAM (rdram), and the like, and/or external cache memory.
It is noted that, in this document, relational terms such as "first" and "second," and the like, may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The foregoing are merely exemplary embodiments of the present invention, which enable those skilled in the art to understand or practice the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.