Transforming Prediction into Decision: Leveraging Transformer-Long Short-Term Memory Networks and Automatic Control for Enhanced Water Treatment Efficiency and Sustainability

The study addresses the critical issue of accurately predicting ammonia nitrogen (NH<sub>3</sub>-N) concentration in a sequencing batch reactor (SBR) system, achieving reduced consumption through automatic control technology. NH<sub>3</sub>-N concentration serves as a key ind...

Full description

Saved in:
Bibliographic Details
Main Authors: Cheng Qiu, Qingchuan Li, Jiang Jing, Ningbo Tan, Jieping Wu, Mingxi Wang, Qianglin Li
Format: Article
Language:English
Published: MDPI AG 2025-03-01
Series:Sensors
Subjects:
Online Access:https://www.mdpi.com/1424-8220/25/6/1652
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1850280401682038784
author Cheng Qiu
Qingchuan Li
Jiang Jing
Ningbo Tan
Jieping Wu
Mingxi Wang
Qianglin Li
author_facet Cheng Qiu
Qingchuan Li
Jiang Jing
Ningbo Tan
Jieping Wu
Mingxi Wang
Qianglin Li
author_sort Cheng Qiu
collection DOAJ
description The study addresses the critical issue of accurately predicting ammonia nitrogen (NH<sub>3</sub>-N) concentration in a sequencing batch reactor (SBR) system, achieving reduced consumption through automatic control technology. NH<sub>3</sub>-N concentration serves as a key indicator of treatment efficiency and environmental impact; however, its complex dynamics and the scarcity of measurements pose significant challenges for accurate prediction. To tackle this problem, an innovative Transformer-long short-term memory (Transformer-LSTM) network model was proposed, which effectively integrates the strengths of both Transformer and LSTM architectures. The Transformer component excels at capturing long-range dependencies, while the LSTM component is adept at modeling sequential patterns. The innovation of the proposed methodology resides in the incorporation of dissolved oxygen (DO), electrical conductivity (EC), and oxidation-reduction potential (ORP) as input variables, along with their respective rate of change and cumulative value. This strategic selection of input features enhances the traditional utilization of water quality indicators and offers a more comprehensive dataset for prediction, ultimately improving model accuracy and reliability. Experimental validation on NH<sub>3</sub>-N datasets from the SBR system reveals that the proposed model significantly outperforms existing advanced methods in terms of root mean squared error (RMSE), mean absolute error (MAE), and coefficient of determination (R<sup>2</sup>). Furthermore, by integrating real-time sensor data with the Transformer-LSTM network and automatic control, substantial improvements in water treatment processes were achieved, resulting in a 26.9% reduction in energy or time consumption compared with traditional fixed processing cycles. This methodology provides an accurate and reliable tool for predicting NH<sub>3</sub>-N concentrations, contributing significantly to the sustainability of water treatment and ensuring compliance with emission standards.
format Article
id doaj-art-28971da8ca9d405e80877762ea9da37a
institution OA Journals
issn 1424-8220
language English
publishDate 2025-03-01
publisher MDPI AG
record_format Article
series Sensors
spelling doaj-art-28971da8ca9d405e80877762ea9da37a2025-08-20T01:48:46ZengMDPI AGSensors1424-82202025-03-01256165210.3390/s25061652Transforming Prediction into Decision: Leveraging Transformer-Long Short-Term Memory Networks and Automatic Control for Enhanced Water Treatment Efficiency and SustainabilityCheng Qiu0Qingchuan Li1Jiang Jing2Ningbo Tan3Jieping Wu4Mingxi Wang5Qianglin Li6Department of Material and Environmental Engineering, Chengdu Technological University, Chengdu 611730, ChinaDepartment of Material and Environmental Engineering, Chengdu Technological University, Chengdu 611730, ChinaDepartment of Material and Environmental Engineering, Chengdu Technological University, Chengdu 611730, ChinaDepartment of Material and Environmental Engineering, Chengdu Technological University, Chengdu 611730, ChinaDepartment of Material and Environmental Engineering, Chengdu Technological University, Chengdu 611730, ChinaSchool of Chemical and Environmental Engineering, Wuhan Institute of Technology, Wuhan 430070, ChinaDepartment of Material and Environmental Engineering, Chengdu Technological University, Chengdu 611730, ChinaThe study addresses the critical issue of accurately predicting ammonia nitrogen (NH<sub>3</sub>-N) concentration in a sequencing batch reactor (SBR) system, achieving reduced consumption through automatic control technology. NH<sub>3</sub>-N concentration serves as a key indicator of treatment efficiency and environmental impact; however, its complex dynamics and the scarcity of measurements pose significant challenges for accurate prediction. To tackle this problem, an innovative Transformer-long short-term memory (Transformer-LSTM) network model was proposed, which effectively integrates the strengths of both Transformer and LSTM architectures. The Transformer component excels at capturing long-range dependencies, while the LSTM component is adept at modeling sequential patterns. The innovation of the proposed methodology resides in the incorporation of dissolved oxygen (DO), electrical conductivity (EC), and oxidation-reduction potential (ORP) as input variables, along with their respective rate of change and cumulative value. This strategic selection of input features enhances the traditional utilization of water quality indicators and offers a more comprehensive dataset for prediction, ultimately improving model accuracy and reliability. Experimental validation on NH<sub>3</sub>-N datasets from the SBR system reveals that the proposed model significantly outperforms existing advanced methods in terms of root mean squared error (RMSE), mean absolute error (MAE), and coefficient of determination (R<sup>2</sup>). Furthermore, by integrating real-time sensor data with the Transformer-LSTM network and automatic control, substantial improvements in water treatment processes were achieved, resulting in a 26.9% reduction in energy or time consumption compared with traditional fixed processing cycles. This methodology provides an accurate and reliable tool for predicting NH<sub>3</sub>-N concentrations, contributing significantly to the sustainability of water treatment and ensuring compliance with emission standards.https://www.mdpi.com/1424-8220/25/6/1652ammonia nitrogen predictionsequencing batch reactortransformer networklong short-term memory networkautomatic control
spellingShingle Cheng Qiu
Qingchuan Li
Jiang Jing
Ningbo Tan
Jieping Wu
Mingxi Wang
Qianglin Li
Transforming Prediction into Decision: Leveraging Transformer-Long Short-Term Memory Networks and Automatic Control for Enhanced Water Treatment Efficiency and Sustainability
Sensors
ammonia nitrogen prediction
sequencing batch reactor
transformer network
long short-term memory network
automatic control
title Transforming Prediction into Decision: Leveraging Transformer-Long Short-Term Memory Networks and Automatic Control for Enhanced Water Treatment Efficiency and Sustainability
title_full Transforming Prediction into Decision: Leveraging Transformer-Long Short-Term Memory Networks and Automatic Control for Enhanced Water Treatment Efficiency and Sustainability
title_fullStr Transforming Prediction into Decision: Leveraging Transformer-Long Short-Term Memory Networks and Automatic Control for Enhanced Water Treatment Efficiency and Sustainability
title_full_unstemmed Transforming Prediction into Decision: Leveraging Transformer-Long Short-Term Memory Networks and Automatic Control for Enhanced Water Treatment Efficiency and Sustainability
title_short Transforming Prediction into Decision: Leveraging Transformer-Long Short-Term Memory Networks and Automatic Control for Enhanced Water Treatment Efficiency and Sustainability
title_sort transforming prediction into decision leveraging transformer long short term memory networks and automatic control for enhanced water treatment efficiency and sustainability
topic ammonia nitrogen prediction
sequencing batch reactor
transformer network
long short-term memory network
automatic control
url https://www.mdpi.com/1424-8220/25/6/1652
work_keys_str_mv AT chengqiu transformingpredictionintodecisionleveragingtransformerlongshorttermmemorynetworksandautomaticcontrolforenhancedwatertreatmentefficiencyandsustainability
AT qingchuanli transformingpredictionintodecisionleveragingtransformerlongshorttermmemorynetworksandautomaticcontrolforenhancedwatertreatmentefficiencyandsustainability
AT jiangjing transformingpredictionintodecisionleveragingtransformerlongshorttermmemorynetworksandautomaticcontrolforenhancedwatertreatmentefficiencyandsustainability
AT ningbotan transformingpredictionintodecisionleveragingtransformerlongshorttermmemorynetworksandautomaticcontrolforenhancedwatertreatmentefficiencyandsustainability
AT jiepingwu transformingpredictionintodecisionleveragingtransformerlongshorttermmemorynetworksandautomaticcontrolforenhancedwatertreatmentefficiencyandsustainability
AT mingxiwang transformingpredictionintodecisionleveragingtransformerlongshorttermmemorynetworksandautomaticcontrolforenhancedwatertreatmentefficiencyandsustainability
AT qianglinli transformingpredictionintodecisionleveragingtransformerlongshorttermmemorynetworksandautomaticcontrolforenhancedwatertreatmentefficiencyandsustainability