Research Article

A Novel Stress State Assessment Method for College Students Based on EEG

Algorithm 1

LW-ELM algorithm.
Input: Training set X1, test set X2
Output: Weight
Step 1: Calculate the number of samples in each category in X1
Step 2: Create the initial expectation matrix T
Step 3: For xi in X1
Step 4: Determine the corresponding tij in T
Step 5: Calculate tij according to the above formula
Step 6: Generate hidden layer parameters at random
Step 7: Using the hidden layer parameters and the training set X1, compute the hidden layer output matrix H
Step 8: Calculate the output weight of the weighted extreme learning machine by equation (4)