The increasing demand for freshwater resources, coupled with the decline of natural water resources, has led to the rapid development of desalination technologies [1] [2]. Pressure-driven membrane processes, such as nanofiltration (NF) and reverse osmosis (RO), belong to the most advanced and effective techniques for separating salts and other compounds from water sources [3]. Membrane usage is expanding rapidly across various fields, with desalination of brackish and saline water being a prominent application [4] [5]. Classical reverse osmosis is widely recognised as a standard method for desalination [2]. Membrane technology can be a competitive separation technique due to its superior performance and cost efficiency compared to traditional filtration processes [6] [7].
Many software packages, such as ROSA, Winflow, and IMS, have been developed and implemented in designing RO systems [8]. These software packages calculate and give warnings about design errors, such as feed pressure or recovery ratio exceeding membrane limits. The ROSA software, in particular, was validated through an extensive case study [8], filling a gap in the literature by simplifying the parameter classification and offering a straightforward, verified approach to system design.
Most modelling works in membrane studies have utilised models based on the extended Nernst-Planck equation [9]. These models are developed based on a comprehensive understanding of the physical mechanisms underlying membrane processes [10]. They exhibit mathematical complexity and entail considerable computational resources, demanding a thorough comprehension of the filtration process and membrane characteristics [9]. Consequently, it appears necessary to explore alternative methods for predicting process performance, leveraging existing process data and extrapolating these to inaccessible data.
The Spiegler-Kedem model emerges as a viable option for modelling intricate and nonlinear membrane systems [11]. It has been used in many previous studies on modelling salt rejection in membranes to understand transport phenomena in these membranes [12] [13]. For instance, Pontié et al., 2008 [11] combined mass transfer modelling and physicochemical characterisation of NF and RO membranes with the aim of highlighting the relevance of that model. Spiegler and Kedem, 1966 [14] established the model's thermodynamic foundations, while Bowen and Mukhtar, 1996 [15] validated its effectiveness in characterising membrane selectivity. These studies showed that the Spiegler-Kedem model views membranes as a black box and characterises them using two parameters: salt permeability PS and reflection coefficient σ [11]. This model can provide reasonable predictions of salt rejection for a variety of membrane processes [13]; however, it often requires extensive experimental data and is limited by its complexity and computational demands [10].
Recent studies addressed these limitations and enhanced the precision of model fitting by exploring the use of bio-inspired metaheuristic algorithms as practical tools for solving complex optimisation problems in membrane modelling processes more efficiently [16] [17] [18]. Many experts have studied salt rejection using these algorithms [19] [20] [21], particularly those based on swarm intelligence, such as Particle Swarm Optimisation (PSO) and Grey Wolf Optimisation (GWO). For instance, Mahadeva et al., 2021 [17] used PSO and neural networks for reverse osmosis simulation, improving prediction accuracy, while Maftouh et al., 2023 [20] and Rabah et al., 2024 [21] explored solar desalination and sustainability frameworks. Rinawati et al., 2024 [22] focused on contaminant removal optimisation. PSO is inspired by the social behaviour of birds flocking or fish schooling [23], while GWO mimics the leadership hierarchy and hunting mechanism of grey wolves [23].
Early studies on water treatment using desalination technologies in Tan-Tan City (Morocco) have been carried out since 2001 [24]. Tan-Tan was selected as a case study due to its increasing reliance on desalination to meet freshwater demands in an arid environment. All these studies were based on field measurements and did not examine the evolution of salt rejection under various operational conditions. Tahri, 2001 [24] investigated freshwater supply prospects from non-conventional water sources for the region, including desalination, while Pontié et al., 2006 [25] focused on the application of nanofiltration for large-scale pilot plants, highlighting its potential for improving water quality. These studies did not explore the optimisation of membrane processes under varying conditions; however, they recommended the application of the theoretical model for optimising parameters in the membrane process [26] [27].
In a management context, decision-makers search for rapid estimation of salt rejection percentage as a function of permeate flux in given membranes [28]. The Spiegler-Kedem model, coupled with bio-inspired metaheuristic algorithms for optimisation, can constitute the appropriate tools to use because they are easy to apply and more adapted to management contexts. Also, it is methodologically correct to start with the most straightforward description of the phenomena under study and to evaluate the limits of this approximation before investigating more complex models [29] [30].
This study aims to model salt rejection in NF and RO membranes using an approach that integrates the Spiegler-Kedem model with the GWO and PSO algorithms (referred to as the SKM-PSO and SKM-GWO approaches). The study examines three different nanofiltration membranes (NF200, NE90, NF90) and one reverse osmosis membrane (BW30LE) under varying operational conditions, including applied pressure and recovery rate. The experimental tests were conducted using feed water from Tan-Tan City, Morocco, with the aim of evaluating membrane performance under actual conditions. The GWO and PSO algorithms were used to optimise model parameters, specifically reflection coefficient σ and salt permeability PS, to fit experimental data.
The utilisation of the Spiegler-Kedem model provides a robust theoretical framework for simulating salt rejection performance. This model allows delving into the complex interplay of membrane characteristics and operational parameters, offering valuable insights into the intricacies of salt rejection processes [5]. The optimisation process of the PSO and GWO algorithms was exploited to improve the accuracy and reliability of the modelling. These algorithms efficiently tune the model parameters to match the experimental data, thus bridging the gap between theoretical predictions and real-world observations [18].
The integration of the PSO and GWO algorithms with a well-established thermodynamic model represents a novel and powerful approach (SKM-PSO and SKM-GWO) to improving the precision of salt rejection model predictions for NF and RO membranes. This integration reduces the need for extensive experimental data, thus making the modelling process more practical and manageable. Furthermore, it provides valuable information for the design and operational stages of desalination plants. The model has been used to explain real-world scenarios, underpinning practical applications in regions susceptible to salinity and water treatment processes. Consequently, this approach offers valuable insights that could contribute significantly to the sustainable management of water resources.
The current study validates the recommendations from previous research regarding the application of theoretical models for optimising parameters in membrane processes. Both SKM-PSO and SKM-GWO models have demonstrated high effectiveness in optimising parameters for membrane modelling. Additionally, a comparative analysis of these algorithms was performed to determine the most efficient optimisation technique. The results indicated that the SKM-GWO model produced slightly better outcomes compared to the SKM-PSO model.
In the study of membrane processes, accurate modelling is essential for predicting performance and optimising operational parameters. This section presents a comprehensive approach to modelling membrane behaviour using the Spiegler-Kedem model. Advanced bio-inspired metaheuristic algorithms, specifically PSO and GWO, were employed to enhance the model's accuracy and efficiency. These methods effectively optimise complex, nonlinear problems, providing robust solutions for improving membrane performance.
Membrane performance is evaluated based on membrane rejection, R [%], and permeate flux, JP [m · s-1]. When dealing with dilute aqueous mixtures containing water and a solute, the membrane's selectivity towards the mixture is commonly expressed using the observed solute rejection coefficient [31] [32]. This coefficient quantifies the membrane's effectiveness in separating the solute from the feed solution and is defined as follows:
Where Cf [mg · L-1] is the solute concentration at the feed membrane interface, Cp [mg · L-1] is the permeate solute concentration [33].
The permeate flux is determined using the following equation [34] :
Where QP [m3 · s-1] is the volumetric permeate flux, and S [m2] represents the membrane's active surface area.
The Spiegler-Kedem model, based on irreversible thermodynamics models, provides a straightforward framework for describing solute transport in both RO and NF processes [35]. In this model, the membrane is considered as a black box, where interactions between solute and solvent species are taken into account. The starting point is the assumption that water flux Jv and solute flux Js are propelled by forces Fv and Fs, respectively, stemming from chemical potential gradients across the membrane [14]:
Where Lii, Ljj, Lij, and Lji are phenomenological coefficients.
By integrating the thermodynamic principles, the equations provided by Kedem and Katchalsky make it possible to establish a relationship between water and solute fluxes as well as membrane coefficients [34]. These coefficients include hydraulic permeability LP, solute permeability PS, and reflection coefficient σ [36]. The chemical potential gradient arises from either a concentration or pressure gradient. Consequently, the ultimate operational equations of the nonlinear Spiegler-Kedem model are [37] :
Where ∆P [bar] represents the transmembrane pressure, while ∆Π [bar] indicates the difference in osmotic pressure across the membrane. Cm [mg · L-1] is the solute concentration at the membrane surface, LP [L · h-1·bar-1] stands for the hydraulic permeability of the membrane, σ represents the dimensionless reflection coefficient, and PS [m · s-1] is the solute permeability
The quantity Pc = σ× ∆Π is the initial pressure, also referred to as the critical pressure. The reflection coefficient σ serves as an indicator of the membrane's relative permeability to a specific solute: σ = 1 signifies complete exclusion of the solute, whereas σ = 0 implies the membrane lacks selectivity [38]. Integrating equations (5) and (6) with eq. (1) and considering the limit conditions of the problem (Cm = Cf for x = 0, and Cm = Cp for x = ∆x, where ∆x [m] is the membrane thickness) results in equations (7) and (8) [39]:
Throughout the experiments, three key parameters were systematically monitored and recorded. The first parameter is the permeate flux. This crucial parameter, indicative of membrane performance, was calculated using eq. (2) [34].
The second parameter of interest is the recovery rate Y [%]. This metric serves as a vital indicator of process efficiency and was calculated as the ratio of permeate flow QP [L · h-1] to feed flow Q0 [L · h-1], expressed as a percentage:
The third parameter of interest is the salt rejection R [%]. This metric is crucial for evaluating the effectiveness of the membranes in removing salt from the feed water. Salt rejection was quantified using eq. (7) as mentioned above.
The PSO algorithm, inspired by the behaviour of bird flocks [42], has widespread applications in various domains, such as nonlinear function optimisation [43] and neural network training [44]. The PSO algorithm's idea came from simulating the social behaviour of flocks of birds looking for food [45] [46].
In the implementation of the PSO algorithm, each bird is considered a starting particle, representing a potential solution in the search space. These particles move across the search space at the same time [47]. A position vector and a velocity vector are required to represent a particular particle. The former vector depicts the problem's solution, while the latter vector establishes the location updated in the subsequent iteration [47]. According to the value of the fitness function, each particle continuously tracks the optimal position of both the individual and the entire swarm in order to determine the best solution in the PSO algorithm (Figure 1a). The i-th particle's updated position and velocity in the (t + 1)-th iteration are determined according to the following two formulas [46] :
Where
The motion of particles (a), and flowchart of the standard PSO algorithm (b)
The PSO algorithm was utilised to optimise the parameters σ and PS, crucial in membrane modelling. These parameters characterise membrane imperfections and significantly impact its performance. Leveraging PSO allows for accurate estimation of these parameters, considering concentration-dependent behaviour and enhancing the precision of membrane transport phenomena modelling. This methodological approach not only improves model accuracy but also contributes to advancements in membrane technology and process optimisation.
The GWO, introduced by Mirjalili in 2014 [48], is a swarm-based algorithm inspired by the hierarchical hunting behaviour of grey wolves [18]. Unlike PSO, GWO is more memory-efficient, utilising a single vector of position and retaining only the three best solutions [49]. This algorithm organises the population of potential solutions into four hierarchical layers, as shown in Figure 2 [50].
The social hierarchy of grey wolves, where dominance progressively decreases from the highest rank downwards
The Alpha (α) wolf symbolizes the best solution found, leading and coordinating the search. The Beta (β ) and Delta (δ ) wolves represent the second-best and intermediate solutions, respectively, contributing to the balance between exploration and exploitation [51]. All other possible solutions are considered as Omega (ω) wolves, which are the least dominant and explored extensively to ensure diversity and prevent premature convergence. Through iterative position updates, GWO mimics wolf pack dynamics to efficiently converge toward the optimal solution, thereby advancing the search process comprising three key steps: encircling, hunting, and attacking prey [52]. During the encirclement phase, wolves gradually close in on their target, a strategy mirrored in GWO where search agents progressively converge towards the optimal solution, Figure 3.
Illustrative representation of wolves encircling their prey
Mathematically, GWO simulates this encirclement by considering two points within an n-dimensional search space and updating the position of one point relative to the other. The mathematical model for encircling prey is given by [18]:
Where
The variables
The hunting phase in GWO simulates the collaborative effort of wolves to locate and encircle prey. Alpha, Beta, and Delta wolves, representing the top three solutions, guide the pack towards the optimal solution. These leaders, considered to have a superior understanding of the search space, direct the remaining wolves (Omega) in their pursuit [51]. By following the positions of Alpha, Beta, and Delta, the wolves gradually converge towards the potential prey position, mimicking the encirclement behaviour observed in real wolf packs.
The mathematical model of an individual grey wolf tracking the location of its prey is described as follows [52]:
Where
Where
In GWO algorithm, the new solution is randomly positioned within the regions defined by Alpha, Beta, and Delta, and updated based on these three best solutions, as shown in Figure 4a. Compared to other metaheuristics algorithms, GWO stands out due to its simplicity, efficiency, and ability to maintain a suitable equilibrium between diversification and intensification, making it applicable to various engineering domains [51]. The flowchart for the basic GWO algorithm is shown in Figure 4b.
Position updating of the Omega wolf, based on the positions of three leading wolves (a), and flowchart for the basic GWO algorithm (b)
The GWO algorithm was employed to fine-tune the parameters σ and Ps, which are pivotal in membrane modelling. These parameters describe membrane imperfections and have a profound influence on its performance. By leveraging the collaborative strategies of Alpha, Beta, and Delta wolves, GWO identifies the optimal parameter values, which enhance the accuracy of the membrane transport phenomena and contribute to significant advancements in membrane technology and process optimisation.
In this study, two advanced bio-inspired metaheuristic algorithms in conjunction with the Spiegler-Kedem Model (SKM) were implemented and evaluated to optimise salt rejection in NF and RO membranes. Figure 5 schematically shows the two applied algorithms, PSO and GWO, each offering unique advantages for enhancing the predictive accuracy and efficiency of the SKM.
Implementation and optimisation frameworks for SKM-PSO and SKM-GWO models
The implementation of the SKM-PSO model begins with the initialisation of input data, which is processed through the Spiegler-Kedem Model to generate initial predictions. These predictions undergo an error evaluation phase, providing necessary feedback to the PSO algorithm. The PSO algorithm initialises particles, evaluates them, updates their positions, and iteratively searches for the best solution, which optimises the SKM parameters (σ and Ps). This optimised solution is then used to produce refined predictions.
Similarly, the SKM-GWO model follows a parallel structure. Input data are fed into the Spiegler-Kedem Model to generate initial predictions, followed by error evaluation. The GWO algorithm then initialises a pack of wolves, evaluates them, updates their positions based on social hierarchy, and searches for the optimal solution. The best solution obtained is used to optimise the SKM parameters, resulting in improved predictive accuracy.
Both models have been rigorously evaluated to ensure robustness and precision in predicting membrane performance. The integration of PSO and GWO with the Spiegler-Kedem Model provides a comprehensive approach to membrane modelling, leveraging the strengths of metaheuristic optimisation to enhance the accuracy and efficiency of salt rejection predictions.
The statistical indicators used to evaluate the performance of the SKM-PSO approach are: the mean absolute error (MAE), the mean squared error (MSE), the root-mean-squared error (RMSE), the normalised objective function (NOF), the Nash-Sutcliffe coefficient (NSC), and R-squared values (R2). The equations used to determine these indicators are given by [53] [54] :
The coefficient MAE indicates the average absolute error of the model, regardless of the direction of the errors; a lower MAE points out better model performance. The MSE provides an indication of the spread of errors, giving more weight to more significant errors due to squaring; a lower MSE indicates a better fit between the model predictions and the actual data [29]. The RMSE provides a rating for the model error and shows a perfect similarity between the values that are observed and those predicted, in case of being equal to 0. For N0F, when it is less than 1, the model error is said to be negligible. The NSC ranges from –∞ to 1, and its value close to 1 marks that the model performs well.
This section provides an overview of the study area and the specific characteristics of the feed water and membranes used in this research. Additionally, the attributes of the NF and RO membranes employed in the experiments were detailed, along with the methodology for measuring and calculating key performance parameters.
Tan-Tan City, situated in the arid, water-scarce south of Morocco (Figure 6), is an important site for understanding the challenges of water desalination due to its proximity to brackish water sources [24]. The city experiences significant problems with water salinity, which impacts both agricultural activities and the availability of potable water for residents [26]. The primary source of water in Tan-Tan comes from the nearby Oued Draa and coastal aquifers, which are prone to saltwater intrusion due to over-extraction and climatic conditions.
Study area: Tan-Tan City, Morocco
Tan-Tan is emblematic of the immense regional challenge of balancing water needs for a growing population and agricultural demands with the limitations posed by saline water sources. The arid local climate, characterised by limited rainfall, intensifies the water scarcity challenge. As a result, advanced desalination techniques, such as NF and RO, are indispensable for maintaining a sustainable water supply. In an effort to identify the most suitable and cost-effective solution, particularly concerning energy efficiency for a long-term water supply for Tan-Tan City, and to gain proficiency in new technologies [55], ONEE (Office National de l'Électricité et de l'Eau potable) carried out technical and economic studies on various thermal and membrane technologies. These studies also examined energy sources such as fossil fuels, solar power, gravity, and nuclear energy while considering their long-term environmental impacts.
Tan-Tan faces significant challenges, particularly in managing the high levels of Total Dissolved Solids (TDS) in the water, which often exceed WHO safety standards for drinking water [27]. Addressing these issues necessitates the deployment of effective desalination technologies and strategies for sustainable water management. Pilot studies and research in Tan-Tan are focused on optimising membrane technologies to lower salinity levels and ensure a consistent supply of safe drinking water.
This description provides a detailed overview of Tan-Tan City as a study site, underscoring the critical role of desalination research in addressing the dual challenges of water scarcity and salinity.
The characteristics of the feed water of Tan-Tan City (Table 1) can be obtained from ONEE. The pH measurement of 7.9 indicates that the water is slightly alkaline, which can impact its chemical behaviour and compatibility with certain materials. Temperature is an important parameter to monitor as it can influence various water properties and reactions. With a recorded temperature of 27.0 °C, the water is within a typical range for ambient conditions.
Feed water characteristics compared with Moroccan and WHO standards [26]
Tan-Tan feed water |
Moroccan standards |
WHO standards |
|
|---|---|---|---|
T [°C] |
27 |
– |
25 |
pH |
7.9 |
6.0–9.2 |
6.5–8.5 |
TDS [ppm] |
3300 |
<1000 |
<1000 |
Cl- (ppm] |
1287 |
<250 |
<250 |
NO3- [ppm] |
20 |
<50 |
<50 |
F- [ppm] |
1.1 |
1.5 |
0.5–1.5 |
SO42- [ppm] |
500 |
200 |
250 |
Ca2+ [ppm] |
270 |
<500 |
<270 |
Mg2+[ppm] |
115 |
100 |
<50 |
Na+ [ppm] |
595 |
<200 |
<200 |
K+ [ppm] |
19 |
- |
10 |
The concentrations of specific ions in the water, such as chloride (1287-1349) ppm, calcium 270 ppm, magnesium 115 ppm, sodium (595-761) ppm, potassium 19 ppm, and sulphate 500 ppm, provide insights into its chemical composition. These ions play crucial roles in various chemical reactions and processes, including membrane filtration and desalination. Table 1 shows that several parameters of water quality exceed both WHO (World Health Organisation) and Moroccan standards for drinking water. Specifically, TDS and ion concentrations Na+, SO42-, and Cl- are high, indicating a need for desalination.
Overall, these detailed analytical results provide valuable information about the feed water used in the experiments, enabling researchers to assess its suitability for membrane filtration studies and evaluate potential challenges or considerations during the experimental process.
This study investigated three nanofiltration membranes (NF90, NF200 and NE90) and one reverse osmosis membrane (BW30LE). Table 2 outlines the key characteristics of the membranes utilised in the experimental setup. The membranes vary in their Molecular Weight Cut-Off (MWCO) values, which determine the size of the particles or molecules that can pass through the membrane. Additionally, the surface area of each membrane module is provided, indicating the available area for filtration processes. Notably, three of the membranes are made of polyamide, a commonly used material known for its robustness and effectiveness in membrane filtration applications, while the NF200 membrane is made of cross-linked poly piperazine amide with sulfonated functional groups.
Membranes characteristics
Membrane |
Manufacturer |
Material |
MWCO [Da] |
Surface area [m2] |
|---|---|---|---|---|
BW30LE |
Dow (Filmtec) |
Polyamide |
187 |
7.6 |
NF200 |
Dow (Filmtec) |
Poly piperazine amide sulfonated |
401 |
7.6 |
NE90 |
Saehan |
Polyamide |
254 |
7.6 |
NF90 |
Dow (Filmtec) |
Polyamide |
213 |
7.6 |
Before filtration, the membranes were immersed in ultrapure water for 24 hours at 4 °C to eliminate preservatives. Each membrane was then pressurised with pure water for 15 min at 4 bar until the permeate conductivity stabilised below 1 μS∕cm. Following each run, the membranes underwent cleaning procedures using alkaline and acidic solutions as per the manufacturer's recommendations. These cleaning protocols are necessary for maintaining membrane performance and prolonging their operational lifespan by removing fouling agents and restoring permeability. Overall, the selection and characterisation of membranes are crucial steps in designing and conducting membrane filtration experiments, ensuring accurate and reliable results in salt rejection studies.
Salt rejection efficiency is a critical aspect of membrane filtration systems, particularly in applications such as water purification and desalination. By analysing the effects of key operational parameters, valuable insights can be gained into membrane performance and selectivity based on the available data collected from the literature (e.g., [24] [26] [27]). In the following subsections, the research results are presented, and a deep analysis of the findings is conducted to explore how different operating parameters affect salt rejection efficiency. Moreover, the application results for the Spiegler-Kedem thermodynamic model are highlighted, as well as the results of the optimisation by PSO and GWO algorithms.
Figure 7 presents the experimental data of the Tan-Tan water permeate flux as a function of transmembrane pressure for the four tested membranes.
Effect of transmembrane pressure on the permeate flux in Tan-Tan water
The fluxes exhibited a pronounced linear increase with pressure, which is a common observation in membrane filtration processes due to the proportional relationship between driving force and flux. For the NF membranes, the permeate fluxes were significantly higher compared to the RO membrane. This difference can be attributed to the larger pore size and lower selectivity of NF membranes, allowing for higher water permeability. Among the NF membranes tested, NF90 and NE90 achieved the highest fluxes. These membranes are designed for high permeability, making them suitable for applications requiring high water throughput. On the other hand, the NF200 membrane showed the lowest flux among the NF membranes tested. This low flux could be due to NF200 design characteristics, such as a tighter membrane structure or different material properties, which result in reduced water permeability.
The hydraulic permeability LP) of the saline solution was determined from the slope of the linear plot, while the x-intercept gave the critical pressure Pc when the transmembrane pressure equals the osmotic pressure. Table 3 provides a summary of the LP and PC values for all membranes tested with Tan-Tan brackish water, and Figure 8 presents the measurement results.
Hydraulic permeability LP and critical pressures PC to Tan-Tan water
Membranes |
LP [m · s–1 · bar–1] |
PC [bar] |
|---|---|---|
BW30LE |
0.97 |
2.07 |
NF200 |
1.62 |
1.13 |
NE90 |
2.11 |
0.5 |
NF90 |
2.23 |
0.65 |
Total salinity rejection at 15% Recovery Rate
The PC of the RO membrane was approximately two to three times higher than that of the nanofiltration membrane. This difference is attributed to the higher rejection rates and the correspondingly greater osmotic pressure differential across the RO membrane. Flux was detected at pressures below 1 bar. NF membranes offer the advantage of partial demineralisation, which is linked to a lower impact of osmotic pressure on hydraulic permeability compared to RO membranes. This has been expected since the concentration difference across the NF membrane is lower, resulting in reduced osmotic pressure effects. Consequently, NF membranes demonstrate higher flux rates under lower pressures compared to RO membranes.
Figure 8 depicts the evolution of total salinity rejection measurements as a function of transmembrane pressure for the four tested membranes at a 15% recovery rate. This comprehensive comparison demonstrates the efficacy of each membrane under consistent operational conditions. In general, at a specific operating pressure and conversion rate, the order of total salt rejection for the membranes studied was as follows: BW30LE > NF90 > NE90 > NF200. As the pressure increases, the salt rejection improves because the higher pressure enhances the selectivity of the membrane for water over salt ions. This is due to the increased hydraulic pressure overcoming the osmotic pressure, which tends to draw salt through the membrane. Consequently, at higher pressures, more water molecules pass through the membrane while the salt ions are retained. However, at very high pressures, the marginal gains in salt rejection can diminish, highlighting the need for an optimal operating pressure to balance permeate flux and salt rejection effectively.
The optimisation process involved minimising the objective function, which quantifies the difference between the model-predicted rejection rates and the experimental data. By iteratively adjusting the model parameters, PSO and GWO efficiently searched the parameter space to find the optimal σ and Ps values that minimised the cost function. The objective function ObjF(x) for PSO and GWO optimisation [56] can be formulated as follows:
Where
Both optimisation techniques demonstrated robust performance in calibrating the SKM parameters, enhancing the model's accuracy and reliability in predicting membrane behaviour under various operating conditions. Figure 9 shows the predicted total salinity rejection percentages at a 15% recovery rate as a function of permeate flux for four experimental membranes, using the SKM-PSO and SKM-GWO approaches and the experimental data for comparison.
Experimental and predicted values of total salinity rejection at a 15% recovery rate
The SKM-PSO and SKM-GWO predictions demonstrate the simulated rejection percentages derived from the Spiegler-Kedem Model parameters optimised using PSO and GWO algorithms. These predictions serve as theoretical representations of membrane performance, aiming to capture the underlying mechanisms governing salt rejection. Generally, a consistent trend is observed between the experimental data and the predictions of the SKM-PSO and SKM-GWO approaches across all membranes. This consistency indicates that the optimised Spiegler Kedem model adequately captures the salt rejection behaviour of the membranes under investigation.
As permeate flow increases, the rejection percentage tends to be asymptotic in the range of measurement. This phenomenon is expected and can be attributed to concentration polarisation effects and membrane fouling, which become more pronounced at higher permeate fluxes. Noticeable differences in rejection percentages among the different membranes, both in the experimental data and model predictions, highlight variations in membrane properties, such as pore size, surface charge, and selectivity, which influence salt rejection efficiency.
Both SKM-PSO and SKM-GWO approaches effectively capture the complex transport phenomena during membrane filtration. The agreement between the experimental data and the SKM-PSO and SKM-GWO predictions reinforces the reliability of the models in predicting salt rejection behaviour under varying operational conditions. The close alignment between the experimental data and the models demonstrates the robustness of the optimisation techniques in fine-tuning the Spiegler-Kedem model parameters to match experimental observations.
Furthermore, the optimised parameters, including solute permeability PS and reflection coefficient σ, obtained for a 15% recovery rate for each membrane, have been compiled in Table 4. These parameters are crucial indicators of membrane performance and play a significant role in governing salt rejection efficiency under different operational conditions. On the other hand, the comparison between the SKM-PSO and SKM-GWO approaches indicates that both optimisation techniques provide valuable insights into membrane performance, each excelling in different aspects, such as convergence rates and accuracy. Notably, the SKM-GWO model demonstrates superior accuracy and faster convergence rates compared to the SKM-PSO model, highlighting its effectiveness in optimising the Spiegler-Kedem model parameters for predicting salt rejection in membrane-based separation processes.
Parameters optimised using PSO and GWO methods
Algorithms |
PSO |
GWO |
||
|---|---|---|---|---|
Parameters |
σ |
PS (×10-6) |
σ |
PS (×10-6) |
BW30LE |
0.89 |
0.2 |
0.91 |
0.28 |
NF200 |
0.38 |
6.29 |
0.35 |
4.86 |
NE90 |
0.73 |
2.27 |
0.74 |
2.52 |
NF90 |
0.82 |
1.05 |
0.85 |
1.51 |
The statistical calculations yield favourable results, with a low RMSE, indicating close agreement between predicted and observed values. Additionally, the NOF registers below 1, affirming the models' efficacy in fitting the data. Moreover, the NSC near 1 underscores the models' capability to replicate observed values closely. Furthermore, the MAE and MSE complement these findings, contributing to the evidence that the approach performs effectively. For all membranes, the R2 values obtained using the SKM-PSO algorithm are consistently lower compared to those obtained with the SKM-GWO algorithm. This situation indicates that the SKM-GWO approach provides more accurate predictions of salt rejection percentages (Figure 10).
Parity plot comparing calculated vs. measured salt rejection with statistical criteria of parameters estimated using PSO and GWO methods for all membranes at a 15% Recovery Rate
Finally, both models used permit a rapid assessment of salt rejection in Tan-Tan City and can help ensure the safety of the water supply against excessive salinity. They calculate salt rejection adequately even at pressures where field measurements are unavailable and can be considered as a tool for supporting decision-making.
This study presents a comprehensive investigation into the modelling of salt rejection using NF and RO membranes. By integrating the Spiegler-Kedem model with PSO and GWO algorithms, a robust framework has been achieved for predicting salt rejection behaviour with enhanced accuracy and precision. Predicted results by models showed good agreement with field measurements. The models' performances were assessed using six different statistical criteria MAE, MSE, RMS, NOF, NSC, and R2. Both models performed satisfactorily in predicting salt rejection of the Tan-Tan City water. However, the comparison between the SKM-GWO and SKM-PSO approaches showed that the former performed better in terms of accuracy and reliability. Furthermore, experimental results indicate that the NF90 membrane demonstrated higher retention capabilities, with total salinity retention between 75% and 90%. The developed models offer practical implications for water treatment plants, particularly in regions prone to salinity issues. They provide a valuable tool for assessing and optimising salt rejection processes, thereby ensuring the safety and sustainability of water resources.
On the other hand, by continuing to innovate and refine such models, it is possible to pave the way for more efficient and sustainable solutions to global water scarcity and pollution challenges. The model outputs provide a foundation for future research aimed at optimising membrane desalination processes, improving predictive accuracy in salt rejection modelling, and advancing the integration of artificial intelligence techniques, particularly machine learning, which uses a minimum amount of input parameters. The models can contribute to the development of desalination strategies.
The authors gratefully acknowledge the technicians at the Tan-Tan demineralisation station for their availability and collaboration, as well as the technicians at the water service of Tan-Tan City.
- ,
“The Role of Coagulation-flocculation in the Pretreatment of Reverse Osmosis in Power Plant” ,J. sustain. dev. energy water environ. syst. , Vol. 8 (1), :118-131, https://doi.org/10.13044/j.sdewes.d7.0266, mars 2020 - ,
“Potential of Concentrating Solar Power Plants for the Combined Production of Water and Electricity in MENA Countries” ,J.sustain. dev. energy water environ. syst. , Vol. 1 (2), :122-140, https://doi.org/10.13044/j.sdewes.2013.01.0009, juin 2013 - ,
“Recent advances in nanofiltration, reverse osmosis membranes and their applications in biomedical separation field” ,Chinese Journal of Chemical Engineering , Vol. 49 , :76-99, https://doi.org/10.1016/j.cjche.2022.06.017, sept. 2022 - ,
“Frontiers of Membrane Desalination Processes for Brackish Water Treatment: A Review” ,Membranes , Vol. 11 (4), :246, https://doi.org/10.3390/membranes11040246, mars 2021 - ,
“The Effects of Salt Concentration on the Rejection of Pharmaceutically Active Compounds by Nanofiltration Membranes” ,J.sustain. dev. energy water environ. syst. , Vol. 9 (3), :1-16, https://doi.org/10.13044/j.sdewes.d8.0356, sept. 2021 - ,
“Application of nanofiltration process in 5'-GMP production” ,Desalination , Vol. 225 (1-3), :322-328, https://doi.org/10.1016/j.desal.2007.07.013, mai 2008 - ,
“Fouling in Nanofiltration” ,Nanofiltration , 273-3792021, https://doi.org/10.1002/9783527824984.ch7 - ,
“A New Algorithmic Method for Reverse Osmosis Desalination Analysis: Design Optimization and Parametric Study” ,Eng , Vol. 5 (3), :1183-1208, https://doi.org/10.3390/eng5030065, juin 2024 - ,
“Nanofiltration extends the range of membrane filtration” ,Environ.Prog. , Vol. 7 (1), :58-62, https://doi.org/10.1002/ep.3300070116, févr. 1988 - ,
“Simple technique for measuring the concentration polarization level in a reverse osmosis system” ,Desalination , Vol. 131 (1-3), :117-127, https://doi.org/10.1016/S0011-9164(00)90012-2, déc. 2000 - ,
“Novel approach combining physico-chemical characterizations and mass transfer modelling of nanofiltration and low pressure reverse osmosis membranes for brackish water desalination intensification” ,Desalination , Vol. 221 (1-3), :174-191, https://doi.org/10.1016/j.desal.2007.01.075, mars 2008 - ,
“Analysis of modified surface force pore flow model with concentration polarization and comparison with Spiegler-Kedem model in reverse osmosis systems” ,Journal of Membrane Science , Vol. 232 (1-2), :45-62, https://doi.org/10.1016/j.memsci.2003.11.021, mars 2004 - ,
“Modelling reverse osmosis by irreversible thermodynamics” ,Separation and Purification Technology , Vol. 13 (2), :117-128, https://doi.org/10.1016/S1383-5866(97)00065-8, avr. 1998 - ,
“Thermodynamics of hyperfiltration (reverse osmosis): criteria for efficient membranes” ,Desalination , Vol. 1 (4), :311-326, https://doi.org/10.1016/S0011-9164(00)80018-1, déc. 1966 - ,
“Characterisation and prediction of separation performance of nanofiltration membranes” ,Journal of Membrane Science , Vol. 112 (2), :263-274, https://doi.org/10.1016/0376-7388(95)00302-9, avr. 1996 - ,
“Modelling and Simulation of Reverse Osmosis System Using PSO-ANN Prediction Technique”, in Soft Computing: Theories and Applications ,Advances in Intelligent Systems and Computing , Vol. 10531053 , :1209-12192020, https://doi.org/10.1007/978-981-15-0751-9_111 - ,
“Modeling, simulation, and optimization of the membrane performance of sea-water reverse osmosis desalination plant using neural network and fuzzy based soft computing techniques” ,Desalination and Water Treatment , Vol. 229 , :17-30, https://doi.org/10.5004/dwt.2021.27386, juill. 2021 - ,
“An Optimization based Solution for Extended Spiegler-Kedem Model using Grey Wolf Optimizer” ,International Journal of Engineering Research , Vol. 9 (02), :IJERTV9IS020305, Feb 2020 - ,
“Artificial neural network modeling of wastewater treatment and desalination using membrane processes: A review” ,ChemicalEngineering Journal , Vol. 419 , :129540, https://doi.org/10.1016/j.cej.2021.129540, sept. 2021 - ,
“Solar Desalination: Current Applications and Future Potential in MENA Region – A Case Study” ,J.sustain. dev. energy water environ. syst. , Vol. 11 (2), :1-26, https://doi.org/10.13044/j.sdewes.d10.0437, juin 2023 - ,
“Developing a framework for sustainability assessment of Reverse Osmosis desalination plants in Gaza Strip” ,J.sustain. dev. energy water environ. syst. , Vol. 12 (1), :1-17, https://doi.org/10.13044/j.sdewes.d11.0475, mars 2024 - ,
“Enhancing Ciprofloxacin Removal: Unveiling the Potential of Graphene Oxide Synthesized from Cassava Peels through Box-Behnken Design Optimization” ,J.sustain. dev. energy water environ. syst. , Vol. 12 (4), :1-20, https://doi.org/10.13044/j.sdewes.d12.0516, déc. 2024 - ,
“Energy Flow Management in a Smart Microgrid Based on Photovoltaic Energy Supplying Multiple Loads” ,J.sustain. dev. energy water environ. syst. , Vol. 12 (1), :1-27, https://doi.org/10.13044/j.sdewes.d11.0473, mars 2024 - ,
“The prospects of fresh water supply for Tan-Tan City from non-conventional water resources” ,Desalination , Vol. 135 (1), :43-502001, https://doi.org/10.1016/S0011-9164(01)00137-0 - ,
et al., “Chapter 2 Water Defluoridation Processes: A Review. Application: Nanofiltration (NF) for Future Large-Scale Pilot Plants” ,Advances in Fluorine Science , Vol. 249 (80), 2006, https://doi.org/10.1016/S1872-0358(06)02002-1 - ,
“Comparaison des opérations de nanofiltration et d’osmose inverse pour le dessalement sélectif des eaux saumatres : de l’échelle du laboratoire au pilote industriel”, These de doctorat ,Angers , 2008https://theses.fr/2008ANGE0032, Consulté le: 17 février 2025. [En ligne]. Disponible sur: - ,
“Water defluoridation using nanofiltration vs. reverse osmosis: the first world unit, Thiadiaye (Senegal)” ,Desalination and Water Treatment , Vol. 51 (1-3), :164-168, https://doi.org/10.1080/19443994.2012.704715, janv. 2013 - ,
“Brackish water desalination using nanofiltration membranes in Morocco” ,Desalination and Water Treatment , Vol. 83 , :288-293, https://doi.org/10.5004/dwt.2017.21221, juill. 2017 - ,
“Prediction of water temperature of Sebou estuary (Morocco) using ANN and LR” ,Journal of Applied Water Engineering and Research , Vol. 12 (3), :287-296, https://doi.org/10.1080/23249676.2024.2303150, juill. 2024 - ,
“Prediction of salt rejection by nanofiltration and reverse osmosis membranes using Spiegler-Kedem model and an optimisation procedure” ,Desalination and Water Treatment , Vol. 120 , :41-50, https://doi.org/10.5004/dwt.2018.21410, juill. 2018 - ,
“Removal of hardness from groundwater using two nanofiltration membranes: experimental study and modeling” ,Desalination and Water Treatment , Vol. 93 , :30-39, https://doi.org/10.5004/dwt.2017.20980, oct. 2017 - ,
“Kinetic Characteristics of Reverse-Osmosis Separation of an Aqueous Solution of Aniline in a Flat-Frame Apparatus” ,Russ J Appl Chem , Vol. 78 (7), :1096-1100, https://doi.org/10.1007/s11167-005-0457-y, juill. 2005 - ,
“Removal of organics from aqueous solutions by commercial RO and NF membranes of characterized porosities” ,Desalination , Vol. 142 (1), :47-56, https://doi.org/10.1016/S0011-9164(01)00424-6, janv. 2002 - ,
“Boron removal from model water by RO and NF membranes characterized using S-K model” ,Membrane and Water Treatment , Vol. 7 (3), :193-2072016, https://doi.org/10.12989/MWT.2016.7.3.193 - ,
“Implementation of Spiegler-Kedem and Steric Hindrance Pore Models for Analyzing Nanofiltration Membrane Performance for Smart Water Production” ,Membranes , Vol. 8 (3), :78, https://doi.org/10.3390/membranes8030078, sept. 2018 - ,
“Permeability of composite membranes. Part 1.—Electric current, volume flow and flow of solute through membranes” ,Trans.Faraday Soc. , Vol. 59 (0), :1918-19301963, https://doi.org/10.1039/TF9635901918 - ,
“Estimation of mass transfer coefficient using a combined nonlinear membrane transport and film theory model” ,Desalination , Vol. 109 (1), :39-49, https://doi.org/10.1016/S0011-9164(97)00051-9, mars 1997 - ,
“Influence of ion size and charge in nanofiltration” ,Separation and Purification Technology , Vol. 14 (1-3), :155-162, https://doi.org/10.1016/S1383-5866(98)00070-7, aout 1998 - ,
“Nanofiltration of highly concentrated salt solutions up to seawater salinity” ,Desalination , Vol. 184 (1-3), :315-326, https://doi.org/10.1016/j.desal.2005.02.062, nov. 2005 - ,
“Assessing combination treatment, enzymatic oxidation and ultrafiltration in a membrane bioreactor, for 4-chlorophenol removal: Experimental and modeling” ,Journal of Membrane Science , Vol. 342 (1-2), :198-207, https://doi.org/10.1016/j.memsci.2009.06.037, oct. 2009 - ,
“Application of the Spiegler-Kedem-Kachalsky model to the removal of 4-chlorophenol by different nanofiltration membranes” ,Desalination , Vol. 315 , :70-75, https://doi.org/10.1016/j.desal.2012.10.008, avr. 2013 - ,
“A discrete binary version of the particle swarm algorithm” ,Computational Cybernetics and Simulation 1997 IEEE International Conference on Systems, Man, and Cybernetics , Vol. 5 , :4104-4108, https://doi.org/10.1109/icsmc.1997.637339, oct. 1997 - ,
“Prediction of Salinity in Qiantang Estuary Based on Wavelet Neural Network Optimized by Particle Swarm Optimization” ,AMM , 353-3562683-356, https://doi.org/10.4028/www.scientific.net/amm.353-356.2683, aout 2013 - ,
“Ocean salinity intelligent prediction model based on particle swarm optimization LSTM neural network” ,2022 3rd Asia-Pacific Conference on Image Processing, Electronics and Computers , 652-657, https://doi.org/10.1145/3544109.3544328, avr. 2022 - ,
“Particle swarm optimization: developments, applications and resources” ,Proceedings of the 2001 Congress on Evolutionary Computation (IEEE Cat. No.01TH8546), Seoul , 81-862001, https://doi.org/10.1109/cec.2001.934374 - ,
“Particle swarm optimization (PSO). A tutorial” ,Chemometrics and Intelligent Laboratory Systems , Vol. 149 , :153-165, https://doi.org/10.1016/j.chemolab.2015.08.020, déc. 2015 - ,
“On the Constellation Design of Multi-GNSS Reflectometry Mission Using the Particle Swarm Optimization Algorithm” ,Atmosphere , Vol. 10 (12), :807, https://doi.org/10.3390/atmos10120807, déc. 2019 - ,
“Grey Wolf Optimizer” ,Advances in Engineering Software , Vol. 69 , :46-61, https://doi.org/10.1016/j.advengsoft.2013.12.007, mars 2014 - ,
“An improved grey wolf optimizer for solving engineering problems” ,Expert Systems with Applications , Vol. 166 , :113917, https://doi.org/10.1016/j.eswa.2020.113917, mars 2021 - ,
“Parameter identification of fuel cell using Repairable Grey Wolf Optimization algorithm” ,Applied Soft Computing , Vol. 147 , :110791, https://doi.org/10.1016/j.asoc.2023.110791, nov. 2023 - ,
“Intelligent Design of an Ultra-Thin Near-Ideal Multilayer Solar Selective Absorber Using Grey Wolf Optimization linked to Deep Learning” ,Ecol.Eng. Environ. Technol. , Vol. 25 (2), :70-87, https://doi.org/10.12912/27197050/175785, févr. 2024 - ,
“Research on Solving Flexible Job Shop Scheduling Problem Based on Improved GWO Algorithm SS-GWO” ,Neural Process Lett , Vol. 56 (1), :26, https://doi.org/10.1007/s11063-024-11488-1, févr. 2024 - ,
“Modeling pore blocking of nanofiltration and reverse osmosis membranes during NaCl removal” ,Bulgarian Chemical Communications , Vol. 54 (3), :199-2042022, https://doi.org/10.34049/bcc.54.3.5465 - ,
“Modeling the separation performance of nanofiltration and reverse osmosis: case study of groundwater desalination (M’Nasra zone Morocco)” ,Bulgarian Chemical Communications , Vol. 51 (4), :625-631, https://doi.org/10.34049/bcc.51.4.5056, 2019 - ,
“Pre-project study of a nuclear desalination demonstration plant for Tan-Tan, Morocco” ,Nuclear Engineering and Design , Vol. 213 (2-3), :279-287, https://doi.org/10.1016/S0029-5493(01)00520-9, avr. 2002 - ,
“The continuous-discrete PSO algorithm for shape formation problem of multiple agents in two and three dimensional space” ,Applied Soft Computing , Vol. 67 , :409-433, https://doi.org/10.1016/j.asoc.2018.02.015, juin 2018

