Next Article in Journal
A Review on Catalyst Chemical Recycling Technologies for Production of Light Gaseous Compounds from Polyolefin Waste
Previous Article in Journal
Enhancement of Bearing Fault Diagnosis Using Optimized Variational Decomposition, Entropy-Based Modal Reconstruction, and Evolutionary Bidirectional Fusion Network
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Hybrid Physics-Informed Neural Network (PINN) for the Electro-Oxidation of 2-Chlorophenol on BDD Electrodes in a Flow-By Reactor Under Batch Recirculation

by
Alejandro Regalado-Méndez
1,*,
Damayrí M. Salinas-Camacho
2,
Reyna Natividad
3,
Mario E. Cordero
4,5,
Luis G. Zárate
4,5,
Hugo Pérez-Pastenes
2,
César Pérez-Alonso
6 and
Ever Peralta-Reyes
1
1
Research Laboratories, Universidad del Mar, Campus Puerto Ángel, Puerto Ángel 70902, Oaxaca, Mexico
2
Facultad de Ciencias Químicas, Universidad Veracruzana-Campus Coatzacoalcos, Coatzacoalcos 96538, Veracruz, Mexico
3
Chem. Eng. Lab., Joint Centre for Research on Sustainable Chemistry UAEM-UNAM, Faculty of Chemistry, Universidad Autónoma del Estado de Mexico, Toluca 50200, Estado de Mexico, Mexico
4
Departamento de Ingenierías, Escuela de Ingeniería Química, Universidad Popular Autónoma del Estado de Puebla, 21 Sur, Barrio de Santiago, Puebla 72410, Puebla, Mexico
5
SECIHTI-Puebla, Calle 33 Sur, Av. 23 Pte, Puebla 72400, Puebla, Mexico
6
Departamento de Ingeniería Química, Facultad de Química, Universidad Autónoma del Estado de Mexico, Paseo Colón Esq. Paseo Tollocan S/N, Col. Residencial Colón, Toluca 50120, Estado de Mexico, Mexico
*
Author to whom correspondence should be addressed.
Processes 2026, 14(12), 1862; https://doi.org/10.3390/pr14121862 (registering DOI)
Submission received: 10 May 2026 / Revised: 2 June 2026 / Accepted: 5 June 2026 / Published: 9 June 2026

Abstract

The electro-oxidation of persistent organic pollutants such as 2-chlorophenol (2-CPh) using boron-doped diamond (BDD) electrodes offers a promising wastewater treatment route, yet conventional mechanistic models (e.g., CFD) suffer from prohibitive computational costs. This study develops a hybrid physics-informed neural network (PINN) to model the electro-oxidation of 2-CPh in a flow-by reactor coupled with a continuous stirred tank under batch recirculation mode. The PINN integrates a diffusion–convection partial differential equation with a lumped-parameter ordinary differential equation for the tank, embedding physical constraints directly into the loss function. The model was trained on simulated data generated from a previously validated parametric model and optimized using a systematic hyperparameter grid search. The PINN achieved excellent agreement with experimental data, yielding a coefficient of determination (R2) of 0.9927, a mean square error of 0.0009, and a root mean square error of 0.0294—outperforming both the CFD and parametric models in accuracy. Sensitivity analysis revealed that the apparent kinetic constant is the most influential parameter (normalized sensitivity of 14.20). While the CFD model required 42 days and the parametric model 8 s, the PINN achieved a balanced trade-off with a runtime of 7.36 h. We conclude that the PINN provides a highly accurate, computationally feasible surrogate model suitable for integration into digital twins and real-time control frameworks for electrochemical wastewater treatment.

1. Introduction

Electro-oxidation is a powerful tool for the destruction of persistent organic contaminants [1], such as chlorophenols (e.g., 2-chlorophenol). 2-chlorophenol (2-CPh) stands out among the 65 substances identified by the EPA as a significant threat to air and water due to its harmful effects [2]. The oxidation of 2-CPh has been successfully achieved in numerous literature works [1,3,4,5,6,7] employing diverse anodes (e.g., Nb/BDD, Ti/BDD, carbon fiber, poly-NiTSPc-modified glassy carbon electrodes, Pt/Ti, Ti/PbO2, Ti/SnO2, and CNTs/AG/ITO). Among these used electrodes, the BDD anode stands out in its performance in water due to the high generation of hydroxyl radicals (OH) on the anode surface, as indicated by Equation (1) [8].
H 2 O O H + H + + e
Research efforts for the scale-up of electro-oxidation processes include the use of deterministic models based on partial differential equations (PDEs) and ordinary differential equations (ODEs) systems that accommodate hydrodynamics, mass transport, electrode kinetics, and current and potential distribution. While these equations typically represent two ideal flow conditions—plug flow and perfect mixing—real-world applications often involve some degree of dispersion that deviates from these ideal patterns, which can be analyzed using residence time distribution (RTD) analysis [9,10,11].
In our previous work [12], a CFD mathematical model of the electro-oxidation of 2-CPh in a flow-by reactor operating under batch recirculation mode was developed and solved using a coupled simulation approach. In this approach, COMSOL Multiphysics ® 5.3 solved the continuity and Navier–Stokes equations in a laminar regime, along with the diffusion–convection equation with a reaction term, while MATLAB solved the continuous stirred-tank (CST) model via LiveLink™ for MATLAB. The main results indicated that this model provided an excellent fit to the experimental data, with a determination coefficient of 0.9917 and a root-mean-square error of 0.4041, but with an execution time of 42 days. This execution time is exceptionally long for a standard CFD-electrochemical coupling simulation, representing a major computational limitation that demands special attention.
To address this, Regalado et al. [13] developed a physics-based parametric model coupling axial dispersion with a CST and solved it using COMSOL Multiphysics ® 5.3 to describe the electro-oxidation of 2-CPh in a flow-by reactor operating under batch recirculation mode. The solution was achieved by coupling an internal diluted mass transport module with the global ODE and DAE functions. The main results indicate that the model provides a very good fit to the experimental data, with a determination coefficient of 0.9831 and a root-mean-square error of 0.1754, and—crucially—an execution time of only 8 s. This model thus successfully overcame the computational bottleneck of the earlier CFD approach. However, while this physics-based model [13] is fast and accurate, it still relies on solving a system of coupled PDEs and ODEs. Although 8 s per simulation is perfectly acceptable for a single run, this structure becomes less practical when the model needs to be embedded within larger frameworks—for instance, in real-time control systems or digital twins that may require thousands of evaluations in rapid succession. Moreover, such models often require recalibration when operational conditions shift, which can limit their adaptability in dynamic environments.
To capture the complex relationships inherent in sequential data and temporal dynamics, the use of surrogate models has emerged as a contemporary approach to chemical reactor modeling, particularly for electrochemical processes [14]. These surrogate models—commonly termed black-box models—learn input–output relationships directly from data, thereby eliminating the need for explicit mechanistic descriptions [15]. Deep neural networks have increasingly been adopted as indispensable black-box predictive tools for electro-oxidation modeling in recent years [16,17,18,19,20]. Within chemical reactor engineering, a prevalent methodology integrates first-principles mechanistic knowledge with data-driven learning algorithms, an approach formally designated as physics-informed neural networks (PINNs) [21]. In this paradigm, the deep neural network constitutes the sole predictive architecture. However, its training regime is constrained by governing physical laws through the incorporation of additional penalty terms within the loss function, as shown in Equation (2) [22],
L θ = L d a t a θ + λ L p h y s i c s θ
Here, L d a t a quantifies the discrepancy between the neural network’s predictions and the available data (whether experimental or simulated), while L p h y s i c s penalizes deviations from the governing physical equations. θ denotes a vector that contains the parameters of the ML and physics components. The hyperparameter λ balances the relative contribution of the physics-based constraint during training.
Beyond PINNs, gray-box models represent an alternative hybrid architecture that can operate in either series or parallel configurations, offering a generalized framework for fusing physics-based and data-driven components in the realization of digital twins for chemical process systems [23]. However, unlike gray-box models, which explicitly embed mechanistic equations alongside neural network components, PINNs offer a more compact formulation by encoding physical laws directly into the loss function. This makes them particularly attractive for problems where the governing equations are well-understood but traditional solvers are cumbersome to integrate into larger workflows [22], such as electro-oxidation processes in a flow-by reactor [24,25,26,27].
In this work, we introduce a physics-informed neural network (PINN) that incorporates existing mechanistic understanding of the electro-oxidation process in conjunction with data-driven learning. More specifically, we combine a diffusion–convection equation (including a reaction term) with a continuous stirred-tank (CST) model. The coupling of first principles with simulated data—generated from the validated physics-based model [13]—provides the basis for designing a PINN to model the system dynamics accurately.

2. Mathematical and Physics-Informed Neural Network (PINN) Dynamic Modeling of 2-Chlorophenol Electro-Oxidation

2.1. Problem Statement and Governing Equations

The case study consists of the electro-oxidation of 2-chlorophenol (2-CPh), which is carried out in a batch recirculation system coupling a flow-by reactor (FBR) with a continuous stirred tank (CST), as shown in Figure 1. In this configuration, the CST serves as the main reservoir where the contaminated solution is continuously stirred to maintain homogeneity. A magnetic pump drives the recirculation of the solution from the CST through a flow meter, which precisely regulates the flow rate before the stream enters the FBR.
Within this reactor, conductive particles are fluidized by the upward liquid flow, creating a high-surface-area electrode where electro-oxidation of 2-CPh occurs under the influence of an external power supply. Although the term “flow-by” typically describes a reactor with a stationary electrode, here it refers to the hydraulic configuration—the electrolyte passes once through the reactor in each cycle—while the working electrode itself is a fluidized bed, which enhances mass transfer and provides a large active surface area.
Upon exiting the FBR, the treated solution is returned to the CST, completing the recirculation loop; this cycle continues throughout the batch run, ensuring progressive pollutant degradation while maintaining a constant liquid volume.

2.1.1. Mathematical Model for the Flow-By Reactor (FBR)

The mathematical model for the FBR is a typical convection–diffusion equation with a pseudo-first-order kinetic reaction (see Equation (3)) that takes place at the electrode surface, as previously reported [4,28]. The boundary conditions are of the Danckwerts type, in accordance with reference [13].
The inlet boundary condition specifies that the curvature (second spatial derivative) of the concentration profile at the inlet is constant and proportional to the feed concentration C0. In a FBR: (1) The inlet is the region where the fluid enters the system and initiates its flow along the reactive surface. (2) Instead of fixing the concentration itself C x , t = C 0 or the total flux, this condition fixes the rate of change in the dispersive flux gradient at the boundary. (3) Physically, this means the dispersion mechanism at the inlet is balanced against the convective input of species at concentration C0. The curvature remains constant over time, meaning the shape of the concentration profile near the inlet is constrained by the feed conditions, regardless of how the interior of the reactor evolves. (4) This could represent a scenario where the inlet region is dominated by a fixed dispersive mixing pattern imposed by the flow distributor or the entrance geometry of the flow-by configuration.
The outlet boundary condition specifies that the concentration profile has zero curvature at the outlet and in a FBR:
(1) The outlet is where fluid exits the reactive zone. (2) Zero curvature means the concentration profile becomes linear at the exit. (3) Physically, this indicates that the dispersive flux is no longer changing with distance at the outlet. The system has reached a state where axial dispersion no longer introduces curvature, and any further change in concentration along x occurs at a constant gradient. (4) This is consistent with a “fully developed” concentration profile at the exit, where the influence of upstream dispersion has stabilized, and the species exits without further mixing-induced changes.
The initial condition specifies that the reactor initially contains the species uniformly at concentration C0 throughout its entire length and in an FBR:
(1) this represents a pre-filled condition where the fluid phase is initially saturated with the species at the same concentration as the feed; (2) physically, this could correspond to a start-up scenario where the reactor is filled with feed solution before flow begins, or a situation where recirculation establishes a uniform initial state; and (3) this condition simplifies the transient analysis by providing a spatially uniform initial field from which the concentration evolves under convection, dispersion, and reaction.
Moreover, for the initial condition, we assume that 0 < x < l . This indicates the reactor is initially filled with concentration C0. If the inlet concentration is also C0, then without reaction, the system would already be at a steady state. With reaction (kapp > 0), the steady state will have a concentration profile that decreases along the reactor; thus, starting from a uniform C0 is physically acceptable—though it is not a steady state if kapp > 0.
C F B R x , t t = D a x 2 C F B R x , t x 2 u C F B R x , t x k a p p C F B R x , t A t x = 0 D a x 2 C F B R x = 0 , t x 2 = u C F B R x = 0 , t C C S T t   t > 0 A t x = l D a x 2 C F B R x = l , t x 2 = 0   t > 0 A t t = 0 C F B R x , t = 0 = C 0   0 < x > l
where CFBR is the concentration of 2-CPh in the FBR; C0 is the initial concentration of 2-CPh, 1 mol/m3; t is the reaction time, 4 h; l is the reactor length, 0.2 m; u is the linear velocity, 0.0947 m/s [29]; Dax is the axial dispersion coefficient, 0.0005 m2/s [29]; and kapp is the kinetic apparent constant, 1.2241/h [12].

2.1.2. Mathematical Model for the Continuous Stirred Tank (CST)

The mathematical model for the CST (see Equation (4)) is a lumped-parameter model for a well-mixed tank or compartment (CCST (t)) that receives inflow from a separate system (e.g., Flow-by reactor). We assume that the tank outlet concentration equals the tank’s uniform concentration (well-mixed assumption). Since only one concentration difference term appears, the model assumes the tank has one inflow (from the upstream unit C F B R x = l , t ) and one outflow (CCST (t)), and both flows have the same volumetric flow rate Q.
The initial condition in the CST means the tank initially contains a uniform concentration C 0 , likely from a previous steady state or initial filling.
d C C S T t d t = Q V T C C S T x = l , t C C S T t A t     t = 0     C C S T 0 = C 0
where CCST is the concentration of 2-CPh in the CST; Q is the volumetric flow rate, 1 L/min [29]; and VT is the treated volume, 2.5 L.

2.2. Hybrid PINN-Based Dynamic Process Modeling

Before presenting the PINN formulation, it is important to note that conventional, non-physics-informed neural networks often underperform in highly dynamic industrial chemical applications for three main reasons. First, they require large volumes of training data that comprehensively cover all operating conditions; in practical industrial settings, such data are often unavailable, costly to obtain, or unsafe to generate. Second, these models lack inherent knowledge of physical laws like mass conservation. Consequently, they may produce physically implausible predictions—such as negative concentrations, especially when extrapolating beyond the training domain. Third, they do not generalize well under process drift, including gradual changes like catalyst deactivation or fouling, which means they require frequent retraining to maintain accuracy.
The proposed PINN overcomes these limitations by embedding the convection–diffusion–reaction equation directly into the loss function, following the methodology of Raissi et al. [30]. This integration enforces physical consistency and ensures that predictions remain physically plausible, even in scenarios with limited experimental data.
The PINN approximates the solution using neural networks, as follows:
C ^ F B R x , t ; θ C F B R x , t C ^ C S T t ; ϕ C C S T t
The total loss function combines physics constraints and experimental data, as is shown in Equation (6). The PDE residual loss is estimated by Equation (7), and the ODE residual loss is estimated by Equation (8).
L = λ P D E L P D E + λ O D E L O D E + λ B C L B C + λ I C L I C + λ D a t a L D a t a
L P D E = 1 N c o l l o c j = 1 N c o l l o c C ^ F B R t D a x 2 C ^ F B R x 2 + u C ^ F B R x + k a p p C ^ F B R   x i ,   t i 2
L O D E = 1 N c o l l o c i = 1 N c o l l o c d C ^ C S T d t Q V T C ^ F B R x = l , t i C ^ C S T t i 2
The loss functions for the boundary conditions L B C , initial condition L I C , and experimental data L D a t a are represented by Equations (9)–(11), respectively.
L B C = 1 N B C i = 1 N B C D a x C ^ F B R x u C F B R C C S T t x = 0 ,   t i 2 + 1 N B C i = 1 N B C D a x C ^ F B R x x = l ,   t i   2
L I C = 1 N I C i = 1 N I C C ^ F B R x i ,   t = 0 C 0 2 + 1 N I C i = 1 N I C C ^ C S T t = 0 C 0 2
L D a t a = 1 N D a t a i = 1 N D a t a C ^ F B R x i , t i C exp x i , t i 2 + 1 N D a t a i = 1 N D a t a C ^ C S T x i , t i C exp x i , t i 2
The required derivatives are computed using automatic differentiation, as described by Equation (12).
C ^ F B R t = N F B R x , t ; θ t ,   C ^ F B R x = N F B R x , t ; θ x ,   2 C ^ F B R x 2 = 2 N F B R x , t ; θ x 2 ,   d C ^ C S T d t = N C S T t ; ϕ t
where N F B R and N C S T denote the neural network functions for the FBR and CST, respectively.
Finally, the PINN formulation seeks to minimize the total loss, according to Equation (13).
θ * , ϕ * = arg min L θ , ϕ θ , ϕ
where θ and ϕ represent the trainable parameters (weights and biases) of the neural networks approximating CFBR and CCST, respectively.
The hyperparameters λ P D E , λ O D E , λ B C , λ I C , and λ D a t a balance the contribution of each physical constraint and the experimental data to the total loss. Typical values can be chosen such that all loss components are of similar magnitude during training.
Finally, Figure 2 illustrates the overall PINN training workflow, showing the interaction between the neural network (NN) architecture, the physics-informed loss formulation, and the optimization process. The PINN was implemented using the Deep Learning Toolbox in MATLAB R2025b. Also, Table 1 displays the pseudocode for the PINN algorithm implemented with the same Toolbox from MATLAB R2025.

2.3. Accurate Performance Modeling

Neural networks (NN) come with a bunch of hyperparameters that shape both the network architecture and the learning process. The hyperparameters in the PINN structure include the activation function, the number of hidden layers, and the number of neurons in each layer. Another very important training hyperparameter is the learning rate, which controls the magnitude of the adjustment steps during training and the number of training iterations.
Because many hyperparameters significantly impact the performance of a physics-informed neural network (PINN), a systematic approach is necessary to identify the optimal hyperparameter set. First, the hyperparameter space was discretized into a grid, all possible combinations were systematically evaluated, and model performance was assessed using metrics such as the agreement between experimental and predicted concentrations. Second, the accuracy of the PINN model was assessed using the index coefficient of determination (R2), mean square error (MSE), and root mean square error (RMSE), as shown in Equations (14)–(16) [31]. High R2 values (close to 1), along with low mean square error (MSE) and root mean square error (RMSE), indicate that the predictions align well with reality [23].
R 2 = i = 1 n C i ,   exp C i ,   mod e l 2 i = 1 n C i ,   exp C exp _ a v e r a g e 2
M S E = i = 1 n C i ,   exp C i ,   mod e l 2 n
R M S E = i = 1 n C i ,   exp C i ,   mod e l 2 n

2.4. Sensibility Analysis

In this work, the One-at-a-Time (OAT) variation method was used to perform a sensitivity analysis of the PINN model for the electro-oxidation of 2-CPh. OAT provides a clear and easy-to-interpret view of how each individual parameter affects the FBR coupled CST behavior—specifically, the final concentration of 2-CPh. For this purpose, the key parameters varied in the sensitivity analysis include the kinetic apparent constant (kapp), axial dispersion coefficient (Dax), linear velocity (u), and volumetric flow rate (Q). The normalized sensibility S i n o r m was determined using Equation (17) [32]. When S i n o r m > 1 means high sensitivity—the output is very responsive to that parameter. When S i n o r m < 0.2 , sensitivity is low, so that parameter has a negligible influence [33]. This analysis enables the identification of the parameters that most significantly affect the PINN model performance and, consequently, those that must be accurately measured or carefully controlled.
S i n o r m = Δ C 2 C P h / C 2 C P h ,   b a s e l i n e Δ x i / x i ,   b a s e l i n e i =   k a p p ,   D a x ,   u ,   Q
where Δ C 2 C P h is the absolute change in output 2-CPh concentration; Δ C 2 C P h ,   b a s e l i n e is the baseline output value of 2-CPh concentration, 0.0026 mol/m3; Δ x i ,   b a s e l i n e is the baseline value of the input parameter i ; and Δ x i is the absolute change in the input parameter i .
Table 2 shows the variations in the key factors used in the sensitivity analysis of the PINN model for the electro-oxidation of 2-CPh in an FBR on BDD electrodes under batch recirculation mode.
The percentages were picked for practical reasons. For the apparent kinetic constant (kapp), a variation range of 20–60% was selected, as this parameter typically exhibits significant uncertainty in practical systems, often in the order of ±50% [34]. The axial dispersion coefficient (Dax) was varied between 80 and 100% since it can change a lot depending on how the fluid behaves [35]. For the linear velocity (u), typical flow velocities in industrial reactors fall right into the 47–58% range. Finally, the volumetric flow rate (Q) was set at ±50% [36], as it is easy to control but can still vary slightly during normal operation [37].

3. Simulation Results and Analysis

3.1. Results of the Hybrid PINN Modeling

To perform the PINN model, the tanh activation function and Adam optimizer were selected a priori in the optimization study. Table 3 summarizes the optimal hyperparameters of the PINN model. These include the neural network requirements, the number of layers, the number of neurons per layer, and the learning rate. Additional details on hyperparameter tuning and the search procedure are provided in Table S2 of the supporting information.
Regarding data partitioning, all six experimental data points (see Table S1) were used exclusively for training, as the inductive bias introduced by the governing PDEs within the PINN framework compensates for the limited availability of experimental data.
To mitigate potential optimization instabilities associated with the Danckwerts boundary conditions (i.e., fixed curvature at the boundary), three strategies were implemented: (i) a soft constraint formulation incorporated into the loss function rather than strict enforcement; (ii) balanced loss weighting (λBC = 1 × 104, positioned between λPDE = 1.0 and λIC = 1 × 106); and (iii) the use of tanh activation functions to ensure smooth and continuous derivatives. These strategies resulted in stable training with no observed numerical instabilities. Also, all loss weights (λ values) were held constant throughout training and were determined through systematic trial and error to bring each loss component to a comparable order of magnitude. The final set of weights is reported in Table 3. Although adaptive weighting approaches (e.g., Self-Adaptive PINNs or Soft Attention methods) [38,39] were not implemented in the present study, they represent a promising direction for future work.
Figure 3a successfully captures the dynamic startup behavior of the coupled PDE-ODE electrochemical system. The PINN seems to handle the sharp concentration gradients reasonably well. Because the color bar maxes out at 1.0 mol/m3, this suggests that once the system nears the steady state, the CST is feeding the FBR at roughly the feed concentration, which makes physical sense given the parameters. Figure 3a also clearly shows that the FBR effectively reduces the 2-CPh concentration, both along the reactor length and over the hours of operation. For example, at x = 0.2 m and t = 4 h, the 2-CPh concentration drops to nearly zero (0.00268 mol/m3).
Figure 3b demonstrates successful 2-CPh concentration depletion in the coupled reactor system over the 4 h simulation window. The plot shows a smooth, convex exponential decay, implying that the PINN’s prediction of 2-CPh concentration follows first-order kinetics with the given rate constant. Moreover, the smooth, noise-free PINN output indicates that the neural network has learned a stable solution without overfitting or oscillations—demonstrating good convergence behavior. The concentration is essentially fully depleted for 4 h, suggesting that the reaction time scale is well captured within the simulation domain.
Figure 3c illustrates the effect of training duration on the convergence behavior of PINN. The loss function decreases rapidly during the initial training phase. However, accurate inversion results are not obtained at 20,000 epochs, as the loss begins to increase beyond approximately 18,000 epochs. The training dynamics can be clearly divided into three stages: (1) rapid convergence over 0–1000 epochs, during which the network captures the dominant features of the solution space; (2) a quasi-stable plateau between 1000 and 18,000 epochs, characterized by minor oscillations and progressive refinement of the solution; and (3) a divergence between 18,000 and 20,000 epochs, where the loss increases again, indicating degradation in model performance. The loss attains its minimum within the range of approximately 10,000–18,000 epochs, beyond which additional training does not yield further improvements. Instead, overtraining leads to a deterioration in predictive accuracy, likely due to the imbalance among loss components or the accumulation of numerical errors during optimization. These results highlight the importance of appropriate early stopping criteria to ensure optimal model performance and stable convergence in PINN training.
Figure 3d compares three different modeling approaches for the electro-oxidation of 2-CPh. The blue line follows the black stars almost perfectly throughout the entire process. It corrects the underestimation seen in the CFD model [12] and the overestimation of the parametric model [13]. As a result, the PINN model matches the experimental data very well, showing high accuracy.
The zoomed-in section highlights the “tail” of the decay, where each simulation gives a slightly different concentration of 2-CPh. For example, at the end of the experiment, the values are 0.0001 mol/m3 for the experimental data, 0.00130 mol/m3 for the CFD model [12], 0.00943 mol/m3 for the parametric model, and 0.00268 mol/m3 for the PINN model.
Among the models evaluated, the CFD model [12] shows the closest agreement with experimental data at t = 4 h (0.00130 mol/m3), albeit at a substantial computational cost of 42 days of computation. In contrast, the parametric model completes its computation in only 8 s, but its prediction (0.00943 mol/m3) shows the largest deviation from the experimental value. The PINN model provides a balanced compromise between accuracy and efficiency: with a runtime of 7.36 h, it yields a concentration of 0.00268 mol/m3. It is worth noting that CFD is a first-principles model, whereas the PINN is a hybrid data-driven approach; therefore, a direct comparison is not strictly equivalent. Nevertheless, the PINN performs the same predictive task in 7.36 h compared to 42 days for CFD, underscoring the practical speed advantage of trained PINNs for rapid predictions.
Importantly, the reported 7.36 h for the PINN corresponds to a one-time offline training cost (implemented in MATLAB R2025b). Once trained, the PINN achieves an average inference time of 8.0 milliseconds per prediction (averaged over 1000 evaluations), making it highly suitable for real-time control frameworks and digital twin applications.
Overall, the physics-informed neural network (PINN) approach—likely combining the physical laws used in the CFD [12] and parametric [13] models with data-driven learning—offers a more robust and accurate prediction of the system’s behavior than traditional modeling methods alone.

3.2. Accuracy Index Performance

Table 4 summarizes the R2, MSE, and RMSE values for the concentration of 2-CPh at x = 0.2 m and t = 4 h in an FBR under batch recirculation mode. The results indicate that the PINN model offers higher accuracy and robustness than the CFD [12] and parametric models [13], achieving a high R2 score of 0.9927 and low MSE and RMSE values of 0.0009 and 0.0294, respectively.

3.3. Sensitivity Analysis

To perform a sensitivity analysis for all four key factors k a p p ,   D a x ,   u ,   Q , the program runs up to 8000 epochs. Table 5 summarizes the sensitivity analysis of the PINN model for predicting the concentration of 2-CPh at x = 0.2 m and t = 4 h in a FBR under batch recirculation mode.
The parameters’ sensitivity S n o r m ranking is k a p p > u Q > D a x . These values indicate the elasticity of each factor with respect to C 2 C P h ,   f i n a l var i a t i o n . Specifically, S n o r m = 14.20 means that a 1% change in kapp leads to a 14.20% change in C 2 C P h ,   f i n a l var i a t i o n . S n o r m = 3.32 means that a 1% change in Dax leads to a 3.32% change in C 2 C P h ,   f i n a l var i a t i o n . S n o r m = 6.20 means that a 1% change in u leads to a 6.20% change in C 2 C P h ,   f i n a l var i a t i o n . Finally, S n o r m = 6.55 means that a 1% change in Q leads to a 6.55% change in C 2 C P h ,   f i n a l var i a t i o n .
The sensitivity analysis reveals that the PINN model’s prediction of 2-CPh concentration is most sensitive to the kapp, u and Q also exert substantial influence, and Dax is comparatively less critical. Accurate estimation of kapp is paramount for reliable model predictions. This kapp depends on the current intensity (I) in electro-oxidation processes. Hence, it is correct that it is the most influential factor, which agrees with reference [20].
Beyond quantifying parameter influence, the sensitivity analysis also provides insight into the robustness and stability of the network under realistic operating conditions. In this context, a PINN can be considered stable if small, bounded perturbations in input parameters lead to correspondingly small, bounded variations in the output, without inducing oscillatory behavior or physically implausible predictions. The proposed PINN guarantees stability through three key mechanisms: (i) the use of tanh activation functions ensures Lipschitz continuity of the network mappings [40], promoting smooth input–output mappings; (ii) the inclusion of PDE residual loss enforces the governing physical laws, thereby penalizing solutions that deviate from physically consistent behavior; and (iii) the computed sensitivity coefficients provide quantitative bounds on the propagation of input uncertainties to the model outputs. From a practical perspective, for a representative pumping system experiencing ±10% fluctuations in flow rate (common in industrial electro-oxidation processes), the corresponding variation in the predicted 2-CPh concentration is approximately ±0.62% (using S u n o r m = 6.20 ). Likewise, a ±10% variation in the dispersion coefficient yields a concentration change of approximately ±0.33% (using S D a x n o r m = 3.32 ). The relatively small magnitude of these responses indicates that the model predictions remain bounded and well-conditioned under typical operating disturbances. Collectively, these results confirm the numerical stability and robustness of the PINN, supporting its suitability for deployment in practical wastewater treatment systems.

3.4. Results Analysis

Building on this, the study confirmed that PINN modeling offers a feasible solution to the addressed problem we set out to address. Figure 4 further illustrates key aspects of the simulated electro-oxidation of 2-CPh. It is worth noting that all three modeling approaches for electro-oxidation achieved a good fit for the data. However, PINN stood out as the best overall—delivering a high R2 score, low MSE, and a solid RMSR value, all within a moderate computing time.
Figure 5 presents a PINN-based sensitivity analysis for several parameters (e.g., kapp, Dax, u, and Q). All subfigures show a 2-CPh concentration decay forming a single indistinguishable trajectory that closely matches experimental data, as expected from the model. Figure 5a indicates that as the apparent kinetic constant increases, the reaction accelerates—implying a more kinetically favorable environment over time. It also shows that mass transfer dominates the depletion of 2-CPh concentration. Figure 5b shows that a significant increase in axial dispersion leads to a flow regime that is less plug-flow-like and more mixed as the reaction progresses. Figure 5c illustrates that, in the flow-by (PDE) configuration coupled with a CST reaction, the residence time dominates; therefore, the flow velocity in the PDE section may have a minimal impact on the bulk concentration. Figure 5d shows that if CST mixing dominates and the residence time is long, variations in flow rate within this range do not significantly alter the concentration profile.

4. Limitations and Future Works

Dynamic modeling of advanced oxidation process (AOP)-based wastewater treatment systems presents several challenges. These include process nonlinearity, complex reaction mechanisms, insufficient data from unstable reactive oxidant species (ROS), and difficulties in validation due to substantial data requirements. Furthermore, there is a need to enhance dynamic modeling strategies through the application of black-box or gray-box methods. Additional limitations pertain to process control, such as stringent effluent quality regulations, the necessity to reduce operating costs, potential shifts in environmental regulations, and a heightened risk of effluent quality fluctuations due to disturbances, particularly given the short process time delay.
Control-specific limitations include:
  • Limited adjustability range of implemented control valves, pumps, and motors.
  • The need for sensors with short response times to match the process’s short time delay.
  • The possibility of forming complex by-products due to excess reactants in the effluent.
  • Sluggish response or overshoot after controller implementation.
  • A high likelihood of human error in manual-based control.
  • Challenges in optimal sensor placement.
Future work includes modeling the kinetic reaction of 2-chlorophenol using the Butler–Volmer equation or obtaining a pseudo-kinetic reaction in terms of the current intensity. It also includes modeling the electro-oxidation of 2-chlorophenol by a physics-informed neural network (PINN), incorporating the Butler–Volmer equation into the mass balance transport equation, as well as including the current distribution equation.
To properly assess generalization, the model should be tested against experimental data collected under different operating conditions or at different time points. Finally, future work will explore the implementing linear and nonlinear, optimal, cascade, and/or plantwide control strategies to control the current intensity and/or volumetric flow rate.

5. Conclusions

Based on the findings of this study, the electro-oxidation of 2-chlorophenol on BDD electrodes in a flow-by reactor under batch recirculation was successfully modeled using a hybrid physics-informed neural network (PINN). The developed hybrid PINN exhibited high predicted accuracy, achieving an R2 value of 0.9927 with low MSE and RMSE values of 0.0009 and 0.0294, respectively. These results underscore the potential of PINNs for modeling electrochemical wastewater treatment processes.
Sensitivity analysis further ranked the parameters influencing the PINN predictions of 2-Chlorophenol concentration, identifying the most critical factor whose precise estimation is essential for ensuring reliable predictions. Moreover, in comparison with computational fluid dynamics (CFD), the PINN reduced computational time from 42 days to 7.36 h—a 137-fold speedup—while maintaining excellent accuracy (R2 = 0.9927).
It was also concluded that increasing the number of epochs does not inherently guarantee stable convergence; thus, incorporating early stopping criteria remains essential.

Supplementary Materials

The following supporting information can be downloaded at: https://www.mdpi.com/article/10.3390/pr14121862/s1, Table S1. Experimental data at best operating conditions. Table S2. Explored ranges for key hyperparameters.

Author Contributions

Conceptualization, A.R.-M., R.N., C.P.-A. and E.P.-R.; methodology, A.R.-M. and D.M.S.-C.; software, M.E.C., L.G.Z., A.R.-M. and H.P.-P.; validation, A.R.-M., D.M.S.-C., and E.P.-R.; formal analysis, A.R.-M.; investigation, A.R.-M. and D.M.S.-C.; resources, A.R.-M. and E.P.-R.; data curation, A.R.-M., M.E.C., L.G.Z. and H.P.-P.; writing—original draft preparation, A.R.-M.; writing—review and editing, A.R.-M., D.M.S.-C., R.N., M.E.C., L.G.Z., H.P.-P., C.P.-A. and E.P.-R.; visualization, A.R.-M. and R.N.; supervision, A.R.-M.; project administration, A.R.-M. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Data Availability Statement

The original contributions presented in this study are included in the article. For further inquiries, please get in touch with the corresponding authors.

Acknowledgments

Authors A.R.-M., R.N., M.E.C., L.G.Z., H.P.-P., C.P.-A., and E.P.-R. are grateful to the Secretary of Science, Humanities, Technology, and Innovation (SECIHTI) for the stimulus provided through the Investigators National System Program (SNII). Also, D.M.S.-C. acknowledges SECIHTI for supporting her studies through scholarship no. 2000865. Additionally, we are grateful to Derek Joe for his thorough proofreading of the text.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

AOPAdvanced oxidation process
BDDBoron-doped diamond
COMSOLComputational solutions
CFDComputational fluid dynamics
CNTsCarbon nanotubes
CSTContinuous stirred-tank
DAEDifferential-algebraic equation
FBRFlow-by reactor
LLoss function
MATLABMatrix laboratory
MSEMean square error
ODEsOrdinary differential equations
PDEsPartial differential equations
PINNPhysics-informed neural network
PtPlatinum
RMSERoot means square error
RTDResidence time distribution
ROSReactive oxidant species
tTime, h
TiTitanium
xFlow direction in the FBR, m
Greek symbols
λ Balances the relative contribution of the physics-based constraint during training
θ Weights of the neural networks approximating
l Reactor length, 0.2 m
ϕ Biases of the neural networks approximating
Δ Change
Nomenclature
2-CPh2-Chlorophenol
CConcentration, 1 mol/m3
C 2 C P h ,   b a s e l i n e Baseline output value of 2-CPh concentration, 0.0026 mol/m3
DaxAxial dispersion coefficient, 0.0005 m2/s
eElectron
ICurrent intensity, A
H+Hydrogen ion or proton
H2OWater
kKinetic constant, 1.224 1/h
NiTSPcNickel(II) tetrasulfonated phthalocyanine
N F B R Neural network functions for the FBR
N C S T Neural network functions for the CST
OHHydroxyl radicals
PbO2Lead oxide
poly-NiTSPcPolymerized film of NiTSPc
Q Volumetric flow rate, 1 L/min
R2Coefficient of determination
S n o r m Normalize sensitivity
SnO2Tin oxide
u Linear velocity, 0.0947 m/s
V T Treated volume, 2.5 L
Δ C 2 C P h Absolute change in output 2-CPh concentration
x i ,   b a s e l i n e Baseline value of the input parameter i
Δ x i Absolute change in the input parameter i
Subscripts
0Initial
AppApparent
BCBoundary conditions
ICInitial condition
iFactor k a p p ,   D a x ,   u ,   a n d   Q

References

  1. Ureta-Zañartu, M.S.; Berríos, C.; Pavez, J.; Zagal, J.; Gutiérrez, C.; Marco, J.F. Electrooxidation of 2-Chlorophenol on PolyNiTSPc-Modified Glassy Carbon Electrodes. J. Electroanal. Chem. 2003, 553, 147–156. [Google Scholar] [CrossRef]
  2. Keith, L.H.; Telliard, W.A. ES&T Special Report: Priority Pollutants: I-a Perspective View. Environ. Sci. Technol. 1979, 13, 416–423. [Google Scholar] [CrossRef]
  3. Yoon, J.-H.; Shim, Y.-B.; Lee, B.-S.; Choi, S.-Y.; Won, M.-S. Electrochemical Degradation of Phenol and 2-Chlorophenol Using Pt/Ti and Boron-Doped Diamond Electrodes. Bull. Korean Chem. Soc. 2012, 33, 2274–2278. [Google Scholar] [CrossRef]
  4. Peralta-Reyes, E.; Natividad, R.; Castellanos, M.; Mentado-Morales, J.; Cordero, M.E.; Amado-Piña, D.; Regalado-Méndez, A. Electro-Oxidation of 2-Chlorophenol with BDD Electrodes in a Continuous Flow Electrochemical Reactor. J. Flow Chem. 2020, 10, 437–447. [Google Scholar] [CrossRef]
  5. Yoon, J.H.; Jeong, E.D.; Shim, Y.B.; Won, M.S. Anodic Degradation of Toxic Aromatic Compound in the Flow Through Cell with Carbon Fiber Electrode. Key Eng. Mater. 2005, 277–279, 445–449. [Google Scholar] [CrossRef]
  6. Polcaro, A.M.; Palmas, S.; Renoldi, F.; Mascia, M. On the Performance of Ti/SnO2 and Ti/PbO2 Anodes in Electrochemical Degradation of 2-Chlorophenol for Wastewater Treatment. J. Appl. Electrochem. 1999, 29, 147–151. [Google Scholar] [CrossRef]
  7. Liu, H.; Zhang, Z.; Ren, M.; Guan, J.; Lu, N.; Qu, J.; Yuan, X.; Zhang, Y.N. Preparation of the CNTs/AG/ITO Electrode with High Electro-Catalytic Activity for 2-Chlorophenol Degradation and the Potential Risks from Intermediates. J. Hazard. Mater. 2018, 359, 148–156. [Google Scholar] [CrossRef]
  8. Cornejo, O.M.; Murrieta, M.F.; Castañeda, L.F.; Nava, J.L. Electrochemical Reactors Equipped with BDD Electrodes: Geometrical Aspects and Applications in Water Treatment. Curr. Opin. Solid State Mater. Sci. 2021, 25, 100935. [Google Scholar] [CrossRef]
  9. Cornejo, O.M.; Murrieta, M.F.; Castañeda, L.F.; Nava, J.L. Characterization of the Reaction Environment in Flow Reactors Fitted with BDD Electrodes for Use in Electrochemical Advanced Oxidation Processes: A Critical Review. Electrochim. Acta 2020, 331, 135373. [Google Scholar] [CrossRef]
  10. Cornejo, O.M.; Murrieta, M.F.; Aguilar, Z.G.; Rodríguez, J.F.; Márquez, A.A.; León, M.I.; Nava, J.L. Recent Advances in Electrochemical Flow Reactors Used in Advanced Oxidation Processes: A Critical Review. Chem. Eng. J. 2024, 496, 153935. [Google Scholar] [CrossRef]
  11. Cruz-Díaz, M.R.; Rivero, E.P.; Almazán-Ruiz, F.J.; Torres-Mendoza, Á.; González, I. Design of a New FM01-LC Reactor in Parallel Plate Configuration Using Numerical Simulation and Experimental Validation with Residence Time Distribution (RTD). Chem. Eng. Process. Process Intensif. 2014, 85, 145–154. [Google Scholar] [CrossRef]
  12. Regalado-Méndez, A.; Cruz-López, A.; Mentado-Morales, J.; Cordero, M.E.; Zárate, L.G.; Cruz-Díaz, M.R.; Fontana, G.; Peralta-Reyes, E. Mathematical Modeling of the Electrochemical Degradation of 2-Chlorophenol Using an Electrochemical Flow Reactor Equipped with BDD Electrodes. J. Flow Chem. 2019, 9, 59–71. [Google Scholar] [CrossRef]
  13. Regalado-Méndez, A.; Ramos-Hernández, G.; Natividad, R.; Cordero, M.E.; Zárate, L.; Robles-Gómez, E.E.; Pérez-Pastenes, H.; Peralta-Reyes, E. Parametric Mathematical Model of the Electrochemical Degradation of 2-Chlorophenol in a Flow-by Reactor under Batch Recirculation Mode. Water 2023, 15, 4276. [Google Scholar] [CrossRef]
  14. Wang, W.; Wu, Z.; Peters, D.; Citmaci, B.; Morales-Guio, C.G.; Christofides, P.D. Machine Learning in Modeling, Analysis and Control of Electrochemical Reactors: A Tutorial Review. Digit. Chem. Eng. 2025, 15, 100237. [Google Scholar] [CrossRef]
  15. Alhajeri, M.S.; Abdullah, F.; Wu, Z.; Christofides, P.D. Physics-Informed Neural Networks for Dynamic Process Operations with Limited Physical Knowledge and Data. Comput. Chem. Eng. 2025, 192, 108899. [Google Scholar] [CrossRef]
  16. Zavaleta-Avendaño, J.; Cervantes-Hernández, P.; Natividad, R.; Peralta-Reyes, E.; Espinoza-Montero, P.J.; Pérez-Pastenes, H.; Regalado-Méndez, A. Artificial Neural Network Prediction Model of Electrochemical Degradation of Chloroquine in a Plane-Parallel Plate Flow Reactor Using Two BDD Electrodes. Lect. Notes Netw. Syst. 2025, 1561, 189–201. [Google Scholar] [CrossRef]
  17. Viana, D.F.; Salazar-Banda, G.R.; Leite, M.S. Electrochemical Degradation of Reactive Black 5 with Surface Response and Artificial Neural Networks Optimization Models. Sep. Sci. Technol. 2018, 53, 2647–2661. [Google Scholar] [CrossRef]
  18. Ganthavee, V.; Fernando, M.M.R.; Trzcinski, A.P. Monte Carlo Simulation, Artificial Intelligence and Machine Learning-Based Modelling and Optimization of Three-Dimensional Electrochemical Treatment of Xenobiotic Dye Wastewater. Environ. Process. 2024, 11, 41. [Google Scholar] [CrossRef]
  19. Nghia, N.T.; Tuyen, B.T.K.; Quynh, N.T.; Thuy, N.T.T.; Nguyen, T.N.; Nguyen, V.D.; Tran, T.K.N. Response Methodology Optimization and Artificial Neural Network Modeling for the Removal of Sulfamethoxazole Using an Ozone–Electrocoagulation Hybrid Process. Molecules 2023, 28, 5119. [Google Scholar] [CrossRef]
  20. Zavaleta-Avendaño, J.; Peralta-Reyes, E.; Natividad, R.; Martínez-Villa, G.; Escudero, C.J.; Hernández-Servín, J.A.; Alanis, C.; Regalado-Méndez, A. Predicting and Optimizing Electrochemical Degradation of Mezcal Vinasse with Statistical and Neural Network Models. Results Eng. 2026, 30, 110199. [Google Scholar] [CrossRef]
  21. Karniadakis, G.E.; Kevrekidis, I.G.; Lu, L.; Perdikaris, P.; Wang, S.; Yang, L. Physics-Informed Machine Learning. Nat. Rev. Phys. 2021, 3, 422–440. [Google Scholar] [CrossRef]
  22. Mukherjee, A.; Zavala, V.M. Physics-Constrained Machine Learning for Chemical Engineering. Curr. Opin. Chem. Eng. 2026, 51, 101228. [Google Scholar] [CrossRef]
  23. Nasruddin, N.A.; Islam, N.; Vernuccio, S.; Oyekan, J. Hybridised Mechanistic and Machine Learning Digital Twins for Modelling and Optimising Chemical Processes in Flow: A Comparative Analysis of Parallel and Series-Based Hybridisation. Chem. Eng. J. Adv. 2025, 23, 100775. [Google Scholar] [CrossRef]
  24. Farooqi, M.; Bösing, I.; Feugmo, C.G.T. A Physics-Informed Neural Network Approach to the Point Defect Model for Electrochemical Oxide Film Growth. arXiv 2025, arXiv:2510.02872. [Google Scholar] [CrossRef]
  25. Vairo, T.; Cademartori, D.; Clematis, D.; Asensio, A.M.; Barbucci, A.; Carpanese, M.P. A Physics-Informed Neural Network (PINN) Predicting the Performance of Air Electrodes for Solid Oxide Cells: A Pilot-Scale Demonstration on Four Microstructures. Int. J. Hydrogen Energy 2025, 176, 151322. [Google Scholar] [CrossRef]
  26. Abdelwahab, S.I.; Taha, M.M.E.; Moni, S.S.; Alsayegh, A.A. Physics-Informed Neural Networks in the Energy Sector: Progress, Trends, and Future Directions. Energy Rep. 2026, 15, 109013. [Google Scholar] [CrossRef]
  27. Chen, H.; Kätelhön, E.; Compton, R.G. Predicting Voltammetry Using Physics-Informed Neural Networks. J. Phys. Chem. Lett. 2022, 13, 536–543. [Google Scholar] [CrossRef] [PubMed]
  28. Bany Abdelnabi, A.A.; Al Theeb, N.; Almomani, M.A.; Ghanem, H.; Rosiwal, S.M. Effect of Electrode Parameters in the Electro-Production of Reactive Oxidizing Species via Boron-Doped Diamond under Batch Mode. Water Environ. Res. 2022, 94, e10830. [Google Scholar] [CrossRef]
  29. Regalado-Méndez, A.; Mentado-Morales, J.; Vázquez, C.E.; Martínez-Villa, G.; Cordero, M.E.; Zárate, L.G.; Skogestad, S.; Peralta-Reyes, E. Modeling and Hydraulic Characterization of a Filter-Press-Type Electrochemical Reactor by Using Residence Time Distribution Analysis and Hydraulic Indices. Int. J. Chem. React. Eng. 2018, 16, 20170210. [Google Scholar] [CrossRef]
  30. Raissi, M.; Perdikaris, P.; Karniadakis, G.E. Physics-Informed Neural Networks: A Deep Learning Framework for Solving Forward and Inverse Problems Involving Nonlinear Partial Differential Equations. J. Comput. Phys. 2019, 378, 686–707. [Google Scholar] [CrossRef]
  31. Rehman, A.; Iqbal, M.A.; Haider, M.T.; Majeed, A. Artificial Intelligence-Guided Supervised Learning Models for Photocatalysis in Wastewater Treatment. AI 2025, 6, 258. [Google Scholar] [CrossRef]
  32. Quina, M.M.J.; Quinta Ferreira, R.M. Model Comparison and Sensitivity Analysis for a Fixed Bed Reactor with Two Catalytic Zones. Chem. Eng. J. 1999, 75, 149–159. [Google Scholar] [CrossRef]
  33. Li, D.; Ju, Q.; Jiang, P.; Huang, P.; Xu, X.; Wang, Q.; Hao, Z.; Zhang, Y. Sensitivity Analysis of Hydrological Model Parameters Based on Improved Morris Method with the Double-Latin Hypercube Sampling. Hydrol. Res. 2023, 54, 220–232. [Google Scholar] [CrossRef]
  34. Fogler, H.S. Elements of Chemical Reaction Engineering, 6th ed.; Pearson Education Limited: London, UK, 2022; ISBN 1-292-41666-1. [Google Scholar]
  35. Levenspiel, O. Chemical Reaction Engineering, 3rd ed.; Wiley: New York, NY, USA, 1999; ISBN 9780471254249. [Google Scholar]
  36. Regalado-Méndez, A.; Zavaleta-Avendaño, J.; Peralta-Reyes, E.; Natividad, R. Convex Optimization for Maximizing the Degradation Efficiency of Chloroquine in a Flow-by Electrochemical Reactor. J. Solid State Electrochem. 2023, 27, 3163–3176. [Google Scholar] [CrossRef]
  37. Scali, C.; Bacci, R.; Capaci, D.; Pannocchia, G. Robustness Evaluation of Different Controllers in the Presence of Flow Rate Variations. Chem. Eng. Trans. 2021, 86, 907–912. [Google Scholar] [CrossRef]
  38. Wang, S.; Teng, Y.; Perdikaris, P. Understanding and Mitigating Gradient Flow Pathologies in Physics-Informed Neural Networks. SIAM J. Sci. Comput. 2021, 43, A3055–A3081. [Google Scholar] [CrossRef]
  39. Naser, M.Z. Fundamental Flaws of Physics-Informed Neural Networks and Explainability Methods in Engineering Systems. Comput. Ind. Eng. 2026, 212, 111704. [Google Scholar] [CrossRef]
  40. Luo, R. Principles of Lipschitz Continuity in Neural Networks. Doctoral Thesis, University of Galway, Galway, Ireland, 2025. [Google Scholar]
Figure 1. Batch recirculation electrochemical reaction system.
Figure 1. Batch recirculation electrochemical reaction system.
Processes 14 01862 g001
Figure 2. Physics-informed neural network (PINN) architecture and training workflow.
Figure 2. Physics-informed neural network (PINN) architecture and training workflow.
Processes 14 01862 g002
Figure 3. PINN simulation results of electro-oxidation of 2-CPh. (a) Space-time evolution of 2-CPh in the FBR; (b) time evolution of 2-CPh in the CST; (c) PINN model training loss vs. epoch training; (d) time evolution of 2-CPh concentration: hybrid PINN model vs. experimental data and literature models.
Figure 3. PINN simulation results of electro-oxidation of 2-CPh. (a) Space-time evolution of 2-CPh in the FBR; (b) time evolution of 2-CPh in the CST; (c) PINN model training loss vs. epoch training; (d) time evolution of 2-CPh concentration: hybrid PINN model vs. experimental data and literature models.
Processes 14 01862 g003
Figure 4. Various modeling techniques with their level of fidelity, execution time and computing resources.
Figure 4. Various modeling techniques with their level of fidelity, execution time and computing resources.
Processes 14 01862 g004
Figure 5. PINN sensitivity analysis. (a) Sensitivity to kinetic constant (kapp); (b) sensitivity to axial dispersion constant (Dax); (c) sensitivity to linear velocity (u); (d) sensitivity to volumetric flow rate (Q).
Figure 5. PINN sensitivity analysis. (a) Sensitivity to kinetic constant (kapp); (b) sensitivity to axial dispersion constant (Dax); (c) sensitivity to linear velocity (u); (d) sensitivity to volumetric flow rate (Q).
Processes 14 01862 g005
Table 1. Pseudocode PINN algorithm with Deep Learning Toolbox.
Table 1. Pseudocode PINN algorithm with Deep Learning Toolbox.
StepDescription
1:Initiation and parameters
C0 ←, u ←, Q ←, L ← kapp ←, Dax ← VT ←, t_Total ←, Experimental data (t, C2-CPh)
2:Neural Network architecture
FBR Network: Predicts CFBR (x, t):
Input: 2 (x, t), Hidden layers: # layers with # neurons each, Tanh activation function, and Output: 1 (CFBR)
Create network net for FBR
CST Network: Predicts C_CST (t)
Input: 1 (t), Hidden layers: # layers with # neurons each, Tanh activation function, Output: 1 (C_CST)
Create network net_CST with structure
Initialize networks with random seed 42
3:Training points generation:
Nx ← #, Nt ← #, x ← linspace (0, L, Nx), t ← linspace (0, t_total, Nt),
Collocation points [X, T] ← meshgrid (x, t), x_colloc ← flatten(X), t_colloc ← flatten (T)
FBR initial condition points (t = 0, all x), CST initial condition points, Boundary condition points, CST training points, and Convert all points to dlarray format for deep learning
4:Loss weights:
lambda_pde ←, lambda_bc ←, lambda_ic ←, lambda_cst ←, lambda_cst0 ←, lambda_exp ←
5:Training Loop
numEpochs ← #, learnRate ←
Initialize Adam optimizer states for both networks
Initialize loss_history array
For epoch = 1 to numEpochs
  Call [loss_total, gradients_FBR, gradients_CST, monitoring_vals] ←
  Update networks using Adam optimizer
  loss_history [epoch, 1] ← loss_total
  loss_history [epoch, 2:9] ← monitoring_vals
  Display progress every 1000 epochs
End
6:Data saving:
Generate high-resolution time vector
  t_save ← linspace (0, t_total, 1000), t_save ←
  C_CST_save, C_FBR_out_save
  For i = 0 to length (t_save)
  Predict C_CST at t_save [i]
  Predict C_FBR at x = L and t_save [i]
  Store results
  Update progress bar every 100 points
  End
  Save data to CSV file
7:Visualization:
Create Plot Concentration vs time
Create Plot FBR spatial profiles
Create Plot loss_total vs epoch
8:Loss function subroutine (net_FBR, net_CST, x_colloc, t_colloc, x_ic, t_ic, x0, t0, xL, tL, t_cst, t0_cst, t_exp, C_exp, u, D, k, C0, Q, V_cst, L, lambda_pde, lambda_bc, lambda_ic, lambda_cstr, lambda_cstr0, lambda_exp)
  Forward predictions
  Compute derivatives using automatic differentiation
  Compute residuals
  Compute individual losses (mean squared error)
  Total weighted loss
  Compute gradients for both networks
  Monitoring values
Table 2. Sensitivity analysis of the key factors of the PINN model for the electro-oxidation of 2-CPh.
Table 2. Sensitivity analysis of the key factors of the PINN model for the electro-oxidation of 2-CPh.
Factorkapp (1/h)Dax (m2/s)u (m/s)Q (L/min)
Values
10.979(−20%)1 × 10−4(−80%)0.0500(−47%)0.50(−50%)
21.224Baseline3 × 10−4(−40%)0.0700(−26%)0.75(−25%)
31.469(+20%)5 × 10−4Baseline0.0947Baseline1.00Baseline
41.714(+40%)7 × 10−4(+40%)0.1200(+27%)1.25(+25%)
51.958(+60%)1 × 10−3(100%)0.1500(+58%)1.50(+50%)
Table 3. Optimized hyperparameter values for the PINN.
Table 3. Optimized hyperparameter values for the PINN.
ParametersPDE (C2-CPh, FBR)ODE (C2-CPh, CST)
Inputs2 (x, t)1 (t)
Output1 (C2-CPh, FBR)1 (C2-CPh, CST)
Hidden Layer44
Neurons per Layer6050
Activation functiontanhtanh
Final Smooth FunctionLinearLinear
Global hypermeters
Initial Learning Rate1 × 10−3
Learning Rate5 × 10−5
Epochs Training20,000
OptimizerAdam
PDE collocation points200,000ODE collocation points400
BCs collocation points400ICs collocation points2000
ICs collocation points50,000
Loss weights
λ P D E 1 λ O D E 1 × 104
λ P D E ,   B C 1 × 104 λ O D E ,   I C 1 × 107
λ P D E ,   I C 1 × 106 λ D a t a 1 × 107
Table 4. Performance metrics indexes (R2, MSE, and RMSE) of the PINN model for predicting the concentration of 2-CPh at x = 0.2 m and t = 4 h in a FBR under batch recirculation mode.
Table 4. Performance metrics indexes (R2, MSE, and RMSE) of the PINN model for predicting the concentration of 2-CPh at x = 0.2 m and t = 4 h in a FBR under batch recirculation mode.
Model TypeRef.R2MSERMSERemark
PINN[This work]0.99270.00090.0294Excellent model fit
CFD[12]0.99170.16330.4041Very good model fit
Parametric[13]0.98310.03070.1754Very good model fit
Table 5. Sensitivity analysis summary.
Table 5. Sensitivity analysis summary.
FactorRange C 2 C P h ,   f i n a l   var i a t i o n
(%)
Max (S)
kapp0.9790 to 1.958 1/h−556.3414.20
Dax1 × 10−4 to 1 × 10−3 m2/s−85.673.32
u0.05 to 0.15 m/s−290.136.20
Q0.5 to1.5 L/min−32.926.55
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.

Share and Cite

MDPI and ACS Style

Regalado-Méndez, A.; Salinas-Camacho, D.M.; Natividad, R.; Cordero, M.E.; Zárate, L.G.; Pérez-Pastenes, H.; Pérez-Alonso, C.; Peralta-Reyes, E. A Hybrid Physics-Informed Neural Network (PINN) for the Electro-Oxidation of 2-Chlorophenol on BDD Electrodes in a Flow-By Reactor Under Batch Recirculation. Processes 2026, 14, 1862. https://doi.org/10.3390/pr14121862

AMA Style

Regalado-Méndez A, Salinas-Camacho DM, Natividad R, Cordero ME, Zárate LG, Pérez-Pastenes H, Pérez-Alonso C, Peralta-Reyes E. A Hybrid Physics-Informed Neural Network (PINN) for the Electro-Oxidation of 2-Chlorophenol on BDD Electrodes in a Flow-By Reactor Under Batch Recirculation. Processes. 2026; 14(12):1862. https://doi.org/10.3390/pr14121862

Chicago/Turabian Style

Regalado-Méndez, Alejandro, Damayrí M. Salinas-Camacho, Reyna Natividad, Mario E. Cordero, Luis G. Zárate, Hugo Pérez-Pastenes, César Pérez-Alonso, and Ever Peralta-Reyes. 2026. "A Hybrid Physics-Informed Neural Network (PINN) for the Electro-Oxidation of 2-Chlorophenol on BDD Electrodes in a Flow-By Reactor Under Batch Recirculation" Processes 14, no. 12: 1862. https://doi.org/10.3390/pr14121862

APA Style

Regalado-Méndez, A., Salinas-Camacho, D. M., Natividad, R., Cordero, M. E., Zárate, L. G., Pérez-Pastenes, H., Pérez-Alonso, C., & Peralta-Reyes, E. (2026). A Hybrid Physics-Informed Neural Network (PINN) for the Electro-Oxidation of 2-Chlorophenol on BDD Electrodes in a Flow-By Reactor Under Batch Recirculation. Processes, 14(12), 1862. https://doi.org/10.3390/pr14121862

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Article metric data becomes available approximately 24 hours after publication online.
Back to TopTop