Emotion Analysis of College Students Using a Fuzzy Support Vector Machine

With the rapid development of society, the number of college students in our country is on the rise. College students are under pressure due to challenges from the society, school, and family, but they cannot find a suitable solution. As a result, the psychological problems of college students are diversified and complicated. ,e mental health problem of college students is becoming more andmore serious, which requires urgent attention.,is article realizes the monitoring of university mental health by identifying and analyzing the emotions of college students. ,is article uses EEG to determine the emotional state of college students. First, feature extraction is performed on different rhythm data of EEG, and then a fuzzy support vector machine (FSVM) is used for classification. Finally, a decision fusion mechanism based on the D-S evidence combination theory is used to fuse the classification results and output the final emotion recognition results. ,e contribution of this research is mainly in three aspects. One is the use of multiple features, which improves the efficiency of data use; the other is the use of a fuzzy support vector machine classifier with higher noise resistance, and the recognition rate of the model is better. ,e third is that the decision fusion mechanism based on the D-S evidence combination theory takes into account the classification results of each feature, and the classification results assist each other and integrate organically. ,e experiment compares emotion recognition based on single rhythm, multirhythm combination, and multirhythm fusion. ,e experimental results fully prove that the proposed emotion recognition method can effectively improve the recognition efficiency. It has a good practical value in the emotion recognition of college students.


Introduction
On contemporary university campuses, the number of college students with mental illnesses is increasing day by day. Many college students have difficulty adapting to college life for a while, and a series of mental health problems arise, which seriously affect their normal study and life. At present, the mental health prevention work of college students mainly relies on the inquiry methods of counselors and class teachers. e problems with this approach are as follows. (1) e number of teachers is far lower than the number of potential mental health problems. In addition, the work of university teachers is complicated, and the workload is huge, with limited energy and time. erefore, the prevention and treatment of mental health among college students are often a mere formality. (2) At present, the main way to carry out mental health prevention and control work is questionnaire survey, which is difficult to identify students with real psychological problems.
is has given birth to more intelligent mental health investigation and prevention methods. e emotional changes of college students can reflect their mental health problems to a certain extent. If a college student is in a sad or neutral state for a long time, it indicates that the student has some psychological problems. At this time, the teacher can start mental health counseling in time.
erefore, emotion recognition for college students is of great significance.
Emotion is a very complex psychological state produced by human beings in a specific environment, which is often associated with temperament, temperament, and motivation [1]. People can feel their own emotional state at all times; it provides a guarantee for human survival, and affects our learning, decision-making, and memory capabilities [2]. Emotion is a person's attitude and experience towards objective situations or things. It is a physical and psychological state produced by a person's senses, thoughts, and behaviors [3]. Emotion occupies an important position in the human society. As an advanced function of the human brain, it can ensure the adaptability of people in different environments. At the same time, it can characterize human personality characteristics and psychopathology [4]. Generally, positive emotions can make people full of strength and vitality and make people energetic, so it is beneficial to physical and mental health and the recovery of the body. Neutral emotion is an important criterion for personal psychological stability. Negative emotions usually cause a person to become depressed. Being in this state for a long time will affect people's working conditions and endanger physical and mental health. erefore, emotion recognition and monitoring has become a necessary way to solve human mental illness. Human emotion prediction also has important research significance and application value in areas such as mental health evaluation. For example, in medicine, the relationship between emotion and stress and other diseases is studied by analyzing physiological signals such as EEG in different emotional states [5,6]. It is possible to find new ways to treat and recover similar mental illnesses. In education, the distance teaching platform based on emotion recognition can become more humane by obtaining feedback from students [7]. In entertainment, intelligent emotional sensing robots can bring more fun to life. With the deepening of research on emotion recognition, its service areas for humans will become more extensive. At present, in terms of research materials, emotion recognition can be divided into speech-based [8,9], video-based [10,11], image-based [12][13][14], text-based [15,16], and physiological signal [17,18] and emotion recognition [19,20] combining multiple modal data. In the recognition of classifiers, they are mainly based on machine learning [21][22][23][24][25][26][27][28] and based on deep learning [29,30]. Machine learning algorithms have been successfully applied to the recognition of various physiological signals [31][32][33][34][35][36]. e application of deep learning algorithms is still being explored further.
is article is mainly devoted to the research of emotion recognition based on EEG signals. In sentiment analysis based on EEG signals, there are mainly two methods. ey are linear analysis method and nonlinear analysis method. Representative studies are shown in Table 1.
e abovementioned EEG-based emotion recognition method does not consider the characteristics of different rhythms in the EEG signal but processes the EEG uniformly.
is method ignores the different effects of different rhythms on emotion recognition. Aiming at this problem, this paper proposes an emotion recognition method based on the fusion of multirhythm results. e contributions of this research are summarized as follows: (1) In order to fully excavate the information characteristics of different rhythms in EEG signals, this paper extracts and classifies multiple rhythms. is method can make full use of the information of different rhythms and has better pertinence. (2) Aiming at the problem of large feature dimension space and difficulty in integrating multiple rhythms in emotion recognition, in this study, the D-S evidence combination theory was used to merge multiple rhythm classification results to obtain the final classification results. e result fusion method can not only obtain more accurate results than a single rhythm or simple integration of multiple rhythms but also reduce the dimension of the feature space and overcome the problem of how to integrate multiple rhythms. (3) is study used the FSVM classifier. Due to the introduction of the fuzzy membership mechanism, this classifier has better noise immunity than other classic classifiers. is classifier is more suitable for applications in noisy actual production environments.

Emotion Recognition Process Based on EEG Signal.
e process of emotion recognition is essentially a process of pattern recognition, which is generally divided into three steps. ey are data collection and preprocessing, feature extraction, and model training and recognition. Figure 1 is a flowchart of emotion recognition. In the supervised machine learning process, it is first necessary to label the acquired sample set, divide it into different categories, and divide the sample set into training set and test set. Secondly, data preprocessing and feature extraction are required for the two sets. Finally, train the model by the training set. e trained model is for classification and decision-making. In the recognition process, the test set features are sent to the trained model for sample prediction. e output emotion category label is the recognition result, thus completing the whole process of emotion recognition.

Introduction to EEG Signals.
According to different classification basis, EEG signals can be divided into categories as shown in Table 2.
In the preprocessing of the received EEG signal, noise reduction processing is mainly performed. At the same time, it reduces the interference of non-brain wave signals such as skin electricity and muscle electricity. en feature extraction is performed on the data to obtain useful signals for sentiment analysis.

Feature Extraction of EEG Signals.
In this study, the wavelet transform was used to extract 4 rhythms in EEG electrode signals, namely, θ rhythm, α rhythm, β rhythm, and c rhythm. Taking β as an example, calculate the wavelet packet coefficients of the β wave decomposition node of the   EEG signal waveform characteristics (such as amplitude, phase, etc.), rhythm wave average power, power spectral density, band energy, wavelet coefficient root mean square, etc.
e calculation formula of some statistical values is as follows: where E represents the brain electrical signal data and N represents the length of the brain electrical signal data.

Learning and Classification of EEG Signals.
A support vector machine (SVM) is one of the most common classification methods in emotion recognition. Considering that the classic SVM is susceptible to noise interference, the EEG signal collected in the real production environment usually contains noise interference. In order to improve the classification accuracy, this paper uses the SVM with fuzzy membership.
Let the training sample set be . i x represents the feature vector of each sample. y i represents two different categories, y i ∈ +1, −1 { }. u(x i ) is the fuzzy membership function. u(x i ) represents the membership degree of the ith sample and represents the reliability of the ith sample x i belonging to the y i class, 0 < u(x i ) ≤ 1. According to the principle of the SVM algorithm, the training samples are mapped to the high-dimensional feature space, and the feature mapping function ϕ(·) is used to obtain where C − and C + represent the penalty factors of positive and negative samples, respectively. ξ is the relaxation factor. e optimal hyperplane is obtained by solving the objective function by the Lagrangian multiplier method: According to the degree of influence of each sample on the classification surface, each sample point is given a different degree of membership. e purpose is to make the sample points with larger influence degree have a larger degree of membership, and the sample data with smaller effect will give a smaller degree of membership.

e D-S Evidence Combination eory.
Dempster first described the Dempster-Shafer evidence combination theory in his article [43]. Later, Shafer further developed and perfected the theory, which formed the Dempster-Shafer evidence combination theory as it is now known. e Dempster-Shafer evidence combination theory is also called the D-S evidence theory. It expands the data fusion solution and is widely used in multisource data fusion. e D-S evidence theory is based on the trust function of different observations and uses Dempster's evidence combination rules to fuse them. en a judgment is made on the result obtained according to a certain type of rule, and finally the fusion and final decision result is realized. e principle is described as follows [44].
Suppose a finite space Θ and let 2 Θ be all the subsets in the space Θ. is also includes the empty set Θ itself. For the subset A, define the function m: 2 Θ ⟶ (0, 1) and satisfy Function m(A) is the basic confidence distribution function on Θ, and m(A) is the precise trust level of the subset A. In this theory, the basic confidence distribution function is assigned to A in a fixed form as its evidence information. However, different people will give inconsistent confidence assignments to the same evidence because of their special experience and knowledge. Maximize the use of independent and different sources of evidence to improve the accuracy or confidence of the target event. Assume

The Proposed Emotion Recognition Method
Different rhythms in EEG data correspond to different emotional states, because emotion recognition based on a single rhythm often has problems such as low recognition rate and poor stability. Using multiple EEG rhythms as feature recognition will improve the recognition results and stability. At present, most emotion recognition based on multiple EEG rhythms simply combine the feature recognition results extracted from these rhythms, and there is no more effective fusion strategy. is makes the dimension of the feature space and the input dimension of the classifier too high, making the accuracy and stability of the discrimination result poor. In order to make full use of the advantages of EEG data and improve decision-making results, this study applies the D-S theory to the decisionmaking level. e main idea of the proposed method is: First, extract the four characteristic rhythms in the EEG electrode signal: θ rhythm, α rhythm, β rhythm, and c rhythm, and extract each characteristic wave separately. Secondly, input the feature vector into the corresponding FSVM classifier for recognition. Finally, the basic confidence distribution of each mode under each classifier is obtained, and the D-S evidence combination theory is used to fuse the classification results to obtain the final decision result. e framework of the proposed method is shown in Figure 2. e steps of the proposed algorithm are as follows: Step 1: prepare the electrodes FC5-FC6 to be analyzed, respectively. Due to the time-varying nonstationary characteristics of EEG, preprocessing is essential before waveform extraction. Among them, there are mainly framing and windowing. Set the frame length to 512, the frame shift to 256, and the window function to the hamming window Step 2: extract the θ rhythm, α rhythm, β rhythm, and c rhythm of each electrode signal after preprocessing, and use them as the EEG characteristic band. e feature extraction is shown in Table 4 Step 3: assign an FSVM classifier to identify each rhythm. Each FSVM can be regarded as independent evidence, and its output value is transformed into the basic confidence function of each emotion model under evidence Step 4: after obtaining the basic allocation function of each FSVM classifier in step 3, perform fusion according to the formula (5) Step 5: the fusion result is judged according to the rules: m(A w ) � max m(A i ) , the function with the maximum trust degree is selected as the target class

Experimental Data and Parameter Settings.
e data set used in this study is a public data set provided by S. Koelstra et al. for analyzing the human emotional state. e data set contains audio and video, 32-lead EEG data and 8-lead peripheral physiological signals. e data set is divided into 4 emotions, namely, high arousal and high valence (HAHV), low arousal and high valence (LAHV), low arousal and low valence (LALV), and high arousal and low valence (HALV). In the experiment, 312 training samples were selected and 144 test samples were selected. Each type has 78 training samples and 36 test samples. is study used the data that were preprocessed by experimenters such as S. Koelstra and Mathematical Problems in Engineering others after removing oculogram, frequency reduction, and filtering from the original data. e data sampling frequency of each segment is reduced to 128 Hz, and the sampling time is 63 seconds. e first 3 seconds are the baseline duration, and the next 60 seconds are the experimental data. e contrast classifiers used in this study are SVM, Gaussian mixture model (GMM), and BP neural network (BPNN), SVM: the parameter c ∈ 2 − 5 , . . . , 2 5 and nuclear parameter c ∈ 2 − 5 , . . . , 2 5 . e number of Gaussian components is 6. e evaluation index is the recognition rate.

Experimental Program and Result Analysis.
is study designed experiments from three perspectives: single multirhythm as data input, different classification result fusion strategies, and different classifiers. e specific design plan is as follows : Scheme 1: In order to verify the influence of single multirhythm as data input on emotion recognition, the experiment compared the recognition rate of single rhythm and multirhythm in different combinations. e multirhythm classification result of this experiment uses the fusion of the D-S evidence combination theory, and the classifier uses the FSVM. e experimental results are shown in Table 5 and Figure 3. Scheme 2: In order to verify the effectiveness of the D-S fusion strategy used, the two result fusion methods of ordinary linear combination and D-S evidence combination are compared. e experimental data use a combination of α+β+c three rhythms. e experimental results are shown in Table 6. Scheme 3: In order to verify the robustness of the FSVM classifier, the classic SVM, GMM, and BPNN are selected for the comparison classifier. e experimental result data are a multirhythm fusion classification result. e experimental results are shown in Table 7 and Figure 4.
From Table 5 and Figure 3, the following conclusions can be drawn: (1) In a single rhythm, the recognition rate of different rhythms is different. It shows that the contribution of information carried by different rhythms is different. Among them, rhythms β andc have the better recognition rate, which shows that rhythms β and c can truly reflect emotional changes. When performing multifeature recognition, these two kinds of rhythms should be given priority. (2) e recognition rate of different combinations of each rhythm is higher than that of any single rhythm. is shows that emotion recognition performance based on multiple rhythm combinations is better. Among the multirhythms of different combinations, the D-S fusion recognition rate of the three rhythms α + β + c is the highest. e fusion recognition rate of the four rhythms θ + α + β + c is lower than the fusion recognition rate of the three rhythms α + β + c.    Mathematical Problems in Engineering 7 is shows that it is not that more rhythms are better. Some rhythms carry less useful information, which will weaken the final decision result. e recognition rate of any combination of two rhythms is lower than the recognition rate of α + β + c three rhythm combinations. Among the three rhythm combinations, the recognition rate of the α + β + c three rhythm combinations is significantly higher than the other three rhythm combinations. is shows that in order to obtain the optimal decision result, not only the number of combined rhythms must be confirmed but also the most representative rhythm must be selected.
It can be concluded from Table 6 that the fusion method based on the D-S evidence combination has the highest recognition rate. e separate discrimination results of the three rhythms are merged, and the group with the largest trust degree after fusion is taken as the target class. e linear combination experiment simply integrates the three rhythm features into a set of feature vectors. In the process of pattern recognition, misjudgment may be caused due to the inconsistency between certain dimensional features. From the comparison of these two sets of experiments, it can be concluded that the D-S evidence combination theory can reduce the misjudgment caused by the inconsistency between the features to a certain extent, thereby improving the recognition rate.
From Table 7 and Figure 4, the following conclusions can be drawn: the emotion recognition rate under the FSVM classifier is the highest. It is 3.02% higher than SVM, 3.47% higher than GMM, and 1.33% higher than BPNN. e overall improvement is not large, which shows that the use of different classifiers has little effect on the final recognition rate. Among different classifiers, the recognition rates of BPNN and FSVM are not much different. is shows that although the neural network-based classifier has high computational time complexity, the final decision-making effect is ideal. For some operations that do not consider time cost, we can consider using a neural network-based classifier. By comparing the four emotion recognition results, we θ + α θ + β θ + γ β + γ α + β α + γ θ + α + β θ + α + γ α + β + γ θ + α + β + γ   found that the recognition rates of HALV and HALV are generally higher. Divided from the degree of arousal, both categories belong to the range of high arousal. is shows that EEG emotional data with high arousal have a better performance in recognition.

Conclusion
As the pressure of college students increases, some negative events occur frequently. Emotion recognition for college students is particularly important and meaningful. In this context, this article proposes an EEG signal-based emotion recognition method for college students. First of all, in the use of data sets, this study uses multirhythms as data input. rough experimental comparison, three rhythms were finally selected. e second step is to use the wavelet transform for feature extraction for each rhythm. e third step is to use the FSVM classifier to classify the input feature data to obtain classification results of different rhythms. e fourth step is to use the D-S evidence combination theory to fuse the classification results of the three rhythms, in order to get the final decision result. ere are 3 points of innovation in this research. One is to use multiple rhythms as input.
e second is to introduce the FSVM classifier with strong noise immunity. e third is to use the result fusion strategy based on the D-S evidence theory. rough experimental comparison, the emotion recognition method proposed in this article can effectively improve the recognition rate, which has a reference value. However, this study also has some shortcomings; for example, classifying different rhythms separately; this method directly discards the relationship between different rhythms and may reduce the final recognition effect. Subsequently, a classifier based on a collaborative learning mechanism is used for classification and recognition.

Data Availability
e data used to support the findings of this study are available from the corresponding author upon request. Mathematical Problems in Engineering 9