Abstract

With the rapid development of internet technology, the amount of data generated is also increasing day by day. As a kind of distributed computing, cloud computing has been widely used in the analysis of massive data. With the development of China’s economic construction, the integration of urban and rural areas is constantly improving, and the migrant children in the city are also focused on. After moving into the city, migrant children not only face the pressure from the society but also face the pressure from life, which inevitably affects the physical and mental health of urban migrant children. The education of urban migrant children is also a focus that needs attention. How to integrate into the education environment of urbanization and adjust the learning pressure in the process of education is also worthy of our attention. Therefore, this article analyzes the current status of urban migrant children’s mental health based on cloud computing and data mining algorithm models. Based on the current research status of urban migrant children and the standards of mental health, this paper conducts a survey of middle and high school students in a certain city through questionnaires, then builds a data mining algorithm model to analyze the survey data, and explores the differences in the grades of students’ social identity and the differences in mental health between migrant children and urban children. According to the survey, most of the psychological performances of urban migrant children are very vague. At the same time, there are also some phenomena such as poor adaptability, bad mood, and inferiority complex. During the study period, there are situations such as unwilling to communicate with others, weariness, sensitivity, anxiety, and hostility. The overall incidence of the situation is relatively high in big cities, while the situation of urban children is relatively small.

1. Introduction

Cloud computing is a kind of virtualization technology. In addition to powerful computing power and scalability, it also has the characteristics of high flexibility, high reliability, and on-demand deployment. In recent years, the rapid development of information technology has also promoted the development of cloud computing by leaps and bounds. In scientific research, building algorithm models based on cloud computing can greatly improve research efficiency [1, 2]. In the process of my country’s rapid transformation from the traditional economic development model, labor from rural areas has gradually poured into big cities, and most of them are in the family model, bringing young children to the city. According to the data of the sixth national census, in the previous 10 years, the floating population in the city increased greatly, compared with the fifth national census, and there is a very obvious growth trend [3, 4]. Therefore, migrant children have become a huge group in the city [5, 6].

Because there is a big difference between the daily life of modern urban people and that of rural people in China, mobile children, as the second generation of immigrants, passively flow into the city. In daily life, learning, social environment adaptation, and other aspects, mobile children are constantly adjusting their own psychological environment, but in this process, they will experience some confusion, frustration, and loss. Because of the change of the education mode and the influence of bad family environment, it is easy to cause poor communication with peers under the trend of communication and psychological state [7, 8]. In recent years, the mental health problems of migrant children in China’s cities have gradually been concerned. Some migrant children are in puberty, which is also out of the rebellious stage. In the face of so many puzzles at this critical moment, whether they can sort out their emotional and psychological problems, bear the pressure brought by the mobile life, and adapt to the environment will have a great impact on the future development and mental health of migrant children. The formation of personality has an important impact [9, 10].

The purpose of this article is to study the mental health of urban migrant children, conduct a questionnaire survey of middle and high school students in a certain city, and then establish a data mining algorithm model in a cloud computing environment, so as to analyze the survey data and differentiate the students from their grades. Look at the changes in the psychological status of urban migrant children [11, 12].

2. Data Mining Algorithm Model Construction Based on Cloud Computing

2.1. Cloud Computing Platform

Cloud computing platforms can be divided into three categories: cloud storage platforms that focus on data storage, cloud computing platforms that focus on data processing, and comprehensive cloud computing platforms that take into account both computing and data storage and processing [13, 14].

As a leading cloud service provider in China, Alibaba Cloud has high stability and practicability and has been widely recognized by users. Compared with international competitors, Alibaba Cloud has a relatively strong price advantage with almost the same computing power [15]. Therefore, this article chooses Alibaba Cloud as the cloud computing platform for research.

2.2. K-Means Clustering Algorithm Model

The number of migrant children in cities is increasing year by year. Due to many reasons such as environmental inadaptability, their mental health problems deserve our attention [16]. Conducting research on urban migrant children to find out the factors that cause their mental health problems can provide parents, teachers, and functional departments with a theoretical basis for solving their psychological problems, so as to better protect this group and enable urban migrant children to grow up healthily [17]. K-means algorithm is a classic clustering algorithm for unsupervised learning, which has the advantages of simple thinking, good effect, and easy implementation. It is scientific and practical to analyze the mental health of urban migrant children through the K-means algorithm model [18, 19].(1)Algorithm idea:Divide n samples into k clusters, and then according to the distance formula or other similarity calculation formulas, the other points in the sample are divided into the nearest cluster; then, calculate the average of all objects in the cluster as the new center point. Iterate repeatedly until the objective function converges.(2)Algorithm definition:(3)Algorithm process:Selection of the value:In the traditional K-means algorithm, the number of clusters is required to be determined in advance, but in practice, it is often difficult to determine the value of due to the large amount of data and lack of experience. If the value of is selected too small, it will result in data objects to vary greatly in the same cluster. If the value of is selected too large, the difference between different clusters will be small. At the same time, improper selection of the value will also make the final clustering result fall into the local optimum. This paper selects 10 factors that can reflect the mental health of urban migrant children, such as obsessive-compulsive disorder, depression, and anxiety, as a clustered dataset.Selection of cluster center :The steps of selecting cluster centers: first, calculate the maximum value and minimum value in the sample set, and record where they appear, and then calculate the average rounding to get the cluster center . Then, remove the maximum value and minimum value , select the approximate maximum value and minimum value to obtain the cluster center , and so on; finally, .Calculate the distance between the sample and the center: calculate the distance between the sample and the center , and divide closest to the center into the corresponding clusters.(4)Model establishment:(a)First, enter the survey data of urban migrant children’s mental health problems, check the validity of the data, and normalize the data to ensure the accuracy and reliability of the data. The normalization formula is as follows:(b)Classify the data to ensure that the classified data have strong similarity.(c)Add the classified 10 groups of data to LSTM for training, and use the powerful time-series feature extraction ability of the LSTM neural network to obtain the feature data of urban migrant children’s mental health.(d)Use the improved K-means algorithm to perform clustering and output the classification results.

Definition 1. Define the dataset that needs to be clustered, as shown in the following formula:

Definition 2. (similarity calculation formula). Here, the Euclidean distance formula is selected as the similarity calculation formula, as shown in the following:

Definition 3. Cluster center point, as shown in the following formula:

Definition 4. Convergence conditions, as shown in the following formula:

3. Survey on the Mental Health of Urban Migrant Children Based on Cloud Computing and Data Mining Algorithms

This article uses a questionnaire survey method to conduct research. The questionnaire survey method mainly refers to a scientific exploratory research method that is generally used to collect information by publishing questions to students in writing. The researcher lists the questions that need to be discussed, fills in the content in the form of face-to-face answers or follow-up interviews, and then collects, sorts out, and comprehensively analyzes the questionnaire to obtain a large amount of data which are closely related to this question and information.

3.1. Research Purpose

It is of great significance to promote the development and improvement of the mental health to urban migrant children. Under the tense pace of life in the city, different children will also face different psychological pressures, which will change children’s cognition. How to deal with the possible problems of peer discrimination, inferiority complex, and communication difficulties between families is particularly important. These problems also have a great influence on the formation of children’s future personality. From the perspective of social work, it is the most important work to improve the mental health of migrant children.

3.2. Questionnaire Design
3.2.1. Research Object

According to the survey of two schools in a city, this paper randomly selected the reports of two different grades in junior high school and senior high school. According to the reports of these 352 students, the questionnaire is made. After the link was generated, the head teachers shared it with the class group, and the students filled in it anonymously. A total of 330 valid questionnaires were submitted by the two grades; there were 105 questionnaires for migrant children and 95 questionnaires for urban children; there were 65 questionnaires for migrant children in senior one and 64 questionnaires for urban children.

3.2.2. Research Tools
(1)Social identity form:The social identity of children is investigated by single topic selection. The paper adopts the single question: “you think you are: 1. Rural people. 2. Urban people. 3. Don’t know,” and through such a questionnaire, we investigate the status of urban migrant children on their own identity.(2)Self-rating scale of mental health of middle school students in China:The method used in this scale is five-point scoring, which is divided into 1–5 levels, each of which represents the following: from scratch, occasionally, sometimes, often, and always. It consists of 60 research projects and 10 factors, each of which contains 6 factors. The 10 factors were compulsive symptoms, depression, anxiety, paranoia, interpersonal tension and sensitivity, hostility, learning and stress, psychological disorder, poor adaptability, and out of control. Each factor reflects the following:Compulsive symptoms: these symptoms mainly show whether the subjects repeatedly check and count during the homework, always fear that their test results pass, and other unnecessary assumptions and unnecessary forced symptomsDepression: depression is mainly the subjects feeling monotonous about life, disappointment, and helplessness to their future and prone to negative emotional experience such as crying and psychological upsetAnxiety: anxiety is mainly reflected in the subjects who often show emotional depression and feel very upset, resulting in poor sleep, psychological imbalance, and angerParanoia: the main problems are feeling that others often say their own bad words behind the back, resulting in unwillingness to communicate with others, feeling that others are wrong in doing anything, others are always targeting themselves because they are foreign people, and they want to bully themselvesDeal with tension and sensitivity in relationships: the main characteristics reflected by this factor are that the subjects generally think that others do not want to communicate with themselves and despise themselves, and they are always not understood, demanding and blaming others, believing that others are not friendly to themselves, and are easily hurt by them emotionallyHostility: the main feature is that the subjects cannot control their temper, and there is an impulse to smash things, which can easily cause the excitement and quarrel with othersStudy pressure: it shows that the subjects cannot adapt to the change of the learning mode and feel the difficulty of learning, the pressure is great, they are afraid of teachers, the situation of weariness of learning, the dislike of doing homework, and the fear and boredom of the testPsychological imbalance: the main performance is that the subjects think that teachers and parents will look at themselves differently, and they will feel that other children are better, often compare themselves with other students, and other problemsPoor adaptation: the main problems of this factor are that the subjects cannot adapt to school life, teachers’ teaching methods, and school environment, contact with more new things, and are unwilling to communicate with people and participate in other extracurricular activitiesEmotional imbalance: the emotional imbalance mainly refers to the subject’s emotion which is easy to fluctuate and unstable, which is reflected in the study, which means that the students’ attitude towards teachers, classmates, and parents is unstable and changeable

The main evaluation indexes of the mental health self-evaluation scale are as follows: The average score of 10 factors was below 2, indicating that the mental health was very good; the mental health status was mild in 2–2.99; in 3–3.99, it indicates that there are some problems in mental health status; between 4 and 4.99, it indicates that mental health problems are serious and need to be dealt with as soon as possible; if it is 5 points, it means that mental health problems are very serious and should be paid great attention to.

3.2.3. Data Processing

Use SPSS 13.0 for data management and statistical analysis. First, use exploratory analysis to filter the suspicious data so that the complex data can be kept true. Second, analyze the variance of the remaining data, and visually compare the data.

3.2.4. Reliability of the Questionnaire

In order to test the reliability and stability of the questionnaire, firstly, the variance of the questionnaire results was calculated, and then the reliability of the returned questionnaire was tested by the method of “half-half reliability.” Using formulas (6)–(8) to calculate the reliability coefficient, the correlation coefficient of the questionnaire is q = 0.883. According to the theories and methods of modern scientific research, when the reliability of a test reaches 0.80 or more, it can be regarded as a test with higher reliability. The test results confirm that the questionnaire is reliable.

4. Research Results and Discussion

4.1. Differences in Social Identity

In order to better understand the real situation of urban migrant children in different grades, this paper analyzes the three levels of social identity of urban migrant children, and the results are shown in Table 1 and Figure 1: there are 65 junior high school students who think they are rural people, accounting for 32.34% of the total number of junior high school students in the survey, 41 junior high school students who think they are urban people, accounting for 20.4% of the total number of junior high school students in the survey, and 95 students with vague identification, accounting for 47.26% of the total number of junior high school students in the survey. There are 24 senior high school students who think they are rural people, accounting for 18.61% of the total number of senior high school students. There are 37 senior high school students who think they are urban people, accounting for 28.38% of the total number of senior high school students. There are 68 senior high school students who have vague identification, accounting for 53.1% of the total number of senior high school students.

It can be seen that the level of social identity of migrant children in different grades is different, as shown in Figure 1. The characteristics are as follows: the migrant children in the first grade of junior high school think that they are rural people more than those in the first grade of senior high school; that is, with the growth of children’s age, this concept will decline. The migrant children in grade one are higher than those in grade one in urban identity; that is, with the growth of grade, the identity of urban people is on the rise. In terms of unclear identity, the migrant children in grade one of junior high school think that they are rural people, lower than those in senior high school.

4.2. Differences in Mental Health between Migrant Children and Urban Children

In order to study the difference in mental health between urban children and migrant children, the independent sample t-test method was used to compare the total average mental health scores and ten factors of urban migrant children and urban children. The results in Table 2 indicate the following: Migrant children and urban children have differences in emotional processing and interpersonal relationship processing, migrant children will show sensitivity, anxiety, paranoia, hostility, psychological imbalance, and learning pressure, but there is no significant statistical difference between the total average score. It can be seen from Figure 2 that the total average score of migrant children in maladjustment, emotional imbalance, interpersonal tension and sensitivity, anxiety, paranoia, hostility, psychological imbalance, and learning pressure is higher than that of urban children, which also shows that the mental health of migrant children is lower than that of urban children to a certain extent, and the mental health of urban children is better.

4.3. Analysis of Migrant Children’s Mental Health
(1)Lower self-esteem level:In actual life, migrant children have no way to express their self-esteem clearly, but they will show a sense of loss when their self-esteem is hurt. With the growth of their age, it is possible that those acts of discrimination and hurting their self-esteem will make their body and mind suffer a great deal, leading to the increase of their sense of inferiority and the emergence of psychological problems. Migrant children, because they are still young and immature, tend to imagine themselves as they say, which is easy to confuse their own positioning and has a great impact on the correct self-cognition [20, 21]. To sum up, self-esteem is the basic component of self-cognition to urban migrant children, which reflects a correct positioning and cognition of the individual. Self-esteem refers to the individual itself, which does not include the individual’s sensory and evaluation of others, but may be affected by the evaluation from others. Self-esteem is an important form of the development of good mental health. People with strong self-esteem tend to show their own advantages and can naturally accept their own disadvantages. Maintaining high self-esteem is more conducive to the formation of good self-worth, and they can live a positive and enthusiastic life.(2)Social maladjustment:Migrant children move from the countryside to the city, especially in the first-tier cities such as Beijing and Shanghai. As the economic level and lifestyle of cities are very different from those of rural areas, differences in living environment will affect migrant children. They will affect them in a subtle way. When migrant children are deeply influenced by the material life of the city, they will imagine a real city person to live like that and learn to accept all this, and their thoughts will become urbanized. Due to the differences in culture, lifestyle, values, and so on, migrant children will need to adapt to these changes through self-regulation when they feel these changes and constantly change their behavior, ideas, and so on, so as to make them better adapt to the rhythm of the city. This process can be defined as the process of adapting to the society. When migrant children perceive the impact of urban culture, they may have a sense of frustration and inferiority, such as being excluded and loneliness rising. Then, they will have psychological discomfort, and their social adaptation will also be biased one after another.(3)Sensitive discrimination:From the perspective of the discriminated, discrimination is mainly a phenomenon produced by perception. The discriminated can obviously feel the negative impact and the harm brought by discrimination. It is very unfair to treat a person with this perception of discrimination. It is a very unreasonable social system. The manifestation of discrimination may be expressed by actual action, which is very harmful to a person. If urban migrant children encounter discrimination or exclusion, it will cause great harm to them physically and mentally.

5. Conclusions

After the above research, we can draw the following conclusions. From the questionnaire survey, it is found that the problem of unclear social identity of migrant children in this city is universal and ambiguous. There is no significant difference in the ten factors of mental health between urban migrant children and urban children. However, urban migrant children will have sensitivity, anxiety, paranoia, hostility, psychological imbalance, learning pressure, and other problems in adaptability, emotional processing, and interpersonal relationship, and the total average score will be greater than that of urban children, which indicates that the mental health of urban children is better than that of migrant children. We need to help migrant children adapt to the new environment from the heart and accept the new environment, including new culture, new customs, new campus, and new life. Only when they accept the new environment from the heart can they better adapt to the environment and develop better in the city.

Data Availability

Data sharing is not applicable to this article as no datasets were generated or analysed during the current study.

Conflicts of Interest

The author declares that there are no conflicts of interest.

Acknowledgments

This paper is the periodic research results of “Research on the Construction of Relief System for Difficult Children in Shandong Province from the Concept of Multiple Co-governance” (project no. 2020VC12028), a Key Scientific Research Project of Colleges and Universities in Shandong Province in 2020.