A method for preprocessing EEG data for auxiliary diagnosis of epilepsy

By analyzing the key eigenvalues ​​and characteristic values ​​in the EEG signal, we perform EEG data preprocessing for auxiliary diagnosis of epilepsy, which solves the problem in the existing technology that the signal after dimensionality reduction cannot fully reflect the characteristics of epilepsy, and achieves a more accurate diagnosis of epilepsy. disease diagnosis.

CN118452948BActive Publication Date: 2024-09-06KOPYUN MEDICAL SOFTWARE (SHENZHEN) CO LTD

Patent Information

Application Number
CN202410916951.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-10
Publication Date
2024-09-06
Estimated Expiration
2044-07-10

AI Technical Summary

Technical Problem

When performing dimensionality reduction preprocessing on EEG data, existing methods fail to effectively distinguish and analyze epilepsy characteristics and manifestations reflected by different EEG signal values, resulting in the source signal after dimensionality reduction not being able to fully reflect epilepsy characteristics.

Method used

By obtaining the key EEG signal values ​​in the EEG signal, analyzing its mutations, adjacent amplitude changes and frequency changes, calculating the initial and final epilepsy characteristic values, screening mild and severe seizure signals, and performing independent component analysis and correction after correction. Dimensionality reduction processing.

Benefits of technology

It improves the reflection of epilepsy characteristics by the source signal after dimensionality reduction, can better distinguish and retain the characteristics of epilepsy, and enhances the analysis efficiency of auxiliary diagnosis of epilepsy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118452948B
    Figure CN118452948B
Patent Text Reader

Abstract

The present invention relates to the field of electroencephalogram signal preprocessing technology, and specifically to an electroencephalogram data preprocessing method for auxiliary diagnosis of epilepsy, including: obtaining a number of electroencephalogram signals of an epileptic patient and key electroencephalogram signal values ​​in the electroencephalogram signals; obtaining a final epilepsy characteristic value of the key electroencephalogram signal value; obtaining electroencephalogram signals of mild epilepsy attack and electroencephalogram signals of severe epilepsy attack according to the fluctuation of the final epilepsy characteristic value of the key electroencephalogram signal value; obtaining the epilepsy characteristic value of the electroencephalogram signal of mild epilepsy attack and the epilepsy characteristic value of the electroencephalogram signal of severe epilepsy attack; correcting the key electroencephalogram signal value according to the final epilepsy characteristic value and the epilepsy characteristic value, constructing an original electroencephalogram signal matrix; obtaining a source signal matrix and performing dimensionality reduction processing to obtain a number of source signals after dimensionality reduction. The present invention improves the characteristics of epilepsy reflected by the source signal after dimensionality reduction while reducing the high dimension of the data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of electroencephalogram (EEG) signal preprocessing, and in particular to an EEG data preprocessing method for auxiliary diagnosis of epilepsy. Background Art

[0002] Epilepsy is a chronic neurological disease characterized by a series of symptoms caused by recurrent abnormal electrical activity in the brain, including loss of consciousness, limb twitching, paresthesia, etc. EEG signals are high-dimensional data, usually containing a large number of channels and time points. Processing and analyzing these data requires a lot of computing resources and time. Dimensionality reduction can reduce the dimension of the data and simplify the analysis process.

[0003] When performing dimensionality reduction preprocessing on EEG data, existing methods process the EEG data through independent component analysis to obtain the source signal after dimensionality reduction; because different EEG signal values ​​in the EEG signal reflect different epilepsy characteristics, and different EEG signals reflect different manifestations of epilepsy, if the dimensionality reduction is performed directly without analyzing the reflection of epilepsy characteristics and epilepsy manifestations of EEG signals by different EEG signal values ​​in the EEG signal, the final dimensionality reduction source signal will not be able to reflect the characteristics of epilepsy well. Summary of the invention

[0004] In order to solve the above problems, the present invention provides an EEG data preprocessing method for auxiliary diagnosis of epilepsy.

[0005] The present invention provides an electroencephalogram (EEG) data preprocessing method for auxiliary diagnosis of epilepsy using the following technical solution:

[0006] An embodiment of the present invention provides a method for preprocessing EEG data for auxiliary diagnosis of epilepsy, the method comprising the following steps:

[0007] Obtaining several EEG signals of epileptic patients and key EEG signal values ​​in each EEG signal;

[0008] According to the mutation of the key EEG signal value in the EEG signal, the amplitude change and the frequency change of the adjacent key EEG signal values, the initial epilepsy characteristic value of each key EEG signal value in each EEG signal is obtained; according to the change of the initial epilepsy characteristic value in the preset local range on both sides of the key EEG signal value, the final epilepsy characteristic value of each key EEG signal value in each EEG signal is obtained;

[0009] According to the fluctuation of the final epilepsy characteristic value of the key electroencephalogram signal value in the electroencephalogram signal, a number of electroencephalogram signals with mild epilepsy and a number of electroencephalogram signals with severe epilepsy are screened; according to the final epilepsy characteristic value of the key electroencephalogram signal value, an epilepsy characteristic value of each electroencephalogram signal with mild epilepsy and an epilepsy characteristic value of each electroencephalogram signal with severe epilepsy are obtained;

[0010] The key EEG signal values ​​are corrected according to the final epilepsy eigenvalues ​​and epilepsy characteristic values, and the original EEG signal matrix is ​​constructed based on the corrected key EEG signal values; the original EEG signal matrix is ​​subjected to independent component analysis to obtain a source signal matrix; the source signal matrix is ​​subjected to dimensionality reduction processing to obtain a number of source signals after dimensionality reduction.

[0011] Furthermore, the specific method for obtaining the key EEG signal value is as follows:

[0012] For any EEG signal, the EEG signal values ​​corresponding to all extreme points in the EEG signal are taken as key EEG signal values.

[0013] Furthermore, the initial epilepsy characteristic value of each key EEG signal value in each EEG signal is obtained according to the mutation of the key EEG signal value in the EEG signal, the amplitude change and the frequency change of the adjacent key EEG signal values, and the specific steps include the following:

[0014] For any key EEG signal value in any EEG signal; take the difference between the key EEG signal value and the average of all key EEG signal values ​​in the EEG signal as the mutation of the key EEG signal value; take the difference and value between the key EEG signal value and the next adjacent key EEG signal values ​​on the left and right as the amplitude change of adjacent key EEG signal values; take the difference between the key EEG signal value and the corresponding time intervals of the adjacent key EEG signal values ​​on the left and right as the frequency change of adjacent key EEG signal values; fuse the mutation, the amplitude change and the frequency change to obtain the initial epilepsy characteristic value of the key EEG signal value in the EEG signal.

[0015] Furthermore, the method of obtaining the final epilepsy characteristic value of each key EEG signal value in each EEG signal according to the change of the initial epilepsy characteristic value in the preset local range on both sides of the key EEG signal value comprises the following specific steps:

[0016] For any key EEG signal value in any EEG signal; obtain the cumulative value of the initial epilepsy characteristic values ​​of all key EEG signal values ​​within a preset local range on the left side of the key EEG signal value; obtain the cumulative value of the initial epilepsy characteristic values ​​of all key EEG signal values ​​within a preset local range on the right side of the key EEG signal value; weight the initial epilepsy characteristic value of the key EEG signal value with the maximum value of the cumulative value to obtain the final epilepsy characteristic value of the key EEG signal value in the EEG signal.

[0017] Furthermore, the method of screening a number of electroencephalogram signals of mild epilepsy attacks and a number of electroencephalogram signals of severe epilepsy attacks according to the fluctuation of the final epilepsy characteristic value of the key electroencephalogram signal value in the electroencephalogram signal comprises the following specific steps:

[0018] For any EEG signal, the variance of the final epilepsy characteristic values ​​of all key EEG signal values ​​in the EEG signal is normalized and used as the possibility that the EEG signal corresponds to a mild epileptic seizure;

[0019] According to the possibility that the EEG signal corresponds to a mild epileptic attack, a number of EEG signals of mild epileptic attacks and a number of EEG signals of severe epileptic attacks are screened.

[0020] Furthermore, the method of screening a number of EEG signals of mild epilepsy attacks and a number of EEG signals of severe epilepsy attacks according to the possibility that the EEG signals correspond to mild epilepsy attacks comprises the following specific steps:

[0021] The EEG signal whose probability of corresponding to a mild epileptic seizure is greater than a preset first threshold is regarded as an EEG signal of a mild epileptic seizure, and vice versa, as an EEG signal of a severe epileptic seizure.

[0022] Furthermore, the specific method for obtaining the epilepsy characteristic value of the electroencephalogram signal of a mild epileptic seizure is as follows:

[0023] For any EEG signal of a mild epileptic seizure, K-means clustering is performed on the final epilepsy characteristic values ​​of all key EEG signal values ​​in the EEG signal of a mild epileptic seizure to obtain two clusters. The distance metric uses the absolute value of the difference between the final epilepsy characteristic values ​​between the key EEG signal values. The mean of all the final epilepsy characteristic values ​​in each cluster is obtained, and the maximum value of the mean is taken as the epilepsy characteristic value of the EEG signal of a mild epileptic seizure.

[0024] Furthermore, the specific method for obtaining the epilepsy characteristic value of the severe epileptic seizure EEG signal is as follows:

[0025] For any severe epileptic seizure EEG signal, the average of all key EEG signal values ​​in the severe epileptic seizure EEG signal is used as the epilepsy characteristic value of the severe epileptic seizure EEG signal.

[0026] Furthermore, the key EEG signal value is corrected according to the final epilepsy characteristic value and the epilepsy characteristic value, and the original EEG signal matrix is ​​constructed according to the corrected key EEG signal value, including the following specific steps:

[0027] Arrange all key EEG signal values ​​in each EEG signal in order of sequence to obtain the first row vector of each EEG signal, multiply each key EEG signal value in the first row vector with the corresponding final epilepsy eigenvalue and the corresponding epilepsy characteristic value to obtain the corrected key EEG signal value, arrange all corrected key EEG signal values ​​in the first row vector in order of sequence to obtain the second row vector of each EEG signal, arrange the second row vectors of all EEG signals in the order of acquisition of the EEG signals to obtain the original EEG signal matrix.

[0028] Furthermore, the dimensionality reduction process is performed on the source signal matrix to obtain a number of source signals after dimensionality reduction, and the specific steps include the following:

[0029] Automatic correlation factor analysis is performed on the source signal matrix to obtain several source signals after dimensionality reduction.

[0030] The beneficial effects of the technical solution of the present invention are as follows: after obtaining several EEG signals of epilepsy patients and key EEG signal values ​​in each EEG signal, the present invention obtains the final epilepsy characteristic value of each key EEG signal value in the EEG signal by analyzing the mutation of the key EEG signal value in the EEG signal, the amplitude change and frequency change of adjacent key EEG signal values, and the change of the initial epilepsy characteristic value in the preset local range on both sides of the key EEG signal value, so that when the source signal matrix is ​​subsequently reduced in dimension, the epilepsy characteristics reflected by the source signal can be better retained; through the fluctuation of the final epilepsy characteristic value, the epilepsy manifestations of the EEG signal are distinguished into EEG signals of mild epilepsy and EEG signals of severe epilepsy, and through the final epilepsy characteristic value of the key EEG signal value, the epilepsy characteristic value of each EEG signal of mild epilepsy and the epilepsy characteristic value of each EEG signal of severe epilepsy are obtained, and finally the key EEG signal value is corrected by the final epilepsy characteristic value and the epilepsy characteristic value, and an independent component analysis is performed to obtain a source signal matrix; the source signal matrix is ​​subjected to dimensionality reduction processing to obtain several source signals after dimensionality reduction, and the characteristics of epilepsy reflected by the source signal after dimensionality reduction are improved while reducing the high dimension of the data. BRIEF DESCRIPTION OF THE DRAWINGS

[0031] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0032] Figure 1 A flowchart of the steps of a method for preprocessing EEG data for auxiliary diagnosis of epilepsy provided by one embodiment of the present invention;

[0033] Figure 2 A flowchart of obtaining a source signal after dimensionality reduction is provided in one embodiment of the present invention. DETAILED DESCRIPTION

[0034] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of the EEG data preprocessing method for auxiliary diagnosis of epilepsy proposed by the present invention, its specific implementation method, structure, characteristics and effects, in combination with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.

[0035] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.

[0036] The following is a detailed description of a specific scheme of an EEG data preprocessing method for auxiliary diagnosis of epilepsy provided by the present invention in conjunction with the accompanying drawings.

[0037] See also Figure 1 and Figure 2 , which shows a flowchart of steps of a method for preprocessing EEG data for auxiliary diagnosis of epilepsy provided by an embodiment of the present invention and a flowchart of obtaining a source signal after dimensionality reduction, the method comprising the following steps:

[0038] Step S001: Acquire a number of EEG signals of an epileptic patient and a key EEG signal value in each EEG signal.

[0039] It should be noted that the main purpose of this embodiment is to perform dimensionality reduction preprocessing on EEG data. Before starting the analysis, relevant data is first collected.

[0040] Specifically, several EEG signals of epilepsy patients and key EEG signal values ​​in each EEG signal are obtained, as follows:

[0041] By installing several electrodes in the brain of an epileptic patient, several EEG signals of the patient in the recent period of time are obtained; it should be noted that each electrode corresponds to an EEG signal, and each EEG signal contains several EEG signal values; for any EEG signal, the EEG signal values ​​corresponding to all extreme points in the EEG signal are used as key EEG signal values.

[0042] So far, several EEG signals of epilepsy patients and key EEG signal values ​​in each EEG signal have been obtained.

[0043] Step S002: obtaining an initial epilepsy characteristic value of each key EEG signal value in each EEG signal according to the mutation of the key EEG signal value in the EEG signal, the amplitude change and the frequency change of adjacent key EEG signal values; obtaining a final epilepsy characteristic value of each key EEG signal value in each EEG signal according to the change of the initial epilepsy characteristic value within a preset local range on both sides of the key EEG signal value.

[0044] It should be noted that since the key EEG signal values ​​in different EEG signals reflect different epilepsy characteristics, if they are not distinguished, it will affect the subsequent analysis of epilepsy characteristics. Therefore, it is necessary to first analyze the epilepsy characteristics of the key EEG signal values ​​in each EEG signal. Since epileptic patients have high local epilepsy characteristics when they have a severe or mild epilepsy attack, the key EEG signal values ​​have the characteristics of high amplitude, large amplitude change, and large frequency change. Therefore, by analyzing these characteristics, the initial epilepsy characteristic values ​​of the key EEG signal values ​​in the EEG signal are obtained.

[0045] Preferably, the initial epilepsy characteristic value of each key EEG signal value in each EEG signal is obtained according to the mutation of the key EEG signal value in the EEG signal, the amplitude change and the frequency change of the adjacent key EEG signal values, as follows:

[0046] For any key EEG signal value in any EEG signal; take the difference between the key EEG signal value and the average of all key EEG signal values ​​in the EEG signal as the mutation of the key EEG signal value; take the difference and value between the key EEG signal value and the next adjacent key EEG signal values ​​on the left and right as the amplitude change of adjacent key EEG signal values; take the difference between the key EEG signal value and the corresponding time intervals of the adjacent key EEG signal values ​​on the left and right as the frequency change of adjacent key EEG signal values; fuse the mutation, the amplitude change and the frequency change to obtain the initial epilepsy characteristic value of the key EEG signal value in the EEG signal.

[0047] As a specific example, the specific method for obtaining the initial epilepsy characteristic value is as follows:

[0048]

[0049] In the formula, For the The EEG signal Key EEG signal values; For the The average value of all key EEG signal values ​​in an EEG signal; For the The EEG signal The key EEG signal value and The absolute value of the difference between the key EEG signal values; For the The EEG signal The key EEG signal value and The absolute value of the difference between the key EEG signal values; For the The EEG signal The key EEG signal value and The time difference corresponding to the key EEG signal value; For the The EEG signal The key EEG signal value and The time difference corresponding to the key EEG signal value; For the The EEG signal The initial epilepsy characteristic value of the key EEG signal value. It should be noted that if If there is no adjacent key EEG signal value before or after a key EEG signal value, the initial epilepsy feature value analysis will not be performed.

[0050] It should be noted that when epileptic patients have an attack, the key EEG signal values ​​in the EEG signal have the characteristics of high amplitude, large amplitude change, and large frequency change. The EEG signal The difference between the key EEG signal value and the mean, The difference between the key EEG signal value and the adjacent key EEG signal value, The time difference between the first key EEG signal value and the adjacent key EEG signal value. Since frequency and time are related, by analyzing the The frequency change is analyzed by the time difference between a key EEG signal value and the adjacent key EEG signal values. The larger the The EEG signal The key EEG signal value is high amplitude, The EEG signal The larger the initial epilepsy characteristic value of the key EEG signal value is; The larger the The EEG signal The greater the difference between the first key EEG signal value and the adjacent key EEG signal value, the The greater the change in the amplitude of the key EEG signal value, the The EEG signal The larger the initial epilepsy characteristic value of the key EEG signal value, the larger the initial epilepsy characteristic value of the key EEG signal value. Here, the amplitude change is analyzed by analyzing the adjacent maximum or minimum points. The key EEG signal value and Analyze the key EEG signal values; The larger the The greater the time difference between the first key EEG signal value and the adjacent key EEG signal value, the greater the corresponding frequency change. The EEG signal The larger the initial epilepsy characteristic value of the key EEG signal value is, the greater the initial epilepsy characteristic value of the key EEG signal value is.

[0051] It should be noted that the above initial epilepsy characteristic value is only a single judgment, and its result is not accurate, because sometimes the noise points where electromagnetic fluctuations appear may also have the above characteristics. According to prior knowledge, whether it is a severe epileptic attack or a mild epileptic attack, it is a local process and does not appear discretely. Therefore, the final epilepsy characteristic value of the key EEG signal value in the EEG signal is obtained by analyzing the local characteristics around the key EEG signal value.

[0052] Preferably, the final epilepsy characteristic value of each key EEG signal value in each EEG signal is obtained according to the change of the initial epilepsy characteristic value in the preset local range on both sides of the key EEG signal value, as follows:

[0053] For any key EEG signal value in any EEG signal; obtain the cumulative value of the initial epilepsy characteristic values ​​of all key EEG signal values ​​within a preset local range on the left side of the key EEG signal value; obtain the cumulative value of the initial epilepsy characteristic values ​​of all key EEG signal values ​​within a preset local range on the right side of the key EEG signal value; weight the initial epilepsy characteristic value of the key EEG signal value with the maximum value of the cumulative value to obtain the final epilepsy characteristic value of the key EEG signal value in the EEG signal.

[0054] As a specific example, the specific method for obtaining the final epilepsy characteristic value is as follows:

[0055]

[0056] In the formula, For the The EEG signal Key EEG signal values ​​on the left The cumulative value of the initial epilepsy characteristic values ​​of the key EEG signal values, is a preset first value, and this embodiment is described with the first value being 5; For the The EEG signal Key EEG signal values ​​on the right The cumulative value of the initial epilepsy characteristic values ​​of the key EEG signal values; is the maximum value function; For the The EEG signal Initial epilepsy characteristic values ​​of key EEG signal values; For the The EEG signal The final epilepsy characteristic value of the key EEG signal value. It should be noted that if the Key EEG signal values ​​are not present on the left or right side If the key EEG signal value is not found, the final epilepsy feature value analysis will not be performed.

[0057] It should be noted that when an epileptic patient has an attack, it is a local process in the EEG signal and does not appear discretely. Therefore, the final epilepsy feature value is obtained by analyzing the changes in the initial epilepsy feature value in a preset local range; the initial epilepsy feature value is weighted by selecting the value with the largest initial epilepsy feature performance on one side to obtain the final epilepsy feature value.

[0058] At this point, the final epilepsy feature value of each key EEG signal value in each EEG signal is obtained.

[0059] Step S003, screening a number of EEG signals with mild epilepsy attacks and a number of EEG signals with severe epilepsy attacks according to the fluctuation of the final epilepsy characteristic value of the key EEG signal value in the EEG signal; obtaining the epilepsy characteristic value of each EEG signal with mild epilepsy attacks and the epilepsy characteristic value of each EEG signal with severe epilepsy attacks according to the final epilepsy characteristic value of the key EEG signal value.

[0060] It should be noted that the above analysis of the epilepsy characteristics of key EEG signal values ​​in the EEG signal is due to the fact that epilepsy patients may have mild or severe epilepsy attacks when the disease occurs. These two situations are manifested differently in the EEG signal. If the epilepsy characteristics of the EEG signal in different situations are not distinguished, it will affect the subsequent dimensionality reduction of the original matrix and lead to poor results of the EEG data preprocessing. Therefore, it is necessary to analyze whether the EEG signal corresponds to a mild or severe epilepsy attack, and analyze the epilepsy characteristic values ​​of the EEG signal separately for different situations.

[0061] Specifically, according to the fluctuation of the final epilepsy characteristic value of the key EEG signal value in the EEG signal, a number of EEG signals of mild epilepsy attack and a number of EEG signals of severe epilepsy attack are screened, including the steps of:

[0062] Firstly, the possibility of each EEG signal corresponding to a mild epileptic attack is obtained according to the fluctuation of the final epilepsy characteristic value of the key EEG signal value in the EEG signal.

[0063] Secondly, according to the possibility that the EEG signal corresponds to a mild epileptic attack, several EEG signals of mild epileptic attacks and several EEG signals of severe epileptic attacks are screened.

[0064] Specifically, according to the fluctuation of the final epilepsy characteristic value of the key EEG signal value in the EEG signal, the possibility of each EEG signal corresponding to a mild epileptic attack is obtained, as follows:

[0065] For any EEG signal, the normalized value of the variance of the final epilepsy characteristic values ​​of all key EEG signal values ​​in the EEG signal is used as the possibility that the EEG signal corresponds to a mild epileptic attack. In this embodiment, the normalization is performed using a sigmoid function.

[0066] It should be noted that when an epileptic patient has a mild epileptic attack, the local epilepsy characteristics in the EEG signal are higher, and the remaining epilepsy characteristics are lower. That is, the final epilepsy characteristic values ​​of the key EEG signal values ​​in the EEG signal fluctuate greatly as a whole. Therefore, the possibility that the EEG signal corresponds to a mild epileptic attack is obtained by measuring the variance of the final epilepsy characteristic values ​​of the key EEG signal values ​​in the EEG signal.

[0067] Furthermore, according to the possibility that the EEG signal corresponds to a mild epileptic seizure, several EEG signals of mild epileptic seizures and several EEG signals of severe epileptic seizures are screened, as follows:

[0068] The EEG signal whose probability of corresponding to a mild epileptic seizure is greater than a preset first threshold is regarded as an EEG signal of a mild epileptic seizure, and vice versa, as an EEG signal of a severe epileptic seizure.

[0069] Specifically, according to the final epilepsy characteristic value of the key EEG signal value, the epilepsy characteristic value of each mild epilepsy attack EEG signal and the epilepsy characteristic value of each severe epilepsy attack EEG signal are obtained, as follows:

[0070] For any EEG signal of a mild epileptic seizure, K-means clustering is performed on the final epilepsy characteristic values ​​of all key EEG signal values ​​in the EEG signal of a mild epileptic seizure to obtain two clusters, and the distance measurement uses the absolute value of the difference between the final epilepsy characteristic values ​​between the key EEG signal values; the mean of all the final epilepsy characteristic values ​​in each cluster is obtained, and the maximum value of the mean is taken as the epilepsy characteristic value of the EEG signal of a mild epileptic seizure; for any EEG signal of a severe epileptic seizure, the mean of all the key EEG signal values ​​in the EEG signal of a severe epileptic seizure is taken as the epilepsy characteristic value of the EEG signal of a severe epileptic seizure.

[0071] It should be noted that for the EEG signals of mild epileptic seizures, their local manifestations of epileptic characteristics are relatively high. Therefore, cluster analysis is used to obtain a class with a larger mean of final epilepsy characteristic values, which is used as the epilepsy characteristic value of the EEG signals of mild epileptic seizures. For the EEG signals of severe epileptic seizures, their overall manifestations of epileptic characteristics are relatively high. Therefore, the mean of all key EEG signal values ​​in the EEG signals of severe epileptic seizures is used as the epilepsy characteristic value of the EEG signals of severe epileptic seizures.

[0072] At this point, the epilepsy characteristic value of each electroencephalogram signal of a mild epilepsy attack and the epilepsy characteristic value of each electroencephalogram signal of a severe epilepsy attack are obtained.

[0073] Step S004, correct the key EEG signal values ​​according to the final epilepsy eigenvalues ​​and the epilepsy characteristic values, and construct the original EEG signal matrix based on the corrected key EEG signal values; perform independent component analysis on the original EEG signal matrix to obtain a source signal matrix; perform dimensionality reduction processing on the source signal matrix to obtain a number of source signals after dimensionality reduction.

[0074] It should be noted that the final epilepsy eigenvalues ​​of the key EEG signal values ​​and the epilepsy characteristic values ​​of the EEG signals are obtained above, and the key EEG signal values ​​in the EEG signals are corrected by the two, so as to correct the original EEG signal matrix, so that the original EEG signal matrix shows more obvious epilepsy characteristics, and the source signal matrix composed of independent source signals is obtained through independent component analysis, and the source signal matrix is ​​reduced in dimensionality to obtain several source signals after dimensionality reduction.

[0075] Specifically, the key EEG signal value is corrected according to the final epilepsy characteristic value and the epilepsy characteristic value, and the original EEG signal matrix is ​​constructed according to the corrected key EEG signal value, as follows:

[0076] Arrange all key EEG signal values ​​in each EEG signal in order of precedence to obtain the first row vector of each EEG signal, multiply each key EEG signal value in the first row vector by the final epilepsy characteristic value and the corresponding epilepsy characteristic value to obtain the corrected key EEG signal value, arrange all corrected key EEG signal values ​​in the first row vector in order of precedence to obtain the second row vector of each EEG signal, and arrange the second row vectors of all EEG signals in the order of obtaining the EEG signals to obtain the original EEG signal matrix. It should be noted that if the lengths of the second row vectors of different EEG signals are different, it is necessary to add 0 after the shorter second row vector to ensure that the matrix can be obtained.

[0077] Furthermore, independent component analysis is performed on the original EEG signal matrix to obtain the source signal matrix, which is as follows:

[0078] The original EEG signal matrix is ​​input into the independent component analysis algorithm, and the source signal matrix is ​​output. It should be noted that the original EEG signal matrix is ​​input into the independent component analysis algorithm, and the source signal matrix is ​​output as an existing method of the independent component analysis algorithm, which will not be repeated in this embodiment.

[0079] Furthermore, the source signal matrix is ​​subjected to dimensionality reduction processing to obtain several source signals after dimensionality reduction, as follows:

[0080] Automatic Relevance Determination (ARD) is performed on the source signal matrix to obtain a number of source signals after dimensionality reduction. It should be noted that performing automatic relevance factor analysis on the source signal matrix to obtain a number of source signals after dimensionality reduction is an existing method and will not be described in detail in this embodiment.

[0081] Through the above steps, a method for preprocessing EEG data for auxiliary diagnosis of epilepsy is completed.

[0082] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for preprocessing EEG data for auxiliary diagnosis of epilepsy, characterized in that: The method comprises the following steps: Obtaining several EEG signals of epileptic patients and key EEG signal values ​​in each EEG signal; According to the mutation of the key EEG signal value in the EEG signal, the amplitude change and the frequency change of the adjacent key EEG signal values, the initial epilepsy characteristic value of each key EEG signal value in each EEG signal is obtained; according to the change of the initial epilepsy characteristic value in the preset local range on both sides of the key EEG signal value, the final epilepsy characteristic value of each key EEG signal value in each EEG signal is obtained; According to the fluctuation of the final epilepsy characteristic value of the key electroencephalogram signal value in the electroencephalogram signal, a number of electroencephalogram signals with mild epilepsy and a number of electroencephalogram signals with severe epilepsy are screened; according to the final epilepsy characteristic value of the key electroencephalogram signal value, an epilepsy characteristic value of each electroencephalogram signal with mild epilepsy and an epilepsy characteristic value of each electroencephalogram signal with severe epilepsy are obtained; The key EEG signal values ​​are corrected according to the final epilepsy eigenvalues ​​and epilepsy characteristic values, and the original EEG signal matrix is ​​constructed based on the corrected key EEG signal values; the original EEG signal matrix is ​​subjected to independent component analysis to obtain a source signal matrix; the source signal matrix is ​​subjected to dimensionality reduction processing to obtain a number of source signals after dimensionality reduction.

2. The method for preprocessing EEG data for auxiliary diagnosis of epilepsy according to claim 1, characterized in that: The specific method for obtaining the key EEG signal value is as follows: For any EEG signal, the EEG signal values ​​corresponding to all extreme points in the EEG signal are taken as key EEG signal values.

3. The method for preprocessing EEG data for auxiliary diagnosis of epilepsy according to claim 1, characterized in that: The method of obtaining the initial epilepsy characteristic value of each key EEG signal value in each EEG signal according to the mutation of the key EEG signal value in the EEG signal, the amplitude change and the frequency change of the adjacent key EEG signal values ​​comprises the following specific steps: For any key EEG signal value in any EEG signal; The difference between the key EEG signal value and the mean of all key EEG signal values ​​in the EEG signal is taken as the mutation of the key EEG signal value; The difference and value between the key EEG signal value and the next adjacent key EEG signal values ​​on the left and right are taken as the amplitude change of the adjacent key EEG signal values; the difference between the key EEG signal value and the corresponding time intervals of the adjacent key EEG signal values ​​on the left and right are taken as the frequency change of the adjacent key EEG signal values; the mutation situation, the amplitude change and the frequency change are fused to obtain the initial epilepsy characteristic value of the key EEG signal value in the EEG signal.

4. The method for preprocessing EEG data for auxiliary diagnosis of epilepsy according to claim 1, characterized in that: The method of obtaining the final epilepsy characteristic value of each key EEG signal value in each EEG signal according to the change of the initial epilepsy characteristic value in the preset local range on both sides of the key EEG signal value comprises the following specific steps: For any key EEG signal value in any EEG signal; Obtaining a cumulative value of initial epilepsy characteristic values ​​of all key EEG signal values ​​within a preset local range to the left of the key EEG signal value; Obtain the cumulative value of the initial epilepsy characteristic values ​​of all key EEG signal values ​​within a preset local range on the right side of the key EEG signal value; weight the initial epilepsy characteristic value of the key EEG signal value with the maximum value of the cumulative value to obtain the final epilepsy characteristic value of the key EEG signal value in the EEG signal.

5. The method for preprocessing EEG data for auxiliary diagnosis of epilepsy according to claim 1, characterized in that: The method of screening a number of electroencephalogram signals of mild epilepsy attacks and a number of electroencephalogram signals of severe epilepsy attacks according to the fluctuation of the final epilepsy characteristic value of the key electroencephalogram signal value in the electroencephalogram signal comprises the following specific steps: For any EEG signal, the variance of the final epilepsy characteristic values ​​of all key EEG signal values ​​in the EEG signal is normalized and used as the possibility that the EEG signal corresponds to a mild epileptic seizure; According to the possibility that the EEG signal corresponds to a mild epileptic attack, a number of EEG signals of mild epileptic attacks and a number of EEG signals of severe epileptic attacks are screened.

6. The method for preprocessing EEG data for auxiliary diagnosis of epilepsy according to claim 5, characterized in that: The method of screening a number of EEG signals of mild epilepsy and a number of EEG signals of severe epilepsy according to the probability of the EEG signals corresponding to mild epilepsy attacks comprises the following specific steps: The EEG signal whose probability of corresponding to a mild epileptic seizure is greater than a preset first threshold is regarded as an EEG signal of a mild epileptic seizure, and vice versa, as an EEG signal of a severe epileptic seizure.

7. The method for preprocessing EEG data for auxiliary diagnosis of epilepsy according to claim 1, characterized in that: The specific method for obtaining the epilepsy characteristic value of the electroencephalogram signal of a mild epileptic seizure is as follows: For any EEG signal of mild epileptic seizure, K-means clustering is performed on the final epilepsy feature values ​​of all key EEG signal values ​​in the EEG signal of mild epileptic seizure to obtain two clusters, and the distance metric uses the absolute value of the difference between the final epilepsy feature values ​​between the key EEG signal values; The mean of all final epilepsy feature values ​​in each cluster is obtained, and the maximum value of the mean is taken as the epilepsy feature value of the EEG signal of mild epileptic seizure.

8. The method for preprocessing EEG data for auxiliary diagnosis of epilepsy according to claim 1, characterized in that: The specific method for obtaining the epilepsy characteristic value of the severe epileptic seizure EEG signal is as follows: For any severe epileptic seizure EEG signal, the average of all key EEG signal values ​​in the severe epileptic seizure EEG signal is used as the epilepsy characteristic value of the severe epileptic seizure EEG signal.

9. The method for preprocessing EEG data for auxiliary diagnosis of epilepsy according to claim 1, characterized in that: The method of correcting the key EEG signal value according to the final epilepsy characteristic value and the epilepsy characteristic value, and constructing the original EEG signal matrix according to the corrected key EEG signal value, includes the following specific steps: Arrange all key EEG signal values ​​in each EEG signal in order of sequence to obtain the first row vector of each EEG signal, multiply each key EEG signal value in the first row vector with the corresponding final epilepsy eigenvalue and the corresponding epilepsy characteristic value to obtain the corrected key EEG signal value, arrange all corrected key EEG signal values ​​in the first row vector in order of sequence to obtain the second row vector of each EEG signal, arrange the second row vectors of all EEG signals in the order of acquisition of the EEG signals to obtain the original EEG signal matrix.

10. The method for preprocessing EEG data for auxiliary diagnosis of epilepsy according to claim 1, characterized in that: The dimensionality reduction process of the source signal matrix is ​​performed to obtain a number of source signals after dimensionality reduction, and the specific steps include the following: Automatic correlation factor analysis is performed on the source signal matrix to obtain several source signals after dimensionality reduction.

Citation Information

Patent Citations

  • Epilepsy multi-class classification method and system based on deep learning

    CN116049655A

  • Epilepsy classification method and system based on electroencephalogram feature fusion deep learning model

    CN116898454A

  • A device based on an encephalogram (EEG) for detecting epileptic seizures

    DE202022103434U1

  • Systems and methods for seizure detection based on changes in electroencephalogram (EEG) non-linearities

    US20210052209A1

  • KR20220089939A

Cited By

  • Epilepsy prediction system based on multi-modal biological image and image data processing method

    CN121565504A

  • Epilepsy prediction system based on multi-modal biological images and image data processing method

    CN121565504B