The article uses the Q-learning algorithm to investigate the development of ecological language of college students in some cities, and analyzes the results of the investigation. Including the analysis of the language ability of the university, the analysis of the impact of the language environment of the students on the language ability, the analysis of the difference in language use and the analysis of the difference in language behavior. On this basis, summarizing the usage habits and behaviors of some students and giving solutions. In terms of social factors, analyzing the status quo of students and the Mandarin mode of college students. Analyzing the causes of college students’ “bilingualism” problems from the perspectives of sociolinguistics and psycholinguistics, improving language proficiency, and providing targeted solutions from the three perspectives of school, family, and individuals. The results show that only 9.9% of the respondents think their Mandarin is “very good,” only 19% of the respondents who can speak a little Mandarin think that their Mandarin is “very good.” Mandarin is very fluent, and the corresponding respondents rated their Mandarin as “very good” accounting for 32.1%. It can be seen that the Mandarin level of the surrounding contact objects has a great influence on the Mandarin level of the surveyed persons, and there is a positive correlation.