Abstract
To effectively control and treat river water pollution, it is very critical to establish a water quality prediction system. Combined Principal Component Analysis (PCA), Genetic Algorithm (GA) and Back Propagation Neural Network (BPNN), a hybrid intelligent algorithm is designed to predict river water quality. Firstly, PCA is used to reduce data dimensionality. 23 water quality index factors can be compressed into 15 aggregative indices. PCA improved effectively the training speed of follow-up algorithms. Then, GA optimizes the parameters of BPNN. The average prediction rates of non-polluted and polluted water quality are 88.9% and 93.1% respectively, the global prediction rate is approximately 91%. The water quality prediction system based on the combination of Neural Networks and Genetic Algorithms can accurately predict water quality and provide useful support for real-time early warning systems.
Introduction
Predicting river water quality is a complex task due to the high number of variables involved, such as pH, dissolved oxygen, and various chemical concentrations. These factors often exhibit non-linear and "recessive" relationships. While Back Propagation Neural Networks (BPNN) are commonly used, they frequently encounter two major hurdles: the "local minimum" trap, where training stalls at suboptimal solutions, and dimensionality overload, where excessive input variables slow training and introduce noise.
Methodology
The researchers developed a three-stage hybrid pipeline to address these challenges:
- Dimensionality Reduction (PCA): Principal Component Analysis was employed to compress 23 original water quality indices into 15 "aggregative indices." This process retained over 87% of the original information while eliminating redundant correlations, such as the high dependency between COD and NH3-N.
- Global Optimization (GA): To avoid the local minimum trap, a Genetic Algorithm (GA) was used to evolve the optimal initial weights and thresholds for the neural network. This ensures the model begins training from a state likely to reach a global optimum.
- Prediction (BPNN): A 15-8-1 neural network architecture (15 inputs, 8 hidden neurons, 1 output) was implemented to classify water samples as "polluted" or "non-polluted."
The study utilized a dataset of 2,680 samples from rivers entering Taihu Lake, China. The data was split into 2,000 training samples and 680 testing samples.
Results and Discussion
The hybrid system achieved a global prediction accuracy of approximately 91%. Specifically, the model demonstrated a 93.1% accuracy rate for polluted water and 88.9% for non-polluted water. This slight discrepancy is likely due to the distinct characteristics of heavy pollution recorded during the 2007 blue-green algae bloom in Taihu Lake, which provided robust training features.
The integration of GA proved crucial for stability. Without GA, the BPNN's performance fluctuated significantly across trials. With GA optimization, the Mean Squared Error (MSE) was consistently lower and more stable.
In head-to-head comparisons, the GA-BPNN consistently outperformed the standard model. For instance, in one trial, the GA-optimized model reached 89.1% accuracy (MSE: 0.0036), whereas the standard BPNN only achieved 71.1% (MSE: 0.0620).
Conclusion
The hybrid PCA-GA-BPNN framework provides a reliable and accurate tool for river water quality prediction. By reducing dimensionality and optimizing initial network parameters, the system overcomes traditional neural network limitations. Future research could expand this binary classification model into a multi-class system and test its portability across different river systems with varying industrial profiles.
Summary updated