The Intervention of Music Education on Students’ Mental Health Based on Fuzzy Computing

Music is an important way for people to express and communicate their thoughts and feelings. It not only has the functions of cultivating sentiment, developing intelligence, and promoting personality development but also has an energetic function on the spiritual tness of pupils. As an important part of quality education in schools, music education has become a pioneer in the implementation of psychological intervention for students. Music education can cultivate sentiment and lively and optimistic mood by emotional images conveyed through various music and has a special role that cannot be replaced by other disciplines. However, the current music education in schools only focuses on the dissemination of music knowledge and there is no research on which type of music can eectively interfere with students’ mental health. In order to be able to choosemusic that is eective for students’ mental health intervention in music education, this paper will study the intervention research of music education on students’ mental health based on fuzzy computing. is paper extracts the musical features such as average pitch, average pitch intensity, melody direction, pitch stability value, rhythm intensity, and beat, uses fuzzy computing to classify music, determines which types of music can improve students’ mental health, and uses experiments to verify the validity of this research. e consequences of the research show that choosing eective music to intervene in students’ mental health can greatly improve students’ mental health problems.e scores of students’ psychological status after the intervention are 0.73 times of those before the intervention. It demonstrates the validity of the study.


Introduction
Music education is an important part of school education. Music education includes vocational education and general education; the di erence between the two lies in the purpose of education. e former cultivates specialized musical talents for the country. e latter aims to enhance students' aesthetics through music experience, purify the body and mind subtly, provide students with good mental health counseling, and nd joy and happiness in learning music. Music education can unconsciously shape students' identity, strengthen students' personal values, promote students' physical and mental development, and cultivate students' sense of cooperation and students' love for music in various music activities. It is a favorable way to cultivate students' healthy psychology. However, there is still a lack of research on music classi cation and the psychological problems corresponding to each type of music, and the in uence of school music teaching on learning mental health has not reached expectations. erefore, it is necessary to study the in uence of music teaching on pupils' spiritual tness.
At present, many researchers have studied the intervention e ect of music teaching on students' spiritual tness from multiple views. Sun explored how music teaching a ects students' mental health and study score. e consequences showed that music teaching had an obvious energetic impact on students' mental health and helped to improve students' academic performance [1]. Wang compared the e ectiveness of traditional education programs and programs that introduced interactive music services and determined the impact of introducing exclusive applications in the vocal training course on pupil incentive. Research has shown that the introduction of a contemporary interactive circumstance in vocal training ensures high student incentive [2]. Li conducted in-depth research and analysis on the improvement of university pupils' spiritual fitness level by music teaching under the background of 5G and explored the train of thought and means of using music teaching to ease and settle the mental issues of this group of pupils [3,4]. In response to the absence of a theoretical framework for technical consolidation in music instruction, Macrides explored its influence and importance in the design of music teaching within the framework of Technical Pedagogy Content Knowledge (TPACK). Homone proposed several methods of interdisciplinary music education curriculum and verified the effectiveness of these methods through the results obtained in the activities with students [5]. However, how to classify music according to its corresponding psychological conditions remains to be studied.
Fuzzy computing is widely used in various fields because of its accurate data classification characteristics. Liu and Tsai conducted deep study and analysis on intelligent identification and instruction of English vague text through collateral projection and area extension [6]. Wang et al. proposed an unsupervised emotion classification means on the strength of multistage vague computation and multinorm integration [7]. Sunny et al. created a set of fuzzy computing software quality models [8]. Le and Tran proposed a new dental diagnosis system using an optimal tooth image segmentation method based on semisupervised fuzzy clustering for the segmentation task [9]. Murat used neural network and neurofuzzy computing technology to estimate dissolved oxygen, and the results showed that the radial basis neural network method was better than other methods in modeling the monthly average dissolved oxygen concentration [10]. Fuzzy computing has not yet been used in music classification.
In order to accurately obtain the type of music and its adaptive psychological symptoms and apply it to music education to achieve the purpose of intervening students' mental health, this paper will study the intervention research of music education based on fuzzy computing on students' mental health. is paper extracts the emotional features of music, including average pitch, average pitch intensity, melody direction, pitch stability, rhythm strength, and rhythm, uses fuzzy computing to classify music, and obtains the symptoms corresponding to each type of music. In the experimental part, the students are given music education and the mental health status of the students before and after the intervention is compared. e results show that this research can effectively improve the psychological level of students and prove the validity and feasibility of the research.

Intervention of Music Education on Students'
Mental Health e principle that music affects psychology is the rhythm and artistic conception of music. If a person is very manic, his heart rate will increase and his metabolism will speed up, and his heart rate will be adjusted to a normal level by slowing down the rhythm of music. On the contrary, depressed patients can also listen to exciting music to achieve the effect [11]. e mood of music can help relaxation and imagination, so that it can reduce the stress state of the body or perform hypnosis. Students face different pressures at different learning stages and have different psychological problems. When educating students in music at each learning stage, teachers should adjust the course content according to the current students' psychological state to improve students' music literacy while adjusting students' psychology [12]. is paper will extract the emotional features of music, use the fuzzy calculation method to classify the emotion of music, and determine the symptoms corresponding to each type of music.

Music Emotional Feature Extraction.
Music emotion description is carried out from 6 music features that can embody music emotion, including average pitch, average pitch intensity, melody direction, pitch stability value, rhythm strength law, and beat [13]. In this way, the qualitative evaluation in the traditional evaluation method can be processed into a quantitative process and prepared for calculation. e music feature extraction process is shown in Figure 1 [14].

Average Pitch.
Music with a high pitch average usually conveys a feeling of emotion, excitement, and enthusiasm [15]. Average pitch is defined as follows:

Average Sound
Intensity. e strength of the sound is the strength of the music. In the score of the music, P is usually used for weak, F for strong, and it is marked on the top of the note [16]. If the solemn, majestic, impassioned, and other emotions are to be expressed, they are usually played with stronger strength. Average sound intensity is defined as follows: Intensity i .

Melody Direction.
e performance of the melody is presented in the order of the notes, the ups and downs of the notes form unstable wavy lines, and each section of the piece has its own unique wavy line [17]. e shape and movement of the wavy lines reflect the emotional changes of the music. Melody direction is defined as follows: (3)

Stable Value of Pitch.
e stability of the sound can reflect the depth and intensity of the mood and is generally based on the average pitch to which all notes are compared. When not much different from the average pitch, the emotional fluctuation of the piece is small, showing a soothing mental mood, such as calmness, serenity, and relaxation [18]. Stable value of pitch is defined as follows: (4)

e Law of Strength and Weakness of Rhythm.
e brisk rhythm can fully reflect the life of a person, and the changing rhythm can express emotions such as majesty, rush, or anger. e calm rhythm reflects emotions such as relaxation, which makes people feel relaxed and happy [19]. Rhythm is defined as follows: 2.1.6. Beats. e rhythm is the basic part of measuring the rhythm of music. Each piece of music has a fixed rhythm, which usually appears in the form of scores at the beginning of the piece [20]. Beat Meter can be found directly.

Fuzzy Algorithm
e fuzzy C-means clustering algorithm is a transformation method that uses membership to determine the size of clusters [21]. ere are two important parameters which are the number of clusters c and the fuzzy weighting index m. e algorithm divides n vectors x k ⊂ R 5 into c groups (k � 1, 2,. . .,n), where s is the dimension of vector x k , and obtains the cluster center of each group [22]. e basic steps are shown in Figure 2 [23].
Constraint conditions: Cluster center V calculation: Objective function calculation: is the Euclidean distance between the K-th fuzzy group and the i-th cluster center, and m is the fuzzy weighting index, m ∈ (1, +∞), 2 ≤ c ≤ n. If the variable is less than a certain threshold ξ relative to the final result, the algorithm stops and extracts the final membership table U and cluster center V; otherwise, a new membership matrix is calculated according to formula (9), and return to Step (7) [24].
It can be calculated from the final membership matrix U � u ik cxn [25] that Using the fuzzy algorithm to cluster the six emotional feature vectors of average pitch, average pitch intensity, direction of melody, stable value of pitch, regularity of rhythm, and beat, it will play a positive role in intervening in human mental health. e music is divided into these four categories, and literature survey is used to obtain the corresponding symptoms of each type of music [26]. e music clustering results and their corresponding symptoms are shown in Table 1 [27].
Junior and senior postgraduates face the pressure of further education, and college students face the pressure of study, interpersonal communication, employment, and so on. When teachers arrange music education courses, the content of the course can be adjusted over time according to the psychological state of students at each stage and play a role in intervening students' mental health.

Intervention Experiment of Music Education on Students' Mental Health Based on Fuzzy Computing
is paper selects 10 postgraduates and 10 college students as subjects and conducts experimental research on music education intervention for subjects. e mental health status of the participants is measured by using the mental health diagnostic test, including learning anxiety, interpersonal sensitivity, depression tendency, anxiety tendency, and impulsive tendency, and the statistical results of the two tests before and after the test are compared and analyzed. e comparison of students' mental health level with the highscore reference standard is shown in Table 2.
Learning anxiety: after the music education intervention, the students' learning anxiety is measured and compared with the data before the intervention.
e experimental results are shown in Table 3 and Figure 3.
As shown in Table 3 and Figure 3, regarding the students' learning anxiety, before the music education intervention, the confidence interval of postgraduates' learning anxiety is   12.44 ± 1.48 and the average is 13.03. e confidence interval of the learning anxiety of college students is 9.57 ± 0.59, and the average value is 9.05. e two groups of data are significantly higher than the high-score reference standard. e students are facing heavy learning pressure.
is is not conducive to the physical and mental development of students. After using music education to intervene students' mental health, the average learning anxiety of postgraduates is 8.43, which is still higher than the high-score reference standard, but significantly lower than before the intervention. e learning anxiety of college students dropped to 6.2 after the intervention, which has been reduced to lower than the high-score reference standard. is shows that music education has obvious effect on students' mental health. Music education can adjust bad emotions and cultivate healthy emotions. By providing music education courses, creating music appreciation environment, and organizing music practice activities and other forms of music education activities, it can bring students a relaxed and happy mood. Music with free rhythm and fast changing rhythm can be taught in the classroom with emphasis. is kind of music is emotionally charged, conveying passionate and cheerful emotions. is kind of music can help relieve or ease the pressure brought by learning.
Interpersonal sensitivity: after the music education intervention, the students' interpersonal sensitive issues are measured and compared with the data before the intervention. e experimental results are shown in Table 4 and Figure 4.
For interpersonal sensitivity issues, the average of postgraduates' interpersonal sensitivity is 7.38, which is slightly lower than the high-score reference standard. e average value of college students' interpersonal sensitivity is 10.98. e higher value indicates that college students are more troubled with interpersonal communication problems. Inability to integrate into groups, social fears, and other problems may be faced. After using music education to intervene students' mental health, the sensitivity of interpersonal communication in both groups is significantly reduced. e average of postgraduates drops to 5.67, and the average of college students drops to 7.41. Both groups of data are lower than the high-score reference standard. Music education has greatly improved students' interpersonal problems. Music education can overcome barriers between people and promote harmony between people. Activities such as music groups, concerts, music salons, and music competitions have a positive impact on the psychology of students and allow them to break down isolation, share College students Before the intervention 9.57 ± 0.59 9.5 After the intervention 6.32 ± 0.47 6.2 Mathematical Problems in Engineering themselves, and improve interpersonal harmony. When organizing these events, cheerful and lively music can be chosen. is kind of music is lively, agile, free, and easy. It can put the listener into a happy atmosphere, relax the body and mind naturally, reduce students' nervousness when facing crowds, and better conduct interpersonal exchanges. Depression tendency: the students' depression tendency is measured after the music education intervention and compared with the data before the intervention. e experimental results are shown in Table 5 and Figure 5.
For students' depression tendency, the confidence interval for depression tendency of postgraduates is 6.59 ± 0.55. e confidence interval of depression tendency of college students is 6.72 ± 0.64, and the average depression tendency of postgraduates and college students is lower than 7 points, which indicates that the depression tendency of students is not high. However, students usually face various pressures such as academic pressure and setback pressure. It may lead to increased depression due to excessive stress. erefore, it is necessary to intervene in the students' psychological state. After using music education to intervene students' mental health, the average depression tendency of students is reduced to about 5. Music education has a significant effect on students' psychological state intervention. For the depression of students, music with free rhythm can be used more in music teaching. Its open and bright tunes, strong rhythmic themes, and strong and powerful styles can introduce students into this intense and bright mood, express their emotions, broaden their minds, and achieve the effect of eliminating depression.
Anxiety tendency: after the music education intervention, the students' anxiety tendency is measured and compared with the data before the intervention. e experimental results are shown in Table 6 and Figure 6.
As shown in Figure 6 and Table 6, before the intervention, the confidence interval of anxiety tendency of postgraduates is 9.39 ± 1.41 and the confidence interval of anxiety tendency of college students is 8.53 ± 1.22, and the average value is higher than 8, which is higher than the highscore reference standard. It shows that students are more prone to anxiety because of the various pressures they usually face and the pressure cannot be relieved. After the psychological intervention in the form of music education, the anxiety of the students is significantly reduced. e confidence interval of anxiety tendency of postgraduates is reduced to 7.14 ± 0.63, and the mean value is reduced to 7.26. e confidence interval of anxiety tendency of college students is reduced to 6.39 ± 0.24, and the mean value is reduced to 6.37. e overall values of the two groups tend to be normal, and music education has a good effect on relieving students' anxiety. e emotions carried by the music itself can affect the mood of the audience. e use of cheerful and lively music in music education can stimulate the spirit of students, eliminate fatigue, and achieve the purpose of relaxing body and mind and relieving anxiety.   Impulsive tendency: after the music education intervention, the students' impulsive tendency is measured and compared with the data before the intervention. e experimental results are shown in Table 7 and Figure 7. e confidence interval of impulsive tendency of postgraduates is 6.46 ± 0.64, and the confidence interval of impulsive tendency of college students is 7.64 ± 0.79, both of which are lower than the high-score reference standard. However, it is still necessary to pay attention to the psychological guidance of students at ordinary times to prevent their impulsive emotions from continuing to increase. After giving music education to students, the average impulsive tendency of postgraduates drops to 4.89. e average of college students' impulsive tendencies drops to 5.23. Compared with the preintervention, there is a significant reduction, and music education has greatly improved the impulsive emotions of students. For students' impulsive problems, they can explain more music with refreshing and comfortable rhythm in class. is kind of music has a soothing style and refreshing and delicate melody. e sound is ethereal, light, and full of picture. It can bring students into the picture expressed by the music and calm the restlessness in their hearts.
Comprehensive level: the students' comprehensive mental health level is obtained by integrating the evaluation results of the students' learning anxiety,   Mathematical Problems in Engineering 7 interpersonal sensitivity, depression tendency, anxiety tendency, and impulsive tendency. e comprehensive mental health level before and after the experiment is compared and analyzed, and the experimental results are shown in Table 8. e total score of the high-score reference standard is 40 points. Before the intervention, the total score of postgraduates' mental health is 41.71, the total score of college students' mental health is 43.42, and the average score of students' mental health is 42.57. e overall score is higher than the high-score reference standard, indicating that the student's mental health is not ideal and needs to be psychologically guided and relieved in time. After using music teaching to intervene students' mental health, the total score of mental health of postgraduates is reduced to 31.26, the total score of mental health of college students is reduced to 30.54, and the average score of students' mental health is 30.9. e overall data have been greatly reduced. e psychological status of the students after the intervention is 0.73 times that before the intervention, and the psychological status of the students has tended to a healthy level. is result supports the purpose of this study and shows that using fuzzy computing to screen out suitable repertoires for music education can effectively intervene in students' mental health. rough the intervention of music education, students can not only relieve stress and enhance self-confidence but also improve their interpersonal skills. Students' selfsatisfaction is also enhanced when they participate in musical activities.
is paper extracts the emotional characteristics of music and uses the fuzzy calculation method to classify the emotion of music to determine the types of music and their corresponding psychological problems that can play a positive role in human mental health. After classifying music by fuzzy algorithm, the curriculum arrangement can be adjusted in time according to the current psychological state of students in music education. is teaching method can not only improve the aesthetic quality of students but also play an effective role in guiding and intervening in students' mental health problems. Experiments show that this form of music education significantly improves the mental health of students and confirms the feasibility of the study. Correct  music education can regulate students' emotions and reduce students' stress. Really effective music can bring a relaxed and pleasant mood to students and improve their mood. Correct music education can enhance students' interpersonal skills and can begin to understand others correctly and comprehensively to care more about and understand others. By holding various music activities, the communication and interaction between students can be enhanced, and in the relaxed and pleasant atmosphere of music, students can better relax, share themselves, and improve interpersonal harmony.

Conclusions
e time students spend at school is an important step in improving their physical and mental health. Also, their mental health is directly related to their academic success and quality of life. In order to adapt to the growing demand and demand for talent training, colleges and universities continue to promote school psychological education, and music education is an important means of intervening in students' mental health. In order to improve the effect of music education on students' mental health intervention, it is necessary to choose suitable music in the process of music education. In this paper, music feature extraction is carried out according to the characteristics of music and then the emotional feature vector is clustered by fuzzy computing, so as to classify music, which can select music corresponding to students' psychological problems in music education and effectively improve students' mental health level. e experiment shows that, after the intervention of music education, the students' psychological status score is 0.73 times that before the intervention, which proves the validity of the research. e introduction of music education has a certain influence on improving students' mental health, but students' psychology is unstable and develops and changes rapidly. erefore, the evaluation of students' mental health in this study can only reflect the students' recent mental health and does not exclude the influence of natural development facts such as adaptability and growth. e music education in this study only explores the influence of music types on students' mental health and does not conduct research on factors such as music education activities or the duration of music courses, and more scientific and detailed  research is needed. However, researching, developing, and implementing a series of steps to improve students' musical skills and techniques can be very beneficial in reducing the occurrence of stressful behaviors, developing and improving social resilience.

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

Conflicts of Interest
e author declares no conflicts of interest.