Abstract
The control of nuclear, chemical, and cyber-attacks is designed to prevent terrorism, but is often not being adopted in critical infrastructure at the level of discretization needed to challenge less overt intentional and unintentional automated cyber-chemical attacks. Cascades of automated chemical reactions have become an essential part of critical infrastructures, influencing their daily operation, performance monitoring, and operational performance. However, despite their benefits, excessive use of uncharacterized chemicals may negatively affect the subsequent processes in such critical infrastructure involving chemistry, including wastewater treatment. This research introduces the concept of Automated Cyber-Chemical Systems (ACCS) and their application by examining the influence of predictor configurations and machine learning models in predicting Biological Oxygen Demand (BOD5), the concentration of which is a potential indicator of chemical dumping, in wastewater treatment systems. The study uses a Madison, Wisconsin dataset of wastewater treatment with seven different predictor categories and eight machine learning models for predicting BOD5. The results show that there is a significant difference in predicting BOD5 across different predictors and models. The article concludes that accurate prediction of BOD5 is crucial for supplying appropriate oxygen demand and introduces the concept of ACCS. Building accurate prediction models of BOD5 is intended to introduce the concept of ACCS in wastewater treatment systems, whether intentional or unintentional.
1. Introduction
A cyber-chemical system is the integration of chemicals into a process of critical infrastructure in the real world, linked conceptually to cyber-physical systems and control computing systems. Details of cyber-physical systems and their associated control software in computing systems have been identified [1]. Critical infrastructure like wastewater reclamation facilities is vulnerable to various threats such as cyberattacks, physical attacks, and contamination by harmful agents [2]. These, in turn, can lead to widespread illnesses, casualties, service disruptions, public health crises, economic instability for residents, and threats to aquatic life and the environment.
The Presidential security policy executive order identified sixteen critical infrastructures along with their associated agencies [3]. These include water and wastewater (Environmental Protection Agency (EPA)) treatment systems. These critical infrastructures not only depend on IoT and computers but also involve both overt and covert chemical reactions. Cyber-attacks on water reclamation facilities have been detected, and the number and complexity of attacks are escalating [4,5]. Water reclamation facilities in the USA, UK, Israel, Norway, and Germany are affected, with a cybersecurity expert revealing Exfiltration of 2 million-plus unique results and chemical flow rate manipulation in the Kemuri Water Company (KWC) in Israel alone [6]. The main contributors to emerging contamination of water include domestic discharge, hospital effluents, industrial wastewater, agricultural runoff, livestock, aquaculture, and landfill leachates [7]. Potential changes in geochemistry and microbial community dynamics of arid soil have revealed illegal discharge of wastewater from the oil and gas industry [8]. The same investigation discovered 39 illegal discharges by the oil and gas industry in two weeks in 2017 in southeastern New Mexico, which released an estimated 600,000 L of wastewater into dryland soil, affecting a 5-mile radius area in violation of state and federal laws. The use of straight pipes in the United States of America has been investigated, and it has been determined that 65 to 80 million U.S.A. residents use them. This creates a widespread problem, and the study suggests financially supporting the health department and other stakeholders to eliminate the straight pipes [9]. A water company in England has been discharging wastewater into waterways illegally [10].
A report revealed oil and dispersants in the Gulf of Mexico, U.S.A., with the investigation taking place by sampling the seawater and a small amount of motor oil. Two drops of the dispersant Corexit 9500 were added, and nine days later, there was no way to separate the water from the oil, which clearly demonstrates an intentional dilution method. There are significant impacts of Corexit 9500 on human beings, as the chemicals present in the oil and dispersants are known to cause everything from headaches and nausea to upper respiratory tract and hematological disorders [11].
This intentional dilution process, which disperses the oil into the water, poses significant risks to humans and contradicts claims made by BP—an oil and gas company—and government officials. This case also demonstrates the misalignment of experts, government officials, and organizations for an identical common goal—safeguarding the environment.
Oil spills in the Gulf of Mexico from 1979 to 2024 have been documented, and a study investigated the amount of oil spilled from different oil and gas companies and the potential impact in terms of polluted coverage area [12]. During 2021–2022, the federal agency and bureau of safety and environmental protection agency reported 992 oil spills releasing an estimated 800,000 gallons of oil, while the US Coast Guard reported an estimated 1.1 million gallons of oil leaked into the Gulf of Mexico near Louisiana, and the origin of these spills is unknown [13,14].
Another study shows that the immediate cause of the Space Shuttle Challenger failure was the decision to launch in cold weather, which led to the failure of the O-ring seal, and the fundamental failure was the high-risk design, as the management asserted a 1 in 100,000 chance of failure instead of 1 in 100 [15].
Both intended and unintended attacks have been examined across various critical infrastructures, including the Space Shuttle, the oil and gas industry, and wastewater treatment facilities, all of which involve both visible and invisible chemical mixtures. This has led to the emergence of a new field we have named the Automated Cyber-Chemical System. These systems feature “attacks” based on chemical reactions, either through direct physical means or through automated, hidden cyber-chemical methods. Given the wide range of chemical processes used and their significance in critical infrastructures, including wastewater treatment systems, along with the misalignment of private and government stakeholders and agencies, it is crucial to introduce the concept of Automated Cyber-Chemical Systems by leveraging predictive machine learning algorithms against automated cyber-chemical attacks and protecting public health, the environment, and aquatic life, all of which depend on their own cascade of chemical reactions, as illustrated in Figure 1. When potentially harmful chemical reactions are obfuscated by other reactions, intentionally or unintentionally, we classify these as cyber-chemical attacks. An attack in a cyber-chemical system is a deliberate, trained, and funded intentional or unintentional action by individuals, groups, and organizations to harm critical infrastructure and beyond. A fault is a defect or malfunction of equipment in critical infrastructure that leads to incorrect operation or stoppage of critical infrastructure. This is related to failure of sensors, pumps, leakage of pipes and connectors, etc. Process upset is an unexpected deviation from normal operating conditions that produces poor-quality product from critical infrastructure. In the case of a wastewater treatment system, this includes sudden changes in turbidity, pH, overloading of different treatment stages and concentrations, such as Ammonia, Phosphorus, BOD5, COD5, TSS, Flow rate, and other metallurgical elements such as aluminum, magnesium, and others. An accident is an unplanned action that results in harm to critical infrastructure. This includes human error or failure.
Figure 1.
The diagram shows the application of chemicals across a wide range of processes and uses. It illustrates how chemical elements move from one system to another through additions, eliminations, substitutions, and rearrangements, affecting manufacturing companies, small businesses, residences, environments, and other stakeholders worldwide. It highlights how policies are directly linked to resource extraction, chemical use, and processing to support a circular economy. Overall, the diagram demonstrates strong interconnections among different systems through the automated movements and transformations of chemicals, while reality underestimates (misalignment of stakeholders) the interconnection of chemicals. Hence, there is a need to introduce the concept of Automated Cyber-Chemical System to reveal the impact of chemical elements beyond their immediate applications and to optimize their use within each system by predicting the optimal quantity to be oxidized, using wastewater treatment as a role model for study. A, B, C, R, Y, X, and Z are hypothetical chemical elements used solely for illustrative purposes. They do not represent actual chemical elements but are used as placeholders to demonstrate the movement and transformation of chemical elements within and outside of the system.
Hence, the paper examines the critical infrastructure—wastewater treatment systems—and introduces the automated cyber-chemical security subdomain first and then provides methods to predict BOD5 by applying big data and predictive algorithms.
Accurate prediction of a critical infrastructure parameter—wastewater treatment Biological Oxygen Demand (BOD5)—from measured and derived parameters is crucial for effective operation, regulatory compliance, sustainability, cost effectiveness, and improved operational efficiency [16,17]. Due to the highly complex behavior and dynamics of the biophysical chemical reactions involved in the wastewater treatment process, conventional mechanistic and statistical approaches often show limited predictive accuracy. This has led to an increased interest in big-data-driven and machine learning-based models.
A recent study has shown that an Artificial Neural Network (ANN) has been useful for the prediction of electrical energy recovery in wastewater treatment systems [17,18]. Additionally, Total Nitrogen (TN) and Phosphorus (TP), as well as Chemical Oxygen Demand (COD), have been accurately predicted using an ANN for Korea’s wastewater treatment facility [19]. However, the size of the dataset and the computational power are crucial when it comes to ANN-based predictive methods, as large datasets and high computational power are needed. Regardless, a study examined the efficiency of ANN and multiple linear regression (MLR) to predict Biochemical Oxygen Demand (BOD5) and Chemical Oxygen Demand (COD) of an influent, predicting BOD5 with RMSE and r2 values of 25.1 mg/l and 0.83, respectively [20].
Another study [21] proposed and applied a Random Forest (RF) model to predict the daily flow of influents for a wastewater treatment plant, and the coefficient of determination (r2) values for training and testing were 0.971 and 0.7222, respectively. The r2 values for the Humber plant for training and testing were 0.957 and 0.584, respectively. The large differences in training and testing behavior suggest that each of these systems might have been overtrained. The results suggest that the performance of RF is better than a multilayer perceptron neural network (MLP) incorporating an autoregressive integrated moving average model. A study has been conducted using six different machine learning algorithms—linear regression (LR), Gaussian process regression (GPR)—to predict the electrical energy produced from three parameters (gas flow, conductivity, and TSS). Moreover, other research [22] highlights the usefulness of the K-nearest neighbor (K-NN) algorithm to predict Flow Rate, Total Nitrogen, Total Phosphorus, Suspended Solid, and Chemical Oxygen Demand.
The complexity of critical infrastructure, combined with the variability of the wastewater treatment process, makes it challenging to model using a single modeling technique. A systematic comparison of multiple algorithms is warranted. Each machine learning algorithm possesses different limitations and strengths: linear and regularized models like linear regression provide computational efficiency and transparency with linear assumptions; while the family of Artificial Neural Networks (ANNs) and E-ANN handle nonlinear behaviors effectively but are prone to overfitting, require large datasets, and have limited interpretability. Meanwhile, the family of tree and ensemble models such as decision trees, Random Forest, and Gradient Boosting Regression are straightforward to implement and can improve accuracy. However, they can also be unstable and require careful tuning when used alone. Lastly, the family of non-parametric and Bayesian approaches like Gaussian process regression offers good convergence behavior for larger datasets and can capture local patterns well. However, these approaches are often sensitive to noise, scaling, and data sparsity. Given the complexity of chemical composition, conditions of operation, and configurations of wastewater treatment facilities, relying on a single algorithm risks biased or suboptimal predictions under changing conditions. Comparing multiple machine learning algorithms within a unified framework makes it possible to identify effective and suitable machine learning models for critical infrastructure-wastewater treatment systems. Multi-algorithm or hybrid comparisons improve reliability, reduce methodological bias, and enhance deeper insight into operational and process trends of wastewater treatment systems. By doing so, the approach supports robust and big-data-driven decision-making processes by leveraging the strength of individual algorithms to improve prediction of BOD5 and enhance subsequent treatment stages within the framework of ACCS.
Scientific advancement often relies on accurate terminology that differentiates one phenomenon from another. Although the concepts of cyber, chemical, automation, attack, and system approaches are well established, there is no single term for a cascade of reactions across a range of systems describing an ACCS, which is a branch of cyber-chemical systems that enables an interconnected and automated chemical reactants and products chain to be proposed and validated. This article introduces the term Automated Cyber-Chemical System (ACCS) to describe this proposed phenomenon (of predicting and validating a set of chemical reactions) while predicting the optimum BOD5 of a wastewater treatment system.
Therefore, the ACCS is defined as a cascade of reactions in a multi-step transformation across a range of chemical reaction networks within and between systems. When an emerging behavior alters the input, intermediate or final chemical product, whether due to intentional or unintentional chemistry, it is defined as an automated cyber-chemical attack that can be widely applied in critical infrastructure wastewater treatment systems.
Moreover, this article describes automated cyber-chemical attacks and cyber-security and cyber-physical attacks with a conceptual framework for so-called “cyber-chemical” attacks and addresses limitations in existing terminology, while proposing a formal definition, framework, and potential measurement strategies to consider the prediction of BOD5 in wastewater treatment systems.
The consequence of supplying insufficient oxygen based on BOD5 yields an automated cyber-chemical system in subsequent stages of the holistic wastewater life cycle, such as the aeration, secondary sedimentation/clarifier, and disinfection stages and the deficiency of oxygen in aeration causes a poor bacterial population and biological treatment [23]. Its effect is the poor settling of sludges in sedimentation and the shielding of microorganisms in the disinfection stage. Therefore, it is crucial to appropriately predict the BOD5 to supply the right amount of oxygen in aeration to avoid automated cyber-chemical attacks in all stages.
A cascade of chemical reactions, such as incomplete aeration oxidation in the aeration stage, insufficient nitrification in the aeration and nitrification stages, weak or unstable floc in the sedimentation stage, and attachment of N2 bubbles to sludge that lead to floating rather than settling in the clarifier, are the effects of low oxygen supply [24,25,26,27,28,29,30,31], which is conceptually framed as an automated cyber-chemical attack in this paper.
2. Material and Methods
2.1. Dataset
The study uses influent datasets collected from the Madison, Wisconsin, USA water reclamation facility, covering a range of years from 1996 to 2023. Over 27 years, a total of 10,150 influent parameter records (one for each day) were examined. The water reclamation facility in Madison, Wisconsin consists of four sections with preliminary treatment, primary clarification, and activated sludge treatment, including biological phosphorus removal, ultraviolet disinfection, and effluent pumping at each section [32]. The dataset consists of parameters such as Time, Flow Rate, Concentration of Ammonia, Phosphorus, Total Kjeldahl Nitrogen, Total Suspended Solids, Biological Oxygen Demand, and Chemical Oxygen Demand of influents of the facility. The datasets from Madison, Wisconsin were intentionally selected as they include many predictors with a wide range of features, publicly available datasets (upon request), and high-quality datasets to perform a range of train/test splits.
Moreover, a review of the 50-year comprehensive plan of the Madison, Wisconsin Sewerage District was performed to understand the alignment of the study and facility background, goals, objectives, strategies, and processes for the critical infrastructure. However, the comprehensive plan focuses on technical issues without considering a deep dive into automated cyber-chemical systems. Hence, this paper emphasizes defending against automated cyber-chemical attacks to avoid any subsequent impacts on the critical infrastructure.
The public record authority has released the dataset upon an official request of the researchers. Thus, it can be considered to be “available upon request”.
2.2. Dataset Cleaning
Data cleaning is not restricted to parameter cleaning; other activities such as raw data screening, range checks, label cleaning, entity matching, outlier detection, imputation, and feature cleaning are crucial. So, a holistic data cleaning approach is demonstrated using a combined methodology to examine more than one error type at the same time [33].
Visual inspection is also used for data cleaning [34]. Manual inspection is the first step in cleaning the labels and entity matching based on our experience with wastewater treatment systems. Here, the collected dataset is examined and scanned visually. Unit analysis of the raw data is performed, and entities with their corresponding values are scanned to match reasonable values. Duplicated columns and features were identified; noticeable unmatched data types were inspected.
Significant errors in values (obvious outliers) are corrected, and missing entries are investigated. Visual inspection reveals unrealistic values, uneven distributions, series of missing values, incorrect data types, and incorrect relationships among features. The visual inspection minimizes the workload of subsequent tasks, which include data cleaning, managing missing values, and handling outliers [35] using the Monte Carlo method.
The study used MATLAB’s isnan() function for numeric NaN values and ismissing() to detect missing values according to the variable’s data type. Additionally, isnat() from MATLAB (v25.1, R2025a) is used to detect Nat values in datetime for missing dates and times.
Outliers are detected and identified using the interquartile range (IQR) for train/validate and final test, where observations outside Q1 − 1.5(IQR) and Q3 + 1.5 (IQR) are flagged for investigation. Where Q1 is the first quartile (25th percentile), Q3 is the third quartile (75th percentile), and IQR is the interquartile range, the spread of the middle fifty percent of the observed data.
The first step is to identify the number of Monte Carlos replications. A range of 1000–2000 has been tested to get precise simulation results. A 2000 Monte Carlos simulation is used to generate results. The study used MATLAB’s interp1() function with a random number generator between 0 and 1 with specific linear interpolation.
Monte Carlo methods are statistical techniques that are used to estimate unknown parameters or general functions of unknown parameters and to compute their expected values, variances, and covariance [36]. They are useful for handling outliers, missing values, and errors. They are also used for generating plausible values based on the known distribution of the data to estimate missing entries rather than relying on a single fixed value. By doing so, the method supports accurate data to appropriately predict Biological Oxygen Demand and introduce ACCS. Behavior visualization provides a graphic representation of data [37] over time. For our visualization, MATLAB (v25.1, R2025a) programming was employed.
2.3. Unit Analysis
Unit analysis is used to evaluate the dimensional consistency of the wastewater treatment features to determine the relationship between their independent variables. The following parameters demonstrate both derived features: quotient and product, including their measured parameters.
The predictors are classified into seven major independent input categories:
- (i)
- Measured features (M) (6 columns): Flow rate, Phosphorus, TKN, Ammonia, TSS, COD5 (Not BOD5).
- (ii)
- Product features (P) (5 columns): Phosphorus × Flow rate, TKN×Flow rate, Ammonia × Flow rate, TSS × Flow rate, COD5 × Flow rate.
- (iii)
- Ratio features (R) (5 columns): Phosphorus/Flow rate, TKN/Flow rate, Ammonia/Flow rate, TSS/Flow rate, COD5/Flow rate.
- (iv)
- Measured plus product features (MP) (11 columns): Flow rate, Phosphorus, TKN, Ammonia, TSS, COD5, Phosphorus × Flow rate, TKN×Flow rate, Ammonia × Flow rate, TSS × Flow rate, and COD5 × Flow rate.
- (v)
- Measured plus ratio features (MR) (11 columns): Flow rate, Phosphorus, TKN, Ammonia, TSS, COD5, Phosphorus/Flow rate, TKN/Flow rate, Ammonia/Flow rate, TSS/Flow rate, and COD5/Flow rate.
- (vi)
- Product plus ratio features (PR) (10 columns): Phosphorus × Flow rate, TKN × Flow rate, Ammonia × Flow rate, TSS×Flow rate, COD5 × Flow rate, Phosphorus/Flow rate, TKN/Flow rate, Ammonia/Flow rate, TSS/Flow rate, and COD5/Flow rate.
- (vii)
- Measured plus product plus ratio features (MPR) (16 columns): Flow rate, Phosphorus, TKN, Ammonia, TSS, COD5, Phosphorus × Flow rate, TKN × Flow rate, Ammonia × Flow rate, TSS × Flow rate, and COD5 × Flow rate, Phosphorus/Flow rate, TKN/Flow rate, Ammonia/Flow rate, TSS/Flow rate, and COD5/Flow rate.
2.4. Machine Learning Models
Various machine learning (ML) models have been applied to critical infrastructure, offering significant benefits in areas ranging from basic forecasting to parameter optimization. ML models utilize observed data to generate predictions through mathematical representations of statistical relationships. Common approaches include nonlinear regression and generalized linear models [38,39]. Tree-based machine learning algorithms such as Random Forest Regression (RFR) and Decision Tree Regression (DTR) are also widely employed for predictive tasks [40,41,42,43,44,45,46]. Furthermore, deep learning, a subset of supervised learning, is suitable for both classification and regression problems. It encompasses conventional Artificial Neural Network (ANN) [47,48,49,50] as well as Ensembled Artificial Neural Network (E-ANN) architectures.
Artificial Neural Networks (ANN) are nonlinear mathematical tools intended for simulating wastewater treatment system processing through a single function and a single training operation with simple units called artificial neurons arranged in a structure known as layers. It is an n-L-m-perceptron (n inputs, L hidden layers and m outputs). Accordingly, the ANN is built with seven groups of predictors, ten hidden layers (L), and one target feature (m) of the wastewater treatment system. The E-ANN is a regression multiple neural network with repeated training for each of the networks utilized, with two hidden layers, where the first hidden layer has twenty neurons and the second hidden layer has ten neurons. Therefore, Random Forest Regression (RFR), Artificial Neural Networks (ANN), Ensemble Artificial Neural Network (E-ANN), Gradient Boosting Regression (GBR), LSBoost (LSB), Decision Tree Regression (DTR), Gaussian Kernel Regression (GKR), and Gaussian Process Regression (GPR) have been used to predict BOD5.
2.5. Performance Matrix
In this study, the performance of each of the algorithms has been evaluated. Five different tests are performed using five different unseen datasets while preserving 20% for final independent testing. Eighty percent of the dataset of Madison, Wisconsin is partitioned into five folds chronologically. Each time, the models are tested using unseen data for cross-validation. Details of the cross-validation are as follows:
80% training rows: 8120
Fold 1: Training 4060, Validation 812
Fold 2: Training 4872, Validation 812
Fold 3: Training 5684, Validation 812
Fold 4: Training 6496, Validation 812
Fold 5: Training 7308, Validation 812
To evaluate the performance of each model, statistical performance measurement matrices involving the coefficient of determination (r2), the root mean square error (RMSE), and the mean absolute error (MAE) are used [51]. The coefficient of determination (r2) measures the goodness of fit of the models. It is expressed as
where n is the total number of observations, is the predicted value of the wastewater feature for data point i, yi is the measured data indicator for data point i, and ym is the mean value of the measured values of the indicators.
The root mean squared error measures the predicted value variation around the measured datasets. It is defined as the square root of the mean of the squared residuals between predicted and actual values. The lower the RMSE, the more accurate the prediction. RMSE is expressed as
where n is the number of observations, yi is the actual value, and is the predicted value. The mean-absolute error (MAE) is the arithmetic mean of the absolute differences between the actual and predicted values. It is expressed as
where n is the total number of observations, yi is the actual value, is the predicted value, and MAE ≤ RMSE [52].
2.6. K-Fold Cross-Validation
K-fold cross-validation is used to evaluate the reliability and generalization performance of each algorithm. It is particularly effective in selecting whether the model can produce consistent predictions when trained and evaluated on different subsets of the valuable data, and it is used by practitioners for model selection and tuning hyperparameters [53]. Figure 2 illustrates the five-fold cross-validation procedure, data-splitting rations, treatment of the data, and the allocation of the final independent test data.
Figure 2.
The diagram illustrates 5-fold cross-validation and final independent test. The split into train/test datasets uses five folds (train/Validate split) using a time-ordered training and validation strategy instead of a random split. During each fold, the first two blocks are used to train and validate each algorithm, and the third block is reserved for the subsequent fold.
2.7. Predictors and Target
The choice of predictors depends on the combination of three fundamental features: measured features, product-derived features, and ratio-derived features, and their respective combinations (refer to Table 1). The product-derived features are created by multiplying two measured parameters, while the quotient-derived features are formed by dividing one measured variable by another. The combined features consist of the original measured variables, product features, and ratio features. Accordingly, choosing one category yields three combinations (Measured, Product, Ratio). Choosing two categories yields three combinations (Measured-Product, Measured-Ratio, Product-Ratio). Finally, choosing three categories yields only one combination (Measured-Product-Ratio). So, the total number of different dataset categories with different lengths and no repetition becomes seven. So, cross-validation is performed on seven categories, considering one category at a time to get its corresponding cross-validation performance matrix.
Table 1.
The table highlights three fundamental categories of predictor dataset along with their respective units and expressions. The dataset categories are measured, product-derived, and ratio-derived features. The derived features reveal hidden relationships and provide additional information to leverage predictability of BOD5. The product features show the feature loading, which represents the actual total mass entering the wastewater treatment system per day and potentially captures the combined effect of the wastewater treatment features. The quotient represents the intensity or the relation of the parameters per flow rate, where 8.34 is a unit conversion factor in the product categories. Additionally, the quotient indicates the proportion of the associated features.
The measured features are Flow Rate (Q), Concentration of Ammonia (NH3), Phosphorus (P), Total Kjeldahl Nitrogen (TKN), Total Suspended Solids (TSS), and Chemical Oxygen Demand (COD5). The product and ratio-derived features are listed in Table 1.
The target feature is the Biological Oxygen Demand (BOD5) to predict the amount of biodegradable organic pollutants such as food scraps, sewage, or industrial byproducts entering the wastewater treatment system.
Among the evaluated inputs, the combination of Ratio-derived (R), and Product-derived (P) features (one combination of two categories) demonstrated the highest performance. In contrast, the individual inputs and the combined inputs involving two categories yielded the lowest performance. The detailed results are presented in Appendix A for completeness. However, for this study, the best-performing combined input (product-derived and ratio-derived (PR) Features) was selected for further evaluation and comparison across the models.
3. Results
3.1. Data
Out of 10,150 days of collected data, substantial missing values and outliers were identified for train/validate (8120 observations) and the final test set (2030 observations). Table 2 presents the data preprocessing details for both training/validation datasets and the final independent test dataset.
Table 2.
Summary of missing values and outliers over 8120 data entries for training and validation and 2030 data entries for final independent test. Flow rate comprises the highest number of missing values, while Ammonia and TSS have the least number of missing values in training and validation datasets. Ammonia has the least number of outliers, while flow rate has the highest number of outliers in training and validation datasets. Flow rate has the least number of missing values, while COD5 has the highest number of missing values in final test sets. Flow rate has the highest number of outliers, while TKN has the least number of outliers in final independent test sets.
3.2. Monte Carlo Analysis
Density plots are graphical representations of a continuous variable that show the probability density of data values rather than raw counts. The density plot shows how data cleaning using Monte Carlo was an effective method to manage missing values, outliers, and measurement error values in the dataset. The Monte Carlo method is utilized to replace/be resilient to missing values and corrupt measurements for both train/validate and the final independent test. The results are presented in Figure 3, where plots (a) and (b) highlight the data treatment results for the training/validation datasets, while plots (c) and (d) illustrate the corresponding results for the final independent test dataset.
Figure 3.
The density plot is a continuous curve showing the distribution of TSS values in a wastewater treatment system. The x-axis highlights TSS concentration in mg/L, while the y-axis shows the probability density, measured in inverse of the TSS measurement unit. Peaks indicate the most common TSS values; a right-skewed distribution indicates that most entries have low TSS levels, with a few entries having very high values. Density plot of the datasets before and after Monte Carlo-based data treatment using TSS as an example: (a) training and validation datasets before treatment, (b) training and validation datasets after treatment, (c) independent final test datasets before treatment, and (d) independent final test datasets after treatment. Figures (a,c) show a positively skewed distribution, suggesting that most observations are concentrated at lower TSS concentrations, with a few extreme values extending toward the right tail. This indicates the presence of potential outliers that may influence the distribution and statistical characteristics of the dataset in both the training/validation and final independent test. Figures (b,d) indicate a more refined distribution following the treatment of missing values and outliers in training/validation and final independent test. The result highlights that the extreme observations have less influence on the overall distribution. The multiplication factor ×10−3 is applied to the values presented in Y axis of figure (c,d). This scaling factor has been indicated in the corresponding axis for clarity.
Data Treatment Validation
The data preprocessing and validation framework evaluates four imputation techniques, such as column-wise median imputation, K-nearest neighbors (KNN), multiple imputation by chain equations (MICE), and linear interpolation [54]. These methods are evaluated under three missing-data mechanisms, such as Missing Completely at Random (MCAR), Missing at Random (MAR), and Not Missing at Random (NMAR), using masking-data proportions of 5%, 10%, 20%, and 30%.
MCAR randomly removes specified percentages of the predictors, as some measurements might be lost because of random communication failure over time. So, every observation has the same probability of being masked, whatever its value. MAR removes the specified percentages of predictors according to another observed predictor, as the predictor measurement is more likely to be missing when the other predictor is extreme. So, an observation with an extreme value of other observed predictors has a higher probability of being masked. NMAR removes the specified percentages of predictors according to their own actual values, as sensors might fail when the predictor is extremely high. So, higher predictor values have a higher probability of being masked. The replacement of outliers in this case is compatible with detecting manipulated sensor values, as overlooked and suspicious observations are identified and flagged before replacement. For this reason, the article presents a conceptual framework of ACCS. Finally, the performance of the data treatment validation process is provided for each of the seven original features. Accordingly, the Montecarlo’s simulation with linear interpolation consistently validates the original features except COD5 and BOD5. MICE outperforms the other three imputation techniques for COD5 and BOD5, as shown in Appendix E.
3.3. Raw Data
Snapshot of Datasets-Measured and Derived Features
Measured features are parameters taken by direct recording or by measuring the wastewater parameters, as illustrated in Table 3, whereas derived features are parameters created by transforming the raw data either by taking the ratio or product of parameters. Derived features support nonlinearity in the combined use of multiple features, thus offering the possibility of revealing hidden insights in the data’s use for prediction. The product- and ratio-based derived features are presented in Table 4 and Table 5, respectively.
Table 3.
The table shows initial snapshot of seven measured features of wastewater treatment systems over the course of 27 years. It consists of the data values of Flow Rate, BOD5, COD5, Ammonia, TKN, Phosphorus, and TSS before cleaning and preprocessing.
Table 4.
The table highlights snapshots of five derived features (products) of wastewater treatment system over the course of 27 years. It consists of data values of COD5 load, Ammonia load, TKN load, Phosphorus load, and TSS load before cleaning and preprocessing.
Table 5.
The table illustrates a snapshot of five derived features (ratios) of wastewater treatment system over the course of 27 years. This snapshot considers the ratio of raw Flow Rate with COD5, Ammonia, TKN, Phosphorus, and TSS before cleaning and preprocessing.
3.4. Statistical Summary
A statistical summary provides a concise description of the measured datasets using numerical measures that help the reader understand the mean, variance, and overall distribution without looking at every individual entry for both train/validate and final test, as shown in Table 6.
Table 6.
Statistical summary and data quality assessment of cleaned dataset of wastewater treatment system for train/validate and final test data entries after preprocessing. It consists of Mean, Std, Minimum, Maximum and median statistical values of train/validate and final independent test sets.
3.5. Hyperparameter Tuning Insight
The study used MathWorks MATLAB (v25.1, R2025a) with the associated library for each model and implemented the hyperparameters of each model, then refined the search around those with the best cross-validation performance in thirty iterations for each fold.
- Tuned hyperparameters of Gaussian Process Regression: KernelFunction, BasisFunction, Standardize, FitMethod, PredictMethod, Optimizer. The “squaredexponential” kernel function performs better than the other kernel functions, such as ‘matern5/2’, ‘matern32’, and ‘rationalquadratic’.
- Tuned hyperparameters of the Artificial Neural Network (ANN) Model: Activationfunction, ActivationList, HiddenLayersSize, trainingAlgorithms, hiddenActivation, and OutputActivation. The ‘trainlm’ algorithm performs better than ‘trainscg’ with slit differences and we have tuned the other hyperparameters, but ‘trainlm’ training algorithm dominates the change in CV performance.
- Tuned hyperparameters of Random Forest Regression Model: NumTrees, Method, OOBPrediction, MinLeafSize, and NumPredictorsToSampl. RFR is restricted to only one method, which is regression, as the other method is classification. In our case, regression is the most appropriate as the study has a continuous numerical variable. In this model, the other hyperparameters are tuned, including the number of trees. The model performs better when the number of trees is between 150 and 5000. It maintains its cross-validation performance at 200 trees. The change in other hyperparameters did affect the performance significantly, with a noticeable change.
- Tuned Hyperparameters of Gradient Boosting Regression: learning rate, Minimum sample split, Subsample, Minimum sample leaf, maximum depth, and number of estimators are the tuned hyperparameters of the model, as shown in Table 7. The optimal hyperparameter values across five folds are the following.Table 7. Summary of hyperparameter values of each fold.
- 5.
- Tuned hyperparameters of the Ensemble Artificial Neural Network (E-ANN) model: Hidden layers, Neurons, Training function, Epoch, Hidden activation, and output activation. In this model, the other hyperparameters are tuned, including the validation failures. The model performs better when the training function is “trainlm” rather than “trainscg”. The training function “trainlm” maintains its cross-validation performance with two hidden layers: 20 neurons and 10. It was the dominant function of the model, as the hyperparameters did not change the performance significantly. The output layer was one neuron for a single continuous target.
- 6.
- Tuned hyperparameters of the LSBoost (LSB) model: the model is implemented using the fitrensemble function for thirty iterations for each fold. The tuned hyperparameters are NumlearningCycles, learnrate, MinLeafSize, and MaxNumSplits.
- 7.
- Tuned hyperparameters of the Decision Tree Regression (DTR) model: MinLeafSize, MaxNumSplits, and MinParentSize are tuned. It is implemented using fitree for thirty iterations for each fold to determine the optimum value of the hyperparameters.
- 8.
- Tuned hyperparameters of Gaussian kernel Regression (GKR)Model: kernelScale, Lambda, Learner, Epsilon, Standardize, and NumExpansionDimension are tuned. The model evaluated thirty functions using a combination of hyperparameters using regression learners, such as least squares and svm at each fold. The two learners perform based on their associated hyperparameters interchangeably across thirty iterations using the fitrkernel method, and the best one is selected.
3.6. Model Selection
Tukey HSD shows no significant difference between E-ANN, GPR, GBR, LSB and RFR, nor between PR and M, MR, MP or MPR.
Model selection was based on five-fold cross-validation. The model with the highest r2, and the lowest mean MAE and RMSE across folds was selected, as explained in Table 8, with the standard deviation across folds used to assess model stability with pairwise comparison. Accordingly, Tukey HSD highlights no statistically significant differences among E-ANN, GPR, GBR, LSB, and RFR, nor among PR and M, MR, MP, or MPR. P and R are statistically the worst.
Table 8.
The table represents cross-validation and final test performance of the top four evaluated models using PR predictors.
3.7. Model Behavior—Actual vs. Predicted Trend over Time
Eight models describe the behavior of BOD5 in both cases: actual and predicted. Although all eight models show the continuous trend, they predicted different behavior patterns. Figure 4, Figure 5, Figure 6, Figure 7, Figure 8, Figure 9, Figure 10 and Figure 11 illustrate the actual and predicted BOD5 behavior obtained using eight models with PR predictor. In each figure, plot (a) presents the actual versus predicted values, while plot (b) shows the corresponding residual values for each model.
Figure 4.
Behavior of actual and predicted Biological Oxygen Demand (BOD5), including residuals using Random Forest Regression: (a) actual and predicted trends; (b) residuals.
Figure 5.
The trend of both actual and predicted behaviors, including residuals, using Gaussian Process Regression (GPR) model: (a) actual and predicted trends; (b) residuals.
Figure 6.
The ANN model exhibits continuous predicted and actual trends and residuals of Biological Oxygen Demand (BOD5): (a) actual and predicted trend; (b) residuals.
Figure 7.
E-ANN, the Ensembled ANN structure, shows predicted, actual, and residual trends of Biological Oxygen Demand (BOD5): (a) actual and predicted trends; (b) residuals.
Figure 8.
The behavior of predicted, actual, and residual trends of Biological Oxygen Demand (BOD5) using GBR: (a) actual and predicted trends; (b) residuals.
Figure 9.
The diagram shows the trend of actual, predicted, and residual behaviors using Decision Tree Regression (DTR) model: (a) actual and predicted trends; (b) residuals.
Figure 10.
The diagram shows the trend of actual, predicted, and residual behaviors using Least Squares Boosting (LSB) model: (a) actual and predicted trends; (b) residuals.
Figure 11.
The diagram shows the trend of actual, predicted, and residual behaviors using Gaussian Kernel Regression (GKR) model: (a) actual and predicted trends; (b) residuals.
3.8. Sensitivity Analysis
Sensitivity was evaluated relative to the BOD5 baseline predicted values by introducing a ±5% variation in the PR predictor dataset. The sensitivity was calculated using the following equation:
The percentage change in sensitivity was then calculated, and the corresponding interquartile ranges (IQRs) were reported for both the 5% decrease and 5% increase scenarios relative to the baseline predictors, as illustrated in Table 9. Following a 5% reduction in the baseline of the PR predictor, the sensitivity of DTR remains zero, indicating no change in the predicted BOD5 relative to the baseline. In contrast, the sensitivity of ANN ranges from −9.530% to 9.590% after excluding outliers. This indicates that a 5% increase in the predictors can result in a 9.530% reduction or 9.590% increase in the BOD5 prediction. Furthermore, a 5% increase in the predictors results in a 0.291% decrease in the output when using DTR, whereas a 5% decrease leads to a 0.187% increase. For ANN, the corresponding changes in the output are a 2.59% decrease and a 7.529% increase, respectively, when the predictor is adjusted by −5% and +5%.
Table 9.
Sensitivity analysis results for ± 5% variations from the baseline values of models in predicting BOD5 using PR predictor. The sensitivity analysis results highlight positive (Increasing) and negative (decreasing) percentage changes (%) relative to the baseline values in predicting BOD5 following ± 5% perturbations of input parameters. It consists of the minimum, maximum, first quantile (Q1), median, and third quantile (Q3) values.
4. Discussion
This study introduced the concept of an automated cyber-chemical system on vulnerable critical infrastructures. The research leverages machine learning algorithms to predict BOD5 and introduce ACCS conceptually, as the prediction is crucial for monitoring and controlling oxygen supply stations. This paper incorporates measured and derived features of the Madison, Wisconsin wastewater treatment system from 1996 to 2023. The study uses derived features representing major wastewater treatment parameters such as COD5 load, ammonia load, phosphorus load, and other relevant variables. Moreover, it introduces ratio-based features that normalize actual measured parameters by flow rate (measured parameter values per unit flow). Implementing both product- and ratio-based derived features signifies a novel and unique aspect of this research, effectively introducing nonlinear relationships between reported dataset features. The study has considered machine learning algorithms such as Random Forest Regression, Artificial Neural Network, Ensembled Artificial Neural Network, Gaussian Process Regression, Least Squares Boosting, Decision Tree Regression, Gaussian Kernel Regression, and Gradient Boosting Regression to analyze measured and derived historical datasets. The research leverages machine learning algorithms to predict BOD5 in a wastewater treatment system. Cross-validation performance metrics, including coefficient of determination (r2), as explained in Figure 12, Root Mean Square Error (RMSE), and Mean Absolute Error (MAE) are used to evaluate model performance. The corresponding results of RMSE and MAE are shown in Figure 13a and Figure 13b. Moreover, coefficient of variation has been determined across seven predictors, as shown in Figure 14. Ratio-product-derived predictors outperform the other six (Measured, Product, Measured-product-derived, Measured-Ratio-Derived, Ratio, Measured-Product-Ratio), indicating the value of introducing the nonlinear derived features. Based on the fundamental cross-validation performance matrix, as explained in Appendix A, Model E-ANN demonstrated a moderate cross-validation (CV) performance among all evaluated models, achieving the r2 (0.7269 ± 0.0382), the lowest RMSE (18.3787 ± 0.7376 mg/L), and MAE (12.7033 ± 0.6290 mg/L). However, its performance declined on the final test dataset, with a lower r2 (0.5086), a higher RMSE of 33.73 mg/L, and a higher MAE of 20.10 mg/L. The observed decline in model performance from CV to final testing may be attributed to the combined effects of temporal drift, hyperparameter optimization, and differences between the training and testing datasets. Temporal drift may occur in large datasets as sensor readings gradually change over time due to sensor aging, variations in environmental conditions, and equipment degradation. Further, hyperparameter tuning may contribute to performance differences because optimization is performed across individual folds during CV. Another contributing factor may be the difference in training data utilization: during cross-validation, only a fraction of the 80% training dataset is used for model fitting in each fold, whereas the final model is trained on the entire 80% training dataset and evaluated on the previously unseen 20% test dataset. Consequently, the reduction in predictive performance may reflect the combined influence of temporal variations, differences in data distribution, and hyperparameter optimization across the training and validation stages.
Figure 12.
The trend shows the Coefficient of determination of each model across seven data categories. It illustrates the agreement between observed and predicted values. Additionally, the figure indicates the explanatory power and predictive performance of the models across seven predictors. Product-based predictor has the lowest r2 across all Models. The combined predictors moderately maintain higher r2 across all models.
Figure 13.
The trend shows the Mean Absolute Error (MAE) and the root mean squared error (RMSE) of each model across seven predictor categories with respect to the target standard deviation (SD): (a) MAE; (b) RMSE. Product-based predictors have the highest MAE and RMSE across all Models.
Figure 14.
The bar chart shows the variability of each model across seven predictor categories. The variability is expressed as a decimal using the coefficient of variation, calculated across the five folds for each of the seven predictors with respect to the respective models. It is determined by dividing the standard deviation (SD) by the mean across five folds.
The article highlights the significance of pairwise comparisons of predictors and models, as shown in Appendix B, Appendix C and Appendix D. Which predictors and models’ pairwise comparisons are significantly different in cross-validation performance matrices (r2, RMSE, and MAE)?
- (1)
- Predictor type?
Null hypothesis (H0): All means of CV performance matrices of predictors in predicting BOD5 are equal after accounting for models
Alternative hypothesis (Hl) = At least one adjusted mean of CV performance matrices of predictors differs.
- (2)
- Model Type?
Null hypothesis (H0): All means of CV performance matrices of Models in predicting BOD5 are equal after accounting for predictors
Alternative hypothesis (Hl) = At least one adjusted mean of CV performance matrices of models in predicting BOD5 differs.
Predictors and models: The effect in probability (Pr) values of r2, RMSE, and MAE are Pr < 2 × 10−16 for all predictors and Pr = 0.000404, 9.03 × 10−5, and 0.00102 for all models, respectively, which are statistically significant. This highlights the evidence that r2, RMSE, and MAE mean differ among the different predictor data categories, after considering different machine learning models. Moreover, this highlights the evidence that r2, RMSE, and MAE mean differ among the different machine learning models, after considering different predictor categories. The residual sum of squares represents unexplained variation remaining after considering the predictors and the models. Both factors, predictor categories and model types, were significant at the 5% significance level (Pr < 0.05). Pr < 0.05; therefore, reject H0. There is evidence that at least one of the models and predictors is significantly different in the mean values of r2, RMSE, and MAE.
Tukey’s HSD test was used to identify which pair of predictors and models differed significantly. There is a significant difference between the P- and R-based predictors and the remaining predictors. Therefore, reject H0. There is evidence that product- and ratio-derived predictors significantly differ in Mean r2, RMSE, and MAE values from the others, because p adj (0.0000,0.0001,0.003 with the other predictors) < 0.05. Except for the P and R pairwise comparison with the rest of the predictors, No difference in the mean values of r2, RMSE, and MAE between the other pairwise comparisons, because p adj > 0.05 for all the remaining pairs.
There are statistically significant differences between the pairs of ANN and E-ANN (p adj = 0.0283), E-ANN and GKR (p adj = 0.0021), GKR and Model GPR (p adj = 0.0075), LSB (p adj = 0.0151), and RFR (p adj = 0.0159) in their r2 in predicting BOD5 at the 0.05 level. Moreover, there is a statistically significant difference between the pair of ANN and E-ANN (p adj = 0.0110), E-ANN and GKR (p adj = 0.0019), and GKR and GPR (p adj = 0.0138) in their MAE in predicting BOD5. There is also a statistically significant difference between the pair of ANN and E-ANN (p adj = 0.0033), ANN and GBR (p adj = 0.0327), ANN and GPR (p adj = 0.0148), ANN and LSB (p adj = 0.0404), ANN and RFR (p adj = 0.0420), E-ANN and GKR (p adj = 0.0012), GBR and GKR (p adj = 0.0132), GKR and GPR (p adj = 0.0057), GKR and LSB (p adj = 0.0166), GKR and RFR (p adj = 0.0173) in their RMSE in predicting BOD5 at the 0.05 level.
5. Conclusions
The study has shown that predictor combinations MR, PR, MP, MPR, and M outperform the individual predictors P and R in predicting BOD5. Model GKR also demonstrates comparable predictive performance to models DTR and ANN despite significant differences from the other five models. Linear interpolation generally provides consistent data treatment and validation, whereas MICE is more effective for BOD5 and COD5. Overall, integrating these predictive models, data treatment methods, and validation approaches provides a foundation for evaluating the application of the ACCS concept in critical infrastructure, particularly wastewater treatment systems. One of the out-performing models in predicting BOD5 is model E-ANN, which achieved a value of 0.7269 ± 0.0382%, 18.3787 ± 0.7376 mg/L, and 12.7033 ± 0.6290 mg/L for r2, RMSE, and MAE, respectively, while RFR predicts with higher final test performance matrices with PR predictors.
Leveraging accurate daily predictions facilitates more effective management of BOD5 in the aeration stage and enhances bacteria population control within the framework of ACCS. The results show that the performance of the same machine learning algorithm can vary significantly depending on the type of predictors used, even when all other circumstances remain the same.
Furthermore, the framework can be adapted by incorporating additional operational parameters and alternative engineered features. Future research should investigate different data-splitting strategies and should feature engineering techniques along with a broader range of machine learning algorithms to further improve model performance and generalizability. More importantly, extend the ACCS framework through experimental evidence and the characterization of cyber-chemical systems, including attack and defense strategies for critical infrastructure and its associated stakeholders.
Author Contributions
Methodology, Y.N.; Conceptualization, Y.N. and S.J.S.; Software, Y.N.; Data curation, Y.N.; Analysis and validation, Y.N.; Investigation, Y.N. and S.J.S.; Writing—original draft preparation, Y.N.; Writing—review, S.J.S.; Writing—editing, S.J.S.; Supervision, S.J.S.; Project administration, S.J.S. and Y.N. All authors have read and agreed to the published version of the manuscript.
Funding
The authors received financial support from Colorado Senate Bill 18-086, “Cyber Coding Cryptology for State Records” for the publication of this article.
Data Availability Statement
The dataset is available upon request to the Madison, Wisconsin Sewerage District.
Acknowledgments
The authors gratefully acknowledge partial support for this research by Colorado Senate Bill 18-086, “Cyber Coding Cryptology for State Records”, https://leg.colorado.gov/bills/SB18-086 (accessed on 7 January 2023–30 June 2025).
Conflicts of Interest
The authors declare no conflicts of interest.
Appendix A. Cross-Validation and Test Performance Metrics of Eight Models Using Seven Predictors
Table A1.
Summary of CV and Test performance metrics of seven categories of predictors and eight models. In this Appendix A, mg/L is the unit of measurement for RMSE mean ± std and MAE mean ± std. Percent (%) is the measurement of r2 mean ± std.
Appendix B. r2-Based ANOVA and TukeyHSD Results
Table A2.
Summary of a two-way additive ANOVA.
Table A3.
Significance of pairwise comparison of predictor categories using TukeyHSD().
Table A4.
Significance of pairwise comparison of Models using TukeyHSD().
Appendix C. MAE-Based ANOVA and TukeyHSD Results
Table A5.
Summary of a two-way additive ANOVA.
Table A6.
Significance of pairwise comparison of predictor categories using TukeyHSD().
Table A7.
Significance of pairwise comparison of models using TukeyHSD().
Appendix D. RMSE-Based ANOVA and TukeyHSD Results
Table A8.
Summary of a two-way additive ANOVA.
Table A9.
Significance of pairwise comparison of predictor categories using TukeyHSD().
Table A10.
Significance of pairwise comparison of models using TukeyHSD().
Appendix E
Data treatment validation using four imputation techniques (Interpolation, Median, KNN, and MICE) across three missing-data mechanisms (MCAR, MAR, NMAR) and four masking proportions (5%, 10%, 20%, and 30%).
Figure A1.
Flow rate data treatment validation performance using four imputation techniques.
Figure A2.
COD5 data treatment validation performance using four imputation techniques.
Figure A3.
BOD5 data treatment validation performance using four imputation techniques.
Figure A4.
TSS data treatment validation performance using four imputation techniques.
Figure A5.
Phosphorus data treatment validation performance using four imputation techniques.
Figure A6.
TKN data treatment validation performance using imputation techniques.
Figure A7.
Ammonia data treatment validation performance using four imputation techniques.
References
- Kim, S.; Park, K.J.; Lu, C. A survey on network security for cyber–physical systems: From threats to resilient design. IEEE Commun. Surv. Tutor. 2022, 24, 1534–1573. [Google Scholar] [CrossRef] [Scilit]
- Cybersecurity & Infrastructure Security Agency. Water and Wastewater Sector; U.S. Department of Homeland Security: Washington, DC, USA, 2015. Available online: https://www.cisa.gov/topics/critical-infrastructure-security-and-resilience/critical-infrastructure-sectors/water-and-wastewater-sector (accessed on 29 December 2024).
- The White House. Presidential Policy Directive/PPD-21: Critical Infrastructure Security and Resilience. 12 February 2013. Available online: https://www.cisa.gov/sites/default/files/publications/PPD-21-Critical-Infrastructure-and-Resilience-508.pdf? (accessed on 1 January 2023).
- Brooks, C. Alarming cyber statistics for mid-year 2022 that you need to know. Forbes 2022, 3. Available online: https://www.forbes.com/sites/chuckbrooks/2022/06/03/alarming-cyber-statistics-for-mid-year-2022-that-you-need-to-know/? (accessed on 4 January 2023).
- Velayudhan, N.K.; Pradeep, P.; Rao, S.N.; Devidas, A.R.; Ramesh, M.V. IoT-enabled water distribution systems—A comparative technological review. IEEE Access 2022, 10, 101042–101070. [Google Scholar] [CrossRef] [Scilit]
- Hassanzadeh, A.; Rasekh, A.; Galelli, S.; Aghashahi, M.; Taormina, R.; Ostfeld, A.; Banks, M.K. A review of cybersecurity incidents in the water sector. J. Environ. Eng. 2020, 146, 03120003. [Google Scholar] [CrossRef] [Scilit]
- Morin-Crini, N.; Lichtfouse, E.; Liu, G.; Balaram, V.; Ribeiro, A.R.L.; Lu, Z.; Stock, F.; Carmona, E.; Teixeira, M.R.; Picos-Corrales, L.A.; et al. Worldwide cases of water pollution by emerging contaminants: A review. Environ. Chem. Lett. 2022, 20, 2311–2338. [Google Scholar] [CrossRef] [Scilit]
- Kashani, M.; Engle, M.A.; Kent, D.B.; Gregston, T.; Cozzarelli, I.M.; Mumford, A.C.; Varonka, M.S.; Harris, C.R.; Akob, D.M. Illegal dumping of oil and gas wastewater alters arid soil microbial communities. Appl. Environ. Microbiol. 2024, 90, e01490-23. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Maxcy-Brown, J.; Elliott, M.A.; Krometis, L.A.; Brown, J.; White, K.D.; Lall, U. Making waves: Right in our backyard-surface discharge of untreated wastewater from homes in the United States. Water Res. 2021, 190, 116647. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Usher, M. Making shit social: Combined sewer overflows, water citizenship and the infrastructural commons. In Infrastructuring Urban Futures; Bristol University Press: Bristol, UK, 2023; pp. 109–136. [Google Scholar]
- Jamail, D.; Blumenfeld, E. The Tragic State of the Gulf of Mexico: Sampling Reveals Oil and Dispersants on Mississippi Coast. Truthout, 12 January 2011. Available online: https://truthout.org/articles/the-tragic-state-of-the-gulf-of-mexico-sampling-reveals-oil-and-dispersants-on-mississippi-coast/ (accessed on 5 February 2023).
- Day, J.W.; Rivera-Arriaga, E.; del Carmen Peña-Puch, A.; Hunter, R.G. Sustainability of Gulf of Mexico coastal estuaries and lagoons: Interactions with hydrocarbon production—A review with a look to the future. Sustainability 2024, 16, 8601. [Google Scholar] [CrossRef] [Scilit]
- Herzka, S.Z.; Zaragoza Álvarez, R.A.; Peters, E.M.; Hernández Cárdenas, J.C. (Eds.) Hidrocarburos. In Atlas de Línea Base Ambiental Del Golfo de México (Tomo IV); Consorcio de Investigación del Golfo de México: Ensenada, Mexico, 2021. [Google Scholar]
- Herzka, S.Z.; Álvarez, R.A.Z.; Peters, E.M.; Cárdenas, G.H. (Eds.) Atlas de Línea Base Ambiental Del Golfo de México; CICESE Carretera: Ensenada, Mexico, 2021. [Google Scholar]
- Jones, H.W. The Challenger Tragedy was Caused by an Apollo Mistake, Terminating Risk Analysis. In Proceedings of the 11th IAASS Conference “Managing Risk in Space”, Virtual, 19–21 October 2021. [Google Scholar]
- Bobboi, I.A.; Dimililer, K. Interpretable Machine Learning and Deep Learning Models for Predicting Chemical Oxygen Demand and Biological Oxygen Demand in Industrial Wastewater Treatment Plants for Improved Operational Efficiency and Cost-Effectiveness: A Review. In 2025 9th International Symposium on Multidisciplinary Studies and Innovative Technologies (ISMSIT); IEEE: New York, NY, USA, 2025; pp. 1–6. [Google Scholar]
- Qambar, A.S.; Al Khalidy, M.M. Prediction of municipal wastewater biochemical oxygen demand using machine learning techniques: A sustainable approach. Process Saf. Environ. Prot. 2022, 168, 833–845. [Google Scholar] [CrossRef] [Scilit]
- Kerem, A.; Yuce, E. Electrical energy recovery from wastewater: Prediction with machine learning algorithms. Environ. Sci. Pollut. Res. 2023, 30, 125019–125032. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Juan, N.P.; Matutano, C.; Valdecantos, V.N. Uncertainties in the application of artificial neural networks in ocean engineering. Ocean Eng. 2023, 284, 115193. [Google Scholar] [CrossRef] [Scilit]
- Zare Abyaneh, H. Evaluation of multivariate linear regression and artificial neural networks in prediction of water quality parameters. J. Environ. Health Sci. Eng. 2014, 12, 40. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Zhou, P.; Li, Z.; Snowling, S.; Baetz, B.W.; Na, D.; Boyd, G. A random forest model for inflow prediction at wastewater treatment plants. Stoch. Environ. Res. Risk Assess. 2019, 33, 1781–1792. [Google Scholar] [CrossRef] [Scilit]
- Kim, M.; Kim, Y.; Kim, H.; Piao, W.; Kim, C. Evaluation of the K-nearest neighbor method for forecasting the influent characteristics of wastewater treatment plant. Front. Environ. Sci. Eng. 2016, 10, 299–310. [Google Scholar] [CrossRef] [Scilit]
- Abdelfattah, A.; Ramadan, H.; Elsamahy, T.; Eltawab, R.; Mostafa, S.; Zhou, X.; Cheng, L. Multifaced features and sustainability of using pure oxygen in biological wastewater treatment: A review. J. Water Process Eng. 2023, 53, 103883. [Google Scholar] [CrossRef] [Scilit]
- Liu, G.; Wang, J.; Campbell, K. Formation of filamentous microorganisms impedes oxygen transfer and decreases aeration efficiency for wastewater treatment. J. Clean. Prod. 2018, 189, 502–509. [Google Scholar] [CrossRef] [Scilit]
- Wilén, B.M.; Balmer, P. The effect of dissolved oxygen concentration on the structure, size and size distribution of activated sludge flocs. Water Res. 1999, 33, 391–400. [Google Scholar] [CrossRef] [Scilit]
- Palm, J.C. Relationship Between Organic Loading, Dissolved Oxygen Concentration, and Sludge Settleability in the Completely-mixed Activated Sludge Process; University of California: Berkeley, CA, USA, 1982. [Google Scholar]
- Ding, W.; Liu, Z.; Wang, X. Modeling of wastewater treatment and dynamic optimization control of dissolved oxygen concentration in aeration tanks. J. Environ. Eng. 2025, 151, 04025050. [Google Scholar] [CrossRef] [Scilit]
- Pittoors, E.; Guo, Y.; Wh Van Hulle, S. Modeling dissolved oxygen concentration for optimizing aeration systems and reducing oxygen consumption in activated sludge processes: A review. Chem. Eng. Commun. 2014, 201, 983–1002. [Google Scholar] [CrossRef] [Scilit]
- Fan, H.; Liu, X.; Wang, H.; Han, Y.; Qi, L.; Wang, H. Oxygen transfer dynamics and activated sludge floc structure under different sludge retention times at low dissolved oxygen concentrations. Chemosphere 2017, 169, 586–595. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Guo, J.; Peng, Y.; Wang, S.; Zheng, Y.; Huang, H.; Wang, Z. Long-term effect of dissolved oxygen on partial nitrification performance and microbial community structure. Bioresour. Technol. 2009, 100, 2796–2802. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- U.S. Environmental Protection Agency, Office of Water Program Operations, Municipal Operations Branch. Process Control Manual for Aerobic Biological Wastewater Treatment Facilities; (EPA 430/9-77-006); U.S. Environmental Protection Agency: Washington, DC, USA, 1977. [Google Scholar]
- McGowan, S.; Wang, E. 50-Year Master Plan Review of Existing Treatment Facilities; Malcolm Pirnie: New York, NY, USA, 2008. [Google Scholar]
- Côté, P.O.; Nikanjam, A.; Ahmed, N.; Humeniuk, D.; Khomh, F. Data cleaning and machine learning: A systematic literature review. Autom. Softw. Eng. 2024, 31, 54. [Google Scholar] [CrossRef] [Scilit]
- Fisch, G.S. Visual inspection of data revisited: Do the eyes still have it? Behav. Anal. 1998, 21, 111–123. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Lianne & Justin @ Just into Data. Data Cleaning in Python: The Ultimate Guide (2020). Available online: https://towardsdatascience.com/data-cleaning-in-python-the-ultimate-guide-2020-c63b88bf0a0d (accessed on 28 October 2021).
- Koch, K.R. Monte Carlo methods. In Mathematische Geodasie/Mathematical Geolodesy: Handbuch der Geodasie; Freeden, W., Rummel, R., Eds.; Springer: Berlin/Heidelberg, Germany, 2020; pp. 445–475. [Google Scholar]
- Few, S. Data Visualization for Human Perception. Available online: https://www.interaction-design.org/literature/book/the-encyclopedia-of-human-computer-interaction-2nd-ed/data-visualization-for-human-perception (accessed on 28 May 2020).
- Tibshirani, R. Regression shrinkage and selection via the Lasso. J. Roy. Stat. Soc. B 1996, 58, 267–288. [Google Scholar] [CrossRef] [Scilit]
- Agresti, A.; Franklin, C.A. Statistics: The Art and Science of Learning from Data, 3rd ed.; Pearson: London, UK, 2011. [Google Scholar]
- Breiman, L.; Friedman, J.H.; Olshen, R.A.; Stone, C.J. Classification and Regression Trees; Wadsworth, Inc.: Belmont, CA, USA, 1984. [Google Scholar]
- Quinlan, J.R. Induction of Decision Trees. Mach. Learn. 1986, 1, 81–106. [Google Scholar] [CrossRef] [Scilit]
- Domingos, P.; Pazzani, M. On the optimality of the simple Bayesian classifier under zero-one loss. Mach. Learn. 1997, 29, 103–137. [Google Scholar] [CrossRef] [Scilit]
- Friedman, J.H. Greedy function approximation: A gradient boosting machine. Ann. Stat. 2001, 29, 1189–1232. [Google Scholar] [CrossRef] [Scilit]
- Hastie, T.; Tibshirani, R.; Friedman, J.H. Chapter 10. Boosting and additive trees. In The Elements of Statistical Learning, 2nd ed.; Springer: New York, NY, USA, 2009; pp. 337–384. [Google Scholar]
- Breiman, L. Random forests. Mach. Learn. 2001, 45, 5–32. [Google Scholar] [CrossRef] [Scilit]
- Cover, T.M.; Hart, P.E. Nearest neighbor pattern classification. IEEE Trans. Inf. Theor. 1967, 13, 21–27. [Google Scholar] [CrossRef] [Scilit]
- Le Cun, Y.; Bengio, Y.; Hinton, G. Deep learning. Nature 2015, 521, 436–444. [Google Scholar] [PubMed]
- Schmidhuber, J. Deep learning in neural networks: An overview. Neural Netw. 2015, 61, 85–117. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Amari, S.-I. Learning patterns and pattern sequences by self-organizing nets of threshold elements. IEEE Trans. C 1972, 21, 1197–1206. [Google Scholar] [CrossRef] [Scilit]
- Hopfield, J.J. Neural networks and physical systems with emergent collective computational abilities. Proc. Natl. Acad. Sci. USA 1982, 79, 2554–2558. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Granata, F.; Papirio, S.; Esposito, G.; Gargano, R.; De Marinis, G. Machine learning algorithms for the forecasting of wastewater quality indicators. Water 2017, 9, 105. [Google Scholar] [CrossRef] [Scilit]
- Garcia Cabello, J. Mathematical neural networks. Axioms 2022, 11, 80. [Google Scholar] [CrossRef] [Scilit]
- Teodorescu, V.; Obreja Brașoveanu, L. Assessing the validity of k-fold cross-validation for model selection: Evidence from bankruptcy prediction using random forest and XGBoost. Computation 2025, 13, 127. [Google Scholar] [CrossRef] [Scilit]
- Toye, A.A.; Celik, A.; Kleinberg, S. Benchmarking missing data imputation methods for time series using real-world test cases. Proc. Mach. Learn. Res. 2025, 287, 480. [Google Scholar] [PubMed]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.




















