Dynamic risk identification of river water pollution based on multi-dimensional anomaly detection
摘要
为快速、准确地识别河流水污染潜在风险,耦合双向长短期记忆网络(Bi-LSTM)和孤立森林(IF)算法,构建了基于 Bi-LSTM-IF 算法的河流水污染风险识别模型,分析了河流水质实时变化趋势和多维异常特征.利用松花江流域阿什河实测数据,选取浊度、总磷及氨氮(NH3-N)作为表征风险的多维核心指标,采用局部受试者工作特征(pROC)曲线验证了 Bi-LSTM-IF 算法的异常检测性能,并对比了 Bi-LSTM-IF 算法与基于 Bi-LSTM 预测和单类支持向量机分类的异常检测算法的性能,结果表明:Bi-LSTM-IF 算法在浊度-NH3-N 二维异常检测模式下具有良好的异常检测性能,pROC 曲线的 AUC 值最大为 0.92~0.96,其最佳检出率为 0.855~0.942,误报率仅为 0.056~0.087;多维异常检测模式的性能总体上优于一维异常检测模式,Bi-LSTM-IF 算法可有效检测多维水质异常特征,基于 Bi-LSTM-IF 算法的河流水污染风险识别模型可提高河流水污染风险识别的准确性和检测效率.
To quickly and accurately identify potential risks of river water pollution,the bi-directional long short-term memory network(Bi-LSTM)and the isolation forest(IF)algorithm were integrated to develop a Bi-LSTM-IF algorithm-based river water pollution risk identification model for analysis of the real-time change trend of river water quality and its multi-dimensional anomaly features.Based on the monitoring data of the Ash River in the Songhua River Basin,turbidity,total phosphorus and ammonia nitrogen(NH3-N)were selected as the multi-dimensional core indicators to represent the risk.The partial receiver operating characteristic(pROC)curve was used to verify the anomaly detection performance of the Bi-LSTM-IF algorithm,and the anomaly detection performance of the Bi-LSTM-IF algorithm was compared with those of the Bi-LSTM prediction-based and the one-class support vector machine classification-based anomaly detection algorithms.The results demonstrate that,compared with other anomaly detection algorithms,the Bi-LSTM-IF algorithm exhibits excellent anomaly detection performance in the two-dimensional turbidness-NH3-N anomaly detection pattern,with the maximum AUC value of the pROC curve ranging from 0.92 to 0.96.Its optimal true positive rate is 0.855 to 0.942,and the false positive rate is only 0.056 to 0.087.The performance of the multi-dimensional anomaly detection pattern is generally superior to that of the one-dimensional anomaly detection pattern.The Bi-LSTM-IF algorithm can effectively detect the multi-dimensional water quality anomaly features,and the Bi-LSTM-IF algorithm-based river water pollution risk identification model can enhance the accuracy and detection efficiency of river water pollution risk identification.