Stress is an unavoidable problem for today’s college students. Stress can arouse strong personal emotional and behavioral responses. Compared with other groups of the same age, college students have a special way of life and living environment. They have complex interpersonal relationships and relatively weak social support systems. At the same time, they also face fierce competition in both academic and employment. However, they lack the skills to deal with the crisis and are reluctant to ask others for help, which leads to a simultaneous increase in mental stress. The pressure on college students mainly comes from study, family, social, employment, society, and economy. When students face multiple pressures from family, school, society, etc., some students are prone to some psychological problems due to their own personality or external environment and other reasons. Therefore, regular assessment of students’ stress status is an important means to prevent college students’ psychological problems. Considering that in real life, the number of students whose pressure is within the tolerable range is the majority, while the number of students who are under too much pressure is a minority. Therefore, the actual dataset to be identified belongs to a kind of imbalanced data. In this study, an improved extreme learning machine (IELM) is used to improve the performance of the recognition model as much as possible. IELM takes the idea of label weighting as the starting point, introduces the AdaBoost algorithm, and combines its weight distribution with the label weighted extreme learning machine (ELM). During the weight update process, the advantage of the imbalanced nature of multi-label datasets is taken. IELM was used to classify EEG data to determine the stress level of college students. The experimental results demonstrate that the algorithm used in this study has excellent classification performance and can accurately assess students’ stress levels. The accurate assessment of stress has provided a solid foundation for the development of students’ mental health and has significant practical implications.

1. Introduction

College students play an important role in the development and construction of various projects across the country. Their mental health has an impact not only on individual growth and education but also on the country’s and society’s long-term stability. However, in recent years, college students have experienced psychological crises on occasion, and the subject has grown in prominence, attracting widespread attention from society and university student employees. To address the psychological issues that college students face, we must first comprehend their stress levels. Second, according to the stress condition, the source of psychological stress in college students is precisely evaluated, and the reasons for psychological stress in college students are thoroughly examined. Finally, corresponding intervention strategies are proposed. This is the main connotation of college students’ work. Psychological stress is a person’s physiological changes and emotional fluctuations caused by changes in the external environment and the stress response of the body. The transition of college students from high school to university is an important turning point from school to society. There are all kinds of stress involved in adapting to a new environment, learning new courses, facing new challenges, and developing new relationships. The sources of psychological pressure on college students mainly include the following aspects: first, the psychological pressure caused by role change and adaptation disorders; second, the learning pressure caused by the change in learning style and weak learning motivation; third, the interpersonal pressure caused by communication difficulties and weak communication skills; fourth, the economic pressure and mental pressure caused by the family’s economic difficulties; fifth, the employment pressure caused by the severe employment situation and the fierce competition for talents; sixth, the psychological pressure caused by lack of sexual knowledge and immature concept of love; seventh, the psychological pressure caused by personality and emotional problems; and eighth, psychological pressure caused by personality and emotional problems. The psychological stress of college students directly affects their learning effect and quality of life during their school days. For schools, it is about whether they can produce graduates with excellent mental health and professional quality. In the research on the stress of college students, some scholars believe that college students are a high-stress group. Other studies believe that college students only feel less stress, but the sense of stress and the way of coping with stress are indeed the most important factors that cause college students’ mental health problems. If psychological pressure cannot be relieved in time, it may lead to high blood pressure and cardiovascular disease and endanger physical health. Depression, pessimism, and hopelessness accompanying psychological pressure will affect students’ academic performance and interpersonal communication. This will lead to college students’ life satisfaction and happiness. It can even lead to vicious incidents such as wounding and suicide.

Most of the methods of psychological stress assessment use objective scales. Reference [1] compiled a social readjustment scale (SRRS) containing 43 items, which opened the first instance of using questionnaires to measure stress. Subsequently, some researchers have compiled some stress questionnaires with relatively high reliability and validity, such as the Student Stress Scale prepared in [2] and the Graduate Stress Scale prepared in [3]. Commonly used psychological scales are perceived stress scale (PSS) [4], relative stress scale (RSS) [5], psychological stress measure (PSM) [6], and so on. When the method of filling in the scale is used to evaluate the psychological stress state of the subjects, a large-scale test can be administered in a short period of time, and the test results can be obtained quickly. Compared with other methods, it has the advantages of high efficiency and good scientificity. However, many objective scales used in China are compiled based on the psychological characteristics of Westerners. However, the psychological characteristics of social approval, default tendency, and strong conformity in Chinese people’s response to the scale have led to a considerable proportion of students’ answers with false elements in the scale test. This affects the authenticity and validity of the questionnaire. Therefore, it is difficult to truly evaluate their psychology and behavior through questionnaires. Due to the shortcomings of the scale test method and the complexity of the respondents’ motivation to answer the questions, many scales have already added a certain number of fraud identification questions during the compilation process.

To find a more objective stress assessment method, many scholars began to study stress assessment methods based on physiological signals. Studies have shown that there is indeed a close relationship between psychological stress and brain activity [7]. In particular, when negative emotions appear, the activity of the right hemisphere of the brain is abnormally active [8]. Therefore, scholars have begun to boldly hypothesize that the relative activity of EEG on the right side of the brain predicts changes in psychological stress and a higher risk of mental illness [9]. Based on this conclusion, many EEG-based stress recognition studies have appeared one after another. Reference [10] studied a number of subjects who faced examination pressure and found that the subjects’ right forehead EEG activity was more intense under high-intensity examination pressure. Reference [11] studied the stability of prefrontal EEG asymmetry for detecting psychological stress and depression levels, and the results showed that resting EEG α wave asymmetry could be used as a reliable indicator for detecting stress and depression levels. However, some literature studies also pointed out that gender and age differences have a greater impact on the study of psychological stress [12]. Reference [13] proposed that gender differences in prefrontal asymmetry and negative emotion processing may be related to human genes.

To sum up, we found that the existing researches on stress state recognition are based on different types of data such as scales, EEG signals, ECG signals, speech signals, video signals, and facial expressions. The evaluation models used are also different for different data types. Common models are mainly based on machine learning [1416] and deep learning [1719]. Because the physiology is more realistic, this study mainly chooses the data based on the physiological signal to identify the stress state. Among the physiological data, EEG and ECG are the most common. Considering that the ECG signal acquisition equipment requires multiple electrodes to collect signals, even a single-lead wearable product is not very convenient. In contrast, EEG signals are easier to acquire, and the signals are sensitive, which can quickly reflect changes in pressure. Therefore, this study chooses EEG as the data type used in the research. In the selection of the recognition model, considering that although the recognition rate of the deep learning algorithm is better, its model training time and high requirements for the hardware performance of the device are high, and the model has a lot of parameters. In this study, the theory is simple and easier to implement the machine learning algorithm. Considering that in real life, the number of students whose pressure is within the tolerable range is the majority, while the number of students who are under too much pressure is a minority. Therefore, the actual dataset to be identified belongs to a kind of imbalanced data. In this study, IELM is used to improve the performance of the recognition model as much as possible. IELM takes the idea of label weighting as the starting point, introduces the AdaBoost algorithm, and combines its weight distribution with the label weighted extreme learning machine. During the weight update process, the advantage of the imbalanced nature of multi-label datasets is taken. IELM was used to classify EEG data in order to determine the stress level of college students. The experimental results demonstrate that the algorithm used in this study has excellent classification performance and can accurately assess students’ stress levels.

2. EEG-Based Stress Detection

2.1. The Relationship between EEG and Students’ Stress State

Stress, pleasure, focus, etc., are all related to human emotional thinking. The brain controls human thoughts and emotions. When the brain deals with emotion-related issues, the amygdala, orbitofrontal cortex, anterior cingulate cortex, insula, nucleus accumbens, thalamus, and ventral tegmental area of the brain all respond differently to specific emotions. For example, the anterior cingulate cortex responds when we make a decision about something in a happy or sad emotional state. The nucleus accumbens becomes active when we anticipate a reward or something good will happen. When something disgusts us, the insula becomes very active. When these areas are stimulated and activated, neurons in the cerebral cortex are stimulated to generate action potentials. When the cells are stimulated by the impulse, the pyramidal cells will be depolarized, forming a potential difference and generating an electric current. After the electrodes are placed on the scalp, and after amplification, the EEG signal can be collected and an EEG can be drawn. People divide EEG signals into δ, θ, α, β, and γ frequency bands according to different frequency bands. The descriptions of brain waves in each frequency band are shown in Table 1.

Research has shown that when we blink or think, α waves instantly disappear and reappear, and β waves become very active and have high amplitudes. γ is very sensitive to emotional changes and cognitive learning. When we are tired and sleepy, θ waves begin to appear and become active. To sum up, it can be found that the generation and activity of different brain waves can intuitively reflect the current activity state of students. Therefore, by studying the brain wave signals of these frequency bands, we can analyze the emotional state of college students in the process of study and life and then analyze the stress state of students.

2.2. EEG-Based Stress Assessment

Figure 1 shows the stress assessment process based on EEG signals.

As shown in Figure 1, the first step is to collect EEG data. EEG data collected are all from the freshman to third-year students of our school. Since EEG is a very weak physiological electrical signal, its amplitude can generally only reach the order of microvolts. Therefore, during the acquisition process, various noises generated by different reasons such as the surrounding environment, eye movement signals, and EMG signals are easily mixed into the collected EEG, resulting in poor experimental results. Therefore, to ensure EEG’s purity, it is often necessary to perform preprocessing such as denoising the EEG before analyzing the EEG data.

To reduce the data dimension and facilitate subsequent classification processing, feature extraction operations on the preprocessed data are usually required. At present, the research on EEG signal features mainly focuses on linear features, such as extracting the frequency, power, and other features of EEG signals by means of the Fourier transform. However, the structure of the human brain is more complex, and nonlinear features often have better performance. Generally, the linear and nonlinear characteristics are shown in Table 2.

A stress state recognition model is trained based on the EEG training dataset. The algorithm used is the IELM algorithm given in Section 3. The performance of the trained model is validated using the test dataset. The higher the classification accuracy of the sample, the better the model.

3. Imbalanced Extreme Learning Classification Algorithm

3.1. Weighted Extreme Learning Algorithm

For class-balanced tasks, weighted extreme learning is particularly successful. However, it has two drawbacks. First, as the size of the training set grows, so does the time complexity. The second issue is a lack of mistake compensation flexibility. Reference [20] developed a marker-weighted extreme learning machine based on the concept of cost-sensitive learning to address the drawbacks of this technique. By increasing the expected output value of minority class labels, label-weighted extreme learning machines improve the training error tolerance of minority class cases. Furthermore, because it does not use a weight matrix in the optimization method, it has the same time complexity as standard ELM.

Assume that the expected matrix T has m rows and n columns, where m is the number of categories and n is the number of training set samples. The penalty factor is . The output layer weight to be solved is denoted by . W is an n-dimensional diagonal matrix. Each diagonal element’s value corresponds to the penalty factor regulation parameter of the corresponding sample.

represents the training error vector corresponding to the sample xi on all output nodes. The expression for T is as follows:

For the setting of label weights in two-class and multi-class classification problems, [20] provides two weight distribution methods, as follows:where is the number of samples from the ith class in the training set and is the number of samples from the majority class. Two weight distribution methods are provided:

The weights of the majority class samples remain unchanged in the above weight distribution method, while the weights of the minority class samples are increased. The greater the class imbalance ratio, the greater the weight ratio between the minority and majority classes. The following steps are taken by the weighted extreme learning (Algorithm 1).

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)
3.2. AdaBoost Algorithm

In ensemble learning, according to the different ways of generating base learners, it can be divided into serial ensemble learning algorithms represented by boosting [21] and parallel ensemble learning algorithms represented by bagging [22]. Among the boosting learning paradigms, the AdaBoost algorithm is the most famous, originally proposed by Freund and Schapirel in 1997.

Suppose X is a set containing n training samples for training an AdaBoost classifier. In the AdaBoost algorithm, the importance of each base classifier Hi depends on its error rate :where F is the indicator function. If the condition is true, it takes the value 1; otherwise, it is 0. Through the above formula, the importance weight of the base classifier Hi is given as follows:

It can be seen that when the error rate is close to 0, corresponds to a large positive value. When the error rate is close to 1, corresponds to a large negative value.where Sj is a normalization factor to ensure that .

Through the above weight update formula, it is possible to increase the weight of the misclassified samples in the previous round and reduce the weight of those that have been correctly classified. The AdaBoost algorithm’s execution steps are as follows (Algorithm 2).

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:
3.3. IELM

Reference [23] weights the tokens to increase the expected output of minority class samples. By improving the training error tolerance of the minority class samples, the overall training error of the minority class is similar to that of the majority class in the global training error. In this way, the class imbalance problem is solved. Since the label weight only changes the expected output size and does not change the original optimization formula of the extreme learning machine, the time complexity does not change. However, this algorithm also has certain shortcomings. For example, the algorithm uses human experience to set the weights, which lacks flexibility. The core idea of the AdaBoost algorithm is to change the distribution of samples by modifying the weight of the samples, so that the classifier gradually focuses on those samples that are easy to be misclassified. In this way, the quality of the classification model is maximized. In the label weighting process, larger weights are often assigned to those important samples to avoid misclassification. The above two strategies have the same idea. Based on the inspiration of this idea, this study combines AdaBoost with a labeled weighted extreme learning machine. To efficiently deal with multi-label imbalanced data, the algorithm used improves the two key aspects of AdaBoost’s initial weight setting and weight distribution update. The improved model always considers the inherent imbalance characteristics of multi-label and adjusts the size of the weights directionally.

3.3.1. Adjust the Initial Weight

For single-label classification problems, the weight distribution reflects the relative importance of the samples. Training samples that are often misclassified tend to receive larger weights than correctly classified samples. For multi-label classification problems, the weight distribution can reflect the relative importance of the labels. Therefore, the object of weight setting is the marker. The traditional weight setting method is to use the method of evenly distributing the weight. If the data distribution is unbalanced, the weight can be increased by updating the weight in the iterative process and adjusting the minority class adaptively. In fact, the unbalanced degree of the data can be considered. Giving the minority class a higher weight and the majority class a lower weight will inevitably cause the model to converge faster.

Assuming that the multi-label data are a training set containing n samples, represents a label set with c categories, where xi is the feature vector of the ith sample, and is its associated label set.

Reference [24] proposed an intra-marker imbalance measure, which has been widely used. For the jth marker, represents the positive class sample, represents the negative class sample, and the imbalance rate of the jth marker is as follows:

The initial weight is set as an asymmetric matrix W according to the imbalance ratio, and W contains n rows and c columns, representing n samples and c markers, respectively. The jth token value of the ith sample is as follows:where pi is the normalization factor, and its function is to constrain the sum of the weights of the markers to be 1. The square root of R is chosen here because the imbalance ratio in the multi-label is relatively high, and direct use will cause the weight of positive samples to be much larger than the weight of negative samples, making the model fall into the other extreme.

3.3.2. Weight Update

In this study, the purpose of setting asymmetric weight distribution is to make AdaBoost always focus on the imbalance problem within the label. In the iterative process, if the weights are updated in the usual way, the model cannot keep focusing on the multi-label imbalance problem. Therefore, this study updates the weights separately for each category of each token. For the lth label, its jth class error rate is calculated as follows:where represents the base classifier used by the model and represents the output of the base classifier on the lth token of the sample instance xi.

When the error rate is close to 0, corresponds to a large positive value. When the error rate is close to 1, corresponds to a large negative value. The calculation formula of the weight W of the t + 1th round is as follows:where is an indicator function, and the role of is to ensure at this time. The weight calculation formula of the entire trainer is as follows:

3.3.3. IELM Algorithm Execution Steps

The IELM algorithm’s execution steps (Algorithm 3) are as follows.

Input: Training set X, test set X
Output: Classification evaluation index value
Step 1: Initialize the weight W1 using equations (9)-(10)
Step 2: For i = 1 : M
Step 3: Train base classifier on Wi
Step 4: Calculate the overall error rate for all markers using equation (11)
Step 5: When the weighted error is greater than 0.5, update all sample weights using equation (13), otherwise the loop stops
Step 6: Calculate the weights of the base classifier using equation (14)
Step 7: Calculate the class label of the test sample
Step 8: Calculate the evaluation index value according to the evaluation index calculation formula

4. Experiment

4.1. Experimental Data Collection

To ensure that the experiment is not affected by factors such as the subject’s physical health, other disturbances are minimized as much as possible. Therefore, before this experiment, we learned about the physical condition and basic information of each subject by means of a questionnaire, including the subject’s name, age, gender, physical condition, academic status, family status, and the relationship with classmates and teachers. In the questionnaire, subjects are required to check the stress self-evaluation items. The table design of the questionnaire is shown in Table 3.

To better collect EEG without external interference, subjects were first allowed to fall asleep in a quiet environment. When the subject entered deep sleep, the subject’s EEG was collected. A total of 35 questionnaire data and EEG data were collected from freshmen to junior college students. These data are simply screened according to the questionnaires filled in by the subjects. For example, when there is a large deviation between the subjects’ emotions and the expected emotions of the videos watched, or the subjects are not in the state at all when watching the videos, this set of data will be discarded. Finally, 90 valid samples and 360 EEG fragments were screened out.

4.2. Multifeature Combination Experiment

There are many features of EEG data. This study mainly extracts four features: Hurst index (P1), volatility index, sample entropy, and permutation entropy. The collected EEGs were classified using radial basis neural network (RBFNN) and IELM. The number of categories is 3, which are high stress, average stress, and low stress. The two algorithms run 10 times on each rhythm to get the average classification accuracy. Table 4 and Figure 2 show the experimental results based on the ELM algorithm. Table 5 and Figure 3 show the experimental results based on the IELM algorithm.

Figures 2 and 3 show that, regardless of classifier, the fluctuation index has the best classification effect, followed by the Hurst index and permutation entropy, and the worst is sample entropy. This demonstrates that different types of features contribute to the classification results at different rates. Figure 4 depicts the classification accuracy of various classifiers from four different perspectives.

As can be seen from Figure 4, under a single feature, the classification accuracy of the IELM algorithm under a single feature is higher than that of the ELM. To resolve the optimal combination of multiple features to improve the classification recognition rate of EEG, in this study, a linear weighting formula is given to obtain the weight of each EEG feature. The weight calculation formula is as follows:where fi is the classification recognition rate based on the ith EEG feature and is the weight of the feature fi. The data in Table 5 are substituted into equation (15), and the calculated feature weights are shown in Table 6.

The weights of the combined features under each frequency band can be obtained from the data in Table 6, and the feature combination formulas under 5 frequency bands are as follows:

It can be seen from the experimental data in Table 6 that the weights of the Hurst index and fluctuation index are higher than the remaining two features in the five rhythm species. This shows that these two features show more superior performance in the task of stress assessment. The EEG data of the two feature combinations were classified separately using IELM. Table 7 and Figure 5 give the classification results.

It is clear from the experimental results shown in Table 7 and Figure 5 that for the same classification model, the accuracy of the weighted feature combination is significantly higher than that of the unweighted feature combination. This shows that the introduction of feature weighting strategy can improve the classification performance of EEG. The reason is that different types of features have different degrees of activity for classification. Based on the weighting formula given in this study, the features with high activity are given a large weight, and the features with low activity are given a small weight, so that the result is optimal.

4.3. Classification Model Experiment

Following the selection of the feature combination method, multiple comparison models are introduced to validate the performance of the classification model used in this study. They are support vector machine (SVM), linear support vector machine (linear SVM), radial basis neural network (RBFNN), random forest (RF), and ELM. Since a single indicator of recognition accuracy cannot fully characterize the performance of the recognition model, this study also introduces the recall indicator to evaluate the model. The experimental results obtained by different classification models are shown in Table 8 and Figure 6.

By observing the experimental results shown in Table 8 and Figure 6, the following experimental conclusions can be obtained:(1)Among various classification models, the experimental results obtained by the ELM model are relatively better, close to 0.8. This is one of the reasons why this study chooses ELM as the basic algorithm. When the label weighting and AdaBoost are introduced to optimize the traditional ELM, the experimental results obtained by IELM have been greatly improved. Compared with ELM, its accuracy is improved by 10.25%. This proves the effectiveness of the improved strategy in this study.(2)A single indicator is not enough to illustrate the superiority of the model used, so the recall indicator is introduced in the experiment. Compared with SVM, linear SVM, RBFNN, RF, and ELM, the recall rate of the IELM algorithm used is increased by 36.8%, 32.99%, 25.25%, 36.14%, and 15.95%, respectively. The model in this study has been greatly improved in terms of recall rate. This demonstrates the robustness of the algorithm used in this study.

5. Conclusion

Psychological stress has a great impact on human health. The role of early detection and intervention of psychological stress in preventing mental diseases cannot be ignored. However, in terms of stress identification methods, traditional psychological tools such as self-rating scales are highly subjective, and hormone measurement cannot be widely promoted due to its invasiveness and other limitations. The current noninvasive objective evaluation method is still in the research stage. In this study, EEG was selected to assess the psychological stress state of college students. The experiment finally determined the EEG data of 90 students to be used in the experiment. There are 30 students in each grade of freshman, sophomore, and junior. According to the stress assessment obtained from the questionnaire, 7% of the freshmen were under great stress, 43% were under average stress, and 50% were under little stress. In the sophomore year, 13% were under great stress, 47% were under average stress, and 40% were under less stress. In the third grade, 20% were under great stress, 53% were under average stress, and 27% were under less stress. In general, 14% were under high stress, 47% were under moderate stress, and 39% were under less stress. Among the results obtained by the stress state assessment method based on EEG identification, 12% were under high stress, 46% were under moderate stress, and 42% were under low stress. The stress assessment results obtained using the model used in this study are relatively close to the questionnaire results. This demonstrates that the method described in this study has a certain reference value. However, this study has some limitations. First, whether the self-made questionnaire can collect the most real stress state data needs further research. Second, the number of pressure states used in the experiment is 3, and the division range is relatively general. Future plans are to explore more objective and rigorous data collection methods and optimize the number of stress classifications.

Data Availability

The labeled dataset used to support the findings of this study is available from the corresponding author upon request.

Conflicts of Interest

The authors declare no conflicts of interest.


This work was supported by the open project from Jiangsu Key Laboratory of Media Design and Software Technology (Jiangnan University) under grant 21ST0203, Jiangsu Province Higher Vocational Education High-Level Professional Group Construction Project under grant Su Jiaozhi Letter (2021)) no. 1, Jiangsu Province Higher Vocational Education Industry-Education Integration Platform Construction Project under grant Su Jiaozhi Letter (2019) no. 26, Natural Science Research Project of Jiangsu Province Colleges and Universities under grant 18KJD510011, Jiangsu Province High-Level Key Professional Construction Project Funding under grant Su Jiaogao (2017) no. 17, and Jiangsu Province Education Science “14th Five-Year Plan” 2021 Annual Project under grant D/2021/03/03.