SCI和EI收录∣中国化工学会会刊

中国化学工程学报 ›› 2025, Vol. 87 ›› Issue (11): 405-417.DOI: 10.1016/j.cjche.2025.06.028

• • 上一篇    

Prediction of wastewater treatment plant influent quality based on discrete wavelet transform and convolutional enhanced transformer

Lili Ma1, Danxia Li1, Jinrong He1, Zhirui Niu2, Zhihua Feng3   

  1. 1. School of Mathematics and Computer Science, Yan'an University, Yan'an 716000, China;
    2. School of Petroleum and Environment Engineering, Yan'an University, Yan'an 716000, China;
    3. Yan'an CECEP Sewage Treatment Co., Ltd., Yan'an 716000, China
  • 收稿日期:2025-02-20 修回日期:2025-04-28 接受日期:2025-06-06 出版日期:2025-11-28 发布日期:2025-08-19
  • 通讯作者: Danxia Li,E-mail:ldx@yau.edu.cn
  • 基金资助:
    This research is funded by the Natural Science Basic Research Program of Shaanxi (2024JCYBMS576), and the National Natural Science Foundation of China (62366053).

Prediction of wastewater treatment plant influent quality based on discrete wavelet transform and convolutional enhanced transformer

Lili Ma1, Danxia Li1, Jinrong He1, Zhirui Niu2, Zhihua Feng3   

  1. 1. School of Mathematics and Computer Science, Yan'an University, Yan'an 716000, China;
    2. School of Petroleum and Environment Engineering, Yan'an University, Yan'an 716000, China;
    3. Yan'an CECEP Sewage Treatment Co., Ltd., Yan'an 716000, China
  • Received:2025-02-20 Revised:2025-04-28 Accepted:2025-06-06 Online:2025-11-28 Published:2025-08-19
  • Contact: Danxia Li,E-mail:ldx@yau.edu.cn
  • Supported by:
    This research is funded by the Natural Science Basic Research Program of Shaanxi (2024JCYBMS576), and the National Natural Science Foundation of China (62366053).

摘要: Accurate prediction of wastewater treatment plants (WWTPs) influent quality can provide valuable decision-making support to facilitate operations and management. However, since existing methods overlook the data noise generated from harsh operations and instruments, while the local feature pattern and long-term dependency in the wastewater quality time series, the prediction performance can be degraded. In this paper, a discrete wavelet transform and convolutional enhanced Transformer (DWT-CeTransformer) method is developed to predict the influent quality in WWTPs. Specifically, we perform multi-scale analysis on time series of wastewater quality using discrete wavelet transform, effectively removing noise while preserving key data characteristics. Further, a tightly coupled convolutional-enhanced Transformer model is devised where convolutional neural network is used to extract local features, and then these local features are combined with Transformer's self-attention mechanism, so that the model can not only capture long-term dependencies, but also retain the sensitivity to local context. In this study, we conduct comprehensive experiments based on the actual data from a WWTP in Shaanxi Province and the simulated data generated by BSM2. The experimental results show that, compared to baseline models, DWT-CeTransformer can significantly improve the prediction performance of influent COD and -N. Specifically, MSE, MAE, and RMSE improve by 78.7%, 79.5%, and 53.8% for COD, and 79.4%, 70.2%, and 54.5% for -N. On simulated data, our method shows strong improvements under various weather conditions, especially in dry weather, with MSE, MAE, and RMSE for COD improving by 68.9%, 48.0%, and 44.3%, and for -N by 78.4%, 54.8%, and 53.2%.

关键词: Wastewater treatment plant, Influent quality prediction, Discrete wavelet transform, Transformer, Local feature, Long-term dependencies

Abstract: Accurate prediction of wastewater treatment plants (WWTPs) influent quality can provide valuable decision-making support to facilitate operations and management. However, since existing methods overlook the data noise generated from harsh operations and instruments, while the local feature pattern and long-term dependency in the wastewater quality time series, the prediction performance can be degraded. In this paper, a discrete wavelet transform and convolutional enhanced Transformer (DWT-CeTransformer) method is developed to predict the influent quality in WWTPs. Specifically, we perform multi-scale analysis on time series of wastewater quality using discrete wavelet transform, effectively removing noise while preserving key data characteristics. Further, a tightly coupled convolutional-enhanced Transformer model is devised where convolutional neural network is used to extract local features, and then these local features are combined with Transformer's self-attention mechanism, so that the model can not only capture long-term dependencies, but also retain the sensitivity to local context. In this study, we conduct comprehensive experiments based on the actual data from a WWTP in Shaanxi Province and the simulated data generated by BSM2. The experimental results show that, compared to baseline models, DWT-CeTransformer can significantly improve the prediction performance of influent COD and -N. Specifically, MSE, MAE, and RMSE improve by 78.7%, 79.5%, and 53.8% for COD, and 79.4%, 70.2%, and 54.5% for -N. On simulated data, our method shows strong improvements under various weather conditions, especially in dry weather, with MSE, MAE, and RMSE for COD improving by 68.9%, 48.0%, and 44.3%, and for -N by 78.4%, 54.8%, and 53.2%.

Key words: Wastewater treatment plant, Influent quality prediction, Discrete wavelet transform, Transformer, Local feature, Long-term dependencies