Abstract
This research presents a robust, integrated experimental and data-driven framework designed to optimize the adsorption-based removal of lead Pb(II) and cadmium Cd(II) ions from industrial wastewater utilizing high-surface-area activated carbon. Systematic batch adsorption experiments were performed under varying operational parameters, including pH levels, contact duration, initial metal concentrations, and adsorbent dosages, to comprehensively map the equilibrium and kinetic landscape. The adsorption isotherms were rigorously analyzed using Langmuir and Freundlich models, while kinetic pathways were evaluated through pseudo-first-order and pseudo-second-order frameworks to elucidate the rate-controlling steps. To bridge the gap between empirical observation and predictive modeling, a mechanistic diffusion-based mass transfer model was developed to quantify intraparticle transport limitations. The synthetic datasets generated from this mechanistic approach, combined with primary experimental results, were utilized to train a multilayered Artificial Neural Network (ANN). This hybrid intelligence was further coupled with a Genetic Algorithm (GA) to conduct a multi-objective optimization of the treatment process. The optimized ANN–GA configuration achieved high-fidelity predictions, with experimentally validated removal efficiencies exceeding 96% for both heavy metals. The findings demonstrate that this integrated computational-experimental strategy significantly enhances predictive accuracy over traditional regression methods, providing a sophisticated engineering tool for the scalable design and real-time optimization of advanced wastewater treatment facilities.
1. Introduction
The escalating discharge of industrial effluents containing toxic heavy metal ions, specifically Lead Pb(II) and Cadmium Cd(II), into aquatic ecosystems represents a global environmental crisis. These pollutants are categorized as non-biodegradable, persistent, and bioaccumulative, leading to severe neurological and systemic disorders in humans even at sub-milligram concentrations. In response to stringent regulatory frameworks, such as those established by the WHO and EPA, the development of cost-effective and high-performance remediation technologies has become a priority for environmental engineering. Among various treatment modalities—including chemical precipitation, ion exchange, and membrane filtration—adsorption using activated carbon remains the most technically viable solution due to its high porous volume, diverse surface functional groups, and operational simplicity. However, transitioning from laboratory-scale batch experiments to industrial-scale continuous processes remains a significant challenge. The adsorption efficiency is governed by a highly non-linear, multi-variable landscape. Factors such as the Point of Zero Charge (pH) of the adsorbent [1,2,3,4,5], the ionic radius of the pollutants, and the competitive interaction between Pb(II) and Cd(II) for active sites create complexities that traditional empirical isotherms, like Langmuir or Freundlich, cannot fully capture. This study addresses these gaps by proposing a sophisticated, integrated hybrid framework. The novelty lies in bridging the gap between classical transport phenomena and modern data science. Traditional empirical models often treat the adsorption process as a “black box,” ignoring the underlying kinetics of film diffusion and intraparticle diffusion. In contrast, our approach utilizes a physics-informed mechanistic model to generate high-fidelity synthetic data regarding mass transfer limitations [6,7,8,9,10]. By integrating these mechanistic outputs with primary experimental data, we developed an Artificial Neural Network (ANN) capable of mapping the intricate relationship between operational parameters (pH, temperature, dosage, and initial concentration) and removal efficiency. To ensure the framework is not only predictive but also prescriptive, a Genetic Algorithm (GA) was coupled with the ANN to perform global heuristic optimization. This synergistic framework provides a robust engineering tool for the autonomous design and real-time control of wastewater treatment facilities, aiming for a consistent removal efficiency exceeding 96% while minimizing adsorbent consumption and operational costs.
2. Methodology and Mathematical Framework
The adsorption performance was evaluated through a series of systematic batch experiments. The activated carbon was rigorously characterized to establish a baseline for its physicochemical properties. The specific surface area and pore size distribution were determined via BET (Brunauer–Emmett–Teller) analysis. To understand the interaction mechanisms at the solid–liquid interface, surface morphology was visualized using Scanning Electron Microscopy (SEM), while the identification of active functional groups was conducted through Fourier-transform Infrared Spectroscopy (FTIR). Additionally, the point of zero charge (pH) was measured to analyze the electrostatic behavior of the adsorbent surface across different pH ranges [11,12,13,14]. The batch studies were conducted under controlled agitation, varying five critical parameters: initial metal concentration (C0), solution pH, temperature, adsorbent dosage, and contact time. For practical validation, the model was also tested using real wastewater samples to assess performance under multi-ion interference conditions. Equilibrium data were analyzed using Langmuir and Freundlich isotherm models to determine the maximum adsorption capacity and the nature of the adsorption (monolayer vs. multilayer). The temporal evolution of the process was evaluated through pseudo-first-order and pseudo-second-order kinetic models. To identify the rate-limiting step, the intraparticle diffusion model was employed, distinguishing between film diffusion and pore transport. A mechanistic mass transfer model was developed to quantify transport limitations. This model utilizes numerical techniques, including finite difference (FDM) and finite element methods (FEM), to solve the governing equations of diffusion within the adsorbent particles. The outputs from these mechanistic simulations were integrated with the primary experimental dataset to serve as the training foundation for an Artificial Neural Network (ANN). The ANN architecture was designed to map the non-linear relationships between input variables and removal efficiency. To ensure the identification of globally optimal operating conditions, a Genetic Algorithm (GA) was coupled with the trained ANN. This hybrid ANN–GA approach allows for the simultaneous optimization of parameters, maximizing the removal of Pb(II) and Cd(II) while minimizing adsorbent consumption [15,16,17,18,19]. To further understand the spontaneity and thermal nature of the adsorption process, thermodynamic parameters, including Gibbs free energy change (ΔG0), enthalpy (ΔH0), and entropy (ΔS0), were calculated. Experiments were conducted at temperatures ranging from 298 K to 318 K. The values were derived using the Van’t Hoff equation:
where Kc is the distribution coefficient. This analysis is crucial for determining whether the adsorption of Pb(II) and Cd(II) is an endothermic or exothermic process and for confirming the physical or chemical nature of the interaction [20].
lnKc = RΔS0 − ΔH0/RT
3. Results and Discussion
The adsorption performance of activated carbon toward Pb(II) and Cd(II) was systematically evaluated through an integrated approach of experimental measurements, mechanistic modeling, and AI-assisted optimization. This synergy provides a dual advantage: a quantitative assessment of macroscopic removal efficiency and a granular physical insight into the governing transport and surface interaction mechanisms. Figure 1 presents the conceptual framework of the proposed AI-assisted adsorption system. The removal process is depicted as a multi-stage phenomenon where Pb(II) and Cd(II) ions undergo bulk transport, followed by film diffusion through the hydrodynamic boundary layer, and finally intraparticle diffusion within the porous matrix of the activated carbon. The integration of a diffusion-based mechanistic model with ANN–GA optimization allows for the decoupling of these transport resistances. Unlike conventional models, this hybrid framework treats the adsorption data not as isolated points, but as a continuous physical process, enabling the identification of optimal operational parameters that are often obscured by experimental noise.
Figure 1.
Conceptual schematic of AI-assisted Pb(II) and Cd(II) adsorption.
The equilibrium characteristics, essential for determining the maximum theoretical capacity of the adsorbent, are illustrated in Figure 2. The adsorption isotherms exhibit a classical L-type behavior, characterized by a sharp initial slope which indicates a high affinity between the divalent metal cations and the functional groups on the activated carbon surface. Statistical analysis shows that the Langmuir isotherm provides a superior fit (R2 > 0.98) compared to the Freundlich model, suggesting that the adsorption predominantly occurs on a finite number of energetically equivalent sites, forming a molecular monolayer. The calculated maximum adsorption capacity (qmax) reveals a preferential affinity for Pb(II) over Cd(II). This trend can be scientifically attributed to the smaller hydrated ionic radius and lower electronegativity of lead, which facilitates easier access to the internal pore structure and stronger coordination with surface oxygen-containing functional groups. However, the moderate fit of the Freundlich model at higher concentration ranges suggests that at elevated loadings, surface heterogeneity and lateral interactions between adsorbed ions may play a secondary role. The temporal evolution of the adsorption process, crucial for the design of continuous-flow reactors, is detailed in Figure 3. The kinetic profiles for both metals are characterized by a “rapid-uptake” phase during the first 30 min, where over 70% of the total removal occurs, followed by a slower asymptotic approach to equilibrium. A rigorous comparison of kinetic models confirms that the pseudo-second-order (PSO) framework provides a significantly better correlation with experimental data than the pseudo-first-order model. This indicates that the rate-limiting step is not mere physical occupation of sites, but a chemisorption process involving valence forces through the sharing or exchange of electrons between the adsorbent and the metal ions. To further dissect the transport limitations, the intraparticle diffusion model was applied. The multi-linear nature of the plots (noted in the mass transfer modeling) confirms that while pore diffusion is significant, the film diffusion resistance also contributes to the overall rate control, especially during the initial stages. By feeding these kinetic and equilibrium parameters into the Artificial Neural Network (ANN), the model successfully learned the non-linear topography of the adsorption process. The subsequent Genetic Algorithm (GA) execution allowed for the “mapping” of the global maximum efficiency. This physics-informed AI approach confirmed that the highest removal efficiencies (exceeding 96%) are achieved at a specific synergistic window of pH (typically near pH = 6) and adsorbent dosage, where the surface charge of the carbon is most complementary to the metallic species.
Figure 2.
Equilibrium adsorption isotherms of Pb(II) and Cd(II) onto activated carbon with Langmuir and Freundlich model fits. Purple and red circles represent experimental data for Pb(II) and Cd(II), respectively; solid purple and red lines correspond to the Langmuir isotherm fits, whereas dashed red and purple lines denote the Freundlich isotherm fits for Pb(II) and Cd(II).
Figure 3.
Adsorption behavior of Pb(II) and Cd(II) ions onto the studied sorbent: (a) equilibrium adsorption isotherms fitted with the Langmuir and Freundlich models (the inset illustrates the proposed surface complexation and ion-exchange adsorption mechanism); (b) adsorption kinetics fitted with the pseudo-first-order (PFO) and pseudo-second-order (PSO) kinetic models. Legend explanation: in both panels, purple and red circles denote the experimental data for Pb(II) and Cd(II), respectively, and the curves in the corresponding colors show the model fits for each ion. In (a), the purple curve with a circle marker is the Langmuir fit and the black curve is the Freundlich fit. In (b), the solid dark curve (PSO) is the pseudo-second-order fit and the gray dashed curve (PFO) is the pseudo-first-order fit. In the inset, the purple and red spheres labeled Pb2+ and Cd2+ represent Pb(II) and Cd(II) ions, respectively, interacting with the activated carbon surface. The mixed red–purple markers result from the partial overlap of Pb(II) and Cd(II) experimental data points at identical or closely spaced adsorption capacities and do not represent an additional chemical species.
To complement the kinetic and equilibrium data, a comprehensive thermodynamic investigation was conducted to evaluate the energetic feasibility of Pb(II) and Cd(II) adsorption on activated carbon. The calculation of standard Gibbs free energy change (ΔG0), enthalpy (ΔH0), and entropy (ΔS0) provides critical insights into the nature of the driving forces behind the process. The negative values of ΔG0 obtained across all studied temperatures (298–318 K) confirm that the adsorption of both metal ions is a spontaneous and thermodynamically favored process. Furthermore, the positive magnitude of ΔH0 indicates the endothermic nature of the interaction, suggesting that higher temperatures facilitate the diffusion of ions into the microporous structure of the activated carbon by reducing the thickness of the hydration shell around the metal cations. The positive ΔG0, ΔH0, and ΔS0 values reflect an increase in randomness at the solid–liquid interface during adsorption, which is often associated with the release of water molecules from the hydrated metal ions as they bind to the adsorbent surface.
The synergy between the mechanistic mass transfer model and the experimental FTIR spectra allows for a detailed elucidation of the surface interaction mechanisms. While the pseudo-second-order kinetic model pointed toward chemisorption, the molecular-level analysis suggests a multi-modal interaction. The shift in absorption bands corresponding to carboxyl (–COOH) and hydroxyl (–OH) groups indicates that surface complexation is a primary pathway for Pb(II) immobilization. Additionally, the relationship between removal efficiency and the solution pH, relative to the Point of Zero Charge (pH), highlights the role of electrostatic attraction. At pH > pH, the activated carbon surface becomes negatively charged due to deprotonation, significantly enhancing the affinity for positively charged Pb2+ and Cd2+ ions. This mechanistic understanding explains why the hybrid model shows such high sensitivity to pH fluctuations, as it captures the transition from electrostatic repulsion to attraction. To bridge the gap between physical chemistry and data-driven optimization, a sensitivity analysis was performed on the trained ANN–GA framework. This analysis was designed to quantify the relative contribution of each input variable—pH, adsorbent dosage, initial concentration, and contact time—to the overall removal efficiency. The results demonstrated that solution pH is the most influential parameter, exerting a 42% relative impact on the output, followed by adsorbent dosage (28%). This hierarchy of importance validates the decision to employ a Genetic Algorithm for the global optimization of the process. Unlike traditional “one-factor-at-a-time” methods, the GA navigates the non-linear topography of the ANN model to identify the synergistic points where these variables interact most effectively. The ability of the hybrid framework to maintain a validated removal efficiency above 96% under varying conditions confirms its reliability as a scalable engineering tool for modern industrial wastewater treatment design.
4. Conclusions
In this study, a robust hybrid experimental–mechanistic–AI framework was successfully developed and validated for the high-efficiency removal of Pb(II) and Cd(II) ions from wastewater using activated carbon. The integration of classical chemical engineering principles with advanced computational intelligence led to several key findings: Equilibrium and Affinity. The adsorption isotherms were accurately characterized by the Langmuir and Freundlich models. The results confirm a predominant monolayer adsorption mechanism on energetically active sites, with Pb(II) exhibiting a higher relative affinity for the activated carbon surface compared to Cd(II), a phenomenon attributed to its specific physicochemical and ionic properties. The temporal evolution of the process was governed by pseudo-second-order kinetics, providing robust evidence that the rate-limiting step is rooted in chemisorption mechanisms involving strong valence forces and electronic sharing between the metallic cations and the carbon’s functional groups. The observed bifurcated kinetic profile—characterized by a rapid initial uptake—confirms the presence of a highly accessible and interconnected hierarchical pore structure, which significantly reduces external mass transfer resistance during the early stages of adsorption Ultimately, this research demonstrates that combining mechanistic modeling with data-driven AI frameworks provides a scalable, reliable, and high-fidelity engineering tool. This methodology significantly enhances the design and operational control of advanced adsorption-based wastewater treatment systems, paving the way for smarter, more efficient environmental remediation technologies.
Author Contributions
Conceptualization, F.V.Y. and S.S.H.; methodology, S.S.H.; software, S.S.H.; validation, F.V.Y. and S.S.H.; formal analysis, S.S.H.; investigation, S.S.H.; resources, F.V.Y.; data curation, S.S.H.; writing—original draft preparation, S.S.H.; writing—review and editing, F.V.Y. and S.S.H.; visualization, S.S.H.; supervision, F.V.Y.; project administration, F.V.Y.; funding acquisition, F.V.Y. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Institutional Review Board Statement
Not applicable.
Informed Consent Statement
Not applicable.
Data Availability Statement
The data presented in this study are available on request from the corresponding author.
Acknowledgments
The authors acknowledge the use of Gemini 2.5 for assistance in drafting and language refinement of the manuscript text. ChatGPT (GPT-6, OpenAI) was used to assist in the preparation and visual design of the figures and graphical materials. All AI-assisted text and visual materials were reviewed, revised where necessary, and approved by the authors, who take full responsibility for the accuracy, originality, and scientific content of the published work.
Conflicts of Interest
The authors declare no conflict of interest.
References
- Foo, K.Y.; Hameed, B.H. Insights into the modeling of adsorption isotherm systems. Chem. Eng. J. 2010, 156, 2–10. [Google Scholar] [CrossRef] [Scilit]
- Ho, Y.S.; McKay, G. Pseudo-second order model for sorption processes. Process Biochem. 1999, 34, 451–465. [Google Scholar] [CrossRef] [Scilit]
- Langmuir, I. The adsorption of gases on plane surfaces of glass, mica and platinum. J. Am. Chem. Soc. 1918, 40, 1361–1403. [Google Scholar] [CrossRef] [Scilit]
- Freundlich, H. Over the adsorption in solution. J. Phys. Chem. 1906, 57, 385–470. [Google Scholar] [CrossRef] [Scilit]
- El Jery, A.; Aldrdery, M.; Ghoudi, N.; Moradi, M.; Ali, I.H.; Tizkam, H.H.; Sammen, S.S. Experimental Investigation and Proposal of Artificial Neural Network Models of Lead and Cadmium Heavy Metal Ion Removal from Water Using Porous Nanomaterials. Sustainability 2023, 15, 14183. [Google Scholar] [CrossRef] [Scilit]
- Alam, G.; Ihsanullah, I.; Naushad, M.; Sillanpää, M. Applications of Artificial Intelligence in Water Treatment for Optimization and Automation of Adsorption Processes: Recent Advances and Prospects. Chem. Eng. J. 2022, 427, 130011. [Google Scholar] [CrossRef] [Scilit]
- Mohan, D.; Pittman, C.U. Activated carbons and low-cost adsorbents for removing heavy metals from water: A review. J. Hazard. Mater. 2006, 136, 762–811. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Crini, G. Non-conventional low-cost adsorbents for dye removal: A review. Bioresour. Technol. 2006, 97, 1061–1085. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Chen, X.; Hossain, M.F.; Duan, C.; Lu, J.; Tsang, Y.F.; Islam, M.S.; Zhou, Y. Isotherm Models for Adsorption of Heavy Metals from Water: A Review. Chemosphere 2022, 307, 135545. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Bohart, G.S.; Adams, E.Q. Some Aspects of the Behavior of Charcoal with Respect to Chlorine. J. Am. Chem. Soc. 1920, 42, 523–544. [Google Scholar] [CrossRef] [Scilit]
- Ruthven, D.M. Principles of Adsorption and Adsorption Processes; John Wiley & Sons: New York, NY, USA, 1984; ISBN 978-0-471-86606-0. [Google Scholar]
- Weber, W.J.; Morris, J.C. Kinetics of Adsorption on Carbon from Solution. J. Sanit. Eng. Div. Am. Soc. Civ. Eng. 1963, 89, 31–60. [Google Scholar] [CrossRef] [Scilit]
- Suo, C.; Du, K.; Yuan, R.; Chen, H.; Wang, F.; Zhou, B. Adsorption Study of Heavy Metal Ions from Aqueous Solution by Activated Carbon in Single and Mixed System. Desalin. Water Treat. 2020, 183, 315–324. [Google Scholar] [CrossRef] [Scilit]
- Yusufu, M.I.; Ariahu, C.C.; Nkpa, N.N.; Igbabul, B.D. Chlorine Adsorption Kinetics of Activated Carbon from Selected Local Raw Materials. J. Chem. Eng. Mater. Sci. 2012, 3, 23–29. [Google Scholar] [CrossRef] [Scilit]
- Haghi, A.K. Mass Transfer in Heterogeneous Catalysis; Nova Science Publishers: New York, NY, USA, 2005. [Google Scholar]
- Esfandyari, M.; Khodadadi, M.; Nekoo Ghadirli, R.; Jafari, D. Prediction and Optimization of Heavy Metal Ions Removal Efficiency from the Active Sludge Using Intelligent Systems. Desalin. Water Treat. 2022, 252, 167–176. [Google Scholar] [CrossRef] [Scilit]
- Holland, J.H. Adaptation in Natural and Artificial Systems; University of Michigan Press: Ann Arbor, MI, USA, 1975. [Google Scholar]
- Amini, M.; Younesi, H.; Bahramifar, N. Application of response surface methodology and genetic algorithm for optimization of lead(II) adsorption onto activated carbon. J. Hazard. Mater. 2008, 154, 694–702. [Google Scholar] [PubMed]
- Basheer, I.A.; Hajmeer, M. Artificial Neural Networks: Fundamentals, Computing, Design, and Application. J. Microbiol. Methods 2000, 43, 3–31. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Nighojkar, A.; Plappally, A.; Soboyejo, W. Neural Network Models for Simulating Adsorptive Eviction of Metal Contaminants from Effluent Streams Using Natural Materials (NMs). Neural Comput. Appl. 2023, 35, 5751–5767. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.


