Next Article in Journal
A New Method for Quantitative Evaluation Concentration Polarization Under Different Conditions for the Forward Osmosis Process
Next Article in Special Issue
Novel Dual-Layer Zwitterionic Modification of Electrospun Nanofibrous Membrane for Produced Water Treatment and Reclamation
Previous Article in Journal
Intrinsic Performances of Reverse Osmosis and Nanofiltration Membranes for the Recovery and Concentration of Multicomponent Mixtures of Volatile Fatty Acids: A Semi-Pilot Study
Previous Article in Special Issue
Potable Water Recovery for Space Habitation Systems Using Hybrid Life Support Systems: Biological Pretreatment Coupled with Reverse Osmosis for Humidity Condensate Recovery
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Modelling Caffeine and Paracetamol Removal from Synthetic Wastewater Using Nanofiltration Membranes: A Comparative Study of Artificial Neural Networks and Response Surface Methodology

1
Institute of Environmental and Chemical Engineering, Faculty of Chemical Technology, University of Pardubice, Studentská 573, 532 10 Pardubice, Czech Republic
2
Department of Chemical Engineering, Nnamdi Azikiwe University, Awka 5025, Nigeria
3
Institute of Metallurgy, Clausthal University of Technology, Robert-Koch-Straße 42, 38678 Clausthal-Zellerfeld, Germany
*
Author to whom correspondence should be addressed.
Membranes 2025, 15(8), 222; https://doi.org/10.3390/membranes15080222
Submission received: 27 June 2025 / Revised: 15 July 2025 / Accepted: 23 July 2025 / Published: 24 July 2025
(This article belongs to the Special Issue Advanced Membranes and Membrane Technologies for Wastewater Treatment)

Abstract

The integration of computational intelligence techniques into pharmaceutical wastewater treatment offers promising opportunities to improve process efficiency and minimize operational costs. This study compares the predictive capabilities of Response Surface Methodology (RSM) and Artificial Neural Network (ANN) models in forecasting the rejection efficiencies of caffeine and paracetamol using AFC 40 and AFC 80 nanofiltration (NF) membranes. Experiments were conducted under varying operating conditions, including transmembrane pressure, feed concentration, and flow rate. The predictive performance of both models was evaluated using statistical metrics such as the Coefficient of Determination (R2), Root Mean Square Error (RMSE), Marquardt’s Percentage Squared Error Deviation (MPSED), Hybrid fractional error function (HYBRID), and Average Absolute Deviation (AAD). Both models demonstrated strong predictive accuracy, with R2 values of 0.9867 and 0.9832 for RSM and ANN, respectively, in AFC 40 membranes, and 0.9769 and 0.9922 in AFC 80 membranes. While both approaches closely matched the experimental results, the ANN model consistently yielded lower error values and higher R2 values, indicating superior predictive performance. These findings support the application of ANNs as a robust modelling tool in optimizing NF membrane processes for pharmaceutical removal.

1. Introduction

The world’s rivers are full of pharmaceuticals, which is unsustainable. Wilkinson et al. [1] obtained samples from 258 rivers across all continents. They analysed each sample for traces of pharmaceuticals. Their findings showed that only one indigenous village in Venezuela, where modern medicines are not used, and Iceland were free from contamination. In all other rivers, traces of pharmaceuticals were detected. The findings of their study are conclusive and provide strong evidence for the presence of pharmaceutically active compounds (PhACs) in water bodies, which potentially threaten aquatic ecosystems and human health. These PhACs in marine ecosystems originate from domestic sewage, hospital effluent, pharmaceutical manufacturing industries, animal husbandry, and other sources [2].
To address these issues, pharmaceutical wastewater typically undergoes a series of treatment processes. The primary treatment focuses on removing suspended solids and particulate matter, while the secondary treatment targets the reduction of biodegradable organic compounds. Despite the effectiveness of these stages, trace amounts of suspended solids and dissolved organic matter may still exist in the wastewater [3]. These residual contaminants can pose significant environmental risks if discharged without adequate treatment. As a result, the continued development and improvement of advanced wastewater treatment technologies are essential to ensure the safe and effective treatment of pharmaceutical and other industrial wastewater.
Pressure-driven membrane processes are the most widely used among the various methods used for advanced wastewater treatment. These processes operate on the principle of hydraulic pressure to effect separation. The four main types of pressure-driven membrane processes are microfiltration (MF), ultrafiltration (UF), nanofiltration (NF), and reverse osmosis (RO) [4]. Compared to other pressure-driven membrane processes, NF is well known for its efficiency in separating small particles with a pore size between 0.1 and 1 nm; NF membranes allow water and monovalent salts to pass through the membrane while retaining multivalent ions, low-molecular-weight molecules, sugars, proteins, and other organic compounds. This technology has become a promising solution for removing pharmaceuticals from contaminated wastewater, combining high selectivity, energy efficiency, and cost-effectiveness. The NF membrane is influenced by several factors, including the chemical composition of the feed solution (water characteristics, pH, ionic strength, and solute concentration) and separation conditions (transmembrane pressure, feed flow rate, and temperature) [5]. Additionally, the membrane’s properties, including its hydrophilicity or hydrophobicity, surface charge, morphology, pore size, and roughness, play significant roles in the membrane fouling [5]. These parameters have been extensively studied in various research studies [6,7].
Pharmaceutical contaminants, including analgesics and stimulants, are among the most frequently detected pollutants in rivers across many countries [1]. Paracetamol (acetaminophen), a widely used analgesic, is one of the most common micropollutants in the environment due to its high water solubility, presence in more than 600 over-the-counter medicines [8], and low biodegradability [9]. Similarly, caffeine, a common stimulant and lifestyle pharmaceutical compound, is prevalent in aquatic environments due to its widespread consumption and subsequent discharge. Given their universality, environmental persistence, and potential ecological impact, paracetamol and caffeine were selected as model pollutants for this study to investigate their removal efficiency in an NF process.
In membrane science and technology, modelling has emerged as a valuable tool for predicting membrane separation processes by establishing a relationship between system variables and their responses. This capability not only aids in understanding complex interactions within membrane systems but also offers practical advantages. Using numerical mathematical methods, modelling helps save costs and time by reducing the need for extensive physical experimentation. Furthermore, it enhances process efficiency, enables predictive modelling, minimizes errors, and optimizes resource use. These benefits make it a critical tool for researchers and industries seeking to streamline chemical process development and operations [10].
Some modelling tools that can solve linear and nonlinear multivariate regression problems are Response Surface Methodology (RSM) and Artificial Neural Networks (ANNs).
In recent years, RSM based on the design of experiments (DoE) has been applied successfully in different areas of membrane technology [5,11,12,13,14,15,16]. RSM is a widely used statistical and mathematical tool for experimental design and optimization, particularly in complex systems involving multiple input parameters and searching optimum conditions of variables to predict targeted responses [17]. The input parameters that affect the process are called independent variables, while the responses are called dependent variables [18].
RSM provides a structured framework with three key components: experimental design, model fitting, and optimization [19]. The experimental design phase ensures accuracy by spanning a broad range of input variable values, using designs such as the Central Composite Design (CCD), the Box–Behnken design (BBD), the Central Composite Rotatable Design (CCRD) [18], or a custom design [20]. Subsequently, a mathematical model is developed to describe the relationship between inputs and the response, typically expressed as a polynomial equation. Regression methods, such as least squares, estimate the model’s coefficients. Finally, the optimization phase identifies the ideal input values that yield the desired response.
Similarly, RSM has proven to be a valuable tool for optimizing various membrane-based processes. For instance, Mohammad et al. [21] applied RSM based on BBD to determine the optimal conditions for fabricating polyethersulfone (PES) NF membranes by phase inversion. Four essential parameters, including PES polymer concentration, polyvinylpyrrolidone (PVP) concentration, evaporation time, and coagulation bath temperature, were the factors influencing the separation process, and the optimization objectives were water flux and rejection. The analysis of variance shows that all four independent parameters are statistically significant, and the final model is reasonably accurate. This research underscores the adaptability of RSM in optimizing operational parameters and improving process efficiency across various membrane technology applications.
On the other hand, an Artificial Neural Network (ANN) is a computational model inspired by the superior qualities of the human brain, designed to recognize patterns and solve complex problems. This modern computational approach utilizes nonlinear modelling and complex datasets [22]. The system is designed to operate as a black box model that describes the relationship between the input and the output system [23] without needing to understand the physical characteristics of the process [24]. A typical ANN consists of an input (independent) layer, one or more hidden layers with many hidden neurons, and an output (dependent) layer [25]. Weights and biases mathematically link these layers [26]. This relationship is established from a learning process in which a dataset is provided to the network; hence, it is a data-driven model.
Coskun et al. [27] developed an ANN model to analyse flux behaviour during cross-flow microfiltration of a phosphate and fly ash wastewater mixture under varying conditions. Two ANN architectures (NN1, NN2) were designed and evaluated using different algorithms and network types. The models demonstrated superior predictive accuracy, achieving high correlation values (R2 = 0.991 and 0.988), low error distributions, and precise normalized flux predictions. This highlights ANNs’ capability to reliably capture the effects of key process variables, such as time, pressure, concentration, and membrane type, on flux behaviour.
In parallel with traditional modelling strategies like ANNs and RSM, recent studies have explored the integration of bio-inspired metaheuristic algorithms, such as Particle Swarm Optimization and Grey Wolf Optimization, into classical membrane transport models like the Spiegler–Kedem equation [28]. Although not within the scope of this study, these approaches offer promising avenues for enhancing prediction accuracy and process robustness in future membrane separation research.
Recent advances in membrane technology have also focused on enhancing treatment performance by integrating structural innovation with functional mechanisms. For example, hierarchically structured hybrid membranes that couple adsorption with membrane ultrafiltration have been proposed for continuous wastewater treatment, offering improved pollutant retention and operational stability [29]. In another study, a multiscale 3D wet-electrospun “branch leaf” architecture of graphene oxide–polycaprolactone fibres demonstrated excellent oil–water separation performance through optimized structural design [30]. While these works emphasize material and structural advances, our approach complements this trend by focusing on process-level optimization and predictive modelling for pharmaceutical rejection in nanofiltration systems.
This study aims to evaluate and compare the performance of two statistical mathematical models, RSM and an ANN, to predict and optimize pharmaceutical rejection using polymeric composite membranes (AFC 40 and AFC 80) in NF processes. Experimental data were used to model and predict the rejection behaviour of two pharmaceutical compounds: caffeine and paracetamol. The analysis considered key input variables such as feed concentration (5, 10, and 20 mg/L), transmembrane pressure (10, 15, 20, 25, 30 bar), and feed flow rate (5, 10, and 15 L/min) to forecast pharmaceutical rejection efficiencies. Caffeine rejection was assessed using AFC 40 membranes, while paracetamol rejection was evaluated using AFC 80 membranes. Notably, this work presents the first direct comparison of RSM and an ANN in the context of caffeine and paracetamol removal through NF membranes, contributing valuable insights into model accuracy and process optimization in pharmaceutical wastewater treatment.

2. Materials and Methods

2.1. Feed Solution Preparation

The pharmaceuticals selected for this study have molecular weights of 194.2 and 151.2 g/mol (caffeine and paracetamol), respectively. To carry out this experiment, each of these pharmaceuticals was diluted in pure water at 300 mg/L, and these stock solutions were stored in a refrigerator at approximately 5 °C.
The pharmaceutical tablets were ground using a mortar and pestle to prepare the feed solution, followed by ultrasonication of the solution for 30 min. This solution was then filtered using a 0.7 µm glass filter in a dead-end filtration unit at a 0.5 bar vacuum and diluted as required. All solutions were prepared using distilled water with a conductivity of approximately 15 μS/cm.

2.2. Experimental Set-Up and Procedures

The membranes were received as tubular polymeric NF membranes (AFC 40 and AFC 80). They were purchased from PCI Membrane Systems, Kostrzyn, Poland. They were gently washed with demineralized water to remove preservatives and stored in demineralized water at 25 °C. The membranes were first wetted in demineralized water for at least 24 h. Before the NF experiments, the membranes were compacted under 31 bar transmembrane pressure with demineralized water as the feed for 2 h until there was no variation in permeate flux.
The NF unit consisted of a 10 L feed tank equipped with an NF membrane module (FT 18, Armfield, GB, Ringwood, UK). The membrane module contained two tubular AFC 40 membranes for separating solutes from wastewater. Furthermore, caffeine was removed from the pharmaceutical-contaminated water using two tubular AFC 80 membranes. The pharmaceutical separation was carried out individually, and the conditions were optimized.
A pH meter (inoLab pH 7110-pH/mV meter + SenTix 21 electrode, Xylem Analytics GmbH, Weilheim, Germany) was incorporated into the feed tank, and a pH ranging from 6.3 to 6.6 was maintained. The feed solution temperature was maintained at 25 ± 0.5 °C using a heat exchanger (TAEevo, Armfield, GB, Ringwood, UK). The NF experiments operated in a total recirculation mode in which concentrate and permeate streams were returned to the feed tank to keep the feed concentration constant. Finally, a weighing machine (Balance KERN KB, Balingen, Germany) with an accuracy of ±0.01 g gravimetrically measured the permeate flux. A schematic diagram of the NF unit is shown in Figure 1.

2.3. Pharmaceutical Rejection Tests

Pharmaceutical rejections were evaluated using 5, 10, and 20 mg/L of caffeine and paracetamol solutions. The transmembrane pressure for the AFC 40 and AFC 80 membranes was varied in the range of 10–30 bar. The feed solution pH ranged from 6.3 to 6.6, while the feed solution temperature was kept constant at 25.0 ± 0.5 °C throughout the experiments. Feed and permeate samples were collected after the system was equilibrated for 1 h under each condition and analysed as described in Equations (1) and (2). The solute rejection performance ( R o b s , % ) was calculated based on the concentration of each PhAC in the permeate ( C p , mg/L) and feed ( C f , mg/L) streams, as shown in Equation (1).
R o b s = 1 C p C f × 100 %
The pharmaceutical concentration in the feed solution ( C f ) and permeate ( C p ) were calculated by using high-performance liquid chromatography (HPLC, Agilent 1260 infinity II Prime LC, Santa Clara, CA, USA). A sample volume of 1 μL was injected into a C18 column (5 μm, 250 mm × 4 mm) and a diode array detector (DAD). A mobile phase gradient of a solvent comprising 45% acetonitrile and 55% water at a flow rate of 0.5 mL min–1 was used.
The permeate flux ( J p ) was determined by measuring the volume of permeate ( Δ V , L) collected at regular time intervals ( Δ t , h), as follows:
J p = Δ V A × Δ t
where A is the membrane cell’s effective area (m2).

2.4. Experimental Design

2.4.1. Modelling of NF Membranes Using RSM

A custom design approach involving RSM was employed to evaluate and optimize the operational parameters influencing pharmaceutical rejection by NF membranes. The modelling and experimental design were performed using Design-Expert® software (Version 22.0, Stat-Ease Inc., Minneapolis, MN, USA). This approach allowed flexibility in defining specific experimental runs tailored to the research objectives, rather than relying on standard designs such as Box–Behnken or Central Composite Design.
Three independent variables were considered: pressure (X1), feed concentration (X2), and feed flow rate (X3). Following previous methodologies [31,32], the experimental rejection efficiency served as the response input for the polynomial model as described in Equation (3). Their ranges and levels are mentioned in Table 1.
Y = β o + j = 1 k β j x j + i < j β i j x i x j + j = 1 k β j j x j 2 + ε
where Y is the predicted response variable; β o ,   β j ,   β i j , and β j j are constant coefficients; k is the number of factors studied and optimized in the experiment; x i and x j are the coded independent variables or factors; and ε is the random error. The average values of duplicated experimental runs were calculated to ensure precision.
The custom RSM design generated a quadratic polynomial model incorporating linear, interaction, and squared terms. The experimental data were fitted to this model to derive a predictive equation capable of simulating system behaviour under varying conditions. The adequacy of the model was assessed using analysis of variance (ANOVA), the Coefficient of Determination (R2), and residual diagnostics. Finally, the optimized operating conditions for maximum pharmaceutical rejection were determined by solving the polynomial equation and analysing response surface plots.
The model calculates the coefficients for each main effect, interaction effect, and quadratic effect. Optimal conditions were determined by solving the quadratic equation and analysing the resulting response surface and contour plots. The key steps for implementing RSM are summarized in Figure 2.

2.4.2. Modelling of NF Membranes Using ANN

ANN modelling was employed to predict the rejection of pharmaceuticals using nanofiltration membranes. The analysis was conducted using the Neural Network Toolbox of MATLAB 7.0.1 (The MathWorks Inc., Natick, MA, USA). A multilayer perceptron (MLP) architecture was adopted for the modelling framework. Figure 3 shows the ANN architecture of the pharmaceutical rejection process.
The input variables for the ANN model were pressure, feed concentration, and feed flow rate, identical to those used in the RSM analysis. The output variable was the pharmaceutical rejection percentage. A supervised learning approach was used, applying the Levenberg–Marquardt backpropagation algorithm as the training method due to its speed and accuracy in nonlinear data fitting.
To determine the optimal architecture, various network structures were evaluated by varying the number of neurons in the hidden layer. The best-performing configurations were selected based on the lowest prediction error and highest correlation between predicted and experimental data. The tangent sigmoid transfer function was used in both the hidden and output layers to introduce nonlinearity into the model.
The dataset used for ANN modelling was randomly divided into three subsets to ensure a robust and unbiased evaluation of the model’s predictive performance: 60% for training, 20% for validation, and 20% for testing. The training set exposed the network to sufficient data to learn the underlying patterns and relationships. The validation dataset was applied during training to monitor generalization, guide hyperparameter tuning, and enable early stopping to prevent overfitting. The testing set was reserved for final evaluation to assess the model’s ability to predict unseen data, confirming its real-world reliability.

3. Results and Discussion

3.1. Development and Validation

The RSM experimental design results highlighting the effects of process parameters on AFC 40 and AFC 80 membranes are presented in Table 2. The significant variation in responses across different experimental runs indicates that the independent variables substantially affected the rejection efficiency. A custom design approach was employed to study the combined effects of pressure, feed concentration, and flow rate on the pharmaceutical rejection process.

3.1.1. ANOVA for Reduced Quadratic Model

Table 3 and Table 4 present the summary of the analyses of variance (ANOVAs), which were used to evaluate the significance of the quadratic model for caffeine and paracetamol, respectively. The quadratic model’s significance and independent terms were evaluated using Fisher’s F-test. This was calculated as the ratio of the model’s mean square to the residual mean square [33]. Each model term was examined for significance in terms of F-values and p-values. A high F-value is desired, and a p-value less than 0.05 shows the significance of the model; hence, it has an interaction effect on the response.
Table 3 displays the ANOVA regression model for caffeine rejection using the AFC 40 membrane. The model was significant, with an F-value of 282.59, and a p-value less than 0.0001 was obtained. The p-values for the process variables were less than 0.05, indicating that each model term had an interactive influence on the caffeine rejection.
Table 4 shows the ANOVA results for the reduced quadratic model of paracetamol rejection using the AFC 80 membrane. The model terms demonstrated lower p-values (p < 0.05) and higher F-values, indicating strong predictive capability for paracetamol rejection. Generally, very low p-values illustrate the significance of linear, quadratic, and interaction terms, establishing model validity for response prediction [34].
Both reduced quadratic models shown in Table 3 and Table 4 demonstrated excellent predictive capability, as confirmed by near-unity R2 values significantly exceeding the 0.90 threshold for robust fit in membrane separation studies [35]. For caffeine rejection, the model achieved an R2 of 0.9867 (adjusted R2 = 0.9832), explaining >98% of response variability. Similarly, paracetamol rejection was characterized by R2 = 0.9815 (adjusted R2 = 0.9723). The close agreement (<0.02 difference) between R2 and adjusted R2 for both models indicate minimal overfitting despite model complexity. These metrics collectively confirm exceptional alignment between experimental data and model predictions.

3.1.2. Regression Equation

A quadratic polynomial was established to identify the relationship between the Yi response and the various factors. The pharmaceutical rejection regression equations generated regarding the actual factors for AFC 40 and AFC 80 are Equations (4) and (5), respectively. Insignificant factors with p-values greater than 0.05 were removed from the initial model, and the reduced quadratic regression models in terms of actual factors were developed as follows:
YRSM (AFC 40) = +65.72100 − 0.636464X1 + 3.70135X3 + 0.095043X1X3 − 0.015017X12 − 0.191160X32
YRSM (AFC 80) = +81.35275 + 0.845238X1 + 0.231950X2 − 0.006345X1X2 − 0.012509X12
where X1 is the pressure, X2 is the feed concentration, and X3 is the feed flow rate. As shown in Equation (4), the feed concentration was eliminated from the regression model, whereas pressure and feed flow rate were introduced as significant input parameters. For Equation (5), the feed flow rate has no significant effect on paracetamol, while pressure and feed concentration were introduced as significant input parameters.

3.1.3. Effects of Transmembrane Pressure, Feed Concentration, and Flow Rate on Caffeine and Paracetamol Rejection Using RSM Plots

Three-dimensional response surface plots and contour line maps of caffeine and paracetamol rejection rate, shown in Figure 4 and Figure 5, were obtained from the Design-Expert software to visualize the predicted models in RSM. The three-dimensional response surface plot in Figure 4a shows the relationship between two independent variables (transmembrane pressure and flow rate) and the response (caffeine rejection percentage). In contrast, the third variable (concentration) was constant at 10 mg/L. The corresponding 2D contour plot (bottom plane) displays lines of constant response, enabling identification of optimal operating zones. AFC 40 significantly affects pressure and flow rate in caffeine rejection. However, the effect of concentration was less critical. The 3D response surface in Figure 4a reveals a nonlinear interaction between pressure and flow rate in determining caffeine rejection by the AFC40 membrane. Below 10 L/min, increasing pressure from 10 to 30 bar resulted in a decline in caffeine rejection, possibly due to concentration polarization at the membrane surface, which can reduce effective rejection performance. In contrast, caffeine rejection increased steadily with pressure at higher flow rates, reaching up to 88.39%. This highlights the importance of optimizing both operating parameters simultaneously, as their interaction significantly influences separation efficiency.
The three-dimensional response surface and contour plot for paracetamol rejection versus concentration and transmembrane pressure are depicted in Figure 5a,b at a constant flow rate of 10 L/min. The plots were utilized to explain the process parameters’ combined effects on the percentage of paracetamol rejected by the AFC 80 membrane. The 3D response surface analysis demonstrated that paracetamol rejection is maximized (96.28%) at 30 bar and 20 mg/L, with both pressure and concentration exhibiting positive effects. The observed increase in paracetamol rejection as the feed concentration increases contradicts conventional membrane fouling behaviour, where higher solute concentrations typically reduce rejection due to fouling or concentration polarization [36,37,38].
This anomaly aligns with findings by Jorge Garcia-Ivars et al. [39], who observed similar concentration-enhanced rejection of paracetamol across three NF membranes. They proposed that at higher concentrations, paracetamol forms dynamic, loosely bound aggregates near the membrane surface. This secondary layer may enhance steric selectivity by blocking smaller solutes while allowing solvent to permeate through the membrane.
While these observations are compelling, the present study did not include targeted experiments or simulation-based approaches like Computational Fluid Dynamics modelling or membrane surface characterization to validate this mechanism. Therefore, the exact cause of the improved rejection remains speculative. Possible factors could include surface aggregation effects, specific solute–membrane interactions, or transient pore blockage, which merit further investigation. We propose that future studies incorporate such techniques to confirm whether the observed trend is due to aggregation-induced selectivity or other physicochemical phenomena. This will help clarify whether this behaviour is a membrane-specific effect or a generalizable feature across different NF systems treating paracetamol-laden wastewater.

3.2. Predictive Modelling Using ANN

The ANN architecture comprised interconnected layers of neurons that function like the human neural system [40], providing a robust framework for optimizing membrane processes. This data-driven framework enabled robust optimization of membrane performance beyond traditional RSM. The ANN was trained with the Levenberg–Marquardt backpropagation algorithm, one of the multilayer perceptron (MLP) networks used for error minimization. The Neural Network Toolbox V4.0 of MATLAB mathematical software was used to develop the ANN model.
The ANN was successfully developed using the experimental dataset presented in Table 2. The input variables for the neural network were identical to the factors considered in the RSM approach, namely, pressure, feed concentration, and feed flow rate. Similarly, the pharmaceutical rejection percentage was considered as the response variable for ANN modelling.
For the prediction of caffeine rejection, the optimal ANN architecture consisted of three input nodes, ten hidden neurons, and one output node, employing a tangent sigmoid transfer function in both the hidden and output layers. The Levenberg–Marquardt training algorithm provided the best prediction performance. In the case of paracetamol rejection, the most effective ANN configuration was a 3-11-1 structure, corresponding to three input parameters, eleven neurons in the hidden layer, and one output node.

Training, Testing, and Validation of ANN Model

The experimental data in Table 2 were partitioned into training, validation, and testing subsets to prevent overtraining and overparameterization. Training is the manipulation of input weights. The ANN was trained by iteratively adjusting input weights, which were initially randomized, to minimize the error between the predicted and actual rejection values [41]. The input vectors included pressure, flow rate, and feed concentration, while the output vector represented rejection efficiency. Once the ANN has been trained and tested with the appropriate weights, it can be used to predict the output [22].
The trained ANN demonstrated robust predictive capability for both membranes, as depicted in Figure 6 and Figure 7. The regression coefficients (R-values) obtained for the AFC 40 membrane were 0.99977, 0.9988, 0.99329, and 0.99159 for the training, validation, testing, and overall data, respectively. In comparison, the R-values for the AFC 80 membrane were even higher, recorded at 1, 0.99949, 0.99909, and 0.99609, respectively. These results confirm the model’s robustness in simulating the rejection behaviour of pharmaceutical compounds under varying operational conditions. Notably, the high R-values for the validation and testing phases show that the model performs well even with new data. This addresses a key gap in membrane modelling, where most traditional empirical models often struggle to predict membrane performance accurately when conditions change.

3.3. Comparative Study of RSM and ANN Models

RSM and ANNs are powerful modelling tools that address linear and nonlinear multivariate regression problems in membrane filtration studies [42]. The experimental, predicted, and residual values for pharmaceutical rejection by the AFC 40 and AFC 80 membranes are summarized in Table 2. While both models demonstrated reasonable accuracy in predicting rejection efficiency, a closer examination of residuals showing the differences between the experimental and predicted values revealed that the ANN consistently outperformed RSM, exhibiting significantly smaller deviations.
Visual validation of model performance is provided in Figure 8, which compares experimental results with RSM and ANN predictions. The plots confirm a strong correlation for both models, though ANN’s predictions align more tightly with the experimental data.
However, additional statistical analyses were used to further compare the models’ predicted pharmaceutical rejection values with the experimental efficiency and rank the models, as shown in Table 5. To evaluate the predictive accuracy of the RSM and ANN models for caffeine (AFC 40) and paracetamol (AFC 80) rejection, several statistical error functions were applied, including the Coefficient of Determination (R2), Root Mean Square Error (RMSE), Marquardt’s Percentage Squared Error Deviation (MPSED), Hybrid fractional error function (HYBRID), and Average Absolute Deviation (AAD). These error functions are defined by Equations (6)–(10), respectively:
R 2 = 1 i = 1 n   Y i , p Y 1 , e 2 i = 1 n   Y i , p Y e , ave 2
RMSE = i = 1 n   Y i , e Y i , p 2 n
MPSED ,   % = i = 1 n Y i , e Y i , p Y i , e 2 n P × 100
HYBRID ,   % = 1 n P i = 1 n   Y i , e Y i , p 2 Y i , e × 100
AAD = 100 n i = 1 n   Y i , e Y i , p Y i , e
where n is the number of experimental runs; Yi,e is the experimental value of the ith experiment; Yi,p is a model prediction; and P is the number of model parameters.
The ANN model demonstrated superior predictive capability, particularly in Table 5, which indicates that the ANN model generally provides better predictive accuracy and reliability than the RSM model, particularly in simulating paracetamol rejection using the AFC 80 membrane. In most cases, the ANN model yielded higher R2 values and lower error metrics, indicating stronger agreement between predicted and experimental values. Although the RSM model achieved slightly lower RMSE and HYBRID values for the AFC 40 membrane, the overall performance of the ANN, evidenced by its lower errors across a greater number of metrics and consistently higher R2 values, confirms its superior predictive capability. These findings are consistent with previous studies by Onu et al. [33], Addar et al. [26], and Ohale et al. [43], who also reported that ANNs outperformed RSM in modelling complex nonlinear processes.
While the controlled environment enabled precise parameter evaluation, real pharmaceutical wastewater introduces additional complexities due to the presence of dissolved salts, organic matter, and emerging contaminants. These additional constituents could alter membrane rejection behaviour through competitive solute interactions, fouling, or changes in electrostatic forces. Therefore, future studies are encouraged to validate the predictive power of RSM and ANN models using actual wastewater matrices to assess their robustness under more realistic treatment conditions.

4. Conclusions

A comparative study was conducted using RSM and ANN models to predict caffeine and paracetamol rejection by AFC 40 and AFC 80 NF membranes. The models incorporated three key operational variables: feed pressure, concentration, and flow rate.
Optimization using RSM enabled the identification of optimum operating conditions for both membranes. For the AFC 40 membrane, pressure and flow rate significantly influenced caffeine rejection, while feed concentration had a negligible impact. In contrast, for the AFC 80 membrane, pressure and feed concentration were the dominant variables influencing paracetamol rejection, with flow rate playing a minimal role. Both the RSM and ANN models demonstrated strong predictive capabilities in modelling pharmaceutical rejection.
The performance of both models was validated using statistical metrics, including R2, RMSE, MPSED, HYBRID, and AAD. For AFC 40, the R2 values were 0.9867 and 0.9832 for RSM and the ANN, respectively, while for AFC 80, they were 0.9769 (RSM) and 0.9922 (ANN). Although RSM yielded slightly lower RMSE and HYBRID values for AFC 40, the ANN model consistently produced lower error metrics across more parameters and achieved higher R2 values for both membranes.
The comparative analysis confirmed that the ANN model offered superior predictive accuracy and generalizability compared to the RSM model, particularly in capturing complex nonlinear relationships in membrane-based pharmaceutical rejection processes.
For further research, we recommend k-fold cross-validation and testing the predictive stability of the ANN model beyond the experimental dataset, especially by using independent datasets to assess its generalization across various industrial conditions.

Author Contributions

Conceptualization, N.E., C.E.O., and P.M.; methodology, N.E., J.C., and C.E.O.; software, N.E. and C.E.O.; validation, N.E., C.E.O., and O.A.; formal analysis, N.E. and C.E.O.; investigation, N.E. and P.M.; resources, N.E., J.C., C.E.O., and P.M.; data curation, N.E., J.C., and C.E.O.; writing—original draft preparation, N.E.; writing—review and editing, C.E.O., J.C., and P.M.; visualization, N.E. and C.E.O.; supervision, P.M. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Ministry of Education, Youth and Sports of the Czech Republic, Project “Specific university research”, and the University of Pardubice, Project SGS_2025_002.

Institutional Review Board Statement

Not applicable.

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

The authors are grateful for the institutional and financial support received during this study. Special thanks are extended to the University of Pardubice for providing the facilities and technical assistance required to carry out the experimental work.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Wilkinson, J.L.; Boxall, A.B.A.; Kolpin, D.W.; Leung, K.M.Y.; Lai, R.W.S.; Galbán-Malagón, C.; Adell, A.D.; Mondon, J.; Metian, M.; Marchant, R.A.; et al. Pharmaceutical pollution of the world’s rivers. Proc. Natl. Acad. Sci. USA 2022, 119, e2113947119. [Google Scholar] [CrossRef] [PubMed]
  2. Majumder, A.; Gupta, B.; Gupta, A.K. Pharmaceutically active compounds in aqueous environment: A status, toxicity and insights of remediation. Environ. Res. 2019, 176, 108542. [Google Scholar] [CrossRef] [PubMed]
  3. Guo, Y.; Qi, P.S.; Liu, Y.Z. A Review on Advanced Treatment of Pharmaceutical Wastewater. IOP Conf. Ser. Earth Environ. Sci. 2017, 63, 12025. [Google Scholar] [CrossRef]
  4. Obotey Ezugbe, E.; Rathilal, S. Membrane Technologies in Wastewater Treatment: A Review. Membranes 2020, 10, 89. [Google Scholar] [CrossRef] [PubMed]
  5. Khayet, M.; Seman, M.N.A.; Hilal, N. Response surface modeling and optimization of composite nanofiltration modified membranes. J. Membr. Sci. 2010, 349, 113–122. [Google Scholar] [CrossRef]
  6. Hilal, N.; Al-Zoubi, H.; Mohammad, A.W.; Darwish, N.A. Nanofiltration of highly concentrated salt solutions up to seawater salinity. Desalination 2005, 184, 315–326. [Google Scholar] [CrossRef]
  7. Anike, O.; Cuhorka, J.; Ezeogu, N.; Mikulášek, P. Separation of Antibiotics Using Two Commercial Nanofiltration Membranes—Experimental Study and Modelling. Membranes 2024, 14, 248. [Google Scholar] [CrossRef] [PubMed]
  8. U.S. Food and Drug Administration, FDA. Don’t Overuse Acetaminophen. Available online: https://www.fda.gov/consumers/consumer-updates/dont-overuse-acetaminophen (accessed on 24 October 2024).
  9. Ivanova, D.; Tzvetkov, G.; Kaneva, N. Degradation of Paracetamol in Distilled and Drinking Water via Ag/ZnO Photocatalysis under UV and Natural Sunlight. Water 2023, 15, 3549. [Google Scholar] [CrossRef]
  10. Emami, M.R.S.; Amiri, M.K.; Zaferani, S.P.G. Removal efficiency optimization of Pb2+ in a nanofiltration process by MLP-ANN and RSM. Korean J. Chem. Eng. 2021, 38, 316–325. [Google Scholar] [CrossRef]
  11. Alghooneh, A.; Razavi, S.M.A.; Mousavi, S.M. Nanofiltration treatment of tomato paste processing wastewater: Process modeling and optimization using response surface methodology. Desalination Water Treat. 2016, 57, 9609–9621. [Google Scholar] [CrossRef]
  12. Mojarrad, M.; Noroozi, A.; Zeinivand, A.; Kazemzadeh, P. Response surface methodology for optimization of simultaneous Cr (VI) and as (V) removal from contaminated water by nanofiltration process. Environ. Prog. Sustain. Energy 2018, 37, 434–443. [Google Scholar] [CrossRef]
  13. Ghaemi, N.; Madaeni, S.S.; Daraei, P.; Rajabi, H.; Shojaeimehr, T.; Rahimpour, F.; Shirvani, B. PES mixed matrix nanofiltration membrane embedded with polymer wrapped MWCNT: Fabrication and performance optimization in dye removal by RSM. J. Hazard. Mater. 2015, 298, 111–121. [Google Scholar] [CrossRef] [PubMed]
  14. Srivastava, A.; K, A.; Nair, A.; Ram, S.; Agarwal, S.; Ali, J.; Singh, R.; Garg, M.C. Response surface methodology and artificial neural network modelling for the performance evaluation of pilot-scale hybrid nanofiltration (NF) & reverse osmosis (RO) membrane system for the treatment of brackish ground water. J. Environ. Manag. 2021, 278, 111497. [Google Scholar] [CrossRef] [PubMed]
  15. Abadikhah, H.; Zokaee Ashtiani, F.; Fouladitajar, A. Nanofiltration of oily wastewater containing salt; experimental studies and optimization using response surface methodology. Desalination Water Treat. 2015, 56, 2783–2796. [Google Scholar] [CrossRef]
  16. Gasemloo, S.; Khosravi, M.; Sohrabi, M.R.; Dastmalchi, S.; Gharbani, P. Response surface methodology (RSM) modeling to improve removal of Cr (VI) ions from tannery wastewater using sulfated carboxymethyl cellulose nanofilter. J. Clean. Prod. 2019, 208, 736–742. [Google Scholar] [CrossRef]
  17. Rajkumar, K.; Muthukumar, M. Response surface optimization of electro-oxidation process for the treatment of C.I. Reactive Yellow 186 dye: Reaction pathways. Appl. Water Sci. 2017, 7, 637–652. [Google Scholar] [CrossRef]
  18. Koç, B.; Kaymak-Ertekİn, F. Response surface methodology and food processing applications. GIDA-J. Food 2010, 35, 63–70. [Google Scholar]
  19. Aydar, A.Y. Utilization of response surface methodology in optimization of extraction of plant materials. In Statistical Approaches with Emphasis on Design of Experiments Applied to Chemical Processes; InTech: Rijeka, Croatia, 2018; Volume 7, pp. 157–169. [Google Scholar]
  20. Jomy, J.; Prabhu, D. Custom design approach of design of experiment as a tool for the optimisation of parameters for corrosion inhibition study of (+)-arabinogalactan on AISI 5140 steel. Corros. Eng. Sci. Technol. 2024, 60, 62–76. [Google Scholar] [CrossRef]
  21. Peydayesh, M.; Bagheri, M.; Mohammadi, T.; Bakhtiari, O. Fabrication optimization of polyethersulfone (PES)/polyvinylpyrrolidone (PVP) nanofiltration membranes using Box–Behnken response surface method. RSC Adv. 2017, 7, 24995–25008. [Google Scholar] [CrossRef]
  22. Okonkwo, C.P.; Ajiwe, V.I.E.; Obiadi, M.C.; Okwu, M.O.; Ayogu, J.I. Production of biodiesel from the novel non-edible seed of Chrysobalanus icaco using natural heterogeneous catalyst: Modeling and prediction using Artificial Neural Network. J. Clean. Prod. 2023, 385, 135631. [Google Scholar] [CrossRef]
  23. Okwu, M.O.; Tartibu, L.K.; Samuel, O.D.; Omoregbee, H.O.; Ivbanikaro, A.E. Predictive Ability of Response Surface Methodology (RSM) and Artificial Neural Network (ANN) to Approximate Biogas Yield in a Modular Biodigester; Springer International Publishing: Cham, Switzerland, 2021; pp. 202–215. [Google Scholar]
  24. Al-Abri, M.; Hilal, N. Artificial neural network simulation of combined humic substance coagulation and membrane filtration. Chem. Eng. J. 2008, 141, 27–34. [Google Scholar] [CrossRef]
  25. Ibrahim, M.; Haider, A.; Lim, J.W.; Mainali, B.; Aslam, M.; Kumar, M.; Shahid, M.K. Artificial neural network modeling for the prediction, estimation, and treatment of diverse wastewaters: A comprehensive review and future perspective. Chemosphere 2024, 362, 142860. [Google Scholar] [CrossRef] [PubMed]
  26. Addar, F.Z.; Farah, M.; Belfaquir, M.; Tahaikt, M.; Taky, M.; Elmidaoui, A. Comparison of response surface method and artificial neural network in predicting fluoride removal by nanofiltration. Desalination Water Treat. 2023, 297, 215–226. [Google Scholar]
  27. Aydiner, C.; Demir, I.; Yildiz, E. Modeling of flux decline in crossflow microfiltration using neural networks: The case of phosphate removal. J. Membr. Sci. 2005, 248, 53–62. [Google Scholar] [CrossRef]
  28. Abbi, B.; Touazit, A.; Gliti, O.; Igouzal, M.; Pontie, M.; Lemenand, T.; Charki, A. Modelling Salt Rejection in Nanofiltration and Reverse Osmosis Membranes Using the Spiegler-Kedem Model Enhanced by a Bio-Inspired Metaheuristic Algorithms: Particle Swarm Optimization and Grey Wolf Optimization. J. Sustain. Dev. Energy Water Environ. Syst.—JSDEWES 2025, 13, 1130565. [Google Scholar] [CrossRef]
  29. Scaffaro, R.; Gammino, M.; Maio, A. Hierarchically Structured Hybrid Membranes for Continuous Wastewater Treatment via the Integration of Adsorption and Membrane Ultrafiltration Mechanisms. Polymers 2023, 15, 156. [Google Scholar] [CrossRef] [PubMed]
  30. Scaffaro, R.; Gammino, M. 3D wet-electrospun “branch leaf” graphene oxide polycaprolactone fibers structure for enhancing oil-water separation treatment performance in a multi-scale design. Sustain. Mater. Technol. 2025, 43, e01200. [Google Scholar] [CrossRef]
  31. Samuel, O.D.; Okwu, M.O. Comparison of Response Surface Methodology (RSM) and Artificial Neural Network (ANN) in modelling of waste coconut oil ethyl esters production. Energy Sources Part A Recovery Util. Environ. Eff. 2019, 41, 1049–1061. [Google Scholar] [CrossRef]
  32. Silva, G.F.; Camargo, F.L.; Ferreira, A.L.O. Application of response surface methodology for optimization of biodiesel production by transesterification of soybean oil with ethanol. Fuel Process. Technol. 2011, 92, 407–413. [Google Scholar] [CrossRef]
  33. Onu, C.E.; Nwabanne, J.T.; Ohale, P.E.; Asadu, C.O. Comparative analysis of RSM, ANN and ANFIS and the mechanistic modeling in eriochrome black-T dye adsorption using modified clay. S. Afr. J. Chem. Eng. 2021, 36, 24–42. [Google Scholar] [CrossRef]
  34. Addar, F.; Qaid, S.; Zeggar, H.; El Hajji, H.; Tahaikt, M.; Elmidaoui, A.; Taky, M. Ultrafiltration of Moroccan Valencia orange juice: Juice quality, optimization by custom designs and membranefouling. Sustain. Agri Food Environ. Res.-Discontin. 2023, 11. [Google Scholar] [CrossRef]
  35. Zheng, Y.; Wang, A. Removal of heavy metals using polyvinyl alcohol semi-IPN poly (acrylic acid)/tourmaline composite optimized with response surface methodology. Chem. Eng. J. 2010, 162, 186–193. [Google Scholar] [CrossRef]
  36. Gherasim, C.-V.; Mikulášek, P. Influence of operating variables on the removal of heavy metal ions from aqueous solutions by nanofiltration. Desalination 2014, 343, 67–74. [Google Scholar] [CrossRef]
  37. Fang, J.; Deng, B. Arsenic Rejection by Nanofiltration Membranes: Effect of Operating Parameters and Model Analysis. Environ. Eng. Sci. 2014, 31, 496–506. [Google Scholar] [CrossRef]
  38. Ghorbani, A.; Bayati, B.; Drioli, E.; Macedonio, F.; Kikhavani, T.; Frappa, M. Modeling of Nanofiltration Process Using DSPM-DE Model for Purification of Amine Solution. Membranes 2021, 11, 230. [Google Scholar] [CrossRef] [PubMed]
  39. Garcia-Ivars, J.; Martella, L.; Massella, M.; Carbonell-Alcaina, C.; Alcaina-Miranda, M.-I.; Iborra-Clar, M.-I. Nanofiltration as tertiary treatment method for removing trace pharmaceutically active compounds in wastewater from wastewater treatment plants. Water Res. 2017, 125, 360–373. [Google Scholar] [CrossRef] [PubMed]
  40. Onu, C.E.; Ohale, P.E.; Ekwueme, B.N.; Obiora-Okafo, I.A.; Okey-Onyesolu, C.F.; Onu, C.P.; Ezema, C.A.; Onu, O.O. Modeling, optimization, and adsorptive studies of bromocresol green dye removal using acid functionalized corn cob. Clean. Chem. Eng. 2022, 4, 100067. [Google Scholar] [CrossRef]
  41. Arulsudar, N.; Subramanian, N.; Murthy, R. Comparison of artificial neural network and multiple linear regression in the optimization of formulation parameters of leuprolide acetate loaded liposomes. J. Pharm. Pharm. Sci 2005, 8, 243–258. [Google Scholar] [PubMed]
  42. Fetimi, A.; Dâas, A.; Benguerba, Y.; Merouani, S.; Hamachi, M.; Kebiche-Senhadji, O.; Hamdaoui, O. Optimization and prediction of safranin-O cationic dye removal from aqueous solution by emulsion liquid membrane (ELM) using artificial neural network-particle swarm optimization (ANN-PSO) hybrid model and response surface methodology (RSM). J. Environ. Chem. Eng. 2021, 9, 105837. [Google Scholar] [CrossRef]
  43. Ohale, P.E.; Onu, C.E.; Nwabanne, J.T.; Aniagor, C.O.; Okey-Onyesolu, C.F.; Ohale, N.J. A comparative optimization and modeling of ammonia–nitrogen adsorption from abattoir wastewater using a novel iron-functionalized crab shell. Appl. Water Sci. 2022, 12, 193. [Google Scholar] [CrossRef]
Figure 1. Schematic diagram of experimental NF system.
Figure 1. Schematic diagram of experimental NF system.
Membranes 15 00222 g001
Figure 2. Steps for Response Surface Methodology.
Figure 2. Steps for Response Surface Methodology.
Membranes 15 00222 g002
Figure 3. ANN architecture of pharmaceutical rejection process.
Figure 3. ANN architecture of pharmaceutical rejection process.
Membranes 15 00222 g003
Figure 4. The 3D response surface (a) and 2D contour plot (b) for the interaction effect of flow rate and transmembrane pressure on the response for the AFC 40 membrane.
Figure 4. The 3D response surface (a) and 2D contour plot (b) for the interaction effect of flow rate and transmembrane pressure on the response for the AFC 40 membrane.
Membranes 15 00222 g004
Figure 5. The 3D response surface (a) and 2D contour plot (b) for the interaction effect of concentration and transmembrane pressure on the response for the AFC 80 membrane.
Figure 5. The 3D response surface (a) and 2D contour plot (b) for the interaction effect of concentration and transmembrane pressure on the response for the AFC 80 membrane.
Membranes 15 00222 g005
Figure 6. ANN regression plot for (A) training, (B) validation, (C) testing, (D) overall datasets of AFC 40.
Figure 6. ANN regression plot for (A) training, (B) validation, (C) testing, (D) overall datasets of AFC 40.
Membranes 15 00222 g006
Figure 7. ANN regression plot for (A) training, (B) validation, (C) testing, (D) overall datasets of AFC 80.
Figure 7. ANN regression plot for (A) training, (B) validation, (C) testing, (D) overall datasets of AFC 80.
Membranes 15 00222 g007
Figure 8. Comparative plots of experimental data with (A) RSM and ANN for caffeine rejection, (B) RSM and ANN for paracetamol rejection.
Figure 8. Comparative plots of experimental data with (A) RSM and ANN for caffeine rejection, (B) RSM and ANN for paracetamol rejection.
Membranes 15 00222 g008
Table 1. Factors and levels of custom experimental design for membrane separation.
Table 1. Factors and levels of custom experimental design for membrane separation.
Factor or Independent VariableLevel 1Level 2Level 3Level 4Level 5
X1 (pressure, bar)1015202530
X2 (feed concentration, mg/L)51020--
X3 (feed flow rate, L/min)51015--
Table 2. Experimental and predicted responses of operating parameters.
Table 2. Experimental and predicted responses of operating parameters.
RunIndependent VariablesCaffeine Rejection
(AFC 40)
Paracetamol Rejection
(AFC 80)
Model Residuals
(AFC 40)(AFC 80)
X1
[bar]
X2
[mg/L]
X3
[L/min]
YExp.
[%]
YRSM
[%]
YANN
[%]
YExp.
[%]
YRSM
[%]
YANN
[%]
RSM
[−]
ANN
[−]
RSM
[−]
ANN
[−]
110201584.7184.6284.8391.9191.9291.910.0897−0.1195−0.01430.0017
215201586.6586.6986.2694.0193.9594.01−0.03900.39190.0576−0.0018
320201587.7788.0187.7395.3595.3695.01−0.23690.0412−0.00510.3413
425201588.1688.5788.2196.0496.1396.04−0.4139−0.0512−0.0923−0.0025
530201588.2988.3988.2996.4896.2896.48−0.10000.00310.1958−0.0005
610101585.4284.6285.5789.5490.2489.540.7997−0.1503−0.6993−0.004
715101587.1986.6987.1593.0092.5892.480.50100.03580.41540.5196
820101588.0688.0187.2894.7394.3094.570.05310.77860.42540.1625
925101588.2388.5787.5495.5395.4095.58−0.34390.69240.1309−0.0504
1030101588.4588.3988.8096.5195.8796.030.0600−0.35280.64180.4831
111051585.1184.6285.3489.8089.4089.650.4897−0.22610.40320.1533
121551586.8386.6986.8591.7791.9091.770.1410−0.0179−0.13080.0007
132051587.7788.0187.9893.5593.7893.11−0.2369−0.2084−0.22930.4361
142551588.4088.5788.5994.6595.0394.68−0.1739−0.185−0.3825−0.0326
153051587.8088.3987.9195.3995.6695.39−0.5900−0.111−0.27020.0018
1610201083.1585.2683.2591.9391.9291.94−2.11−0.10320.0057−0.0122
1715201083.8684.9583.9294.2693.9594.26−1.09−0.06420.3076−0.0047
1820201083.6883.8983.6395.4895.3695.49−0.21090.05020.1249−0.0056
1925201083.0982.0883.0596.0796.1396.081.010.0375−0.0623−0.0057
2030201081.9279.5281.5196.3996.2896.392.400.41220.10580.0003
211020576.7676.3376.8291.8191.9291.830.4255−0.0613−0.1143−0.0205
221520574.8373.6575.0594.1193.9594.111.18−0.22140.1576−0.0002
232020570.5870.2270.7595.1395.3695.130.3631−0.1731−0.2251−0.0012
242520565.6266.0367.8195.6196.1395.60−0.4117−2.1909−0.52230.0113
253020559.5461.1065.9196.0696.2895.69−1.56−6.3702−0.22420.3688
Table 3. ANOVA regression model (reduced quadratic) for caffeine rejection (AFC 40).
Table 3. ANOVA regression model (reduced quadratic) for caffeine rejection (AFC 40).
SourceSum of SquaresdfMean SquareF-Valuep-Value
Model1389.465277.89282.59<0.0001significant
A-Pressure [X1]82.21182.2183.60<0.0001
C-Flow rate [X3]1186.8211186.821206.90<0.0001
AC180.661180.66183.72<0.0001
A29.8719.8710.030.0051
C285.65185.6587.10<0.0001
Residual18.68190.9834 <0.0001
Cor Total1408.1424
R20.9867
Adjusted R20.9832
Predicted R20.9645
Adequate Precision58.5621
Table 4. ANOVA regression model (reduced quadratic) for paracetamol rejection (AFC 80).
Table 4. ANOVA regression model (reduced quadratic) for paracetamol rejection (AFC 80).
SourceSum of SquaresdfMean SquareF-Valuep-Value
Model97.84424.46211.73<0.0001significant
A-Pressure [X1]76.25176.25660.04<0.0001
B-Concentration [X2]11.04111.0495.52<0.0001
AB2.0112.0117.420.0005
A26.8516.8559.25<0.0001
Residual2.31200.1155
Cor Total100.1524
R20.9769
Adjusted R20.9723
Predicted R20.9590
Adequate Precision45.3104
Table 5. Statistical comparison of RSM and ANN models.
Table 5. Statistical comparison of RSM and ANN models.
Error FunctionAFC 40 MembraneAFC 80 Membrane
RSMANNRSMANN
R20.98670.98320.97690.9922
RMSE0.86541.37000.30410.1999
MPSED (%)0.01250.05120.00110.0004
HYBRID (%)1.08933.52540.11240.0480
AAD (%)0.76100.77200.25340.1101
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

Ezeogu, N.; Mikulášek, P.; Onu, C.E.; Anike, O.; Cuhorka, J. Modelling Caffeine and Paracetamol Removal from Synthetic Wastewater Using Nanofiltration Membranes: A Comparative Study of Artificial Neural Networks and Response Surface Methodology. Membranes 2025, 15, 222. https://doi.org/10.3390/membranes15080222

AMA Style

Ezeogu N, Mikulášek P, Onu CE, Anike O, Cuhorka J. Modelling Caffeine and Paracetamol Removal from Synthetic Wastewater Using Nanofiltration Membranes: A Comparative Study of Artificial Neural Networks and Response Surface Methodology. Membranes. 2025; 15(8):222. https://doi.org/10.3390/membranes15080222

Chicago/Turabian Style

Ezeogu, Nkechi, Petr Mikulášek, Chijioke Elijah Onu, Obinna Anike, and Jiří Cuhorka. 2025. "Modelling Caffeine and Paracetamol Removal from Synthetic Wastewater Using Nanofiltration Membranes: A Comparative Study of Artificial Neural Networks and Response Surface Methodology" Membranes 15, no. 8: 222. https://doi.org/10.3390/membranes15080222

APA Style

Ezeogu, N., Mikulášek, P., Onu, C. E., Anike, O., & Cuhorka, J. (2025). Modelling Caffeine and Paracetamol Removal from Synthetic Wastewater Using Nanofiltration Membranes: A Comparative Study of Artificial Neural Networks and Response Surface Methodology. Membranes, 15(8), 222. https://doi.org/10.3390/membranes15080222

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

Article Metrics

Back to TopTop