CN114191684B - Sleep control method and device based on electroencephalogram, intelligent terminal and storage medium - Google Patents

Sleep control method and device based on electroencephalogram, intelligent terminal and storage medium Download PDF

Info

Publication number
CN114191684B
CN114191684B CN202210139837.9A CN202210139837A CN114191684B CN 114191684 B CN114191684 B CN 114191684B CN 202210139837 A CN202210139837 A CN 202210139837A CN 114191684 B CN114191684 B CN 114191684B
Authority
CN
China
Prior art keywords
insomnia
score
preset
grade
imu
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210139837.9A
Other languages
Chinese (zh)
Other versions
CN114191684A (en
Inventor
韩璧丞
单思聪
王俊霖
刘浩然
王伊宁
王悉谣
郭小涛
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Qiangnao Technology Co ltd
Original Assignee
Zhejiang Qiangnao Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Qiangnao Technology Co ltd filed Critical Zhejiang Qiangnao Technology Co ltd
Priority to CN202210139837.9A priority Critical patent/CN114191684B/en
Publication of CN114191684A publication Critical patent/CN114191684A/en
Application granted granted Critical
Publication of CN114191684B publication Critical patent/CN114191684B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61MDEVICES FOR INTRODUCING MEDIA INTO, OR ONTO, THE BODY; DEVICES FOR TRANSDUCING BODY MEDIA OR FOR TAKING MEDIA FROM THE BODY; DEVICES FOR PRODUCING OR ENDING SLEEP OR STUPOR
    • A61M21/00Other devices or methods to cause a change in the state of consciousness; Devices for producing or ending sleep by mechanical, optical, or acoustical means, e.g. for hypnosis
    • A61M21/02Other devices or methods to cause a change in the state of consciousness; Devices for producing or ending sleep by mechanical, optical, or acoustical means, e.g. for hypnosis for inducing sleep or relaxation, e.g. by direct nerve stimulation, hypnosis, analgesia
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/24Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
    • A61B5/316Modalities, i.e. specific diagnostic methods
    • A61B5/369Electroencephalography [EEG]
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/48Other medical applications
    • A61B5/4806Sleep evaluation
    • A61B5/4812Detecting sleep stages or cycles
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/48Other medical applications
    • A61B5/4806Sleep evaluation
    • A61B5/4815Sleep quality
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/68Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient
    • A61B5/6801Arrangements of detecting, measuring or recording means, e.g. sensors, in relation to patient specially adapted to be attached to or worn on the body surface
    • A61B5/6802Sensor mounted on worn items
    • A61B5/6803Head-worn items, e.g. helmets, masks, headphones or goggles
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61MDEVICES FOR INTRODUCING MEDIA INTO, OR ONTO, THE BODY; DEVICES FOR TRANSDUCING BODY MEDIA OR FOR TAKING MEDIA FROM THE BODY; DEVICES FOR PRODUCING OR ENDING SLEEP OR STUPOR
    • A61M21/00Other devices or methods to cause a change in the state of consciousness; Devices for producing or ending sleep by mechanical, optical, or acoustical means, e.g. for hypnosis
    • A61M2021/0005Other devices or methods to cause a change in the state of consciousness; Devices for producing or ending sleep by mechanical, optical, or acoustical means, e.g. for hypnosis by the use of a particular sense, or stimulus
    • A61M2021/0072Other devices or methods to cause a change in the state of consciousness; Devices for producing or ending sleep by mechanical, optical, or acoustical means, e.g. for hypnosis by the use of a particular sense, or stimulus with application of electrical currents

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Animal Behavior & Ethology (AREA)
  • Veterinary Medicine (AREA)
  • Public Health (AREA)
  • Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Biomedical Technology (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Biophysics (AREA)
  • Molecular Biology (AREA)
  • Surgery (AREA)
  • Medical Informatics (AREA)
  • Pathology (AREA)
  • Psychology (AREA)
  • Anesthesiology (AREA)
  • Psychiatry (AREA)
  • Pain & Pain Management (AREA)
  • Acoustics & Sound (AREA)
  • Hematology (AREA)
  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
  • Measurement And Recording Of Electrical Phenomena And Electrical Characteristics Of The Living Body (AREA)

Abstract

The invention discloses a sleep control method, a sleep control device, an intelligent terminal and a storage medium based on electroencephalogram, wherein the method comprises the following steps: acquiring the total duration of wearing a head ring by a user in sleeping, and IMU motion data and brain wave data detected by an IMU sensor; statistically analyzing the total duration, the IMU motion data and the brain wave data to obtain an insomnia score; and correspondingly dividing the insomnia scores to obtain insomnia grades, and controlling the sleeping process according to the insomnia grades and the IMU movement data. According to the embodiment of the invention, the IMU movement data is added to obtain the insomnia score and the corresponding insomnia grade, and finally the sleep process is controlled based on the insomnia grade and the IMU movement data, so that more accurate control can be realized, and the sleep quality of a user is improved.

Description

Sleep control method and device based on electroencephalogram, intelligent terminal and storage medium
Technical Field
The invention relates to the technical field of monitoring and monitoring, in particular to a sleep control method and device based on electroencephalogram, an intelligent terminal and a storage medium.
Background
In daily life, many people cannot sleep at night, sleep disorder occurs, the physical health of the patients is seriously affected, and memory is reduced, so that the people can roll over and hardly fall asleep, and therefore, a quantifiable method is urgently needed for determining whether the user has insomnia or not, controlling the insomnia during sleep and improving the sleep quality of the user.
Thus, there is still a need for improvement and development of the prior art.
Disclosure of Invention
The technical problem to be solved by the present invention is to provide a sleep control method, device, intelligent terminal and storage medium based on electroencephalogram, aiming at solving the problem that there is no quantifiable method to determine whether a user has insomnia, and to control the occurrence of insomnia during sleep, so as to improve the sleep quality of the user.
The technical scheme adopted by the invention for solving the problems is as follows:
in a first aspect, an embodiment of the present invention provides a sleep control method based on electroencephalogram, where the method includes:
acquiring the total duration of wearing a head ring by a user in sleeping, and IMU motion data and brain wave data detected by an IMU sensor;
statistically analyzing the total duration, the IMU motion data and the brain wave data to obtain an insomnia score;
and correspondingly dividing the insomnia scores to obtain insomnia grades, and controlling the sleeping process according to the insomnia grades and the IMU movement data.
In one implementation, the brain wave data includes a time and a brain wave frequency corresponding to the time.
In one implementation, the sleep states include a waking state, a sleeping state, a light sleep state and a deep sleep state, and the statistically analyzing the total duration, the IMU motion data and the electroencephalogram data to obtain an insomnia score includes:
counting and calculating time in the brain wave data and brain wave frequency corresponding to the time to obtain a sleep state and duration corresponding to the sleep state;
and obtaining an insomnia score according to the total duration, the IMU motion data, the sleep state and the duration corresponding to the sleep state.
In one implementation, the insomnia score includes a first insomnia score, a second insomnia score, a third insomnia score, a fourth insomnia score, a fifth insomnia score, and a sixth insomnia score; obtaining an insomnia score according to the total duration, the IMU motion data, the sleep state and the duration corresponding to the sleep state comprises:
dividing the sum of the duration corresponding to the waking state and the duration corresponding to the sleeping state by the total duration to obtain the time ratio of insomnia;
when the time ratio is smaller than or equal to a preset first score threshold value and the IMU motion data value is smaller than or equal to a preset motion threshold value, the insomnia score is a first insomnia score;
when the time ratio is smaller than or equal to a preset first score threshold value and the IMU motion data value is larger than a preset motion threshold value, the insomnia score is a second insomnia score;
when the time ratio is greater than a preset first score threshold value, the insomnia time ratio is less than or equal to a preset second score threshold value, and the IMU motion data value is less than or equal to a preset motion threshold value, the insomnia score is a third insomnia score;
when the time ratio is greater than a preset first score threshold value, the insomnia time ratio is less than or equal to a preset second score threshold value, and the IMU motion data value is greater than a preset motion threshold value, the insomnia score is a fourth insomnia score;
when the time ratio is greater than a preset second threshold value and the IMU motion data value is less than or equal to a preset motion threshold value, the insomnia score is a fifth insomnia score;
and when the time ratio is greater than a preset second threshold value and the value of the IMU motion data is greater than a preset motion threshold value, the insomnia score is a sixth insomnia score.
In one implementation, the insomnia grades comprise a first insomnia grade, a second insomnia grade and a third insomnia grade, and the correspondingly dividing the insomnia scores comprises:
dividing the grade corresponding to the first insomnia score into a first insomnia grade;
dividing the grade corresponding to the second insomnia score and the third insomnia score into a second insomnia grade;
and classifying the grade corresponding to the fourth insomnia score, the fifth insomnia score and the sixth insomnia score into a third insomnia grade.
In one implementation, the controlling sleep progress based on the grade of insomnia and the IMU movement data includes:
when the insomnia grade is a first insomnia grade, increasing micro-electrical stimulation of a first preset time interval;
when the insomnia grade is a second insomnia grade, increasing micro-electrical stimulation of a second preset time interval; wherein the second preset time interval is greater than the first preset time interval;
when the insomnia grade is a third insomnia grade, increasing micro-electrical stimulation of a third preset time interval; wherein the third preset time interval is greater than the second preset time interval;
and when the value of the IMU motion data is zero in a preset period, reducing the intensity of the micro-electrical stimulation.
In a second aspect, an embodiment of the present invention further provides a sleep control system based on electroencephalogram, where the system includes:
the various data acquisition modules are used for acquiring the total duration of wearing the head ring by the user in sleep, and IMU motion data and brain wave data detected by the IMU sensor;
the insomnia score determining module is used for carrying out statistical analysis on the total duration, the IMU motion data and the brain wave data to obtain an insomnia score;
and the insomnia grade obtaining and sleep control module is used for correspondingly dividing the insomnia scores to obtain the insomnia grades and controlling the sleep process according to the insomnia grades and the IMU movement data.
In one implementation, the brain wave data includes a time and a brain wave frequency corresponding to the time.
In one implementation, the sleep states include an awake state, an in-sleep state, a light sleep state, and a deep sleep state, the insomnia score determination module includes:
the sleep state and time length determining unit is used for counting and calculating the time in the brain wave data and the brain wave frequency corresponding to the time to obtain the sleep state and the time length corresponding to the sleep state;
and the insomnia score determining subunit is used for obtaining an insomnia score according to the total duration, the IMU motion data, the sleep state and the duration corresponding to the sleep state.
In one implementation, the insomnia score includes a first insomnia score, a second insomnia score, a third insomnia score, a fourth insomnia score, a fifth insomnia score, and a sixth insomnia score; the insomnia score determining subunit comprises:
a time ratio obtaining unit, configured to divide the sum of the duration corresponding to the awake state and the duration corresponding to the sleep-entering state by the total duration to obtain a time ratio of insomnia;
the first insomnia score determining unit is used for determining the insomnia score as a first insomnia score when the time ratio is less than or equal to a preset first score threshold value and the IMU motion data value is less than or equal to a preset motion threshold value;
a second insomnia score determining unit, wherein when the time ratio is less than or equal to a preset first score threshold value and the IMU motion data value is greater than a preset motion threshold value, the insomnia score is a second insomnia score;
a third insomnia score determining unit, wherein when the time ratio is greater than a preset first score threshold, the insomnia time ratio is less than or equal to a preset second score threshold, and the IMU motion data value is less than or equal to a preset motion threshold, the insomnia score is a third insomnia score;
a fourth insomnia score determining unit, configured to determine an insomnia score as a fourth insomnia score when the time ratio is greater than a preset first score threshold, the insomnia time ratio is less than or equal to a preset second score threshold, and the IMU exercise data value is greater than a preset exercise threshold;
a fifth insomnia score determining unit, configured to determine an insomnia score as a fifth insomnia score when the time ratio is greater than a preset second threshold and the IMU exercise data value is less than or equal to a preset exercise threshold;
and the sixth insomnia score determining unit is used for determining the insomnia score as the sixth insomnia score when the time ratio is greater than a preset second threshold and the IMU motion data value is greater than a preset motion threshold.
In one implementation, the insomnia level includes a first insomnia level, a second insomnia level and a third insomnia level, and the insomnia level obtaining module includes:
the first insomnia grade obtaining unit is used for dividing the grade corresponding to the first insomnia score into a first insomnia grade;
a second insomnia grade obtaining unit, configured to divide the grade corresponding to the second insomnia score and the third insomnia score into a second insomnia grade;
and the third insomnia grade obtaining unit is used for dividing the grade corresponding to the fourth insomnia score, the fifth insomnia score and the sixth insomnia score into a third insomnia grade.
In one implementation, the sleep control module includes:
the first sleep control unit is used for increasing the micro-electrical stimulation of a first preset time interval when the insomnia grade is a first insomnia grade;
the second sleep control unit is used for increasing the micro-electrical stimulation of a second preset time interval when the insomnia grade is a second insomnia grade; wherein the second preset time interval is greater than the first preset time interval;
the third sleep control unit is used for increasing the micro-electrical stimulation of a third preset time interval when the insomnia grade is a third insomnia grade; wherein the third preset time interval is greater than the second preset time interval;
and the fourth sleep control unit is used for reducing the intensity of the micro-electrical stimulation when the value of the IMU motion data is zero in a preset period.
In a third aspect, an embodiment of the present invention further provides an intelligent terminal, including a memory and one or more programs, where the one or more programs are stored in the memory, and configured to be executed by one or more processors includes a processor configured to execute the electroencephalogram-based sleep control method according to any one of the above.
In a fourth aspect, the present invention further provides a non-transitory computer-readable storage medium, where instructions in the storage medium, when executed by a processor of an electronic device, enable the electronic device to perform the electroencephalogram-based sleep control method as described in any one of the above.
The invention has the beneficial effects that: the method comprises the steps of firstly, acquiring the total duration of wearing a head ring by a user in sleeping, and IMU motion data and brain wave data detected by an IMU sensor; then, statistically analyzing the total duration, the IMU motion data and the brain wave data to obtain an insomnia score; finally, correspondingly dividing the insomnia scores to obtain insomnia grades, and controlling the sleeping process according to the insomnia grades and the IMU movement data; therefore, the embodiment of the invention adds the IMU movement data to obtain the insomnia score and the corresponding insomnia grade, and finally controls the sleep process based on the insomnia grade and the IMU movement data, so that more accurate control can be realized, and the sleep quality of the user is improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments described in the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a sleep control method based on electroencephalogram according to an embodiment of the present invention.
Fig. 2 is a schematic block diagram of a sleep control system based on electroencephalogram according to an embodiment of the present invention.
Fig. 3 is a schematic block diagram of an internal structure of an intelligent terminal according to an embodiment of the present invention.
Detailed Description
The invention discloses a sleep control method, a sleep control device, an intelligent terminal and a storage medium based on electroencephalogram, and in order to make the purpose, technical scheme and effect of the invention clearer and clearer, the invention is further described in detail by referring to the attached drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein.
In the prior art, a quantifiable method is urgently needed to determine whether the user has insomnia or not, control the insomnia during sleeping and improve the sleeping quality of the user.
In order to solve the problems in the prior art, the embodiment provides a sleep control method based on electroencephalogram, wherein IMU motion data is added to obtain an insomnia score and a corresponding insomnia grade, and finally, the sleep process is controlled based on the insomnia grade and the IMU motion data, so that more accurate control can be realized, and the sleep quality of a user is improved. When the method is specifically implemented, the total duration of wearing a head ring by a user in sleep, IMU motion data and brain wave data detected by an IMU sensor are firstly obtained; then, statistically analyzing the total duration, the IMU motion data and the brain wave data to obtain an insomnia score; and finally, correspondingly dividing the insomnia scores to obtain the insomnia grades, and controlling the sleeping process according to the insomnia grades and the IMU movement data.
Exemplary method
The embodiment provides a sleep control method based on electroencephalogram, and the method can be applied to an intelligent terminal for health monitoring. As shown in fig. 1 in detail, the method includes:
s100, acquiring the total duration of wearing a head ring by a user in sleeping, and IMU motion data and brain wave data detected by an IMU sensor;
specifically, the head ring is arranged on the head of a user and used for collecting electroencephalograms of the user, the user can wear the head ring on the head before sleeping, the head ring is taken out after the sleeping is finished, the total wearing time of the head ring of the user during sleeping can be obtained by subtracting the time when the head ring is worn from the time when the sleeping is finished, besides, the brain wave data of the brain of the user can be detected through the electrodes on the head ring, the brain wave data comprises the frequency of the electroencephalograms and the time corresponding to the frequency, and therefore the duration time of different frequencies and frequencies of the brain waves can be obtained. The system is also provided with an IMU sensor which can detect the acceleration and the angular velocity of the measured object, so that when a user swings head left and right, the acceleration and the angular velocity of the head of the user can be detected through the IMU sensor; when the user swings his head up and down, the acceleration of the user's head may be detected by the IMU sensor.
After obtaining the total length of time that the user wears the head ring while sleeping, the IMU motion data and brain wave data detected by the IMU sensor, the following steps may be performed as shown in fig. 1: s200, statistically analyzing the total duration, the IMU motion data and the brain wave data to obtain an insomnia score;
specifically, the total duration reflects the duration of the user in the whole sleep, and the IMU motion data reflects whether the user is calm or uneasy during the sleep, because if the user is calm, the sleep quality is good, and if the user turns over all the time, the sleep quality is poor; the frequency in the electroencephalogram data reflects different states of the user in sleep, and the different sleep states reflect the sleep quality of the user at different times. For the sleep of the user, the user usually cares about whether the user sleeps, the data can reflect whether the user sleeps, and in order to quantify the degree of the insomnia, the insomnia score can be obtained through the data.
In order to obtain an insomnia score, the statistical analysis of the total duration, the IMU motion data and the electroencephalogram data to obtain the insomnia score comprises the following steps:
s201, counting time in the electroencephalogram data and electroencephalogram frequency corresponding to the time to obtain a sleep state and duration corresponding to the sleep state;
s202, obtaining an insomnia score according to the total duration, the IMU motion data, the sleep state and the duration corresponding to the sleep state.
In particular, the sleep states include an awake state, a sleep-in state, a light sleep state, and a deep sleep state. Firstly, counting time in the electroencephalogram data and electroencephalogram frequency corresponding to the time, wherein the electroencephalogram frequency corresponds to four different states, when the frequency is beta wave, the time length corresponding to the beta wave is the time obtained by subtracting the starting time from the ending time of the beta wave, the sleep state is the waking state, and the time length corresponding to the beta wave is used as the time length corresponding to the waking state; when the frequency is alpha wave, the time length corresponding to the alpha wave is the time length obtained by subtracting the starting time from the ending time of the alpha wave, so that the sleep state is the sleep state, and the time length corresponding to the alpha wave is taken as the time length corresponding to the sleep state; when the frequency is theta waves, the time length corresponding to the theta waves is the time length obtained by subtracting the starting time from the ending time of the theta waves, the sleep state is a light sleep state, and the time length corresponding to the theta waves is used as the time length corresponding to the light sleep state; when the frequency is delta wave, the sleeping state is a deep sleeping state if the time length corresponding to the delta wave is the time length obtained by subtracting the starting time from the ending time of the delta wave, and the time length corresponding to the delta wave is taken as the time length corresponding to the deep sleeping state. And then acquiring an insomnia score according to the total duration, the IMU motion data, the sleep state and the duration corresponding to the sleep state.
In one implementation, the insomnia score includes a first insomnia score, a second insomnia score, a third insomnia score, a fourth insomnia score, a fifth insomnia score, and a sixth insomnia score; the step of obtaining the insomnia score according to the total duration, the IMU motion data, the sleep state and the duration corresponding to the sleep state comprises the following steps: dividing the sum of the duration corresponding to the waking state and the duration corresponding to the sleeping state by the total duration to obtain the time ratio of insomnia; when the time ratio is smaller than or equal to a preset first score threshold value and the IMU motion data value is smaller than or equal to a preset motion threshold value, the insomnia score is a first insomnia score; when the time ratio is smaller than or equal to a preset first score threshold value and the IMU motion data value is larger than a preset motion threshold value, the insomnia score is a second insomnia score; when the time ratio is greater than a preset first score threshold value, the insomnia time ratio is less than or equal to a preset second score threshold value, and the IMU motion data value is less than or equal to a preset motion threshold value, the insomnia score is a third insomnia score; when the time ratio is greater than a preset first score threshold value, the insomnia time ratio is less than or equal to a preset second score threshold value, and the IMU motion data value is greater than a preset motion threshold value, the insomnia score is a fourth insomnia score; when the time ratio is greater than a preset second threshold value and the IMU motion data value is less than or equal to a preset motion threshold value, the insomnia score is a fifth insomnia score; and when the time ratio is greater than a preset second threshold value and the value of the IMU motion data is greater than a preset motion threshold value, the insomnia score is a sixth insomnia score.
Specifically, during the sleep process, if the sum of the duration of the awake state and the duration of the sleep-in state reflects the degree of insomnia of the user. To better quantify the degree, the sum of the time duration corresponding to the awake state and the time duration corresponding to the sleep state is divided by the total time duration to obtain a time ratio of insomnia of the user, in this embodiment, the IMU motion data are angular velocity and acceleration, the first score threshold is 3/10, the second score threshold is 1/2, the preset motion threshold is that the angular velocity is 10 degrees, the acceleration is zero.5, when the time ratio is less than or equal to 3/10, the angular velocity of the user is less than or equal to 10 degrees, the acceleration of the user is less than or equal to 0.5, then a first insomnia score is obtained, such as 15; when the time ratio is less than or equal to 3/10, the angular velocity of the user is greater than 10 degrees, and the acceleration of the user is greater than 0.5, then a second insomnia score, such as 25, is obtained; when the time ratio is greater than 3/10 and less than 1/2, the angular velocity of the user is less than or equal to 10 degrees, and the acceleration of the user is less than or equal to 0.5, a third insomnia score, such as 35, is obtained; when the time ratio is greater than 3/10 and less than 1/2, the angular velocity of the user is greater than 10 degrees, and the acceleration of the user is greater than 0.5, a fourth insomnia score, such as 45, is obtained; when the time ratio is greater than 1/2, the angular velocity of the user is less than or equal to 10 degrees, and the acceleration of the user is less than or equal to 0.5, a fifth insomnia score, such as 55, is obtained, and when the time ratio is greater than 1/2, the angular velocity of the user is less than or equal to 10 degrees, the angular velocity of the user is greater than 10 degrees, the acceleration of the user is greater than 0.5, and the first insomnia score is 65.
After the insomnia score is obtained, the following steps can be performed as shown in fig. 1: s300, correspondingly dividing the insomnia scores to obtain insomnia grades, and controlling a sleeping process according to the insomnia grades and the IMU movement data;
in step S300, the insomnia grades include a first insomnia grade, a second insomnia grade and a third insomnia grade, and the correspondingly dividing the insomnia score to obtain the insomnia grade includes the following steps: dividing the grade corresponding to the first insomnia score into a first insomnia grade; dividing the grade corresponding to the second insomnia score and the third insomnia score into a second insomnia grade; and classifying the grade corresponding to the fourth insomnia score, the fifth insomnia score and the sixth insomnia score into a third insomnia grade.
In this example, the first insomnia score is 15, indicating a low degree of insomnia, which is classified into a first insomnia grade; the second insomnia score is 25, the third insomnia score is 35, the insomnia degrees corresponding to the two insomnia scores are higher, and the two insomnia scores are divided into a second insomnia grade; the fourth insomnia score is 45, the fifth insomnia score is 55 and the sixth insomnia score is 65, and the insomnia degrees of the three insomnia scores are very high, so the three insomnia scores are classified into a third insomnia grade.
After the insomnia grade is obtained, the sleeping process can be controlled according to the insomnia grade and the IMU motion data, and the method specifically comprises the following steps: when the insomnia grade is a first insomnia grade, increasing micro-electrical stimulation of a first preset time interval; when the insomnia grade is a second insomnia grade, increasing micro-electrical stimulation of a second preset time interval; wherein the second preset time interval is greater than the first preset time interval; when the insomnia grade is a third insomnia grade, increasing micro-electrical stimulation of a third preset time interval; wherein the third preset time interval is greater than the second preset time interval; and when the value of the IMU motion data is zero in a preset period, reducing the intensity of the micro-electrical stimulation.
In practice, the first insomnia level is relatively mild, and the first predetermined time interval of increased micro-electrical stimulation may be set to a short point, such as 30 minutes; the degree of the second insomnia level is higher than that of the first insomnia level, the second preset time interval of the added micro-electrical stimulation is longer than the first preset time interval, for example, 1 hour, the third insomnia level is very serious, the third preset time interval of the added micro-electrical stimulation is longer than the second preset time interval, for example, 2 hours, the insomnia of the user is accurately adjusted through the stimulation modes with different degrees, in addition, for more accurate control, the head acceleration and the angular velocity of the user are detected through an IMU sensor every other preset period, for example, 20 minutes, when the value (namely the head acceleration and the angular velocity) of the IMU motion data is zero, the user enters the light sleep and the deep sleep at the moment and is not insomnia any more, the intensity of the micro-electrical stimulation for deep sleep can be reduced, and the specific reduction amount can be adjusted according to actual conditions.
Exemplary device
As shown in fig. 2, an embodiment of the present invention provides a sleep control system based on electroencephalogram, which includes various data acquisition modules 401, an insomnia score determination module 402, and an insomnia level obtaining and sleep control module 403: the various data acquisition modules 401 are used for acquiring the total length of time for wearing a head ring by a user in sleeping, and IMU motion data and brain wave data detected by an IMU sensor;
an insomnia score determining module 402, configured to statistically analyze the total duration, the IMU motion data, and the brain wave data to obtain an insomnia score;
and the insomnia grade obtaining and sleep control module 403 is configured to correspondingly divide the insomnia score to obtain an insomnia grade, and control a sleep process according to the insomnia grade and the IMU motion data.
In one implementation, the brain wave data includes a time and a brain wave frequency corresponding to the time.
In one implementation, the sleep states include an awake state, an in-sleep state, a light sleep state, and a deep sleep state, and the wakefulness score determination module 402 includes:
the sleep state and time length determining unit is used for counting and calculating the time in the brain wave data and the brain wave frequency corresponding to the time to obtain the sleep state and the time length corresponding to the sleep state;
and the insomnia score determining subunit is used for obtaining an insomnia score according to the total duration, the IMU motion data, the sleep state and the duration corresponding to the sleep state.
In one implementation, the insomnia score includes a first insomnia score, a second insomnia score, a third insomnia score, a fourth insomnia score, a fifth insomnia score, and a sixth insomnia score; the insomnia score determining subunit comprises:
a time ratio obtaining unit, configured to divide the sum of the duration corresponding to the awake state and the duration corresponding to the sleep-entering state by the total duration to obtain a time ratio of insomnia;
the first insomnia score determining unit is used for determining the insomnia score as a first insomnia score when the time ratio is less than or equal to a preset first score threshold value and the IMU motion data value is less than or equal to a preset motion threshold value;
a second insomnia score determining unit, wherein when the time ratio is less than or equal to a preset first score threshold value and the IMU motion data value is greater than a preset motion threshold value, the insomnia score is a second insomnia score;
a third insomnia score determining unit, wherein when the time ratio is greater than a preset first score threshold, the insomnia time ratio is less than or equal to a preset second score threshold, and the IMU motion data value is less than or equal to a preset motion threshold, the insomnia score is a third insomnia score;
a fourth insomnia score determining unit, configured to determine an insomnia score as a fourth insomnia score when the time ratio is greater than a preset first score threshold, the insomnia time ratio is less than or equal to a preset second score threshold, and the IMU exercise data value is greater than a preset exercise threshold;
a fifth insomnia score determining unit, configured to determine an insomnia score as a fifth insomnia score when the time ratio is greater than a preset second threshold and the IMU exercise data value is less than or equal to a preset exercise threshold;
and the sixth insomnia score determining unit is used for determining the insomnia score as the sixth insomnia score when the time ratio is greater than a preset second threshold and the IMU motion data value is greater than a preset motion threshold.
In one implementation, the insomnia level includes a first insomnia level, a second insomnia level and a third insomnia level, and the insomnia level obtaining module includes:
the first insomnia grade obtaining unit is used for dividing the grade corresponding to the first insomnia score into a first insomnia grade;
a second insomnia grade obtaining unit, which is used for dividing the grade corresponding to the second insomnia score and the third insomnia score into a second insomnia grade;
and the third insomnia grade obtaining unit is used for dividing the grade corresponding to the fourth insomnia score, the fifth insomnia score and the sixth insomnia score into a third insomnia grade.
In one implementation, the sleep control module includes:
the first sleep control unit is used for increasing the micro-electrical stimulation of a first preset time interval when the insomnia grade is a first insomnia grade;
the second sleep control unit is used for increasing the micro-electrical stimulation of a second preset time interval when the insomnia grade is a second insomnia grade; wherein the second preset time interval is greater than the first preset time interval;
the third sleep control unit is used for increasing the micro-electrical stimulation of a third preset time interval when the insomnia grade is a third insomnia grade; wherein the third preset time interval is greater than the second preset time interval;
and the fourth sleep control unit is used for reducing the intensity of the micro-electrical stimulation when the value of the IMU motion data is zero in a preset period.
Based on the above embodiment, the present invention further provides an intelligent terminal, and a schematic block diagram thereof may be as shown in fig. 3. The intelligent terminal comprises a processor, a memory, a network interface, a display screen and a temperature sensor which are connected through a system bus. Wherein, the processor of the intelligent terminal is used for providing calculation and control capability. The memory of the intelligent terminal comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the intelligent terminal is used for being connected and communicated with an external terminal through a network. The computer program is executed by a processor to implement a brain electrical based sleep control method. The display screen of the intelligent terminal can be a liquid crystal display screen or an electronic ink display screen, and the temperature sensor of the intelligent terminal is arranged inside the intelligent terminal in advance and used for detecting the operating temperature of internal equipment.
It will be understood by those skilled in the art that the schematic diagram in fig. 3 is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation to the intelligent terminal to which the solution of the present invention is applied, and a specific intelligent terminal may include more or less components than those shown in the figure, or combine some components, or have different arrangements of components.
In one embodiment, an intelligent terminal is provided that includes a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including instructions for:
acquiring the total duration of wearing a head ring by a user in sleeping, and IMU motion data and brain wave data detected by an IMU sensor;
statistically analyzing the total duration, the IMU motion data and the brain wave data to obtain an insomnia score;
and correspondingly dividing the insomnia scores to obtain insomnia grades, and controlling the sleeping process according to the insomnia grades and the IMU movement data.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, databases, or other media used in embodiments provided herein may include non-volatile and/or volatile memory. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
In summary, the invention discloses a sleep control method, a sleep control device, an intelligent terminal and a storage medium based on electroencephalogram, wherein the method comprises the steps of obtaining the total duration of wearing a head ring by a user during sleeping, IMU motion data and brain wave data detected by an IMU sensor; statistically analyzing the total duration, the IMU motion data and the brain wave data to obtain an insomnia score; and correspondingly dividing the insomnia scores to obtain insomnia grades, and controlling the sleeping process according to the insomnia grades and the IMU movement data. According to the embodiment of the invention, the IMU movement data is added to obtain the insomnia score and the corresponding insomnia grade, and finally the sleep process is controlled based on the insomnia grade and the IMU movement data, so that more accurate control can be realized, and the sleep quality of a user is improved.
Based on the above embodiments, the present invention discloses a sleep control method based on electroencephalogram, it should be understood that the application of the present invention is not limited to the above examples, and it will be obvious to those skilled in the art that modifications and variations can be made in the foregoing description, and all such modifications and variations should fall within the scope of the appended claims.

Claims (3)

1. A brain-electrical based sleep control system, the system comprising:
the various data acquisition modules are used for acquiring the total duration of wearing the head ring by the user in sleep, and IMU motion data and brain wave data detected by the IMU sensor; wherein the IMU motion data comprises acceleration and angular velocity of the user's head;
the brain wave data comprises time and brain wave frequency corresponding to the time;
the insomnia score determining module is used for carrying out statistical analysis on the total duration, the IMU motion data and the brain wave data to obtain an insomnia score;
the sleep state comprises a waking state, a sleeping state, a light sleep state and a deep sleep state, and the insomnia score determination module comprises:
the sleep state and time length determining unit is used for counting and calculating the time in the brain wave data and the brain wave frequency corresponding to the time to obtain the sleep state and the time length corresponding to the sleep state;
the insomnia score determining subunit is used for obtaining an insomnia score according to the total duration, the IMU motion data, the sleep state and the duration corresponding to the sleep state;
the insomnia score comprises a first insomnia score, a second insomnia score, a third insomnia score, a fourth insomnia score, a fifth insomnia score and a sixth insomnia score; the insomnia score determining subunit comprises:
a time ratio obtaining unit, configured to divide the sum of the duration corresponding to the awake state and the duration corresponding to the sleep-entering state by the total duration to obtain a time ratio of insomnia;
the first insomnia score determining unit is used for determining the insomnia score as a first insomnia score when the time ratio is less than or equal to a preset first score threshold value and the IMU motion data value is less than or equal to a preset motion threshold value;
a second insomnia score determining unit, wherein when the time ratio is less than or equal to a preset first score threshold value and the IMU motion data value is greater than a preset motion threshold value, the insomnia score is a second insomnia score;
a third insomnia score determining unit, wherein when the time ratio is greater than a preset first score threshold, the insomnia time ratio is less than or equal to a preset second score threshold, and the IMU motion data value is less than or equal to a preset motion threshold, the insomnia score is a third insomnia score;
a fourth insomnia score determining unit, configured to determine an insomnia score as a fourth insomnia score when the time ratio is greater than a preset first score threshold, the insomnia time ratio is less than or equal to a preset second score threshold, and the IMU exercise data value is greater than a preset exercise threshold;
a fifth insomnia score determining unit, configured to determine an insomnia score as a fifth insomnia score when the time ratio is greater than a preset second threshold and the IMU exercise data value is less than or equal to a preset exercise threshold;
a sixth insomnia score determining unit, configured to determine the insomnia score as a sixth insomnia score when the time ratio is greater than a preset second threshold and the IMU exercise data value is greater than a preset exercise threshold;
the insomnia grade obtaining and sleep control module is used for correspondingly dividing the insomnia scores to obtain the insomnia grades and controlling the sleep process according to the insomnia grades and the IMU movement data;
the insomnia grades comprise a first insomnia grade, a second insomnia grade and a third insomnia grade, and the insomnia grade obtaining module comprises:
the first insomnia grade obtaining unit is used for dividing the grade corresponding to the first insomnia score into a first insomnia grade;
a second insomnia grade obtaining unit, configured to divide the grade corresponding to the second insomnia score and the third insomnia score into a second insomnia grade;
the third insomnia grade obtaining unit is used for dividing grades corresponding to the fourth insomnia score, the fifth insomnia score and the sixth insomnia score into a third insomnia grade;
the sleep control module includes:
the first sleep control unit is used for increasing the micro-electrical stimulation of a first preset time interval when the insomnia grade is a first insomnia grade;
the second sleep control unit is used for increasing the micro-electrical stimulation of a second preset time interval when the insomnia grade is a second insomnia grade; wherein the second preset time interval is greater than the first preset time interval;
the third sleep control unit is used for increasing the micro-electrical stimulation of a third preset time interval when the insomnia grade is a third insomnia grade; wherein the third preset time interval is greater than the second preset time interval;
and the fourth sleep control unit is used for reducing the intensity of the micro-electrical stimulation when the value of the IMU motion data is zero in a preset period.
2. An intelligent terminal comprising a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising instructions for execution by the brain electrical based sleep control system of claim 1.
3. A non-transitory computer readable storage medium, wherein instructions in the storage medium, when executed by a processor of an electronic device, are adapted to be loaded and executed by a processor of the brain electrical based sleep control system of claim 1.
CN202210139837.9A 2022-02-16 2022-02-16 Sleep control method and device based on electroencephalogram, intelligent terminal and storage medium Active CN114191684B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210139837.9A CN114191684B (en) 2022-02-16 2022-02-16 Sleep control method and device based on electroencephalogram, intelligent terminal and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210139837.9A CN114191684B (en) 2022-02-16 2022-02-16 Sleep control method and device based on electroencephalogram, intelligent terminal and storage medium

Publications (2)

Publication Number Publication Date
CN114191684A CN114191684A (en) 2022-03-18
CN114191684B true CN114191684B (en) 2022-05-17

Family

ID=80659015

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210139837.9A Active CN114191684B (en) 2022-02-16 2022-02-16 Sleep control method and device based on electroencephalogram, intelligent terminal and storage medium

Country Status (1)

Country Link
CN (1) CN114191684B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114451900B (en) * 2022-04-11 2022-09-27 深圳市心流科技有限公司 Sleep quality determination method and system based on electroencephalogram and storage medium
CN115998250A (en) * 2022-12-01 2023-04-25 深圳市心流科技有限公司 Control method and control device of human body biological state data monitoring equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010140117A1 (en) * 2009-06-04 2010-12-09 Koninklijke Philips Electronics, N.V. Method and system for providing behavioural therapy for insomnia
WO2013028960A1 (en) * 2011-08-25 2013-02-28 Insomnisolv, Llc System and method for the treatment of insomnia
EP3108921A1 (en) * 2015-06-24 2016-12-28 Hill-Rom S.A.S. Patient support system for monitoring and controlling sleep
WO2019212901A1 (en) * 2018-04-30 2019-11-07 Kelvin Ning Method, system and device for assisted sleep
EP3787477A1 (en) * 2018-05-04 2021-03-10 Verily Life Sciences LLC Sensing and activity classification for infants

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108078541A (en) * 2017-10-02 2018-05-29 深圳市维灵创新科技有限公司 A kind of sleep monitor is with intervening instrument
JP2021513437A (en) * 2018-02-13 2021-05-27 マインドミクス,インコーポレイテッド Ultra-low frequency sound biosensor system and method
CN108937867A (en) * 2018-06-29 2018-12-07 出门问问信息科技有限公司 A kind of dormant monitoring method and device
CN109620158B (en) * 2018-12-28 2021-10-15 惠州Tcl移动通信有限公司 Sleep monitoring method, intelligent terminal and storage device
CN113520328B (en) * 2021-08-16 2023-11-24 成都云卫康医疗科技有限公司 Sleep quality evaluation method
CN113975587B (en) * 2021-12-23 2022-05-17 深圳市心流科技有限公司 Brain wave-based insomnia adjustment system and method, intelligent terminal and storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010140117A1 (en) * 2009-06-04 2010-12-09 Koninklijke Philips Electronics, N.V. Method and system for providing behavioural therapy for insomnia
WO2013028960A1 (en) * 2011-08-25 2013-02-28 Insomnisolv, Llc System and method for the treatment of insomnia
EP3108921A1 (en) * 2015-06-24 2016-12-28 Hill-Rom S.A.S. Patient support system for monitoring and controlling sleep
WO2019212901A1 (en) * 2018-04-30 2019-11-07 Kelvin Ning Method, system and device for assisted sleep
EP3787477A1 (en) * 2018-05-04 2021-03-10 Verily Life Sciences LLC Sensing and activity classification for infants

Also Published As

Publication number Publication date
CN114191684A (en) 2022-03-18

Similar Documents

Publication Publication Date Title
CN114191684B (en) Sleep control method and device based on electroencephalogram, intelligent terminal and storage medium
CN114053551B (en) Electroencephalogram signal-based auxiliary sleep-helping method and device, terminal and storage medium
CN113975587B (en) Brain wave-based insomnia adjustment system and method, intelligent terminal and storage medium
CN114511160B (en) Method, device, terminal and storage medium for predicting sleep time
EP3677171A1 (en) A method and apparatus for determining sleep need and sleep pressure based on physiological data
EP3671757A1 (en) System and method for determining a level of alertness
CN111594999A (en) Air conditioner, control method and device thereof and air conditioning system
CN105030199A (en) Sleep monitoring method and device
CN104615851A (en) Sleep monitoring method and terminal
US11160949B2 (en) Method, apparatus and computer program product for providing a dynamic wake-up alert
WO2018098719A1 (en) Sleep monitoring method, apparatus and terminal
CN113941071B (en) Sleep awakening method and device based on electroencephalogram, intelligent terminal and storage medium
CN115770356B (en) Sleep assisting device, method, terminal and storage medium based on multi-class electrical stimulation
CN109846291A (en) A kind of intelligent pillow awakening method and intelligent pillow
CN109620158B (en) Sleep monitoring method, intelligent terminal and storage device
CN114569863B (en) Sleep-assisted awakening method and system, electronic equipment and storage medium
CN111657855A (en) Sleep evaluation and sleep awakening method and device and electronic equipment
CN114451900B (en) Sleep quality determination method and system based on electroencephalogram and storage medium
US20220020492A1 (en) Predicting orthosomnia in an individual
CN114652327B (en) Sleep planning method and system based on electroencephalogram, intelligent terminal and storage medium
TW202108077A (en) Focus automatic detection method and system
US20220233805A1 (en) Customized-type sleep management method and system
CN109567750B (en) Sleep stage determination method and device and computer equipment
CN114504321A (en) Electroencephalogram signal processing method and device for attention training and storage medium
CN115154837B (en) Control method and device of sleep-assisting equipment, terminal and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant