A depression feature extraction method and system based on adaptive Lasso

By using a combined method of adaptive Lasso and L2 regularized logistic regression in EEG signal analysis to extract and classify EEG signal features, the problem of insufficient diagnosis accuracy for depression is solved, and the recognition accuracy and model generalization ability are improved.

CN118520336BActive Publication Date: 2024-10-11FOSHAN UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410963845.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-18
Publication Date
2024-10-11
Estimated Expiration
2044-07-18

AI Technical Summary

Technical Problem

Existing EEG signal analysis methods have insufficient diagnostic accuracy in identifying depression, and their high-dimensional data processing capabilities are limited, resulting in information loss and reduced accuracy.

Method used

The Elastic Net sparse regression model and L2 regularized logistic regression classifier based on adaptive Lasso are used, combined with the adaptive learning rate and error rate weighting strategy, to perform multi-scale feature extraction and classification prediction of EEG signals, balancing the global perspective and local details to improve the model's processing power and generalization ability.

Benefits of technology

It improves the accuracy of depression identification and the classification accuracy of the model, solves the problems of information loss and accuracy reduction in high-dimensional data processing, and enhances the generalization ability of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118520336B_ABST
    Figure CN118520336B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and system for extracting depression features based on adaptive Lasso, the method comprising: obtaining the patient's EEG brain wave signal and performing data preprocessing to obtain the preprocessed EEG brain wave signal; based on the Elastic Net sparse regression model, introducing an adaptive Lasso method, performing multi-scale feature extraction and fusion processing on the preprocessed EEG brain wave signal, and obtaining an EEG brain wave signal feature fusion matrix; based on an L2 regularized logistic regression classifier, introducing an adaptive learning rate and error rate weighting strategy, classifying and predicting the EEG brain wave signal feature fusion matrix, and obtaining a depression recognition result. By using the present invention, by balancing the global perspective and local perspective details of the network model, the processing capability of the network model for high-dimensional data is improved, and the recognition accuracy of depression is improved. As a method and system for extracting depression features based on adaptive Lasso, the present invention can be widely used in the field of computer-aided medical technology.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of computer-aided medical treatment, and in particular to a method and system for extracting depression features based on an adaptive Lasso. Background Art

[0002] Electroencephalogram (EEG) is a physiological signal used to record the electrical activity of the brain. It captures the electrical activity of brain neurons by placing electrodes on the surface of the scalp. By combining deep learning, artificial intelligence and other technologies, EEG signals can be automatically analyzed and identified, and a variety of indicators and features can be integrated for early identification and accurate diagnosis of depression. Traditional statistical or frequency domain methods extract features from EEG signals, but only rely on a single feature extraction method, and have limited ability to extract complex and nonlinear features, resulting in insufficient diagnostic accuracy. Classification models used in existing EEG signal analysis methods, such as SVM and KNN, often lack effective regularization and parameter adjustment mechanisms, resulting in overfitting or underfitting problems in the model during training, and insufficient generalization ability. In addition, EEG data is usually high-dimensional. As the dimension increases, the data becomes sparse. Traditional machine learning methods such as PCA and Lasso regression are difficult to avoid information loss and reduced accuracy during the dimensionality reduction process, and have limited processing capabilities for high-dimensional data. Therefore, the current accuracy of depression recognition predicted by EEG signals is not high. Summary of the invention

[0003] In order to solve the above technical problems, the purpose of the present invention is to provide a method and system for extracting depression features based on adaptive Lasso, which balances the details of the global perspective and local perspective of the network model, thereby improving the network model's processing capability for high-dimensional data and improving the recognition accuracy of depression.

[0004] The first technical solution adopted by the present invention is: a method for extracting depression features based on adaptive Lasso, comprising the following steps:

[0005] Acquire the patient's EEG signal and perform data preprocessing to obtain a preprocessed EEG signal;

[0006] Based on the Elastic Net sparse regression model, the adaptive Lasso method is introduced to perform multi-scale feature extraction and fusion processing on the pre-processed EEG signals to obtain the EEG signal feature fusion matrix;

[0007] Based on the L2 regularized logistic regression classifier, an adaptive learning rate and error rate weighting strategy was introduced to classify and predict the EEG signal feature fusion matrix to obtain the depression recognition result.

[0008] Furthermore, the step of obtaining the patient's EEG signal and performing data preprocessing to obtain the preprocessed EEG signal specifically includes:

[0009] Obtain the patient's EEG signal;

[0010] Perform channel localization and re-reference processing on the patient's EEG signal to obtain the imported EEG signal;

[0011] The imported EEG brain electrical signal is filtered through high-pass and low-pass filters to obtain a filtered EEG brain electrical signal;

[0012] The filtered EEG signal is interpolated by a spherical spline interpolation algorithm to obtain an interpolated EEG signal;

[0013] Perform independent component analysis on the interpolated EEG signal to obtain independent components of the EEG signal;

[0014] The artifact components of the independent components of the EEG brain electrical signal are removed to obtain the preprocessed EEG brain electrical signal.

[0015] Furthermore, the step of introducing an adaptive Lasso method based on the Elastic Net sparse regression model to perform multi-scale feature extraction and fusion processing on the preprocessed EEG brain electrical signal to obtain an EEG brain electrical signal feature fusion matrix specifically includes:

[0016] Based on the Elastic Net sparse regression model, the adaptive Lasso method is introduced to build a hypernetwork;

[0017] Based on the cross-validation method, the parameter combination in the hypernetwork is optimized to obtain the optimized hypernetwork;

[0018] Based on the optimized hypernetwork, the global attribute index feature extraction process is performed on the preprocessed EEG signal to obtain the global attribute index feature of the EEG signal;

[0019] Based on the optimized hypernetwork, the local attribute index feature extraction process is performed on the preprocessed EEG signal to obtain the local attribute index feature of the EEG signal;

[0020] The global attribute index features of the EEG brain electrical signal and the local attribute index features of the EEG brain electrical signal are normalized and feature fused in turn to obtain the EEG brain electrical signal feature fusion matrix.

[0021] Furthermore, the step of introducing the adaptive Lasso method based on the Elastic Net sparse regression model to construct a hypernetwork specifically includes:

[0022] Determine the adaptive weight value by using the adaptive Lasso method;

[0023] Embed the adaptive weight value into the regularization term of the Elastic Net sparse regression model to build a hypernetwork;

[0024] The loss function of the hypernetwork is specifically as follows:

[0025] ;

[0026] In the above formula, represents the loss function of the hypernetwork, represents the original loss function, represents the parameter controlling the L1 regularization strength, represents the parameter controlling the L2 regularization strength, Indicates The square of the coefficient of the feature, represents the adaptive weight value, Indicates The coefficient of the feature, Indicates the number of parameters, Indicates Features.

[0027] Furthermore, the step of extracting the global attribute index feature of the preprocessed EEG signal based on the optimized hypernetwork to obtain the global attribute index feature of the EEG signal specifically includes:

[0028] Based on the optimized hypernetwork, define the nodes and hyperedges of the hypernetwork;

[0029] According to the mapping between the nodes of the hypernetwork and the hyperedges of the hypernetwork, the adjacency matrix of the optimized hypernetwork is constructed;

[0030] Initialize the adjacency matrix, optimize the structure of the optimized hypernetwork using the Floyd-Warshall algorithm, and obtain the high-order path length of the optimized hypernetwork;

[0031] defining the modularity quality function of the optimized hypernetwork;

[0032] According to the high-order path length of the optimized hypernetwork, the preprocessed EEG signal is input and combined with the modular quality function of the optimized hypernetwork to perform global attribute indicator feature extraction and obtain the global attribute indicator features of the EEG signal.

[0033] Furthermore, the step of extracting local attribute index features from the preprocessed EEG signal based on the optimized hypernetwork to obtain local attribute index features of the EEG signal specifically includes:

[0034] Based on the optimized hypernetwork, define the nodes and hyperedges of the hypernetwork;

[0035] According to the mapping between the nodes of the hypernetwork and the hyperedges of the hypernetwork, an extended adjacency matrix of the optimized hypernetwork is constructed;

[0036] According to the extended adjacency matrix, the high-order centrality of the optimized supernetwork and the betweenness centrality of the optimized supernetwork are obtained;

[0037] Based on the high-order centrality of the optimized hypernetwork and the betweenness centrality of the optimized hypernetwork, the local attribute index feature extraction processing is performed on the preprocessed EEG brain electrical signal to obtain the local attribute index feature of the EEG brain electrical signal.

[0038] Furthermore, the step of introducing an adaptive learning rate and error rate weighting strategy based on an L2 regularized logistic regression classifier to classify and predict the EEG signal feature fusion matrix to obtain a depression recognition result specifically includes:

[0039] Introduce penalty coefficients and construct several L2 regularized logistic regression classifiers;

[0040] Initializing and adaptively iteratively training the L2 regularized logistic regression classifier to obtain a number of trained L2 regularized logistic regression classifiers;

[0041] Get the error rates of several trained L2 regularized logistic regression classifiers;

[0042] Assigning weight values ​​to a number of trained L2 regularized logistic regression classifiers according to the error rate, thereby obtaining a number of L2 regularized logistic regression classifiers with error rate weight values;

[0043] Several L2 regularized logistic regression classifiers with error rate weight values ​​are combined to perform classification prediction on the EEG signal feature fusion matrix to obtain the depression recognition result.

[0044] Furthermore, the objective function of the L2 regularized logistic regression classifier is specifically as follows:

[0045] ;

[0046] In the above formula, represents the objective function of the L2 regularized logistic regression classifier, Represents the model pair The predicted probability of represents the actual label, represents the square of all weights of the penalized model, represents the number of training samples, Indicates samples, represents the regularization parameter.

[0047] The second technical solution adopted by the present invention is: a depression feature extraction system based on adaptive Lasso, comprising:

[0048] A preprocessing module is used to obtain the patient's EEG signal and perform data preprocessing to obtain a preprocessed EEG signal;

[0049] The feature extraction and fusion module is used to perform multi-scale feature extraction and fusion processing on the pre-processed EEG signals based on the Elastic Net sparse regression model and introduce the adaptive Lasso method to obtain the EEG signal feature fusion matrix;

[0050] The recognition and classification module is used to classify and predict the EEG signal feature fusion matrix based on the L2 regularized logistic regression classifier, introduce an adaptive learning rate and error rate weighting strategy, and obtain depression recognition results.

[0051] The beneficial effects of the method and system of the present invention are as follows: the present invention obtains the patient's EEG brain wave signal and performs data preprocessing, and further introduces an adaptive Lasso method based on the Elastic Net sparse regression model to perform multi-scale feature extraction and fusion processing on the preprocessed EEG brain wave signal, revealing the complex relationship and high-order dynamic characteristics in the network, quantifying the structure and functional characteristics of the brain network, achieving a balance between the global perspective and local details, and more comprehensively understanding the structure and characteristics of the network. Finally, based on the L2 regularized logistic regression classifier, an adaptive learning rate and error rate weighting strategy is introduced to classify and predict the EEG brain wave signal feature fusion matrix, thereby improving the model classification accuracy and generalization ability and other performance, and solving the problems of information loss and precision reduction in the process of high-dimensional data processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] Figure 1 It is a flowchart of the steps of a depression feature extraction method based on adaptive Lasso of the present invention;

[0053] Figure 2 It is a structural block diagram of a depression feature extraction system based on adaptive Lasso of the present invention;

[0054] Figure 3is a schematic diagram of a process for determining depression provided by a specific embodiment of the present invention;

[0055] Figure 4 It is a schematic diagram of the process of preprocessing EEG brain wave signal data provided by a specific embodiment of the present invention;

[0056] Figure 5 It is a schematic diagram of Adaboost ensemble learning based on L2 regularized logistic regression provided by a specific embodiment of the present invention;

[0057] Figure 6 It is a schematic diagram of model pre-training provided by a specific embodiment of the present invention. DETAILED DESCRIPTION

[0058] The present invention is further described in detail below in conjunction with the accompanying drawings and specific embodiments. The step numbers in the following embodiments are only provided for the convenience of explanation and description, and the order between the steps is not limited in any way. The execution order of each step in the embodiment can be adaptively adjusted according to the understanding of those skilled in the art.

[0059] Reference Figure 1 and Figure 3 The present invention provides a method for extracting depression features based on adaptive Lasso, the method comprising the following steps:

[0060] S1, obtaining the patient's EEG signal and performing data preprocessing to obtain the preprocessed EEG signal;

[0061] Specifically, the patient's EEG signal is acquired; the patient's EEG signal is subjected to channel localization and re-reference processing to obtain an imported EEG signal; the imported EEG signal is filtered through high-pass and low-pass filters to obtain a filtered EEG signal; the filtered EEG signal is interpolated and processed through a spherical spline interpolation algorithm to obtain an interpolated EEG signal; independent component analysis is performed on the interpolated EEG signal to obtain independent components of the EEG signal; and artifact component elimination is performed on the independent components of the EEG signal to obtain a preprocessed EEG signal.

[0062] In an embodiment of the present invention, obtaining the patient's EEG brain wave signal specifically includes obtaining a 128-conductance whole-brain EEG signal. The data set used in the embodiment of the present invention is collected based on the 128-channel HydroCelGeodesic Sensor Net (HCGSN) EEG acquisition system. The acquisition software is Net Station (version 4.5.4), and the acquisition equipment is set and operated according to the manufacturer's recommendations to ensure the stability and reliability of the system and its functions. During the acquisition process, the placement standard of the 128 electrodes on the scalp surface is formulated by the international standard lead 10-20 system by measuring external skull landmarks to locate the scalp electrodes. The sampling frequency is 250Hz, which is one of the standard EEG data sampling frequencies, sufficient to capture the dynamic changes of most brain electrical activities. All raw electrode signals are referenced to FCz to ensure the use of consistent reference electrodes to maintain data consistency and comparability. The electrode impedance is kept below 50kΩ. Low electrode impedance can ensure the quality and stability of the signal, thereby reducing the impact of noise and artifacts.

[0063] In the embodiment of the present invention, Figure 4 As shown in the figure, the EEG signal data preprocessing specifically includes using MATLAB software and EEGLAB toolbox to preprocess the recorded EEG signals, using the original positioning file of HydroCelGeodesic Sensor Net to locate the electrode position and check whether the imported data corresponds to each electrode position correctly; then, (high-low pass filtering) the EEG signal is filtered in the range of 1~40hz using the Hamming window sinc function finite impulse response filter, that is: first perform a 40Hz low-pass filter (retain signals with a frequency lower than 40Hz), and then perform a 1Hz high-pass filter (retain signals with a frequency higher than 1Hz); then, according to the kurtosis criterion (threshold of 5, normalized mode), use the "pop_rejchan" function to remove bad channels. In order to ensure that the number of channels for each subject is the same, the rejected channels are interpolated according to the spherical spline interpolation algorithm through the "eeg_interp" function. Then, independent component analysis (ICA) is used to extract independent components in the EEG signal, and the ADJUST plug-in is used to help identify and delete artifact components, such as eye movements. EEG bands with voltage amplitudes exceeding 150 μV were removed. Finally, re-referencing was performed using the reference electrode normalization technique (REST) ​​to reduce connection pattern distortion.

[0064] S2. Based on the Elastic Net sparse regression model, the adaptive Lasso method is introduced to perform multi-scale feature extraction and fusion processing on the pre-processed EEG signals to obtain the EEG signal feature fusion matrix;

[0065] S21. Based on the Elastic Net sparse regression model, the adaptive Lasso method is introduced to construct a hypernetwork;

[0066] Specifically, using a sparse linear regression model to construct a hypernetwork can help reduce the complexity of the model, improve the generalization ability of the model, and better understand the connection patterns between different regions in the brain network. The embodiment of the present invention uses the Elastic Net algorithm to model and fit the preprocessed data, and introduces an adaptive Lasso method to optimize network construction to estimate the connection weights between different brain regions in the brain network.

[0067] Elastic Net is a linear regression method that combines L1 (Lasso) and L2 (Ridge) regularization terms. It takes advantage of both the sparsity of L1 regularization and the stability of L2 regularization. It can be used to build brain network models and achieve parameter sparsification, thereby screening out truly relevant connections. The loss function of Elastic Net regression is as follows:

[0068] ;

[0069] In the above formula, is the overall loss function, is the original loss function, It controls the L1 regularization strength parameter and the sparsity of the model parameters. is the parameter that controls the strength of L2 regularization, and the sum of the squares of the control parameters is penalized. is the number of parameters.

[0070] Adaptive Lasso is an improved Lasso (Least Absolute Shrinkage and Selection Operator) method. By introducing different regularization weights for each coefficient, the penalty of the regularization term is increased when the coefficient is small. While maintaining a sparse solution, less penalty is given to important variables, thereby improving the stability of the model, prediction performance, and variable selection performance. The adaptive Lasso loss function is:

[0071] ;

[0072] in, Indicates The coefficient of the feature, For each parameter The weight is usually ,in is a preliminary estimate of the coefficients, which can be obtained by ordinary least squares or standard Lasso, is a pre-set parameter.

[0073] Adaptive weights can adjust the regularization penalty according to the importance of the feature, so that the penalty for important features is smaller and more likely to be retained, and the penalty for unimportant features is larger, prompting the model to discard less important features. Combining the two, we can make adaptive weights , applied to the L1 regularization term of the Elastic Net model, can better control the sparsity of the model and improve the model's prediction performance and adaptive feature capabilities.

[0074] In summary, firstly, the adaptive weight of each coefficient is calculated according to the characteristics of the processed data, that is, the inverse of the absolute value of the coefficient is calculated, and its expression is:

[0075] ;

[0076] in Indicates the first coefficients.

[0077] Then, the calculated adaptive weights are applied to the regularization term of the Elastic Net model to construct an adaptive Elastic Net model, whose loss function is:

[0078] ;

[0079] In the above formula, represents the loss function of the hypernetwork, represents the original loss function, represents the parameter controlling the L1 regularization strength, represents the parameter controlling the L2 regularization strength, Indicates The square of the coefficient of the feature, represents the adaptive weight value, Indicates The coefficient of the feature, Indicates the number of parameters, Indicates Features.

[0080] The objective function of the hypernetwork is:

[0081] ;

[0082] in, is the number of features, , are the L1 and L2 regularization parameters in the Elastic Net model, is the target vector, is the feature matrix, is the coefficient vector, is the adaptive weight.

[0083] S22, based on the cross-validation method, optimizing the parameter combination in the hypernetwork to obtain an optimized hypernetwork;

[0084] Specifically, the optimal parameter combination is systematically searched in the predefined parameter grid and the parameter combination that minimizes the cross-validation error is selected. The specific search process is as follows:

[0085] S221, parameter range definition;

[0086] By referring to relevant literature or practical experience with similar problems, the initial search scope is preliminarily determined ( =0.1, = 0.1) as the starting point of the search range and adjusted it according to the experimental results to ensure that the search range covers the possible parameter space.

[0087] S222, constructing a parameter network;

[0088] Will and The candidate values ​​of are combined into a parameter grid to form all possible parameter combinations. The value ranges from 0.1 to 10, with an increment of 0.1. The value ranges from 0.1 to 10, with an increment of 0.1. The nested loop iterates over all parameter combinations in the parameter grid. All candidate values ​​of the inner loop traverse All candidate values ​​of .

[0089] S223, cross validation;

[0090] For each parameter combination, cross validation is used to evaluate the performance of the model. In 5-fold cross validation, the entire dataset is randomly divided into 5 equal (or almost equal) folds. Each fold tries to keep the data distribution consistent, and one fold is selected as the validation set to test the model performance, and the remaining four folds are used as training sets to train the model. Each data subset will be used as a validation set once and as a training set four times in turn, ensuring that each data point has a chance to be used to validate the model once and to train the model four times.

[0091] S224, evaluate performance;

[0092] After each iteration, the F1 score indicator on the current validation set is calculated. After five iterations, the average value of the performance indicator is calculated, and the results of multiple iterations are combined to reduce the performance fluctuation of the model caused by data segmentation.

[0093] S225, Model selection and tuning;

[0094] Use the results of cross-validation to select and tune the model. Select the model configuration with the best average performance as the final model deployment.

[0095] S23, based on the optimized hypernetwork, performing global attribute index feature extraction processing on the preprocessed EEG brain electrical signal to obtain the global attribute index feature of the EEG brain electrical signal;

[0096] Specifically, after the network is constructed using the above method, feature extraction is performed on the hypernetwork. The hypernetwork allows nodes in the network to be interconnected through high-order connections. These hyperedges can connect more than two nodes, thereby capturing more complex relationships and interaction patterns. The embodiment of the present invention selects two global attribute and local attribute indicators to reveal the complex relationships and high-order dynamic characteristics in the network, quantify the structural and functional characteristics of the brain network, strike a balance between the global perspective and local details, and more comprehensively understand the structure and characteristics of the network.

[0097] S231, obtaining the high-order path length;

[0098] Traditional network indicators are calculated based on the connection relationship between nodes and edges when dealing with multi-node connections (i.e., edges). However, hyperedges do not conform to the traditional node-edge model. This network indicator calculates the shortest path from one node to another. In this process, hyperedges can connect multiple nodes at a time, expanding the concept of path length, thereby providing a more accurate network communication efficiency indicator that reflects the efficiency of information transmission in the hypernetwork.

[0099] The specific calculation process is as follows:

[0100] Define all nodes and hyperedges in the network, where nodes represent entities and hyperedges connect three or more nodes.

[0101] Construct the adjacency matrix of the hypernetwork, mapping each node and hyperedge to the rows and columns of the matrix, where the elements of the matrix Not only does it represent the node and The direct connection between them also includes the case where they are indirectly connected through hyperedges. and Directly connected by a hyperedge, It should also be marked as 1;

[0102] Modifying the Floyd-Warshall algorithm to adapt to the structural characteristics of hypernetworks: Initializing the distance matrix ,in Set to If there is no direct connection or hyperedge connection between nodes, the value is set to infinity. , through the intermediary node renew , its expression is as follows:

[0103] ;

[0104] Repeat until the shortest paths for all node pairs are found. If the hyperedge is directed, just fill in 1 in the corresponding position in the matrix. If the hyperedge is undirected, fill in 1 in both directions in the matrix to indicate that the connection relationship is bidirectional.

[0105] S232, super network modularization;

[0106] The modularization of a hypernetwork involves partitioning the network into multiple groups (or modules) so that the connections between nodes within a group (including connections through hyperedges) are as many as possible, while the connections between groups are as few as possible.

[0107] The specific calculation process is as follows:

[0108] Definition of nodes and hyperedges, construction of adjacency matrix;

[0109] The modular quality function is defined as follows:

[0110] ;

[0111] in It's a community The number of internal edges, including connections within hyperedges, It's a community The sum of the readings of all nodes in is the total number of all edges in the network, including the number of nodes connected by hyperedges.

[0112] Using a suitably adapted Louvain method to optimize a given modularity quality function, the degree of the nodes is calculated and the number of edges within the community When , the connection weights of the hyperedges are appropriately assigned to the relevant nodes and communities.

[0113] At the beginning, each node is a community of its own. Iteratively examine each node and move it to all possible adjacent communities, calculating the change in the modularity quality function after each move. If any move can increase the modularity quality, perform the move. Repeat this process until the modularity quality no longer increases.

[0114] S24, based on the optimized hypernetwork, extracting local attribute index features from the preprocessed EEG signal to obtain local attribute index features of the EEG signal;

[0115] S241, higher-order centrality;

[0116] Specifically, high-order node centrality takes into account the role of a node in the hyperedge structure, especially in the case of multi-node connections. This centrality measures the influence of a node in the hypernetwork, not only based on the number of nodes it directly connects to (degree centrality), but also the connections it establishes with multiple nodes through hyperedges.

[0117] The specific calculation process is as follows:

[0118] Define nodes and hyperedges;

[0119] An extended adjacency matrix is ​​constructed, in which the matrix elements include not only the traditional connections between two nodes, but also the connections between nodes through hyperedges.

[0120] Calculate high-order centrality: For each node , whose high-order centrality is calculated by connecting to the node The total number of nodes contained in all hyperedges is determined by The total number of nodes participating through direct and hyperedge connections is expressed as:

[0121] ;

[0122] in, Is with the node The set of directly connected nodes, Is a connection node and The hyperedges contain all the nodes.

[0123] Strategic location evaluation of hyperedges: For each hyperedge, its centrality can be determined by evaluating the strategic location of the connected nodes in the network, and its expression is:

[0124] ;

[0125] in It is a super edge The set of nodes contained in Is a node The degree centrality of .

[0126] S242, betweenness centrality;

[0127] Specifically, betweenness centrality is defined based on the degree to which a node is connected to other pairs of nodes in the network. It examines the shortest paths between all pairs of nodes in the network and counts the number of times each node appears on these shortest paths.

[0128] Calculate the shortest path for each pair of nodes and record the number of paths and the nodes the path passes through. on the path The number of occurrences is calculated using the following formula to calculate the betweenness centrality.

[0129] ;

[0130] in, is the set of nodes in the network, Is a node To Node The total number of shortest paths between Is a node To Node Passing through nodes The number of shortest paths.

[0131] The values ​​of betweenness centrality are standardized to facilitate comparison so that they range between 0 and 1. The standardized formula is:

[0132] ;

[0133] in is the number of nodes in the network.

[0134] S25. Normalize and perform feature fusion processing on the global attribute index features of the EEG brain electrical signal and the local attribute index features of the EEG brain electrical signal in turn to obtain an EEG brain electrical signal feature fusion matrix.

[0135] Specifically, different features usually provide information about different aspects of the data. By fusing multiple features, this information can be comprehensively utilized to improve the representation ability of the features and enhance the performance of the model. The embodiment of the present invention uses feature-level fusion to process multiple indicators from the EEG hypernetwork, specifically including:

[0136] S251, data preprocessing;

[0137] Normalize different types of network indicators, standardize all features using Z scores, fill or delete data points with missing values ​​to ensure data integrity, and calculate the mean of each indicator and standard deviation , and then normalized using the following formula:

[0138] ;

[0139] S252, feature fusion;

[0140] The feature vectors of the above selected indicators are horizontally spliced ​​and merged into a single feature matrix, and the dimensions of the feature vector generated by each indicator are recorded as , , , , then the dimension of the matrix is , and then apply a normalization operation to this fused matrix to ensure that all features are at the same scale and the data is aligned correctly.

[0141] S3. Based on the L2 regularized logistic regression classifier, an adaptive learning rate and error rate weighted strategy is introduced to perform classification and prediction on the EEG signal feature fusion matrix to obtain the depression recognition results.

[0142] Specifically, Figure 5 As shown in the figure, based on the fusion feature characteristics, the Adaboost ensemble learning model is constructed, and the L2 regularized logistic regression is used as the base classifier. Multiple logistic regression classifiers (5) are trained. In each iteration, the sample weights are adjusted to focus on the samples that were previously misclassified, so as to train the next classifier, and combine them into a more powerful classifier. The obtained fusion matrix is ​​input into the strong classifier for classification prediction.

[0143] S31, L2 regularized logistic regression;

[0144] Logistic regression is a statistical method widely used for classification problems, especially for binary classification problems. Logistic regression is a binary probability model that outputs a value between 0 and 1. By setting a threshold (usually 0.5), this probability value can be converted into a category output. If the probability of an instance x is greater than or equal to 0.5, it is classified as 1, otherwise it is classified as 0. It can not only provide fast classification decisions, but also give the weight of each feature on the prediction result through the regression coefficient, which makes the model very interpretable. In addition, the logistic regression function is a convex function that can be differentiated in any order and has good solution properties. For the embodiment of the present invention, when processing high-dimensional data, there is often multicollinearity between features, that is, multiple features are highly correlated. This high correlation may cause the parameter estimation of the logistic regression model to become unstable, thereby affecting the prediction performance and interpretability of the model. In order to solve this problem, L2 regularized logistic regression can be used.

[0145] L2 regularization controls the complexity of the model by adding a penalty term proportional to the sum of squared weights to the loss function of logistic regression. This penalty term is as follows:

[0146] ;

[0147] in is the regularization parameter, Represents the square of the L2 norm of the weight vector. The introduction of this penalty term makes the model tend to choose a smaller weight value, thereby reducing the complexity of the model, achieving a bias-variance trade-off, effectively processing high-dimensional data, making the model more robust, and avoiding overfitting of the training data.

[0148] Objective Function It consists of two parts: the cross entropy loss term and the L2 regularization term.

[0149] The expression of the cross entropy loss term is:

[0150] ;

[0151] The model is The predicted probability of is the actual label, each sample With the actual label For comparison, the model predictions were calculated The cross entropy loss between the model predictions and the actual labels is then averaged over all samples, which measures the difference between the model predictions and the true labels.

[0152] The expression of the L2 regularization term is:

[0153] ;

[0154] This part is the regularization term, which is used to penalize the size of model parameters and prevent overfitting. It is a model parameter The sum of the squares of , multiplied by the regularization parameter Half of , and divided by the number of training samples .in Used to control the influence of the regularization term.

[0155] The overall objective function is:

[0156] ;

[0157] in, Penalizing the square of all weights of the model helps the model generate a sparser weight vector, thereby excluding unimportant features and facilitating feature selection.

[0158] S32, Adaboost ensemble learning.

[0159] Specifically, Adaboost (adaptive boosting) is an ensemble learning method that builds a strong learner by combining multiple base learners (usually simple models), iteratively adjusts the weights of the training data, and focuses on samples that were predicted incorrectly by the previous model, thereby improving the prediction accuracy of these difficult-to-predict samples in subsequent iterations.

[0160] 1) Initialize data weights: At the beginning of training, first assign equal weights to each data point in the training set. For example, if there is samples, and the initial weight of each sample is .

[0161] 2) Iterative training of base classifiers: The Adaboost algorithm will perform multiple rounds of iterations, and each round will train a new base classifier. Each round of iteration includes the following steps: Training base classifiers: Use the current weight distribution to train the data to train a new base classifier. The base classifier is usually a simple classification model, and the present invention uses L2 regularized logistic regression.

[0162] 3) Calculate the error rate: Calculate the error rate based on the performance of the base classifier on the weighted training data. The error rate is the sum of the weights of the samples that were misclassified.

[0163] 4) Calculate classifier weights: The weight of each base classifier is calculated based on its error rate, and the formula is:

[0164] ;

[0165] This weight reflects the importance of the classifier in the final decision. The lower the error rate, the greater the weight of the classifier.

[0166] 5) Update sample weights:

[0167] After each iteration, the weights of the training samples are updated according to the performance of the base classifier: for samples that are correctly classified, their weights will be reduced, and the weight update formula is:

[0168] ;

[0169] For samples that are misclassified, their weights will increase, and the weight update formula is:

[0170] ;

[0171] After updating the weights of all samples, normalization is performed to ensure that the sum of all sample weights is 1.

[0172] 6) Combined base classifiers: After multiple rounds of iterations, all trained base classifiers are weighted and combined according to their respective weights to form the final strong classifier. When making classification decisions, each base classifier votes on the results according to its weight, and finally outputs the category with the highest weighted voting result as the prediction result.

[0173] In summary, if Figure 6 As shown, the implementation steps of the embodiment of the present invention are as follows:

[0174] Obtain EEG data: Download and collect publicly available depression EEG signal data samples, including healthy samples and depression patient samples;

[0175] Data preprocessing: preprocess the collected depression EEG signal data samples, the specific processing method is as described above;

[0176] Dividing the data set: After the data samples are preprocessed, they are linearly normalized to obtain a data set, which is represented by a feature matrix and divided into a test set (15%), a validation set (15%), and a training set (70%);

[0177] Pre-training: Applying the designed model to a pre-prepared training dataset. By pre-training on a large amount of data, the model can learn the potential patterns and features in the signal, laying the foundation for the subsequent fine-tuning process.

[0178] Model validation: Run the model on the validation set to check the model’s performance, detect whether the model is overfitting or underfitting, and adjust the model parameters based on the validation results.

[0179] Evaluate model performance: Use the validation set to evaluate the performance of the model, including accuracy, recall, F1 score, and other indicators. Based on the evaluation results, further adjust the model or training strategy until the model performance is satisfactory. Based on the performance feedback on the validation set, iteratively adjust the model structure or optimize the parameters again.

[0180] After determining the model parameters and structure, the test set is used to evaluate the final performance of the model.

[0181] Therefore, the embodiments of the present invention have the following effects based on the prior art:

[0182] Elastic Net and adaptive Lasso methods are used to construct and optimize the brain network, calculate a variety of hypernetwork indicators, integrate information from different features, and improve the comprehensiveness and effectiveness of feature representation. The Adaboost ensemble learning method is used to utilize multiple L2 regularized logistic regression base classifiers, combined with adaptive learning rate and error rate weighting strategies, to improve the model's classification accuracy and generalization ability. L2 regularization is added to model training to control model complexity and prevent overfitting. At the same time, through appropriate regularization parameter selection, important feature information is retained to solve the problems of information loss and reduced accuracy in the process of high-dimensional data processing.

[0183] Reference Figure 2 , a depression feature extraction system based on adaptive Lasso, comprising:

[0184] A preprocessing module is used to obtain the patient's EEG signal and perform data preprocessing to obtain a preprocessed EEG signal;

[0185] The feature extraction and fusion module is used to perform multi-scale feature extraction and fusion processing on the pre-processed EEG signals based on the Elastic Net sparse regression model and introduce the adaptive Lasso method to obtain the EEG signal feature fusion matrix;

[0186] The recognition and classification module is used to classify and predict the EEG signal feature fusion matrix based on the L2 regularized logistic regression classifier, introduce an adaptive learning rate and error rate weighting strategy, and obtain depression recognition results.

[0187] The contents of the above method embodiments are all applicable to the present system embodiments. The functions specifically implemented by the present system embodiments are the same as those of the above method embodiments, and the beneficial effects achieved are also the same as those achieved by the above method embodiments.

[0188] The above is a specific description of the preferred implementation of the present invention, but the invention is not limited to the embodiments. Those skilled in the art may make various equivalent modifications or substitutions without violating the spirit of the present invention. These equivalent modifications or substitutions are all included in the scope defined by the claims of this application.

Claims

1. A depression feature extraction method based on adaptive Lasso, It is characterized in that The following steps are involved: Acquire the patient's EEG signal and perform data preprocessing to obtain a preprocessed EEG signal; Determine the adaptive weight value by using the adaptive Lasso method; Embed the adaptive weight value into the regularization term of the Elastic Net sparse regression model to build a hypernetwork; The loss function of the hypernetwork is specifically as follows: ; In the above formula, represents the loss function of the hypernetwork, represents the original loss function, represents the parameter controlling the L1 regularization strength, represents the parameter controlling the L2 regularization strength, Indicates The square of the coefficient of the feature, represents the adaptive weight value, Indicates The coefficient of the feature, Indicates the number of parameters, Indicates Features Based on the cross-validation method, the parameter combination in the hypernetwork is optimized to obtain the optimized hypernetwork; Based on the optimized hypernetwork, the global attribute index feature extraction process is performed on the preprocessed EEG signal to obtain the global attribute index feature of the EEG signal; Based on the optimized hypernetwork, the local attribute index feature extraction process is performed on the preprocessed EEG signal to obtain the local attribute index feature of the EEG signal; The global attribute index features of the EEG brain electrical signal and the local attribute index features of the EEG brain electrical signal are normalized and feature fused in turn to obtain the EEG brain electrical signal feature fusion matrix; Introduce penalty coefficients and construct several L2 regularized logistic regression classifiers; The objective function of the L2 regularized logistic regression classifier is specifically as follows: ; In the above formula, represents the objective function of the L2 regularized logistic regression classifier, Represents the model pair The predicted probability of represents the actual label, represents the square of all weights of the penalized model, represents the number of training samples, Indicates samples, represents the regularization parameter; Initializing and adaptively iteratively training the L2 regularized logistic regression classifier to obtain a number of trained L2 regularized logistic regression classifiers; Get the error rates of several trained L2 regularized logistic regression classifiers; Assigning weight values ​​to a number of trained L2 regularized logistic regression classifiers according to the error rate, thereby obtaining a number of L2 regularized logistic regression classifiers with error rate weight values; Several L2 regularized logistic regression classifiers with error rate weight values ​​are combined to perform classification prediction on the EEG signal feature fusion matrix to obtain the depression recognition result.

2. According to the method for extracting depression features based on adaptive Lasso as described in claim 1, It is characterized in that The step of obtaining the patient's EEG signal and performing data preprocessing to obtain the preprocessed EEG signal specifically includes: Obtain the patient's EEG signal; Perform channel localization and re-reference processing on the patient's EEG signal to obtain the imported EEG signal; The imported EEG brain electrical signal is filtered through high-pass and low-pass filters to obtain a filtered EEG brain electrical signal; The filtered EEG signal is interpolated by a spherical spline interpolation algorithm to obtain an interpolated EEG signal; Perform independent component analysis on the interpolated EEG signal to obtain independent components of the EEG signal; The artifact components of the independent components of the EEG brain electrical signal are removed to obtain the preprocessed EEG brain electrical signal.

3. According to the method for extracting depression features based on adaptive Lasso as described in claim 2, It is characterized in that The step of extracting the global attribute index feature of the preprocessed EEG signal based on the optimized hypernetwork to obtain the global attribute index feature of the EEG signal specifically includes: Based on the optimized hypernetwork, define the nodes and hyperedges of the hypernetwork; According to the mapping between the nodes of the hypernetwork and the hyperedges of the hypernetwork, the adjacency matrix of the optimized hypernetwork is constructed; Initialize the adjacency matrix, optimize the structure of the optimized hypernetwork using the Floyd-Warshall algorithm, and obtain the high-order path length of the optimized hypernetwork; defining the modularity quality function of the optimized hypernetwork; According to the high-order path length of the optimized hypernetwork, the preprocessed EEG signal is input and combined with the modular quality function of the optimized hypernetwork to perform global attribute indicator feature extraction and obtain the global attribute indicator features of the EEG signal.

4. According to the method for extracting depression features based on adaptive Lasso as claimed in claim 3, It is characterized in that The step of extracting local attribute index features from the preprocessed EEG signal based on the optimized hypernetwork to obtain local attribute index features of the EEG signal specifically includes: Based on the optimized hypernetwork, define the nodes and hyperedges of the hypernetwork; According to the mapping between the nodes of the hypernetwork and the hyperedges of the hypernetwork, an extended adjacency matrix of the optimized hypernetwork is constructed; According to the extended adjacency matrix, the high-order centrality of the optimized supernetwork and the betweenness centrality of the optimized supernetwork are obtained; Based on the high-order centrality of the optimized hypernetwork and the betweenness centrality of the optimized hypernetwork, the local attribute index feature extraction processing is performed on the preprocessed EEG brain electrical signal to obtain the local attribute index feature of the EEG brain electrical signal.

5. A depression feature extraction system based on adaptive Lasso, It is characterized in that Includes the following modules: A preprocessing module is used to obtain the patient's EEG signal and perform data preprocessing to obtain a preprocessed EEG signal; A feature extraction and fusion module is used to determine the adaptive weight value by using an adaptive Lasso method; Embed the adaptive weight value into the regularization term of the Elastic Net sparse regression model to build a hypernetwork; The loss function of the hypernetwork is specifically as follows: ; In the above formula, represents the loss function of the hypernetwork, represents the original loss function, represents the parameter controlling the L1 regularization strength, represents the parameter controlling the L2 regularization strength, Indicates The square of the coefficient of the feature, represents the adaptive weight value, Indicates The coefficient of the feature, Indicates the number of parameters, Indicates Features Based on the cross-validation method, the parameter combination in the hypernetwork is optimized to obtain the optimized hypernetwork; Based on the optimized hypernetwork, the global attribute index feature extraction process is performed on the preprocessed EEG signal to obtain the global attribute index feature of the EEG signal; Based on the optimized hypernetwork, the local attribute index feature extraction process is performed on the preprocessed EEG signal to obtain the local attribute index feature of the EEG signal; The global attribute index features of the EEG brain electrical signal and the local attribute index features of the EEG brain electrical signal are normalized and feature fused in turn to obtain the EEG brain electrical signal feature fusion matrix; Identify the classification module, which is used to introduce penalty coefficients and construct several L2 regularized logistic regression classifiers; The objective function of the L2 regularized logistic regression classifier is specifically as follows: ; In the above formula, represents the objective function of the L2 regularized logistic regression classifier, Represents the model pair The predicted probability of represents the actual label, represents the square of all weights of the penalized model, represents the number of training samples, Indicates samples, represents the regularization parameter; Initializing and adaptively iteratively training the L2 regularized logistic regression classifier to obtain a number of trained L2 regularized logistic regression classifiers; Get the error rates of several trained L2 regularized logistic regression classifiers; Assigning weight values ​​to a number of trained L2 regularized logistic regression classifiers according to the error rate, thereby obtaining a number of L2 regularized logistic regression classifiers with error rate weight values; Several L2 regularized logistic regression classifiers with error rate weight values ​​are combined to perform classification prediction on the EEG signal feature fusion matrix to obtain the depression recognition result.