A method, system, device and medium for monitoring electroencephalogram signals of cortical dysplasia epilepsy

By combining multi-scale neural networks with fuzzy inference models, a balance between high classification performance and high decision interpretability is achieved in epilepsy EEG signal monitoring. This solves the problem that it is difficult to maintain both high classification performance and decision interpretability in existing technologies, and improves the accuracy and interpretability of epilepsy seizure detection.

CN123147948APending Publication Date: 2026-11-24THE FIRST AFFILIATED HOSPITAL OF CHONGQING MEDICAL AND PHARMACEUTICAL COLLEGE
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611097178.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-23
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing methods for monitoring epilepsy EEG signals struggle to achieve interpretability of decisions while maintaining high classification performance. Features of deep learning models are difficult to understand, while traditional fuzzy systems have weak feature representation and modeling capabilities. Existing knowledge distillation strategies fail to accurately transfer feature information across different time scales.

Method used

By combining a multi-scale neural network model with a fuzzy inference model, the knowledge transfer channel is determined by pre-setting scale parameters and rule granularity sets. Deep feature vectors are extracted and activation intensity is calculated. Co-training is then performed to generate a multi-granularity fuzzy classifier, which achieves accurate transfer of deep features to fuzzy rules.

Benefits of technology

It achieves a balance between high classification performance and high decision interpretability. The fuzzy inference model can inherit the discrimination ability of multi-scale neural networks, provide clear interpretation of IF-THEN rules, and improve the accuracy, robustness and generalization ability of epilepsy seizure detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123147948A_ABST
    Figure CN123147948A_ABST
Patent Text Reader

Abstract

The application provides a cortical dysplasia epilepsy electroencephalogram signal monitoring method, system, device and medium, which determines a plurality of scale parameter and rule granularity one-to-one corresponding knowledge transfer channels; inputs a historical electroencephalogram feature set of a target patient into a multi-scale neural network model to determine teacher soft labels of each knowledge transfer channel; determines student soft labels of each knowledge transfer channel based on a fuzzy reasoning model; cooperatively trains the teacher soft labels and the student soft labels in all the knowledge transfer channels to obtain a multi-granularity fuzzy classifier; inputs a feature set of a to-be-tested electroencephalogram of the target patient into the fuzzy classifier to infer a state judgment label of an epilepsy seizure of the target patient. The scheme of the application can accurately distill and transfer multi-scale deep feature knowledge of deep learning to a multi-granularity interpretable fuzzy rule system, so as to achieve the unity of high classification performance and high decision interpretability in cortical dysplasia epilepsy electroencephalogram signal monitoring.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of electroencephalogram (EEG) signal processing technology, and more specifically, to a method, system, device, and medium for monitoring EEG signals in cortical malformation epilepsy. Background Technology

[0002] Epilepsy is a common chronic neurological disease, and its diagnosis and monitoring are highly dependent on the analysis of electroencephalogram (EEG) signals. Traditional EEG analysis relies on doctors' visual interpretation, which is inefficient and highly subjective. In recent years, deep learning-based automatic detection methods have achieved remarkable results in the classification of epilepsy EEG signals due to their powerful feature extraction capabilities.

[0003] Existing technical solutions mainly fall into two categories: one is pure deep learning methods (such as convolutional neural networks), which can automatically extract deep features and achieve high classification accuracy, but the generated deep features are difficult for humans to understand, and the model's decision-making logic is opaque, failing to meet the rigid clinical demand for traceable and interpretable diagnostic evidence; the other is interpretable models based on fuzzy systems, which provide intuitive decision-making logic through IF-THEN rules, but are limited by their shallow model structure, resulting in weak feature representation and modeling capabilities, and their classification performance is usually inferior to deep learning models; in recent years, some research has attempted to use knowledge distillation techniques to transform the deep models... Knowledge transfer to fuzzy systems is possible, but existing methods often employ single-scale or general distillation strategies, failing to finely deconstruct and transfer feature information at different time scales, nor establishing an effective correspondence between feature scales and rule abstraction levels. This results in insufficiently accurate transferred knowledge, either sacrificing some interpretability or failing to fully inherit the performance advantages of the teacher model. Therefore, how to accurately distill and transfer multi-scale deep feature knowledge from deep learning to a multi-granular interpretable fuzzy rule system to achieve a balance between high classification performance and high decision interpretability in EEG signal monitoring for cortical malformation epilepsy has become a challenge for the industry. Summary of the Invention

[0004] This application provides a method, system, device, and medium for monitoring EEG signals in cortical malformation epilepsy, which can accurately distill and transfer multi-scale deep feature knowledge from deep learning to a multi-granularity interpretable fuzzy rule system, thereby achieving a balance between high classification performance and high decision interpretability in monitoring EEG signals in cortical malformation epilepsy.

[0005] In a first aspect, this application provides a method for monitoring electroencephalogram (EEG) signals in cortical malformation epilepsy, comprising: Multiple knowledge transfer channels with one-to-one correspondence between scale parameters and rule granularity are determined in advance based on a preset set of scale parameters and a set of rule granularity. The historical EEG feature set of the target patient is input into a multi-scale neural network model for forward propagation and feature mapping. Deep feature vectors of receptive fields at different times are extracted, and then teacher soft labels for knowledge transfer channels corresponding to each scale parameter are determined based on all the deep feature vectors. The activation intensity of the historical EEG feature set for each fuzzy rule is calculated based on the fuzzy inference model corresponding to the rule granularity in each knowledge transfer channel, and then the student soft label corresponding to each knowledge transfer channel is determined based on all the activation intensities. By using teacher soft labels and student soft labels in all knowledge transfer channels, each fuzzy inference model is co-trained to obtain a multi-granularity fuzzy classifier. The feature set of the target patient's EEG signal is input into the fuzzy classifier for inference and prediction to obtain the state label of the target patient's epileptic seizure.

[0006] In some embodiments, pre-determining multiple knowledge transfer channels that correspond one-to-one between scale parameters and rule granularities based on a preset set of scale parameters and a set of rule granularities specifically includes: Pre-define a set of scale parameters to control the receptive field range of a multi-scale neural network model in the time dimension; Pre-define a set of rule granularities to control the fineness and complexity of the antecedent part of the fuzzy inference model; By pairing the elements in the scale parameter set with the elements in the rule granularity set, multiple knowledge transfer channels with one-to-one correspondence between scale parameters and rule granularities are obtained.

[0007] In some embodiments, the historical EEG feature set of the target patient is input into a multi-scale neural network model for forward propagation and feature mapping to extract deep feature vectors of receptive fields at different times, specifically including: The historical EEG signals of the target patient are obtained, and then the features of the historical EEG signals are extracted to obtain the historical EEG feature set; Construct a multi-scale neural network model based on a preset set of scale parameters; The historical EEG feature set is synchronously input into all parallel branches of the multi-scale neural network model for hierarchical forward propagation to obtain an abstract feature map for each branch. High-dimensional nonlinear mapping and feature compression are performed on the abstract feature map of each branch to obtain deep feature vectors of receptive fields at different times.

[0008] In some embodiments, determining the teacher soft labels corresponding to each scale parameter for the knowledge transfer channel based on all deep feature vectors specifically includes: The logical output vector for each scale parameter is determined based on all depth feature vectors; Each logic output vector is softened using a softening function with an adjustable temperature coefficient, generating a soft probability distribution for each logic output vector. Teacher soft labels for each scale parameter corresponding to the knowledge transfer channel are determined based on the soft probability distribution of all logical output vectors.

[0009] In some embodiments, the activation intensity of the historical EEG feature set for each fuzzy rule is calculated based on the fuzzy inference model corresponding to the rule granularity in each knowledge transfer channel, and then the student soft label corresponding to each knowledge transfer channel is determined based on all the activation intensities. Specifically, this includes: For each knowledge transfer channel, the membership function parameter set of the fuzzy rule antecedent part in the corresponding fuzzy inference model is determined according to the rule granularity of the knowledge transfer channel. Based on the membership function parameter set, the activation intensity of the historical EEG feature set for each fuzzy rule is calculated to obtain a normalized activation intensity vector; The consequent parameter matrix of the corresponding fuzzy inference model is determined by the activation intensity vector; Based on the consequent parameter matrix, fuzzy reasoning and knowledge softening transformation are performed to obtain student soft labels for knowledge transfer channels, and then student soft labels for each knowledge transfer channel are obtained.

[0010] In some embodiments, the multi-granularity fuzzy classifier is obtained by co-training each fuzzy inference model using teacher soft labels and student soft labels in all knowledge transfer channels. Specifically, this includes: The decoupling distillation loss component for each knowledge transfer channel is determined by calculating the relative entropy between teacher soft tags and student soft tags in each knowledge transfer channel. The global supervision loss component is determined based on the cross-entropy between all fuzzy inference models and the actual epileptic state labels; Based on all the decoupled distillation loss components and the global supervision loss components, the consequent parameter matrix of all fuzzy inference models is iteratively solved and updated synchronously to obtain multiple fuzzy inference models after collaborative training. A multi-granularity fuzzy classifier is determined based on all co-trained fuzzy inference models.

[0011] In some embodiments, inputting the feature set of the target patient's electroencephalogram (EEG) signal into the fuzzy classifier for inference and prediction to obtain the state label of the target patient's epileptic seizure specifically includes: The target patient's electroencephalogram (EEG) signal is acquired, and then features are extracted to obtain the feature set of the target patient's EEG signal. The feature set is input into the fuzzy classifier for fuzzy inference to obtain preliminary judgment vectors for multiple epileptic states; All preliminary judgment vectors are weighted and fused to obtain a comprehensive decision vector for the target patient's epileptic state; The target patient's epileptic seizure status label is determined based on the comprehensive decision vector.

[0012] Secondly, this application provides a cortical malformation epilepsy electroencephalogram (EEG) signal monitoring system, comprising: The channel matching module is used to pre-determine multiple knowledge transfer channels that correspond one-to-one with scale parameters and rule granularities based on a preset set of scale parameters and a set of rule granularities. The transfer training module is used to input the historical EEG feature set of the target patient into a multi-scale neural network model for forward propagation and feature mapping, extract the deep feature vectors of receptive fields at different times, and then determine the teacher soft labels of the knowledge transfer channels corresponding to each scale parameter based on all the deep feature vectors. The transfer training module is used to calculate the activation intensity of the historical EEG feature set for each fuzzy rule based on the fuzzy inference model corresponding to the rule granularity in each knowledge transfer channel, and then determine the student soft label corresponding to each knowledge transfer channel based on all the activation intensities. The transfer training module is used to collaboratively train each fuzzy inference model through teacher soft labels and student soft labels in all knowledge transfer channels to obtain a multi-granularity fuzzy classifier. The monitoring module is used to input the feature set of the target patient's EEG signal into the fuzzy classifier for inference and prediction, and obtain the state judgment label of the target patient's epileptic seizure.

[0013] Thirdly, this application provides a computer device, the computer device including a memory and a processor, the memory storing code, and the processor being configured to acquire the code and execute the above-described method for monitoring electroencephalogram signals in cortical malformation epilepsy.

[0014] Fourthly, this application provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method for monitoring electroencephalogram signals in cortical malformation epilepsy.

[0015] The technical solutions provided by the embodiments disclosed in this application have the following beneficial effects: In the method, system, device and medium for monitoring EEG signals in cortical malformation epilepsy provided in this application, multiple knowledge transfer channels corresponding one-to-one with scale parameters and rule granularity are first determined in advance according to a preset set of scale parameters and a set of rule granularity. The historical EEG feature set of the target patient is input into a multi-scale neural network model for forward propagation and feature mapping. Deep feature vectors of receptive fields at different times are extracted, and then teacher soft labels for knowledge transfer channels corresponding to each scale parameter are determined based on all the deep feature vectors. The activation intensity of the historical EEG feature set for each fuzzy rule is calculated based on the fuzzy inference model corresponding to the rule granularity in each knowledge transfer channel, and then the student soft label corresponding to each knowledge transfer channel is determined based on all the activation intensities. By using teacher soft labels and student soft labels in all knowledge transfer channels, each fuzzy inference model is co-trained to obtain a multi-granularity fuzzy classifier. The feature set of the target patient's EEG signal is input into the fuzzy classifier for inference and prediction to obtain the state label of the target patient's epileptic seizure.

[0016] Therefore, this application inputs the feature set of the target patient's EEG signal into the fuzzy classifier for inference and prediction to obtain the state judgment label of the target patient's epileptic seizure. First, determining the knowledge transfer channel can obtain the directional knowledge transfer path connecting the multi-scale neural network model and the fuzzy inference model. The determination of the knowledge transfer channel can be achieved by establishing a strict decoupling correspondence between scale parameters and rule granularity, constructing multiple directional and parallel knowledge transfer paths, so that the deep features extracted from different temporal receptive fields (e.g., global trends and local transients) can be accurately and orderly distilled into fuzzy rule granularity (e.g., coarse-grained generalization or fine-grained characterization) that matches its complexity, thereby realizing deep representation capability at the system level. The transformation to a transparent rule system fundamentally avoids confusion between knowledge at different levels of abstraction, ensuring the accuracy of transfer. It enables fuzzy inference models to inherit the multi-scale discrimination capabilities of multi-scale neural network models, significantly improving the final classification accuracy. Furthermore, determining teacher soft labels yields soft probability distributions generated by sub-models of the multi-scale neural network model, which are bound to the corresponding knowledge transfer channels. Determining student soft labels yields receiver representations of knowledge transfer aligned with the probability distribution of teacher soft labels. The determination of teacher and student soft labels can be achieved through collaborative training aimed at minimizing relative entropy, guiding each fuzzy inference model to closely learn the powerful discrimination capabilities of the multi-scale neural network model while its reasoning process remains firmly rooted in the original... The initial feature space and fuzzy logic framework fundamentally ensure that the final ensemble model possesses high classification performance comparable to deep learning models while outputting clear and traceable IF-THEN rule explanations. Finally, determining the fuzzy classifier yields a final decision system composed of multiple co-trained fuzzy inference models with different rule granularities. The determination of multi-granularity fuzzy classifiers creatively constructs a multi-level decision explanation system. Coarse-grained rules clearly summarize the global pattern and main characteristics of epileptic seizures, providing doctors with rapid and intuitive pathological judgment criteria. Fine-grained rules meticulously depict the local details of pre-seizure aura or atypical manifestations, enhancing the model's ability to distinguish complex and marginal cases. The depth of decision-making and the complexity of rules not only significantly improve the transparency and credibility of the model's decision-making process, enabling clinicians to trace and understand the logical chain behind each classification conclusion, thereby establishing trust in the auxiliary diagnostic system; but also effectively integrate knowledge at different levels of abstraction, significantly improving the accuracy, robustness, and generalization ability of the final epilepsy seizure detection, ultimately achieving a high-efficiency unification of high-precision automated detection and highly interpretable clinical decision support. In summary, based on the above scheme, the multi-scale deep feature knowledge of deep learning can be accurately distilled and transferred to a multi-granularity interpretable fuzzy rule system to achieve a unification of high classification performance and high decision interpretability in the monitoring of EEG signals in cortical malformation epilepsy. Attached Figure Description

[0017] Figure 1 This is an exemplary flowchart of a method for monitoring electroencephalogram (EEG) signals in cortical malformation epilepsy according to some embodiments of this application; Figure 2 This is a flowchart illustrating the operation of determining depth feature vectors according to some embodiments of this application; Figure 3 This is an exemplary flowchart illustrating the determination of a fuzzy classifier according to some embodiments of this application; Figure 4 This is a schematic diagram of the electroencephalogram (EEG) signal monitoring system for cortical malformation epilepsy according to some embodiments of this application; Figure 5 This is an internal structural diagram of a computer device for implementing a method for monitoring electroencephalogram (EEG) signals in cortical malformation epilepsy, according to some embodiments of this application. Detailed Implementation

[0018] To better understand the technical solution of this application, the technical solution of this application will be described in detail below with reference to the accompanying drawings and specific embodiments.

[0019] refer to Figure 1 The figure is an exemplary flowchart of a method for monitoring electroencephalogram (EEG) signals in cortical malformation epilepsy according to some embodiments of this application. This method mainly includes the following steps: In step 101, multiple knowledge transfer channels corresponding one-to-one with scale parameters and rule granularities are determined in advance based on a preset set of scale parameters and a set of rule granularities.

[0020] In some embodiments, determining multiple knowledge transfer channels that correspond one-to-one with scale parameters and rule granularities based on a preset set of scale parameters and a set of rule granularities can be achieved through the following steps: Pre-define a set of scale parameters to control the receptive field range of a multi-scale neural network model in the time dimension; Pre-define a set of rule granularities to control the fineness and complexity of the antecedent part of the fuzzy inference model; By pairing the elements in the scale parameter set with the elements in the rule granularity set, multiple knowledge transfer channels with one-to-one correspondence between scale parameters and rule granularities are obtained.

[0021] It should be noted that in this application, the multi-scale neural network model is composed of multiple one-dimensional convolutional neural networks, serving as a parallel model set for extracting receptive field depth features at different times. Each neural network sub-model in this multi-scale neural network model has an identical structure, sequentially including: an input layer, multiple convolutional layers, a batch normalization layer, a non-linear activation layer, a pooling layer, and a fully connected layer. The difference between each neural network sub-model lies in the scale parameter of its first convolutional kernel; for example, the kernel sizes are 7, 21, and 51, the number of channels in the convolutional layer is set to 32, the stride of the pooling layer is 2, and the output dimension of the fully connected layer is 64. Through parallel forward propagation, they output depth feature vectors of dimension 64. This multi-scale neural network model is pre-trained using a publicly available epilepsy EEG dataset. Using multi-class cross-entropy as the loss function, the Adam optimizer iterates until convergence, giving it stable multi-scale feature extraction and classification capabilities. Compared with ordinary single-scale convolutional neural networks, this parallel multi-scale architecture allows the neural network sub-model with large-scale convolutional kernels (e.g., kernel size 51) to focus on capturing long-term slow-changing patterns and global trends of signals, while the neural network sub-model with small-scale convolutional kernels (e.g., kernel size 7) is good at capturing short-term transient features (such as spikes and sharp waves) and local details of signals. The neural network sub-model with medium-scale convolutional kernels (e.g., kernel size 21) also takes into account the extraction of mid-term rhythmic discharge features, thereby simultaneously extracting features of EEG signals across different time spans and providing a hierarchical feature foundation for subsequent channel-specific knowledge distillation.

[0022] In practical implementation, a set of scale parameters controlling the receptive field range of the multi-scale neural network model in the time dimension can be achieved in the following way: First, based on the sampling frequency (e.g., 256 Hz) of the target patient's EEG signal and the duration of typical pathological waveforms (e.g., spikes, sharp waves, rhythmic discharges) associated with epileptic seizures, determine the multiple key time scale ranges that need to be covered. For example: 20-70 ms to capture transient sharp waves, 70-150 ms to analyze short-range rhythms, and more than 150 ms to observe long-range trends; Second, for each target time scale, calculate the relationship between the target time scale and the sampling period. The ratio is taken and rounded, and the rounded value is converted into the corresponding one-dimensional convolution kernel scale value, thus obtaining a set of discrete convolution kernel configurations with different scales. Then, 3 to 5 representative convolution kernel configurations are selected to form a scale parameter set. For example, scale 7, scale 21 and scale 51 correspond to the smaller, medium and larger scales for capturing local transient spikes, short-range rhythms and long-range trends, respectively. The scale parameter set is the core parameter set used to configure the multi-scale neural network model so that it can extract the features of EEG signals in parallel at different time spans. It can ensure that the model can capture the complete information spectrum from local transients to global trends at the same time.

[0023] It should be noted that in this application, the fuzzy inference model is an interpretable classifier using the Takagi-Sugeno-Kang TSK architecture, consisting of an antecedent and a consequent. The antecedent uses a fuzzy C-means clustering algorithm to determine the center and width of the Gaussian membership function corresponding to each fuzzy rule, thereby calculating the activation intensity of the input EEG features for each rule, thus mapping the original features to fuzzy membership with explicit semantics. The consequent is a linear function of the input features, the parameters of which are solved by a least-squares optimization method with regularization terms, enabling the fuzzy inference model to fit complex input-output relationships while maintaining the transparency of the rule form, thus generating the final classification decision, i.e., the weighted sum of the outputs of each rule, with the weights being the normalized activation intensities. The fuzzy inference model in this application is not a simple TSK fuzzy classifier; its core innovation lies in: during the training process, it not only fits the real... The epilepsy state labeling method further transforms the multi-scale deep feature vectors extracted by the multi-scale neural network model into fuzzy rule parameters through multi-channel knowledge distillation. This enables the fuzzy inference model to inherit the feature representation capabilities of the multi-scale neural network while retaining the full interpretability of the IF-THEN fuzzy rules. Compared with ordinary deep learning classifiers, the decision-making process of the fuzzy inference model in this application can be directly traced back to the semantic range of the original EEG features through fuzzy rules, meeting the interpretability requirements of clinical diagnosis. Deep learning classifiers have high accuracy but are black boxes in decision-making, while traditional TSK fuzzy classifiers are interpretable but lack accuracy. The fuzzy inference model in this application, through multi-scale knowledge distillation, achieves significantly better classification accuracy than traditional TSK fuzzy classifiers while maintaining the interpretability of fuzzy rules, approaching the level of deep learning models.

[0024] In specific implementation, a set of rule granularities that controls the fineness and complexity of the antecedent part of the fuzzy inference model can be preset in the following way: First, based on the interpretability requirements of the model and the complexity of the classification task, determine the approximate range of the number of fuzzy rules (e.g., 3 to 12 rules). The lower limit can ensure the description of the most basic pattern of the feature space, while the upper limit avoids excessive computational cost and overfitting. Then, within this approximate range, select a set of representative rule numbers at equal intervals as rule granularities, such as 3, 5, 7, 9, 11, etc., to form different levels of abstraction from coarse to fine. Each selected number of rules represents a degree of detail in the fuzzy partitioning and semantic generalization of the input feature space. The more rules there are, the finer the partitioning and the more specific the description of the antecedents. This set of discrete rule granularities representing different modeling complexities is used as the rule granularity set. The rule granularity set is the core parameter set used to define the number and complexity levels of fuzzy rules in each fuzzy inference model, which enables the model to express and reason about knowledge in an interpretable manner at multiple levels of abstraction from simple to complex.

[0025] It should be noted that in this application, the knowledge transfer channel is a directional knowledge transfer path connecting the multi-scale neural network model and the fuzzy inference model. As the foundation of the parallel processing architecture forming the entire multi-scale, multi-granularity distillation framework, it enables the structured, decoupled, and precise transfer of deep features to fuzzy rules, thereby improving detection performance while ensuring the interpretability of the decision-making process. Specifically, pairing elements in the scale parameter set with elements in the rule granularity set to obtain multiple knowledge transfer channels with one-to-one correspondence between scale parameters and rule granularities can be achieved in the following way: First, establish that "the global trend features extracted from the large-scale receptive field should be summarized by coarser-grained fuzzy rules." The core pairing principle is that "local details captured by small-scale receptive fields should be characterized by finer-grained fuzzy rules." Based on this principle, elements in the scale parameter set and rule granularity set are sorted and aligned. The largest convolutional kernel scale is associated with the fewest number of rules, the smallest convolutional kernel scale with the most number of rules, and intermediate scales with intermediate rule numbers, thus generating a clear pairing list. Each item in the list contains a scale parameter and a rule granularity. Then, each independent pairing item in the pairing list is defined as a knowledge transfer channel, resulting in multiple knowledge transfer channels with one-to-one correspondence between scale parameters and rule granularities.

[0026] In step 102, the historical EEG feature set of the target patient is input into a multi-scale neural network model for forward propagation and feature mapping, and the deep feature vectors of receptive fields at different times are extracted. Then, based on all the deep feature vectors, the teacher soft labels of the knowledge transfer channels corresponding to each scale parameter are determined.

[0027] In some embodiments, reference Figure 2 The figure is a flowchart illustrating the operation of determining depth feature vectors according to some embodiments of this application. In this application, the historical EEG feature set of the target patient is input into a multi-scale neural network model for forward propagation and feature mapping. The extraction of depth feature vectors of receptive fields at different times can be achieved by the following steps: The historical EEG signals of the target patient are obtained, and then the features of the historical EEG signals are extracted to obtain the historical EEG feature set; Construct a multi-scale neural network model based on a preset set of scale parameters; The historical EEG feature set is synchronously input into all parallel branches of the multi-scale neural network model for hierarchical forward propagation to obtain an abstract feature map for each branch. High-dimensional nonlinear mapping and feature compression are performed on the abstract feature map of each branch to obtain deep feature vectors of receptive fields at different times.

[0028] In practice, acquiring the historical EEG signals of the target patient and then extracting features from these signals to obtain a historical EEG feature set can be achieved in the following way: First, it can be done using clinically standard EEG acquisition equipment (such as Neuroscan). The SynAmps2 EEG amplifier and 64-channel Ag / AgCl electrode cap were used to acquire multi-channel scalp EEG signals from the target patient according to the international 10-20 system electrode placement standard. Raw EEG time-series data was obtained, and the voltage time series was initially processed using signal preprocessing techniques. Specifically, bandpass filtering was used to screen the frequency components of the EEG time-series data, retaining frequency bands closely related to epileptic activity (e.g., 0.5-70 Hz) while filtering out high-frequency noise and baseline drift. Blind source separation technology was used to remove artifacts from the filtered EEG time-series data to weaken or remove interference components introduced by eye movements, electromyography, and electrocardiography, resulting in a pre-processed continuous signal. Then, sliding time window technology was used to segment the continuous signal, obtaining multiple signal segment samples of fixed duration. Amplitude normalization was performed on each signal segment sample, and the time-domain, frequency-domain, and nonlinear characteristics of the signal segment samples were extracted. The temporal features include amplitude, mean, variance, and peak factor; the frequency domain features include the energy proportions of the delta, theta, alpha, beta, and gamma bands; and the nonlinear features include sample entropy and approximate entropy. All extracted features are concatenated into a fixed-dimensional feature vector. Then, the feature vectors of all signal segment samples are paired and bound to epileptic seizure state labels, accurate to each segment and derived by clinical experts from synchronized video EEG recordings. The paired feature vector sequence with epileptic seizure state labels and temporal markers is then used as the historical EEG feature set of the target patient. This refers to a set of EEG feature vectors containing known epileptic seizure state information and clear clinical semantics. This set can serve as a source of knowledge transfer and a benchmark for model training, providing a standardized data foundation with supervised information for subsequent construction of multi-scale neural network models and multi-granularity fuzzy inference models, suitable for learning and distillation.

[0029] In practice, the construction of a multi-scale neural network model based on a preset set of scale parameters can be achieved in the following way: Neural network architecture construction techniques can be used to design an independent forward propagation sub-network for each convolutional kernel configuration in the scale parameter set. Each sub-network consists of multiple convolutional layers, non-linear activation layers, and pooling layers connected sequentially to form multiple parallel feature extraction pathways. Then, parameter initialization techniques are used to initialize the weight matrix and bias vector in each sub-network to ensure that each branch has differentiated feature extraction capabilities. Finally, all parallel sub-networks are integrated into a unified multi-scale neural network model.

[0030] In specific implementation, the historical EEG feature set is synchronously input into all parallel branches of the multi-scale neural network model for hierarchical forward propagation. The abstract feature map of each branch can be obtained in the following way: Parallel feedforward technology can be used to feed the historical EEG feature set into each parallel branch of the multi-scale neural network model simultaneously. In each branch, convolution operation, nonlinear activation function transformation and pooling downsampling operation are performed sequentially. The feature transformation of the signal is completed through layer-by-layer propagation. The output of the last convolution or pooling layer of each branch is collected using feature map generation technology to obtain the abstract feature map of each branch. The abstract feature map is a two-dimensional data representation that carries the abstract pattern and structural information of the target patient's EEG signal at a specified time scale. It can provide a multi-level and multi-granular source of original features for subsequent knowledge distillation, ensuring that the differentiated information captured from different receptive fields is preserved.

[0031] In specific implementation, the abstract feature map of each branch is subjected to high-dimensional nonlinear mapping and feature compression to obtain deep feature vectors of different temporal receptive fields. This can be achieved in the following way: For each abstract feature map, the abstract feature map is transformed into a one-dimensional vector through feature map flattening technology to obtain a high-dimensional feature vector. Then, the high-dimensional feature vector is linearly weighted and nonlinearly activated using fully connected layer transformation technology to achieve high-dimensional mapping and information fusion of the feature space. Next, the high-dimensional vector output by the fully connected layer is reduced in dimensionality using feature compression technology. By adjusting the number of output neurons, a compressed feature vector with uniform dimension is obtained. Finally, the probability distribution of the compressed feature vector is calculated using a normalized exponential function to obtain the output vector representing the confidence of each category as the deep feature vector of the corresponding temporal receptive field of the abstract feature map. Through the above steps, the deep feature vectors of different temporal receptive fields can be obtained.

[0032] It should be noted that in this application, the deep feature vector is a one-dimensional compact representation containing high-level semantic and category discrimination information of the target patient's EEG signal. It can serve as a standardized and transferable knowledge carrier to achieve efficient and structured information transfer from a multi-scale neural network model to a fuzzy inference model, thereby improving classification performance while maintaining the interpretability of the fuzzy inference model based on the original features.

[0033] In some embodiments, determining the teacher soft labels for each scale parameter corresponding to the knowledge transfer channel based on all deep feature vectors can be achieved using the following steps: The logical output vector for each scale parameter is determined based on all depth feature vectors; Each logic output vector is softened using a softening function with an adjustable temperature coefficient, generating a soft probability distribution for each logic output vector. Teacher soft labels for each scale parameter corresponding to the knowledge transfer channel are determined based on the soft probability distribution of all logical output vectors.

[0034] In specific implementation, the logical output vectors for each scale parameter can be determined based on all deep feature vectors in the following way: Each deep feature vector can be fed into a dedicated fully connected classification layer. In this fully connected classification layer, a linear transformation matrix is ​​used to perform a weighted summation and bias superposition linear operation on the input deep feature vectors, mapping them to a score vector with the same dimension as the number of epileptic state categories. This score vector is the model's discrimination score for the input sample belonging to each epileptic state category. This score vector is then used as the logical output vector for the scale parameter corresponding to the deep feature vector, thus obtaining the logical output vectors for each scale parameter. The logical output vector is the original score vector representing the input EEG signal belonging to each epileptic state category. It can provide basic data containing the model's original discrimination tendency for subsequent knowledge softening, thereby preserving the model's initial and complete discrimination information for epileptic states at each scale.

[0035] In practice, each logical output vector is softened using a softening function with an adjustable temperature coefficient. The resulting soft probability distribution for each logical output vector can be achieved as follows: First, a temperature coefficient greater than 1 (e.g., 3) is set for the knowledge distillation process to control the degree of probability distribution softening. Then, for each logical output vector, the discriminant score for each category is divided by this temperature coefficient to scale all scores, mitigating the relative differences between category scores. This yields the scaled score corresponding to the discriminant score. Finally, all scaled scores are input and normalized. The exponential function transforms the scaled scores into non-negative values ​​through exponential operations and ensures that the sum of all scaled scores is 1 through normalization. This results in a smooth probability distribution with small differences in probability between categories, which serves as the soft probability distribution for the logical output vector. The soft probability distribution for each logical output vector can be obtained through the above steps. The soft probability distribution is the probability distribution obtained after smoothing the logical output vector. It can soften the hard decision boundary of the model, amplify the inter-class similarity information, and provide a soft knowledge carrier rich in relative relational information that is easier for fuzzy inference models to learn, thus enabling knowledge distillation.

[0036] In practice, the teacher soft label for each scale parameter corresponding to the knowledge transfer channel can be determined based on the soft probability distribution of all logical output vectors in the following way: each logical output vector can be assigned as the teacher soft label for the corresponding scale parameter and bound to the knowledge transfer channel named after the scale parameter, serving as the unique and authoritative source of teacher knowledge for that knowledge transfer channel, thereby determining the teacher soft label for each scale parameter corresponding to the knowledge transfer channel.

[0037] It should be noted that in this application, the teacher soft label is a soft probability distribution generated by the sub-model of the multi-scale neural network model and bound to the corresponding knowledge transfer channel. It can provide a definite and unique source of teacher knowledge for each decoupled distillation channel, ensuring that multi-scale feature knowledge can be accurately and orderly transferred to the corresponding granularity of the fuzzy inference model. It is the core medium for realizing scale-granularity decoupling and corresponding distillation.

[0038] In step 103, the activation intensity of the historical EEG feature set for each fuzzy rule is calculated based on the fuzzy inference model corresponding to the rule granularity in each knowledge transfer channel, and then the student soft label corresponding to each knowledge transfer channel is determined based on all the activation intensities.

[0039] In some embodiments, the activation intensity of the historical EEG feature set for each fuzzy rule is calculated based on the fuzzy inference model corresponding to the rule granularity in each knowledge transfer channel, and then the student soft label corresponding to each knowledge transfer channel is determined based on all the activation intensities. This can be achieved by the following steps: For each knowledge transfer channel, the membership function parameter set of the fuzzy rule antecedent part in the corresponding fuzzy inference model is determined according to the rule granularity of the knowledge transfer channel. Based on the membership function parameter set, the activation intensity of the historical EEG feature set for each fuzzy rule is calculated to obtain a normalized activation intensity vector; The consequent parameter matrix of the corresponding fuzzy inference model is determined by the activation intensity vector; Based on the consequent parameter matrix, fuzzy reasoning and knowledge softening transformation are performed to obtain student soft labels for knowledge transfer channels, and then student soft labels for each knowledge transfer channel are obtained.

[0040] In specific implementation, determining the membership function parameter set of the fuzzy rule antecedent part in the corresponding fuzzy inference model according to the rule granularity of the knowledge transfer channel can be achieved in the following way: The fuzzy inference model can use fuzzy C-means clustering technology to divide the historical EEG feature set of the target patient according to the preset rule granularity, and obtain the optimal cluster center and membership value by iteratively optimizing the objective function. Then, these cluster centers are used as the center parameters of the Gaussian membership function, and the corresponding width parameter is calculated according to the sample distribution, thereby obtaining the membership function parameter set of all fuzzy rule antecedent parts in the fuzzy inference model corresponding to the knowledge transfer channel; wherein, the membership function parameter set is the set of key parameters defining the fuzzy semantic interval of each feature in the fuzzy rule antecedent, which can ensure that the reasoning process of the fuzzy inference model is completely based on the original feature space of the EEG signal, thereby fundamentally ensuring the traceability and interpretability of the model's decision basis.

[0041] In specific implementation, the activation intensity of the historical EEG feature set for each fuzzy rule is calculated based on the membership function parameter set. The normalized activation intensity vector can be obtained in the following way: the membership degree value of each feature dimension in the historical EEG feature set corresponding to each rule can be calculated based on the membership function parameter set using a Gaussian membership function. The membership degree values ​​of all feature dimensions under the same rule are then multiplied together to obtain the initial activation degree of the historical EEG feature set for each rule. The initial activation degrees of all rules are then summed and normalized. The vector composed of all the initial activation degrees after normalization is used as the normalized activation intensity vector. The activation intensity vector is a numerical vector that quantifies the degree of matching between the historical EEG signal features of the target patient and each fuzzy rule. It can realize refined semantic parsing of the input signal and provide a structured intermediate representation for the subsequent decomposition and mapping of complex input states onto rule knowledge of different granularities.

[0042] In specific implementation, determining the consequent parameter matrix of the corresponding fuzzy inference model through the activation intensity vector can be achieved in the following way: the historical EEG feature set and constant terms can be concatenated into an augmented feature vector, and then extended to a high-dimensional feature representation by tensor multiplication with the activation intensity vector to obtain a high-dimensional feature matrix. Then, the least squares optimization problem containing L2 regularization terms can be solved by using the high-dimensional feature matrix and the epilepsy state category label vector in the historical EEG feature set. The model parameters that minimize the overall output error are calculated in one go using a closed-form solution as the consequent parameter matrix of the corresponding fuzzy inference model. The consequent parameter matrix is ​​a weight matrix that defines the linear relationship between the output and input features of each fuzzy rule. It can transform the fuzzy semantic information of the antecedent matching into accurate and optimizable numerical output, enabling the fuzzy system to accurately fit complex input-output mapping relationships in an interpretable way.

[0043] In specific implementation, the student soft label for the knowledge transfer channel can be obtained by performing fuzzy inference and knowledge softening transformation based on the consequent parameter matrix. This can be achieved by performing a linear weighted summation operation on the calculated activation intensity vector and the consequent parameter matrix. Specifically, the activation intensity of each rule is multiplied by the linear function value of the consequent part of the rule with respect to the input augmented feature. The results of all rules are then summed to obtain the original output value of the fuzzy inference model. The original output value is then input into a Softmax function with an adjustable temperature coefficient (e.g., 3). Through exponential operation and normalization, the original linear output is mapped to a smooth soft probability distribution with small differences in probability among categories. This soft probability distribution is then used as the student soft label for the knowledge transfer channel to complete the complete derivation from the original signal to the transferable knowledge representation.

[0044] It should be noted that in this application, student soft labels are the receiving end representations of knowledge transfer aligned with the probability distribution of teacher soft labels. They can serve as carriers of knowledge transfer, carrying the knowledge of multi-scale neural network models in a gentle and rich form of inter-class relational information, effectively promoting the efficient and stable transfer of deep feature representations of multi-scale neural network models to the interpretable rule system of fuzzy reasoning models.

[0045] In step 104, the various fuzzy inference models are collaboratively trained using teacher soft labels and student soft labels from all knowledge transfer channels to obtain a multi-granularity fuzzy classifier.

[0046] In some embodiments, reference Figure 3 The figure is an exemplary flowchart of determining a fuzzy classifier according to some embodiments of this application. In this application, the multi-granularity fuzzy classifier is obtained by co-training each fuzzy inference model through teacher soft labels and student soft labels in all knowledge transfer channels, which can be achieved by the following steps: In step 1041, the decoupling distillation loss component for each knowledge transfer channel is determined by calculating the relative entropy between the teacher's soft tag and the student's soft tag in each knowledge transfer channel. In step 1042, the global supervision loss component is determined based on the cross-entropy between all fuzzy inference models and the true epileptic state labels; In step 1043, the consequent parameter matrix of all fuzzy inference models is iteratively solved based on all decoupled distillation loss components and the global supervision loss components, and the consequent parameter matrix of all fuzzy inference models is updated synchronously to obtain multiple fuzzy inference models after co-training. In step 1044, a multi-granularity fuzzy classifier is determined based on all the co-trained fuzzy inference models.

[0047] In specific implementation, determining the decoupling distillation loss component for each knowledge transfer channel by calculating the relative entropy between teacher and student soft labels in each knowledge transfer channel can be achieved in the following way: First, for each knowledge transfer channel, the relative entropy calculation formula in information theory is applied to measure the difference between the probability distributions represented by teacher and student soft labels in the knowledge transfer channel. That is, for each category, the probability value of the teacher soft label in that category is multiplied by the logarithm of the teacher-to-student probability ratio, and the calculation results for all categories are summed. The numerical index obtained by the summation (i.e., relative entropy) is used as the decoupling distillation loss component of the knowledge transfer channel. The decoupling distillation loss component of each knowledge transfer channel can be obtained through the above steps. The decoupling distillation loss component is a channel-specific supervision signal that quantifies the difference in the output distribution of the multi-scale neural network model and the fuzzy inference model within the knowledge transfer channel. It can realize the accurate and targeted transfer of multi-scale deep features to corresponding granularity fuzzy rules, avoiding confusion and interference between knowledge at different levels of abstraction during the transfer process.

[0048] In specific implementation, the global supervision loss component can be determined based on the cross-entropy between all fuzzy inference models and the actual epilepsy state labels in the following way: The prediction outputs of all fuzzy inference models on the historical EEG feature set can be aggregated to form a comprehensive prediction result set. Then, the set of actual epilepsy state labels corresponding to the historical EEG signals can be obtained. The difference between the probability distribution predicted by the model and the actual label distribution can be calculated using the multi-class cross-entropy formula. Specifically, for each signal segment in the historical EEG signal, the logarithm of the fuzzy inference model prediction probability corresponding to its actual epilepsy state label is taken and the negative value is calculated to obtain a result. The average cross-entropy value obtained by averaging the calculation results of all signal segments is used as the global supervision loss component. The global supervision loss component is a unified constraint signal that guides all fuzzy inference models to jointly approximate the actual data distribution. It ensures that the final integrated classification system can firmly fit the actual epilepsy EEG data distribution, providing a fundamental guarantee for the high-precision performance of the model.

[0049] In specific implementation, based on all decoupled distillation loss components and the global supervision loss component, iterative solutions are performed, and the consequent parameter matrices of all fuzzy inference models are updated synchronously. The resulting co-trained fuzzy inference models can be implemented as follows: First, a distillation weight coefficient between 0 and 1 (e.g., 0.7) can be set to balance the importance of knowledge transfer and fitting to real data. Second, the summation of all decoupled distillation loss components is multiplied by this distillation weight coefficient, and the global supervision loss component is multiplied by the supervision weight coefficient that complements the distillation weight coefficient. The two products are then added together to construct a unified... A joint optimization objective function is first determined; then, an adaptive moment estimation optimization algorithm is used to adaptively adjust the learning rate based on the historical gradient information according to the joint optimization objective function. That is, in each iteration, the gradient of the joint objective function with respect to the consequent parameter matrices of all fuzzy inference models is calculated using automatic differentiation technology, and the consequent parameter matrices of all fuzzy inference models are updated synchronously according to the update direction and step size determined by the optimization algorithm. At the same time, a convergence criterion based on the change of function value is established, that is, when the decrease of the joint objective function in continuous iterations is less than a preset threshold (e.g., 0.001), the training is terminated, resulting in multiple fuzzy inference models after co-training.

[0050] It should be noted that in this application, the fuzzy classifier is a final decision system composed of multiple fuzzy inference models that have been co-trained and have different rule granularities. Rule granularity refers to the number of fuzzy rules in the fuzzy inference model, which controls the fineness and complexity of the antecedent part of the fuzzy inference model in partitioning the input feature space. A smaller number of rules results in a coarse antecedent partition, which is good at summarizing global trends and is suitable for capturing global trend patterns of epileptic seizures. A larger number of rules results in a finer antecedent partition, which is suitable for characterizing local details of epileptic seizure precursors or atypical manifestations. The range of values ​​for rule granularity in this application is as follows: Let R ∈ {3, 5, 7, 9, 11}, corresponding to five granularity levels from coarse to fine. The theoretical basis for collaborative training is as follows: a multi-scale neural network model is used as the teacher model, where convolutional branches of different scales extract features from receptive fields of different times. This knowledge at different levels of abstraction should be inherited by student models of different granularities, i.e., fuzzy inference models. Therefore, an independent distillation channel is established for each student model, allowing it to receive soft-label knowledge from the corresponding scale branch. In practice, all student models are updated synchronously under the same joint optimization objective, which includes the distillation of each channel. The loss mechanism inherits the multi-scale discriminative ability of the teacher model and also includes global supervision loss to ensure that all models jointly approximate the data distribution of the real epileptic state. Through iterative optimization, the consequent parameters of all student models are updated simultaneously. Finally, all student models with different rule granularities after co-training are integrated into a multi-granularity fuzzy classifier. Parallel reasoning is performed on the EEG signals to be tested, and different voting weights are assigned to each student model based on its performance on the validation set for decision fusion, thereby outputting the final epileptic seizure state determination result. Therefore, multiple fuzzy reasoning models with different rule granularities are co-trained through a decoupled knowledge distillation strategy, each receiving soft label knowledge from the corresponding scale branch of the multi-scale neural network model, thereby accurately transforming the deep feature vectors of different temporal receptive fields into fuzzy rules at different levels of abstraction. This design enables the final multi-granularity fuzzy classifier to not only achieve a classification accuracy close to that of deep learning models in epileptic EEG monitoring, but also to output diagnostic rules in the form of "if...then..." that are easy for clinicians to understand, providing a traceable logical basis for the determination of epileptic seizure state, effectively balancing the high performance of automated detection and the high interpretability of clinical decision-making.

[0051] Furthermore, it should be noted that the proposed solution was validated on a publicly available epilepsy EEG dataset: EEG recordings from 23 epilepsy patients in the Children's Hospital Boston - Massachusetts Institute of Technology (CHB-MIT) scalp EEG database were used as test data, and evaluation was conducted using a leave-one-out cross-validation scheme. Experimental results show that the fuzzy classifier proposed in this application achieved an average classification accuracy of 94.7%, an average sensitivity of 92.3%, and an average F1 score of 93.1% in the epilepsy seizure detection task. In comparison, the traditional TSK fuzzy classifier achieved an average classification accuracy of 86.2% on the same dataset, the traditional support vector machine classifier achieved 88.5%, and the single-scale knowledge distillation fuzzy classifier achieved 90.3%. The experiments also validated the effectiveness of the multi-granularity ensemble strategy: compared to using only a single-granularity fuzzy inference model, multi-granularity ensemble improved the classification accuracy from 91.8% to 94.7%, verifying the effectiveness of the multi-granularity decision fusion mechanism in improving classification performance. In terms of interpretability, the fuzzy classifier of this application can output clear IF-THEN rules. For example, in the coarse-grained model, the rule "IF high energy proportion of δ band AND low energy proportion of β band AND low sample entropy THEN epileptic seizure period" can be extracted, providing clinicians with intuitive and traceable diagnostic basis.

[0052] In step 105, the feature set of the target patient's EEG signal is input into the fuzzy classifier for inference and prediction to obtain the state determination label of the target patient's epileptic seizure.

[0053] In some embodiments, inputting the feature set of the target patient's EEG signal to the fuzzy classifier for inference and prediction to obtain the state label of the target patient's epileptic seizure can be achieved by the following steps: The target patient's electroencephalogram (EEG) signal is acquired, and then features are extracted to obtain the feature set of the target patient's EEG signal. The feature set is input into the fuzzy classifier for fuzzy inference to obtain preliminary judgment vectors for multiple epileptic states; All preliminary judgment vectors are weighted and fused to obtain a comprehensive decision vector for the target patient's epileptic state; The target patient's epileptic seizure status label is determined based on the comprehensive decision vector.

[0054] In practice, acquiring the target patient's EEG signal and extracting features to obtain the feature set of the target patient's EEG signal can be achieved in the following way: First, multi-channel scalp EEG signal acquisition can be performed on the target patient using clinical standard EEG acquisition equipment according to the international 10-20 system electrode placement specifications to obtain raw EEG time-series data. Then, the voltage time series is pre-processed using signal preprocessing techniques. Specifically, bandpass filtering is used to screen the frequency components of the EEG time-series data, retaining frequency bands closely related to epileptic activity (e.g., 0.5-70 Hz), filtering out high-frequency noise and baseline drift. Blind source separation technology is then used to remove artifacts from the filtered EEG time-series data to weaken or remove interference components introduced by eye movements, electromyography, and electrocardiography, resulting in a pre-processed continuous signal. Finally, sliding time window technology is used to segment the continuous signal to obtain multiple fixed... The system takes signal segment samples of varying durations. For each signal segment sample, amplitude normalization is performed, and time-domain, frequency-domain, and nonlinear features are extracted. Time-domain features include amplitude, mean, variance, and peak factor. Frequency-domain features include the energy proportions of the delta, theta, alpha, beta, and gamma frequency bands. Nonlinear features include sample entropy and approximate entropy. All extracted features are concatenated into a fixed-dimensional feature vector. The feature vector sequence, composed of the feature vectors from all signal segment samples arranged in chronological order and labeled with time sequence, is then used as the feature set of the target patient's EEG signal. This feature set refers to the set of EEG feature vectors collected from the target patient under real-time monitoring. It can serve as the direct input to the trained classification model, triggering the model's multi-granularity parallel inference process to generate real-time predictions of epileptic seizure states.

[0055] In specific implementation, the feature set is input into the fuzzy classifier for fuzzy inference to obtain preliminary judgment vectors for multiple epileptic states. This can be achieved in the following way: The feature set of the EEG signal to be tested is synchronously fed into each fuzzy inference model in the fuzzy classifier. Within each fuzzy inference model, based on the preset rule granularity, the normalized activation intensity of the feature set of the EEG signal to be tested for each fuzzy rule is calculated by querying the pre-stored fuzzy rule antecedent parameters (i.e., the center and width of the Gaussian membership function). The activation intensity is then linearly weighted and summed with the pre-stored consequent parameter matrix to obtain the inference output value of the fuzzy inference model corresponding to each epileptic state category. Then, a softening function with a temperature coefficient, consistent with the training phase, is applied to all inference output values ​​to convert them into probability vectors with an element-wise sum of 1 as the preliminary judgment vectors of the epileptic states output by the fuzzy inference model. Thus, preliminary judgment vectors for multiple epileptic states are obtained. The preliminary judgment vectors represent the probability distribution of the EEG signal to be tested belonging to various epileptic states. They can provide diverse preliminary classification perspectives from different levels of abstraction and constitute diversified information primitives for subsequent integrated decision-making.

[0056] In specific implementation, the weighted fusion of all preliminary judgment vectors to obtain the comprehensive decision vector for the target patient's epileptic state can be achieved in the following way: First, the dynamic performance weight coefficients corresponding to each fuzzy inference model, which are pre-calculated and stored, can be retrieved from the model performance evaluation module. These dynamic performance weight coefficients are usually calculated based on the classification accuracy or F1 score of each fuzzy inference model on an independent validation dataset. Then, each dimension element of each preliminary judgment vector is multiplied by its corresponding dynamic performance weight coefficient and weighted. The elements of the same dimension of all weighted preliminary judgment vectors are summed to generate a new vector with the same dimension. The new vector is then normalized to ensure that the sum of all elements is 1. The normalized vector is used as the comprehensive decision vector for the target patient's epileptic state. The comprehensive decision vector is a unified probability distribution vector that integrates information from all multi-granularity models. It can adaptively aggregate the collective wisdom of multi-granularity models, significantly improving the robustness, stability, and overall classification accuracy of the final decision.

[0057] In specific implementation, the determination of the epileptic seizure state label of the target patient based on the comprehensive decision vector can be achieved in the following way: a maximum value index search operation can be performed on the comprehensive decision vector, that is, all probability values ​​in the vector are traversed, the index number corresponding to the element with the largest value is located, and the index number is mapped to a human-readable and specific epileptic seizure state category description through a preset category mapping table, such as: seizure period, interictal period, or pre-seizure period, etc., and then the epileptic seizure state category description is used as the epileptic seizure state label of the target patient.

[0058] It should be noted that in this application, the state determination label is the final epileptic seizure state category shown by the target patient's EEG signal, which can provide clinicians with a clear, reliable and traceable single conclusion, greatly enhancing the interpretability and direct clinical usability of the monitoring results.

[0059] In another aspect, in some embodiments, this application provides a cortical malformation epilepsy EEG signal monitoring system, referencing... Figure 4 The figure is a schematic diagram of the structure of a cortical malformation epilepsy EEG signal monitoring system 400 according to some embodiments of this application. The cortical malformation epilepsy EEG signal monitoring system 400 includes: a channel matching module 401, a transfer training module 402, and a monitoring module 403, which are described below: Channel matching module 401, in this application, is mainly used to pre-determine multiple knowledge transfer channels that correspond one-to-one with scale parameters and rule granularity based on a preset set of scale parameters and a set of rule granularity. The transfer training module 402 in this application is mainly used to input the historical EEG feature set of the target patient into the multi-scale neural network model for forward propagation and feature mapping, extract the deep feature vectors of the receptive fields at different times, and then determine the teacher soft label of each scale parameter corresponding to the knowledge transfer channel based on all the deep feature vectors. It should be noted that the transfer training module 402 in this application is also used to calculate the activation intensity of the historical EEG feature set for each fuzzy rule based on the fuzzy inference model corresponding to the rule granularity in each knowledge transfer channel, and then determine the student soft label corresponding to each knowledge transfer channel based on all the activation intensities. Additionally, it should be noted that the transfer training module 402 in this application is also used to collaboratively train each fuzzy inference model through teacher soft labels and student soft labels in all knowledge transfer channels to obtain a multi-granularity fuzzy classifier. The monitoring module 403 in this application is mainly used to input the feature set of the EEG signal to be tested of the target patient into the fuzzy classifier for inference and prediction, so as to obtain the state judgment label of the target patient's epileptic seizure.

[0060] Each module in the aforementioned cortical malformation epilepsy EEG signal monitoring system can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of the computer device in software form, so that the processor can call and execute the corresponding operations of each module.

[0061] In another embodiment, this application provides a computer device, which may be a server, and its internal structure diagram may be as follows. Figure 5 As shown, the computer device includes a processor, memory, and a network interface connected via a system bus. The processor provides computational and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores the operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The database stores data related to a method for monitoring electroencephalogram (EEG) signals in cortical malformation epilepsy. The network interface communicates with external terminals via a network connection. When executed by the processor, the computer program implements a method for monitoring EEG signals in cortical malformation epilepsy.

[0062] Those skilled in the art will understand that Figure 5 The structure shown is merely a block diagram of a portion of the structure related to the present application and does not constitute a limitation on the computer device to which the present application is applied. Specific computer devices may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.

[0063] In one embodiment, a computer device is also provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described embodiment of the method for monitoring EEG signals in cortical dysplasia epilepsy.

[0064] In one embodiment, a computer-readable storage medium is provided storing a computer program that, when executed by a processor, implements the steps in the above-described embodiment of the cortical malformation epilepsy EEG signal monitoring method.

[0065] In one embodiment, a computer program product or computer program is provided, comprising computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the steps described in the embodiment of the cortical malformation epilepsy EEG signal monitoring method.

[0066] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the methods described above. Any references to memory, storage, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical storage, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.

[0067] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0068] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are relatively specific and detailed, they should not be construed as limiting the scope of the invention patent. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this patent application should be determined by the appended claims.

Claims

1. A method for monitoring electroencephalogram (EEG) signals in epilepsy caused by cortical malformations, characterized in that, The method comprises the following steps: determining a plurality of knowledge transfer channels corresponding one-to-one between a plurality of scale parameters and rule granularities according to a preset scale parameter set and rule granularity set; inputting a historical electroencephalogram feature set of a target patient into a multi-scale neural network model for forward propagation and feature mapping, extracting deep feature vectors of different time receptive fields, and determining teacher soft labels of knowledge transfer channels corresponding to each scale parameter based on all deep feature vectors; calculating activation intensities of each fuzzy rule for the historical electroencephalogram feature set based on fuzzy reasoning models corresponding to rule granularities in each knowledge transfer channel, and determining student soft labels of each knowledge transfer channel according to all activation intensities; co-training each fuzzy reasoning model through the teacher soft labels and the student soft labels in all knowledge transfer channels to obtain a multi-granularity fuzzy classifier; inputting a feature set of a target patient's electroencephalogram signal to be tested into the fuzzy classifier for reasoning and prediction to obtain a status judgment label of the target patient's epileptic seizure; The multi-scale neural network model is a parallel model set for extracting deep features of different time receptive fields and is composed of a plurality of one-dimensional convolutional neural networks; the fuzzy reasoning model is an interpretable classifier using a Takagi-Sugeno fuzzy model architecture and is composed of an antecedent part and a consequent part; and the fuzzy classifier is a final decision system composed of a plurality of fuzzy reasoning models with different rule granularities and having been co-trained.

2. The electroencephalogram signal monitoring method for cortical dysplasia epilepsy according to claim 1, wherein, The method of determining a plurality of knowledge transfer channels corresponding one-to-one between a plurality of scale parameters and rule granularities according to a preset scale parameter set and rule granularity set specifically comprises: presetting a scale parameter set for controlling the receptive field range of the multi-scale neural network model in the time dimension; presetting a rule granularity set for controlling the division precision and complexity of the antecedent part of the fuzzy reasoning model; pairing elements in the scale parameter set with elements in the rule granularity set to obtain a plurality of knowledge transfer channels corresponding one-to-one between a plurality of scale parameters and rule granularities.

3. The electroencephalogram signal monitoring method for cortical dysplasia epilepsy according to claim 1, wherein, The method of inputting a historical electroencephalogram feature set of a target patient into a multi-scale neural network model for forward propagation and feature mapping to extract deep feature vectors of different time receptive fields specifically comprises: obtaining a historical electroencephalogram signal of a target patient and extracting features of the historical electroencephalogram signal to obtain a historical electroencephalogram feature set; constructing a multi-scale neural network model according to a preset scale parameter set; synchronously inputting the historical electroencephalogram feature set into all parallel branches of the multi-scale neural network model for hierarchical forward propagation to obtain abstract feature maps of each branch; performing high-dimensional nonlinear mapping and feature compression on the abstract feature maps of each branch to obtain deep feature vectors of different time receptive fields.

4. The electroencephalogram signal monitoring method for cortical dysplasia epilepsy according to claim 1, wherein, The method of determining teacher soft labels of knowledge transfer channels corresponding to each scale parameter based on all deep feature vectors specifically comprises: determining a logic output vector of each scale parameter based on all deep feature vectors; performing softening processing on each logic output vector through a softening function with an adjustable temperature coefficient to generate a soft probability distribution corresponding to each logic output vector; Teacher soft labels for each scale parameter corresponding to the knowledge transfer channel are determined based on the soft probability distribution of all logical output vectors.

5. The electroencephalogram signal monitoring method for cortical dysplasia epilepsy according to claim 1, wherein, Based on the fuzzy inference model corresponding to the rule granularity in each knowledge transfer channel, the activation intensity of the historical EEG feature set for each fuzzy rule is calculated. Then, based on all the activation intensities, the student soft labels corresponding to each knowledge transfer channel are determined, specifically including: For each knowledge transfer channel, the membership function parameter set of the fuzzy rule antecedent part in the corresponding fuzzy inference model is determined according to the rule granularity of the knowledge transfer channel. Based on the membership function parameter set, the activation intensity of the historical EEG feature set for each fuzzy rule is calculated to obtain a normalized activation intensity vector; The consequent parameter matrix of the corresponding fuzzy inference model is determined by the activation intensity vector; Based on the consequent parameter matrix, fuzzy reasoning and knowledge softening transformation are performed to obtain student soft labels for knowledge transfer channels, and then student soft labels for each knowledge transfer channel are obtained.

6. The electroencephalogram signal monitoring method for cortical dysplasia epilepsy according to claim 1, wherein, By collaboratively training various fuzzy inference models using teacher and student soft labels across all knowledge transfer channels, a multi-granularity fuzzy classifier is obtained, specifically including: The decoupling distillation loss component for each knowledge transfer channel is determined by calculating the relative entropy between teacher soft tags and student soft tags in each knowledge transfer channel. The global supervision loss component is determined based on the cross-entropy between all fuzzy inference models and the actual epileptic state labels; Based on all the decoupled distillation loss components and the global supervision loss components, the consequent parameter matrix of all fuzzy inference models is iteratively solved and updated synchronously to obtain multiple fuzzy inference models after collaborative training. A multi-granularity fuzzy classifier is determined based on all co-trained fuzzy inference models.

7. The electroencephalogram signal monitoring method for cortical dysplasia epilepsy according to claim 1, wherein, The feature set of the target patient's EEG signal is input into the fuzzy classifier for inference and prediction, and the resulting state label for the target patient's epileptic seizure specifically includes: The target patient's electroencephalogram (EEG) signal is acquired, and then features are extracted to obtain the feature set of the target patient's EEG signal. The feature set is input into the fuzzy classifier for fuzzy inference to obtain preliminary judgment vectors for multiple epileptic states; All preliminary judgment vectors are weighted and fused to obtain a comprehensive decision vector for the target patient's epileptic state; The target patient's epileptic seizure status label is determined based on the comprehensive decision vector.

8. A system for monitoring electroencephalogram (EEG) signals in cortical malformation epilepsy, characterized in that, include: The channel matching module is used to pre-determine multiple knowledge transfer channels that correspond one-to-one with scale parameters and rule granularities based on a preset set of scale parameters and a set of rule granularities. The transfer training module is used to input the historical EEG feature set of the target patient into a multi-scale neural network model for forward propagation and feature mapping, extract the deep feature vectors of receptive fields at different times, and then determine the teacher soft labels of the knowledge transfer channels corresponding to each scale parameter based on all the deep feature vectors. The transfer training module is used to calculate the activation intensity of the historical EEG feature set for each fuzzy rule based on the fuzzy inference model corresponding to the rule granularity in each knowledge transfer channel, and then determine the student soft label corresponding to each knowledge transfer channel based on all the activation intensities. The transfer training module is used to collaboratively train each fuzzy inference model through teacher soft labels and student soft labels in all knowledge transfer channels to obtain a multi-granularity fuzzy classifier. The monitoring module is used to input the feature set of the target patient's EEG signal into the fuzzy classifier for inference and prediction, and obtain the state judgment label of the target patient's epileptic seizure. 9.A computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the computer device is configured to perform the method according to any one of claims 1-8 when the computer program is executed by the processor. When the processor executes the computer program, it implements the steps of the method for monitoring EEG signals in cortical malformation epilepsy according to any one of claims 1 to 7.

10. A computer-readable storage medium storing a computer program, the computer program comprising instructions that, when executed by a computer, cause the computer to perform the method of any one of claims 1 to 9. When the computer program is executed by the processor, it implements the steps of the electroencephalogram (EEG) signal monitoring method for cortical malformation epilepsy as described in any one of claims 1 to 7.