Previous Article in Journal
Winding Numbers in Discrete Dynamics: From Circle Maps and Fractals to Chaotic Poincaré Sections
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

ANN-Based Prediction of Tartrazine Adsorption on Chitosan–Polyvinyl Alcohol Hydrogel Beads: A Comparison with Kinetic Models

by
Salvador Domínguez Beltrán
1,
Grisel Miranda Piña
2,
Everardo Efrén Granda Gutiérrez
3,
Roberto Alejo Eleuterio
1,*,
José Luis García Rivas
1 and
Angelica Reyes García
1
1
Division of Postgraduate Studies and Research, National Technological of Mexico Campus Toluca, Metepec 52149, Mexico
2
División de Ingeniería en Sistemas Computacionales, Tecnológico de Estudios Superiores de Jocotitlán, Carretera Toluca-Atlacomulco km 44.8, Ejido de San Juan y San Agustin, Jocotitlán 10587, Mexico
3
University Center at Atlacomulco, Autonomous University of the State of Mexico (UAEMex), Atlacomulco 50450, Mexico
*
Author to whom correspondence should be addressed.
Modelling 2025, 6(4), 149; https://doi.org/10.3390/modelling6040149
Submission received: 10 October 2025 / Revised: 7 November 2025 / Accepted: 17 November 2025 / Published: 18 November 2025

Abstract

The release of industrial wastewater containing synthetic dyes poses a major environmental issue because of their toxicity and persistence. Among treatment options, natural materials, specifically chitosan–polyvinyl alcohol (chitosan–PVA) hydrogel, have shown high effectiveness in dye removal due to their abundant functional groups and proven adsorption capacity. However, optimizing these systems experimentally is often time-consuming and requires many resources. This study introduces an artificial neural network (ANN) model to predict the adsorption capacity ( q e ) and the time needed to reach equilibrium during the removal of tartrazine dye using chitosan–PVA hydrogel beads of different mean sizes, categorized as small, medium and large (2.1, 2.5, and 3.2 mm, respectively) at temperatures of 10, 30, and 50 °C The ANN model was compared with traditional kinetic models: pseudo-first-order, pseudo-second-order, and Elovich. Results showed that the ANN outperformed conventional models in predicting q e and equilibrium time, especially for small beads at 10 °C, where it predicted q e = 945 mg/g in 40 h with an R 2 of 0.9428 . Across all conditions, the ANN achieved strong correlation coefficients ( R 2 > 0.94 ) and significantly shortened prediction times. Although the pseudo-second-order model achieved high R 2 values (up to 0.9929 ), it took over 72 h to reach equilibrium prediction. These results demonstrate that ANN-based modeling can reduce experimental effort by up to 50% in prediction time while maintaining high predictive accuracy ( R 2 > 0.94 ), offering a sustainable and efficient approach for designing wastewater treatment processes.

Graphical Abstract

1. Introduction

The discharge of industrial wastewater into aquatic environments is a significant global environmental issue because of the presence of persistent and toxic pollutants, including synthetic dyes [1,2]. These compounds can negatively impact aquatic ecosystems and human health, even at low levels. Different treatment methods have been developed to reduce this impact, such as adsorption, photodegradation, ozonation, membrane filtration, and reverse osmosis [3,4]. Among these, adsorption is notable for its high efficiency, simplicity, and affordability in removing contaminants like dyes, heavy metals, and organic pollutants [5].
Natural adsorbents such as agricultural residues, clays, and biopolymers like chitosan are increasingly favored for their sustainability, biodegradability, and low toxicity [1,5]. Chitosan, derived from chitin, has demonstrated excellent performance in dye removal because of its abundant amino and hydroxyl functional groups, which enable electrostatic interactions with anionic dyes like tartrazine [6]. For example, it has been reported to achieve up to 584 mg/g for the removal of tartrazine using a chitosan/polyaniline composite [7]. However, optimizing adsorption processes through experiments often takes a lot of time and resources, which limits quick process development [8]. In this sense, computational modeling has become a useful tool for predicting system behavior and decreasing experimental workload.
Artificial neural networks (ANNs) have attracted attention for their ability to model complex, nonlinear relationships without requiring explicit physical equations. Unlike traditional kinetic models (e.g., pseudo-first-order, pseudo-second-order or Langmuir and Freundlich isotherms), which depend on simplified assumptions, ANNs can incorporate multiple variables, including pH, temperature, contact time, initial concentration, and adsorbent dose, to deliver accurate predictions [3].
Several studies have successfully utilized ANNs in adsorption processes. Pauletto et al. [9] developed an ANN for multicomponent adsorption, enhancing prediction accuracy in complex systems. Avci et al. [10] employed multilayer perceptron (MLP) and convolutional neural networks (CNNs) to model dye adsorption on carbonaceous materials, achieving ( R 2 > 0.95 ) and low mean square errors. Alardhi et al. [11] showed high agreement between ANN predictions and experimental data for dye adsorption on natural materials. Al-Hameed et al. [12] combined response surface methodology (RSM) with ANN to optimize dye removal (Yellow 105) using an adsorbent based on Zeolitic Imidazolate Framework-67 modified with Fe 3 O 4 nanoparticles, reaching ( R 2 > 0.96 ). Similarly, Karam et al. [5] demonstrated the effectiveness of ANN in comparing adsorbents for textile dye removal, with efficiencies approaching 100%, and determination coefficients higher than 0.90 . Additionally, da Silva et al. [13] emphasized the potential of ANNs to reduce experimental trials and support sustainable process design.
In this context, this study presents an ANN model to predict the adsorption of tartrazine (FD&C Yellow No. 5) using chitosan–polyvinyl alcohol (chitosan–PVA) hydrogel beads. The model aims to estimate both the equilibrium adsorption capacity ( q e ) and the time needed to reach equilibrium under different conditions (bead size and temperature). This approach reduces dependence on extensive experimentation and promotes more sustainable, efficient wastewater treatment design.

2. Treatment Methods for Dye Removal

Synthetic dyes are widely used in various industries, including textiles, food, paper, and cosmetics. Tartrazine (Yellow No. 5), a water-soluble azo dye, is commonly used in food products due to its bright yellow color, stability, and low cost [14]. However, its release into wastewater poses environmental risks due to its toxicity, persistence, and resistance to biodegradation [15].
Various methods for dye removal include (a) physical approaches (adsorption, filtration), (b) chemical processes (advanced oxidation, coagulation), and (c) biological methods (microbial degradation) [16]. Among these, adsorption is regarded as one of the most effective and affordable techniques, particularly when utilizing natural, renewable adsorbents like chitosan–PVA hydrogel.
Adsorption is a process where solute molecules, such as dyes, adhere to the surface of a solid adsorbent. This technique is highly effective for removing dissolved contaminants from water because of the adsorbents’ high capacity and versatility [17]. The process’s effectiveness depends on factors like the type of adsorbent, contaminant concentration, pH, temperature, and contact time [18,19].
Chitosan is a biodegradable, non-toxic biopolymer derived from chitin, found in crustacean shells. Its amino groups enable strong electrostatic interactions with anionic dyes, making it highly effective for tartrazine removal [6,7].

Adsorption Kinetic Models

Understanding and optimizing the adsorption process involves analyzing kinetics, which explains how quickly adsorption happens. Kinetic models describe how the contaminant concentration changes over time and help predict system behavior [6].
There are three key adsorption kinetic models commonly used to describe the adsorption process: (1) the Lagergren model, in Equation (1), also known as the pseudo-first-order model, assumes the rate of occupation of adsorption sites is proportional to the number of unoccupied sites [20]; (2) the Ho and McKay model described by Equation (2), or pseudo-second-order model, considers that the adsorption rate depends on the square of the number of unoccupied sites, often providing a better fit for chemisorption processes [21]; and (3) the Elovich model, in Equation (3), is often used for systems with heterogeneous surfaces and describes adsorption kinetics over a wide range of times, considering the complexity of the adsorption process [22]. These models are fitted to experimental data to estimate kinetic parameters and assess mechanism suitability.
q t = q e 1 e k 1 t
q t = k 2 q e 2 t 1 + k 2 q e t
q t = 1 β ln ( α β ) + 1 β ln ( t )
where
  • q t : adsorption capacity at time t (mg/g). It represents the amount of adsorbate adsorbed over time.
  • q e : equilibrium adsorption capacity (mg/g).
  • k 1 : pseudo-first-order rate constant (1/time).
  • k 2 : pseudo-second-order rate constant (g/mg·time).
  • α : initial adsorption rate (mg/g·time).
  • β : desorption constant related to surface coverage (1/time).
  • t: contact time.

3. Artificial Neural Networks

ANNs are computational models inspired by biological neural systems. They learn complex input–output relationships from data [23], making them ideal for modeling nonlinear processes like adsorption.
MLP is one of the most widely used architectures of artificial neural networks (see Figure 1). It is composed of an input layer that receives the variables, one or more hidden layers that transform the inputs through activation functions (e.g., sigmoid, ReLU), and an output layer that generates the predictions. The training process is carried out using backpropagation, where the weights are iteratively updated to minimize the prediction error [24,25].
An MLP employs the backpropagation algorithm to iteratively update its weights through forward and backward passes, enabling the capture of complex, nonlinear relationships between variables [25]. This capability makes MLPs particularly effective for modeling systems influenced by multiple interacting factors [24].
In adsorption studies, ANNs have proven effective in predicting behavior under diverse conditions without relying on simplified physical assumptions [26]. Their universal approximation capability makes them particularly suitable when traditional models fail to capture system complexity.

4. Methodology

This section is structured into four main stages to provide a comprehensive understanding of the proposed approach: (1) data collection, (2) application of traditional kinetic models, (3) development of an MLP model, and finally, (4) training and validation of the MLP.

4.1. Dataset

In the first stage, a dataset of 297 experimental points was compiled. Each experiment involved mixing a fixed volume of tartrazine solution with chitosan–PVA hydrogel beads classified into three groups based on their size, as exhibited in Table 1. Testing temperatures of 10, 30, and 50 °C were used. The experiments were conducted under continuous agitation using a Heidolph Unimax 1010 refrigerated orbital shaker, which ensured temperature control and uniform mixing at 150 rpm. Samples were collected at intervals of 0.5, 1, 4, 8, 16, 24, 32, 40, 48, 63, and 72 h. Adsorption capacity ( q t ) was measured in mg dye per gram of adsorbent. Prior to the experiments, the chitosan–PVA hydrogel beads were stored under refrigeration (at approximately 4 °C) to preserve their structural integrity.
While this study focuses on the predictive modeling of adsorption kinetics, it is essential to note that a detailed characterization of the surface morphology, specific surface area, and internal structure of the chitosan–polyvinyl alcohol hydrogel beads was not performed.
The primary objective of this work is to develop and evaluate an artificial neural network model for predicting equilibrium adsorption capacity and time to equilibrium based on experimental kinetic data. Our analysis centers on the influence of macroscopic parameters, specifically bead size and temperature, on adsorption performance, rather than on the physicochemical properties of the adsorbent material itself.

4.2. Kinetic Models Fitting

The second stage focuses on the utilization of the three above-mentioned traditional kinetic models, pseudo-first-order (Equation (1)), pseudo-second-order (Equation (2)), and Elovich (Equation (3)), which were fitted to the experimental data using nonlinear regression [27]. The equilibrium adsorption capacity, q e was determined to assess their predictive performance.These models serve as a baseline for comparison with the artificial neural network model.

4.3. ANN Design

The third stage addresses the ANN modeling, with the MLP architecture. Considering the experimental data characteristics of the specifically acquired dataset, two variables were selected as inputs: time (t, measured in h), representing the different sampling points, and the adsorbate removal ( q t ) at time t. On the other hand, the equilibrium adsorption capacity ( q e ) was assigned as the output variable.
An MLP with two hidden layers was developed to represent the adsorption process and predict q e (see Figure 1). The model’s output, denoted as z j , is computed as Equation (4):
q e = z j = g s j
where g ( s j ) is the logistic sigmoid activation function, applied to the output layer, which gives
z j = 1 + e s j 1
Considering that,
s j = m y m U m j , p l = n x n V n l , r m = l a l W m l
In Equation (6), U m j represents the weights of the output layer, x n is the n-th input to the neural network, V n l belongs to the initial weights, and W m l are the weights of first hidden layer. Aditionally, if logistic sigmoid activation functions a l = f ( p l ) , y m = h ( r m ) are applied to both hidden layers, it yields
a l = 1 + e p l 1 , y m = 1 + e r m 1
Optimization of the model parameters was performed using partial derivatives, according to the structural equations of the ANN (see Equations (6) and (7)). When obtaining the partial derivatives for each variable, the final expression, which is the product of all partial derivatives (chain rule for backpropagation), q e , is shown in Equation (8):
q e = z j V n l = z j s j s j y m y m r m r m a l a l p l p l V n l
The chain rule in backpropagation is a fundamental mathematical principle that allows neural networks like MLPs to compute gradients of the loss function with respect to every model parameter. The essence of the chain rule is to decompose the derivative of a composite function into a product of derivatives at each layer, enabling the model to adjust weights to minimize prediction error [28].
In this sense, after substituting, developing, and simplifying the derivatives of each term from Equation (8), the partial derivative of the output z j with respect to the input weight V n l is computed using the chain rule, as expressed in Equation (9):
q e = z j ( 1 + z j ) · U m j · y m ( 1 + y m ) · W m l · a l ( 1 + a l ) · V n l
This approach allowed effective fitting of the model to the experimental adsorption data and precise identification of the adsorption equilibrium point q e = z j .

4.4. ANN Evaluation

In the final stage, the ANN was implemented in the C programming language and trained using the experimental dataset, which was partitioned into training (70%), validation (15%), and testing (15%) subsets. Prior to training, input variables were normalized to the range [0,1]. The purpose of normalizing variables in training an MLP is to make sure all input features have equal influence on the training process, resulting in faster and more stable convergence during gradient descent [29]. Normalization prevents input variables with larger ranges from having a disproportionate effect on the model, and it helps avoid numerical problems like vanishing or exploding gradients, thereby improving the training process and the model’s ability to generalize.
The network architecture consisted of an input layer with two neurons, corresponding to time (t) and adsorption capacity at time t ( q t ), followed by two hidden layers, each containing 30 neurons with sigmoid activation functions, and an output layer with one neuron that provided the predicted equilibrium adsorption capacity ( q e = z j ).
Training was carried out using the backpropagation algorithm, which applies the chain rule of calculus (using Equation (8)) to compute the gradient of the output with respect to each network parameter. This gradient information guides the iterative adjustment of connection weights to minimize the prediction error. The latter is basis of the learning process of a neural network as an iterative process in which the calculations are carried out forward and backward through each layer in the network until the error is minimized [30]. In our case, the process was executed over 5000 iterations with a fixed learning rate of 0.009.
The hyperparameters, including the number of neurons per hidden layer and the learning rate, were selected through a trial-and-error approach, as no universal configuration exists for ANNs applied to adsorption systems. Thus, with this configuration, the model was designed to capture adsorption behavior as a function of bead size and system temperature, and its performance was evaluated using the coefficient of determination ( R 2 ), which served as the primary metric for assessing the model’s accuracy, as it quantifies the degree of agreement between predicted and experimental values.

5. Results

The following section shows the results of predicting adsorption capacity ( q t ) over time using different kinetic models. Chitosan–PVA hydrogel spheres of three sizes (small, medium, and large) were tested at three temperature conditions (10, 30, and 50 °C). For each case, experimental data were compared with predictions from three traditional kinetic models (Lagergren, Ho–McKay, and Elovich) as well as the MLP model. The goodness of fit of each model are examined in comparison to the experimental data.
For the small sphere, Figure 2 presents the adsorption capacity over time at the three selected temperature conditions. Experimental data, indicated by black dots, are compared with model predictions (both ANN and kinetic). The ANN demonstrates excellent agreement with experimental data across all temperatures. At 10 °C, traditional kinetic models exhibit greater variability during the initial adsorption stages; however, at 30 and 50 °C, the ANN more accurately reproduces the adsorption profile, particularly in the intermediate and final phases, consistently outperforming the traditional models.
In addition to the graphical results, Table 2 summarize the numerical values obtained for each prediction method. It provides a detailed comparison between traditional models and the MLP in predicting the adsorption capacity ( q e ), the time required to reach equilibrium, and the coefficient of determination ( R 2 ).
For the small chitosan–PVA hydrogel beads in Table 2, the MLP model exhibited a strong correlation with the experimental data, with R 2 values ranging from 0.883 to 0.972. It accurately predicted an adsorption capacity ( q e ) of up to 945 mg/g within just 40 h at 10 °C. In comparison, traditional kinetic models took longer, exceeding 72 h, to estimate equilibrium. Although the pseudo-second-order (Ho-McKay) model achieved a high coefficient of determination (up to 0.9929), it predicted significantly longer equilibrium times, resulting in slower convergence. The Elovich model also showed high R 2 values, indicating good data fitting; however, it does not provide explicit estimates of q e or the time to reach equilibrium, which limits its practical usefulness for process prediction and optimization.
The predicted equilibrium adsorption capacity of 945 mg/g at 10 °C for small chitosan–PVA hydrogel beads is remarkable, and its explanation involves favorable physicochemical interactions, a higher surface-to-volume ratio, and specific experimental conditions. The smaller bead size (mean diameter of 2.1 mm) provides a significantly higher external surface area per unit mass compared to medium and large beads [31]. This increases the number of available active sites for tartrazine molecules to interact with functional groups on chitosan, at lower temperatures where molecular diffusion is slower but electrostatic attraction remains strong. Also, the use of a chitosan–polyvinyl alcohol hydrogel enhances mechanical stability and prevents excessive swelling or dissolution, allowing the beads to maintain their structural integrity over long exposure times up to 72 h [32]. This enables gradual but continuous uptake, which the ANN model accurately captures and extrapolates to a high q e .
Figure 3 shows the adsorption capacity results for the medium size beads. The ANN again provides a more accurate depiction of the experimental trends. As temperature increases, adsorption capacity stabilizes more quickly, and the ANN maintains superior predictive performance even near equilibrium. Although the Ho–McKay model offers a reasonable approximation, the ANN delivers a more precise overall fit, especially during the early stages of adsorption.
For medium-sized beads (Table 3), the ANN model again demonstrated strong predictive performance, achieving R 2 values between 0.911 and 0.975, and accurately estimated a maximum adsorption capacity of 823 mg/g within 48 h at 30 °C. In contrast, traditional kinetic models required longer times, exceeding 72 h, to predict equilibrium. Although the pseudo-second-order (Ho–McKay) model exhibited high correlation (0.9958), it consistently overestimated the time to reach equilibrium, reducing its practical utility. The Elovich model also yielded high R 2 values, indicating good data fitting; however, as with the other bead sizes, it does not provide explicit estimates of q e or equilibrium time.
Finally, for the large sphere, Figure 4 displays the adsorption curves predicted by the models. In this case, the ANN and the Ho–McKay model show closer agreement with the experimental data (black dots), while the Elovich model deviates more significantly from the observed values. These results emphasize the superior predictive ability of the ANN and the Ho–McKay model for adsorption capacity in large chitosan–PVA hydrogel spheres under the tested temperature conditions.
Table 4 shows the results for large chitosan–PVA hydrogel beads. The ANN model demonstrated high robustness, achieving R 2 values between 0.981 and 0.9893, and accurately predicted an adsorption capacity ( q e ) of 807 mg/g within 48 h at 10 °C. In contrast, traditional kinetic models, particularly the pseudo-second-order (Ho–McKay) model, exhibited slightly higher coefficients of determination (up to 0.9973) but required more than 72 h to reach equilibrium, significantly overestimating the time needed to achieve steady state. The Elovich model also produced competitive R 2 values; however, it does not provide explicit estimates of q e or equilibrium time, limiting its predictive utility. These results further confirm that the ANN offers a more efficient and versatile approach for modeling adsorption dynamics.

6. Discussion

While traditional kinetic models, such as the pseudo-first-order, pseudo-second-order, and Elovich models, are widely employed in adsorption studies due to their versatility and relative ease of application, they are inherently limited by a series of simplifying assumptions that restrict their predictive power and mechanistic interpretability.
A primary limitation lies in their assumption of surface homogeneity and uniform activation energy across adsorption sites. These conditions are rarely met in real-world systems involving heterogeneous materials like chitosan–polyvinyl alcohol hydrogel beads. These models often fail to account for complex phenomena such as simultaneous physisorption and chemisorption, pore diffusion effects, or multi-step adsorption mechanisms [33]. Furthermore, their parameters are typically treated as time-independent and disconnected from initial experimental conditions [34].
The pseudo-first-order model assumes that the rate of adsorption is proportional to the number of unoccupied sites, making it most applicable to systems dominated by physical adsorption. However, it frequently fails to accurately describe adsorption at higher concentrations or over extended time periods, especially when equilibrium is reached slowly. Its linearized form is also sensitive to systems with low adsorption, which can lead to significant errors in parameter estimation [35].
Similarly, the pseudo-second-order model, despite its widespread use and high correlation coefficients (as seen in this work), assumes that the adsorption rate is proportional to the number of unoccupied sites, making it suitable primarily for physisorption-dominated processes [35]. This assumption may lead to misleading mechanistic interpretations when applied to systems where mass transfer, diffusion, or electrostatic interactions are the rate-limiting steps [36]. Moreover, as demonstrated in this study, the model consistently overestimates the time required to reach equilibrium, reducing its practical utility for process optimization.
The Elovich model, commonly used for heterogeneous surfaces, predicts an exponential decrease in the adsorption rate with increasing surface coverage [35]. While it provides good data fitting (with R 2 values of up to 0.9946 in our results), it does not yield direct estimates of equilibrium adsorption capacity ( q e ) or the time to reach equilibrium. Its empirical nature results in parameters lacking clear physical meaning, and its formulation implies continuous adsorption without a defined saturation point, which is highly dependent on experimental conditions, and potentially limits its generalization capabilities [34].
In contrast, the ANN model presented in this work does not rely on predefined mechanistic assumptions. Instead, it learns complex, nonlinear relationships directly from the data, enabling accurate predictions of both q e and equilibrium time under diverse conditions [37]. This flexibility makes the ANN a more robust and practical tool for modeling and optimizing adsorption processes, especially when dealing with variable operational parameters such as bead size and temperature, as we used in this research.
The results show that the ANN achieves high predictive accuracy ( R 2 > 0.94 ) and significantly shortens the estimated time to reach equilibrium, ranging from 32 to 63 h, compared to over 72 h for traditional kinetic models. This improved efficiency, along with the ANN’s ability to incorporate multiple process variables, demonstrates its potential as a reliable and practical tool for optimizing adsorption processes, reducing experimental time. These benefits are also evident in the graphical analyses, where the ANN consistently provided a closer fit to the experimental data across all tested bead sizes and temperatures.
The superior performance of the ANN model demonstrated in this study is strongly supported by recent advances in computational modeling of adsorption processes. Various studies have highlighted the effectiveness of ANNs in predicting dye removal efficiency and optimizing operational parameters across diverse adsorbent systems.
For instance, Karam et al. [5] applied ANN to compare nano zerovalent iron, activated carbon, and green-synthesized nanoparticles for textile wastewater decolorization, reporting removal efficiencies of up to 100% under optimized conditions and confirming the ANN’s ability to accurately simulate complex adsorption behavior. Similarly, Alardhi et al. [11] used an ANN to model methyl orange adsorption on date seed-derived activated carbon, achieving high predictive accuracy ( R 2 0.99 ) with low error margins, while Al-Hameed et al. [12] demonstrated that an ANN outperformed response surface methodology in modeling reactive yellow 105 removal using zeolitic materials, with minimal MSE.
These findings align with broader trends showing that ANNs are particularly effective in capturing nonlinear relationships in multi-variable adsorption systems. Recent studies applying ANN to chitosan-based composites, though targeting different dyes or incorporating layered double hydroxides or metal–organic frameworks, have reported similarly high predictive accuracy [38]. In fact, computational approaches using ANN and machine learning on chitosan matrices consistently yield values close to unity when modeling dye adsorption as a function of pH, concentration, time, and dosage [39]. Furthermore, research on chitosan–polyvinyl alcohol (PVA) hydrogels specifically has shown that hybrid models, including ANN and Random Forest algorithms, can reliably predict removal efficiency and optimize process conditions [40].
Therefore, the integration of ANN into adsorption modeling represents a methodological advancement and is a necessary evolution toward more efficient, data-driven environmental engineering. While some of the cited works utilize modified adsorbents and other experimental conditions, the core principles of ANN application (namely, nonlinear pattern recognition, multi-parameter integration, and predictive optimization) are transferable to chitosan–PVA hydrogel systems. This growing body of evidence confirms that ANNs offer a robust, reliable, and versatile alternative to conventional kinetic models [41].

7. Conclusions

This study demonstrates the capability of ANNs in modeling the adsorption kinetics of tartrazine onto chitosan–PVA alcohol hydrogel beads across varying sizes (small, medium, large) and temperatures (10, 30, 50 °C). The ANN model achieved high predictive accuracy for both equilibrium adsorption capacity ( q e ) and time-to-equilibrium, with all R 2 values exceeding 0.94. For small beads at 10 °C, it predicted q e = 945 mg/g within 40 h ( R 2 = 0.9428), showcasing its reliability and precision.
Compared to traditional kinetic models, the ANN significantly reduced prediction time, by estimating equilibrium in 32 to 63 h, versus over 72 h required by the pseudo-second-order model, even though the latter showed slightly higher R 2 values, up to 0.9973, this reduction highlights the ANN’s potential to accelerate process evaluation and minimize reliance on prolonged experimental trials. In contrast, while the Elovich model exhibited strong data fitting ( R 2 = 0.9946), it does not yield direct estimates of equilibrium time, limiting its utility for practical design. These findings establish the ANN as an efficient and practical tool compared to traditional models for optimizing dye removal.
Despite these advantages, a key limitation remains: the current dependence on trial-and-error for hyperparameter selection (number of neurons, learning rate), which hinders standardization and reproducibility. Thus, future work should explore optimization techniques, such as genetic algorithms or Bayesian optimization, to automate network configuration. Furthermore, validating the model with other dyes, adsorbents, and real wastewater matrices will be essential to assess its generalizability under complex conditions.

Author Contributions

Conceptualization, Methodology: S.D.B.; Investigation, Visualization, Writing—original draft: G.M.P.; Project administration, Writing—original draft: R.A.E.; Supervision, Resources: J.L.G.R.; Formal analysis, Writing—review and editing: E.E.G.G.; Software: A.R.G. All authors have read and agreed to the published version of the manuscript.

Funding

This research was partially funded by project 42273w(7711) of the Tecnológico Nacional de Mexico/Technological Institute of Toluca, and by SECIHTI Mexico with scholarship grant number 2001734.

Informed Consent Statement

Not applicable.

Data Availability Statement

The data that support the findings of this study are available from the corresponding author upon reasonable request.

Conflicts of Interest

The authors declare they have no conflicts of interest.

References

  1. Ullah, S.; Assiri, M.A.; Bustam, M.A.; Al-Sehemi, A.G.; Abdul Kareem, F.A.; Irfan, A. Equilibrium, kinetics and artificial intelligence characteristic analysis for Zn (II) ion adsorption on rice husks digested with nitric acid. Paddy Water Environ. 2020, 18, 455–468. [Google Scholar] [CrossRef]
  2. Wong, Y.J.; Arumugasamy, S.K.; Chung, C.H.; Selvarajoo, A.; Sethu, V. Comparative study of artificial neural network (ANN), adaptive neuro-fuzzy inference system (ANFIS) and multiple linear regression (MLR) for modeling of Cu (II) adsorption from aqueous solution using biochar derived from rambutan (Nephelium lappaceum) peel. Environ. Monit. Assess. 2020, 192, 439. [Google Scholar] [CrossRef]
  3. Ghaedi, A.M.; Vafaei, A. Applications of artificial neural networks for adsorption removal of dyes from aqueous solution: A review. Adv. Colloid Interface Sci. 2017, 245, 20–39. [Google Scholar] [CrossRef]
  4. Abdi, J.; Vossoughi, M.; Mahmoodi, N.M.; Alemzadeh, I. Synthesis of metal-organic framework hybrid nanocomposites based on GO and CNT with high adsorption capacity for dye removal. Chem. Eng. J. 2017, 326, 1145–1158. [Google Scholar] [CrossRef]
  5. Karam, A.; Zaher, K.; Mahmoud, A.S. Comparative Studies of Using Nano Zerovalent Iron, Activated Carbon, and Green Synthesized Nano Zerovalent Iron for Textile Wastewater Color Removal Using Artificial Intelligence, Regression Analysis, Adsorption Isotherm, and Kinetic Studies. Air Soil Water Res. 2020, 13, 1178622120908273. [Google Scholar] [CrossRef]
  6. Crini, G.; Badot, P.M. Application of chitosan, a natural aminopolysaccharide, for dye removal from aqueous solutions by adsorption processes using batch studies: A review of recent literature. Prog. Polym. Sci. 2008, 33, 399–447. [Google Scholar] [CrossRef]
  7. Sahnoun, S.; Boutahala, M. Adsorption removal of tartrazine by chitosan/polyaniline composite: Kinetics and equilibrium studies. Int. J. Biol. Macromol. 2018, 114, 1345–1353. [Google Scholar] [CrossRef]
  8. Katheresan, V.; Kansedo, J.; Lau, S.Y. Efficiency of Various Recent Wastewater Dye Removal Methods: A Review. J. Environ. Chem. Eng. 2018, 6, 4676–4697. [Google Scholar] [CrossRef]
  9. Pauletto, P.S.; Dotto, G.L.; Salau, N.P. Optimal artificial neural network design for simultaneous modeling of multicomponent adsorption. J. Mol. Liq. 2020, 320, 114418. [Google Scholar] [CrossRef]
  10. Iftikhar, S.; Zahra, N.; Rubab, F.; Sumra, R.A.; Khan, M.B.; Abbas, A.; Jaffari, Z.H. Artificial neural networks for insights into adsorption capacity of industrial dyes using carbon-based materials. Sep. Purif. Technol. 2023, 326, 124891. [Google Scholar] [CrossRef]
  11. Alardhi, S.M.; Salman, A.D.; Al-Mashaqbeh, A.M.; Al-Ansari, A.M.; Al-Obaidi, A.M. Prediction of methyl orange dye (MO) adsorption using activated carbon with an artificial neural network optimization modeling. Heliyon 2023, 9, e12888. [Google Scholar] [CrossRef]
  12. Al-Hameed, N.A.; Al-Mashaqbeh, M.A.; Al-Ansari, M.A.; Al-Obaidi, M.A. Response Surface Methodology, and Artificial Neural Network Model for Removal of Textile Dye Reactive Yellow 105 from Wastewater Using Zeolitic Materials. Environ. Prog. Sustain. Energy 2023, 42, e13478. [Google Scholar] [CrossRef]
  13. da Costa, M.F.P.; Araújo, R.d.S.; Silva, A.R.; Pereira, L.; Silva, G.M.M. Predictive Artificial Neural Networks as Applied Tools in the Remediation of Dyes by Adsorption—A Review. Appl. Sci. 2025, 15, 2310. [Google Scholar] [CrossRef]
  14. EFSA Panel on Food Additives and Nutrient Sources added to Food (ANS). Scientific Opinion on the re-evaluation of Tartrazine (E 102) as a food additive. EFSA J. 2009, 7, 1331. [Google Scholar] [CrossRef]
  15. Cerón-Urbano, L.; Aguilar, C.J.; Diosa, J.E.; Mosquera-Vargas, E. Nanoparticles of the perovskite-structure CaTiO3 system: The synthesis, characterization, and evaluation of its photocatalytic capacity to degrade emerging pollutants. Nanomaterials 2023, 13, 2967. [Google Scholar] [CrossRef]
  16. Ahmed, M.; Mavukkandy, M.O.; Giwa, A.; Elektorowicz, M.; Katsou, E.; Khelifi, O.; Naddeo, V.; Hasan, S.W. Recent developments in hazardous pollutants removal from wastewater and water reuse within a circular economy. NPJ Clean Water 2022, 5, 1–25. [Google Scholar] [CrossRef]
  17. Dutta, S.; Gupta, B.; Srivastava, S.K.; Gupta, A.K. Recent advances on the removal of dyes from wastewater using various adsorbents: A critical review. Mater. Adv. 2021, 2, 4497–4531. [Google Scholar] [CrossRef]
  18. Rápó, E.; Tonk, S. Factors affecting synthetic dye adsorption; desorption studies: A review of results from the last five years (2017–2021). Molecules 2021, 26, 5419. [Google Scholar] [CrossRef] [PubMed]
  19. Aricov, L.; Leontieș, A.R. Adsorption of Bisphenol A from Water Using Chitosan-Based Gels. Gels 2025, 11, 180. [Google Scholar] [CrossRef] [PubMed]
  20. Kumar, M.; Tripathi, B.P.; Shahi, V.K. Crosslinked chitosan/polyvinyl alcohol blend beads for removal and recovery of Cd (II) from wastewater. J. Hazard. Mater. 2009, 172, 1041–1048. [Google Scholar] [CrossRef] [PubMed]
  21. Ho, Y.S.; McKay, G. Pseudo-second order model for sorption processes. Process Biochem. 1999, 34, 451–465. [Google Scholar] [CrossRef]
  22. Vargas, A.M.; Cazetta, A.L.; Martins, A.C.; Moraes, J.C.; Garcia, E.E.; Gauze, G.F.; Costa, W.F.; Almeida, V.C. Kinetic and equilibrium studies: Adsorption of food dyes Acid Yellow 6, Acid Yellow 23, and Acid Red 18 on activated carbon from flamboyant pods. Chem. Eng. J. 2012, 181, 243–250. [Google Scholar] [CrossRef]
  23. Haykin, S.S. Neural Networks and Learning Machines; Prentice Hall: New York, NY, USA, 2009. [Google Scholar]
  24. Li, D.; Huang, F.; Yan, L.; Cao, Z.; Chen, J.; Ye, Z. Landslide susceptibility prediction using particle-swarm-optimized multilayer perceptron: Comparisons with multilayer-perceptron-only, bp neural network, and information value models. Appl. Sci. 2019, 9, 3664. [Google Scholar] [CrossRef]
  25. Ekman, M. Learning Deep Learning; Addison-Wesley Professional: Redwood City, CA, USA, 2022. [Google Scholar]
  26. Cojocaru, C.; Samoila, P.; Pascariu, P. Chitosan-based magnetic adsorbent for removal of water-soluble anionic dye: Artificial neural network modeling and molecular docking insights. Int. J. Biol. Macromol. 2019, 123, 587–599. [Google Scholar] [CrossRef]
  27. Ramírez-Gómez, J.A.; Illescas, J.; Díaz-Nava, M.D.C.; Muro-Urista, C.; Martínez-Gallegos, S.; Rivera, E. Synthesis and Characterization of Clay Polymer Nanocomposites of P(4VP-co-AAm) and Their Application for the Removal of Atrazine. Polymers 2019, 11, 721. [Google Scholar] [CrossRef]
  28. Ozbay, S. Modified Backpropagation Algorithm with Multiplicative Calculus in Neural Networks. Elektron. Ir Elektrotechnika 2023, 29, 55–61. [Google Scholar] [CrossRef]
  29. Kim, Y.S.; Kim, M.K.; Fu, N.; Liu, J.; Wang, J.; Srebric, J. Investigating the impact of data normalization methods on predicting electricity consumption in a building using different artificial neural network models. Sustain. Cities Soc. 2025, 118, 105570. [Google Scholar] [CrossRef]
  30. Ngwenyama, M.K.; Gitau, M.N. Application of back propagation neural network in complex diagnostics and forecasting loss of life of cellulose paper insulation in oil-immersed transformers. Sci. Rep. 2024, 14, 6080. [Google Scholar] [CrossRef] [PubMed]
  31. Saheed, I.O.; Suah, F.B.M. Developing nano-micro size chitosan beads using imidazolium-based ionic liquid: A perspective. Int. J. Biol. Macromol. 2023, 241, 124610. [Google Scholar] [CrossRef]
  32. Li, Z.; Qin, R.; Xue, J.; Lin, C.; Jiang, L. Chitosan-Based Hydrogel Beads: Developments, Applications, and Challenges. Polymers 2025, 17, 920. [Google Scholar] [CrossRef] [PubMed]
  33. Chu, K.H.; Bollinger, J.C.; Kierczak, J. Pseudo-first-order kinetics in environmental adsorption: Why are there two distinct equations? Environ. Surfaces Interfaces 2025, 3, 191–195. [Google Scholar] [CrossRef]
  34. Fang, D.; Zhuang, X.; Huang, L.; Zhang, Q.; Shen, Q.; Jiang, L.; Xu, X.; Ji, F. Developing the new kinetics model based on the adsorption process: From fitting to comparison and prediction. Sci. Total Environ. 2020, 725, 138490. [Google Scholar] [CrossRef] [PubMed]
  35. Sangoremi, A.A. Adsorption Kinetic Models and Their Applications: A Critical Review. Int. J. Res. Sci. Innov. 2025, XII, 245–258. [Google Scholar] [CrossRef]
  36. Hubbe, M.; Azizian, S.; Douven, S. Implications of apparent pseudo-second-order adsorption kinetics onto cellulosic materials: A review. BioResources 2019, 14, 7582–7626. [Google Scholar] [CrossRef]
  37. Vasiliauskaite, V.; Antulov-Fantulin, N. Generalization of neural network models for complex network dynamics. Commun. Phys. 2024, 7, 348. [Google Scholar] [CrossRef]
  38. Yilmaz, S.; Ecer, U.; Ulaş, B.; Yagizatli, Y. Evaluation of metal-organic framework/layered double hydroxide-embedded sodium alginate beads for effective removal of tartrazine dye: A comparative analysis of RSM and ANN. Int. J. Biol. Macromol. 2025, 311, 144135. [Google Scholar] [CrossRef]
  39. Zaferani, S.P.G.; Amiri, M.K.; Amooey, A.A. Computational AI to predict and optimize the relationship between dye removal efficiency and Gibbs free energy in the adsorption process utilizing TiO2/chitosan-polyacrylamide composite. Int. J. Biol. Macromol. 2024, 264, 130738. [Google Scholar] [CrossRef]
  40. Momina, M.; Qurtulen, Q.; Salimi Shahraki, H.; Ahmad, A.; Zaheer, Z. Machine learning approaches to predict adsorption performance of sugarcane derived-carbon dot–based composite in the removal of dyes. Sep. Purif. Technol. 2024, 351, 127937. [Google Scholar] [CrossRef]
  41. Salahshoori, I.; Wang, Q.; Nobre, M.A.; Mohammadi, A.H.; Dawi, E.A.; Khonakdar, H.A. Molecular simulation-based insights into dye pollutant adsorption: A perspective review. Adv. Colloid Interface Sci. 2024, 333, 103281. [Google Scholar] [CrossRef]
Figure 1. Schematic representation of an MLP neural network architecture featuring two hidden layers.
Figure 1. Schematic representation of an MLP neural network architecture featuring two hidden layers.
Modelling 06 00149 g001
Figure 2. Adsorption capacity ( q t ) of the small sphere at 10, 30, and 50 °C. (a) 10 °C (b) 30 °C (c) 50 °C. Experimental data (black dots) are compared with predictions from kinetic models and the ANN, with the latter showing the best agreement, especially at higher temperatures.
Figure 2. Adsorption capacity ( q t ) of the small sphere at 10, 30, and 50 °C. (a) 10 °C (b) 30 °C (c) 50 °C. Experimental data (black dots) are compared with predictions from kinetic models and the ANN, with the latter showing the best agreement, especially at higher temperatures.
Modelling 06 00149 g002
Figure 3. Adsorption capacity ( q t ) of the medium sphere. (a) 10 °C (b) 30 °C (c) 50 °C. Experimental data (black dots) are compared with predictions from kinetic models and the ANN, where the latter provides the most accurate fit, particularly during the initial stages and near equilibrium.
Figure 3. Adsorption capacity ( q t ) of the medium sphere. (a) 10 °C (b) 30 °C (c) 50 °C. Experimental data (black dots) are compared with predictions from kinetic models and the ANN, where the latter provides the most accurate fit, particularly during the initial stages and near equilibrium.
Modelling 06 00149 g003
Figure 4. Adsorption capacity ( q t ) of the large sphere. (a) 10 °C (b) 30 °C (c) 50 °C. Experimental data (black dots) are compared with predictions from kinetic models and the ANN. The ANN and the Ho–McKay model show the closest agreement with the experimental data, whereas the Elovich model exhibits larger deviations.
Figure 4. Adsorption capacity ( q t ) of the large sphere. (a) 10 °C (b) 30 °C (c) 50 °C. Experimental data (black dots) are compared with predictions from kinetic models and the ANN. The ANN and the Ho–McKay model show the closest agreement with the experimental data, whereas the Elovich model exhibits larger deviations.
Modelling 06 00149 g004
Table 1. Size characterization of chitosan–PVA hydrogel beads used in the adsorption experiments.
Table 1. Size characterization of chitosan–PVA hydrogel beads used in the adsorption experiments.
Bead IdentificationDiameter Range (mm)Mean Diameter (mm)
Small2.00–2.202.1
Medium2.35–2.572.5
Large3.10–3.453.2
Table 2. Predicted equilibrium adsorption capacity ( q e ), time to reach equilibrium, and coefficient of determination ( R 2 ) for kinetic models and ANN in tartrazine removal using small chitosan–PVA hydrogel beads.
Table 2. Predicted equilibrium adsorption capacity ( q e ), time to reach equilibrium, and coefficient of determination ( R 2 ) for kinetic models and ANN in tartrazine removal using small chitosan–PVA hydrogel beads.
ModelTemperature (°C) q e (mg/g)Time (h) R 2
ANN10945400.9428
30934400.9721
50869400.8830
Lagergren10857570.9258
30897440.9729
50773480.8614
Ho-Mckay10943720.9701
30957+720.9929
50830+720.9335
Elovich10--0.9946
30--0.9752
50--0.9913
Table 3. Performance comparison of kinetic models and ANN in estimating q e and equilibrium time for tartrazine adsorption on medium-sized chitosan–PVA hydrogel beads, with corresponding R 2 values.
Table 3. Performance comparison of kinetic models and ANN in estimating q e and equilibrium time for tartrazine adsorption on medium-sized chitosan–PVA hydrogel beads, with corresponding R 2 values.
ModelTemperature (°C) q e (mg/g)Time (h) R 2
ANN10777630.9658
30823480.9114
50762320.9754
Lagergren10729+720.9405
30747490.9465
50721350.9716
Ho-Mckay10819+720.9732
30815+720.9829
50773+720.9958
Elovich10--0.9865
30--0.9946
50--0.9817
Table 4. Model-predicted adsorption capacity ( q e ) and equilibrium time for tartrazine removal using large chitosan–PVA hydrogel beads, highlighting the efficiency of the ANN approach.
Table 4. Model-predicted adsorption capacity ( q e ) and equilibrium time for tartrazine removal using large chitosan–PVA hydrogel beads, highlighting the efficiency of the ANN approach.
ModelTemperature (°C) q e (mg/g)Time (h) R 2
ANN10807480.9810
30818480.9876
50781400.9893
Lagergren10790+720.9682
30805620.9890
50759450.9938
Ho-Mckay10890+720.9869
30879+720.9973
50819+720.9951
Elovich10--0.9883
30--0.9792
50--0.9621
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

Domínguez Beltrán, S.; Miranda Piña, G.; Granda Gutiérrez, E.E.; Alejo Eleuterio, R.; García Rivas, J.L.; Reyes García, A. ANN-Based Prediction of Tartrazine Adsorption on Chitosan–Polyvinyl Alcohol Hydrogel Beads: A Comparison with Kinetic Models. Modelling 2025, 6, 149. https://doi.org/10.3390/modelling6040149

AMA Style

Domínguez Beltrán S, Miranda Piña G, Granda Gutiérrez EE, Alejo Eleuterio R, García Rivas JL, Reyes García A. ANN-Based Prediction of Tartrazine Adsorption on Chitosan–Polyvinyl Alcohol Hydrogel Beads: A Comparison with Kinetic Models. Modelling. 2025; 6(4):149. https://doi.org/10.3390/modelling6040149

Chicago/Turabian Style

Domínguez Beltrán, Salvador, Grisel Miranda Piña, Everardo Efrén Granda Gutiérrez, Roberto Alejo Eleuterio, José Luis García Rivas, and Angelica Reyes García. 2025. "ANN-Based Prediction of Tartrazine Adsorption on Chitosan–Polyvinyl Alcohol Hydrogel Beads: A Comparison with Kinetic Models" Modelling 6, no. 4: 149. https://doi.org/10.3390/modelling6040149

APA Style

Domínguez Beltrán, S., Miranda Piña, G., Granda Gutiérrez, E. E., Alejo Eleuterio, R., García Rivas, J. L., & Reyes García, A. (2025). ANN-Based Prediction of Tartrazine Adsorption on Chitosan–Polyvinyl Alcohol Hydrogel Beads: A Comparison with Kinetic Models. Modelling, 6(4), 149. https://doi.org/10.3390/modelling6040149

Article Metrics

Back to TopTop