With the rapid development of industry and technology in modern society, people's life has become more convenient. However, the industrial development and the uncontrolled discharge of pollution in the daily life of residents have also led to the increasingly serious problem of water pollution. At the same time, the further improvement of people's living standards also makes more and more people pay more and more attention to their health, which also makes the water pollution problem more and more people pay attention to. The prevention and treatment of drinking water and domestic water pollution in the ecological environment has also become one of the focus issues in the relevant research fields. The pollutants in the existing residential water sources present a variety of situations, which also makes the prevention and treatment of water pollution a relatively difficult task at present. First, various pollutants in the water source were analyzed and classified. Then, appropriate pollution control measures were selected to ensure that the water source can be treated in a short time to meet the standard of residential water use. Therefore, a variety of emerging technologies have been applied to the prevention and treatment of water pollution, of which the intelligent identification technology is the most applicable. In the prevention and treatment mode of water source pollutants under the intelligent identification technology, multiple types of intelligent sensor equipment were usually used to collect, analyze and process the environmental information around the water source. Then, the quality of water source was analyzed automatically through Analytic Hierarchy Process (AHP), so as to select appropriate pollution treatment technology for it. In this paper, a new type of water source pollution prevention and treatment engineering device was proposed through intelligent identification technology and AHP algorithm. Through this device, pollution control can be completed automatically. Through a series of experiments, it was determined that the performance of this new type of engineering device was improved by about 24% on average compared with the existing water pollution treatment.