首页|期刊导航|净水技术|控制器嵌入Transformer模型的水厂加氯与余氯控制方法

控制器嵌入Transformer模型的水厂加氯与余氯控制方法OA

Controller-Embedded Transformer Model for Chlorination and Chlorine Residual Control in WTP

中文摘要英文摘要

[目的]为保证城市水厂出厂水余氯浓度的稳定性,减少水质波动对消毒效果和药剂经济性的影响,本文提出一种基于智能控制的加药优化方法.[方法]针对传统人工加药存在响应滞后、预测导向模型难以直接约束控制目标以及模型预测控制建模复杂等问题,本文设计了一种控制器嵌入的Transformer模型.该模型采用"编码器-控制器-解码器"架构,其中控制器直接生成未来加药序列,解码器评估对应的余氯响应,并通过以控制目标区间为核心的复合损失函数实现端到端训练.[结果]模型在某水厂实测数据集上进行了验证.试验结果表明,该方法能够有效抑制余氯波动,预测余氯质量浓度的标准差为0.004 6 mg/L,明显低于人工加药和传统预测方法;同时在保证水质达标的前提下,平均节省加药量约7.25%,年运行成本下降约11.6万元.[结论]控制器嵌入的Transformer模型不仅提升了余氯控制的精度和稳定性,而且具有良好的经济性和鲁棒性,可为城市水厂的智能化消毒控制提供参考和技术支持.

[Objective]To ensure the stability of residual chlorine concentration in municipal water treatment plant(WTP)and to reduce the impact of water quality fluctuations on disinfection efficiency and chemical economics.This paper proposes an optimization method for drug addition based on intelligent control.[Methods]In response to the problems of traditional manual drug addition,such as response lag,the difficulty of directly constraining control targets with prediction-oriented models,and the complexity of model predictive control modeling,this paper designed a Transformer model with controller embedding.The model adopted an encoder-controller-decoder framework,where the controller directly generated future dosing sequences and the decoder evaluated the corresponding chlorine response.A composite loss function based on the target interval of residual chlorine was designed to enable end-to-end training.[Results]Validation was carried out using real operational data from a WTP.The proposed method significantly suppressed fluctuations in chlorine residual mass concentration,with a prediction standard deviation of 0.004 6 mg/L,and reduced chemical consumption by approximately 7.25%while maintaining water quality compliance,annual operating costs decreased by approximately 116 000 yuan.[Conclusion]The controller-embedded Transformer model improves the accuracy and stability of chlorine residual control and demonstrates good economic efficiency and robustness,providing a references and technical supports for intelligent disinfection control in municipal WTPs.

陈欧翔;王洪翠;李霖;吴晔

浙江理工大学信息科学与工程学院<网络空间安全学院>,浙江 杭州 310018||浙江水利水电学院计算机科学与技术学院,浙江 杭州 310018浙江水利水电学院计算机科学与技术学院,浙江 杭州 310018||浙江水文化研究所,浙江 杭州 310018浙江理工大学信息科学与工程学院<网络空间安全学院>,浙江 杭州 310018浙江正泰中自控制工程有限公司,浙江 杭州 310018

建筑与水利

Transformer模型余氯控制水厂加药节药策略加氯预测

Transformer modelchlorine residual controlchemical dosing of WTPconservation solutionchlorination addition prediction

《净水技术》 2026 (3)

156-164,173,10

浙江省自然科学基金联合基金(LZJWZ23E090001)浙江水利水电学院校级科研项目资助(JBGS2025017,XKY2022045)

10.15890/j.cnki.jsjs.2026.03.016

评论