Abstract
This paper presents AquaFlowNet, a machine learning-based algorithm for real-time wastewater flow management. It addresses critical challenges related to operational efficiency, resource optimization, and environmental sustainability. Wastewater management systems require innovative methods for dynamic and efficient flow control to meet growing demands driven by urbanization, climate change, and increasingly stringent regulations. However, most existing methods rely on static or rule-based models, which lack the flexibility to handle fluctuating flow rates, variable environmental loads, and unforeseen disruptions. These limitations often lead to inefficiencies such as energy wastage, treatment delays, and overflow incidents, negatively impacting system performance and sustainability.AquaFlowNet leverages state-of-the-art machine learning algorithms to analyze real-time data from sensors, forecast flow variations, and optimize wastewater treatment processes. By integrating predictive analytics with intelligent control strategies, it enhances resource efficiency, prevents overflow events, and ensures regulatory compliance. Experimental evaluations demonstrate that AquaFlowNet outperforms conventional approaches in prediction accuracy and operational efficiency, reducing energy consumption, improving treatment effectiveness, and mitigating environmental impacts.The results highlight AquaFlowNet’s potential to revolutionize wastewater management systems, making them more resilient, adaptive, and beneficial for urban and industrial applications.
Similar content being viewed by others
Introduction
The capacity to reliably provide ecosystems, productivity, livelihoods, and health with an adequate water supply has elevated freshwater to a critical human resource1. The increased use of chemical fertilizers, pesticides, and herbicides in farming, industrial pollution, and fast population growth have resulted in sewage that seriously threatens freshwater supplies2. Wastewater treatment plants (WWTPs) should be a priority for public health initiatives that aim to maintain clean urban water systems. Water collected from various sources (rainwater, sewage, industrial drainage) is subjected to a complicated mechanical-physical chemical-biological process known as wastewater treatment to eliminate contaminants and produce potable water. For this same reason, WWTPs are designed to filter out contaminants in wastewater3,4. Because each individual produces an average of 0.15 m3/day of wastewater, WWTP treatment capacities may vary from hundreds of thousands of m3/day in smaller towns and cities to millions of m3/day in larger cities, metropolises, conurbations, or megalopolises5. This requires comprehensive plant management and control systems and accurate capacity planning. Automating key functionalities dealing with fluctuations in inlet wastewater flow, administering chemical and biological reagents, managing resources, performing maintenance and optimising are specific issues and challenges in WWTP management6. Information and communication technologies (ICT) provide a strong basis for WWTP automation, while different approaches are used at different levels of automation7. Many manufacturing operations sometimes release large amounts of water into the public sewage system, which is a common occurrence. It is common for sewage treatment plant operators to lack or be unable to regulate the amount of effluent released into the sewer8. If the anticipated water consumption rates differ, hydraulic overload in the purification plant might occur. Since verifying the network status upstream of the plant is not feasible, a workable alternative would be to continually monitor the intake and outflow of the purification facilities9. This would allow for immediate alarms to be triggered to authorities or data to be used for plant functionality analysis or to identify plants with unusual inlet effluents in specific weather conditions10.
The optimal sites for WWTPs inside a city’s centralized wastewater management system have been the subject of several research investigations11. Researchers use geographical approaches to determine where wastewater comes from and how much runoff from individual buildings ends in the sewage system12. Measure the parameters of the wastewater before and after treatment, paying specific attention to the nutritional components. Gathering sensor data or taking wastewater samples and analyzing the plant’s influent/effluent flow to determine the raw waste’s characteristics are the steps the operator has to do to get the required data13. Several health problems may arise from introducing untreated wastewater, a source of nutrients, into bodies of water, including groundwater systems14. However, there has been a significant drop in the amount of nutrients emitted by WWTPs due to facility upgrades that enhance the removal of nutrient contaminants15. One branch of artificial intelligence is machine learning (ML), which involves finding patterns in data to make predictions or categorizations. Since AI can handle real-world issues with sewage treatment, river quality monitoring, and water resource management, its usage in environmental phenomenon modelling and forecasting has skyrocketed in the last few years16. Pattern recognition and computational learning theories give rise to machine learning algorithms, which have strong ties to computational statistics. More water engineering problems have been solved with their help in recent years17.
Motivation Since many cities rely on wastewater management as their main water supply, managing this resource is an important concern in urban areas. Agricultural runoff, landfilling, and industrial waste dumping are a few human activities that compromise wastewater quality. Because of this, keeping an eye on and accurately predicting water quality is becoming an increasingly pressing issue, as is the viability of wastewater. The main contribution of the research has the following,
-
AquaFlowNet analyzes real-time data using machine learning to forecast changes in flow and improve wastewater treatment procedures on the fly.
-
Regression Tree models have handled complex wastewater engineering issues including energy loss, water depth, retention of air in a maintenance hole for a drop, and sideflow via a low-crested weir.
-
Particle swarm optimization and Support vector machine used to identify the water quality, reduce energy use, improve treatment performance, and prevent overflows are all ways the system tackles the inefficiencies of old approaches.
-
AquaFlowNet enhances wastewater treatment sustainability by reducing environmental consequences and improving regulatory compliance.
Literature survey
Wastewater treatment and flow management have been the focus of numerous studies that leverage machine learning (ML), deep learning, and emerging technologies such as blockchain and IoT. This section reviews key advancements in the field, highlighting their methodologies, contributions, and limitations.
Machine learning-based wastewater forecasting
WWTP forecasting has been significantly enhanced by deep learning models. A novel hybrid deep learning model, TCN-LSTM, was developed to improve wastewater treatment plant (WWTP) predictions18. When tested at a WWTP in Jiangsu Province, China, this model outperformed traditional ML models in terms of prediction accuracy. The model utilized the Shapley Additive Explanation (SHAP) technique to identify the most influential parameters affecting water quality. While effective in prediction accuracy, this method lacks real-time adaptability, limiting its application in dynamic wastewater management systems.
Similarly, a Machine Learning–CEEMDAN-TSTF model was proposed for the real-time prediction of reclaimed water volumes21. By integrating ML with Complete Ensemble Empirical Mode Decomposition with Adaptive Noise (CEEMDAN) and Time-Aware Outlier-Sensitive Transformers (TSTF), the approach improved forecasting accuracy over conventional models. However, while decomposition enhances precision, it increases computational overhead, making it less suitable for real-time applications with high-frequency data streams.
Risk prediction and flood management
Flood risk management and wastewater flow optimization have also been studied extensively. The Evaluation and Risk Prediction using Effects Analysis and Probability Forecasting (EAPF) model analyzed five years of data on rainfall, inundation, and waterlogging19. By integrating structural equation modeling (SEM) with drainage capacity simulations, this approach effectively predicted flood risks. However, its reliance on historical data limits adaptability to rapidly changing climate conditions.
A reliable blockage detection system (RBDS) was developed using low-power sensors integrated with 4G telemetry for real-time sewer monitoring23. The system differentiates between normal flow conditions and blockages using time series analysis and decision criteria. While this approach offers a computationally efficient solution for real-time monitoring, its dependency on predefined decision rules restricts its ability to adapt to novel obstruction patterns.
Blockchain and IoT in water management
Recent research has explored the integration of blockchain and IoT for improving wastewater monitoring. A Blockchain-based Water Management Architecture (BC-WMA) proposed an IoT-enabled real-time data authentication system to track water distribution and leakage detection20. This system enhances transparency and accountability, reducing inefficiencies. However, blockchain implementation introduces significant computational costs, and network scalability remains a challenge in large-scale wastewater management.
The Python-based Stormwater Management Model (PySWMM) extends the EPA’s SWMM for intelligent management of combined sewer systems24. By embedding SWMM within Python’s scientific computing framework, researchers developed real-time Combined Sewer Overflow (CSO) management applications, reducing overflow incidents. While PySWMM provides a powerful simulation tool, its reliance on predefined models limits adaptability to unforeseen environmental changes.
Wastewater management assessment and decision support
A Novel Assessment Framework (NAF) was developed to evaluate wastewater management (WWM) practices by assessing data quality, performance indicators, and areas for improvement22. The framework employs five key matrices—CSAS, PAAS, TARGET, TOOL, and MASS—to quantify system efficiency. While this model provides a structured evaluation approach, it does not directly integrate real-time data, making it more suited for periodic assessments rather than continuous optimization.
This literature review highlights various approaches to wastewater treatment and flow management, each with distinct advantages and limitations. While deep learning models like TCN-LSTM and ML-CEEMDAN-TSTF improve forecasting accuracy, they often require significant computational resources and lack real-time adaptability. Risk prediction models, such as EAPF, provide valuable insights but are constrained by historical data reliance. IoT and blockchain-based solutions, like BC-WMA, enhance monitoring but pose scalability and cost challenges.
AquaFlowNet builds upon these prior works by integrating real-time wastewater flow prediction, optimization, and adaptive resource management using machine learning. Unlike existing solutions, it focuses on dynamic adaptability, minimizing energy consumption, optimizing chemical treatment processes, and preventing overflows in a computationally efficient manner. By addressing the limitations of traditional models, AquaFlowNet provides a more resilient and scalable solution for wastewater management.
Research gap and novelty of AquaFlowNet
Despite these advancements, several critical limitations remain:
-
1.
Lack of real-time adaptability: Most ML-based wastewater forecasting models, such as TCN-LSTM and CEEMDAN-TSTF, focus on accuracy but lack the ability to dynamically adjust to real-time changes in wastewater flow.
-
2.
Computational inefficiency: Many existing models require high computational resources, making them impractical for real-time wastewater treatment optimization.
-
3.
Limited integration of intelligent control strategies: Most studies rely on historical data or predefined rules, limiting their ability to proactively adjust treatment processes in response to real-time conditions.
-
4.
Scalability challenges: IoT and blockchain-based solutions offer improved monitoring, but their high computational cost and network scalability issues restrict their deployment in large-scale wastewater management systems.
-
5.
Absence of an integrated approach: Current models often focus on either prediction, monitoring, or assessment, but fail to integrate all aspects into a single, real-time decision-making framework.
How AquaFlowNet addresses these gaps
AquaFlowNet builds upon existing research by integrating real-time wastewater flow prediction, optimization, and adaptive resource management using machine learning. Unlike previous methods, it offers:
-
Real-time adaptability: The system continuously analyzes wastewater flow patterns and dynamically adjusts treatment processes, ensuring instantaneous optimization.
-
Computational efficiency: AquaFlowNet leverages lightweight ML models and particle swarm optimization to enhance predictive accuracy while minimizing processing overhead.
-
Proactive control strategies: By combining regression trees, SVM, and particle swarm optimization, AquaFlowNet proactively prevents overflows, reduces energy consumption, and optimizes chemical treatment.
-
Scalable architecture: Unlike blockchain-based solutions that face scalability constraints, AquaFlowNet employs distributed processing techniques to handle large-scale wastewater systems efficiently.
-
End-to-end integration: AquaFlowNet offers a unified framework for prediction, optimization, and compliance monitoring, making it a comprehensive solution for wastewater management.
Table 1 presents a thorough examination of the current body of research
Proposed methodology
The control of wastewater and the monitoring of water quality in metropolitan areas are problematic. Combining machine learning methods allows for development of a model that reliably forecasts urban water quality. Hence, multiple intricate wastewater engineering problems have been tackled using the Regression Tree model, SVM and PSO. These issues include air entrainment in drop maintenance holes, pool depth, and lateral outflow in low-crested side weirs. Use pH, chemical concentration, and temperature readings from monitoring wells to predict water quality. It is possible to optimize the machine learning model’s parameters using the particle optimization approach to get very accurate results when forecasting water quality. We expect these machine-learning methods will prove their worth by being applied to previously investigated experimental challenges.
The wastewater management system begins with data collection, as depicted in Fig. 1. Flow meters and IoT devices deployed at monitoring sites gather real-time data on critical parameters such as temperature, chemical concentrations, pH levels, and wastewater flow rates. This data is sourced from treatment facilities, pipelines, and groundwater systems to ensure comprehensive monitoring.
In the preprocessing stage, the collected data undergoes noise removal, missing value imputation, and standardization to improve its quality. Techniques like outlier detection and data normalization ensure consistency, which is crucial for reliable machine learning predictions.Once preprocessed, the data is analyzed using the Least Squares Support Vector Machine (LS-SVM) to assess groundwater quality. The LS-SVM model performs classification and regression to evaluate key metrics such as dissolved oxygen (DO), pH levels, and pollution indicators. However, due to the complex and nonlinear nature of wastewater data, Particle Swarm Optimization (PSO) is employed to fine-tune the LS-SVM model’s parameters, including kernel coefficients and feature weights. This optimization improves both accuracy and adaptability to dynamic environmental conditions.
For wastewater flow prediction, Regression Tree Models are utilized. These models incorporate historical and real-time data to provide accurate estimations of wastewater flow rates under different scenarios. This enables proactive management of wastewater systems, facilitating early detection of anomalies and improved operational control.The model’s performance is evaluated using metrics such as Mean Square Error (MSE), Mean Absolute Error (MAE), and overall accuracy. These measures validate the effectiveness of the proposed approach compared to baseline methods. The integration of this optimized model into a decision support system allows wastewater treatment facility operators to leverage real-time monitoring and data-driven insights for efficient resource allocation and compliance with environmental standards.
Additionally, wastewater output prediction begins with building population estimation, a key factor in demand forecasting. A two-stage approach is used for greater accuracy:
-
1.
Estimating population density based on building area, which is effective for most urban settings but challenging in densely packed slum areas.
-
2.
Averaging population density across sub-districts to refine predictions in areas with irregular housing patterns
By integrating machine learning models, optimization techniques, and real-time monitoring, this comprehensive system ensures accurate forecasting, adaptive parameter tuning, and practical insights for sustainable wastewater management.
Wastewater output prediction begins with determining building population. A two-stage method improves accuracy: first, population density is estimated from building areas, though this poses challenges in slums due to small, densely packed structures. To address this, the second approach averages population density across a sub-district. The final estimate combines both methods. Pre-processing, essential for wastewater quality prediction, includes data cleansing and optimization.
This investigation focused on an urban nutrient removal data set from the municipal treatment plant. A daily average capacity of 22,000 tons is designed for this WWTP. The wastewater treatment plant has a clarifier, anaerobic/aerobic reactors, and a sedimentation tank. The wastewater treatment plant (WWTP) has a grit chamber, aerobic, anaerobic, pretreatment tanks, and an active sludge system (Fig. 2). After the biological treatment system, the final effluent was treated using flocculation, sedimentation, sand filtration, disinfection, and a secondary clarifier.
Figure 3 examines the feature selection. An information set for training purposes that includes hourly readings of the following parameters: dissolved oxygen (DO), influent flowrate (Qin), effluent flowrate (Qeff), return flowrate (RAS), waste flowrate (WAS), mixed liquor suspended solids (MLSS), total phosphorus (TP), and total suspended solids (TSS). Input and effluent waste quality statistics from WWTPs. A total of 14.08 mg/L of COD, 2793.07 mg/L of MLSS, 3.66 mg/L of TSS, 7.13 mg/L of TN, and 0.55 mg/L of TP were measured in the influent. With a data collection frequency of 1 h, the operation data were acquired in real-time. In addition, standardizing the dataset and removing superfluous datasets are crucial steps in producing an adequate model. Finding the best sensors and operational parameters in a dataset is the primary objective of feature selection. In reality, feature reduction is challenging and often requires extensive testing. Many methods exist in the machine learning community to determine which attributes to use as predictors of future outcomes or as nonpredictors.
Recursive feature removal aims to shorten training time and speed learning by removing nonpredictive features from a model without increasing its error. Consequently, employing data that may be predicted using a regression and a decision-tree-based classifier is essential to improve a detection system to extract relevant attributes. The research lends credibility to the idea that regression-based feature selection may improve classifier performance and identify important characteristics of influent and effluent water quality indicators. Here, we can see the steps to generate data extracted from the SCADA database before it is preprocessed. Finally, water parameters are eliminated using RFE and a decision tree model. Feature selection occurs at time step \(\:S\), and the procedure continues until completion by predicting the effluent at time \(\:S\).
Equation (1a) was used to estimate the population in this study. In this context, \(\:Building\:Production\:\left(Pb\right)\)represents building occupancy rate, Building area represents building size, \(\:\sum\:building\:area\)measures the sum of all building areas in a region, population represents the region’s population, and \(\:\sum\:building\)represents the region’s total number of buildings. This approach determines Bandung City sub-district regions. The term “population estimate” refers to studies that monitor demographic characteristics such as birth and death rates, migration trends, and population growth and composition. The research also included two methods for estimating construction wastewater production. The original method estimated home and business trash output. This computational technique uses the rural factor (RF) variable to account for the reality that not all inhabitants work from home and create wastewater at home. Finding out what proportion of the population works in each sub-district showed that a lower RF value indicates a greater workforce.
Residential and commercial waste generation formulae are in Eq. 1(a-c). The daily water consumption of residential and commercial buildings is \(\:Residential\:Building\) and \(\:Commercial\:Building\) respectively. Hospitals and places of worship were regularly computed at 1600 and 2400 L/d, respectively. The final wastewater output estimate was the average of techniques one and two, determined for each building.
Based on two possible outcomes—one with a river and the other without—this analysis calculated the possible access to an existing centralized wastewater system. Because rivers are sometimes the only means of disposing of untreated wastewater in places lacking sanitation, access to river parameters is an important consideration. In this study, we look at the possibility of future construction connections to the sewage system. The river’s proximity is important for extending the wastewater treatment infrastructure’s sewage system. Combining the index created without considering each parameter’s weight with the percentage of sub-district sanitation access yielded the final output.
Potential sanitation access \(\:Santiation\:access\) formula shown in Eq. (2). Here, \(\:m\) is the number of buildings processed in the research area, \(\:j\) is the building parameter, \(\:K{d}_{j}\) is the land cover parameter, \(\:T{J}_{j}\)is the slope parameter, \(\:C{O}_{j}\) is the road distance, \(\:C{Z}_{j}\) is the water source distance, \(\:C{R}_{j}\) is the river distance, and so on. The next step in establishing new sanitary networks was ranking buildings by importance. This priority index combines waste production estimates with sanitation network accessibility. Structures with plenty of trash and no sanitation were prioritized. To effectively treat wastewater while reducing negative impacts on the ecosystem, decision-makers should consider river conditions. Therefore, it is recommended that a WWTP be constructed at a considerable distance from the river, according to a comprehensive assessment of these elements. The best spot to put a WWTP is the one with the greatest combined value of the normalized and integrated parameters.
As stated in Eq. (3), the technique for calculating the suitability index of WWTP candidates \(\:Suitabilty\:Index\) makes use of the following parameters: \(\:K{d}_{j}\) is the distance from the road \(\:C{O}_{j}\) is the slope \(\:T{J}_{j},\)the water source \(\:C{Z}_{j}\), and the river \(\:C{R}_{j}\), as well as the value of each parameter (\(\:j\)). In the case of a centralized WWTP, there are m GOF objectives, and these goals are used as a criterion for each WWTP.
Random Forest (RF) is a popular machine learning method for response variables \(\:Y\). The RF method uses a set of randomly dispersed, independently distributed data vectors called parameters to build prediction models according to the decision trees. The classification model of the approach is based on a decision tree regression. In RF’s computation, the basic mathematical formula is \(\:{\widehat{G}}_{i}\), where \(\:i\) is a sample with a constant classification level, \(\:i\) is the prediction model’s value and \(\:argma{x}_{x}\) is the sample representation. Equation (6) shows this is a commonly used machine learning technique for determining which class has the greatest predictive probability. Here, \(\:y\) are the predictors and \(\:x\) shown in Eq. (4).
This work uses Gradient Tree Boosting (GTB) to enhance error function-based classification and regression. Decision trees and other low-predictive models help GBT develop more accurate prediction models. GBT largely reduces residual yield from the previous prediction model using gradient-wise methods. By using the negative gradient of the residues\(\:\:{E}_{n-1}\) in conjunction with the \(\:learning\:rate\), the outcomes of the regression tree \(\:{\phi\:}_{n}\), and the loss function \(\:{h}_{n}\), the goal of the GBT prediction model, as demonstrated in Eq. (5), is to reduce residues and overfitting.
In addition, the likelihood of a flood catastrophe is estimated by implementing an overfitting solution based on the two machine learning algorithms. This solution is derived from Eq. (6), where \(\:{J}_{ML}\) is an index of the chance of a flood disaster, and the new index results from integrating RF and GBT.
A correlation test was also run to assess the model, which included making a correlation matrix of the study variables and analyzing the ones that impact the conditions of the flood susceptibility index. After determining the sample size (\(\:m\)), we used Eq. (7), where \(\:x\:and\:y\) are the criteria for determining the correlation coefficient, which are the variables that are independent and dependent, respectively (\(\:o\)). Coefficients of correlation (\(\:o\)) show how strongly two variables\(\:,\:x\:and\:y\), are related to one another.
Details are entered from a variety of water sources. This information has been compiled in many forms. The normalizing procedure can only be used for data that is homogenous. To normalize anything, you need to start with the min-max technique. It is located between the intervals [− 2, 2].
Here is the definition of standardization shown in Eq. (9):
The middle value \(\:\delta\:\) is shown here as (10):
Here is the definition of the standard deviation \(\:\alpha\:\)
By training a model using input variables like pH levels, chemical concentrations, and temperature, SVM with PSO can assess wastewater quality parameters.
Predictions of wastewater quality and management using the SVM approach were evaluated using these factors. When determining the loss function, SVM usually employs the linear least-squares approach. The input dataset \(\:\left\{{q}_{j}{,p}_{j}\right\}\) for each \(\:i\) ranging from \(\:1\:to\:n\). Here, \(\:{q}_{j}\)is the dataset that serves as input is the desired result. Linear regression is characterized by its function in Eq. (12):
The following is the expression for the quadratic optimization of linear regression in Eq. (13):
In this particular setting, the symbolic representation of the weight vector is denoted by the symbol \(\:\epsilon\:\) the parameter is denoted by \(\:g\), the error variable is denoted by \(\:\phi\:\) the bias value is denoted by \(\:a\), and the dimension of the space mapping is denoted by \(\:\omega\:\left({q}_{j}\right)\). Through the use of the Lagrange method to optimize Eq. 13. Equation (12) is a representation of the linear regression function that is being discussed. In this equation, the desired output is denoted by the symbol “\(\:\:P\left({q}_{j}\right)\)” the input dataset is denoted by \(\:q\left(j\right)\)the weight vector is denoted by “\(\:\alpha\:\),” the function that maps the data to a high-dimensional space is denoted by “\(\:\:P\left({q}_{j}\right)\) and the bias value is denoted by “\(\:a\).” Eq. (13) provides the formula that may be used to minimize the effects of linear regression. To achieve the goal of achieving the minimal value of the cost function \(\:I(\epsilon\:,\phi\:)\) via a modification of the weight vector\(\:\:\epsilon\:\) and the error variable \(\:\phi\:\) is the target. Within the cost function, there is a regularization component known as \(\:\frac{1}{2}{\epsilon\:}^{S}\epsilon\:\) which serves to prevent overfitting. On the other hand, the sum of squared errors is represented by \(\:\frac{g}{2}{\sum\:}_{j=1}^{l}{\phi\:}^{2}\)which is the other portion of the cost function. The constraint of Eq. (13) ensures that the intended output \(\:{p}_{i}\) is equivalent to the sum of the weighted values of the function that maps \(\:\epsilon\:\left({q}_{j}\right)\) and the bias value “\(\:a\),” in addition to the error component \(\:\phi\:\). During the process of optimizing Eq. (13), the Lagrange method is used to ascertain the values of \(\:\epsilon\:\), \(\:\phi\:\), and \(\:a\)that reduce the cost function \(\:I(\epsilon\:,\phi\:)\) while simultaneously satisfying the constraint in Eq. (14).
The Lagrange multiplier is denoted by \(\:{\sigma\:}_{i}\) here. The kernel function is located at this point. The SVM may now be written as (15):
Particle Swarm Optimization might enhance a wastewater model. The PSO method is a population-based optimization strategy that attempts to solve the optimization issue by simulating a swarm of particles. To find the best solution on a global scale, the method must update the position and speed of every particle in the swarm according to the best solutions found by their peers. Wastewater prediction might be enhanced by optimizing model parameters using PSO, such as the penalty parameter shown in Eq. 15. Following these steps will enhance a model for predicting water quality using PSO.:
Particle swarm optimization (PSO) based waste water quality analysis
Step 1: Intialize the particle swarm.
Make a collection of particles that stand in for different ways to solve the optimization issue. Here, we may see the particle’s location and speed depicted as (16)
Each particle’s dimension is denoted by \(\:posj\), where \(\:posi\:=\:1,\:2,…,\:n\). With each iteration, the particle’s position and velocity \(\:Velocit{y}_{j}^{s}\) are altered.
Step 2: Assess the fitness.
Find the fitness of each particle, which is a measure of how accurate its optimization solution is. Given two randomly chosen particles’ locations inside the swarm, PSO’s fitness function may be easily applied. The fitness function may be assessed using (17):
Here, p and q are the swarm locations of two randomly chosen particles representing the expected and observed values.
Step 3: keep the top solutions up to date.
The best solution for each particle is specified as \(\:Qbes{t}_{posi}^{j}\), and it is kept track of using that position. Additionally, \(\:Hbes{t}_{posi}^{j}\) defines the optimal solution that the swarm as a whole finds in Eq. 18(a-b)
Step 4: revise the speeds and locations.
Bring each particle’s location and speed up to date according to its own best \(\:Qbes{t}_{posi}^{j}\)and the world’s best \(\:Hbes{t}_{posi}^{j}\). We can compute the new location by combining the present location with the current velocity. Each iteration’s location and velocity may be updated using Eq. (19a) and (19b).
For all values of \(\:i\) from 1 to Swarm population number, denoted as \(\:m\). Vector of velocity \(\:Velocit{y}_{j}^{s}\), iteration (\(\:s\)), the \(\:i\)-th particle’s present location \(\:current\:positio{n}_{i}^{s+1}\)Here, \(\:Pbes{t}_{s}\) is the optimal location of the \(\:i\)-th particle in the past, and \(\:Hbes{t}_{s}\) is the optimal location of the complete particle as of right now. Both the cognitive and social parameters, denoted by the coefficients \(\:coeffcien{t}_{1}.\) and \(\:coeffcien{t}_{2}.\), If \(\:r{d}_{1}\) and \(\:r{d}_{2}\) The internal coefficient is a set of random integers between 0 and 1 to regulate both the local and global search use Eq. (20):
In this case, sigmoid \(\:Velocit{y}_{j}^{s+1}\) is the sigmoid function that will convert the velocity to a range of values between zero and one, and \(\:r{d}_{1}\) is a randomly chosen integer from the distribution of values between zero and one.
Step 5: Keep going until reach a predetermined stopping point, or until iterate a specified number of times.
Step 6: The optimum solution is determined as the best solution identified by the swarm after optimization.
Step 7: apply the adjusted parameters to make the wastewater quality forecast model more accurate.
To provide forecasts, the Regression Tree model employs a decision tree. The tree nodes stand in for the input variables, the leaves for the values of the target variables, and the root node contains all the data. A regression tree model is constructed by iteratively subdividing the input data domain. Predictions in each sub-domain are provided using a multivariate linear regression model. Before dividing the dataset in half, the iterative technique considers every conceivable binary split for each field. The growth process continues as the system branches out, dividing each into smaller parts. At each stage, the technique generates offspring with lower levels of “impurity” than their parents by dividing the population to minimise the total squared deviations from the mean. The procedure will end when some impurities have been removed or other requirements are satisfied. Common stopping criteria include the lowest possible impurity variation that can be handled by further subdivisions, the deepest section of the tree, or the fewest number of units in any single node.
\(\:O\left(s\right)\) is an indicator of a node’s impurity, which is the least-squared deviation (LSD). In a nutshell, it’s the target variable’s mean value in node\(\:\:{x}_{j}\), the \(\:j\)th unit’s value, the number of sample units in node \(\:m\left(s\right)\), and the inside variance for node\(\:\:{x}_{n}\) expressed in Eq. (21):
The following LSD function is used to determine the split criterion at each node \(\:s\) in Eq. (22):
The left child node \(\:{s}_{k}\) and the right child node \(\:{s}_{o}\) does the split generate both \(\:{T}_{q}\), and the corresponding portions of the units allocated to them are \(\:{Q}_{k}\) and \(\:{Q}_{o}\), respectively. At last, we choose the split sp that causes \(\:\rho\:\left({T}_{q},s\right)\) to be maximized. It produces optimal results while evaluating tree homogeneity.
Figure 4 deliberates the Wastewater flow rate analysis. The foude number \(\:{E}_{0}\) and the flow depth\(\:\:{g}_{0}\). This apparatus consisted of a plexiglass frame into which plates with alternating filling ratios were put. The flow depths were recorded using piezometers and point gauges with an accuracy of ± 0.5 mm, and the water discharges were measured using an electromagnetic flowmeter with an accuracy of 0.1 L/s. A series of piezometers attached to the base of the maintenance hole were used to quantify the pool’s average depth over time, abbreviated as \(\:{g}_{q}\). An anemometric probe was installed within a 50 mm diameter pipe that was hermetically sealed on top of the maintenance hole to perform air demand experiments. The conduit was designed to provide the air flow rate\(\:{P}_{air}\). The side weir experiment facility consists of a 300 mm diameter round plexiglass pipe with side weir measurements L and z. The recirculation system includes a supply tank, a downstream flow tank, and a lateral outflow tank to regulate the flow through the pipe.
Figure 5 expresses the Wastewater Flow Optimization. A flowmeter that uses electromagnetic waves was used to determine the flow rate that was flowing in. A flow meter that measures electromagnetic inflow was used for this measurement. The collecting tanks were equipped with V-notch weirs to monitor the flow that comes from the downstream rate and the lateral outflow \(\:{P}_{out}\). Piezoelectric instruments were strung along the pipeline to measure the depths of the flows. A Pitot tube was used to find the velocities at certain spots. Hydrology, population density, and geology are regional and local factors that should be considered when deciding where to put wastewater treatment plants to provide a reliable water supply.
At the same time, considering urban forest factors, the sewage system was built to avoid cutting down trees in urban forests. The ideal sewage system network was determined using the optimal wastewater flow formula, as shown in Eq. (23)
In the parameters of the residential area, variables \(\:b\) and \(\:{\varDelta\:}_{Residential\:Area}\) have fixed values and weights, whereas in the parameters of the road network, variables \(\:a\) and \(\:{\varDelta\:}_{Roadside\:network}\) also have fixed values and weights. Moreover, variables \(\:d\) and \(\:{\varDelta\:}_{slop\:Area}\) show the constant and weight values of the slope parameters, respectively, while variables \(\:c\) and \(\:{\varDelta\:}_{Railway\:network}\) provide the railway network characteristics’ constant and weight values independently. The variables \(\:e\) and \(\:{\varDelta\:}_{forest\:Area}\) reflect the constant and weight values of the characteristics of urban forests. Also, \(\:l\) is the sum of all the cells required to connect the two locations, and \(\:i\) is the variable for the eight cells surrounding a central cell. After that, we need to examine the features of the WWTP with an eye on each neighbourhood’s projected total water waste volume and flood susceptibility. The sum of all the wastewater produced by each home was used to determine the overall quantity.
Results and discussion
Integrating several machine learning techniques may create a model to predict the water quality in metropolitan areas accurately. As a result, the Regression Tree model, SVM and PSO have been used to solve various complex wastewater engineering issues. Forecast water quality using pH, chemical content, and temperature data collected from monitoring wells. PSO may be used to adjust the parameters of a machine learning model, leading to highly accurate predictions of water quality. We believe applying these machine-learning algorithms to problems that have been investigated experimentally should demonstrate their value. We compare this suggested study with TCN-LSTM, EAPF, BC-WMA, and PySWMM.
Dataset Description: A fundamental human right and an integral part of any successful strategy to safeguard public health is the availability of clean drinking water. At the federal, state, and municipal levels, this is a pressing matter of health and development. Investing in water supply and sanitation may be economically beneficial in certain areas. This is because healthcare expenses and negative health impacts are reduced, making it more cost-effective25. Table 2 shows the experimental setup.
-
(i)
Mean square Error (%)
Reduced Mean Square Error (MSE) in wastewater flow management and water quality forecasts is the goal of the suggested approach, which uses state-of-the-art machine learning algorithms. Energy dissipation, pool depth, and chemical concentrations are a few examples of the complicated interactions this technique captures, combining the Regression Tree model, SVM and PSO. Optimization methods, such as particle swarm optimization, are also used to fine-tune the model’s parameters, improving its predictions’ accuracy. These methods aim to reduce the discrepancy between the actual and anticipated values in the model.
The mean square error rate has been expressed as calculated in Eq. (24) and Fig. 6. A total of \(\:m\) observations (data points), where \(\:{x}_{j}\) is the For the \(\:j\) th observation, the real value is \(\:{\widehat{x}}_{i}\). The expected value of the \(\:j\) th measurement. \(\:{\left({x}_{i}-{\widehat{x}}_{i}\right)}^{2}\) the margin of error is expressed as a squared value between the observed and anticipated outcomes. The system better understands flow patterns and quality measures by concentrating on data collected in real-time from monitoring wells and applying time-sensitive differential decomposition algorithms. This comprehensive and dynamic method allows us to achieve much lower MSE rates than the prior static models, improving our decision-making and resource utilization.
-
(ii)
Accuracy Ratio (%)
The proposed method can handle wastewater management and quality monitoring complexities with a high accuracy ratio. It combines advanced machine learning techniques, including the Regression Tree model, SVM and PSO. With the ability to detect and analyze intricate patterns in real-time data, such as changes in temperature, chemical concentrations, and pH levels, these models have the potential to predict treatment outcomes and flow precisely.
Equation (25) and Fig. 7 examine the accuracy ratio that has been computed. Here, \(\:TP,\:TN,\:FN,\:FP\) mentioned true positive, true negative, false positive, and false negative has been examined. Particle Swarm Optimization tunes the system’s parameters, ensuring accurate results and top-notch performance. Incorporating these approaches with real-time data collecting and analysis enhances forecasting and decision-making accuracy, makes models more robust, and lowers prediction errors. Consequently, the system can outperform traditional methods, ensuring superior environmental outcomes and efficient wastewater treatment.
-
(iii)
Specificity (%)
The suggested technique improves the specificity of wastewater flow management and quality prediction by efficiently differentiating between typical and out-of-the-ordinary system situations. The application detects regular operating patterns and distinguishes them from possible problems like blockages, overflows, or anomalous pollutant loads using the Regression Tree model, SVM and PSO.
The specificity ratio has been described as deliberated in Eq. (26) and Fig. 8. As presented in Eq. (26), a true negative false positive calculates specificity. The proposed system doesn’t wrongly identify natural changes as issues, this feature lowers false positives. In addition to improving the model’s accuracy in handling large and varied datasets, Particle Swarm Optimization fine-tunes the model parameters, making it easier to prevent benign or unimportant changes from being misclassified as key events. Zeroing down on certain areas increases specificity, allowing for more accurate decision-making and less needless interference with wastewater treatment.
-
(iv)
Sensitivity (%)
The suggested approach improves the model’s sensitivity to positive events, including changes in flow rate, pollutant levels, or possible system failures, which allows for more precise control of wastewater flow and quality forecast. The technique can improve the system’s responsiveness to changing circumstances by detecting minor patterns and abnormalities in real-time data via merging the Regression Tree model, SVM and PSO.
Equation (27) and Fig. 9 sensitivity have been deliberated. Where presented in Eq. (27), a true positive false negative is used to calculate the sensitivity. The system can proactively handle problems like overflows or abrupt changes in water quality thanks to these methods, which provide more precise forecasts of critical parameters. The approach enhances the algorithm’s ability to swiftly adapt to changing circumstances by adjusting model parameters via Particle Swarm Optimization, thereby reducing the likelihood of false negatives.Enhancing the system’s sensitivity and flexibility enables it to detect and handle key events more effectively and promptly, resulting in more efficient and effective interventions in wastewater treatment operations.
-
(v)
Precision (%)
By improving the accuracy of detecting real positives while limiting false positives, the suggested strategy enhances precision in managing wastewater flows and predicting quality. The program can distinguish between regular fluctuations and key events like large changes in flow rates or pollutant levels using the Regression Tree model, SVM and PSO. This way, only relevant anomalies will be highlighted. This lessens the likelihood of false alarms, which would cause needless actions if they were to occur.
As shown in Eq. (28) and Fig. 10, the precision ratio has been described. As presented in Eq. (28), true and false positives were used to calculate the precision. Incorporating Particle Swarm Optimization significantly refines the system’s crucial event classification accuracy by fine-tuning the model parameters to enhance decision bounds. Improved resource allocation and decision-making in wastewater treatment processes are facilitated by enhanced precision, which increases confidence in the system’s forecasts.
F1-Score (%)
The F1-Score measures the model’s ability to detect genuine positives with a minimum of false positives and false negatives. The suggested strategy improves this score by better balancing sensitivity and accuracy. The system accurately forecasts crucial events like flow changes or pollutant spikes using the Regression Tree model, SVM and PSO to capture complex patterns in wastewater data. In addition to enhancing the system’s sensitivity to important events, these models contribute to better avoiding common or unimportant ones.
As calculated in Eq. (29) and Fig. 11F1 score ratio has been examined. Also, by optimising model parameters, Particle Swarm Optimization finds the sweet spot between sensitivity and accuracy. Due to the model’s constant delivery of correct and balanced forecasts, this comprehensive method improves overall effectiveness and dependability in regulating wastewater flow and quality, leading to a better F1-Score.
-
(vi)
Water Quality Index rate (%)
The suggested approach improves the Water Quality Index (WQI) rate by using state-of-the-art machine learning methods to provide more accurate and reliable forecasts about water quality. The system precisely measures water quality by processing and analyzing real-time data from several sensors, including pH, chemical concentrations, and temperature, by combining the Regression Tree model, SVM and PSO. Table 3 shows the water quality classification.
As discussed in Eq. (30), the water quality index rate has been described. For all parameters, \(\:m\)is the total. “\(\:\:Q{R}_{j}\) means the quality rating of each dataset parameter. The weight assigned to each parameter by \(\:{Z}_{j}\). The model can even identify minute changes in water quality using these methods, ensuring that it responds accurately and promptly to variations. Additionally, using Particle Swarm Optimization, the model’s parameters are fine-tuned to achieve improved accuracy and better alignment with real water quality conditions in the forecasts. The technology enhances the precision and adaptability of water quality evaluation by continuously assessing data points and modifying treatment procedures accordingly, resulting in an improved WQI rate. This contributes to more reliable adherence to water quality requirements, greater environmental protection, and improved wastewater management decisions.
Water flow management ratio (%)
The suggested approach enhances the Water Flow Management Ratio by eliminating system inefficiencies, optimizing wastewater flow in real-time, and allocating resources efficiently. The program can anticipate changes in wastewater inputs and react to them before they become essential using the Regression Tree model, SVM and PSO. This predictive capacity is invaluable for managing peak loads better, avoiding overflows, and saving treatment process delays. Optimizing the model’s parameters using Particle Swarm Optimization makes it more predictable and easier to operate. The calculation of the quality rate for each parameter is done using
As deliberated in Eq. (31), water flow management has been discussed. Where \(\:Zsampl{e}_{j}\)is the parameter value for the water sample. The ideal value of the water parameter \(\:j\) is represented by \(\:Zsampl{e}_{ideal}\). The standard value of the parameter and \(\:stdvalu{e}_{j}\) are obtained from Table 4.
Due to the system’s real-time responsiveness, flow management and control are improved. This strategy improves operating efficiency, saves money, and makes the system more resilient by optimizing treatment procedures and flow rates to achieve a better Water Flow Management Ratio.
Analysis of energy consumption
Analyzing energy use, as shown in Fig. 12, reveals that AquaFlowNet outperforms traditional techniques. On average, AquaFlowNet reduces energy consumption by 98.2% more than competing methods. The capacity for real-time optimization and powerful predictive analytics are the sources of this enhancement. These findings confirm that AquaFlowNet can improve efficiency and promote environmentally friendly methods of wastewater management.
The variables \(\:{V}_{c}d\)that indicate the rate of flow, \(\:\partial\:-4f{v}^{{\prime\:}{\prime\:}}\) that represent modifications to flow resistance, and \(\:Caq\left[\delta\:\nabla\:-m{x}^{{\prime\:}{\prime\:}}\right]\) are all included in Eq. (32). \(\:dr{t}^{{\prime\:}{\prime\:}}\left[l-ve{r}^{{\prime\:}{\prime\:}}\right]\) incorporates system dynamics with chemical and environmental restrictions. The model and optimization of wastewater treatment by reducing inefficiencies like overflows and energy waste are both supported by the equation on the analysis of energy consumption.
Analysis of treatment efficacy
Analyzing energy use, as shown in Fig. 13, reveals that AquaFlowNet outperforms traditional techniques. On average, AquaFlowNet reduces energy consumption by 95.9% more than competing methods. The capacity for real-time optimization and powerful predictive analytics are the sources of this enhancement. These findings confirm that AquaFlowNet has the ability to improve efficiency and promote environmentally friendly methods of wastewater management.
The expression \(\:{\forall\:}_{4}f\left[mn-cv{a}^{{\prime\:}{\prime\:}}\right]\) is included in Eq. (33).\(\:Ba\left[\forall\:i-uy\right]\) means system-wide flow variances affected by machine learning modifications \(\:\delta\:\beta\:\left[\gamma\:-ba{z}^{{\prime\:}{\prime\:}}\right]\), considers limitations in resources and the environment. The equation’s predictive flow condition management, based on the analysis of treatment efficacy, contributes to reduced energy consumption and a lower ecological footprint.
Analysis of overflow prevention
With a gain of 94.1%, AquaFlowNet outperforms previous approaches in overflow avoidance, as shown in Fig. 14. To reduce the likelihood of overflow, the algorithm can forecast future events in real time and make proactive changes to the flow dynamics. System dependability and environmental compliance are both improved as a consequence. These results highlight the importance of AquaFlowNet in solving problems related to wastewater flow management.
The significance of predictive flow management \(\:5\:Ty\) and therapy optimization \(\:\cup\:v-z{a}^{{\prime\:}{\prime\:}}\) is represented by \(\:R{v}_{f}\left[l-v{j}^{{\prime\:}{\prime\:}}\right]\), and the location of the flow response dynamics is given by \(\:Xv\left[l-pf{v}^{{\prime\:}{\prime\:}}\right]\) in Eq. (34). By incorporating real-time information together with predictive analytics, the equation promotes proactive overflow avoidance and improves treatment efficiency in the analysis of overflow prevention.
Analysis of system resilience
Figure 15 shows the results of the system resilience study, which demonstrate that AquaFlowNet outperforms traditional approaches by a factor of 97.1%. Effective management of dynamic conditions of flow and unexpected disturbances is achieved by AquaFlowNet via the use of machine learning-driven flexibility. Because of this, the system is better able to remain stable while operating under several types of limitations. These outcomes highlight AquaFlowNet’s competence in developing dependable wastewater management systems.
Equation (35) represents the energy dynamics affected by changes in flow, and \(\:{m}_{d}e\left[v-x{q}^{{\prime\:}{\prime\:}}\right]\) Adjustments to resource efficiency \(\:\equiv\:\complement\:Va\left[\propto\:-4{x}^{{\prime\:}{\prime\:}}\right]\) directed by predictive analytics are denoted by \(\:Na\left[\propto\:\ll\:f{g}^{{\prime\:}{\prime\:}}\gg\:\right]\). This equation improves operational efficiency and sustainability in wastewater treatment by ensuring an appropriate balance between energy and resources in the analysis of system resilience.
Analysis of operational efficiency
In terms of operational efficiency, AquaFlowNet beats out the competition by a margin of 93.9% as shown in Fig. 16. Its intelligent optimization and integration of real-time information enhance resource efficiency and minimize energy waste. The outcome is less disruption to operations and faster wastewater treatment. The research results highlight the revolutionary potential of AquaFlowNet for wastewater management system operating operations.
The interaction between \(\:Bcz\left[m-r{f}^{{\prime\:}{\prime\:}}\right]\) distributing resources \(\:Bq\left[\propto\:-3a{q}^{{\prime\:}{\prime\:}}\right]\) and environmental compliance is represented by \(\:{m}_{e}^{qw}\), and the dynamic treatment demands are highlighted in Eq. 36 as \(\:\left[lp-g{d}^{{\prime\:}{\prime\:}}\right]\). The equation enables adaptive optimization, reducing treatment delays and addressing environmental concerns by leveraging machine learning-driven insights for the analysis of operational efficiency.
Data availability
The datasets generated and/or analysed during the current study are available in the Kaggle repository, https://www.kaggle.com/datasets/adityakadiwal/water-potability.
References
Singh, B. J., Chakraborty, A. & Sehgal, R. A systematic review of industrial wastewater management: evaluating challenges and enablers. J. Environ. Manage. 348, 119230 (2023).
Alzahrani, A. I., Chauhdary, S. H. & Alshdadi, A. A. Internet of things (IoT)-Based wastewater management in smart cities. Electronics 12 (12), 2590 (2023).
Van de Walle, A. et al. Greywater reuse as a key enabler for improving urban wastewater management. Environ. Sci. Ecotechnology. 16, 100277 (2023).
Wadström, C., Södergren, K. & Palm, J. Exploring total economic values in an emerging urban circular wastewater system. Water Res. 233, 119806 (2023).
Namavar, M., Moghaddam, M. R. A. & Shafiei, M. Developing an indicator-based assessment framework for assessing the sustainability of urban water management. Sustainable Prod. Consum. 40, 1–12 (2023).
Mkilima, T. et al. Carwash wastewater treatment through the synergistic efficiency of microbial fuel cells and metal-organic frameworks with graphene oxide integration. Case Stud. Chem. Environ. Eng. 9, 100582 (2024).
Tsangas, M., Papamichael, I., Banti, D., Samaras, P. & Zorpas, A. A. LCA of municipal wastewater treatment. Chemosphere 341, 139952 (2023).
Sheikholeslami, Z., Ehteshami, M., Nazif, S. & Semiarian, A. The uncertainty analysis of life cycle assessment for water and wastewater systems: review of literature. Alexandria Eng. J. 73, 131–143 (2023).
Hernández-Chover, V., Castellet-Viciano, L., Fuentes, R. & Hernández-Sancho, F. Circular economy and efficiency to ensure the sustainability in the wastewater treatment plants. J. Clean. Prod. 384, 135563 (2023).
Tan, Y. Y., Huong, Y. Z., Tang, F. E. & Saptoro, A. A review of sewage sludge dewatering and stabilisation in Reed bed system: towards the process-based modelling. Int. J. Environ. Sci. Technol. 21 (1), 997–1020 (2024).
Baccour, S. et al. Water quality management could halve future water scarcity cost-effectively in the Pearl river basin. Nat. Commun. 15 (1), 5669 (2024).
Jiang, J. et al. An integrated supervision framework to safeguard the urban river water quality supported by ICT and models. J. Environ. Manage. 331, 117245 (2023).
Jadhav, A. R., Pathak, P. D. & Raut, R. Y. Water and wastewater quality prediction: current trends and challenges in the implementation of artificial neural network. Environ. Monit. Assess. 195 (2), 321 (2023).
Neale, P. A. et al. Application of effect-based methods to water quality monitoring: answering frequently asked questions by water quality managers, regulators, and policy makers. Environ. Sci. Technol. 57 (15), 6023–6032 (2023).
Sheel, S. et al. Intelligent system for distributed quality monitoring of sewage management based on wastewater treatment procedure and data mining. J. Intell. Syst. Internet Things, 9(2). (2023).
William, P. et al. Architecture for AI-Based Validation of Wastewater Management Using Open Data Exchange Technique. In 2023 International Conference on Circuit Power and Computing Technologies (ICCPCT) (pp. 1502–1507). IEEE. (2023), August.
Wang, Y. Q. et al. Machine learning framework for intelligent aeration control in wastewater treatment plants: Automatic feature engineering based on variation sliding layer. Water Res. 246, 120676 (2023).
Xie, Y., Chen, Y., Wei, Q. & Yin, H. A hybrid deep learning approach to improve real-time effluent quality prediction in wastewater treatment plant. Water Res. 250, 121092 (2024).
Huang, H. et al. Effects analysis and probability forecast (EAPF) of real-time management on urban flooding: A novel bidirectional verification framework. Sci. Total Environ. 906, 166908 (2024).
Naqash, M. T. et al. A blockchain based framework for efficient water management and leakage detection in urban areas. Urban Sci. 7 (4), 99 (2023).
Sun, X., Zhang, L., Wang, C., Yang, Y. & Wang, H. Dynamic Real-Time prediction of reclaimed water volumes using the improved transformer model and decomposition integration technology. Sustainability 16 (15), 6598 (2024).
Kiliç, S., Firat, M., Yilmaz, S. & Ateş, A. A novel assessment framework for evaluation of the current implementation level of water and wastewater management practices. Water Supply. 23 (5), 1787–1809 (2023).
Faris, N., Zayed, T., Aghdam, E., Fares, A. & Alshami, A. Real-Time sanitary sewer blockage detection system using IoT. Measurement 226, 114146 (2024).
Tryby, M. E. et al. Intelligent control of combined sewer systems using PySWMM—A python wrapper for EPA’s stormwater management model. Environ. Model. Softw., 106114. (2024).
https://www.kaggle.com/datasets/adityakadiwal/water-potability
Author information
Authors and Affiliations
Contributions
All authors contributed equally.
Corresponding author
Ethics declarations
Competing interests
The authors declare no competing interests.
Ethical approval
We confirm that this manuscript is original, has not been published previously, and is not under consideration for publication elsewhere. All authors have read and approved the manuscript and have no conflicts of interest to disclose. The research conducted for this manuscript adheres to ethical guidelines, and all necessary permissions for the use of proprietary data or materials have been obtained. Additionally, we declare that there are no financial or non-financial interests that could influence the research outcomes presented in this manuscript.
Additional information
Publisher’s note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
Open Access This article is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License, which permits any non-commercial use, sharing, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if you modified the licensed material. You do not have permission under this licence to share adapted material derived from this article or parts of it. The images or other third party material in this article are included in the article’s Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article’s Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by-nc-nd/4.0/.
About this article
Cite this article
Prabu, P., Alluhaidan, A.S., Aziz, R. et al. AquaFlowNet a machine learning based framework for real time wastewater flow management and optimization. Sci Rep 15, 19182 (2025). https://doi.org/10.1038/s41598-025-99200-8
Received:
Accepted:
Published:
DOI: https://doi.org/10.1038/s41598-025-99200-8