As an indispensable part of cities, wastewater treatment plants play an important role in environmental protection and urbanization. However, the promotion of wastewater treatment plants has been consistently hindered by residents' negative stereotypes and rejections, which is called "Not-In-My-Back-Yard" (NIMBY) effect. This study collected the first-hand data with the residents residing within 3 kilometers of 9 wastewater treatment plants in Xi'an, China through a survey. Keyword co-occurrence network analysis was conducted and the results illustrate that residents have stereotypes toward wastewater treatment plants. There are two types of residents' stereotypes toward wastewater treatment plants: positive and negative. The positive stereotypes of wastewater treatment plants in turn can be subdivided into the three categories of treatment technologies, treatment results, and social impacts. But the negative stereotypes didn't demonstrate meaningful categories. We also tried to identify the influencing factors that cause residents' stereotypes. The distance from residents' residence to the wastewater treatment plants has impacts on the stereotypes of residents' who reside within 1000 meters of the wastewater treatment plant: the farther from the wastewater treatment plants their residence is, the more positive their stereotypes are. We also found that the more educated the participants are, the more positive stereotypes of wastewater treatment plants they have. Moreover, residents' stereotypes toward wastewater treatment plants are more influenced by formal education. Non-formal education and informal learning probably have less influence on the promotion of wastewater treatment plants. Therefore, we propose to incorporate environmental education for sustainable development into formal education to increase residents' acceptance of wastewater treatment plants.