CN117860266A - Intelligent insomnia treatment method and device based on real-time EEG monitoring technology - Google Patents

Intelligent insomnia treatment method and device based on real-time EEG monitoring technology Download PDF

Info

Publication number
CN117860266A
CN117860266A CN202410214435.XA CN202410214435A CN117860266A CN 117860266 A CN117860266 A CN 117860266A CN 202410214435 A CN202410214435 A CN 202410214435A CN 117860266 A CN117860266 A CN 117860266A
Authority
CN
China
Prior art keywords
model
patient
sleep
insomnia
data
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.)
Pending
Application number
CN202410214435.XA
Other languages
Chinese (zh)
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.)
Xiamen Dnake Intelligent Technology Co ltd
Original Assignee
Xiamen Dnake Intelligent 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 Xiamen Dnake Intelligent Technology Co ltd filed Critical Xiamen Dnake Intelligent Technology Co ltd
Priority to CN202410214435.XA priority Critical patent/CN117860266A/en
Publication of CN117860266A publication Critical patent/CN117860266A/en
Pending legal-status Critical Current

Links

Classifications

    • 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/24Detecting, measuring or recording bioelectric or biomagnetic signals of the body or parts thereof
    • A61B5/25Bioelectric electrodes therefor
    • A61B5/251Means for maintaining electrode contact with the body
    • A61B5/256Wearable electrodes, e.g. having straps or bands
    • 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/25Bioelectric electrodes therefor
    • A61B5/251Means for maintaining electrode contact with the body
    • A61B5/257Means for maintaining electrode contact with the body using adhesive means, e.g. adhesive pads or tapes
    • A61B5/259Means for maintaining electrode contact with the body using adhesive means, e.g. adhesive pads or tapes using conductive adhesive means, e.g. gels
    • 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/25Bioelectric electrodes therefor
    • A61B5/262Needle electrodes
    • 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/25Bioelectric electrodes therefor
    • A61B5/263Bioelectric electrodes therefor characterised by the electrode materials
    • 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/25Bioelectric electrodes therefor
    • A61B5/279Bioelectric electrodes therefor specially adapted for particular uses
    • A61B5/291Bioelectric electrodes therefor specially adapted for particular uses for electroencephalography [EEG]
    • 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]
    • A61B5/372Analysis of electroencephalograms
    • 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]
    • A61B5/386Accessories or supplementary instruments therefor
    • 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
    • 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/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • A61B5/7203Signal processing specially adapted for physiological signals or for diagnostic purposes for noise prevention, reduction or removal
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • A61B5/7203Signal processing specially adapted for physiological signals or for diagnostic purposes for noise prevention, reduction or removal
    • A61B5/7207Signal processing specially adapted for physiological signals or for diagnostic purposes for noise prevention, reduction or removal of noise induced by motion artifacts
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • A61B5/7235Details of waveform analysis
    • A61B5/725Details of waveform analysis using specific filters therefor, e.g. Kalman or adaptive filters
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • A61B5/7235Details of waveform analysis
    • A61B5/7253Details of waveform analysis characterised by using transforms
    • A61B5/726Details of waveform analysis characterised by using transforms using Wavelet transforms
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • A61B5/7235Details of waveform analysis
    • A61B5/7264Classification of physiological signals or data, e.g. using neural networks, statistical classifiers, expert systems or fuzzy systems
    • AHUMAN NECESSITIES
    • A61MEDICAL OR VETERINARY SCIENCE; HYGIENE
    • A61BDIAGNOSIS; SURGERY; IDENTIFICATION
    • A61B5/00Measuring for diagnostic purposes; Identification of persons
    • A61B5/72Signal processing specially adapted for physiological signals or for diagnostic purposes
    • A61B5/7235Details of waveform analysis
    • A61B5/7264Classification of physiological signals or data, e.g. using neural networks, statistical classifiers, expert systems or fuzzy systems
    • A61B5/7267Classification of physiological signals or data, e.g. using neural networks, statistical classifiers, expert systems or fuzzy systems involving training the classification device

Landscapes

  • Health & Medical Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Biophysics (AREA)
  • General Health & Medical Sciences (AREA)
  • Veterinary Medicine (AREA)
  • Public Health (AREA)
  • Animal Behavior & Ethology (AREA)
  • Surgery (AREA)
  • Molecular Biology (AREA)
  • Medical Informatics (AREA)
  • Heart & Thoracic Surgery (AREA)
  • Pathology (AREA)
  • Biomedical Technology (AREA)
  • Artificial Intelligence (AREA)
  • Psychiatry (AREA)
  • Signal Processing (AREA)
  • Physiology (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Psychology (AREA)
  • Evolutionary Computation (AREA)
  • Mathematical Physics (AREA)
  • Fuzzy Systems (AREA)
  • Chemical & Material Sciences (AREA)
  • Dispersion Chemistry (AREA)
  • Measurement And Recording Of Electrical Phenomena And Electrical Characteristics Of The Living Body (AREA)

Abstract

本发明公开了基于实时脑电监测技术的智能失眠治疗方法和装置,其智能失眠治疗方法包括以下步骤:S1:使用电脑图仪将电极放置在患者的头部特定位置,采集患者不同脑区的电信号,并对患者的睡眠状况进行全面评估;S2:对数据进行滤波、伪迹去除和信号校正等预处理操作,从预处理后的脑电信号中提取有用的特征。本发明通过对患者的脑区信号进行采集分析,可制定出符合患者的个性化的治疗方案,并采用智能算法进行个性化的治疗干预,从而能够提高治疗效果,且能够将治疗的结果反馈给患者,方便患者清楚了解自己的情况。

The present invention discloses an intelligent insomnia treatment method and device based on real-time EEG monitoring technology, and the intelligent insomnia treatment method includes the following steps: S1: using a computer tomography device to place electrodes at specific positions on the patient's head, collect electrical signals from different brain regions of the patient, and conduct a comprehensive assessment of the patient's sleep condition; S2: performing preprocessing operations such as filtering, artifact removal, and signal correction on the data, and extracting useful features from the preprocessed EEG signals. The present invention can formulate a personalized treatment plan that meets the patient's needs by collecting and analyzing the patient's brain region signals, and use intelligent algorithms to perform personalized treatment interventions, thereby improving the treatment effect, and being able to feed back the treatment results to the patient, so that the patient can clearly understand his or her own situation.

Description

Intelligent insomnia treatment method and device based on real-time electroencephalogram monitoring technology
Technical Field
The invention relates to the technical field of insomnia treatment, in particular to an intelligent insomnia treatment method and device based on a real-time electroencephalogram monitoring technology.
Background
Normal sleep generally comprises a process from awake to deep sleep, in which brain waves show obvious regularity, when sleep disorder occurs, brain electric activity in a certain stage of the sleep process and even in the whole sleep process is abnormal, the first appearance of the sleep disorder is that the patient is difficult to fall asleep (namely insomnia), the period from awake to falling asleep is long, the trend of gradually lowering the frequency of the brain waves is slow and insignificant, and unstable frequency jump occurs along with the slow trend, the second appearance of the sleep disorder is that the sleep quality is poor, the patient is easy to wake and dream, the patient feels like sleeping like non-sleep, like waking, dizziness, trance, the brain electric signals at the moment are mostly in a theta wave frequency band, the second stage is mainly light sleep me, the third stage of deep sleep is deep sleep, and the proportion of the W stage is very small;
in order to improve sleep quality, a patient usually adopts a magnetic field sleep promoting instrument to promote sleep, the existing magnetic field sleep promoting instrument usually uses a certain waveform with frequency close to brain waves, or the brain waves stored in a memory in advance generate a time-varying magnetic field with corresponding waveform, and the brain waves of the patient can be influenced by the magnetic field energy in a given way, so that sleep promotion can be realized according to ideal sleep promoting steps; however, the sleep-promoting mode in the prior art has the following defects when in use: because the brain electrical mode and the response of each person are unique, the individual treatment scheme can not be proposed to realize targeted treatment according to the condition of a patient, and the same treatment scheme leads to unsatisfactory treatment effect and can not meet the use requirement, and the conditions are summarized, so that the intelligent insomnia treatment method and device based on the real-time brain electrical monitoring technology are provided.
Disclosure of Invention
Based on the technical problems in the background technology, the invention provides an intelligent insomnia treatment method and device based on a real-time electroencephalogram monitoring technology.
The invention provides an intelligent insomnia treatment method based on a real-time electroencephalogram monitoring technology, which comprises the following steps of:
s1: placing electrodes at specific positions of the head of a patient by using a computer graph, collecting electrical signals of different brain areas of the patient, and comprehensively evaluating the sleeping condition of the patient;
s2: performing preprocessing operations such as filtering, artifact removal, signal correction and the like on the data, and extracting useful features from the preprocessed electroencephalogram signals;
s3: according to the characteristics of the computer signals, using a professional sleep analysis algorithm to enable the sleep atmosphere of the patient to be different stages, such as a waking period, an N1 period, an N2 period, an N3 period, a REM period and the like;
s4: identifying whether the patient has insomnia according to the sleep characteristics and evaluation criteria of the patient, formulating a customized treatment scheme according to personal differences, and adopting an intelligent algorithm to perform personalized treatment intervention;
s5: during treatment, the sleeping condition of the patient can be timely fed back and prompted by means of mobile application degree, intelligent equipment or e-mail, and feedback content can comprise sleeping quality scores, sleeping period analysis, measures for suggesting improvement and the like.
Preferably, in the step S1, the computer graphics instrument is used to collect the electrical signals of different brain regions of the patient, and the acquisition logic is as follows:
positioning electrode position: according to the international 10-20 system, the corresponding position of the electrode placed on the scalp is determined, the scalp is divided into different areas, and the specific position of the electrode placed can be determined by measuring the position of the head circumference and using the mark points;
preparing an electrode and an electrode cap: attaching an electrode to the electrode cap and ensuring that the electrode is in close proximity to the patient's scalp, wherein the electrode may be a metal disk or needle electrode which is attached to the scalp by a conductive adhesive;
cleaning the scalp: the degreasing shampoo or alcohol is smeared on the scalp, so that the scalp grease can be removed to ensure good contact quality;
connecting the electrodes to an amplifier: connecting the electrodes to an amplifier or recording device via wires, the amplifier being to receive and amplify the weak electrical signals captured by the electrodes for subsequent processing and analysis;
collecting an electric signal: when a patient performs a specific task (such as eye closure, relaxation, etc.) or performs a specific stimulus (such as light flickering, auditory stimulus, etc.), the acquired electric signals are started to be acquired, and the acquired electric signals are transmitted to an amplifier through an electrode and recorded;
data analysis and interpretation: the acquired electrical signals may be processed and analyzed to obtain various electroencephalographic features and to perform event-related potential analysis.
Preferably, in S2, the specific steps of preprocessing the data and extracting the features are as follows:
(1) And (3) data preprocessing:
and (3) data filtering: filtering the acquired brain electrical signals by using a digital filter to remove high-frequency noise and low-frequency noise;
denoising signals: various noise components in the electroencephalogram signals, such as power line interference, myoelectric interference and the like, are reduced by adopting a denoising algorithm (such as wavelet denoising, independent component analysis and the like);
artifact removal: removing artifacts by using a filter or other methods according to the sampling frequency of the electroencephalogram signals and the possible occurrence of artifact interference (such as ocular artifacts caused by blinking);
removing pseudo-body motion: for electroencephalogram signal fluctuation caused by head movement, false body movement removal can be realized through a signal processing technology (such as correction algorithm or average removal and the like);
(2) And (3) extracting features:
extracting time domain features: extracting a series of time domain features such as average energy, variance, peak value and the like from the original time sequence brain electrical signals;
extracting frequency domain features: converting the brain electrical signal into the frequency domain by performing a Fourier transform spectrum analysis method and extracting a series of frequency domain features such as amplitude spectral density, band power ratio, etc., which are used in the analysisThe mathematical expression of (2) is:where X (f) is the frequency spectrum in the frequency domain, X (t) is the signal in the time domain, f is the frequency, and e is the base of the natural logarithm e;
time-frequency domain feature extraction: using a time-frequency analysis method wavelet transformation to obtain a time-frequency image of the electroencephalogram signal and extracting time-frequency domain features such as energy distribution, phase distribution and the like from the time-frequency image, wherein the wavelet transformation uses the expression: CWT (a, b) = ζ x (t) = { (t-b)/a } dt, where x (t) represents a continuous time signal, ψ (a, b) represents a wavelet function, a represents a scale parameter, b represents a shift parameter, ψ represents a convolution operation, and ψ represents the conjugate of the wavelet function;
nonlinear feature extraction: by introducing a nonlinear dynamics model-image reconstruction method, nonlinear characteristics of the electroencephalogram signals, such as fitting degree, bifurcation analysis and the like, are extracted, and the mathematical expressions used by the method are as follows: y=f (Ax), where f represents a nonlinear function, a represents the measurement matrix of the system, and x represents the image to be reconstructed.
Preferably, the specific step of S3 is as follows:
selecting a proper deep learning model, wherein the model is one of a Convolutional Neural Network (CNN), a cyclic neural network (RNN) or an attention mechanism, and constructing a corresponding model architecture;
dividing the data set: dividing the data set into a training set, a verification set and a test set, wherein the training set is used for model training, the verification set is used for adjusting model super parameters and monitoring model performance, and the test set is used for evaluating final model performance;
model training: the training set is used for carrying out iterative training on the model, the model parameters are adjusted by optimizing the loss function so as to improve the accuracy of sleep segmentation, and the expression used is as follows: θ=argminl (y (x), y (x)), where θ represents an optimal parameter value obtained in the optimization process, argmin represents a parameter value corresponding to the minimum value, L represents a loss function, and is used to measure a difference or an error between a predicted result y (x) of the model and a true value y (x), y (x) represents a true value or a label corresponding to the input sample x, and y (x) represents a predicted value of the model to the input sample x, which is an output of the model adjusted by the model parameter θ;
model verification and tuning: evaluating the performance of the model by using the verification set, and performing model tuning according to the need, such as super parameter adjustment, regularization addition, model structure adjustment and the like;
model test and evaluation: evaluating the finally trained model by using a test set to obtain performance indexes of the model on new data, such as accuracy, recall, F1 score and the like;
model application and deployment: the trained model is applied to new sleep data, segment prediction is performed, and subsequent analysis and processing are performed as needed, so that the whole night sleep is divided into different stages, such as a awake period, a sleep period (including light sleep and deep sleep), and REM sleep.
Preferably, in the step S4, it is identified whether the patient has insomnia, and the acquiring logic is as follows:
extracting features contributing to insomnia recognition from the sleep stage results, wherein the features can comprise a sleep stage proportion, a sleep depth index, a sleep fragmentation index, a sleep quality assessment index and the like;
selecting the features with the most distinguishing and predicting capabilities for insomnia identification by a feature selection algorithm and combining a statistical analysis method;
using a machine learning or artificial intelligence method to establish a classification model-support vector machine, taking the extracted characteristics as input, dividing the patient into insomnia groups and non-insomnia groups, wherein the mathematical expression used is as follows: f (x) =sign (w·x+b), where w is the normal vector of the hyperplane, b is the offset of the hyperplane, for the input sample x, its distance from the hyperplane is calculated, if the result is greater than 0, the sample belongs to the positive class (y=1), and if the result is less than 0, the sample belongs to the negative class (y= -1).
Preferably, in the step S4, a personalized therapeutic intervention is performed by using an intelligent algorithm, which specifically includes the following steps:
algorithm model selection: according to the feature extraction result, selecting a proper intelligent algorithm model for personalized analysis and prediction, wherein the intelligent algorithm model can be one of a machine learning algorithm (such as a support vector machine, a random forest, a neural network and the like) and a deep learning algorithm (such as a convolutional neural network, a cyclic neural network and the like);
establishing a personalized model: establishing a personalized treatment model according to the electroencephalogram characteristics and other related information of the individual by using the selected algorithm model, wherein the model can be used for predicting according to real-time data of a patient and evaluating sleep quality and insomnia symptoms of the patient;
making a treatment scheme: based on the prediction result of the personalized model, a targeted treatment scheme is formulated, and according to the requirements and characteristics of a patient, proper therapeutic intervention means such as sound, light, respiratory training, cognitive behavior therapy and the like are adopted to improve the sleeping quality of the patient and relieve insomnia symptoms;
real-time monitoring and adjustment: after implementing the therapeutic intervention scheme, continuously monitoring the electroencephalogram signal and the therapeutic effect of the patient, and timely adjusting the therapeutic scheme according to the monitoring result so as to achieve the optimal effect.
Preferably, the support vector machine is a supervised learning model, the support vector machine is supported by constructing one or more hyperplanes (parting lines or curved surfaces) and dividing samples of different classes, the input of the support vector machine is a set of feature vectors, the feature vectors can be used for describing various attributes of the samples, the output of the support vector machine is a classification result of a new sample and indicates which class of training data the sample belongs to, and the main function of the support vector machine is to perform two-class and multi-class tasks, which can be suitable for linear separable, linear inseparable and nonlinear classification problems;
the random forest is an integrated learning method, classification or regression tasks are completed by establishing a plurality of sets of decision trees, the input of the random forest is a group of feature vectors, the feature vectors are used for constructing nodes of the decision trees, the output of the random forest is a result of classifying or carrying out regression prediction on new samples and can be a discrete class label or a continuous numerical value, the random forest can be used for solving the problems of classification, regression, feature selection and the like, and the random forest has the advantages of overfitting resistance, high-dimensional data processing capability and the like;
the neural network is a network structure composed of a plurality of neurons (or called nodes), wherein the neurons are subjected to information transmission and processing through connection weights, the input of the neural network is a group of feature vectors, the feature vectors are used as nodes of an input layer and used for representing input features of samples, the output of the neural network is a prediction result of classifying, regressing or other tasks on a new sample, the prediction result can be discrete class labels or continuous numerical values, and the neural network can be used for tasks such as pattern recognition, classification, regressing and clustering and has strong fitting capacity and nonlinear modeling capacity;
the convolutional neural network consists of a convolutional layer (Convolitional layer), a pooling layer (PoolingLayer) and a full-connection layer (FullyConnectedLayer), the input of the convolutional neural network is a two-dimensional image, and the convolutional neural network can be a gray image (single channel) or a color image (multiple channels), and the convolutional neural network has the following functions: the method has excellent performance in the field of image processing, and the local characteristics and the spatial structure of the image can be extracted through the convolution layer and the pooling layer;
the cyclic neural network mainly comprises one or more cyclic layers, wherein an activation function takes an output of a previous moment as an input of a current moment, the input of the cyclic neural network is suitable for processing sequence data, such as natural language, time sequence data and the like, and the functions of the cyclic neural network are as follows: the memory unit of the loop layer can capture and utilize the previous information in the sequence data, so as to predict, classify or generate future output.
The invention also provides an intelligent insomnia treatment device based on the real-time electroencephalogram monitoring technology, which comprises a data acquisition module, a data preprocessing module, a feature extraction module, a sleep stage module, an insomnia identification module, a therapeutic intervention module, a feedback prompt module, a data storage and management module and a user interface module;
the medical staff and the patient can operate the system through the user interface module;
the data acquisition module is used for acquiring electric signals of different brain areas of a patient and carrying out storage management on data through the data storage and management module;
the data preprocessing module is used for preprocessing the acquired data such as filtering, artifact removal, signal correction and the like, and extracting useful features from the preprocessed electroencephalogram signals through the feature extraction module;
the sleep stage module uses a professional sleep analysis algorithm to stage different sleep atmospheres of a patient according to the characteristics of the computer signals;
the insomnia recognition module is used for recognizing whether the patient has insomnia;
the therapeutic intervention module adopts an intelligent algorithm to perform personalized therapeutic intervention on a patient;
the feedback prompt module can timely feed back and prompt the sleeping condition of the patient in a mode of mobile application degree, intelligent equipment or electronic mail and the like.
Compared with the prior art, the invention has the beneficial effects that:
1. the electrical signals of the brain region of the patient are collected, analyzed and evaluated to prepare a personalized treatment scheme which accords with the patient, and an intelligent algorithm is adopted to perform personalized treatment intervention, so that the treatment effect can be improved;
2. the sleeping conditions of the patient are fed back and prompted in time in a mode of moving application degree, intelligent equipment or electronic mail and the like, so that the patient can clearly know own conditions;
according to the invention, through collecting and analyzing brain area signals of a patient, a personalized treatment scheme which accords with the patient can be prepared, and personalized treatment intervention is performed by adopting an intelligent algorithm, so that the treatment effect can be improved, the treatment result can be fed back to the patient, and the patient can clearly know the situation of the patient conveniently.
Drawings
FIG. 1 is a flow chart of an intelligent insomnia treatment method based on a real-time electroencephalogram monitoring technology;
fig. 2 is a block diagram of an intelligent insomnia treatment device based on a real-time electroencephalogram monitoring technology.
Detailed Description
The invention is further illustrated below in connection with specific embodiments.
Examples
Referring to fig. 1, the embodiment provides an intelligent insomnia treatment method based on a real-time electroencephalogram monitoring technology, which comprises the following steps:
s1: placing electrodes at specific positions of the head of a patient by using a computer graph, collecting electrical signals of different brain areas of the patient, and comprehensively evaluating the sleeping condition of the patient; wherein, the computer graph instrument is used for collecting the electric signals of different brain areas of a patient, and the acquisition logic is as follows:
positioning electrode position: according to the international 10-20 system, the corresponding position of the electrode placed on the scalp is determined, the scalp is divided into different areas, and the specific position of the electrode placed can be determined by measuring the position of the head circumference and using the mark points;
preparing an electrode and an electrode cap: attaching an electrode to the electrode cap and ensuring that the electrode is in close proximity to the patient's scalp, wherein the electrode may be a metal disk or needle electrode which is attached to the scalp by a conductive adhesive;
cleaning the scalp: the degreasing shampoo or alcohol is smeared on the scalp, so that the scalp grease can be removed to ensure good contact quality;
connecting the electrodes to an amplifier: connecting the electrodes to an amplifier or recording device via wires, the amplifier being to receive and amplify the weak electrical signals captured by the electrodes for subsequent processing and analysis;
collecting an electric signal: when a patient performs a specific task (such as eye closure, relaxation, etc.) or performs a specific stimulus (such as light flickering, auditory stimulus, etc.), the acquired electric signals are started to be acquired, and the acquired electric signals are transmitted to an amplifier through an electrode and recorded;
data analysis and interpretation: the acquired electrical signals can be processed and analyzed to obtain various electroencephalogram characteristics and perform event-related potential analysis;
s2: performing preprocessing operations such as filtering, artifact removal, signal correction and the like on the data, and extracting useful features from the preprocessed electroencephalogram signals; the specific steps of preprocessing the data and extracting the characteristics are as follows:
(1) And (3) data preprocessing:
and (3) data filtering: filtering the acquired brain electrical signals by using a digital filter to remove high-frequency noise and low-frequency noise;
denoising signals: various noise components in the electroencephalogram signals, such as power line interference, myoelectric interference and the like, are reduced by adopting a denoising algorithm (such as wavelet denoising, independent component analysis and the like);
artifact removal: removing artifacts by using a filter or other methods according to the sampling frequency of the electroencephalogram signals and the possible occurrence of artifact interference (such as ocular artifacts caused by blinking);
removing pseudo-body motion: for electroencephalogram signal fluctuation caused by head movement, false body movement removal can be realized through a signal processing technology (such as correction algorithm or average removal and the like);
(2) And (3) extracting features:
extracting time domain features: extracting a series of time domain features such as average energy, variance, peak value and the like from the original time sequence brain electrical signals;
extracting frequency domain features: by performing a fourier transform spectrum analysis method, an electroencephalogram signal is converted into a frequency domain, and a series of frequency domain features such as amplitude spectral density, frequency band power ratio and the like are extracted, and mathematical expressions used in analysis are as follows:where X (f) is the frequency spectrum in the frequency domain, X (t) is the signal in the time domain, f is the frequency, and e is the base of the natural logarithm e;
time-frequency domain feature extraction: using a time-frequency analysis method wavelet transformation to obtain a time-frequency image of the electroencephalogram signal and extracting time-frequency domain features such as energy distribution, phase distribution and the like from the time-frequency image, wherein the wavelet transformation uses the expression: CWT (a, b) = ζ x (t) = { (t-b)/a } dt, where x (t) represents a continuous time signal, ψ (a, b) represents a wavelet function, a represents a scale parameter, b represents a shift parameter, ψ represents a convolution operation, and ψ represents the conjugate of the wavelet function;
nonlinear feature extraction: by introducing a nonlinear dynamics model-image reconstruction method, nonlinear characteristics of the electroencephalogram signals, such as fitting degree, bifurcation analysis and the like, are extracted, and the mathematical expressions used by the method are as follows: y=f (Ax), where f represents a nonlinear function, a represents the measurement matrix of the system, and x represents the image to be reconstructed;
s3: according to the characteristics of computer signals, a professional sleep analysis algorithm is used for carrying out different stages of sleep atmosphere of a patient, such as a waking stage, an N1 stage, an N2 stage, an N3 stage, a REM stage and the like, and the specific steps are as follows:
selecting a proper deep learning model, wherein the model is one of a Convolutional Neural Network (CNN), a cyclic neural network (RNN) or an attention mechanism, and constructing a corresponding model architecture;
dividing the data set: dividing the data set into a training set, a verification set and a test set, wherein the training set is used for model training, the verification set is used for adjusting model super parameters and monitoring model performance, and the test set is used for evaluating final model performance;
model training: the training set is used for carrying out iterative training on the model, the model parameters are adjusted by optimizing the loss function so as to improve the accuracy of sleep segmentation, and the expression used is as follows: θ=argminl (y (x), y (x)), where θ represents an optimal parameter value obtained in the optimization process, argmin represents a parameter value corresponding to the minimum value, L represents a loss function, and is used to measure a difference or an error between a predicted result y (x) of the model and a true value y (x), y (x) represents a true value or a label corresponding to the input sample x, and y (x) represents a predicted value of the model to the input sample x, which is an output of the model adjusted by the model parameter θ;
model verification and tuning: evaluating the performance of the model by using the verification set, and performing model tuning according to the need, such as super parameter adjustment, regularization addition, model structure adjustment and the like;
model test and evaluation: evaluating the finally trained model by using a test set to obtain performance indexes of the model on new data, such as accuracy, recall, F1 score and the like;
model application and deployment: applying the trained model to new sleep data, carrying out subsection prediction, and carrying out subsequent analysis and processing according to the requirement, so as to divide the whole night sleep into different stages, such as a waking period, a sleeping period (including light sleep and deep sleep) and REM sleep;
s4: identifying whether the patient has insomnia according to the sleep characteristics and evaluation criteria of the patient, formulating a customized treatment scheme according to personal differences, and adopting an intelligent algorithm to perform personalized treatment intervention;
wherein, whether the patient has insomnia problem is identified, the acquisition logic is as follows:
extracting features contributing to insomnia recognition from the sleep stage results, wherein the features can comprise a sleep stage proportion, a sleep depth index, a sleep fragmentation index, a sleep quality assessment index and the like;
selecting the features with the most distinguishing and predicting capabilities for insomnia identification by a feature selection algorithm and combining a statistical analysis method;
using a machine learning or artificial intelligence method to establish a classification model-support vector machine, taking the extracted characteristics as input, dividing the patient into insomnia groups and non-insomnia groups, wherein the mathematical expression used is as follows: f (x) =sign (w·x+b), where w is the normal vector of the hyperplane, b is the offset term of the hyperplane, for the input sample x, calculating its distance from the hyperplane, if the result is greater than 0, the sample belongs to the positive class (y=1), if the result is less than 0, the sample belongs to the negative class (y= -1);
the intelligent algorithm is adopted for personalized therapeutic intervention, and the specific steps are as follows:
algorithm model selection: according to the feature extraction result, selecting a proper intelligent algorithm model for personalized analysis and prediction, wherein the intelligent algorithm model can be one of a machine learning algorithm (such as a support vector machine, a random forest, a neural network and the like) and a deep learning algorithm (such as a convolutional neural network, a cyclic neural network and the like); wherein the support vector machine is a supervised learning model, the support vector machine is supported by constructing one or more hyperplanes (parting lines or curved surfaces) and dividing samples of different classes, the input of the support vector machine is a set of eigenvectors which can be used to describe various properties of the samples, the output of the support vector machine is a classification result of a new sample, which indicates which class of training data the sample belongs to, the main function of the support vector machine is to perform two-classification and multi-classification tasks, which can be applied to the problems of linear separable, linear inseparable and nonlinear classification, the random forest in this step is an integrated learning method, the classification or regression task is accomplished by constructing a set of decision trees, the input of the random forest is a set of eigenvectors which are used to construct nodes of the decision tree, the output of the random forest is the result of classifying or predicting the new sample, which can be discrete class label or continuous value, the random forest can be used for solving the problems of classification, regression, feature selection and the like, has the advantages of anti-overfitting capability, high-dimensional data processing capability and the like, the neural network in the step is a network structure composed of a plurality of neurons (or called nodes), wherein the neurons are in information transmission and processing through connection weights, the input of the neural network is a group of feature vectors which are used as nodes of an input layer and are used for representing the input features of the sample, the output of the neural network is the predicting result of classifying, regressing or other tasks on the new sample, can be discrete class label or continuous value, the neural network can be used for tasks such as pattern recognition, classification, regression, clustering and the like, the method has strong fitting capability and nonlinear modeling capability, the convolutional neural network in the step consists of a convolutional layer (Convolitional layer), a pooling layer (PoolingLayer) and a full-connection layer (FullyConnectcedLayer), the input of the convolutional neural network is a two-dimensional image, which can be a gray level image (single channel) or a color image (multiple channels), and the convolutional neural network has the following functions: the method has excellent performance in the field of image processing, local features and spatial structures of images can be extracted through a convolution layer and a pooling layer, the cyclic neural network in the step mainly consists of one or more cyclic layers, wherein an activation function takes output at the previous moment as input at the current moment, the input of the cyclic neural network is suitable for processing sequence data, such as natural language, time sequence data and the like, and the functions of the cyclic neural network are as follows: the memory unit of the circulating layer can capture and utilize the previous information in the sequence data, so that future output is predicted, classified or generated;
establishing a personalized model: establishing a personalized treatment model according to the electroencephalogram characteristics and other related information of the individual by using the selected algorithm model, wherein the model can be used for predicting according to real-time data of a patient and evaluating sleep quality and insomnia symptoms of the patient;
making a treatment scheme: based on the prediction result of the personalized model, a targeted treatment scheme is formulated, and according to the requirements and characteristics of a patient, proper therapeutic intervention means such as sound, light, respiratory training, cognitive behavior therapy and the like are adopted to improve the sleeping quality of the patient and relieve insomnia symptoms;
real-time monitoring and adjustment: after implementing the therapeutic intervention scheme, continuously monitoring the electroencephalogram signal and the therapeutic effect of the patient, and timely adjusting the therapeutic scheme according to the monitoring result so as to achieve the optimal effect;
s5: during treatment, the sleeping condition of the patient can be timely fed back and prompted by means of mobile application degree, intelligent equipment or e-mail, and feedback content can comprise sleeping quality scores, sleeping period analysis, measures for suggesting improvement and the like.
According to the embodiment, through collecting and analyzing brain area signals of a patient, a personalized treatment scheme which accords with the patient can be made, and personalized treatment intervention is performed by adopting an intelligent algorithm, so that the treatment effect can be improved, the treatment result can be fed back to the patient, and the patient can clearly know the situation of the patient conveniently.
Example 2
Referring to fig. 2, the embodiment provides an intelligent insomnia treatment device based on a real-time electroencephalogram monitoring technology, which comprises a data acquisition module, a data preprocessing module, a feature extraction module, a sleep stage module, an insomnia identification module, a treatment intervention module, a feedback prompt module, a data storage and management module and a user interface module;
the medical staff and the patient can operate the system through the user interface module;
the data acquisition module is used for acquiring electric signals of different brain areas of a patient and carrying out storage management on data through the data storage and management module;
the data preprocessing module is used for preprocessing the acquired data such as filtering, artifact removal, signal correction and the like, and extracting useful features from the preprocessed electroencephalogram signals through the feature extraction module;
the sleep stage module uses a professional sleep analysis algorithm to stage different sleep atmospheres of a patient according to the characteristics of the computer signals;
the insomnia recognition module is used for recognizing whether the patient has insomnia;
the therapeutic intervention module adopts an intelligent algorithm to perform personalized therapeutic intervention on a patient;
the feedback prompt module can timely feed back and prompt the sleeping condition of the patient in a mode of mobile application degree, intelligent equipment or electronic mail and the like.
The foregoing is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art, who is within the scope of the present invention, should make equivalent substitutions or modifications according to the technical scheme of the present invention and the inventive concept thereof, and should be covered by the scope of the present invention.

Claims (8)

1.基于实时脑电监测技术的智能失眠治疗方法,其特征在于,包括以下步骤:1. An intelligent insomnia treatment method based on real-time EEG monitoring technology, characterized in that it includes the following steps: S1:使用电脑图仪将电极放置在患者的头部特定位置,采集患者不同脑区的电信号,并对患者的睡眠状况进行全面评估;S1: Use a computer to place electrodes at specific locations on the patient's head to collect electrical signals from different brain regions and conduct a comprehensive assessment of the patient's sleep status; S2:对数据进行滤波、伪迹去除和信号校正等预处理操作,从预处理后的脑电信号中提取有用的特征;S2: Perform preprocessing operations such as filtering, artifact removal and signal correction on the data to extract useful features from the preprocessed EEG signals; S3:根据电脑信号的特征,使用专业的睡眠分析算法,将患者的睡眠氛围不同的阶段,如清醒期、N1期、N2期、N3期和REM期等;S3: Based on the characteristics of computer signals, a professional sleep analysis algorithm is used to classify the patient's sleep atmosphere into different stages, such as wakefulness, N1, N2, N3 and REM; S4:根据患者的睡眠特征和评估准则,识别患者是否存在失眠问题,根据个人差异,制定定制化的治疗方案、并采用智能算法进行个性化的治疗干预;S4: Identify whether the patient has insomnia based on their sleep characteristics and assessment criteria, develop customized treatment plans based on individual differences, and use intelligent algorithms for personalized treatment interventions; S5:治疗期间,可以通过移动应用程度、智能设备或电子邮件等方式,及时对患者的睡眠情况进行反馈和提示,反馈内容可以包括睡眠质量评分、睡眠周期分析和建议改进的措施等。S5: During treatment, timely feedback and reminders on the patient's sleep status can be provided through mobile applications, smart devices or emails. The feedback may include sleep quality scores, sleep cycle analysis and suggested improvement measures. 2.根据权利要求1所述的基于实时脑电监测技术的智能失眠治疗方法,其特征在于,所述S1中,使用电脑图仪采集患者不同脑区的电信号,其获取逻辑如下:2. The intelligent insomnia treatment method based on real-time EEG monitoring technology according to claim 1 is characterized in that, in S1, a computer imager is used to collect electrical signals from different brain regions of the patient, and the acquisition logic is as follows: 定位电极位置:根据国际10-20系统,确定电极在头皮上放置的相应位置,并将头皮划分为不同的区域,通过测量头围并使用标志点的位置,可以确定电极放置的具体位置;Locating the electrode position: According to the international 10-20 system, determine the corresponding position of the electrode on the scalp and divide the scalp into different areas. By measuring the head circumference and using the position of the landmark points, the specific location of the electrode can be determined; 准备电极和电极帽:将电极连接到电极帽上,并确保电极与患者头皮紧密贴合,其中电极可以是金属盘或针状电极,它们通过导电胶贴在头皮上;Prepare electrodes and electrode cap: Connect the electrodes to the electrode cap and make sure that the electrodes fit tightly against the patient's scalp. The electrodes can be metal disks or needle electrodes, which are attached to the scalp with conductive glue. 清洁头皮:在头皮上涂抹去脂洗发剂或酒精,可以去除头皮油脂,以确保良好的接触质量;Clean the scalp: Apply degreasing shampoo or alcohol on the scalp to remove scalp oil to ensure good contact quality; 将电极连接到放大器:通过导线将电极连接到放大器或记录设备,放大器将接收和放大电极捕获的微弱电信号,以便后续处理和分析;Connecting the electrodes to an amplifier: The electrodes are connected to an amplifier or recording device via wires. The amplifier will receive and amplify the weak electrical signals captured by the electrodes for subsequent processing and analysis. 采集电信号:在患者进行特定任务(如眼睛闭合、放松等)或进行特定刺激(如光闪烁、听觉刺激等)时,开始采集电信号,采集的电信号会通过电极传输到放大器,并记录下来;Collecting electrical signals: When the patient performs a specific task (such as closing the eyes, relaxing, etc.) or receives a specific stimulus (such as light flashing, auditory stimulation, etc.), the electrical signal is collected and transmitted to the amplifier through the electrodes and recorded; 数据分析与解释:采集到的电信号可以经过处理和分析,以获取各种脑电图特征,并进行事件相关电势分析。Data Analysis and Interpretation: The acquired electrical signals can be processed and analyzed to obtain various EEG features and perform event-related potential analysis. 3.根据权利要求1所述的基于实时脑电监测技术的智能失眠治疗方法,其特征在于,所述S2中,对数据进行预处理和特征提取的具体步骤如下:3. The intelligent insomnia treatment method based on real-time EEG monitoring technology according to claim 1 is characterized in that, in S2, the specific steps of preprocessing the data and extracting features are as follows: (1)、数据预处理步骤:(1) Data preprocessing steps: 数据滤波:使用数字滤波器对采集到的脑电信号进行滤波处理,以去除高频噪声和低频噪声;Data filtering: Use digital filters to filter the collected EEG signals to remove high-frequency and low-frequency noise; 信号去噪:采用去噪算法来降低脑电信号中的各种噪声成分,例如电力线干扰、肌电干扰等;Signal denoising: Denoising algorithms are used to reduce various noise components in EEG signals, such as power line interference, myoelectric interference, etc. 伪迹去除:根据脑电信号的采样频率以及可能出现的伪迹干扰,使用滤波器或者其他方法进行伪迹去除;Artifact removal: According to the sampling frequency of the EEG signal and possible artifact interference, use filters or other methods to remove artifacts; 伪体运动去除:对于头部运动引起的脑电信号波动,可以通过信号处理技术实现伪体运动去除;Pseudo-motion removal: For EEG signal fluctuations caused by head movement, pseudo-motion removal can be achieved through signal processing technology; (2)、特征提取的步骤:(2) Steps of feature extraction: 时域特征提取:从原始的时间序列脑电信号中,提取一系列的时域特征,例如平均能量、方差、峰值等;Time domain feature extraction: Extract a series of time domain features from the original time series EEG signals, such as average energy, variance, peak value, etc.; 频域特征提取:通过进行傅里叶变换频谱分析方法,将脑电信号转换到频域,并提取一系列频域特征,例如幅度谱密度、频带功率比等,其在分析时使用的数学表达式为:其中X(f)是频域上的频谱,x(t)是时域上的信号,f是频率,e是自然对数的底数e;Frequency domain feature extraction: The EEG signal is converted to the frequency domain by performing Fourier transform spectrum analysis, and a series of frequency domain features are extracted, such as amplitude spectrum density, frequency band power ratio, etc. The mathematical expression used in the analysis is: Where X(f) is the spectrum in the frequency domain, x(t) is the signal in the time domain, f is the frequency, and e is the base of the natural logarithm e; 时-频域特征提取:使用时频分析方法小波变换,获得脑电信号的时-频图像,并从中提取时-频域特征,例如能量分布、相位分布等,其中小波变换使用的表达式为:CWT(a,b)=∫x(t)*ψ*{(t-b)/a}dt,其中x(t)表示连续时间信号,ψ(a,b)表示小波函数,a表示尺度参数,b表示平移参数,*表示卷积操作,ψ*表示小波函数的共轭;Time-frequency domain feature extraction: Use the time-frequency analysis method wavelet transform to obtain the time-frequency image of the EEG signal, and extract the time-frequency domain features, such as energy distribution, phase distribution, etc. The expression used by the wavelet transform is: CWT(a,b)=∫x(t)*ψ*{(t-b)/a}dt, where x(t) represents the continuous time signal, ψ(a,b) represents the wavelet function, a represents the scale parameter, b represents the translation parameter, * represents the convolution operation, and ψ* represents the conjugate of the wavelet function; 非线性特征提取:通过引入非线性动力学模型—图像重建法,提取脑电信号的非线性特征,例如拟合度、分岔分析等,其使用到的数学表达式为:y=f(Ax),其中f表示非线性函数,A表示系统的测量矩阵,x表示待重建的图像。Nonlinear feature extraction: By introducing the nonlinear dynamic model-image reconstruction method, the nonlinear characteristics of EEG signals are extracted, such as fitting degree, bifurcation analysis, etc. The mathematical expression used is: y=f(Ax), where f represents the nonlinear function, A represents the measurement matrix of the system, and x represents the image to be reconstructed. 4.根据权利要求1所述的基于实时脑电监测技术的智能失眠治疗方法,其特征在于,所述S3的具体步骤如下:4. The intelligent insomnia treatment method based on real-time EEG monitoring technology according to claim 1, characterized in that the specific steps of S3 are as follows: 选择合适的深度学习模型,其模型为卷积神经网络(CNN)、循环神经网络(RNN)或注意力机制中的一种,并构建相应的模型架构;Select a suitable deep learning model, which is one of the convolutional neural network (CNN), recurrent neural network (RNN) or attention mechanism, and build the corresponding model architecture; 划分数据集:将数据集划分为训练集、验证集和测试集,其中训练集用于模型训练,验证集用于调整模型超参数和监控模型性能,测试集用于评估最终模型性能;Divide the dataset: Divide the dataset into training set, validation set and test set. The training set is used for model training, the validation set is used to adjust model hyperparameters and monitor model performance, and the test set is used to evaluate the final model performance. 模型训练:使用训练集对模型进行迭代训练,通过优化损失函数来调整模型参数,以提高对睡眠分段的准确性,其使用的表达式为:θ*=argminL(y(x),y(x)),其中θ*:代表优化过程中求得的最优参数值,argmin:表示求取最小值时对应的参数值,L:代表损失函数,用于衡量模型的预测结果y(x)与真实值y(x)之间的差异或误差,y(x):代表输入样本x对应的真实值或标签,y(x):代表模型对输入样本x的预测值,它是通过模型参数θ调整后的模型的输出;Model training: Use the training set to iteratively train the model, and adjust the model parameters by optimizing the loss function to improve the accuracy of sleep segmentation. The expression used is: θ* = argminL(y(x), y(x)), where θ*: represents the optimal parameter value obtained during the optimization process, argmin: represents the parameter value corresponding to the minimum value, L: represents the loss function, which is used to measure the difference or error between the model's predicted result y(x) and the true value y(x), y(x): represents the true value or label corresponding to the input sample x, y(x): represents the model's predicted value for the input sample x, which is the output of the model adjusted by the model parameter θ; 模型验证和调优:使用验证集评估模型的性能,并根据需要进行模型调优,如调整超参数、添加正则化、调整模型结构等;Model validation and tuning: Use the validation set to evaluate the performance of the model and perform model tuning as needed, such as adjusting hyperparameters, adding regularization, adjusting the model structure, etc. 模型测试和评估:使用测试集对最终训练好的模型进行评估,获取模型在新数据上的性能指标,如准确率、召回率、F1分数等;Model testing and evaluation: Use the test set to evaluate the final trained model and obtain the performance indicators of the model on new data, such as accuracy, recall, F1 score, etc. 模型应用和部署:将训练好的模型应用于新的睡眠数据,进行分段预测,并根据需要进行后续分析和处理,从而将整晚的睡眠分为不同的阶段,如清醒期、睡眠期(包括浅睡眠和深睡眠)以及REM睡眠。Model application and deployment: Apply the trained model to new sleep data for segmented predictions and subsequent analysis and processing as needed to divide a night’s sleep into different stages, such as wakefulness, sleep (including light and deep sleep), and REM sleep. 5.根据权利要求1所述的基于实时脑电监测技术的智能失眠治疗方法,其特征在于,所述S4中,识别患者是否存在失眠问题,获取逻辑如下:5. The intelligent insomnia treatment method based on real-time EEG monitoring technology according to claim 1 is characterized in that in S4, whether the patient has insomnia is identified, and the acquisition logic is as follows: 从睡眠分期的结果中提取有助于失眠识别的特征,这些特征可以包括睡眠阶段的比例、睡眠深度指标、睡眠破碎性指标、睡眠质量评估指标等;Extract features that are helpful for insomnia identification from the results of sleep staging. These features may include the proportion of sleep stages, sleep depth index, sleep fragmentation index, sleep quality assessment index, etc. 通过特征选择算法,同时结合使用统计分析法选择出对失眠识别最具有区分度和预测能力的特征;Through feature selection algorithms, combined with statistical analysis methods, the most discriminative and predictive features for insomnia identification are selected; 使用机器学习或人工智能方法建立分类模型—支持向量机,将提取的特征作为输入,将患者划分为失眠组和非失眠组,其使用的数学表达式为:f(x)=sign(w·x+b),其中w是超平面的法向量,b是超平面的偏置项,对于输入样本x,计算其与超平面的距离,若结果大于0,则样本属于正类(y=1),若结果小于0,则样本属于负类(y=-1)。A classification model, support vector machine, is established using machine learning or artificial intelligence methods. The extracted features are used as input to divide patients into insomnia group and non-insomnia group. The mathematical expression used is: f(x) = sign(w·x+b), where w is the normal vector of the hyperplane, and b is the bias term of the hyperplane. For the input sample x, its distance from the hyperplane is calculated. If the result is greater than 0, the sample belongs to the positive class (y=1). If the result is less than 0, the sample belongs to the negative class (y=-1). 6.根据权利要求1所述的基于实时脑电监测技术的智能失眠治疗方法,其特征在于,所述S4中,采用智能算法进行个性化的治疗干预,其具体步骤如下:6. The intelligent insomnia treatment method based on real-time EEG monitoring technology according to claim 1 is characterized in that, in S4, an intelligent algorithm is used to perform personalized treatment intervention, and the specific steps are as follows: 算法模型选择:根据特征提取结果,选择合适的智能算法模型进行个性化分析和预测,其智能算法模型可为机器学习算法(如支持向量机、随机森林、神经网络等)和深度学习算法(如卷积神经网络、循环神经网络等)中的一种;Algorithm model selection: According to the feature extraction results, select a suitable intelligent algorithm model for personalized analysis and prediction. The intelligent algorithm model can be one of the machine learning algorithms (such as support vector machine, random forest, neural network, etc.) and deep learning algorithms (such as convolutional neural network, recurrent neural network, etc.); 建立个性化模型:利用所选的算法模型,根据个体的脑电信号特征和其他相关信息,建立个性化的治疗模型,该模型可以根据患者的实时数据进行预测,评估患者的睡眠质量和失眠症状;Establish a personalized model: Use the selected algorithm model to establish a personalized treatment model based on the individual's EEG signal characteristics and other relevant information. The model can make predictions based on the patient's real-time data and evaluate the patient's sleep quality and insomnia symptoms; 制定治疗方案:基于个性化模型的预测结果,制定针对性的治疗方案,根据患者的需求和特点,采用合适的治疗干预手段,如声音、光线、呼吸训练、认知行为疗法等,来改善患者的睡眠质量和缓解失眠症状;Develop treatment plans: Based on the prediction results of the personalized model, develop targeted treatment plans and adopt appropriate treatment interventions such as sound, light, breathing training, cognitive behavioral therapy, etc. according to the needs and characteristics of the patients to improve the patients' sleep quality and relieve insomnia symptoms; 实时监测和调整:实施治疗干预方案后,持续监测患者的脑电信号和治疗效果,根据监测结果,及时调整治疗方案,以达到最佳效果。Real-time monitoring and adjustment: After implementing the treatment intervention plan, continuously monitor the patient's EEG signals and treatment effects, and adjust the treatment plan in a timely manner based on the monitoring results to achieve the best effect. 7.根据权利要求6所述的基于实时脑电监测技术的智能失眠治疗方法,其特征在于,所述支持向量机是一种监督学习模型,通过构建一个或多个超平面,将不同类别的样本分割开来支持向量机,支持向量机的输入是一组特征向量,这些特征向量可以用来描述样本的各种属性,支持向量机的输出是对新样本的分类结果,指示该样本属于训练数据中的哪个类别,支持向量机的主要功能是进行二分类和多分类任务,它可以适用于线性可分、线性不可分和非线性分类问题;7. The intelligent insomnia treatment method based on real-time EEG monitoring technology according to claim 6 is characterized in that the support vector machine is a supervised learning model, which separates samples of different categories by constructing one or more hyperplanes. The input of the support vector machine is a set of feature vectors, which can be used to describe various attributes of the samples. The output of the support vector machine is the classification result of the new sample, indicating which category the sample belongs to in the training data. The main function of the support vector machine is to perform binary and multi-classification tasks, and it can be applied to linearly separable, linearly inseparable and nonlinear classification problems; 随机森林是一种集成学习方法,通过建立多个决策树的集合来完成分类或回归任务,随机森林的输入是一组特征向量,这些特征向量被用于构建决策树的节点,随机森林的输出是对新样本进行分类或回归预测的结果,可以是离散类别标签或连续数值,随机森林可以用于解决分类、回归和特征选择等问题,它具有抗过拟合能力、处理高维数据能力等优势;Random forest is an ensemble learning method that completes classification or regression tasks by building a collection of multiple decision trees. The input of random forest is a set of feature vectors, which are used to build nodes of decision trees. The output of random forest is the result of classification or regression prediction of new samples, which can be discrete category labels or continuous values. Random forest can be used to solve problems such as classification, regression and feature selection. It has the advantages of anti-overfitting ability and high-dimensional data processing ability. 神经网络是由多个神经元组成的网络结构,其中神经元之间通过连接权重进行信息传递和处理,神经网络的输入是一组特征向量,这些特征向量作为输入层的节点,用来表示样本的输入特征,神经网络的输出是对新样本进行分类、回归或其他任务的预测结果,可以是离散类别标签或连续数值,神经网络可以用于模式识别、分类、回归、聚类等任务,它具有强大的拟合能力和非线性建模能力;A neural network is a network structure composed of multiple neurons, in which neurons transmit and process information through connection weights. The input of the neural network is a set of feature vectors, which are used as nodes of the input layer to represent the input features of the sample. The output of the neural network is the prediction result of classification, regression or other tasks of new samples, which can be discrete category labels or continuous values. Neural networks can be used for tasks such as pattern recognition, classification, regression, and clustering. It has powerful fitting and nonlinear modeling capabilities. 卷积神经网络由卷积层(ConvolutionalLayer)、池化层(PoolingLayer)和全连接层(FullyConnectedLayer)组成,卷积神经网络的输入是二维图像,可以是灰度图像或彩色图像,卷积神经网络的功能为:在图像处理领域有出色的表现,通过卷积层和池化层能够提取图像的局部特征和空间结构;Convolutional neural network consists of convolutional layer, pooling layer and fully connected layer. The input of convolutional neural network is a two-dimensional image, which can be a grayscale image or a color image. The functions of convolutional neural network are: it has excellent performance in the field of image processing, and can extract local features and spatial structures of images through convolutional layer and pooling layer; 循环神经网络主要由一个或多个循环层组成,其中激活函数会将前一时刻的输出作为当前时刻的输入,循环神经网络的输入适用于序列数据的处理,例如自然语言、时间序列数据等,循环神经网络的功能为:通过循环层的记忆单元,能够捕捉并利用序列数据中之前的信息,从而对未来的输出进行预测、分类或生成。A recurrent neural network is mainly composed of one or more recurrent layers, in which the activation function uses the output of the previous moment as the input of the current moment. The input of the recurrent neural network is suitable for processing sequence data, such as natural language, time series data, etc. The function of the recurrent neural network is: through the memory units of the recurrent layer, it can capture and utilize previous information in the sequence data, so as to predict, classify or generate future outputs. 8.基于实时脑电监测技术的智能失眠治疗装置,用于实现权利要求1-7任一项所述的方法,其特征在于,包括数据采集模块、数据预处理模块、特征提取模块、睡眠分期模块、失眠识别模块、治疗干预模块、反馈提示模块、数据储存和管理模块以及用户界面模块;8. An intelligent insomnia treatment device based on real-time EEG monitoring technology, used to implement the method described in any one of claims 1 to 7, characterized in that it comprises a data acquisition module, a data preprocessing module, a feature extraction module, a sleep staging module, an insomnia identification module, a treatment intervention module, a feedback prompt module, a data storage and management module, and a user interface module; 医护人员以及患者均可通过用户界面模块对系统进行操作;Both medical staff and patients can operate the system through the user interface module; 所述数据采集模块用于采集患者不同脑区的电信号,并通过数据储存和管理模块对数据进行储存管理;The data acquisition module is used to collect electrical signals from different brain regions of the patient, and store and manage the data through the data storage and management module; 所述数据预处理模块用于对采集的数据进行滤波、伪迹去除和信号校正等预处理操作,并通过特征提取模块从预处理后的脑电信号中提取有用的特征;The data preprocessing module is used to perform preprocessing operations such as filtering, artifact removal and signal correction on the collected data, and extract useful features from the preprocessed EEG signals through the feature extraction module; 所述睡眠分期模块根据电脑信号的特征,使用专业的睡眠分析算法,将患者的睡眠氛围不同的阶段;The sleep staging module uses a professional sleep analysis algorithm to classify the patient's sleep atmosphere into different stages according to the characteristics of the computer signal; 所述失眠识别模块用于识别患者是否存在失眠问题;The insomnia identification module is used to identify whether the patient has insomnia problem; 所述治疗干预模块采用智能算法对患者进行个性化的治疗干预;The treatment intervention module uses intelligent algorithms to perform personalized treatment intervention on patients; 所述反馈提示模块可通过移动应用程度、智能设备或电子邮件等方式,及时对患者的睡眠情况进行反馈和提示。The feedback prompt module can provide timely feedback and prompts on the patient's sleep status through mobile applications, smart devices or emails.
CN202410214435.XA 2024-02-27 2024-02-27 Intelligent insomnia treatment method and device based on real-time EEG monitoring technology Pending CN117860266A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410214435.XA CN117860266A (en) 2024-02-27 2024-02-27 Intelligent insomnia treatment method and device based on real-time EEG monitoring technology

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410214435.XA CN117860266A (en) 2024-02-27 2024-02-27 Intelligent insomnia treatment method and device based on real-time EEG monitoring technology

Publications (1)

Publication Number Publication Date
CN117860266A true CN117860266A (en) 2024-04-12

Family

ID=90577581

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410214435.XA Pending CN117860266A (en) 2024-02-27 2024-02-27 Intelligent insomnia treatment method and device based on real-time EEG monitoring technology

Country Status (1)

Country Link
CN (1) CN117860266A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118936939A (en) * 2024-10-15 2024-11-12 慧铁科技股份有限公司 A method for detecting opening and closing of a train body inspection cover
CN119025866A (en) * 2024-10-23 2024-11-26 华西精创医疗科技(成都)有限公司 Data prediction method, device, equipment and storage medium based on diffusion model

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118936939A (en) * 2024-10-15 2024-11-12 慧铁科技股份有限公司 A method for detecting opening and closing of a train body inspection cover
CN119025866A (en) * 2024-10-23 2024-11-26 华西精创医疗科技(成都)有限公司 Data prediction method, device, equipment and storage medium based on diffusion model
CN119025866B (en) * 2024-10-23 2024-12-24 华西精创医疗科技(成都)有限公司 Diffusion model-based data prediction method, device, equipment and storage medium

Similar Documents

Publication Publication Date Title
CN106886792B (en) An EEG Emotion Recognition Method Based on Hierarchical Mechanism to Build a Multi-Classifier Fusion Model
Jindal et al. An adaptive deep learning approach for PPG-based identification
CN115227243A (en) Automatic retrieval of background music BCI system for distinguishing brain fatigue and emotion
CN111920420A (en) Patient behavior multi-modal analysis and prediction system based on statistical learning
Khalili et al. Emotion detection using brain and peripheral signals
CN115640827B (en) Intelligent closed-loop feedback network method and system for processing electrical stimulation data
CN115422973A (en) An Attention-Based Spatial-Temporal Network EEG Emotion Recognition Method
Khosropanah et al. A hybrid unsupervised approach toward EEG epileptic spikes detection
CN120437460A (en) Intelligent music control system and method based on multimodal feature recognition of EEG signals
CN119760322A (en) Automatic sleep stage classification method based on multimodal salient waveform analysis
Pan et al. Recognition of human inner emotion based on two-stage FCA-ReliefF feature optimization
CN121009422A (en) A Multi-Scale Time-Frequency Network Sleep Stage Classification Method Based on Single-Channel EEG
Aydemir Odor and Subject Identification Using Electroencephalography Reaction to Olfactory.
Rehman et al. Advancing EEG-based biometric identification through multi-modal data fusion and deep learning techniques
Fatma et al. Survey on epileptic seizure detection on varied machine learning algorithms
Kacimi et al. Comprehensive review of physiological signal-based emotion recognition: methods, challenges, and insights on arousal and valence dimensions
Kavitha et al. Optimizing EEG-based emotion recognition with a multi-modal ensemble approach
Dhondiyal et al. Detection of Epilepsy Disease Using Support Vector Machine Based on EEG Signals
Issa et al. A novel method for gender and age detection based on EEG brain signals.
Hassan et al. EEG-Based Workload Estimation and Classification Using Discrete Wavelet Transform and Statistical Features
Memar et al. Review on machine learning frameworks in drivers’ physiological signal analysis to detect stress
CN117796809A (en) AI dream-solving technology based on emotion calculation
Jain et al. Automated Sleep Stage Classification and Music Therapy Recommendation for sleep Disorder
Mehla et al. EMD-based discrimination of mental arithmetic tasks from EEG signals
Deshwandikar et al. Stress Detection Using Electroencephalogram and Deep Learning.

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