After the water pollution (WP) incident, it has caused a serious impact on the natural environment, people's health, residents' daily life, and social economy. It is more urgent to promote the economy and environment with high level and quality, which puts forward new requirements for environmental managers. In recent years, the prediction and early warning of water bodies using decision tree (DT) algorithm has received extensive attention. Therefore, this paper adopts the DT algorithm and establishes a WP early warning model (EWM) with the support of electronic information technology (EIT). This model is used to monitor a river reach and water quality indicators, analyze the changes of water quality parameters, and analyze the water quality status. This efficient and accurate prediction and early warning technology is conducive to timely response to WP events, which is of great significance for ecological protection and environmental decision-making.