Skip to Content
ProcessesProcesses
  • Article
  • Open Access

2 December 2026

19 Pages

Development of a Hybrid Aspen Plus–Random Forest Modeling Framework for Energy-Centric Performance Assessment and Predictive Optimization of Industrial-Scale Electroplating Wastewater Treatment

,
,
,
,
and
1
Zhejiang Moisten Environmental Technology Co., Ltd., Hangzhou 310017, China
2
School of Chemical Engineering, Northwest University, Xi’an 710069, China
*
Authors to whom correspondence should be addressed.

Abstract

To address high chemical consumption, inefficient energy evaluation, and reliance on empirical operation in large-scale electroplating wastewater treatment, this study develops a hybrid Aspen Plus–random forest framework for energy analysis and rapid prediction of both NaOH solution requirement and total system power consumption in a 5 × 104 m3/d treatment system. Steady-state Aspen Plus models were established for copper-, nickel-, and chromium-containing wastewaters using hydroxide precipitation, neutralization precipitation, and reduction–precipitation, respectively. Sensitivity analyses were then performed to quantify the effects of treatment capacity and pollutant concentration on NaOH requirement and total power consumption, generating datasets for surrogate modeling. Random forest regression models were subsequently developed to predict NaOH requirement and power consumption. At an influent concentration of 300 mg/L, the simulated energy demands for copper, nickel, and chromium treatment were 2928.09, 2928.37, and 2955.18 kW, respectively. The surrogate models achieved R2 values of 0.9984, 0.9984, 0.9954, and 0.9948 for NaOH requirement and total power consumption predictions. Prediction time was reduced to below 0.1 s, providing over 300-fold acceleration relative to Aspen Plus sensitivity calculations. The proposed framework enables efficient multi-scenario evaluation, namely, assessment of chemical and power requirements under varying treatment capacities or pollutant concentrations with high predictive accuracy.

1. Introduction

Electroplating is widely applied in machinery manufacturing, electronic and information industries, automotive components, and metal surface protection, and it constitutes a significant fundamental process in modern manufacturing. However, substantial volumes of wastewater with complex compositions are generated during electroplating production. Such wastewater mainly originates from pickling, rinsing, passivation, plating-solution filtration, workshop cleaning, electrode washing, and effluents from environmental protection facilities [1,2]. Owing to substantial differences in plating baths, additives, and surface-treatment chemicals among electroplating processes, electroplating wastewater is typically characterized by pronounced variations in water quality, wide pH range, high salinity, complexing agents of diverse types, and high heavy-metal toxicity [3]. Heavy-metal ions such as Cu2+, Ni2+, and Cr6+ are resistant to natural degradation and can accumulate persistently in water, sediments, and soils, with subsequent biomagnification through food chains, thereby posing long-term risks to ecosystems and human health [2,4]. In particular, hexavalent chromium exhibits high toxicity and strong oxidizing properties, and its direct discharge without adequate treatment may cause serious environmental and safety concerns [4]. Therefore, developing efficient, stable, low-chemical-consumption and energy-efficient treatment processes for electroplating wastewater is an important technical requirement for centralized pollution control in electroplating industrial parks and for the advancement of green manufacturing [5].
At present, electroplating wastewater treatment technologies are mainly divided into three categories: chemical treatment, physicochemical treatment and biological treatment [1,2,6]. Chemical treatment relies largely on reactions such as neutralization, precipitation, and redox transformation. It converts dissolved heavy-metal species into low-solubility precipitates or less-toxic valence-state substances. Thanks to its mature process, simple equipment, stable operation and suitability for large-scale continuous treatment, chemical treatment remains the most widely adopted mainstream technique in practical industrial projects [7,8]. For copper-, nickel- and chromium-containing wastewater, hydroxide precipitation, neutralization precipitation and reduction–precipitation are commonly applied in engineering practice for heavy-metal removal, respectively [9,10]. By contrast, physicochemical approaches including ion exchange, membrane separation and adsorption deliver advantages of excellent effluent quality and promising resource-recovery potential [11]. However, they suffer from high material costs, complicated regeneration procedures, membrane fouling and demanding operation-maintenance requirements [12]. Biological treatment is environmentally benign with low operating costs. Nevertheless, its performance is vulnerable to pH, temperature, heavy-metal toxicity and water-quality shock loads. Hence, it is mostly suitable for low-concentration wastewater or advanced treatment stages [7,13]. Accordingly, chemical precipitation and reduction–precipitation still show strong engineering applicability for large-scale centralized electroplating wastewater treatment projects. Even so, chemical-agent consumption, sludge output and system energy consumption have become critical factors restricting process economy and sustainable operation [14].
With the development of electroplating industrial parks and large-scale treatment facilities, conventional process design methods that rely on empirical parameters, and a single design condition can hardly meet the demands of refined operation [15,16]. On the one hand, real-world treatment capacity and pollutant concentrations fluctuate significantly. Chemical requirement and system power consumption will vary accordingly with working conditions [17]. On the other hand, traditional design largely depends on safety margins and human experience. It fails to adequately characterize the response patterns of chemical requirement and energy consumption under multiple operating scenarios [18]. This deficiency readily leads to excessive chemical dosing, equipment operation outside reasonable load ranges, and low efficiency in energy-consumption evaluation [19]. Against the backdrop of the “dual-carbon” goal and intelligent upgrading of environmental-protection facilities, electroplating wastewater treatment should not only ensure stable discharge compliance but also address energy efficiency, operating costs, and process parameter optimization [20,21]. Therefore, it is of great significance to establish an analytical method that can quantitatively describe the relationships between key operating variables, chemical consumption and system power consumption. Such a method supports the rapid design, energy-saving assessment and intelligent regulation of large-scale electroplating wastewater treatment systems [22].
Process simulation and data-driven methods provide new tools for analyzing complex wastewater treatment processes. Aspen Plus offers a comprehensive thermodynamic property database together with rigorous mass and energy balance calculations [23,24]. It can therefore be used to perform steady-state simulations of treatment systems involving acid–base neutralization, chemical precipitation, multiphase separation, and the non-ideal behavior of electrolyte solutions, providing a mechanistic basis for estimating chemical requirement and energy consumption [25]. However, rigorous mechanistic models can become computationally inefficient when repeated sensitivity analyses, large-scale scenario evaluations, or online predictions are required. This limits their direct application to rapid process assessment and real-time decision making [26]. Machine-learning methods can learn nonlinear relationships between process inputs and target outputs from either simulation or operational data. They also offer stable training performance, good robustness to noise, and fast prediction [27]. Combining mechanistic simulation with data-driven surrogate modeling can therefore leverage the strengths of both approaches. Previous studies have integrated mechanistic simulation and machine learning for different purposes. Hvala and Kocijan [26] combined an activated-sludge model with Gaussian process models to reconstruct missing inputs and correct model residuals, improving effluent prediction. Quirante and Caballero [28] incorporated Kriging surrogates into sour-water-stripping optimization, while Adibimanesh et al. [29] used Aspen Plus simulation data to develop machine-learning models for sludge-incineration energy optimization. Chen et al. [27] and Wang et al. [30] applied data-driven models to support optimization of papermaking wastewater treatment and electroplating wastewater biological treatment, respectively. As summarized in Table 1, previous studies have established the value of hybrid modeling for prediction and optimization. However, the reviewed studies do not provide a consistent, process-level comparison of NaOH requirement and system power demand across copper-, nickel-, and chromium-containing wastewater treatment routes at matched treatment capacities and influent metal mass concentrations. Such a comparison is needed to quantify the distinct responses of these two indicators to changes in treatment capacity and pollutant concentration across different treatment pathways. To support rapid scenario evaluation, it is also necessary to assess whether simulation-trained surrogates can reproduce these responses accurately while reducing computational time within the investigated operating domain. These needs motivate the integration of comparative mechanistic analysis with rapid surrogate prediction for chemical treatment of electroplating wastewater.
Table 1. Comparison of representative previous studies and the present investigation.
To address these needs, this study investigates a 5 × 104 m3/d electroplating wastewater treatment system and focuses on three representative wastewater streams containing copper, nickel, and chromium. An integrated framework combining Aspen Plus mechanistic simulation with a random forest surrogate model was developed for energy-efficiency analysis and rapid prediction. The overall research framework is illustrated in Figure 1. The main contributions of this work are summarized as follows. First, steady-state process models were established for the three wastewater treatment routes to determine NaOH requirement and system power consumption under the baseline operating condition. Sensitivity analyses are then performed to evaluate the effects of treatment capacity and pollutant concentration on NaOH requirement and system power consumption indicators. The resulting multi-condition dataset is used to train the surrogate models. Finally, rapid prediction models are developed for NaOH requirement and system power demand, and their predictive accuracy and response time are assessed. The proposed framework provides a methodological basis for energy-performance evaluation, rapid scenario analysis, and intelligent design of large-scale centralized electroplating wastewater treatment systems.
Figure 1. Research framework of this study.

2. Research Objects and Methods

2.1. Research Object and Process Route

The study focuses on an electroplating wastewater treatment system with a design capacity of 5 × 104 m3/d. Three representative wastewater streams containing copper, nickel, and chromium are considered. These streams represent a divalent heavy-metal hydroxide precipitation system, an alkaline neutralization–precipitation system, and a coupled valence-conversion/precipitation system, respectively. They can cover typical pollutant categories encountered in centralized electroplating wastewater treatment facilities well.
According to the Technical Specifications for Electroplating Wastewater Treatment Projects (HJ 2002–2010) and water-quality data from comparable electroplating plants, a heavy-metal concentration of 300 mg/L is selected as the baseline influent condition. CuSO4, NiSO4, and Na2Cr2O7 are used to represent the corresponding copper-, nickel-, and chromium-containing feed components, with concentrations of 747, 774, and 874 mg/L, respectively. A 20 wt.% NaOH solution is used as the alkaline reagent for heavy-metal removal. For chromium-containing wastewater, the H2SO4 solution used for acidification is also set to 20 wt.%.
Copper-containing wastewater is treated by hydroxide precipitation. NaOH is added to adjust the pH to 8.0–11.0, promoting the reaction between Cu2+ and OH− to form Cu(OH)2 flocs [31]. Nickel-containing wastewater is treated by neutralization precipitation, with the pH adjusted to 11–12 to convert Ni2+ into Ni(OH)2 precipitates [32]. Reduction–precipitation is used for chromium-containing wastewater. Under acidic conditions, Cr6+ is first reduced to Cr3+ by NaHSO3. Alkali is then added to adjust pH, enabling Cr3+ to precipitate as Cr(OH)3 [33]. The main reaction pathways of the three treatment processes are summarized in Table 2, while the detailed process flowsheets are shown in Figure 2 and Figure 3. Because the nickel-treatment route is similar to that for copper-containing wastewater, it is not shown separately.
Table 2. Treatment processes and major reactions for three types of electroplating wastewater.
Figure 2. Flowsheet of hydroxide precipitation process for copper-containing wastewater.
Figure 3. Flowsheet of reduction–precipitation process for chromium-containing wastewater.

2.2. Development and Validation of the Aspen Plus Model

Electroplating wastewater contains various heavy-metal ions, acid–base species, and solid precipitates. As a result, ions, molecular species, and solid phases coexist in the aqueous system, giving rise to a multicomponent, highly non-ideal electrolyte environment. To describe ionization equilibria, phase behavior, and chemical reactions in such systems, the ELECNRTL electrolyte activity-coefficient model is adopted in Aspen Plus [34]. The main units configured in the process model include pumps, mixers, reactors (Rstoic), heat exchangers (heater), filters (CFuge) and evaporators (Flash2). Among these units, reactors represent precipitation or reduction–precipitation reactions listed in Table 2, while filtration and evaporator units describe precipitate removal and by-product salt recovery processes illustrated in Figure 2 and Figure 3. The reaction conversions in the RStoic blocks are set to 1.0, and all the reaction units operate at 25 °C, 30 bar. The separated solid cake is assumed to have a water mass fraction below 0.005 (0.5 wt.%). Pressure drops and heat losses to the surroundings were neglected. Vapor–liquid separation in the Flash2 block was calculated assuming vapor–liquid equilibrium.
NaOH requirement and system power demand are selected as the principal model output indicators. The former represents chemical demand under different wastewater types and treatment loads, whereas the latter reflects the energy required for the coupled operation of pumping, mixing, separation, and auxiliary treatment units. The mass and energy balance results obtained from steady-state simulation are further compared with actual industrial operating data for model validation. This comparison provides a reliable mechanistic basis for the subsequent sensitivity analysis and surrogate-model development.

2.3. Sensitivity Analysis and Dataset Construction

In large-scale centralized electroplating wastewater treatment, treatment capacity and pollutant concentration are key variables affecting chemical requirement and energy demand. Based on the steady-state Aspen Plus model, wastewater treatment capacity and heavy-metal concentration were selected as sensitivity-analysis variables. Their effects on NaOH requirement and system power demand are then evaluated. The nominal sampling ranges are 25,000–75,000 m3/d for treatment capacity and 100–300 mg/L for heavy-metal concentration. A one-factor-at-a-time design is adopted rather than a full factorial grid: treatment capacity and concentration are varied separately, while the other variable is maintained at its baseline value of 300 mg/L or 50,000 m3/d, respectively. Forty equally spaced samples are generated for each sensitivity sweep, and the respective sampling intervals are 1250 m3/d and 5 mg/L. Each wastewater type therefore contributes 80 operating-point records, yielding 240 records across the three wastewater types. Each record contains both output variables. Modeling NaOH solution requirement and system power demand separately produces four regression datasets per wastewater type, resulting in 12 datasets containing 40 input–output pairs each.
Data preprocessing includes trimming whitespace from column names and removing records with missing input or output values. No additional outlier filtering or duplicate removal is applied. Each regression dataset is divided into training, validation, and test subsets at a ratio of 6:2:2 using a two-stage stratified shuffle split, corresponding to 24 training, 8 validation, and 8 test samples. Stratification is based on up to four quantile bins of the target variable, with the random seed fixed at 42. The training set is used for parameter learning of the random forest model. The validation set is used for intermediate performance evaluation, and the test set is adopted for final performance assessment. Derived from multi-condition calculations of the mechanistic model, these datasets can supply physically constrained training samples for data-driven models when on-site operational data are insufficient. Performance on these subsets reflects agreement with Aspen Plus outputs within the sampled domain rather than independently validated industrial predictive accuracy.

2.4. Construction of Random Forest Surrogate Model and Evaluation Metrics

Random forest is a nonlinear regression model based on ensemble learning. This algorithm constructs multiple training subsets through Bootstrap resampling. At each node split of decision trees, a subset of features is randomly selected for optimal partitioning. This reduces the sensitivity of individual decision trees to sample perturbations and noise [35,36]. To describe the potential nonlinear relationships between operating variables and energy consumption indicators in the electroplating wastewater treatment system, a random forest regression model is adopted in this work to establish the mapping between feed conditions and two targets: NaOH requirement and system power consumption.
The model follows a modular design concept. A general framework suitable for predictive analysis of multiple datasets is developed using Python. The framework consists of five core modules: data loading and validity verification, feature construction and preprocessing, stratified sampling and dataset splitting, random forest modeling, and report generation with result visualization. These modules operate sequentially to automate the entire workflow from raw data input to final prediction output. A global configuration dictionary centrally manages key elements such as input and output column names, model hyperparameters, and splitting strategies. This guarantees consistency and reproducibility across datasets.
For each regression dataset, the scalar input y represents either wastewater treatment capacity or pollutant concentration, and the output is either NaOH solution requirement or system power consumption. Five input features are constructed: the original value y, the quadratic term y2, the cubic term y3, the square-root term y + ε and the natural-logarithmic term ln(|y| + ε), where ε = 10−10. The absolute-value operation ensures valid square-root and logarithmic calculations for negative inputs, while ε prevents evaluation of ln(0). The original and polynomial terms retain their signed values. All sampled treatment capacities and metal concentrations are positive. The same transformations are applied to the training, validation, and test subsets. The model performance is evaluated using the coefficient of determination (R2), root mean square error (RMSE) and mean absolute error (MAE). Their formulas are given as follows:
R 2 = 1 − ∑ ( y i − y ^ i ) 2 ∑ ( y i − y ¯ ) 2
RMSE = 1 n ∑ i = 1 n   ( y i − y ^ i ) 2
MAE = 1 n Σ | y i − y ^ i |
where yi denotes the Aspen Plus simulated value, ŷi represents the random forest predicted value, ȳ is the sample mean, and n is the number of samples. A value of R2 closer to 1 indicates stronger model fitting performance. Smaller RMSE and MAE correspond to lower prediction errors.
Each dataset is modeled separately using scikit-learn’s RandomForestRegressor with 100 trees, a maximum tree depth of 5, and a minimum of 2 samples per split, retaining the default setting for the latter. The random seeds for both model training and data splitting are fixed at 42. A two-stage stratified shuffle-split procedure targets training, validation, and test proportions of 60%, 20%, and 20%, respectively. Stratification is based on up to four quantile bins of the target variable. Fixed hyperparameters are used without automated hyperparameter search or k-fold cross-validation. Only the training subset is used for model fitting; the validation and test subsets are retained for prediction assessment, with the test subset used for final evaluation.

3. Results and Discussion

3.1. Validation of the Aspen Plus Model

The Aspen Plus model was first validated against actual industrial operating data. The industrial data were obtained from one month of routine monitoring at an electroplating wastewater treatment facility. The comparison results are summarized in Table 3. For consistency with plant operation, the pH values specified in the simulations were set to the mean values of the corresponding pH ranges observed during actual operation.
Table 3. Validation of the Aspen Plus models for three electroplating wastewater treatment processes.
Overall, the predicted heavy-metal removal efficiencies of the three wastewater models show good agreement with industrial operation data. The simulated removal efficiencies for copper-, nickel- and chromium-containing wastewater are 99.30%, 99.96% and 99.95%, respectively. The corresponding industrial values are approximately 99.63%, 99.97% and 99.99%. The small differences indicate that the Aspen Plus model can reasonably reproduce the overall removal behavior of these representative heavy metals under the corresponding precipitation or reduction–precipitation conditions.
Among the three cases, the copper-containing wastewater achieves the best validation performance. The simulated influent Cu2+ concentration is 300 mg/L, which basically matches the industrial operating range of 287.4–314.1 mg/L. The simulated effluent Cu2+ concentration is 2.091 mg/L, while the practical value ranges from 1.993 to 2.156 mg/L. The relative error is controlled within approximately 5%. The simulated removal efficiency of 99.30% is close to the industrial value of 99.63%. These results demonstrate that the model provides a satisfactory representation of Cu2+ removal through hydroxide precipitation.
For nickel-containing wastewater, the simulated influent concentration also falls within the practical industrial range. The simulated Ni2+ removal efficiency is 99.96%, nearly identical to the industrial value of 99.97%, which suggests the model can accurately characterize the overall conversion degree of Ni2+ during neutralization precipitation. Nevertheless, the simulated effluent concentration is 0.102 mg/L, and the measured range is 0.080–0.168 mg/L. The calculated maximum relative error reaches approximately 39%. Although this value appears large, it mainly arises because the effluent concentration drops to the order of 0.1 mg/L. When the denominator is small, a tiny absolute deviation can be greatly amplified in the relative error.
Chromium-containing wastewater exhibits a similar pattern. The simulated effluent total Cr concentration is 0.145 mg/L, which falls within the industrial operating range of 0.091–0.197 mg/L. The simulated Cr removal efficiency is 99.95%, close to the observed value of approximately 99.99%, indicating that the model provides a reasonable engineering representation of the overall Cr6+ reduction and subsequent Cr3+ precipitation process. However, because the measured effluent total Cr concentration is already on the order of 0.1 mg/L, the relative deviation in effluent concentration reaches approximately −26% to 59%. This relatively large percentage deviation is mainly attributable to the very low residual concentration, for which small absolute differences can produce disproportionately large relative errors.
Overall, the simulation results show good agreement with the industrial operating data. This confirms that the developed Aspen Plus model can reasonably capture the major material-conversion characteristics of the three representative electroplating wastewater treatment processes. The validated mechanistic model therefore provides a credible basis for the subsequent sensitivity analysis and for generating physically grounded datasets for the surrogate model. It should be noted that direct comparisons of NaOH requirement and system power consumption with industrial measurements were not performed because complete and accurate consumption records attributable solely to wastewater treatment could not be obtained.

3.2. NaOH Requirement and System Power Consumption Under the Baseline Case

Under the baseline case, with a treatment capacity of 5 × 104 m3/d and a heavy-metal concentration of 300 mg/L, steady-state simulations were performed for the three electroplating wastewater treatment processes. The resulting NaOH requirement and system power demand are summarized in Table 3. And a hypothetical allocation of the reported total energy demand among the unit operations of the three treatment processes under baseline conditions is presented in Table S1 of the Supplementary Materials.
As shown in Table 4, under identical influent concentration and treatment capacity, the NaOH requirement varies markedly among the three wastewater treatment processes, while the difference in system power consumption is relatively small. The NaOH requirement for copper-containing and nickel-containing wastewater reaches 192.75 kmol/h and 207.02 kmol/h, respectively. The gap between the two values is minor. This is because heavy-metal removal in both cases relies on hydroxide precipitation formed by divalent metal ions and OH−, and the chemical demand is mainly governed by the molar loading of metal ions. At the same mass concentration, Ni2+ has a slightly higher molar concentration than Cu2+, which leads to marginally higher alkali consumption for nickel-containing wastewater.
Table 4. NaOH requirement and system power demand of the three wastewater treatment processes under the baseline case.
The NaOH requirement of chromium-containing wastewater is 412.11 kmol/h, approximately 2.13 times that of copper-containing wastewater and 1.99 times that of nickel-containing wastewater. This demonstrates that chromium-containing wastewater treatment requires substantially higher alkali dosage. Unlike a simple precipitation process, chromium wastewater treatment consists of two stages: acidic reduction followed by alkaline precipitation. Hexavalent chromium must first be reduced to trivalent chromium under acidic conditions. Alkali is then added to precipitate Cr(OH)3. Accordingly, NaOH consumption includes not only OH− consumed in precipitation but also the alkali required to neutralize acid introduced during acidification and reduction.
In terms of system power consumption, the power demands for copper-, nickel-, and chromium-containing wastewater treatment are 2928.09 kW, 2928.37 kW and 2955.18 kW, respectively. The discrepancies among these values are far smaller than those observed for NaOH consumption. The power consumption of nickel-containing wastewater is nearly equivalent to that of copper-containing wastewater, whereas chromium-containing wastewater only exhibits a slight increase. This indicates that under baseline conditions, system power consumption is not dominated by the precipitation reaction itself. Instead, it is largely determined by the load of common units, including pumping, mixing, filtration, evaporation and salt recovery. Therefore, for large-scale electroplating wastewater treatment systems, energy-saving optimization should focus on common units such as transportation and separation. By contrast, chemical dosage optimization should prioritize the reduction–precipitation process for chromium-containing wastewater.

3.3. Effects of Wastewater Treatment Capacity on System Power Consumption and NaOH Requirement

Figure 4 illustrates how wastewater treatment capacity affects the system power consumption of three electroplating wastewater treatment processes. Overall, the power consumption of all three wastewater treatment processes rises as the treatment capacity increases from 25,000 m3/d to 75,000 m3/d. This indicates that the expansion of treatment scale raises the energy demand of pumping, filtration and subsequent separation units.
Figure 4. Effects of wastewater treatment capacity on system power consumption for different electroplating wastewater treatment processes.
In terms of curve profiles, power consumption does not increase perfectly linearly with rising treatment capacity and exhibits certain nonlinear characteristics. This reveals that system power consumption is affected not only by the treatment capacity but also by equipment load, fluid transport resistance, solid–liquid separation and the coupled operation of auxiliary treatment units. The three wastewater treatment processes share nearly identical trends in power consumption variation. It suggests that energy consumption of different treatment processes presents strong process similarities under the same treatment scale. Among them, the power consumption of chromium-containing wastewater is slightly higher than that of copper- and nickel-containing wastewater. The main reason is that chromium wastewater treatment involves two stages of acidic reduction and alkaline precipitation, leading to a relatively complex process and higher loads for reaction and separation.
Figure 5 shows the effect of treatment capacity on NaOH requirement for the three electroplating wastewater treatment processes. As the treatment capacity increases from 25,000 m3/d to 75,000 m3/d, the NaOH requirement of all three wastewater streams rises in an approximately linear manner. This demonstrates that with fixed influent concentration, alkali consumption is primarily governed by the molar loading of heavy metals entering the system per unit time. A higher treatment capacity directly increases the total load of pollutants such as Cu2+, Ni2+ or Cr6+, which correspondingly raises the amount of OH− required for precipitation reactions. Therefore, the NaOH requirement increases synchronously with the expansion of treatment scale.
Figure 5. Effects of wastewater treatment capacity on NaOH dosage for different electroplating wastewater treatment processes.
Regarding different wastewater types, the NaOH requirement of chromium-containing wastewater is consistently markedly higher than that of nickel- and copper-containing wastewater, indicating a much greater alkali demand for chromium wastewater treatment. The underlying mechanism is that chromium-containing wastewater undergoes a two-stage process of “acidic reduction–alkaline precipitation”. Cr6+ is first reduced to Cr3+, and alkali is then added to form Cr(OH)3 precipitates. This process requires OH− not only for Cr3+ precipitation but also to compensate for alkalinity loss from acidification and reduction in the preceding stage. The NaOH requirement values of copper- and nickel-containing wastewater are relatively close. Both rely mainly on the formation of metal hydroxide precipitates for heavy-metal removal with relatively simple reaction pathways.

3.4. Effects of Pollutant Concentration on System Power Consumption and NaOH Requirement

Figure 6 and Figure 7 illustrate the effects of heavy metal pollutant concentration on system power consumption and NaOH dosage for the three types of electroplating wastewater treatment processes, respectively.
Figure 6. Effects of pollutant concentration on total power consumption for different electroplating wastewater treatment processes.
Figure 7. Effects of heavy metal pollutant concentration on NaOH dosage for different electroplating wastewater treatment processes.
As shown in Figure 6, when the pollutant concentration increases from 100 mg/L to 300 mg/L, the system power consumption of copper-containing, nickel-containing and chromium-containing wastewater treatment rises slightly, yet the overall variation remains limited. Among them, the power consumption of the chromium-containing wastewater treatment system is consistently the highest, ranging from approximately 2954 to 2955 kW. The power consumption values for copper-containing and nickel-containing wastewater are relatively close, at roughly 2927–2929 kW. This indicates that under a constant treatment flow rate, although elevated pollutant concentration increases the reaction load and the yield of precipitation products, its influence on the total system power consumption is marginal.
This finding reveals that system power consumption is primarily governed by the operating loads of equipment units including pumping, mixing, filtration, heat exchange and evaporation. The energy consumption of these units is more closely related to wastewater treatment flow rate and process configuration. In contrast, variations in pollutant concentration mainly affect chemical reaction load and sludge production and exert a relatively weak impact on the power of main transportation and separation equipment. Accordingly, rising pollutant concentration only leads to a slight increase in system power consumption. The power consumption of chromium-containing wastewater exceeds that of copper-containing and nickel-containing wastewater, as its treatment process consists of two stages, acid reduction and alkaline precipitation, which corresponds to a longer process flow and higher loads for mixing, reaction and subsequent separation.
As depicted in Figure 7, the NaOH requirement increases significantly and linearly with the growth of pollutant concentration, and distinct differences exist among different wastewater treatment processes. As the heavy metal pollutant concentration rises from 100 mg/L to 300 mg/L, the NaOH dosage for copper-containing, nickel-containing and chromium-containing wastewater increases continuously. This demonstrates that under a fixed treatment capacity, pollutant concentration acts as a critical factor affecting alkali consumption. Higher pollutant concentration directly raises the molar load of heavy metals entering the system per unit time, which in turn increases the amount of OH− required for precipitation reactions. Hence, the NaOH requirement exhibits an obvious concentration dependence.
It also can be seen that the NaOH requirement of chromium-containing wastewater is remarkably higher than that of copper-containing and nickel-containing wastewater, with the steepest growth slope. This is because the treatment of chromium-containing wastewater is not a simple precipitation process. Instead, Cr6+ must first be reduced to Cr3+ under acidic conditions, followed by NaOH dosing to precipitate Cr3+ as Cr(OH)3. This process requires alkalinity not only for Cr3+ precipitation but also to compensate for alkalinity consumption during acidification and reduction. Consequently, its NaOH demand is substantially greater than that for copper-containing and nickel-containing wastewater.
Combining Figure 6 and Figure 7, the influencing mechanisms of pollutant concentration on system power consumption and NaOH requirement differ substantially. System power consumption is insensitive to changes in pollutant concentration and is mainly governed by treatment scale and equipment unit loads. In contrast, the NaOH requirement is highly sensitive to pollutant concentration, dominated by heavy metal molar load and reaction pathways. Therefore, in large-scale electroplating wastewater treatment, elevated pollutant concentration will first markedly increase chemical consumption and operating cost, while imposing a relatively limited effect on system power consumption.

3.5. Prediction Performance of Random Forest Surrogate Model

Based on the dataset obtained from Aspen Plus sensitivity analysis, random forest regression models were developed to predict NaOH requirement and system power consumption separately. Table 4 presents the model evaluation results on the test set.
As shown in Table 5, the R2 values of the six prediction targets all exceed 0.99. This indicates that the random forest model can fit the data generated by the Aspen Plus mechanistic model well and accurately characterize the mapping relationships between electroplating wastewater treatment capacity, chemical consumption and system power consumption. Among these targets, the MAE and RMSE for NaOH requirement prediction are relatively low, demonstrating that the model achieves higher prediction accuracy for alkali consumption strongly constrained by stoichiometry. The errors of system power consumption are slightly higher than those of NaOH dosage, yet the R2 remains above 0.9948. This suggests that the model can effectively capture the nonlinear energy consumption variations induced by the coupling of pumping, separation and auxiliary units.
Table 5. Prediction performance of random forest surrogate model.
Figure 8 presents scatter plots comparing the predicted values against the true values of all prediction targets on the test set. Sample points in the six subplots are tightly distributed around the ideal diagonal line, which proves that the random forest model yields high fitting accuracy for all prediction targets. The prediction points of the NaOH requirement deviate slightly from the diagonal, corresponding to low MAE and RMSE values. By contrast, the prediction points of power consumption distribute along the diagonal without systematic bias, indicating that the model has a good capability to capture the nonlinear trend of power consumption.
Figure 8. Comparison between predicted values of random forest surrogate model and Aspen Plus simulated values.
From the perspective of model mechanistic rationality, NaOH requirement is mainly governed by pollutant molar load and reaction stoichiometry, with relatively clear relationships among variables, which facilitates high-precision fitting. In contrast, system power consumption is affected by equipment load, fluid resistance, solid–liquid separation, by-product recovery and other factors, exhibiting stronger nonlinearity and process-coupling characteristics. By integrating multiple decision trees, the random forest algorithm can identify local variation patterns under different load ranges without explicitly constructing complex mechanistic equations. Therefore, it is suitable for rapid condition prediction of large-scale wastewater treatment processes.
It should be noted that the reported R2 values quantify agreement with the Aspen Plus outputs within the sampled domain. Because neighboring operating conditions may occur across the randomly partitioned subsets, the reported accuracy may be optimistic and primarily characterizes interpolation performance. Generalization to operating regions excluded from training should be assessed through blocked hold-out or operating-region-based validation, including separate interpolation and extrapolation tests, in future work. Predictive accuracy under actual industrial conditions also requires independent validation. The present results therefore demonstrate the applicability of random forest to reproduce the investigated Aspen Plus outputs within the sampled domain. Its relative performance against alternative regression algorithms has not been assessed; systematic benchmarking using identical datasets, data splits, and evaluation metrics remains a direction for future methodological research.

3.6. Computational Efficiency and Engineering Application Analysis

All computations are performed on a workstation equipped with an Intel® Xeon® Platinum 8255C processor operating at 2.50 GHz and 256 GB RAM. Process simulations are conducted using Aspen Plus V15, and random forest modeling is implemented using Python 3.12 with scikit-learn. Compared with the rigorous mechanistic model in Aspen Plus, the random forest surrogate model does not require iterative solving of thermodynamic phase equilibrium, mass conservation and energy balance equations during prediction. Instead, it performs rapid inference directly using the trained tree model. Accordingly, it presents remarkable efficiency advantages in batch analysis of multiple operating conditions and interactive prediction scenarios.
As shown in Table 6, practical tests demonstrate that the developed surrogate model reduces the single prediction response time to less than 0.1 s, achieving more than a 300-fold speedup compared with conventional Aspen Plus sensitivity calculations. This result indicates that Aspen Plus is suitable for high-fidelity mechanistic modeling and sample generation, while the random forest surrogate model is better suited for online or quasi-online operating condition prediction. The coupling of the two approaches forms a technical framework of “high-fidelity sample generation via mechanistic model–rapid prediction using the data-driven model”. It supports chemical dosing prediction, energy consumption evaluation and operational regulation for large-scale electroplating wastewater treatment systems.
Table 6. Comparison of computational efficiency between Aspen Plus and random forest surrogate model.
It should be noted that the model established in this work targets three separate single-metal wastewater systems containing copper, nickel, or chromium under steady-state conditions. Coexisting metals, surfactants, brighteners, and complexing agents such as EDTA may alter metal speciation, precipitation, and solid–liquid separation. Variations in pH, temperature, composition, and complexing-agent concentrations may therefore reduce prediction accuracy. Although steady-state flow variations are represented within the sampled domain, rapid transients and simultaneous disturbances remain unvalidated. The effects of sensor noise and measurement uncertainty have not been evaluated and may further affect prediction accuracy when plant measurements are used as inputs. Future work should incorporate online industrial monitoring measurement-quality checks, independent field validation, and periodic performance assessment to guide mechanistic-model updates, surrogate input expansion, and retraining when necessary. Further integration with mechanistic–data fusion, economic optimization, and carbon-emission assessment could improve industrial applicability and decision support.

4. Conclusions

Aiming at the problems of high chemical consumption, low efficiency of energy consumption evaluation, and heavy reliance on manual experience for operating parameters in large-scale electroplating wastewater treatment processes, this study takes a 5 × 104 m3/d electroplating wastewater treatment system as the research object and develops an energy-efficiency analysis and intelligent prediction method combining Aspen Plus mechanistic simulation with a random forest surrogate model. The main conclusions are drawn as follows:
(1) Under the baseline conditions, the three treatment routes exhibit different requirements for NaOH solution but relatively similar system power demands. Chromium-containing wastewater requires substantially more NaOH solution than copper- and nickel-containing wastewater, consistent with its two-stage reduction–precipitation treatment route.
(2) Sensitivity analysis shows that treatment capacity affects both NaOH solution requirement and system power demand. NaOH solution requirement increases approximately linearly with treatment capacity and pollutant concentration. System power demand exhibits nonlinear variation with treatment capacity but changes only slightly with pollutant concentration within the investigated ranges.
(3) The random forest models reproduce the Aspen Plus outputs with R2 values exceeding 0.99 on the held-out test subsets. These results demonstrate close agreement with the simulated responses within the sampled operating domain. They primarily characterize interpolation performance and do not establish predictive accuracy outside that domain or under actual industrial disturbances.
(4) The reported prediction response time is below 0.1 s, supporting rapid evaluation of multiple simulated operating scenarios. The framework provides a basis for further chemical-demand assessment and operating-parameter studies. Its potential benefits for industrial energy saving and operational optimization require additional quantitative evaluation.
The proposed framework enables rapid evaluation of simulation-based operating scenarios within the sampled domain and provides a basis for engineering decision support. Its application to real-time forecasting and operational control requires further validation using independent industrial data under varying operating conditions.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/pr14233904/s1, Table S1: Detailed energy requirement for three wastewater treatment processes under the baseline case.

Author Contributions

Conceptualization, J.Y. (Jia Yang) and L.W.; methodology, J.Y. (Jia Yang), X.H., J.T. and L.W.; software, J.Y. (Jia Yang) and B.Z.; validation, X.H., J.Y. (Jie Ying) and B.Z.; formal analysis, J.Y. (Jia Yang) and X.H.; investigation, J.Y. (Jie Ying) and B.Z.; resources, J.T. and L.W.; data curation, J.Y. (Jia Yang) and X.H.; writing—original draft preparation, J.Y. (Jia Yang) and X.H.; writing—review and editing, J.T. and L.W.; visualization, J.Y. (Jie Ying) and B.Z.; supervision, J.T. and L.W.; project administration, J.T. and L.W.; funding acquisition, J.T. and L.W. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the National Natural Science Foundation of China (22378328), Natural Science Basic Research Program of Shaanxi (2026SYS-SYSZD-13), and Natural Science Foundation of Xi’an (2025JH-ZRKX-0146).

Data Availability Statement

The original contributions presented in this study are included in the article. Further inquiries can be directed to the corresponding author.

Acknowledgments

Generative AI was used solely for language translation during manuscript preparation. All AI-assisted content was carefully reviewed and verified by the authors.

Conflicts of Interest

Authors Jia Yang, Xiaojie He, Xiaojie He and Binlai Zhu were employed by the company Zhejiang Moisten Environmental Technology Co., Ltd. The remaining authors declare that the research was conducted in the absence of any commercial or financial relationships that could be construed as a potential conflicts of interest.

References

  1. Li, Z.; Du, C. Current status and research trends of electroplating wastewater treatment: Systematic review and bibliometric analysis. Desalination 2025, 613, 119004. [Google Scholar] [CrossRef] [Scilit]
  2. Rajoria, S.; Vashishtha, M.; Sangal, V.K. Treatment of electroplating industry wastewater: A review on the various techniques. Environ. Sci. Pollut. Res. 2022, 29, 72196–72246. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  3. Costa, J.M.; Costa, J.G.d.R.d.; Almeida Neto, A.F.d. Techniques of nickel(II) removal from electroplating industry wastewater: Overview and trends. J. Water Process Eng. 2022, 46, 102593. [Google Scholar] [CrossRef] [Scilit]
  4. Kabdaşlı, I.; Tünay, O. Hexavalent chromium removal from water and wastewaters by electrochemical processes. Molecules 2023, 28, 2411. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  5. Kurniawan, T.A.; Chan, G.Y.S.; Lo, W.-H.; Babel, S. Physico–chemical treatment techniques for wastewater laden with heavy metals. Chem. Eng. J. 2006, 118, 83–98. [Google Scholar] [CrossRef] [Scilit]
  6. Kamar, M.T.; Elattar, H.; Mahmoud, A.S.; Peters, R.W.; Mostafa, M.K. A critical review of state-of-the-art technologies for electroplating wastewater treatment. Int. J. Environ. Anal. Chem. 2024, 104, 4143–4176. [Google Scholar] [CrossRef] [Scilit]
  7. Li, S.; Dai, M.; Wu, Y.; Fu, H.; Hou, X.; Peng, C.; Luo, H. Resource utilization of electroplating wastewater: Obstacles and solutions. Environ. Sci. Water Res. Technol. 2022, 8, 484–509. [Google Scholar] [CrossRef] [Scilit]
  8. Jin, H.; Yu, Y.; Chen, X. Electrochemical precipitation for water and wastewater treatment. Process Saf. Environ. Prot. 2024, 184, 1011–1016. [Google Scholar] [CrossRef] [Scilit]
  9. Liu, W.; Yu, Y. Removal of recalcitrant trivalent chromium complexes from industrial wastewater under strict discharge standards. Environ. Technol. Innov. 2021, 23, 101644. [Google Scholar] [CrossRef] [Scilit]
  10. Liu, Y.; Ding, W.; Zhang, Y.; Shen, F.; Yang, G.; He, Y.; Wang, L.; Luo, L.; Zhang, X.; Deng, S. A comparative study of nickel(II) removal from electroplating wastewater by pre-precipitation combined with Fenton-precipitation or Fenton-like-precipitation. Desalin. Water Treat. 2020, 182, 220–224. [Google Scholar] [CrossRef] [Scilit]
  11. Li, S.; Dai, M.; Ali, I.; Bian, H.; Peng, C. Recovery of nickel from actual electroplating wastewater by integrated electrodeposition with adsorption pretreatment technique. Process Saf. Environ. Prot. 2023, 172, 417–424. [Google Scholar] [CrossRef] [Scilit]
  12. Amitesh; Dohare, D.; Rekhate, C.; Prajapati, A.K. Removal of heavy metal from electroplating wastewater using electrocoagulation: A review. Desalin. Water Treat. 2022, 267, 121–137. [Google Scholar] [CrossRef] [Scilit]
  13. Fei, Y.; Hu, Y.H. Recent progress in removal of heavy metals from wastewater: A comprehensive review. Chemosphere 2023, 335, 139077. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  14. Wang, H.; Liu, X.; Zhang, Z. Approaches for electroplating sludge treatment and disposal technology: Reduction, pretreatment and reuse. J. Environ. Manag. 2024, 349, 119535. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  15. Wu, Y.; Su, B.; Lin, J.; Liu, G.; Huang, C. An example of electroplating wastewater treatment project in an electroplating industrial park. Ind. Water Treat. 2020, 40, 95. [Google Scholar]
  16. Liu, C.; Zhao, C.; Xu, Q. Integration of electroplating process design and operation for simultaneous productivity maximization, energy saving, and freshwater minimization. Chem. Eng. Sci. 2012, 68, 202–214. [Google Scholar] [CrossRef] [Scilit]
  17. Longo, S.; Hospido, A.; Mauricio-Iglesias, M. Energy efficiency in wastewater treatment plants: A framework for benchmarking method selection and application. J. Environ. Manag. 2023, 344, 118624. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  18. Duarte, M.S.; Martins, G.; Oliveira, P.; Fernandes, B.; Ferreira, E.n.C.; Alves, M.M.; Lopes, F.; Pereira, M.A.; Novais, P. A Review of Computational Modeling in Wastewater Treatment Processes. ACS Water 2024, 4, 784–804. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  19. Faisal, M.; Muttaqi, K.M.; Sutanto, D.; Al-Shetwi, A.Q.; Ker, P.J.; Hannan, M.A. Control technologies of wastewater treatment plants: The state-of-the-art, current challenges, and future directions. Renew. Sust. Energ. Rev. 2023, 181, 113324. [Google Scholar] [CrossRef] [Scilit]
  20. Bahramian, M.; Dereli, R.K.; Zhao, W.; Giberti, M.; Casey, E. Data to intelligence: The role of data-driven models in wastewater treatment. Expert Syst. Appl. 2023, 217, 119453. [Google Scholar] [CrossRef] [Scilit]
  21. Niu, G.; Li, X.; Wan, X.; He, X.; Zhao, Y.; Yi, X.; Chen, C.; Xujun, L.; Ying, G.; Huang, M. Dynamic optimization of wastewater treatment process based on novel multi-objective ant lion optimization and deep learning algorithm. J. Clean. Prod. 2022, 345, 131140. [Google Scholar] [CrossRef] [Scilit]
  22. Wang, A.-J.; Li, H.; He, Z.; Tao, Y.; Wang, H.; Yang, M.; Savic, D.; Daigger, G.T.; Ren, N. Digital Twins for Wastewater Treatment: A Technical Review. Engineering 2024, 36, 21–35. [Google Scholar] [CrossRef] [Scilit]
  23. Peng, Y.D.; Yue, C.; Yu, W.B.; Ge, H.; Yao, S.J. Thermal performance analysis of closed heat pump membrane distillation electroplating wastewater system. Chin. J. Process Eng. 2022, 22, 1124. [Google Scholar]
  24. Leal-Gutiérrez, M.J.; Bernal-González, M.; Durán-Domínguez-de-Bazúa, M.d.C.; Chávez-Castellanos, Á.E.; Bazúa-Rueda, E.R. Exergy analysis of a laboratory-scale upflow anaerobic sludge blanket reactor with sulfate-reducing microorganisms to precipitate heavy metal ions (Cu, Fe, Zn, and Pb) using Aspen Plus®. Braz. J. Chem. Eng. 2022, 39, 273–287. [Google Scholar] [CrossRef] [Scilit]
  25. Aravind, E.S.; Kumar, T.R.M.; Kavithakani, A.; Chithra, K. Integrating ANSYS Fluent Simulation and Aspen Plus for efficient heavy metal ion removal with de-oiled cake. J. Water Process Eng. 2024, 67, 106265. [Google Scholar] [CrossRef] [Scilit]
  26. Hvala, N.; Kocijan, J. Design of a hybrid mechanistic/Gaussian process model to predict full-scale wastewater treatment plant effluent. Comput. Chem. Eng. 2020, 140, 106934. [Google Scholar] [CrossRef] [Scilit]
  27. Chen, J.; Wan, J.; Ye, G.; Wang, Y. Prediction and optimization of wastewater treatment process effluent chemical oxygen demand and energy consumption based on typical ensemble learning models. Bioresour. Technol. 2024, 411, 131362. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  28. Quirante, N.; Caballero, J.A. Large scale optimization of a sour water stripping plant using surrogate models. Comput. Chem. Eng. 2016, 92, 143–162. [Google Scholar] [CrossRef] [Scilit]
  29. Adibimanesh, B.; Polesek-Karczewska, S.; Bagherzadeh, F.; Szczuko, P.; Shafighfard, T. Energy consumption optimization in wastewater treatment plants: Machine learning for monitoring incineration of sewage sludge. Sustain. Energy Technol. Assess. 2023, 56, 103040. [Google Scholar] [CrossRef] [Scilit]
  30. Wang, L.; Huang, R.; Peng, J.; Yang, Y.; Lai, R.; Gao, Y.; Liu, W.; Hu, S.; Zhang, Z. Constrained Bayesian search reduces modeled aeration energy and annual electricity-related CO2e in the electroplating bioprocess train. J. Environ. Sci. 2026, in press. [Google Scholar] [CrossRef] [Scilit]
  31. Quiton, K.G.N.; Huang, Y.-H.; Lu, M.-C. Recovery of cobalt and copper from single- and co-contaminated simulated electroplating wastewater via carbonate and hydroxide precipitation. Sustain. Environ. Res. 2022, 32, 31. [Google Scholar] [CrossRef] [Scilit]
  32. Tsai, T.-H.; Chou, H.-W.; Wu, Y.-F. Removal of nickel from chemical plating waste solution through precipitation and production of microsized nickel hydroxide particles. Sep. Purif. Technol. 2020, 251, 117315. [Google Scholar] [CrossRef] [Scilit]
  33. Chen, S.-S.; Cheng, C.-Y.; Li, C.-W.; Chai, P.-H.; Chang, Y.-M. Reduction of chromate from electroplating wastewater from pH 1 to 2 using fluidized zero valent iron process. J. Hazard. Mater. 2007, 142, 362–367. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  34. Valverde, J.L.; Ferro, V.R.; Giroir-Fendler, A. Estimation of e-NRTL binary interaction parameters and its impact on the prediction of thermodynamic properties of multicomponent electrolyte systems. Fluid Phase Equilibria 2022, 551, 113264. [Google Scholar] [CrossRef] [Scilit]
  35. Nalenz, M.; Rodemann, J.; Augustin, T. Learning de-biased regression trees and forests from complex samples. Mach. Learn. 2024, 113, 3379–3398. [Google Scholar] [CrossRef] [Scilit]
  36. Iranzad, R.; Liu, X. A review of random forest-based feature selection methods for data science education and applications. Int. J. Data Sci. Anal. 2025, 20, 197–211. [Google Scholar] [CrossRef] [Scilit]
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.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.