Research Article

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

Algorithm 2

AdaBoost algorithm.
Input: Training set X, number of base classifiers M, base classifier H, test sample X′
Output: Class label Y′ of test sample X′
Step 1: For i = 1 : M
Step 2: Train the base classifier Hi on Xi
Step 3: Calculate the weighted error by equation (5)
Step 4: If the weighted error is greater than 0.5, update all sample weights through equation (7)
Step 5: Calculate the weights of the base classifier Hi by equation (6)
Step 6: Calculate the classification labels of the test samples: