|
1.INTRODUCTIONWith the rapid development of science and technology and the continuous improvement of material productivity, people’s living standards are getting higher and higher, but the psychological problems have not been significantly reduced. According to the statistics of WHO, more than 300 million people around the world suffer from mental health diseases of varying degrees, especially the immature adolescents, whose mental health problems are particularly prominent, such as self-harm tendency, suicide or depression and a series of mental health problems. Scholars all over the world have been doing research on adolescent mental health. The research of Carl et al. 1 shows that the content of mental health education in American universities focuses on students’ all-round development, including psychological, physical and environmental training. The research of David et al.2 shows that the scope of mental health education of American college students should include suicide, anxiety, depression and love. Shirley etc. al.3 believe that college psychological chat room can effectively release students’ pressure. The research on teenager mental health abroad is earlier, but the Chinese government attaches great importance to it in recent years. In 2019, the National Health Commission issued the “Healthy China Action - children and youth mental health action plan (2019-2022)”. Since the release of the plan, many schools and even social units have set up mental health education courses or counseling departments. However, due to the limitations of teacher team and education environment, many mental health guidance work is carried out by mechanically copying the existing mental health education mode, and problems cannot be found in time, which leads to the poor effect of mental health work. Aiming at these problems, this paper constructs a classification model of teenager mental health by using BP neural network. Levenberg-Marquardt (LM) algorithm was used to improve the efficiency of the model, and a classification and recognition system of adolescent mental health was designed based on the model, so that relevant departments and schools could accurately and quickly predict the psychological status of adolescents, so as to improve the effectiveness of the work. The rest of this paper is organized as follows. BP neural network, steepest descent method, Levenberg Marquardt (LM) algorithm and LM-BP model are presented in Section 2. Inversion analysis of the optimization algorithm and model experiment analysis are presented in Section 3. Then, the design of the system platform is in Section 4. Finally, the conclusion is presented and future work is discussed. 2.CONSTRUCTION OF LM-BP CLASSIFICATION MODEL2.1BP neural networkArtificial neural network is an algorithm that imitates biological neuron. It can be simply divided into input layer, hidden layer and output layer. And the hidden layer can be divided into multi-layer structure according to the complexity of the model4,5. BP neural network is an error back propagation neural network, which trains weights along the direction of reducing error. But it is not a feedback neural network. The principle of BP neural network is to use the output error to calculate the error of the upper layer, and then use the calculated error of the upper layer to calculate the error of the previous layer, so as to calculate the error of each layer, and then modify the connection weight according to the error value, and repeat the process until the output error reaches the convergence condition, then, the model training is over. The learning rules of BP neural network generally use the steepest descent method, through back propagation, that is, layer by layer forward propagation, constantly dynamically adjust the connection weight, so as to minimize the global error. The step of BP neural network is simple. Firstly, the error of output layer is obtained by forward propagation, and then the convergence condition is judged. If it is reached, it will be over, otherwise, the error will be back propagated. According to the above, the global error objective function of BP neural network is as following: where, L represents the global error, n represents the number of samples, k represents the number of categories. yij represents the output value of the category j for the sample i. dij represents the expected value of the category j of the sample i. BP neural network model needs to minimize the global error value of L. 2.2Steepest descent algorithmIn BP neural network, the steepest descent algorithm is usually used to minimize the error. The principle of the steepest descent algorithm is to use the opposite direction of the gradient to iterate until the convergence condition is reached. The steepest descent algorithm is to execute the current descent with the fastest speed, not the global descent with the fastest speed. Therefore, it is necessary to determine the length of descent while determining the direction of each iteration6,7. Assume that f(x) is the objective function, dk is the searched direction of xk, i.e., dk = –∇f(xk), λk is the search step size. Then, Assume that H is the Hessian matrix of f(x), and expand f(xk + λkdk) at xk with Taylor expansion of second order as following: The derivation of equation (4) is performed to λk, i.e., Optimal search step size can be found as following: The implementation steps of steepest descent method are as follows: Step 1: Calculate the value of function f(x0), gradient ∇f(x0), search direction and H0 of the initial point x0, and set k = 0; Step 2: Do the line search xk+1 = xk + λkdk. λk is attained by equation (6), then calculate ∇f(xk+1). Step 3: Judge if it is on the convergence condition ||xk+1 – xk||∞ < ɛ or ||∇f(xk+1)||∞ < ɛ or k > kmax : If yes, the iteration is over and xk+1 is output; otherwise, calculate f(xk+1), dk+1 and Hk+1, set k = k+1. And turn to step 2. If the Hessian matrix of the objective function is computationally complex or there is no second derivative, the search step size λk can be calculated by Armijo delimitation method or golden section method. 2.3Levenberg-Marquardt algorithmLevenberg Marquardt (LM) is a widely used optimization algorithm8. The convergence speed of LM algorithm is generally higher than the steepest descent method, which simplifies the difficulty of Newton method in calculating Hessian matrix and solves the problem that the approximate Hessian matrix of Gauss Newton method is not full of rank9,10. Assume that M(x, θ) is a model function, and set Taylor expansion is performed at x and according to the least square method, where, Assume that J(x) is the Jacobian matrix, then, If M(x,t) fits well, i.e. fi(x)≈0, then Therefore, Implementation steps of Levenberg-Marquardt algorithm are as following: Step 1: Calculate f(x0), g0 and H0 of the initial point x0, and set μ = 0.001, k = 0; Step 2: Calculate xk+1 = xk – (Hk – μI)–1 gk, f(xk+1), gk+1 and Hk+1 by equation (14); Step 3: Judge whether ||xk+1 – xk||∞ < ɛ or k ≥ kmax is on the convergence condition. If yes, the iteration is over and xk+1 is output; otherwise, go to Step 4. Step 4: Judge whether condition |f(xk+1)|| < ||f(x)|| is satisfied, if yes, μ = μ/10, or, μ = μ*10; Step 5: set k=k+1, and go to Step 2. 2.4LM-BP modelLM-BP model is based on BP neural network, using LM algorithm to calculate the minimum error. Firstly, the weights of the model need to be modified by a large number of sample data in the training stage, and then it can be applied to the real environment. The model is shown as Figure 1. According to the mental health level identified by the model, it can accurately and quickly predict the mental status of teenagers, so as to improve the work effectiveness of relevant departments. 3.EXPERIMENTAL ANALYSIS3.1Inversion analysis of optimization algorithmIn this paper, two equations are constructed for inversion experiments to compare the convergence speed and accuracy of steepest descent method and LM algorithm. The equations are defined as follows: The variable x of f1(x) means to get 100 equidistant values between 0 and 10. The true coefficient is [3.4, 2.3, 5.3, 6.2], the initial coefficient is [3.9, 0.8, 41.3, 3.2]. The experimental results of inversion are shown in Table 1. Table 1.Coefficient inversion comparison of f1(x).
The variable x of f2(x) is equidistant between [0, 10] and takes 100 values of them. The true coefficient is [3.4, 2.3, 5.3, 6.2, 1.5, 8.4], the initial coefficient is [8.1, 1.3, 4.3, 3.2, 3.5, 4.4]. The experimental result is shown in Table 2. Table 2.Coefficient inversion comparison of f2(x).
From above, it can be proved that the convergence speed of steepest descent algorithm is much slower than LM algorithm. When the complexity of the equation increases, the accuracy of inversion coefficient of steepest descent method is not as good as LM algorithm. 3.2Model analysisEmotional data11, the hotel reviews is used as experimental data. This data has 1172 negative emotion data and 5358 positive emotion data. Nlpir tool is used to process Chinese word segmentation. Precision, recall and F1 values were selected to evaluate the experimental results. In this paper, the steepest descent method and LM algorithm are used to compare and analyse the sample data. The result is shown in Table 3. Table 3.Contrastive analysis.
According to the above contrastive analysis, Precision, Recall and F1 of model LM-BP is higher than model SD-BP. 4.DESIGN OF CLASSIFICATION AND RECOGNITION SYSTEMAs LM-BP model is better than SD-BP model in Chinese text emotion classification experiment, this paper uses LM-BP model as its classification model algorithm in the design of teenager mental health classification and recognition system. The system mainly consists of the terminal, load balancing module, application service module, classification module, LM-BP algorithm module and data management module, etc. The system architecture is shown in Figure 2. Considering the convenience and versatility of users, and their willing that not want to install too much software on smart phones, in the terminal development, browser, WeChat official account, or applet are firstly used as the interaction terminal. Based on the user’s identity and input characterization information, the system uses specific interaction strategy to generate input data and submits it to the server for processing. After processing the data, the server returns the data to the terminal device. The development of the server side of the system uses the micro-service architecture, which increases the stability and reliability of the system and facilitates the expansion of the function of the system in the future. Load balancing module, application service module, classification module, LM-BP algorithm module and data management module are all micro service modules. Each module has done the micro-service redundancy processing, which can ensure that the service will not cause the system crash due to the error of a module. Load balancing module is a function of load balancing, which avoids overload caused by a large number of users accessing the server in a short time. The Data management module of server side is very import. It stores both structured and unstructured data. In order to improve the performance of the system, the trained data is stored in the Redis database to accelerate the retrieval speed of the Classification Module. Meanwhile, the new analysis data will be stored persistently as the sample data of the retraining model to modify the weight of the model. 5.CONCLUSIONIn this paper, the steepest descent algorithm and LM algorithm are used to invert the coefficients of the equation. From the experimental results, the convergence speed of LM algorithm is faster than the steepest descent algorithm, and the accuracy is better than the steepest descent algorithm when the inversion complexity is increased. At the same time, the emotional data of non-balanced hotel reviews are used to test the BP neural network model based on the steepest descent algorithm and LM algorithm, and the results show that the LM-BP model has better analysis effect than the SD-BP model. Therefore, in this paper, LM-BP model is used to design a classification and recognition system for adolescent mental health. The system has good stability and reliability. And it is easy to expand the function. It can effectively predict the psychological state of teenagers, and improve the work efficiency of the relevant departments. In the next research stage, we will complete the test and lay out the application of the system, promote it to the surrounding schools for free, collect more sample data, and continue to improve the weight correction of the LM-BP model. ACKNOWLEDGMENTSThis research was financially supported by the Project of Philosophy and Social Sciences Planning of Guangzhou in 2020 (Subject No.: 2020GZGJ295). REFERENCESCarl, S., Seidman, L. J. and Keshavan, M. S.,
“The Massachusetts Mental Health Center: Going forward after 100 years,”
American Journal of Psychiatry, 169
(10), 1037
–1037
(2012). https://doi.org/10.1176/appi.ajp.2012.12030362 Google Scholar
Fresco, D. M., Heimberg, R. G., Abramowitz, A., et al.,
“The effect of a negative mood priming challenge on dysfunctional attitudes, explanatory style, and explanatory flexibility,”
British Journal of Clinical Psychology, 45
(2), 167
–183
(2006). https://doi.org/10.1348/014466505X35137 Google Scholar
Ho, S. S. and Mcleod, D. M.,
“Social-psychological influences on opinion expression in face-to-face and computer-mediated communication,”
Communication Research, 35
(2), 190
–207
(2008). https://doi.org/10.1177/0093650207313159 Google Scholar
Cheng, C., Cheng, X. S., Dai, N., et al.,
“Prediction of facial deformation after complete denture prosthesis using BP neural network,”
Computers in Biology and Medicine, 66
(11), 103
–112
(2015). https://doi.org/10.1016/j.compbiomed.2015.08.018 Google Scholar
Cai, B., Pan, G. L., Fu, F., et al.,
“Prediction of the postfire flexural capacity of RC beam using GA-BPNN machine learning,”
Journal of Performance of Constructed Facilities, 34
(6), 1
–11
(2020). https://doi.org/10.1061/(ASCE)CF.1943-5509.0001514 Google Scholar
Deift, P. and Zhou, X.,
“A steepest descent method for oscillatory Riemann-Hilbert problems-Asymptotics for the MKDV equation,”
Annals of Mathematics, 137
(2), 295
–368
(1993). https://doi.org/10.2307/2946540 Google Scholar
Geng, X. G. and Liu, H.,
“The nonlinear steepest descent method to long-time asymptotics of the coupled nonlinear Schrodinger equation,”
Journal of Nonlinear Science, 28
(2), 739
–763
(2018). https://doi.org/10.1007/s00332-017-9426-x Google Scholar
Amini, K. and Rostami, F.,
“Three-steps modified Levenberg-Marquardt method with a new line search for systems of nonlinear equations,”
Journal of Computational and Applied Mathematics, 300
(7), 30
–42
(2016). https://doi.org/10.1016/j.cam.2015.12.013 Google Scholar
Amini, K., Rostami, F. and Caristi, G.,
“An efficient Levenberg-Marquardt method with a new LM parameter for systems of nonlinear equations,”
Optimization, 67
(5), 637
–650
(2018). https://doi.org/10.1080/02331934.2018.1435655 Google Scholar
Lv, C. Q. and Ma, C. F.,
“A Levenberg-Marquardt method for solving semi-symmetric tensor equations,”
Journal of Computational and Applied Mathematics, 332
(4), 13
–25
(2018). https://doi.org/10.1016/j.cam.2017.10.005 Google Scholar
, Available online:Emotional Data, https://download.csdn.net/download/qq_42208267/10904313 Google Scholar
|