Automatic annotation method of electroencephalogram signal artifact based on independent component analysis

By using an independent component analysis-based approach combined with multi-dimensional feature extraction and a deep learning model, EEG signal artifacts are automatically labeled, solving the problems of time-consuming, labor-intensive, and false positives/false negatives in traditional methods. This achieves efficient and accurate artifact removal and preservation of neural activity.

CN123178773APending Publication Date: 2026-11-27ELECTRIC POWER RES INST OF GUANGXI POWER GRID CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Traditional methods for processing EEG signal artifacts rely on expert manual identification or simple threshold filtering, which are time-consuming, labor-intensive, and highly subjective. They are difficult to meet the needs of large-scale data or real-time processing, and cannot adapt to the diversity of artifact morphology and individual differences, leading to false positives or false negatives.

Method used

An independent component analysis-based approach is adopted to construct a multidimensional feature vector by extracting time-domain, frequency-domain, and spatial features. Then, a deep learning multimodal fusion classification network or gradient boosting tree model is used to automatically calculate the probability value of artifact categories, generate artifact label masks, and perform artifact component zeroing.

Benefits of technology

Automatic artifact labeling is achieved, significantly improving processing efficiency and objectivity consistency, reducing the risk of false detection and false negative detection, and ensuring thorough artifact removal and preservation of real neural activity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123178773A_ABST
    Figure CN123178773A_ABST
Patent Text Reader

Abstract

The application relates to the technical field of biomedical signal processing, and discloses an electroencephalogram signal artifact automatic labeling method based on independent component analysis, which comprises the following steps: comparing a probability value with a preset decision threshold value; when the probability value is greater than the decision threshold value, automatically labeling the independent component as a corresponding artifact type, and generating an artifact labeling mask; the application constructs a five-dimensional feature vector with higher discrimination by combining independent component analysis with multi-dimensional feature extraction; moreover, a pre-trained classification model is used to automatically calculate the probability value of each independent component belonging to an artifact category, and the probability value is compared with a decision threshold value to realize automatic labeling of the artifact, thereby significantly improving processing efficiency and objective consistency; since the extracted time domain, frequency domain and spatial features can comprehensively depict the typical morphology of electrooculogram artifacts and electromyogram artifacts, the classification model can self-adaptively learn the difference modes of different individuals and different artifact types, and the false detection and missed detection risks caused by artifact diversity are greatly reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of biomedical signal processing technology, and in particular to an automatic annotation method for EEG signal artifacts based on independent component analysis. Background Technology

[0002] Electroencephalography (EEG), as a bioelectrical signal reflecting the brain's neural electrical activity, boasts advantages such as millisecond-level temporal resolution and non-invasive acquisition, and is widely used in clinical neurological disease diagnosis, brain-computer interfaces, and cognitive neuroscience. However, raw EEG signals are highly susceptible to various artifacts, among which electrooculography (EOG) artifacts (generated by eye movements or blinking, with energy concentrated in the low-frequency range) and electromyography (EMG) artifacts (generated by facial or scalp muscle contractions, manifesting as high-frequency transient spikes) are the most common. The amplitudes of these artifacts are often several to tens of times higher than the background EEG activity, severely interfering with subsequent analysis of EEG signals, such as feature extraction, event-related potential (ERP) identification, and source localization. Therefore, effectively removing artifacts while preserving the true neural activity components is a crucial prerequisite for EEG signal processing.

[0003] However, traditional artifact removal methods often rely on expert manual identification or simple threshold filtering. Manual identification requires trained experts to examine each individual component one by one, which is not only time-consuming and labor-intensive, but also highly subjective and difficult to meet the needs of large-scale data or real-time processing. On the other hand, simple threshold filtering methods (such as setting a global threshold based on kurtosis or variance) often cannot adapt to the diversity of artifact morphology and inter-individual differences, which can easily lead to false positives or false negatives, resulting in incomplete artifact removal or mistakenly removing neural signals as artifacts.

[0004] To address the aforementioned technical deficiencies, a solution is proposed. Summary of the Invention

[0005] The purpose of this invention is to address the problem that traditional artifact processing methods often rely on expert manual identification or simple threshold filtering. Manual identification requires trained experts to examine each individual component one by one, which is not only time-consuming and labor-intensive, but also highly subjective and difficult to meet the needs of large-scale data or real-time processing. On the other hand, simple threshold filtering methods cannot adapt to the diversity of artifact morphology and individual differences, which can easily lead to false detection or false detection, resulting in incomplete artifact removal or the mistaken removal of neural signals as artifacts.

[0006] To achieve the above objectives, the present invention employs the following technical solution: an automatic annotation method for EEG signal artifacts based on independent component analysis, comprising the following steps: Step 1: Acquire the raw multi-channel EEG signals and perform signal preprocessing on the multi-channel EEG signals to obtain the preprocessed EEG signals; Step 2: Use the independent component analysis algorithm to decompose the preprocessed EEG signal into multiple independent components; Step 3: Extract the time-domain features, frequency-domain features, and spatial distribution features of each independent component, and construct a multi-dimensional feature vector based on the time-domain features, frequency-domain features, and spatial distribution features; Step 4: Input the multidimensional feature vector of each independent component into the pre-trained classification model, and calculate the probability value of each independent component belonging to the artifact category through the classification model; Step 5: Compare the probability value with the preset decision threshold. When the probability value is greater than the decision threshold, automatically label the independent component as the corresponding artifact type and generate an artifact labeling mask. Using the artifact labeling mask, perform artifact component zeroing on the independent component. Then, through the inverse transformation of independent component analysis, reconstruct all the processed independent components into a clean EEG signal after removing artifacts.

[0007] Furthermore, the signal preprocessing process is as follows: S11. Apply a bandpass filter of 0.5Hz to 45Hz to the original multichannel EEG signal to filter out low-frequency baseline drift and high-frequency noise interference. S12. Detect and mark bad leads whose signal quality does not meet a preset threshold, and repair the signal of the bad leads using the linear interpolation method of neighboring leads; S13. Perform detrending processing on the repaired EEG signal to eliminate linear drift in the signal and obtain the preprocessed EEG signal.

[0008] Furthermore, the process of constructing multidimensional feature vectors based on time-domain features, frequency-domain features, and spatial distribution features is as follows: S21. Extracting temporal features: Calculate the temporal kurtosis value of each independent component. The temporal kurtosis value is used to measure the impulsivity of the signal amplitude distribution to identify electromyographic artifacts with transient spike characteristics. The formula for calculating the kurtosis value K is: in, Let T be the amplitude of the independent component at the t-th sampling point, and T be the total number of sampling points. The mean of the amplitude, The standard deviation of the amplitude is calculated by substituting all the sampling points of the independent component into the formula, resulting in a scalar kurtosis value as a time-domain feature. S22. Extracting Frequency Domain Features: First, perform a Fast Fourier Transform on the time series of each independent component to obtain the power spectral density function P(f). Then, calculate the frequency domain features of electrooculography artifacts in the respective frequency bands. The first power ratio of the power within the frequency band to the total power across the entire frequency band, and the characteristic frequency band of electromyography artifacts. The second power ratio is the power within the frequency band to the total power across the entire frequency band; the formula for extracting the power ratio R is: ,in, As the sampling frequency, the upper and lower limits of the electrooculography (EOG) characteristic frequency band and the electromyography (EMG) characteristic frequency band are substituted into the formula to calculate two power ratios, which are used as frequency domain features. S23. Extracting spatial distribution features: Extract the spatial topographic map vector corresponding to the ith independent component from the ith column of the mixture matrix A obtained from independent component analysis. ∈RC (C is the number of channels), preset electrooculography artifact space template ∈RC and EMG artifact space template ∈RC, the spatial template is pre-set based on the positions of the prefrontal cortex electrode and the temporalis muscle electrode, and the Pearson correlation coefficient between the spatial topographic map of this independent component and the spatial template of the electrooculography artifact is calculated. And the correlation coefficient with the spatial template of electromyography artifacts. The calculation formula is: in, This represents the value of the topographic map vector in the c-th channel. The channel mean of the topographic map vector. This represents the value of the spatial template in the c-th channel. The channel mean of the spatial template; S24. Construct a multidimensional feature vector: Combine the extracted kurtosis, first power ratio, second power ratio, and spatial correlation coefficient. and The features are concatenated in a preset order to form a five-dimensional feature vector, which is then used as the multi-dimensional feature vector of the i-th independent component and input into the classification model.

[0009] Furthermore, the classification model is a deep learning-based multimodal fusion classification network. The multimodal fusion classification network includes a first branch network for processing the time-domain features and frequency-domain features, and a second branch network for processing the spatial correlation coefficient. The first branch network adopts a one-dimensional convolutional neural network, and the second branch network adopts a fully connected network. The outputs of the first branch network and the second branch network are concatenated at the feature layer and then input to a classifier consisting of two fully connected layers and one Softmax output layer. The final output is the probability value of belonging to the artifact category.

[0010] Furthermore, the training process for the classification model includes: S31. Construct a training dataset, which includes independent components of historical EEG signal samples with labeled artifact categories and their corresponding multidimensional feature vectors. S32. Construct an initial gradient boosting tree model, which uses a decision tree as the base learner and iteratively optimizes the negative gradient loss function to fit the residuals; in the m-th iteration, the objective function of the model is: Where N is the number of training samples. For the true label of the nth sample, These are the predictions from the first m-1 decision trees. For the m-th decision tree, pair of feature vectors The predicted output, where L() is the loss function. For the regularization term of the decision tree; S33. Train the gradient boosting tree model using the training dataset. In each iteration, calculate the residual between the current model's predicted value and the true label, and train a new decision tree to fit the residual. Sum the predictions of all decision trees in a weighted manner to obtain the final classification model, which is used to output the probability value of belonging to the artifact category.

[0011] Furthermore, the process of generating the artifact labeling mask is as follows: a binary mask vector of the same length as the number of independent components is generated, where each element in the binary mask vector corresponds to an independent component, wherein the element value corresponding to the independent component that is automatically labeled as an artifact is 1, and the element value corresponding to the independent component that is not labeled as an artifact is 0.

[0012] Furthermore, the original multichannel EEG signals include resting-state EEG signals and task-state EEG signals.

[0013] In summary, due to the adoption of the above technical solution, the beneficial effects of the present invention are: This automatic EEG signal artifact labeling method based on independent component analysis (ICA) constructs a more discriminative five-dimensional feature vector by combining ICA with multi-dimensional feature extraction (temporal kurtosis, frequency power ratio, and spatial Pearson correlation coefficient). Furthermore, it automatically calculates the probability of each independent component belonging to an artifact category using a pre-trained classification model (such as a multimodal fusion classification network or gradient boosting tree model) and compares it with a decision threshold to achieve automatic artifact labeling. This completely eliminates the reliance on expert manual identification, significantly improving processing efficiency and objectivity consistency. Simultaneously, because the extracted temporal, frequency, and spatial features can comprehensively characterize the typical morphologies of EEG and EMG artifacts, and the classification model can adaptively learn the difference patterns of different individuals and different artifact types, it has stronger generalization ability and robustness compared to fixed threshold filtering methods, greatly reducing the risk of false positives and false negatives caused by artifact diversity. Furthermore, by generating a binary mask vector to zero out the artifact components and reconstructing a clean EEG signal, not only is the removal of artifacts thorough, but the error of removing real neural activity is also effectively avoided, thus preserving the effective physiological information in the EEG signal. Attached Figure Description

[0014] Figure 1 A schematic diagram of the method flow of the present invention is shown. Detailed Implementation

[0015] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0016] Example: like Figure 1 As shown, the automatic annotation method for EEG signal artifacts based on independent component analysis first acquires the original multi-channel EEG signals and then performs signal preprocessing on the multi-channel EEG signals to obtain the preprocessed EEG signals. The original multi-channel EEG signals include resting-state EEG signals and task-state EEG signals.

[0017] The signal preprocessing process is as follows: S11. Apply a bandpass filter of 0.5Hz to 45Hz to the original multichannel EEG signal to filter out low-frequency baseline drift and high-frequency noise interference. S12. Detect and mark bad leads whose signal quality does not meet a preset threshold, and repair the signal of the bad leads using the linear interpolation method of neighboring leads; S13. Perform detrending processing on the repaired EEG signal to eliminate linear drift in the signal and obtain the preprocessed EEG signal.

[0018] Then, the preprocessed EEG signal was decomposed into multiple independent components using the independent component analysis algorithm. The temporal domain features, frequency domain features, and spatial distribution features of each independent component were extracted, and a multidimensional feature vector was constructed based on the temporal domain features, frequency domain features, and spatial distribution features. The process of constructing a multidimensional feature vector based on time-domain features, frequency-domain features, and spatial distribution features is as follows: S21. Extracting temporal features: Calculate the temporal kurtosis value of each independent component. The temporal kurtosis value is used to measure the impulsivity of the signal amplitude distribution to identify electromyographic artifacts with transient spike characteristics. The formula for calculating the kurtosis value K is: in, Let T be the amplitude of the independent component at the t-th sampling point, and T be the total number of sampling points. The mean of the amplitude, The standard deviation of the amplitude is calculated by substituting all the sampling points of the independent component into the formula, resulting in a scalar kurtosis value as a time-domain feature. S22. Extracting Frequency Domain Features: First, perform a Fast Fourier Transform on the time series of each independent component to obtain the power spectral density function P(f). Then, calculate the frequency domain features of electrooculography artifacts in the respective frequency bands. The first power ratio of the power within the frequency band to the total power across the entire frequency band, and the characteristic frequency band of electromyography artifacts. The second power ratio is the power within the frequency band to the total power across the entire frequency band; the formula for extracting the power ratio R is: ,in, As the sampling frequency, the upper and lower limits of the electrooculography (EOG) characteristic frequency band and the electromyography (EMG) characteristic frequency band are substituted into the formula to calculate two power ratios, which are used as frequency domain features. S23. Extracting spatial distribution features: Extract the spatial topographic map vector corresponding to the ith independent component from the ith column of the mixture matrix A obtained from independent component analysis. ∈RC (C is the number of channels), preset electrooculography artifact space template ∈RC and EMG artifact space template ∈RC, the spatial template is pre-set based on the positions of the prefrontal cortex electrode and the temporalis muscle electrode, and the Pearson correlation coefficient between the spatial topographic map of this independent component and the spatial template of the electrooculography artifact is calculated. And the correlation coefficient with the spatial template of electromyography artifacts. The calculation formula is: in, This represents the value of the topographic map vector in the c-th channel. The channel mean of the topographic map vector. This represents the value of the spatial template in the c-th channel. The channel mean of the spatial template; S24. Construct a multidimensional feature vector: Combine the extracted kurtosis, first power ratio, second power ratio, and spatial correlation coefficient. and The features are concatenated in a preset order to form a five-dimensional feature vector, which is then used as the multi-dimensional feature vector of the i-th independent component and input into the classification model.

[0019] Then, the multidimensional feature vector of each independent component is input into a pre-trained classification model, and the probability value of each independent component belonging to the artifact category is calculated by the classification model. The classification model is a deep learning-based multimodal fusion classification network. The multimodal fusion classification network includes a first branch network for processing the time-domain features and frequency-domain features, and a second branch network for processing the spatial correlation coefficient. The first branch network adopts a one-dimensional convolutional neural network, and the second branch network adopts a fully connected network. The output of the first branch network and the output of the second branch network are concatenated at the feature layer and then input into a classifier consisting of two fully connected layers and one Softmax output layer. The final output is the probability value of belonging to the artifact category.

[0020] The training process for a classification model includes: S31. Construct a training dataset, which includes independent components of historical EEG signal samples with labeled artifact categories and their corresponding multidimensional feature vectors. S32. Construct an initial gradient boosting tree model, which uses a decision tree as the base learner and iteratively optimizes the negative gradient loss function to fit the residuals; in the m-th iteration, the objective function of the model is: Where N is the number of training samples. For the true label of the nth sample, These are the predictions from the first m-1 decision trees. For the m-th decision tree, pair of feature vectors The predicted output, where L() is the loss function. For the regularization term of the decision tree; S33. Train the gradient boosting tree model using the training dataset. In each iteration, calculate the residual between the current model's predicted value and the true label, and train a new decision tree to fit the residual. Sum the predictions of all decision trees in a weighted manner to obtain the final classification model, which is used to output the probability value of belonging to the artifact category.

[0021] Finally, the probability value is compared with a preset decision threshold. When the probability value is greater than the decision threshold, the independent component is automatically labeled as the corresponding artifact type, and an artifact labeling mask is generated. Using the artifact labeling mask, the artifact components of the independent component are zeroed out. Through the inverse transformation of independent component analysis, all the processed independent components are reconstructed into clean EEG signals after artifact removal. The artifact types include at least electrooculography (EOG) artifacts and electromyography (EMG) artifacts. The process of generating the artifact labeling mask is as follows: a binary mask vector of the same length as the number of independent components is generated. Each element in the binary mask vector corresponds to an independent component. The element value corresponding to the independent component that is automatically labeled as an artifact is 1, and the element value corresponding to the independent component that is not labeled as an artifact is 0.

[0022] This invention constructs a more discriminative five-dimensional feature vector by combining independent component analysis with multi-dimensional feature extraction (temporal kurtosis, frequency power ratio, and spatial Pearson correlation coefficient). Furthermore, it automatically calculates the probability of each independent component belonging to an artifact category using a pre-trained classification model (such as a multimodal fusion classification network or gradient boosting tree model) and compares it with a decision threshold to achieve automatic artifact labeling. This completely eliminates reliance on expert manual identification, significantly improving processing efficiency and objectivity consistency. Simultaneously, because the extracted temporal, frequency, and spatial features can comprehensively characterize the typical morphologies of EEG and EMG artifacts, and the classification model can adaptively learn the difference patterns between different individuals and different artifact types, it has stronger generalization ability and robustness compared to fixed threshold filtering methods, greatly reducing the risk of false positives and false negatives caused by artifact diversity. In addition, by generating a binary mask vector to zero out artifact components and reconstructing a clean EEG signal, it not only ensures the thoroughness of artifact removal but also effectively avoids the erroneous removal of real neural activity, thus completely preserving the effective physiological information in the EEG signal.

[0023] The size of the interval and threshold is set to facilitate comparison. The size of the threshold depends on the amount of sample data and the number of bases set by those skilled in the art for each set of sample data; as long as it does not affect the ratio between the parameter and the quantized value.

[0024] The above formulas are all dimensionless calculations. The formulas are derived from software simulations based on a large amount of collected data to obtain the most recent real-world results. The preset parameters in the formulas are set by those skilled in the art according to the actual situation. 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. An automatic annotation method for EEG signal artifacts based on independent component analysis, characterized in that, Includes the following steps: Step 1: Acquire the raw multi-channel EEG signals and perform signal preprocessing on the multi-channel EEG signals to obtain the preprocessed EEG signals; Step 2: Use the independent component analysis algorithm to decompose the preprocessed EEG signal into multiple independent components; Step 3: Extract the time-domain features, frequency-domain features, and spatial distribution features of each independent component, and construct a multi-dimensional feature vector based on the time-domain features, frequency-domain features, and spatial distribution features; Step 4: Input the multidimensional feature vector of each independent component into the pre-trained classification model, and calculate the probability value of each independent component belonging to the artifact category through the classification model; Step 5: Compare the probability value with the preset decision threshold. When the probability value is greater than the decision threshold, automatically label the independent component as the corresponding artifact type and generate an artifact labeling mask. Using the artifact labeling mask, perform artifact component zeroing on the independent component. Then, through the inverse transformation of independent component analysis, reconstruct all the processed independent components into a clean EEG signal after removing artifacts.

2. The method for automatic annotation of EEG signal artifacts based on independent component analysis according to claim 1, characterized in that, The signal preprocessing process is as follows: S11. Apply a bandpass filter of 0.5Hz to 45Hz to the original multichannel EEG signal to filter out low-frequency baseline drift and high-frequency noise interference. S12. Detect and mark bad leads whose signal quality does not meet a preset threshold, and repair the signal of the bad leads using the linear interpolation method of neighboring leads; S13. Perform detrending processing on the repaired EEG signal to eliminate linear drift in the signal and obtain the preprocessed EEG signal.

3. The method for automatic annotation of EEG signal artifacts based on independent component analysis according to claim 1, characterized in that, The process of constructing a multidimensional feature vector based on time-domain features, frequency-domain features, and spatial distribution features is as follows: S21. Extracting temporal features: The temporal kurtosis value of each independent component is calculated. This temporal kurtosis value measures the impulsivity of the signal amplitude distribution to identify electromyographic artifacts with transient spikes. The formula for calculating the kurtosis value K is: in, Let T be the amplitude of the independent component at the t-th sampling point, and T be the total number of sampling points. The mean of the amplitude, The standard deviation of the amplitude is calculated by substituting all the sampling points of the independent component into the formula, resulting in a scalar kurtosis value as a time-domain feature. S22. Extracting Frequency Domain Features: First, perform a Fast Fourier Transform on the time series of each independent component to obtain the power spectral density function P(f). Then, calculate the frequency domain features of electrooculography artifacts in the respective frequency bands. The first power ratio of the power within the frequency band to the total power across the entire frequency band, and the characteristic frequency band of electromyography artifacts. The second power ratio is the power within the frequency band to the total power across the entire frequency band; the formula for extracting the power ratio R is: ,in, As the sampling frequency, the upper and lower limits of the electrooculography (EOG) characteristic frequency band and the electromyography (EMG) characteristic frequency band are substituted into the formula to calculate two power ratios, which are used as frequency domain features. S23. Extracting spatial distribution features: Extract the spatial topographic map vector corresponding to the ith independent component from the ith column of the mixture matrix A obtained from independent component analysis. ∈RC (C is the number of channels), preset electrooculography artifact space template ∈RC and EMG artifact space template ∈RC, the spatial template is pre-set based on the positions of the prefrontal cortex electrode and the temporalis muscle electrode, and the Pearson correlation coefficient between the spatial topographic map of this independent component and the spatial template of the electrooculography artifact is calculated. And the correlation coefficient with the spatial template of electromyography artifacts. The calculation formula is: in, This represents the value of the topographic map vector in the c-th channel. The channel mean of the topographic map vector. This represents the value of the spatial template in the c-th channel. The channel mean of the spatial template; S24. Construct a multidimensional feature vector: Combine the extracted kurtosis, first power ratio, second power ratio, and spatial correlation coefficient. and The features are concatenated in a preset order to form a five-dimensional feature vector, which is then used as the multi-dimensional feature vector of the i-th independent component and input into the classification model.

4. The method for automatic annotation of EEG signal artifacts based on independent component analysis according to claim 3, characterized in that, The classification model is a deep learning-based multimodal fusion classification network. The multimodal fusion classification network includes a first branch network for processing the time-domain features and frequency-domain features, and a second branch network for processing the spatial correlation coefficient. The first branch network adopts a one-dimensional convolutional neural network, and the second branch network adopts a fully connected network. The outputs of the first branch network and the second branch network are concatenated at the feature layer and then input to a classifier consisting of two fully connected layers and one Softmax output layer. The final output is the probability value of belonging to the artifact category.

5. The method for automatic annotation of EEG signal artifacts based on independent component analysis according to claim 1, characterized in that, The training process for a classification model includes: S31. Construct a training dataset, which includes independent components of historical EEG signal samples with labeled artifact categories and their corresponding multidimensional feature vectors. S32. Construct an initial gradient boosting tree model, which uses a decision tree as the base learner and iteratively optimizes the negative gradient loss function to fit the residuals; in the m-th iteration, the objective function of the model is: Where N is the number of training samples. For the true label of the nth sample, These are the predictions from the first m-1 decision trees. For the m-th decision tree, pair of feature vectors The predicted output, where L() is the loss function. For the regularization term of the decision tree; S33. Train the gradient boosting tree model using the training dataset. In each iteration, calculate the residual between the current model's predicted value and the true label, and train a new decision tree to fit the residual. Sum the predictions of all decision trees in a weighted manner to obtain the final classification model, which is used to output the probability value of belonging to the artifact category.

6. The method for automatic annotation of EEG signal artifacts based on independent component analysis according to claim 1, characterized in that, The process of generating the artifact labeling mask is as follows: a binary mask vector of the same length as the number of independent components is generated. Each element in the binary mask vector corresponds to an independent component. The element value corresponding to the independent component that is automatically labeled as an artifact is 1, and the element value corresponding to the independent component that is not labeled as an artifact is 0.

7. The method for automatic annotation of EEG signal artifacts based on independent component analysis according to claim 1, characterized in that, The raw multichannel EEG signals include resting-state EEG signals and task-state EEG signals.