CN112603337A - Electroencephalogram signal identification method - Google Patents
Electroencephalogram signal identification method Download PDFInfo
- Publication number
- CN112603337A CN112603337A CN202011521877.7A CN202011521877A CN112603337A CN 112603337 A CN112603337 A CN 112603337A CN 202011521877 A CN202011521877 A CN 202011521877A CN 112603337 A CN112603337 A CN 112603337A
- Authority
- CN
- China
- Prior art keywords
- model
- data
- electroencephalogram
- training
- identification method
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 29
- 238000012549 training Methods 0.000 claims abstract description 36
- 238000012360 testing method Methods 0.000 claims abstract description 10
- 238000007781 pre-processing Methods 0.000 claims abstract description 5
- 238000013145 classification model Methods 0.000 claims description 24
- 238000010586 diagram Methods 0.000 claims description 20
- 238000001914 filtration Methods 0.000 claims description 7
- 238000012545 processing Methods 0.000 claims description 7
- 238000012935 Averaging Methods 0.000 claims description 6
- 238000010606 normalization Methods 0.000 claims description 6
- 210000004556 brain Anatomy 0.000 claims description 5
- 238000005070 sampling Methods 0.000 claims description 5
- 210000002569 neuron Anatomy 0.000 claims description 4
- 238000011423 initialization method Methods 0.000 claims description 3
- 238000002372 labelling Methods 0.000 claims description 2
- 238000005259 measurement Methods 0.000 claims description 2
- 238000010200 validation analysis Methods 0.000 description 10
- 230000008569 process Effects 0.000 description 7
- 238000002474 experimental method Methods 0.000 description 6
- 238000004458 analytical method Methods 0.000 description 5
- 239000011159 matrix material Substances 0.000 description 4
- 230000000875 corresponding effect Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000002269 spontaneous effect Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 239000000463 material Substances 0.000 description 2
- 230000004913 activation Effects 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 210000003169 central nervous system Anatomy 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000001149 cognitive effect Effects 0.000 description 1
- 230000002596 correlated effect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 201000010099 disease Diseases 0.000 description 1
- 208000037265 diseases, disorders, signs and symptoms Diseases 0.000 description 1
- 238000000605 extraction Methods 0.000 description 1
- 230000002349 favourable effect Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 230000003860 sleep quality Effects 0.000 description 1
- 230000000638 stimulation Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/72—Signal processing specially adapted for physiological signals or for diagnostic purposes
- A61B5/7203—Signal processing specially adapted for physiological signals or for diagnostic purposes for noise prevention, reduction or removal
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/72—Signal processing specially adapted for physiological signals or for diagnostic purposes
- A61B5/7225—Details of analog processing, e.g. isolation amplifier, gain or sensitivity adjustment, filtering, baseline or drift compensation
-
- A—HUMAN NECESSITIES
- A61—MEDICAL OR VETERINARY SCIENCE; HYGIENE
- A61B—DIAGNOSIS; SURGERY; IDENTIFICATION
- A61B5/00—Measuring for diagnostic purposes; Identification of persons
- A61B5/72—Signal processing specially adapted for physiological signals or for diagnostic purposes
- A61B5/7235—Details of waveform analysis
- A61B5/7264—Classification of physiological signals or data, e.g. using neural networks, statistical classifiers, expert systems or fuzzy systems
- A61B5/7267—Classification 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)
- Engineering & Computer Science (AREA)
- Life Sciences & Earth Sciences (AREA)
- Signal Processing (AREA)
- Artificial Intelligence (AREA)
- Physics & Mathematics (AREA)
- Heart & Thoracic Surgery (AREA)
- Surgery (AREA)
- Physiology (AREA)
- Biophysics (AREA)
- Pathology (AREA)
- Biomedical Technology (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Medical Informatics (AREA)
- Molecular Biology (AREA)
- Psychiatry (AREA)
- Animal Behavior & Ethology (AREA)
- General Health & Medical Sciences (AREA)
- Public Health (AREA)
- Veterinary Medicine (AREA)
- Evolutionary Computation (AREA)
- Fuzzy Systems (AREA)
- Mathematical Physics (AREA)
- Power Engineering (AREA)
- Measurement And Recording Of Electrical Phenomena And Electrical Characteristics Of The Living Body (AREA)
Abstract
The invention discloses an electroencephalogram signal identification method, which comprises the steps of firstly, acquiring electroencephalogram signals, wherein the acquired data are divided into two types, including a training set and a testing set; collecting electroencephalogram signals by adopting a P300 brain-computer interface, wherein the electroencephalogram signals when corresponding characters are seen by a measuring person are used as data sources during collection; preprocessing an electroencephalogram signal; collecting a priority signal channel; and establishing a generated confrontation network, and analyzing and identifying the electroencephalogram signals through the generated confrontation network. By adopting the method, the problem of low recognition rate of the electroencephalogram P300 signal is solved, and the problem of low robustness of signal recognition is solved.
Description
Technical Field
The invention relates to the technical field of electroencephalogram signals, in particular to an electroencephalogram signal identification method.
Background
The brain is the central nervous system of higher nervous activities in the human body, has hundreds of millions of neurons, and transmits and processes human body information by interconnecting. The electroencephalogram signals can be divided into induced electroencephalogram signals and spontaneous electroencephalogram signals according to the mode of generation. The P300 event related potential is one of induced electroencephalogram signals, is used as an endogenous component, is not influenced by stimulated physical characteristics, is related to perceptual or cognitive psychological activities, and is closely related to the processing processes of attention, memory, intelligence and the like. The electroencephalogram signals collected in the sleeping process belong to spontaneous electroencephalogram signals. The spontaneous sleep electroencephalogram signals can reflect the self change of the body state, and are also important auxiliary tools for evaluating the sleep quality and diagnosing and treating sleep-related diseases.
The existing electroencephalogram detection method has the problems of low recognition rate, low accuracy and low recognition speed.
Disclosure of Invention
The invention aims to: aiming at the existing problems, the electroencephalogram signal identification method is provided, the problem of low electroencephalogram P300 signal identification rate is solved, and the problem of low signal identification robustness is solved.
The invention adopts the following specific technical scheme:
an electroencephalogram signal identification method is characterized by comprising the following steps:
s1, acquiring electroencephalogram signals, wherein the acquired data are divided into two types including a training set and a testing set; collecting electroencephalogram signals by adopting a P300 brain-computer interface, wherein the electroencephalogram signals when corresponding characters are seen by a measuring person are used as data sources during collection; the subject will be tested for several rounds for each character, each round will flash 12 times, 2 out of 12 will stimulate the subject to produce a P300 brain electrical signal. The rows and the columns in each round of measurement flicker once, the rows are divided into A types, and the columns are divided into B types; the time range of P300 electroencephalogram signals of a plurality of subjects is determined by analyzing known 12 characters, the graphs are represented as oscillograms of six rows and six columns in one flash, and the row and the column with the highest probability within 500ms of the P300 electroencephalogram signals are found out.
S2, preprocessing an electroencephalogram signal; in the step S2, the signal preprocessing includes the steps of:
3000 continuous sampling values of data collected by an S2.1 and P300 brain-computer interface are obtained, the first 250 meaningless data are removed,
s2.2, adopting low-pass filtering with the order of 8 for processing data;
s2.3, carrying out normalization processing on the data of each channel to form a waveform diagram of 20 channels;
and S2.4, carrying out superposition averaging on the waveforms of the 20 channels to obtain a waveform diagram.
S3, collecting a priority signal channel; the selection of the optimal channel uses the pearson correlation coefficient to study the linear correlation degree between each tested channel, which is defined as shown in the following formula:
wherein, x, y are mutually two channels which are different. Using a training data set, substituting data into a formula to obtain correlation coefficients among all channels; and labeling the correlation relation by adopting a thermodynamic diagram and finding out the correlation.
And S4, establishing a generated confrontation network, and analyzing and identifying the electroencephalogram signals through the generated confrontation network. In step S4, the generated countermeasure network includes a supervised classification model, an unsupervised discriminant model, and a generated model, the generated model is used to generate the dummy data, and the supervised classification model and the unsupervised discriminant model share the weight of the hidden layer; the hidden layer comprises 3 full connection layers, and the layers are activated through a relu function. The output result of the generated model and the format of the training data are the same, the hidden layer of the generated model is composed of two full-connection layers, and the number of neurons in the two full-connection layers is 600.
Initializing a model, wherein the parameter initialization method is standardized kaiming initialization, and performing iterative training on the model, wherein the iterative training comprises the following steps:
A. training a supervised classification model separately using the label samples;
B. training an unsupervised discriminant model by using the unlabeled sample and the dummy data sample;
C. determining weights in a supervised classification model and an unsupervised discrimination model, and training by using a pseudo data sample to generate a confrontation network model so as to improve the reliability of the generated model;
D. after full training, the obtained supervised classification model can be applied to classification of new data which are not labeled;
E. the supervised classification model is used for realizing label classification on the sample data, namely distinguishing positive samples or negative samples; the unsupervised judging model is used for distinguishing whether the sample data is from the unlabeled new data of the data set or the pseudo data sample obtained by the generating model; the input and hidden layers of the supervised classification model and the unsupervised discrimination model are the same, and the final realized results are different.
In summary, due to the adoption of the technical scheme, the invention has the beneficial effects that:
1. firstly, for character recognition, sample data is screened firstly, and then the ideas of 8-order low-pass filtering and data normalization and superposition averaging are adopted. The filtering function is to eliminate the influence of a part of noise, after normalization, superposition and averaging, a wave pattern corresponding to each character test of each person is made and analyzed, the line number and the column number which are most likely to become a P300 signal are extracted, the most likely characters are comprehensively analyzed according to the conditions of all people, and the analysis method is verified by char13-char17 given in the second question, wherein the accuracy rate of the analysis method is about 60%.
2. For all tested channel extractions, correlation coefficients are used herein to determine the correlation between each channel and other channels, and are visualized with a thermodynamic diagram. When the correlation coefficient of a certain channel and another channel is less than 0 and exceeds 10 times, the channel is selected to be rejected, and the tested S4 data has errors, and the data is not analyzed. The calculations yielded representative channels for the tested S1, S2, S3, S5, and the intersection of them as the optimal channel combination, for a total of 11 channels, [ 'T7', 'T8', 'CP3', 'CP4', 'CP5', 'CP6', 'P4', 'P8', 'Oz', 'O1', 'O2').
3. According to the optimal channel combination obtained by the method, after the original brain wave data is preprocessed and sliced, a training sample set is obtained, part of the training sample set is used as labeled samples, the rest of the training sample set is used as unlabeled samples, an SGAN model is trained, S5_ test is used as verification data, the average accuracy of the model is finally obtained to be 15%, and the rest of characters are predicted. The semi-supervised generation of the countermeasure network only needs to acquire a small number of labeled samples to train the model, so that the training time is effectively reduced, and the robustness of the model is effectively improved.
4. By adopting the method, the problem of low recognition rate of the electroencephalogram P300 signal is solved, and the problem of low robustness of signal recognition is solved.
Drawings
FIG. 1 is a schematic diagram of a display used in the data acquisition of the present invention.
Fig. 2 is a waveform diagram of the present invention after the 20 channels are superposed and averaged.
Fig. 3 is a waveform diagram of the superposition of the 8 th character 6 line of the human subject 1 according to the present invention.
Fig. 4 is a waveform diagram of the superposition of the 8 th character 6 column of the human subject 1 according to the present invention.
Fig. 5 is a SGAN flow chart of the present invention.
FIG. 6 is a P300 signal diagram of the present invention.
Fig. 7 is a P300-free signal diagram of the present invention.
The labels in the figure are: the device comprises a base 1, a spring 2, a vibrating motor 3, a frame 4, a material discarding barrel 5, a stepping motor 6, a motor base 7, a coupler 8, a discharge pipe 9, a transmission shaft 10, a bearing 11, a dividing cylinder 12, a dividing ratio adjusting blade 13, a feeding bottom plate 14, a feeding middle plate 15, a speed reducing net 16, a speed reducing plate 17, a feeding top plate 18, a material stopping plate 19 and a hopper 20.
Detailed Description
The present invention will be described in detail below with reference to the accompanying drawings.
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying 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. In the description of the present invention, it should be noted that, unless otherwise explicitly stated or limited, the terms "mounted" and "connected" are to be interpreted broadly, and may be, for example, fixedly connected, detachably connected, or integrally connected; either directly or indirectly through intervening media, either internally or in any combination thereof. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example 1:
the invention discloses an implementation mode of an electroencephalogram signal identification method, which comprises the steps of firstly collecting electroencephalogram signals, wherein experimental data in the method are provided by P300 brain-computer interfaces of 5 healthy adult testees (S1-S5). Each subject can observe a character matrix consisting of 36 characters in rows or columns (6 rows and 6 columns in total), as shown in fig. 1. The acquisition device acquires brain electrical data for the subject at a sampling rate of 250 Hz. Data is divided into two categories, including training set and testing set.
The specific data acquisition process comprises the following steps: after entering a flashing mode of the character matrix, flashing one row or one column of the character matrix in a random sequence every time, wherein the flashing time is 80 milliseconds, and the interval is 80 milliseconds; finally, when all rows and columns blink once, a round of experiment is ended. In the process of observing the target characters, when the lines or columns of the target characters flicker, P300 potential appears in the EEG signals; while when other rows and columns blink, the P300 potential does not appear. The experimental procedure was repeated for 5 cycles in 1 cycle. In each character matrix flicker experiment, the electroencephalogram data table contains 20 recording channels, namely Fz, F3, F4, Cz, C3, C4, T7, T8, CP3, CP4, CP5, CP6, Pz, P3, P4, P7, P8, Oz, O1 and O2, and each row represents one sample point data. Before electroencephalogram analysis, raw data needs to be preprocessed, so that other noise interference is reduced, and more sample characteristics are kept as far as possible.
The data is then preprocessed, because the tested characters of each subject are consistent, but the time of the generated P300 electroencephalogram signal is possibly inconsistent due to the difference of individual targets, and because the sampling frequency of the device is 250Hz and the sampling interval is 4ms, namely, in the data table attached to the first subject, more than 3000 data values are continuously sampled, and as can be seen from the event data table, the first character target flickers all 250 sample points later, i do not consider the first 250 data. For the processing of the data, we use low-pass filtering with the order of 8, and then perform normalization processing on the data of each channel, which is to facilitate the inconsistency of the initial data of each channel in the accessory to be processed by using superposition average, after the data is normalized, we perform low-pass filtering and normalization on the experiment of one character of the subject, and then perform waveform diagrams of 20 channels, as can be seen from fig. 2, in which data of some channels have redundancy.
Then, the waveforms of 20 channels are subjected to superposition and averaging to obtain a waveform diagram. As shown in fig. 3 and 4. Fig. 3 shows the waveform of the 8 th character to be verified of the subject 1 after all the line/column flickers are respectively and correspondingly superimposed and averaged in 5 rounds of experiments, from which the corresponding line and column generating the P300 signal in about 300 and 500ms needs to be analyzed, i.e. the line 2, 3 and the column 12 of the possible selection area in the following figure should be taken in the interval.
The identification method comprises the following steps: for each character, the subject is tested for 5 rounds, each round flashes for 12 times, and 2 times of the 12 times stimulate the subject to generate P300 electroencephalogram signals; that is, for the determination of a character, we only need to determine the row and column where the character is located. Therefore, for the waveform after the superposition and averaging, because the interference of the electromyographic signals, the electroencephalographic signals and the electro-ocular signals exists, the accuracy after the filtering cannot be ensured, and therefore, the graph which is most likely to become the P300 signal within 0-600ms after stimulation is found in the waveform as the determination of the row and column.
In one round of experiment, the rows and columns all flash once, and we divide the rows into one class and the columns into one class. The time range of the P300 electroencephalogram signal of 5 subjects is roughly determined by analyzing the known 12 characters, the graph is represented as a waveform diagram of six rows and six columns in one flash, and the row or the column where the character is located can be found out by finding out the row and the column with the highest probability within 300-500ms of the possible occurrence of the P300 electroencephalogram signal. The results of predictive identification are shown in tables 1-1 to 1-10:
TABLE 3-1 statistical validation of the character "char 13
TABLE 3-2 statistical validation of the character "char 14
TABLE 3 statistical validation of the character "char 15
TABLE 3-4 statistical validation of the character "char 16
TABLE 3-5 statistical validation of the character "char 17
TABLE 3-6 statistical validation of the character "char 18
TABLE 3-7 statistical validation of the character "char 19
TABLE 3-8 statistical validation of the character "char 20
TABLE 3-9 statistical validation of the character "char 21
Statistical validation of 3-10 characters "char 22
In 20 electroencephalogram signal acquisition channels, irrelevant or redundant channel data not only can increase the complexity of the system, but also influences the accuracy and performance of classification and identification. For each tested, the channel name more favorable for classification is extracted separately. Therefore, the pearson correlation coefficient was chosen to study the degree of linear correlation between each channel tested, as defined by equation (4-1).
Wherein, x, y are mutually two channels which are different.
The training data set is used to calculate the correlation coefficient among all channels tested in S1, S2, S3, S4 and S5. Since the correlation is more visually observed, it is represented herein using a thermodynamic diagram. Considering that when the same testee recognizes different characters, the correlation among the channels of the obtained electroencephalogram data is different.
And then selecting an optimal channel and selecting an optimal channel combination name. Through thermodynamic diagrams and correlation, the correlation coefficients of the remaining 19 channels are almost the same except that channel "Cz" is negatively correlated with each channel, indicating that the fluctuations and directions between the 19 channels are the same. Normally this would not be the case and is suspected of being a problem with plant acquisition errors, which is also consistent with our analysis in the first place. To reduce errors, no channel selection analysis was performed at test S4.
In order to achieve the purpose that the number of the selected channel combinations is more than or equal to 10, after repeated tests and comparison are carried out for a plurality of times, each channel of each testee is subjected to more than 10 times of negative correlation with other channels, the channel is removed, each tested channel is obtained, and the intersection of all tested channels is selected as the optimal channel combination.
The specific channel selection is shown in Table 2-1, where the symbol "X" is to cull the channel and the symbol "V" is to preserve the channel.
TABLE 2-1 Each channel tested and optimal channel combination
S1 | S2 | S3 | Common channel | |
Fz | × | × | × | × |
F3 | √ | √ | × | × |
F4 | √ | × | √ | × |
Cz | × | × | × | × |
C3 | × | √ | × | × |
C4 | √ | √ | × | × |
T7 | √ | √ | √ | √ |
T8 | √ | √ | √ | √ |
CP3 | √ | √ | √ | √ |
CP4 | √ | √ | √ | √ |
CP5 | √ | √ | √ | √ |
CP6 | √ | √ | √ | √ |
Pz | √ | √ | √ | × |
P3 | √ | √ | √ | × |
P4 | √ | √ | √ | √ |
P7 | √ | × | √ | × |
P8 | √ | √ | √ | √ |
Oz | √ | √ | √ | √ |
O1 | √ | √ | √ | √ |
O2 | √ | √ | √ | √ |
From the thermodynamic diagrams and table 2-1, we can obtain that the channels of the tested S1 are selected to be 'F3', 'F4', 'C4', 'T7', 'T8', 'CP3', 'CP4', 'CP5', 'CP6', 'Pz', 'P3', 'P4', 'P7', 'P8', 'Oz', 'O1', 'O2', and 17 in total.
The channels of the tested S2 were selected as [ 'F3', 'C3', 'C4', 'T7', 'T8', 'CP3', 'CP4', 'CP5', 'CP6', 'Pz', 'P3', 'P4', 'P8', 'Oz', 'O1', 'O2', for a total of 16.
The channels of the tested S3 were selected as 15 [ 'C3', 'T7', 'T8', 'CP3', 'CP4', 'CP5', 'CP6', 'Pz', 'P3', 'P4', 'P7', 'P8', 'Oz', 'O1', 'O2'.
The channels of the tested S5 were selected as 15 [ 'Fz', 'F3', 'Cz', 'C4', 'T7', 'T8', 'CP3', 'CP4', 'CP5', 'CP6', 'P4', 'P8', 'Oz', 'O1', 'O2' ].
Finally, the intersection is taken to obtain the optimal channel combination names [ 'T7', 'T8', 'CP3', 'CP4', 'CP5', 'CP6', 'P4', 'P8', 'Oz', 'O1', 'O2', and 11 in total.
Semi-supervised learning is the training of a class prediction model in a dataset containing a small number of labeled samples and a large number of unlabeled samples. The model must perform a classification learning task from a small number of labeled samples and somehow utilize a larger unlabeled dataset to improve the performance of the supervised task in order to classify new examples in the future.
A Generative Adaptive Network (GAN) is an architecture for training an image generation model by an image discrimination model by effectively utilizing a large amount of unmarked data sets. Discriminators in GAN are trained to predict whether a given image is real (from the dataset) or false (generated by the generative model), and in certain cases, discriminative models can serve as a starting point for developing semi-supervised classifier models.
Semi-supervised generative countermeasure network (or SGAN) models are extensions of the GAN architecture for solving semi-supervised learning problems, and include simultaneous training of supervised classification models, unsupervised discriminant models, and generative models. The supervised classification model obtained through training can be well applied to the label-free samples, the model is generated, and after optimization iteration, the generated image samples can be falsified and falsified. The SGAN flow diagram is shown in fig. 5.
The SGAN model is realized by the following steps:
1. initializing a supervised classification model, an unsupervised discrimination model and a generation model. The supervised classification model and the unsupervised identification model share the weight of the hidden layer, the hidden layer is composed of 3 full-connection layers, the activation function is relu, the parameter initialization method is standardized kaiming initialization, the generation model is used for generating pseudo data, the output result and the format of training data are the same, the hidden layer is composed of two full-connection layers, and the number of neurons is 600.
2. And constructing the SGAN model by using the initialized model in the first step.
3. The model is iteratively trained, and the training process can be subdivided into:
training a supervised classification model separately using the label samples;
training an unsupervised discriminant model by using unlabeled samples and 'pseudo' samples;
weights in the supervised classification model and the unsupervised discrimination model are fixed, and a 'pseudo' sample is used for training the SGAN model so as to improve the reliability of the generated model.
4. After full training, the obtained supervised classification model can be applied to classification of new data which are not labeled.
Although the input and hidden layers of the supervised classification model and the unsupervised discrimination model are the same, the final realized results are different. The supervised classification model is used for realizing label classification on the sample data, namely distinguishing positive samples or negative samples; while the unsupervised discriminative model is used to distinguish whether the sample data originates from 'real data' of the dataset or 'pseudo data' resulting from the generative model.
And according to the optimal channel combination obtained by the second problem, selecting tested S5 to perform data slicing on each known character, wherein the data length is 120ms, and obtaining a training sample. 30 of which are positive samples for generating the P300 signal, as shown in fig. 6; 30 are negative samples without the P300 signal, as shown in FIG. 7. And then, randomly selecting 5 samples from the positive and negative samples as labeled samples, and taking the remaining 50 samples as unlabeled samples to train the SGAN model and store the model.
Because each round of recognition process of one character comprises 60 rows and columns of data, the characters to be verified are sliced into row data and column data to form a test set. And finally, extracting a supervision classification model from the trained SGAN model, applying a test set to the model to obtain a classification label of whether the predicted row and column have P3OO signals, and determining the predicted character according to the row number and the column number. As shown in table 3.1, and the average prediction accuracy was 15%.
TABLE 3.1 model prediction statistics for the known characters tested at S5
Similarly, the unknown character data of the tested S5 is sliced and applied to the model to obtain the prediction results shown in table 3.2.
TABLE 3.2 model prediction statistics for unknown characters tested at S5
Therefore, by adopting the method, the problem of low recognition rate of the electroencephalogram P300 signal is solved, and the problem of low robustness of signal recognition is solved.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents and improvements made within the spirit and principle of the present invention are intended to be included within the scope of the present invention.
Claims (9)
1. An electroencephalogram signal identification method is characterized by comprising the following steps:
s1, acquiring electroencephalogram signals, wherein the acquired data are divided into two types including a training set and a testing set;
s2, preprocessing an electroencephalogram signal;
s3, collecting a priority signal channel;
and S4, establishing a generated confrontation network, and analyzing and identifying the electroencephalogram signals through the generated confrontation network.
2. The electroencephalogram signal identification method according to claim 1, characterized in that: in the step S1, the electroencephalogram signal is collected by using a P300 brain-computer interface, and during collection, the electroencephalogram signal when a person sees a corresponding character is measured as a data source; the subject will be tested for several rounds for each character, each round will flash 12 times, 2 out of 12 will stimulate the subject to produce a P300 brain electrical signal.
3. The electroencephalogram signal identification method according to claim 2, characterized in that: in the step S2, the signal preprocessing includes the steps of:
3000 continuous sampling values of data collected by an S2.1 and P300 brain-computer interface are obtained, the first 250 meaningless data are removed,
s2.2, adopting low-pass filtering with the order of 8 for processing data;
s2.3, carrying out normalization processing on the data of each channel to form a waveform diagram of 20 channels;
and S2.4, carrying out superposition averaging on the waveforms of the 20 channels to obtain a waveform diagram.
4. The electroencephalogram signal identification method according to claim 3, characterized in that: the rows and the columns in each round of measurement flicker once, the rows are divided into A types, and the columns are divided into B types; the time range of P300 electroencephalogram signals of a plurality of subjects is determined by analyzing known 12 characters, the graphs are represented as oscillograms of six rows and six columns in one flash, and the row and the column with the highest probability within 500ms of the P300 electroencephalogram signals are found out.
5. The electroencephalogram signal identification method according to claim 1, characterized in that: in step S3, the optimal channel is selected by using pearson correlation coefficient to study the linear correlation degree between each tested channel, which is defined as shown in the following formula:
wherein, x, y are mutually two channels which are different.
6. The electroencephalogram signal identification method according to claim 5, characterized in that: using a training data set, substituting data into a formula to obtain correlation coefficients among all channels; and labeling the correlation relation by adopting a thermodynamic diagram and finding out the correlation.
7. The electroencephalogram signal identification method according to claim 1, characterized in that: in step S4, the generated countermeasure network includes a supervised classification model, an unsupervised discriminant model, and a generated model, the generated model is used to generate the dummy data, and the supervised classification model and the unsupervised discriminant model share the weight of the hidden layer; the hidden layer comprises 3 full connection layers, and the layers are activated through a relu function.
8. The electroencephalogram signal identification method according to claim 7, characterized in that: the output result of the generated model and the format of the training data are the same, the hidden layer of the generated model is composed of two full-connection layers, and the number of neurons in the two full-connection layers is 600.
9. The electroencephalogram signal identification method according to claim 8, characterized in that: initializing a model, wherein the parameter initialization method is standardized kaiming initialization, and performing iterative training on the model, wherein the iterative training comprises the following steps:
A. training a supervised classification model separately using the label samples;
B. training an unsupervised discriminant model by using the unlabeled sample and the dummy data sample;
C. determining weights in a supervised classification model and an unsupervised discrimination model, and training by using a pseudo data sample to generate a confrontation network model so as to improve the reliability of the generated model;
D. after full training, the obtained supervised classification model can be applied to classification of new data which are not labeled;
E. the supervised classification model is used for realizing label classification on the sample data, namely distinguishing positive samples or negative samples; the unsupervised judging model is used for distinguishing whether the sample data is from the unlabeled new data of the data set or the pseudo data sample obtained by the generating model; the input and hidden layers of the supervised classification model and the unsupervised discrimination model are the same, and the final realized results are different.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011521877.7A CN112603337A (en) | 2020-12-21 | 2020-12-21 | Electroencephalogram signal identification method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011521877.7A CN112603337A (en) | 2020-12-21 | 2020-12-21 | Electroencephalogram signal identification method |
Publications (1)
Publication Number | Publication Date |
---|---|
CN112603337A true CN112603337A (en) | 2021-04-06 |
Family
ID=75243755
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011521877.7A Pending CN112603337A (en) | 2020-12-21 | 2020-12-21 | Electroencephalogram signal identification method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112603337A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113768519A (en) * | 2021-09-16 | 2021-12-10 | 天津大学 | Method for analyzing consciousness level of patient based on deep learning and resting state electroencephalogram data |
CN117725471A (en) * | 2023-10-19 | 2024-03-19 | 齐鲁工业大学(山东省科学院) | Pain identification method and system based on electroencephalogram signals |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103258120A (en) * | 2013-04-19 | 2013-08-21 | 杭州电子科技大学 | Apoplexy recovery degree index calculation method based on brain electrical signals |
CN109875580A (en) * | 2019-03-01 | 2019-06-14 | 安徽工业大学 | A kind of Cognitive efficiency can computation model |
CN111428648A (en) * | 2020-03-26 | 2020-07-17 | 五邑大学 | Electroencephalogram signal generation network, method and storage medium |
CN111598020A (en) * | 2020-05-19 | 2020-08-28 | 中国电子科技集团公司第三十六研究所 | Electromagnetic signal identification method based on semi-supervised generation countermeasure network |
CN111616721A (en) * | 2020-05-31 | 2020-09-04 | 天津大学 | Emotion recognition system based on deep learning and brain-computer interface and application |
-
2020
- 2020-12-21 CN CN202011521877.7A patent/CN112603337A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103258120A (en) * | 2013-04-19 | 2013-08-21 | 杭州电子科技大学 | Apoplexy recovery degree index calculation method based on brain electrical signals |
CN109875580A (en) * | 2019-03-01 | 2019-06-14 | 安徽工业大学 | A kind of Cognitive efficiency can computation model |
CN111428648A (en) * | 2020-03-26 | 2020-07-17 | 五邑大学 | Electroencephalogram signal generation network, method and storage medium |
CN111598020A (en) * | 2020-05-19 | 2020-08-28 | 中国电子科技集团公司第三十六研究所 | Electromagnetic signal identification method based on semi-supervised generation countermeasure network |
CN111616721A (en) * | 2020-05-31 | 2020-09-04 | 天津大学 | Emotion recognition system based on deep learning and brain-computer interface and application |
Non-Patent Citations (1)
Title |
---|
王洪涛等: "基于降噪自编码神经网络的事件相关电位脑电信号分析方法", 《控制理论与应用》 * |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113768519A (en) * | 2021-09-16 | 2021-12-10 | 天津大学 | Method for analyzing consciousness level of patient based on deep learning and resting state electroencephalogram data |
CN113768519B (en) * | 2021-09-16 | 2023-12-26 | 天津大学 | Method for analyzing consciousness level of patient based on deep learning and resting state electroencephalogram data |
CN117725471A (en) * | 2023-10-19 | 2024-03-19 | 齐鲁工业大学(山东省科学院) | Pain identification method and system based on electroencephalogram signals |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108960182B (en) | P300 event related potential classification identification method based on deep learning | |
CN108959895B (en) | Electroencephalogram EEG (electroencephalogram) identity recognition method based on convolutional neural network | |
Gevins et al. | Applications of neural-network (NN) signal processing in brain research | |
CN105956623A (en) | Epilepsy electroencephalogram signal classification method based on fuzzy entropy | |
CN111513730B (en) | Psychological stress prediction method and system based on multichannel physiological data | |
CN112603337A (en) | Electroencephalogram signal identification method | |
CN110123342B (en) | Internet addiction detection method and system based on brain waves | |
CN113662560B (en) | Method for detecting seizure-like discharge between attacks, storage medium and device | |
CN113069117A (en) | Electroencephalogram emotion recognition method and system based on time convolution neural network | |
CN112244767A (en) | Cognitive function assessment method based on electroencephalogram | |
CN111067513A (en) | Sleep quality detection key brain area judgment method based on characteristic weight self-learning | |
CN113397482B (en) | Human behavior analysis method and system | |
Siuly et al. | Exploring Rhythms and Channels-Based EEG Biomarkers for Early Detection of Alzheimer's Disease | |
CN117918840A (en) | Mental state detection method and system for electroencephalogram signals based on entropy complexity plane | |
Sharma | Automated human emotion recognition using hybrid approach based on sensitivity analysis on residual time-frequency plane with online learning algorithm | |
CN111081374B (en) | Autism auxiliary diagnosis device based on common attention paradigm | |
Wang et al. | An epileptic EEG detection method based on data augmentation and lightweight neural network | |
CN113796873B (en) | Wearable dynamic electrocardiosignal classification method and system | |
CN116484290A (en) | Depression recognition model construction method based on Stacking integration | |
Cecotti et al. | Suboptimal sensor subset evaluation in a p300 brain-computer interface | |
CN113143275B (en) | Electroencephalogram fatigue detection method for quantitative evaluation of sample and characteristic quality in combined manner | |
Zabcikova et al. | EEG-based lie detection using ERP P300 in response to known and unknown faces: An overview | |
CN115530846A (en) | Scalp electroencephalogram spike wave detection method and system | |
CN108647604A (en) | Object state identification method based on the extraction of frequency domain histogram feature | |
CN101254098B (en) | Brain-electric ultra-slow mode wave testing analysis processing apparatus |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210406 |
|
RJ01 | Rejection of invention patent application after publication |