Insomnia treatment system and insomnia therapeutic instrument based on cloud serverTechnical Field
The invention relates to the technical field of medical instruments, in particular to an insomnia treatment system and an insomnia treatment instrument based on a cloud server.
Background
According to the world health organization survey, about one third of people worldwide have insomnia symptoms or sleep dysfunction. According to statistics at present, about 3 hundred million patients with sleep disorder in China and up to 5 hundred million people with poor sleep are counted.
Sleep problems can cause neuro-endocrine disorders, which can lead people to have emotions such as depression, anxiety, tension and the like; people with sleep problems are at a 2 to 3 times higher risk of heart disease than normal people, and sleep problems can induce diseases such as hypertension and diabetes, and the death rate of people with long-term insomnia is higher. Insomnia causes the decline of body immunity and weakened resistance to various diseases; hypomnesis and headache caused by insomnia; frequent insomnia can lead people to premature senility and shorten the life; the sleep disorder of children can affect the growth and development of bodies, the growth is not high, and the intelligence is poor; insomnia is also a risk factor that leads to a tendency to suicide.
Normal sleep generally includes the process from waking to falling asleep, and from light sleep to deep sleep. During this process, brain waves exhibit a pronounced regularity. This regularity, taken together, is: under the state of waking excitement, the brain wave is mainly low-amplitude beta wave, and the frequency is 14-30 Hz; when the patient is awake and quiet, the brain waves are mainly alpha waves, the frequency is 8-13 Hz, and the amplitude is slightly high; when the user just falls asleep and enters light sleep, alpha waves in brain waves gradually disappear, theta waves appear and gradually become theta waves, and the frequency range of the theta waves is 4-7 Hz; when the sleep gradually deepens and the deep sleep is entered, delta waves appear and gradually become mainly delta waves, and the frequency of the delta waves is 0.5-3 Hz. In the whole sleeping process, deep sleep is the most important, the larger the proportion of the sleep is, the longer the time is, the better the sleeping quality is, the brain can be fully rested in deep sleep, and the best effect of recovering fatigue is achieved.
At present, the products for treating insomnia mainly adopt drug therapy and various health-care products for treating insomnia.
Most of insomnia therapeutic apparatuses in the market adopt waveforms with single frequency, that is, the same waveform is generated to guide a user to sleep, and this way has more problems, for example, the same user is likely to have different brain waves before sleeping in different treatment periods (one month and two months when the insomnia therapeutic apparatus is used), and at this time, waveforms with different treatment periods are required, and for example, the brain waves of the same user in the afternoon nap and in the night sleep are likely to be different, and the waveforms with single frequency are likely to be useful for afternoon nap, but the guiding effect for the night sleep is very small or even ineffective. Therefore, the insomnia treatment apparatuses on the market cannot guide the user according to the sleep state.
Disclosure of Invention
Aiming at the defects in the prior art, the invention aims to provide an insomnia treatment system and an insomnia treatment instrument based on a cloud server, which can be used for pertinently guiding the sleep of a user.
In order to achieve the above purposes, the technical scheme adopted by the invention is as follows: an insomnia treatment system based on a cloud server comprises an insomnia treatment instrument and the cloud server;
the insomnia therapeutic apparatus comprises:
-a brain wave acquisition module for periodically acquiring brain waves;
-a waveform generator for generating and outputting a micro-current for transcranial stimulation;
a communication module for transmitting the brain waves to a cloud server and receiving sleep guidance information generated by the cloud server from the brain waves;
-a central processor for controlling a waveform generator to emit respective micro-currents according to the sleep guidance information;
the cloud server is used for receiving the brain waves and generating sleep guidance information according to the brain waves.
Further, it also includes the user end, the software that the user end was operated in cell-phone or other intelligent terminal includes:
the login module is used for user login;
the payment module is used for generating payment information after the user pays;
the transmission module is used for transmitting the payment information to a cloud server;
the association module is used for acquiring equipment information of the insomnia therapeutic apparatus through the transmission module and associating the currently logged user ID with the insomnia therapeutic apparatus; at the same time, the user can select the desired position,
and the cloud server responds to the payment information and sends the sleep guidance information to the insomnia therapeutic apparatus associated with the user ID corresponding to the payment information.
Further, the transmission module is also used for acquiring the equipment ID of the insomnia therapeutic apparatus;
and the association module is used for establishing the corresponding relation between the equipment ID and the user ID and storing the corresponding relation to a user database.
Further, the cloud server comprises a brain waveform database, a brain electrical analysis algorithm module and a sleep guidance information database;
the brain wave database stores brain waves with different characteristic information, wherein the characteristic information comprises regions, ethnicities, sexes, ages, professions, beliefs, brain wave acquisition time and sleep states corresponding to the brain waves corresponding to user IDs;
the sleep guidance information database stores the corresponding relation between the brain waves with different characteristic information and micro-current parameters of micro-current sent by the waveform generator;
the cloud server is configured to receive the brain waves, and generate sleep guidance information according to the brain waves, including:
the electroencephalogram analysis algorithm module receives the electroencephalogram waves collected by the electroencephalogram collection module, acquires the electroencephalogram waves with the highest matching degree from the electroencephalogram waveform database according to the electroencephalogram waves and the characteristic information thereof, selects an electroencephalogram analysis algorithm, analyzes the electroencephalogram waves with the highest matching degree, generates micro-current parameters, packages the micro-current parameters into the sleep guidance information, and stores the sleep guidance information in the sleep guidance information database.
Furthermore, the user side further comprises a setting module, and the setting module is used for setting a weight coefficient of the characteristic information;
the electroencephalogram analysis algorithm module is further used for acquiring sleep guidance information with the highest matching degree in a sleep guidance information database as the sleep guidance information according to the electroencephalogram acquired by the electroencephalogram acquisition module and by combining the characteristic information of the electroencephalogram and the weight coefficient thereof.
The invention also provides an insomnia therapeutic apparatus, which comprises:
the brain wave acquisition module is used for periodically acquiring brain waves;
a waveform generator for generating and outputting a micro-current for transcranial stimulation;
the communication module is used for sending the brain waves to a cloud server and receiving sleep guidance information generated by the cloud server according to the brain waves;
and the central processing unit is used for controlling the waveform generator to send out corresponding micro-current according to the sleep guidance information.
Further, controlling the waveform generator to emit the corresponding micro-current according to the sleep guidance information includes:
the central processing unit analyzes the sleep guidance information to obtain micro-current parameters;
and the central processing unit controls the waveform generator to generate micro current according to the micro current parameters.
Further, the micro-current parameters comprise frequency spectrum, amplitude and duration of the micro-current.
Further, the communication module is a narrowband internet of things module.
Further, the central processing unit is further configured to receive the brain waves, determine whether the frequency spectrum of the brain waves reaches a preset frequency spectrum, and control the waveform generator to stop outputting if the frequency spectrum of the brain waves reaches the preset frequency spectrum.
Compared with the prior art, the invention has the advantages that:
the electroencephalogram acquisition module can acquire the electroencephalogram of a user in real time, can judge the sleep state of the user more accurately, generates sleep guidance information of the sleep state of the user at the moment through the cloud server by taking the acquired electroencephalogram as a guidance basis, and generates and outputs micro-current based on the sleep guidance information so as to guide the user to fall asleep.
Drawings
FIG. 1 is a block diagram of an insomnia treatment system provided by an embodiment of the present invention.
In the figure: 1. an insomnia therapeutic apparatus; 10. an electroencephalogram acquisition module; 11. a waveform generator; 12. a communication module; 13. a central processing unit; 2. a cloud server; 20. a brain waveform database; 21. an electroencephalogram analysis algorithm module; 22. a sleep guidance information database; 3. a user side; 30. a login module; 31. a payment module; 32. a transmission module; 33. a correlation module; 34. and setting a module.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples.
Referring to fig. 1, an embodiment of the present invention provides an insomnia treatment system based on a cloud server, which includes an insomnia treatment apparatus 1 and a cloud server 2; wherein,
the insomnia therapeutic apparatus 1 comprises an electroencephalogram acquisition module 10, a waveform generator 11, a communication module 12 and a central processing unit 13; the brain wave acquisition module 10 is used for periodically acquiring brain waves of a user; the waveform generator 11 is used for generating and outputting micro-current for transcranial stimulation; the communication module 12 is configured to send brain waves to the cloud server 2 and receive sleep guidance information generated by the cloud server 2 according to the brain waves; the central processing unit 13 is used for controlling the waveform generator 11 to send out corresponding micro-current according to the sleep guidance information;
the cloud server 2 is used for receiving brain waves and generating sleep guidance information according to the brain waves.
The principle of the invention is as follows: the brain wave acquisition module 10 acquires brain waves of a user, the brain waves are sent to the cloud server 2 through the communication module 12, the cloud server 2 generates sleep guidance information according to the brain waves, and meanwhile, after the central processing unit 13 receives the sleep guidance information, the central processing unit controls the waveform generator 11 to send corresponding micro-current for treating insomnia of the user according to the sleep guidance information; when the next period is reached, the brain wave acquisition module 10 acquires the brain waves again, and then controls the waveform generator 11 to send micro-current according to the new sleep guidance information, so that the sleep guidance is performed step by step.
The electroencephalogram acquisition module can acquire the electroencephalogram of a user in real time, can judge the sleep state of the user more accurately, generates sleep guidance information of the sleep state of the user at the moment through the cloud server by taking the acquired electroencephalogram as a guidance basis, and generates and outputs micro-current based on the sleep guidance information so as to guide the user to fall asleep.
Referring to fig. 1, the insomnia treatment system further includes a user end 3, where the user end 3 is software running on a mobile phone or other intelligent terminals, and includes a login module 30, a payment module 31, a transmission module 32, an association module 33, and a setting module 34; the login module 30 is used for user login; the payment module 31 is used for generating payment information after the user pays; the transmission module 32 is configured to send the payment information to the cloud server 2; the association module 33 is used for acquiring the equipment information of the insomnia therapeutic apparatus 1 through the transmission module 32 and associating the currently logged user ID with the insomnia therapeutic apparatus 1; the setting module is used for setting the user characteristic information and the personalized requirements, and simultaneously,
the cloud server 2 responds to the payment information and sends the sleep guidance information to the insomnia therapeutic apparatus 1 associated with the user ID corresponding to the payment information.
Specifically, the transmission module 32 is further configured to obtain an equipment ID of the insomnia therapeutic apparatus 1, and the association module 33 is configured to establish a corresponding relationship between the equipment ID and the user ID, and store the corresponding relationship in the user database. Each user terminal 3 has a user database that can store user IDs and associated device IDs.
In addition, the cloud server 2 further stores a payment period, the cloud server 2 is further configured to determine whether the time of the received brain waves is within the payment period of the current payment information, if so, the cloud server 2 directly responds to the current payment information, if not, the user side 3 needs to pay again to generate new payment information, and the cloud server 2 responds to the new payment information. Therefore, the payment period is longer than the sampling period of the electroencephalogram acquisition module 10, and usually, a plurality of samples can be obtained within one payment period.
For example, the sampling period is 10min, the payment period is 24h, that is, the user pays for each day, at 0min, after the electroencephalogram acquisition module 10 performs the first sampling, the cloud server 2 generates first sleep guidance information, the user side 3 performs payment to generate first payment information, and the cloud server 2 responds to the first payment information and sends the first sleep guidance information; at the time of 10min, performing second sampling, wherein the cloud server 2 generates second sleep guidance information, at the time, the cloud server 2 judges that the time for receiving brain waves (the time between the brain waves collected by the cloud server 2 and received by the cloud server 2 can be ignored) is within 24h, at the time, the cloud server 2 directly responds to the first payment information, and then sends the second sleep guidance information; if sampling is performed after 24h, and the cloud server 2 judges that the time for receiving brain waves is beyond 24h, the user side needs to pay again to generate second payment information, and the cloud server 2 responds to the second payment information and sends corresponding sleep guidance information; if no payment is made at this time, the cloud server 2 does not transmit the sleep guidance information.
In this embodiment, the cloud server 2 includes a brain waveform database 20, an electroencephalogram analysis algorithm module 21, and a sleep guidance information database 22; wherein,
the brain waveform database 20 stores brain waves corresponding to different feature information, wherein the feature information comprises a user ID and a corresponding region, race, gender, age, occupation, belief, brain wave acquisition time and a sleep state corresponding to the brain waves;
the sleep guidance information database 22 stores the corresponding relationship between the brain waves with different characteristic information and the micro-current parameters of the micro-current sent by the waveform generator 11;
the sleep states comprise a waking state, a resting state, a shallow sleep state and a deep sleep state, regions, ethnicities, sexes, ages, professions, beliefs and the like corresponding to user IDs can be acquired during user registration, the brain wave acquisition time comprises years, months, days, hours, minutes and seconds, the sleep states can be fed back through a user or other operators on a user side 3 such as a mobile phone or other intelligent terminals, and after receiving the feedback, the cloud server 2 stores the corresponding brain waveforms into the brain waveform database 20 and marks the corresponding sleep states; the corresponding correspondence is stored in the sleep guidance information database 22 and the corresponding sleep state is noted.
Meanwhile, the brain waveform data stored in the brain waveform database 20 establishes an association relationship with the brain waveform data of the previous time period and the brain waveform data of the next time period, so as to facilitate big data analysis;
the sleep guidance information stored in the sleep guidance information database 22 establishes an association relationship with the sleep guidance information of the previous time period and the sleep guidance information of the next time period, so as to facilitate big data analysis.
The cloud server 2 is configured to receive brain waves, and generate sleep guidance information according to the brain waves, and specifically includes: the electroencephalogram analysis algorithm module 21 receives the electroencephalogram waves acquired by the electroencephalogram acquisition module 10, acquires electroencephalogram waves with the highest matching degree from the electroencephalogram waveform database 20 according to the electroencephalogram waves and the characteristic information thereof, selects an electroencephalogram analysis algorithm, analyzes the electroencephalogram waves with the highest matching degree, generates micro-current parameters, packages the micro-current parameters into sleep guidance information, and stores the sleep guidance information in the sleep guidance information database 22. The electroencephalogram analysis algorithm comprises a frequency domain analysis algorithm and a time domain analysis algorithm; such as fourier decomposition, wavelet analysis, etc.
Or, the electroencephalogram analysis algorithm module 21 receives the electroencephalogram collected by the electroencephalogram collection module 10, the user accesses the electroencephalogram waveform database 20 according to the electroencephalogram and the characteristic information thereof, sets a specific region, ethnicity, gender, age, occupation, belief, electroencephalogram collection time, and a sleep state corresponding to the electroencephalogram, matches the sleep state with the own electroencephalogram, obtains the electroencephalogram with the highest matching degree from the electroencephalogram waveform database 20, selects an electroencephalogram analysis algorithm, analyzes the electroencephalogram with the highest matching degree through the electroencephalogram analysis algorithm module 21, generates micro-current parameters, packages the micro-current parameters into sleep guidance information, and stores the sleep guidance information in the sleep guidance information database 22.
In the matching, a weight coefficient is associated with each of the regions, ethnicities, sexes, ages, professions, beliefs, brain wave acquisition times, and sleep states corresponding to brain waves contained in the feature information, for example, each of the feature information (F1, F2 … … Fn) is initially defaulted to a weight coefficient (W1, W2 … … Wn), and the user may reset the weight coefficient through the setting module 34, and the set weight coefficient is retained until the user modifies the weight coefficient again. The matching degree calculation formula of the characteristic information is as follows:
F1*W1+F2*W2+……+Fn*Wn
for each brain wave, a matching degree can be calculated, and the highest value is the highest matching degree.
In addition, the present embodiment further provides another sleep guidance information obtaining method, that is: the user end 3 further comprises a setting module 34, wherein the setting module 34 is used for setting a weight coefficient of the characteristic information; the electroencephalogram analysis algorithm module 21 is further configured to obtain, according to the electroencephalogram acquired by the electroencephalogram acquisition module 10, and in combination with the feature information of the electroencephalogram and the weight coefficient thereof, sleep guidance information with the highest matching degree in the sleep guidance information database 22 as the sleep guidance information, for downloading after paying by the user.
In this embodiment, controlling the waveform generator 11 to emit the corresponding micro-current according to the sleep guidance information specifically includes: the central processor 13 parses the sleep guidance information to obtain micro-current parameters, and then the central processor 13 controls the waveform generator 11 to generate micro-current according to the micro-current parameters.
Referring to fig. 1, an embodiment of the present invention further provides an insomnia therapeutic apparatus, which includes an electroencephalogram acquisition module 10, a waveform generator 11, a communication module 12 and a central processing unit 13; the brain wave acquisition module 10 is used for periodically acquiring brain waves of a user; the waveform generator 11 is used for generating and outputting micro-current for transcranial stimulation; the communication module 12 is configured to send brain waves to the cloud server 2 and receive sleep guidance information generated by the cloud server 2 according to the brain waves; the central processor 13 is used for controlling the waveform generator 11 to send out corresponding micro-current according to the sleep guidance information.
Wherein, controlling the waveform generator 11 to emit the corresponding micro-current according to the sleep guidance information includes: the central processing unit 13 analyzes the sleep guidance information to obtain micro-current parameters, and the central processing unit 13 controls the waveform generator 11 to generate micro-current according to the micro-current parameters, wherein the micro-current parameters comprise frequency spectrum, amplitude and duration of the micro-current.
In this embodiment, the communication module 12 is a narrowband internet of things module.
In addition, the cpu 13 is further configured to receive the brain waves, determine whether the frequency spectrum of the brain waves reaches a preset frequency spectrum, and control the waveform generator 11 to stop outputting if the frequency spectrum of the brain waves reaches the preset frequency spectrum.
The preset frequency spectrum can be set according to actual conditions.
Since the frequency interval of the brain wave frequency spectrum of the brain wave of the human brain is 0.5 to 30Hz, the sleep state is generally divided into four levels including a waking state, a waking quiet state, a shallow sleep state and a deep sleep state, and the frequency intervals of the frequency spectrum of the waking state, the waking quiet state, the shallow sleep state and the deep sleep state are [14, 30], [8, 14 ], [4, 8 ], [0.5, 4 ] in sequence, and the unit is Hz. Therefore, in the case of the four-stage division, the frequency of the preset frequency spectrum may be set to [0.5, 4), and when the frequency of the frequency spectrum of the collected brain waves reaches [0.5, 4 ] during the sleep guidance, the waveform generator 11 is controlled to stop outputting, thereby preventing the user from being awakened.
Of course, the sleep state may be divided into six or more stages according to actual needs. For example, in the four-stage case, if the frequency interval [0.5, 4) of the frequency spectrum in the deep sleep state is divided into the first stage [0.5, 2) and the second stage [2, 4) again, the frequency of the preset frequency spectrum may be selected as [0.5, 2 ], or [2, 4 ], and when the frequency of the frequency spectrum of the collected brain waves reaches [0.5, 2 ], or [2, 4 ] during the sleep guidance process, the waveform generator 11 is controlled to stop outputting, so as to avoid the user from being awakened.
The present invention is not limited to the above-described embodiments, and it will be apparent to those skilled in the art that various modifications and improvements can be made without departing from the principle of the present invention, and such modifications and improvements are also considered to be within the scope of the present invention. Those not described in detail in this specification are within the skill of the art.