Electroencephalogram anomaly detection and positioning method and system based on packet cosine convolutional network
Through the EEG anomaly detection model based on packet cosine convolution network, the EEG signal is processed using the hardware-friendly and memory-efficient cosine convolution operator, which solves the problems of model complexity and insufficient spatial information processing in the prior art. Efficient detection and location of EEG abnormalities is achieved.
Patent Information
- Application Number
- CN202411023809.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-29
- Publication Date
- 2024-11-01
- Estimated Expiration
- 2044-07-29
AI Technical Summary
The existing EEG abnormality detection model has complex structure, large parameters, slow training efficiency, high calculation cost, and lacks analysis and processing of EEG channel spatial information, resulting in low detection accuracy and limited positioning effect.
Using the EEG anomaly detection model based on the packet cosine convolution network, the multi-channel EEG signal is grouped and multiple packet convolution operations through the hardware-friendly and memory-efficient cosine convolution operator, deep-level features are extracted and implemented. End-to-end real-time channel positioning.
It improves the accuracy and real-time nature of EEG abnormality detection and positioning, reduces the number of model parameters, improves training efficiency, and achieves accurate positioning of EEG channels.
Smart Images

Figure CN118873153A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of EEG abnormality detection, and in particular to an EEG abnormality detection and positioning method and system based on a grouped cosine convolutional network. Background Art
[0002] Electroencephalogram (EEG) is an important tool for recording brain electrical activity. It detects and records brain electrical activity by placing electrodes on the scalp. It is widely used in clinical diagnosis, neuroscience research, and other brain supplementary activities. EEG is not only an important tool for diagnosing certain brain diseases, but also can provide effective treatment for certain brain diseases, and plays an important role in the detection of diseases caused by abnormal brain discharges.
[0003] Traditional EEG anomaly detection mainly relies on manual visual detection, which is not only time-consuming and labor-intensive, but also inefficient and easily affected by human factors, resulting in strong subjectivity and low detection accuracy. With the development of deep learning technology, EEG anomaly detection models based on deep learning have shown high detection accuracy and automation level. However, the existing deep learning detection models still have certain drawbacks. On the one hand, the existing models are often complex in structure and have a large number of model parameters, with slow training efficiency, large amount of calculation, and high computational cost. In addition, the detection accuracy of this model needs to be further improved. On the other hand, the existing models usually lack analysis and processing of spatial information related to EEG channels, which further limits their application effect in EEG channel positioning. Summary of the invention
[0004] In order to address the deficiencies of the above-mentioned prior art, the present invention provides a method and system for EEG anomaly detection and positioning based on a group cosine convolutional network, adopts a hardware-friendly and memory-efficient cosine convolution operator, and builds an EEG anomaly detection model based on a group cosine convolutional neural network (Group Cosine Convolutional Neural Network, Group CosCNN). Through this model, end-to-end EEG anomaly detection and real-time channel positioning are realized, which can effectively improve the accuracy and real-time performance of EEG anomaly detection and positioning.
[0005] In a first aspect, the present invention provides a method for detecting and locating EEG abnormalities based on a grouped cosine convolutional network.
[0006] A method for detecting and locating abnormal EEG based on a grouped cosine convolutional network, comprising:
[0007] Collect multi-channel EEG signals and pre-process the collected signals;
[0008] The preprocessed multi-channel EEG signals are input into the grouped cosine convolution network, the multi-channel EEG signals are grouped by channels, and each group of EEG signals is subjected to cosine convolution operation respectively. After multiple grouped cosine convolution operations, multiple groups of EEG features are extracted, the multiple groups of EEG features are spliced, and the classification results and classification probability distribution of EEG abnormality detection are output based on the spliced features;
[0009] According to the classification probability distribution and preset threshold of abnormal EEG detection, abnormal EEG triggers alarm;
[0010] According to the classification results of EEG abnormality detection, the contribution score of each channel EEG signal is calculated, the channel of abnormal EEG signal is determined, and abnormal EEG positioning is completed.
[0011] In a second aspect, the present invention provides an EEG abnormality detection and positioning system based on a grouped cosine convolutional network.
[0012] A system for detecting and locating abnormal EEG based on a grouped cosine convolutional network, comprising:
[0013] A data acquisition module is used to collect multi-channel EEG signals and pre-process the collected signals;
[0014] The abnormal EEG detection module is used to input the preprocessed multi-channel EEG signals into the grouped cosine convolution network, group the multi-channel EEG signals by channel, and perform cosine convolution operation on each group of EEG signals respectively, extract multiple groups of EEG features after multiple grouped cosine convolution operations, splice the multiple groups of EEG features, and output the classification results and classification probability distribution of EEG abnormality detection based on the spliced features;
[0015] The abnormal EEG alarm module is used to trigger an abnormal EEG alarm based on the classification probability distribution and preset threshold of abnormal EEG detection;
[0016] The abnormal EEG channel positioning module is used to calculate the contribution score of the EEG signal of each channel according to the classification results of the abnormal EEG detection, determine the channel of the abnormal EEG signal, and complete the abnormal EEG positioning.
[0017] In a third aspect, the present invention further provides an electronic device comprising a memory and a processor, and computer instructions stored in the memory and executed on the processor, wherein when the computer instructions are executed by the processor, the steps of the method described in the first aspect are completed.
[0018] In a fourth aspect, the present invention further provides a computer-readable storage medium for storing computer instructions, which, when executed by a processor, complete the steps of the method described in the first aspect.
[0019] One or more of the above technical solutions have the following beneficial effects:
[0020] 1. The present invention provides a method and system for detecting and locating EEG anomalies based on a grouped cosine convolutional network. A hardware-friendly and memory-efficient cosine convolution operator is used to build an EEG anomaly detection model based on a grouped cosine convolutional neural network. In the network, a separate cosine convolution operation is performed on each channel of an input multi-channel EEG signal through a channel convolution layer to extract the EEG features of each channel, and multiple grouped convolutions are performed through multiple layers of grouped convolutional layers, that is, the input multi-channel EEG features are grouped by channel, and cosine convolution operations are performed on each group of EEG features respectively. While extracting the deep-level features of the EEG signal, the channel-specific information in each layer of the network is retained, so that EEG anomaly detection can be achieved while end-to-end real-time channel positioning can be achieved.
[0021] 2. In the present invention, the convolution kernels in the multi-layer convolution layers in the grouped cosine convolutional neural network all adopt the form of cosine functions, which have only two learnable parameters, namely amplitude and frequency, which can effectively reduce the number of parameters, thereby improving the compactness and hardware friendliness of the model, improving the training efficiency of the model, and effectively improving the accuracy and real-time performance of EEG abnormality detection and positioning. BRIEF DESCRIPTION OF THE DRAWINGS
[0022] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.
[0023] Figure 1 This is an overall flow chart of the EEG abnormality detection and positioning method based on the grouped cosine convolutional network according to an embodiment of the present invention;
[0024] Figure 2 Schematic diagram of the structure of the grouped cosine convolutional network according to an embodiment of the present invention;
[0025] Figure 3 A topographical diagram of the location of abnormal EEG channels in an embodiment of the present invention;
[0026] Figure 4 Schematic diagram of the EEG abnormality detection and positioning system based on the grouped cosine convolutional network described in an embodiment of the present invention. DETAILED DESCRIPTION
[0027] It should be noted that the following detailed descriptions are exemplary only, are intended to describe specific embodiments, are intended to provide further explanation of the present invention, and are not intended to limit exemplary embodiments according to the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those of ordinary skill in the art to which the present invention belongs. In addition, it should also be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0028] Embodiment 1
[0029] This embodiment provides a method for detecting and locating abnormal EEG based on a grouped cosine convolutional network, which can efficiently detect abnormal activities in EEG signals and accurately locate abnormal EEG channels, thereby realizing real-time abnormal EEG alarm and positioning. Figure 1 As shown, this method specifically includes the following steps:
[0030] Step S1, collecting multi-channel EEG signals and preprocessing the collected signals;
[0031] Step S2, inputting the preprocessed multi-channel EEG signals into a grouped cosine convolution network, grouping the multi-channel EEG signals by channel, and performing cosine convolution operations on each group of EEG signals, extracting multiple groups of EEG features after multiple grouped cosine convolution operations, splicing the multiple groups of EEG features, and outputting the classification results and classification probability distribution of EEG abnormality detection based on the spliced features;
[0032] Step S3, triggering an abnormal EEG alarm according to the classification probability distribution of abnormal EEG detection and a preset threshold;
[0033] Step S4: Calculate the contribution score of each channel of the EEG signal according to the classification result of the abnormal EEG detection, determine the channel of the abnormal EEG signal, and complete the abnormal EEG localization.
[0034] The following content introduces the EEG abnormality detection and positioning method based on grouped cosine convolutional network proposed in this embodiment in more detail.
[0035] In step S1, a standard electroencephalogram (EEG) acquisition device is used, which includes an EEG electrode and an amplifier, to acquire multi-channel EEG signals and pre-process the acquired EEG signals. The EEG electrode is used to acquire an EEG analog signal, and the EEG analog signal is converted into an EEG digital signal. The signal amplifier is used to further enhance the strength of the EEG digital signal so that it is suitable for computer processing.
[0036] Furthermore, in order to realize the analysis and processing of spatial information related to EEG channels, in this embodiment, multiple EEG electrodes are used to synchronously collect EEG signals from multiple different areas of the brain. Each EEG electrode collects and records the EEG signal of one channel to obtain a multi-channel EEG signal, which can provide electrical activity information of different areas of the brain; the obtained multi-channel EEG signal is then digitized and amplified for subsequent processing.
[0037] In step S2, the preprocessed multi-channel EEG signal is input into an EEG anomaly detection model based on a grouped cosine convolutional network (the model is deployed on a computer device), and the multi-channel EEG signal is processed and analyzed using the grouped cosine convolutional network to extract EEG signal features (referred to as EEG features) and detect abnormal EEG activities, and finally the classification results of EEG anomaly detection and the classification probability distribution are output.
[0038] The grouped cosine convolutional network proposed in this embodiment is a neural network architecture, which includes multiple convolutional layers, such as Figure 2 As shown in FIG, it specifically includes an input layer, a channel convolution layer, a multi-layer group convolution layer and an output layer connected in sequence, and the output layer includes a fully connected layer and a Softmax layer; wherein, each convolution operation in the channel convolution layer and the multi-layer group convolution layer adopts a cosine convolution kernel, and extracts the local features of the input signal through cosine convolution. Through the above-mentioned grouped cosine convolution network, after the input EEG features are divided into multiple groups, the cosine convolution operation is performed on each group of features to retain the channel-specific information, laying the foundation for subsequent channel positioning.
[0039] Furthermore, the channel convolution layer includes multiple cosine convolution kernels and a pooling layer, which are used to perform a separate cosine convolution operation on each channel of the input multi-channel EEG signal to extract the EEG feature of each channel; wherein the EEG feature is the frequency feature of the EEG signal. In this layer, the convolution kernel uses a cosine convolution kernel (a cosine convolution kernel is a convolution kernel in the form of a cosine function). The convolution kernel is a parameter matrix in the convolution layer, which is used to extract the local features of the input signal. In addition, the cosine convolution kernel has only two learnable parameters, amplitude and frequency, and has a small number of parameters, which can effectively reduce the number of parameters and improve the compactness and hardware friendliness of the model.
[0040] Among them, the convolution operation formula of each convolution kernel in the channel convolution of the lth layer is:
[0041]
[0042] In the above formula, and They represent the amplitude and frequency parameters of the convolution kernel of the cth channel in the lth layer, respectively. K is the size of the convolution kernel. is the output feature of the cth channel position i+m in the previous layer (ie, the l-1th layer). In this embodiment, only one channel convolution layer is set, that is, l=1.
[0043] Furthermore, each of the above-mentioned grouped convolutional layers includes multiple cosine convolution kernels and pooling layers, which are used to group the input multi-channel EEG features by channel, and perform cosine convolution operations on each group of EEG features, extracting deep-level features of EEG signals while retaining channel-specific information in each layer of the network. Similarly, in each grouped convolutional layer, the convolution kernel also uses a cosine convolution kernel.
[0044] Assuming that the number of channels of the EEG signal is C (in this embodiment, the number of channels C=18), each grouped convolutional layer divides the input features into C groups, each group contains C′ / G channel features, where C′ is the number of output channels of the previous layer, and G is the number of groups, which is equal to the number of channels C.
[0045] Multiple grouped cosine convolutions are performed through multiple layers of grouped convolution layers, where the convolution operation formula for each convolution kernel in the grouped convolution of the lth layer is:
[0046]
[0047] In the above formula, represents the output of position i in the g-th group of the l-th layer, and are the amplitude and frequency parameters of the convolution kernel of the c′th channel of the g′th group of the lth layer, and g′=c′+(g-1)(C′ / G) is the position index of the c′th channel of the g′th group of the previous layer.
[0048] Through the above design, the grouped cosine convolutional network contains multiple convolutional layers, and the number of convolution kernels in each layer is N. 1 ,N 2 ,N 3 ,N 4 ,N 5 After each convolution operation, a shared batch normalization layer (BN layer) and a maximum pooling layer (pooling size is 2) are connected; the final layer concatenates the flattened features of each channel into a single feature vector and inputs it into the fully connected layer for classification.
[0049] Specifically, multiple groups of EEG features output by the last grouped convolutional layer are input into the fully connected layer and the Softmax layer. First, the input feature vector is mapped to the output vector through the weight matrix through the fully connected layer (Dense Layer), that is, multiple groups of EEG features are concatenated into a feature vector, and classification is performed based on the feature vector, and the classification result of EEG abnormality detection is output, that is, the output EEG signal is normal or abnormal category; then, the output of the fully connected layer is converted into a probability distribution through the Softmax layer (SoftmaxLayer), that is, the classification result of abnormal EEG activity is converted into a probability distribution, and the classification probability distribution of EEG abnormality detection is output, that is, the probability of the output EEG signal being a normal category and an abnormal category, so as to judge whether there is abnormal EEG activity.
[0050] Among them, assuming is the flattened eigenvector of the g-th group, is the weight matrix of the fully connected layer, is the bias vector, then the calculation formula for the abnormal EEG probability is:
[0051] P v =softmax(W · concat(Y g=1 ,…,Y g=G )+b)
[0052] In the above formula, concat(·) represents the feature concatenation operation, P v is the probability distribution of the classification output.
[0053] As another implementation, a ReLU activation function (Rectified Linear Unit, ReLU) can be set after each convolution layer (including channel convolution kernel group convolution) to ensure that the contribution score of subsequent calculations is a non-negative value.
[0054] In this embodiment, taking 18-channel EEG signals as an example, the specific structure of the designed grouped cosine convolutional network model is:
[0055] (1) Input layer: input multi-channel EEG signals with a size of 18 × 1024;
[0056] (2) Layer 1 (channel convolution layer): Cosine convolution is performed on each of the 18 channels separately. There are 16 convolution kernels in each channel, and the convolution kernel size is K = 23. The final output size of this layer is 288 × 512 (including one pooling layer with a pooling size of 2), where the output channels are 16 × 18 = 288.
[0057] (3) Layer 2 (grouped convolution layer): According to the output channels of the previous layer, it is divided into G = C = 18 groups, each group contains 16 channel features, and cosine convolution is performed on each group. There are 16 convolution kernels in each group, and the convolution kernel size is K = 23; the final output size of this layer is 288 × 256 (including one pooling layer with a pooling size of 2), where for each group, the convolution input channels are 16, and the output channels are also 16. Therefore, the total number of output channels of this layer remains unchanged, which is still 16 × 18 = 288;
[0058] (4) Layer 3 (group convolution layer): Using the above method, continue the group convolution operation and perform cosine convolution on each group. There are 16 convolution kernels in each group, and the convolution kernel size is K = 23. The final output size of this layer is 288 × 128 (including one pooling layer with a pooling size of 2).
[0059] (5) Layer 4 (grouped convolution layer): Using the above method, the grouped convolution operation is continued, and cosine convolution is performed on each group. There are 32 convolution kernels in each group, and the convolution kernel size is K = 23; the final output size of this layer is 576 × 64 (including one pooling layer with a pooling size of 2), where for each group, the convolution input channels are 16 and the output channels are 32, so the total number of output channels of this layer is 32 × 18 = 576;
[0060] (6) Layer 5 (group convolution layer): Using the above method, continue the group convolution operation and perform cosine convolution on each group. There are 64 convolution kernels in each group, and the convolution kernel size is K = 23. The final output size of this layer is 1152 × 64.
[0061] (7) Layer 6 (group convolution layer): Using the above method, continue the group convolution operation and perform cosine convolution on each group. There are 64 convolution kernels in each group, and the convolution kernel size is K = 23. The final output size of this layer is 1152 × 32 (including one pooling layer with a pooling size of 2).
[0062] (8) Output layer: The features of each group are concatenated to obtain a feature vector, which is passed through a fully connected layer to output two neurons, corresponding to the abnormal category and the normal category respectively, and the final classification probability is output through a softmax layer.
[0063] As another implementation, the Adam Optimizer is used to perform the training process of the above-mentioned grouped cosine convolutional network, so as to adaptively adjust the learning rate of each parameter and improve the efficiency and stability of model training.
[0064] Furthermore, during the network model training process, a loss function of the grouped cosine convolutional network was constructed based on the cross entropy loss and regularization term, which can effectively improve the detection accuracy and prevent overfitting. The regularization term imposes penalties on the model parameters, limits excessive changes in the parameters, and improves the generalization ability of the model. The specific formula of the constructed loss function is:
[0065]
[0066] In the above formula, M is the minimum batch size for training, Q = 2 is the number of classification categories, and γ i,j is the indicative function, σ is the regularization coefficient, and θ is the model parameter.
[0067] The grouped cosine convolution network is iteratively trained based on the above loss function until the training is completed. In the iterative training process of the grouped cosine convolution network, the back propagation algorithm is used to iteratively update the amplitude parameters and frequency parameters of the cosine convolution kernel in each convolution layer of the network, and the Adam optimization algorithm is used to optimize the amplitude and frequency parameters of the grouped cosine convolution network. Specifically, the back propagation algorithm is used to update the amplitude parameters of the convolution kernel. and frequency parameters Among them, the amplitude parameter The gradient calculation formula is:
[0068]
[0069] Frequency parameters The gradient calculation formula is:
[0070]
[0071] In the above formula,
[0072] In step S3, an abnormal EEG trigger alarm is performed according to the classification probability distribution and preset threshold of abnormal EEG detection. Specifically, according to the abnormal category probability and preset threshold of abnormal EEG detection obtained in the above step S2, an abnormal EEG trigger alarm is performed. When the abnormal category probability is greater than the preset threshold, the alarm mechanism is triggered to perform real-time EEG abnormal alarm and reminder. In this embodiment, the preset threshold is set to 0.5.
[0073] Step S4: Calculate the contribution score of each channel of the EEG signal according to the classification result of the abnormal EEG detection, determine the channel of the abnormal EEG signal, and complete the abnormal EEG localization.
[0074] Specifically, according to the weight matrix of normal and abnormal categories in the classification results of EEG abnormality detection, combined with multiple groups of EEG features output by the last grouped convolutional layer, the contribution score of the EEG signal of each channel is calculated. The contribution score S cThe calculation formula is:
[0075]
[0076] In the above formula, ΔW c =W c,2 -W c,1 , W c,2 , W c,1 Y represents the weight matrix corresponding to the output neurons of abnormal and normal categories in the EEG abnormality detection model; c is the feature vector of the cth channel, S c is the contribution score of the cth channel.
[0077] Afterwards, the channel of abnormal EEG signal is determined according to the contribution score, that is: if S c >0, the channel has a positive contribution to abnormal EEG detection. The larger the contribution score, the greater the possibility that the EEG signal of the corresponding channel is abnormal.
[0078] In order to further verify the superiority of the method proposed in this embodiment, by using the patient data in the public CHB-MIT abnormal EEG data set, a comprehensive ablation study of different types of detection models was conducted to compare their performance in EEG abnormality detection. Specifically, two traditional group convolutional neural network models were used, namely: groupCNN-s model with a convolution kernel length of 3 and group CNN-l model with a convolution kernel length of 23. At the same time, the traditional group convolution operation in groupCNN-l was replaced by the group cosine convolution operation to construct the group cosine convolutional neural network (groupCosCNN) model proposed in this embodiment.
[0079] In this embodiment, abnormal EEG data and random normal EEG data of the same length are selected from the public CHB-MIT database for training and testing. Each data sample is an EEG signal collected from 18 channels, with a sampling rate of 256 Hz for each channel and a recording time of 4 seconds, for a total of 1024 data points. Each model uses the Adam optimization algorithm to adaptively adjust the learning rate of each parameter. During the training process, the hyperparameters M and σ are set to 256 and 0.0005, respectively. 500 epochs are trained, and the learning rate is increased from the initial 2×10 -4 Gradually reduce to 2×10 -5 ; Finally, a five-fold cross validation was used, with the average AUC (Area Under the Curve) as the performance indicator. The AUC is an indicator for evaluating the performance of a binary classification model, which represents the area under the receiver operating characteristic (ROC) curve. The AUC value is between 0.5 and 1. The larger the value, the stronger the model's ability to distinguish between positive and negative samples.
[0080] The final experimental results are shown in Table 1 below. The AUC of the group CNN-l model is 97.99%, which is higher than the AUC of the groupCNN-s model = 95.67%, but its parameter amount is larger, which is 3.0M. The group cosine convolutional network model proposed in this embodiment has an AUC of 98.17%, which can further improve the AUC performance index, while reducing the parameter amount to 0.34M.
[0081] Table 1 Performance indicators of EEG abnormality detection of different types of models
[0082] Model Convolution kernel length AUC (%) Parameter quantity groupCNN-s 3 95.67±0.71 0.47M groupCNN-1 23 97.99±0.96 3.0M groupCosCNN 23 98.17±1.19 0.34M
[0083] Through the verification of the above embodiments, the grouped cosine convolutional neural network proposed in this embodiment can still achieve a higher detection accuracy rate when the number of parameters is reduced; in addition, the method proposed in this embodiment can also determine the channel of abnormal EEG signals, realize the positioning of abnormal EEG, and convert the contribution score of each channel finally calculated into a topographic map of abnormal EEG channel positioning, such as Figure 3 As shown, the circle in the figure represents the brain, and the abnormal EEG area can be directly displayed in the figure, which is convenient for the staff to view more intuitively. This embodiment has significant advantages and application potential in the detection and positioning of EEG abnormalities.
[0084] Embodiment 2
[0085] This embodiment provides a system for detecting and locating abnormal EEG based on a grouped cosine convolutional network. Figure 4 As shown, specifically including:
[0086] A data acquisition module is used to collect multi-channel EEG signals and pre-process the collected signals;
[0087] The abnormal EEG detection module is used to input the preprocessed multi-channel EEG signals into the grouped cosine convolution network, group the multi-channel EEG signals by channel, and perform cosine convolution operation on each group of EEG signals respectively, extract multiple groups of EEG features after multiple grouped cosine convolution operations, splice the multiple groups of EEG features, and output the classification results and classification probability distribution of EEG abnormality detection based on the spliced features;
[0088] The abnormal EEG alarm module is used to trigger an abnormal EEG alarm based on the classification probability distribution and preset threshold of abnormal EEG detection;
[0089] The abnormal EEG channel positioning module is used to calculate the contribution score of the EEG signal of each channel according to the classification results of the abnormal EEG detection, determine the channel of the abnormal EEG signal, and complete the abnormal EEG positioning.
[0090] Embodiment 3
[0091] This embodiment provides an electronic device, including a memory and a processor, and computer instructions stored in the memory and running on the processor. When the computer instructions are run by the processor, the steps in the EEG abnormality detection and positioning method based on the grouped cosine convolutional network as described above are completed.
[0092] Embodiment 4
[0093] This embodiment also provides a computer-readable storage medium for storing computer instructions. When the computer instructions are executed by a processor, the steps in the EEG abnormality detection and positioning method based on the grouped cosine convolutional network as described above are completed.
[0094] The steps involved in the above embodiments 2 to 4 correspond to the method embodiment 1, and the specific implementation methods can refer to the relevant description part of embodiment 1. The term "computer-readable storage medium" should be understood as a single medium or multiple media including one or more instruction sets; it should also be understood to include any medium that can store, encode or carry an instruction set for execution by a processor and enable the processor to execute any method in the present invention.
[0095] Those skilled in the art should understand that the modules or steps of the present invention described above can be implemented by a general-purpose computer device, or alternatively, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. The present invention is not limited to any specific combination of hardware and software.
[0096] The above description is only a preferred embodiment of the present invention. Although the specific implementation mode of the present invention is described in conjunction with the accompanying drawings, it is not a limitation of the protection scope of the present invention. Those skilled in the art should understand that on the basis of the technical solution of the present invention, various modifications or variations that can be made by those skilled in the art without creative work are still within the protection scope of the present invention.
Claims
1. A method for detecting and locating EEG abnormalities based on grouped cosine convolutional networks. Its characteristics are: include: Collect multi-channel EEG signals and pre-process the collected signals; The preprocessed multi-channel EEG signals are input into the grouped cosine convolution network, the multi-channel EEG signals are grouped by channels, and each group of EEG signals is subjected to cosine convolution operation respectively. After multiple grouped cosine convolution operations, multiple groups of EEG features are extracted, the multiple groups of EEG features are spliced, and the classification results and classification probability distribution of EEG abnormality detection are output based on the spliced features; According to the classification probability distribution and preset threshold of abnormal EEG detection, abnormal EEG triggers alarm; According to the classification results of EEG abnormality detection, the contribution score of each channel EEG signal is calculated, the channel of abnormal EEG signal is determined, and abnormal EEG positioning is completed.
2. The method for detecting and locating abnormal EEG based on a grouped cosine convolutional network as claimed in claim 1, Its characteristics are: The collecting of multi-channel EEG signals and preprocessing of the collected signals include: Multiple EEG electrodes are used to synchronously collect EEG signals from multiple different areas of the brain. Each EEG electrode collects EEG signals of one channel, thereby obtaining multi-channel EEG signals. The acquired multi-channel EEG signals are digitized and amplified.
3. The method for detecting and locating abnormal EEG based on a grouped cosine convolutional network as claimed in claim 1, Its characteristics are: The grouped cosine convolution network includes an input layer, a channel convolution layer, a multi-layer grouped convolution layer and an output layer connected in sequence, and the output layer includes a fully connected layer and a Softmax layer; wherein each convolution operation in the channel convolution layer and the multi-layer grouped convolution layer adopts a cosine convolution kernel, and extracts local features of the input signal through cosine convolution; The channel convolution layer includes a plurality of cosine convolution kernels and a pooling layer, which is used to perform a separate cosine convolution operation on each channel of the input multi-channel EEG signal to extract the EEG feature of each channel; the EEG feature is the frequency feature of the EEG signal; Each grouped convolution layer includes multiple cosine convolution kernels and pooling layers, which are used to group the input multi-channel EEG features by channel and perform cosine convolution operations on each group of EEG features to extract deep-level features of EEG signals.
4. The method for detecting and locating abnormal EEG based on a grouped cosine convolutional network as claimed in claim 3, Its characteristics are: The multiple groups of EEG features output by the last grouped convolutional layer are input into the fully connected layer and the Softmax layer. The multiple groups of EEG features are concatenated into a feature vector through the fully connected layer, and classification is performed based on the feature vector to output the classification result of EEG abnormality detection, that is, whether the output EEG signal is normal or abnormal. The classification result of abnormal EEG activity is then converted into a probability distribution through the Softmax layer, and the classification probability distribution of EEG abnormality detection is output, that is, the probability of the output EEG signal being a normal category or an abnormal category.
5. The method for detecting and locating abnormal EEG based on a grouped cosine convolutional network as claimed in claim 3, Its characteristics are: The cosine convolution kernel adopts the form of a cosine function and has two learnable parameters, amplitude and frequency. The convolution operation formula of each convolution kernel in the channel convolution of the lth layer is: in, and They represent the amplitude and frequency parameters of the convolution kernel of the cth channel in the lth layer, respectively. K is the size of the convolution kernel. is the output feature of the previous layer, i.e., the cth channel position i+m of the l-1th layer; Each grouped convolution layer divides the input features into C groups, each group contains C' / G channel features, where C' is the number of output channels of the previous layer, G is the number of groups, which is equal to the number of channels C; the convolution operation formula for each convolution kernel in the grouped convolution of the lth layer is: in, represents the output of position i in the g-th group of the l-th layer, and are the amplitude and frequency parameters of the convolution kernel of the c′th channel of the g′th group of the lth layer, and g′=c′+(g-1)(C′ / G) is the position index of the c′th channel of the g′th group of the previous layer.
6. The method for detecting and locating abnormal EEG based on a grouped cosine convolutional network as claimed in claim 1, Its characteristics are: According to the classification results of EEG abnormality detection, the contribution score of each channel EEG signal is calculated, the channel of abnormal EEG signal is determined, and abnormal EEG positioning is completed, including: According to the weight matrix of normal and abnormal categories in the classification results of EEG abnormality detection, combined with multiple groups of EEG features output by the last grouped convolutional layer, the contribution score of the EEG signal of each channel is calculated; The channel of the abnormal EEG signal is determined according to the contribution score, wherein the larger the contribution score value is, the greater the possibility that the EEG signal of the corresponding channel is abnormal.
7. The method for detecting and locating abnormal EEG based on a grouped cosine convolutional network as claimed in claim 1, Its characteristics are: Based on the cross entropy loss and the regularization term, a loss function of the grouped cosine convolutional network is constructed, and the grouped cosine convolutional network is iteratively trained based on the loss function until the training is completed; In the iterative training process of the grouped cosine convolutional network, the back propagation algorithm is used to iteratively update the amplitude parameters and frequency parameters of the cosine convolution kernel in each convolutional layer of the network.
8. An EEG abnormality detection and positioning system based on grouped cosine convolutional network, Its characteristics are: include: A data acquisition module is used to collect multi-channel EEG signals and pre-process the collected signals; The abnormal EEG detection module is used to input the preprocessed multi-channel EEG signals into the grouped cosine convolution network, group the multi-channel EEG signals by channel, and perform cosine convolution operation on each group of EEG signals respectively, extract multiple groups of EEG features after multiple grouped cosine convolution operations, splice the multiple groups of EEG features, and output the classification results and classification probability distribution of EEG abnormality detection based on the spliced features; The abnormal EEG alarm module is used to trigger an abnormal EEG alarm based on the classification probability distribution and preset threshold of abnormal EEG detection; The abnormal EEG channel positioning module is used to calculate the contribution score of the EEG signal of each channel according to the classification results of the abnormal EEG detection, determine the channel of the abnormal EEG signal, and complete the abnormal EEG positioning.
9. An electronic device, Its characteristics are: The invention comprises a memory and a processor and computer instructions stored in the memory and executed on the processor. When the computer instructions are executed by the processor, the steps of a method for detecting and locating abnormal EEG based on a grouped cosine convolutional network as described in any one of claims 1 to 7 are completed.
10. A computer-readable storage medium, Its characteristics are: Used to store computer instructions, which, when executed by a processor, complete the steps of a method for detecting and locating EEG abnormalities based on a grouped cosine convolutional network as described in any one of claims 1-7.
Citation Information
Patent Citations
EEG epileptic attack detection method based on deep channel attention perception
CN108549875A
Cosine convolutional neural network quantification method, application and system
CN114861884A
Neonatal convulsion electroencephalogram signal classification system of time-frequency-space domain CNN-LSTM introducing attention mechanism
CN115211871A
Epilepsy electroencephalogram classification method based on iterative graph convolutional neural network
CN116831594A
Epilepsy electroencephalogram classification method based on multi-feature multi-relation graph convolutional neural network
CN117379067A
Cited By
Cosine convolution multichannel group decoding method and system for electroencephalogram classification
CN119202807A
Human brain discharge channel detection method and device, program product and electronic equipment
CN119700135A
Method, device, program product and electronic device for detecting human brain discharge channels
CN119700135B
