Seizure warning method based on electroencephalogram signal time sub-interval optimization
By optimizing the time sub-intervals and multi-channel independent modeling of EEG signals, and combining it with a channel voting mechanism, the problems of unreasonable time window setting and insufficient information utilization in the prediction of epileptic seizures in existing technologies have been solved, achieving a high-precision and low-false-alarm warning effect.
Patent Information
- Application Number
- CN202611278632.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-21
- Publication Date
- 2026-11-20
AI Technical Summary
Existing technologies for predicting epileptic seizures suffer from problems such as unreasonable setting of the pre-seizure time window, lack of refined time modeling capabilities, and insufficient utilization of multi-channel information, resulting in limited predictive performance.
We employ a method based on time sub-interval optimization of EEG signals, dividing the pre-onset time into multiple sub-intervals through a sliding time window. We then combine multi-channel independent modeling and channel voting mechanisms to construct a deep learning model for prediction.
It achieves high-precision prediction and low false alarm rate for epileptic seizures, meets clinical needs for specific lead times, and improves prediction performance.
Smart Images

Figure CN123126722A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of brainwave interaction technology, and in particular to a method for early warning of epileptic seizures based on optimization of time sub-intervals of brainwave signals. Background Technology
[0002] Epilepsy is a common and serious chronic neurological disorder characterized by recurrent, unpredictable seizures. Seizures are usually caused by abnormal synchronous discharges of neurons in the brain, and are characterized by their sudden onset and unpredictability, easily leading to falls, burns, and other accidental injuries, severely impacting patients' quality of life and safety. Therefore, achieving early prediction of epileptic seizures has significant clinical importance.
[0003] Currently, electroencephalography (EEG) is widely used in epilepsy seizure prediction research due to its high temporal resolution. Existing techniques typically model this problem as a binary classification problem between the pre-seizure state and the non-seizure state. Early methods mainly relied on manual feature extraction combined with traditional machine learning algorithms, but these methods are highly dependent on expert experience and have limited generalization ability. In recent years, with the development of deep learning technology, methods such as convolutional neural networks can automatically extract EEG signal features, improving prediction performance to some extent.
[0004] Despite some progress in related technologies, the following key shortcomings still exist: (1) The pre-seizure time window is not set properly: Existing methods generally use a fixed and long pre-seizure time window (such as tens of minutes). This window division lacks physiological basis and data-driven optimization, which leads to the mixing of the discrimination features of different stages and reduces the model's discrimination ability. (2) Lack of time-refined modeling capability: Existing technology can only make coarse-grained assessments of the risk of onset over a longer time interval, and cannot accurately locate key time points before onset, making it difficult to meet the clinical need for "specific advance time". (3) Insufficient utilization of multi-channel information: Most methods use whole brain region modeling or simple feature fusion, which fail to fully explore the differential contributions of different brain electrical channels in the pre-onset stage, thus limiting the improvement of prediction performance; To address the aforementioned issues, we propose a method for early warning of epileptic seizures based on time sub-interval optimization of EEG signals. Summary of the Invention
[0005] The present invention proposes an epileptic seizure early warning method based on time sub-interval optimization of electroencephalogram (EEG) signals to solve the problems mentioned in the background art.
[0006] To achieve the above objectives, the present invention adopts the following technical solution: A method for early warning of epileptic seizures based on time sub-interval optimization of EEG signals includes the following steps: S1: EEG signal acquisition and data construction: Continuous EEG signals of the subjects were acquired, and then the EEG signals were labeled according to the onset time of the epileptic seizure. The signals within 0-30 minutes before the seizure were defined as the pre-seizure state, and the other stable periods were defined as the non-seizure state, thus obtaining a standardized EEG dataset with time-labeled information. S2: EEG signal preprocessing: The acquired raw EEG signals are preprocessed, specifically including the following steps: S201: Use a 50Hz or 60Hz notch filter to remove power frequency interference; S202: Employs a 0.5Hz-100Hz bandpass filter to remove low-frequency drift and high-frequency noise; S203: Eliminate or interpolate abnormal amplitude signals; S204: Normalize the signals of each channel to make their amplitude distribution uniform; S205: The signal is segmented using a sliding time window; S3: Pre-attack time sub-interval division: The pre-attack time range defined in S1 is divided into multiple time sub-intervals, with a sub-interval length of 10-60 seconds, preferably 30 seconds. The pre-attack time range is defined as follows: , in, Let T be the time interval before the onset of the epileptic seizure, and let T be the length of time before the seizure. Divide this time interval into N equal-length sub-intervals, with the following lengths: 10≤Δt≤60, preferably Δt=30, the i-th time subinterval is represented as: , i=1,2,…,N; S4: Sub-interval feature extraction and prediction model construction: For each time sub-interval, extract the corresponding EEG signal features, and build a deep learning model based on the above EEG signal features. Convolutional neural network is preferred. Train the model for each time sub-interval to obtain multiple sub-interval prediction models. S5: Determining the optimal time sub-interval: Evaluate the prediction performance of the model corresponding to each time sub-interval in S4. The evaluation indicators include classification accuracy, sensitivity, specificity and false alarm rate. Then, based on the above evaluation indicators, select the time sub-interval with the best overall performance as the target prediction window. S6: Multi-channel independent modeling: Independent modeling and processing are performed for each channel of the EEG signal; S7: Channel Voting Mechanism Fusion: The prediction results of each channel in S6 are fused using a channel voting mechanism, specifically including majority voting and weighted voting. The preset threshold is 40%-80%, preferably 50%. When the single-channel prediction output is defined as... The formula for the majority voting mechanism is: , Where c is the EEG channel number and t is the current time window. =1 predicts a pre-seizure state. =0 is predicted as a non-seizure state, and the θ interval of 0.4≤θ≤0.8 indicates that at least a certain proportion of channels believe that "an epileptic seizure is about to occur" before triggering an alert; S8: Time Series Decision Optimization: Time series integration of forecast results for continuous time windows, using a consistency constraint strategy, specifically including the following steps: S801: An early warning is triggered when the pre-onset state is predicted for N consecutive time windows, where N is 2-10; S802: The prediction results are processed using a moving average or smoothing filter method.
[0007] Preferably, in S1, the EEG signal is a multi-channel signal with 8-32 channels.
[0008] Preferably, in step S205, the window length is 10-60 seconds, more preferably 30 seconds, and the window overlap rate is 0%-50%.
[0009] Preferably, in step S4, the electrical signal features include, but are not limited to, time-domain features, frequency-domain features, time-frequency features, or directly using the original EEG signal as input.
[0010] Preferably, in step S6, each channel is treated as an independent input and input to the corresponding prediction model, and finally the prediction results of each channel are output.
[0011] Compared with existing technologies, this invention is based on the optimization of EEG signal time sub-intervals and channel voting mechanism. By finely dividing the EEG signal before the seizure into time segments and combining multi-channel independent modeling and voting fusion mechanism, it can achieve high-precision prediction and low false alarm warning of epileptic seizures. Attached Figure Description
[0012] Figure 1 This is a flowchart of the epileptic seizure early warning method based on time sub-interval optimization of EEG signals proposed in this invention. Detailed Implementation
[0013] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments.
[0014] Reference Figure 1 A method for early warning of epileptic seizures based on time sub-interval optimization of EEG signals includes the following steps: S1: EEG signal acquisition and data construction: Continuous EEG signals of subjects are acquired. The EEG signals are multi-channel signals with 8-32 channels. Then, the EEG signals are labeled according to the onset time of the epileptic seizure. The signals within 0-30 minutes before the seizure are defined as the pre-seizure state, and the other stable periods are defined as the non-seizure state. A standardized EEG dataset with time-labeled information is obtained, which provides a data foundation for subsequent modeling. S2: EEG signal preprocessing: The acquired raw EEG signals are preprocessed to improve the quality of the EEG signals and enhance the ability of the subsequent model to extract effective features. The preprocessing specifically includes the following steps: S201: Use a 50Hz or 60Hz notch filter to remove power frequency interference; S202: Employs a 0.5Hz-100Hz bandpass filter to remove low-frequency drift and high-frequency noise; S203: Eliminate or interpolate abnormal amplitude signals; S204: Normalize the signals of each channel to make their amplitude distribution uniform; S205: The signal is segmented using a sliding time window, wherein the window length is 10-60 seconds, preferably 30 seconds, and the window overlap rate is 0%-50%; S3: Pre-attack time sub-interval division: The pre-attack time range defined in S1 is divided into multiple time sub-intervals, with a sub-interval length of 10-60 seconds, preferably 30 seconds. The pre-attack time range is defined as follows: , in, Let T be the time interval before the onset of the epileptic seizure, and let T be the length of time before the seizure. Divide this time interval into N equal-length sub-intervals, with the following lengths: 10≤Δt≤60, preferably Δt=30, the i-th time subinterval is represented as: , i=1,2,…,N, This step refines the traditional single pre-onset window into multiple candidate time periods, providing a basis for subsequent screening of the optimal prediction time; S4: Sub-interval feature extraction and prediction model construction: For each time sub-interval, extract the corresponding EEG signal features. The EEG signal features include, but are not limited to, time domain features, frequency domain features, time-frequency features, or directly use the original EEG signal as input. Based on the above EEG signal features, construct a deep learning model, preferably a convolutional neural network. Train the model for each time sub-interval separately to obtain multiple sub-interval prediction models. This step realizes independent modeling of different time sub-intervals and extracts dynamic features of different stages before the onset of the attack. S5: Determining the optimal time sub-interval: Evaluate the prediction performance of the model corresponding to each time sub-interval in S4. The evaluation indicators include classification accuracy, sensitivity, specificity and false alarm rate. Then, based on the above evaluation indicators, select the time sub-interval with the best overall performance as the target prediction window. This step avoids the feature mixing problem caused by the traditional fixed time window and realizes the automatic identification of the time period with the most predictive value. S6: Multi-channel independent modeling: Independent modeling is performed for each channel of the EEG signal. Each channel is used as an independent input and is fed into the corresponding prediction model. Finally, the prediction results of each channel are output. This step makes full use of the spatial differences in different brain regions to improve the overall prediction ability. S7: Channel Voting Mechanism Fusion: The prediction results of each channel in S6 are fused using a channel voting mechanism, specifically including majority voting and weighted voting. The preset threshold is 40%-80%, preferably 50%. When the single-channel prediction output is defined as... The formula for the majority voting mechanism is: , Where c is the EEG channel number and t is the current time window. =1 predicts a pre-seizure state. =0 is predicted as a non-seizure state. The θ interval of 0.4≤θ≤0.8 indicates that at least a certain proportion of channels believe that "an epileptic seizure is about to occur" before triggering an alert. This step reduces the impact of misjudgment by a single channel on the overall result and improves the stability and robustness of the system. S8: Time Series Decision Optimization: Time series integration of forecast results for continuous time windows, employing a consistency constraint strategy, further reduces the false alarm rate and improves the reliability of early warning results. This includes the following steps: S801: An early warning is triggered when the pre-onset state is predicted for N consecutive time windows, where N is 2-10; S802: The prediction results are processed using a moving average or smoothing filter method.
[0015] It should be noted that this embodiment is based on the optimization of the time sub-interval of EEG signals and the channel voting mechanism. By finely dividing the time of the EEG signals before the seizure and combining multi-channel independent modeling and voting fusion mechanism, it can achieve high-precision prediction and low false alarm warning of epileptic seizures.
[0016] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.
Claims
1. A method for early warning of epileptic seizures based on time sub-interval optimization of electroencephalogram (EEG) signals, characterized in that, Includes the following steps: S1: EEG signal acquisition and data construction: Continuous EEG signals of the subjects were acquired, and then the EEG signals were labeled according to the onset time of the epileptic seizure. The signals within 0-30 minutes before the seizure were defined as the pre-seizure state, and the other stable periods were defined as the non-seizure state, thus obtaining a standardized EEG dataset with time-labeled information. S2: EEG signal preprocessing: The acquired raw EEG signals are preprocessed, specifically including the following steps: S201: Use a 50Hz or 60Hz notch filter to remove power frequency interference; S202: Employs a 0.5Hz-100Hz bandpass filter to remove low-frequency drift and high-frequency noise; S203: Eliminate or interpolate abnormal amplitude signals; S204: Normalize the signals of each channel to make their amplitude distribution uniform; S205: The signal is segmented using a sliding time window; S3: Pre-attack time sub-interval division: The pre-attack time range defined in S1 is divided into multiple time sub-intervals, with a sub-interval length of 10-60 seconds, preferably 30 seconds. The pre-attack time range is defined as follows: , in, Let T be the time interval before the onset of the epileptic seizure, and let T be the length of time before the seizure. Divide this time interval into N equal-length sub-intervals, with the following lengths: 10≤Δt≤60, preferably Δt=30, the i-th time subinterval is represented as: , i=1,2,…,N; S4: Sub-interval feature extraction and prediction model construction: For each time sub-interval, extract the corresponding EEG signal features, and build a deep learning model based on the above EEG signal features. Convolutional neural network is preferred. Train the model for each time sub-interval to obtain multiple sub-interval prediction models. S5: Determining the optimal time sub-interval: Evaluate the prediction performance of the model corresponding to each time sub-interval in S4. The evaluation indicators include classification accuracy, sensitivity, specificity and false alarm rate. Then, based on the above evaluation indicators, select the time sub-interval with the best overall performance as the target prediction window. S6: Multi-channel independent modeling: Independent modeling and processing are performed for each channel of the EEG signal; S7: Channel Voting Mechanism Fusion: The prediction results of each channel in S6 are fused using a channel voting mechanism, specifically including majority voting and weighted voting. The preset threshold is 40%-80%, preferably 50%. When the single-channel prediction output is defined as... The formula for the majority voting mechanism is: , Where c is the EEG channel number and t is the current time window. =1 predicts a pre-seizure state. =0 is predicted as a non-seizure state, and the θ interval of 0.4≤θ≤0.8 indicates that at least a certain proportion of channels believe that "an epileptic seizure is about to occur" before triggering an alert; S8: Time Series Decision Optimization: Time series integration of forecast results for continuous time windows, using a consistency constraint strategy, specifically including the following steps: S801: An early warning is triggered when the pre-onset state is predicted for N consecutive time windows, where N is 2-10; S802: The prediction results are processed using a moving average or smoothing filter method.
2. The method for epileptic seizure early warning based on time sub-interval optimization of EEG signals according to claim 1, characterized in that, In S1, the EEG signal is a multi-channel signal with 8-32 channels.
3. The method for epileptic seizure early warning based on time sub-interval optimization of EEG signals according to claim 1, characterized in that, In step S205, the window length is 10-60 seconds, preferably 30 seconds, and the window overlap rate is 0%-50%.
4. The method for epileptic seizure early warning based on time sub-interval optimization of EEG signals according to claim 1, characterized in that, In S4, the electrical signal features include, but are not limited to, time-domain features, frequency-domain features, time-frequency features, or directly using the original EEG signal as input.
5. The method for epileptic seizure early warning based on time sub-interval optimization of EEG signals according to claim 1, characterized in that, In step S6, each channel is used as an independent input and is fed into the corresponding prediction model. Finally, the prediction results of each channel are output.
