October 09, 2026
Optimization of Chitosan and Alginate Biopolymers via “Machine Learning” for Functional Properties
Optimization of Chitosan and Alginate Biopolymers Via “Machine Learning” for Functional Properties
Luis Fernando da Silva Leite; Renato Máximo Sátiro
DOI: 10.22167/2675-6528-202603204
Article derived from a Course Conclusion Work (TCC), with content based on the student’s original work and adapted to the editorial format of the E&S Magazine with the support of the ResumeAI tool, an artificial intelligence solution developed by Instituto Pecege for textual synthesis and organization.
Summary
The development of biomaterials, such as chitosan and alginate hydrogels, has proven fundamental for regenerative medicine, but the optimization of their functional properties through empirical methods has been costly and time-consuming. A predictive paradigm based on Machine Learning and Genetic Algorithms was developed and validated to identify ideal synthesis conditions, aiming to maximize absorption capacity (Cw) and minimize mass loss (Mp). The methodology employed a database subjected to the Data Melting technique for kinetic evaluation, generating 6,930 longitudinal observations of varied formulations in three immersion media. Stratified cross-validation was used, and regression models were trained, with Random Forest standing out by achieving determination coefficients R² of 0.97 for Cw and 0.99 for Mp. In silico multi-objective optimization converged to an optimal theoretical formulation, capable of achieving 19.70 g/g absorption with 7.59% mass loss. The modeling identified that the use of deionized water, mild drying at 36 °C, and syringe addition with controlled flow optimized the structural stability of the polymer network. The proposed workflow represented a paradigm shift, replacing the traditional trial-and-error method with data-driven material design, which accelerated the technological translation of new biopolymers.
Keywords: Genetic Algorithms; Biomaterials; Machine Learning; Multi-objective Optimization; Chitosan.
1. Introduction
The development of biomaterials plays a central role in regenerative medicine and sustainable materials engineering. Among natural polymers, chitosan and alginate stand out for their biocompatibility, biodegradability, and low toxicity. These materials are widely studied in various applications, including tissue engineering (Li and Mooney, 2016; Ahmed and Ikram, 2016), controlled drug delivery systems (Kozlowska et al., 2025; Peppas et al., 2000), and advanced wound healing dressings (Dash et al., 2011).
The acquisition of biopolymers with ideal properties, such as high liquid absorption capacity (Cw) and low mass loss rate (Mp), intrinsically depends on the synthesis conditions. Operational variables, such as precursor concentration, flow rate, stirring speed, and drying temperature, directly influence the three-dimensional crosslinking of the polymer matrix (Peppas et al., 2000; Lee and Mooney, 2012). Traditionally, the design of these formulations is based on empirical trial-and-error approaches, known as Design of Experiments (DoE).
This empirical process is costly, consumes reagents and laboratory time, limiting the exploration of unconventional formulations and delaying the discovery of new biomaterials (Raccuglia et al., 2016). Furthermore, the swelling and hydrolytic degradation behavior is non-linear, requiring a deep understanding of the kinetics of fluid transport in polymeric chains, as postulated by classical thermodynamic models (Schott, 1985; Ritger and Peppas, 1987).
In this context, the application of Data Science and Machine Learning techniques has shown promise, especially when combined with Genetic Algorithms, to optimize the functional properties of materials (Breiman, 2001; Friedman, 2001; Malashin et al., 2024). These methods allow for the modeling of nonlinear relationships between multiple experimental parameters and the final properties of the biopolymer, overcoming the limitations of traditional approaches.
Additionally, the analysis of the behavior of hydrogels in different simulated fluids, such as water, simulated body fluid, and saline solution, provides crucial information about the hydrolytic stability of the materials and their viability for biological applications (Kokubo and Takadama, 2006; Kozlowska et al., 2025). The complexity and high dimensionality of process data hinder intuitive optimization in the production of biopolymers, making the application of predictive and evolutionary techniques essential to identify conditions that maximize material performance and favor the advancement of rational biomaterial design (Li and Mooney, 2016; Malashin et al., 2024).
The justification for this work lies in its relevance for the optimization of industrial and research and development processes, offering a predictive tool capable of reducing the experimentation cycle, saving resources, and accelerating the discovery of ideal biopolymer formulations. Given this scenario, the main objective of the present study is to develop and validate a predictive and optimizing model based on Machine Learning and Genetic Algorithms, capable of identifying the ideal conditions for obtaining chitosan and alginate biopolymers, aiming to maximize absorption and minimize mass loss.
2. Material and Methods
The present study was characterized as a quantitative and exploratory research, with a predictive and optimizing methodological approach. The main objective was to develop and validate a model based on Machine Learning and Genetic Algorithms, capable of identifying the ideal conditions for obtaining chitosan and alginate biopolymers, aiming to maximize absorption capacity (Cw) and minimize mass loss (Mp).
The unit of analysis consisted of chitosan and alginate hydrogels. The research used a secondary and proprietary database, from laboratory experiments, containing 6,930 longitudinal observations. Absorption and degradation measurements were monitored for up to 48 hours for each physical sample, tested in three immersion media: deionized water, 0.9% saline solution (SS), and simulated body fluid (SBF).
As this involves secondary data, resulting from physicochemical assays without the involvement of humans or animals, the study did not require submission to the Research Ethics Committee (CEP). The database was anonymized regarding industrial batch identifiers, preserving commercial confidentiality and retaining only the technical variables essential for modeling.
The construction of the analytical base involved the consolidation of seven primary matrices in CSV format. Six files contained longitudinal records of bench experiments, segregated by phenomenon type and immersion medium. The seventh file was a master dictionary with 66 distinct synthesis methodologies (M1 to M66), detailing physicochemical and operational parameters. For kinematic longitudinal modeling, the data were transformed from “wide” to “long” format using the “Data Melting” technique, extracting time as an explicit continuous variable (Time_h).
The independent variables included chemical composition, chitosan and alginate concentrations, reagent volumes, addition method, flow rate, stirring speeds, stirring times, drying temperature and time, vacuum usage, initial sample mass, and immersion medium. The dependent variables were Cw (g/g) and Mp (%). In the preprocessing step, systematic inspection was performed to identify missing values and inconsistencies. Missing flow rate values were filled with 0, and missing drying temperatures were imputed as 25 °C. The remaining continuous variables were imputed using the parametric mean, and categorical variables were imputed using the mode.
Categorical variables, such as immersion medium and addition method, were numerically transformed by “One-Hot Encoding”. Continuous variables were kept in their original scale. To avoid data leakage, all columns of intermediate wet mass or dry weight measurements were excluded from the “feature” matrix before training the models. Three supervised regression models were implemented: Multiple Linear Regression, “Random Forest Regressor” (Breiman, 2001), and “Gradient Boosting Regressor” (Friedman, 2001). Linear Regression served as the baseline.
Ensemble algorithms were chosen for their robustness to outliers, ability to handle non-linearity and high dimensionality. More recent gradient boosting implementations were not used due to the data volume and the need for parallel inference for the Genetic Algorithm. To ensure generalization, the 6,930-sample dataset was partitioned into Holdout (80% training, 20% testing), with random_state=42 fixed. Model accuracy was quantified by the Coefficient of Determination (R²), Mean Absolute Error (MAE), and Root Mean Squared Error (RMSE).
The architecture of “Random Forest” was exhaustively optimized via “Grid Search” with cross-validation. 300 decision trees (“n_estimators”) were selected and the maximum depth was limited to 20 (“max_depth”) as a pruning strategy. The prescriptive step employed a real-coded Genetic Algorithm (GA), where the trained predictive models acted as the evaluation function. The “fitness” objective function was designed with weighted scalarization (70% for Cw, 30% for Mp).
The evolutionary dynamics of the GA operated with a population of 100 individuals over 15 consecutive generations, applying elitism crossover strategies, tournament selection, and Gaussian mutations with an adaptive rate of 10%. The entire data engineering, modeling, and optimization flow was implemented in Python 3.11, using libraries such as Pandas, Scikit-learn, NumPy, Matplotlib, and Seaborn. Reproducibility was ensured by the deterministic imposition of random seeds.
3. Results and Discussion
The analysis of the research results revealed a comprehensive panorama on the optimization of chitosan and alginate biopolymers, highlighting the effectiveness of the approach based on Machine Learning and Genetic Algorithms to identify ideal synthesis conditions. Initially, the exploration of the dataset confirmed a robust experimental variability, covering diverse formulations and assay conditions. This diversity was crucial for model training, ensuring that predictions were based on a wide range of operational scenarios, which is fundamental for the generalization of the predictive model. The methodology employed allowed for an in-depth understanding of the complex interactions that govern the functional properties of hydrogels, overcoming the limitations of traditional empirical approaches.
The absorption (Cw) and mass loss (Mp) kinetics of the hydrogels exhibited a non-linear logarithmic behavior over the 48-hour test, with an asymptotic stabilization observed near the end of the period. This kinetic pattern is intrinsic to polymer swelling and degradation processes, as described by Schott (1985) and Ritger and Peppas (1987). The influence of the immersion medium was notable, with deionized water and simulated body fluid (SBF) inducing distinct expansions and degradation rates compared to the saline solution. Deionized water, for instance, promoted the highest swelling peaks, due to the strong osmotic gradient generated by the absence of ions, while SBF and saline solution suppressed expansion due to the electrostatic shielding effect of the present ions.
The structural stability of the hydrogel was not directly correlated with the initial dry mass of the samples, a crucial finding to justify the application of Artificial Intelligence models. Comparative analysis showed that the medians and interquartile ranges of the functional properties remained stable across all weight categories, from very low to very high. This suggests that the material’s functionality is primarily governed by the architecture of the polymer network formed during synthesis, including crosslinking and porosity, and not merely by its bulk mass. The observed “outliers”, representing structural instabilities under extreme conditions, were treated as legitimate stochastic variations and retained in training to increase the resilience of the algorithms.
Pearson’s correlation matrix revealed an extremely strong positive linear correlation between assay time and absorption capacity, ratifying the ascending kinetic profile. However, laboratory synthesis variables, such as chitosan and alginate concentrations and stirring parameters, showed correlation coefficients close to zero. This result is fundamental, as it indicates that the influence mechanisms of these variables are complex and nonlinear, not being captured by conventional parametric analyses. This finding reinforces the necessity and adequacy of using Machine Learning algorithms, which are capable of mapping high-dimensional patterns and nonlinear interactions, essential for biopolymer optimization.
Global Predictive Performance
Predictive modeling was performed separately for absorption capacity (Cw) and mass loss (Mp), employing an 80% training and 20% testing stratified “Holdout” partitioning. Among the supervised regression models tested, Random Forest Regressor demonstrated the best predictive performance, significantly outperforming Multiple Linear Regression, which served as the baseline. For the Cw variable, the model achieved a coefficient of determination R² of 0.9756, with a Mean Absolute Error (MAE) of 0.2115 and a Root Mean Squared Error (RMSE) of 0.5421. For the Mp variable, the results were even more promising, with an R² of 0.9906, MAE of 1.9430, and RMSE of 2.8740.
These coefficients of determination, close to unity, indicate that the Random Forest model captured the variability of the experimental data for both functional properties with high precision. The high consistency of predictive performance demonstrates that the algorithm successfully assimilated the complex physico-chemical interactions of the alginate and chitosan matrix, without incurring “overfitting”. Exhaustive hyperparameter optimization via “Grid Search”, with 300 decision trees and a maximum depth of 20, was crucial to ensure the statistical stability and generalization ability of the model, preventing the trees from becoming excessively complex and memorizing the stochastic noise of the laboratory data.
Observed vs. Predicted Comparison
The generalization capability and predictive accuracy of Machine Learning-based models were evaluated through regression analysis between the actual experimental data and the estimates generated by the Random Forest algorithm. For the Absorption Capacity (Cw), the model demonstrated high fidelity, with points gravitating concisely around the perfect prediction line, even in states of maximum swelling (above 15 g/g), where variability is inherently higher. This validates the modeling capability in mapping the complex behavior of biopolymers across the study’s operational range.
Regarding Mass Loss (Mp), the model’s behavior approached statistical ideality, with an R² greater than 0.99. The arrangement of data in defined clusters along the diagonal confirms that Random Forest successfully identified structural degradation patterns, regardless of the immersion medium or matrix composition. This high level of accuracy should not be interpreted as “overfitting”, but rather as a reflection of the intrinsic mathematical predictability of the hydrolytic degradation phenomenon, which follows well-defined and deterministic physical-chemical mass transport laws, analogous to high-precision models in aeronautical engineering.
It is important to consider that the coefficients of determination may be influenced by the categorical nature of the Tempo_h variable, which assumes only seven discrete levels. This temporal clustering tends to inflate the R², as the total variance is mostly explained by the distance between temporal groupings, which is easier to capture by any model. For future work, it is suggested to estimate multilevel models with repeated measures, treating Tempo_h as a fixed effect and the synthesis methodology as a random effect, allowing the decomposition of explained variance into marginal and conditional components, offering a more critical measure of the real explanatory power of the synthesis parameters (Nakagawa and Schielzeth, 2013).
Importance of Variables and Physical Interpretation
The analysis of the importance of variables, using the Gini impurity criterion, revealed an absolute predominance of Trial Time, concentrating more than 97% of the predictive relevance for both Cw and Mp variables. This result mathematically confirms that the target properties behave as time-dependent kinetic functions. However, the technical relevance of the model is not limited to capturing the temporal component, but lies in its ability to map the displacement of kinetic curves as a function of synthesis parameters. Variables such as Chitosan Concentration and Drying Temperature, although of lesser relative importance, act as structural modulators that define the function’s coefficients, influencing the asymptotic ceiling and the absorption or degradation rate constant.
To mitigate the documented bias of Gini importance, which tends to attribute greater relevance to continuous variables of high cardinality, two complementary interpretability techniques were applied: Permutation Importance and SHAP (SHapley Additive exPlanations) values (Lundberg and Lee, 2017). The three metrics converged to the same qualitative conclusion: Tempo_h concentrates almost all of the predictive importance, with values of 97.4% (Gini), 99.3% (Permutation), and 94.6% (SHAP) for Cw, and 99.1% (Gini), 100.0% (Permutation), and 96.2% (SHAP) for Mp. This robustly corroborates the interpretation that Random Forest learns the function Y = f(t,X), where time dictates the kinetic progression and chemical formulation modulates the structural parameters.
Among the synthesis variables, initial dry mass emerged as the second most relevant in the three metrics, contributing 2.2% to Cw and 1.2% to Mp in SHAP values. Formulation variables, such as alginate volume, chitosan concentration, and stirring time in CaCl2, individually contributed fractions below 1% of the total importance, but collectively are responsible for modulating the structural parameters of the kinetic curve. This analysis reinforces that the hydrogel’s functionality is primarily governed by the polymer network architecture, rather than the raw dimensional scale of the sample, validating the premise that material optimization requires multivariate mapping of synthesis conditions.
Multiobjective Genetic Algorithm Optimization
After the validation and robustness verification steps, the Random Forest model was integrated as a “fitness function” in a continuous encoding Genetic Algorithm. The main strategy was to explore the hyperplane of formulations to solve the intrinsic trade-off of the biomaterial, seeking to maximize absorption capacity (Cw) without compromising structural integrity (Mp). The evolutionary dynamics of the algorithm, operating with a population of 100 individuals over 15 generations, demonstrated stable asymptotic convergence, preceded by stochastic oscillations characteristic of heuristic search. The fluctuations observed in the Mp variable, especially between generations 4 and 10, highlight the algorithm’s selective pressure to balance polymer expansion and hydrolytic stability.
The response surface generated by Random Forest, complex yet optimizable, allowed the evolutionary process to identify a global performance maximum, balancing super-absorption with structural resilience. The heuristic optimization designed an unprecedented parametric solution, resulting in an optimal theoretical formulation. This formulation is capable of achieving an absorption capacity of 19.70 g/g with a mass loss limited to 7.59%, representing a superior balance to empirically obtained samples. The specific processing conditions prescribed by the algorithm include mild drying at 36 °C, syringe addition method with a controlled flow rate of 48 mL/h, and immersion in deionized water for approximately 41.4 hours equilibrium time, being fundamental for maintaining the hydrogel’s structural stability.
The transition from the initial population’s solution space to the Optimized Pareto Frontier illustrates the impact of the prescriptive algorithm. While the initial population, randomly generated, exhibited high dispersion and suboptimal results, the application of evolutionary pressure shifted the solution set towards the region of maximum multi-objective efficiency. This advancement demonstrates the model’s capability to rationally guide material design, identifying formulations that maximize desired performance and minimize undesired effects, representing a paradigm shift from traditional trial-and-error methods, thereby accelerating the technological translation of new biopolymers.
Comparative Discussion with Recent Literature
The results obtained in this study are in line with a growing body of literature that applies Machine Learning to the optimization of polymeric biomaterials. Butler et al. (2018) already highlighted the potential of predictive models to accelerate the rational design of materials, a central thesis that this work corroborates. The systematic review by Malashin et al. (2024) on the optimization of biopolymer manufacturing processes via Machine Learning emphasizes the effectiveness of Random Forest and ensemble algorithms in handling the complexity and variability inherent in these processes, aligning with the finding that Random Forest outperformed Linear Regression as an approximator of the synthesis-performance response surface.
In the specific field of alginate-based hydrogels, Sarah et al. (2025) employed Random Forest to predict the viscosity of alginate, gelatin, and nanofibrillated cellulose “bioinks” from compositional parameters, achieving an R² of 0.99. This level of precision is equivalent to that reported here for Cw and Mp, reinforcing the robustness of the approach. Additionally, Xu et al. (2024) combined classification, regression, and Bayesian optimization algorithms to optimize alginate/polyacrylamide hydrogels, identifying the relative importance of formulation variables on the resulting mechanical properties. These works reinforce the methodological suitability of choosing Random Forest as a reference model for multiparametric hydrogel systems, validating the proposed approach.
In summary, the present study demonstrated the viability and effectiveness of a predictive and optimizing paradigm based on Machine Learning and Genetic Algorithms for the design of chitosan and alginate biopolymers. The developed models achieved high accuracy in predicting absorption capacity and mass loss, identifying the synthesis conditions that maximize the functional performance of the materials. The in silico multi-objective optimization converged to an optimal theoretical formulation, which offers a superior balance between high absorption and low mass loss, highlighting the transformative potential of data science in accelerating the discovery and development of new biomaterials.
4. Conclusion
This study consolidated the effectiveness of data science and machine learning as an advanced paradigm for modern Materials Engineering. The development and validation of a predictive and optimizing model based on Machine Learning and Genetic Algorithms were verified, capable of identifying the ideal conditions for obtaining chitosan and alginate biopolymers, aiming to maximize absorption capacity (Cw) and minimize mass loss (Mp). Predictive modeling, using the Random Forest algorithm, demonstrated exceptional generalization capability, with coefficients of determination R² of 0.97 for Cw and 0.99 for Mp, capturing the nonlinear correlations between synthesis parameters and functional properties. In silico multi-objective optimization converged to an optimal theoretical formulation, capable of achieving 19.70 g/g absorption with 7.59% mass loss. It was identified that the use of deionized water, mild drying at 36 °C, and syringe addition with controlled flow optimize the structural stability of the polymer network. The proposed workflow represents a paradigm shift, replacing the traditional trial-and-error method with data-driven materials design, which accelerates the technological translation of new biopolymers.
Despite the high statistical fidelity achieved, the solutions identified by the algorithm should be interpreted as in silico computational design guidelines, requiring direct experimental validation for confirmation of reproducibility and industrial scaling. The predictive model’s generalization capability is confined to the original experimental domain, and variations in raw material sources, production scale, or environmental conditions not represented in the training base may reduce the accuracy of predictions in other contexts. It is suggested that future studies consider additional physicochemical properties of the raw material, such as the degree of chitosan deacetylation and the molecular weight distribution of alginate, to increase model granularity. It is also recommended to conduct the physical synthesis in a laboratory environment using the exact formulation prescribed by heuristic optimization, aiming to consolidate the closure of the cycle between computational design and final empirical validation, in addition to estimating multilevel models with repeated measures and the empirical comparison of Random Forest against more recent gradient boosting implementations.
Bibliographic References
Ahmed e Ikram, 2016 [Referência completa não encontrada no documento original]
Breiman, L. 2001. Random forests. Machine Learning 45(1): 5-32.
Butler, K.T.; Davies, D.W.; Cartwright, H.; Isayev, O.; Walsh, A. 2018. Machine learning for molecular and materials science. Nature 559: 547-555.
Dash, M.; Chiellini, F.; Ottenbrite, R.M.; Chiellini, E. 2011. Chitosan-A versatile semi-synthetic polymer in biomedical applications. Progress in Polymer Science 36: 981-1014.
Friedman, J.H. 2001. Greedy function approximation: a gradient boosting machine. Annals of Statistics 29(5): 1189-1232.
Kokubo, T.; Takadama, H. 2006. How useful is SBF in predicting in vivo bone bioactivity? Biomaterials 27(15): 2907-2915.
Kozlowska et al., 2025 [Referência completa não encontrada no documento original]
Lee, K.Y.; Mooney, D.J. 2012. Alginate: properties and biomedical applications. Progress in Polymer Science 37: 106-126.
Li, J.; Mooney, D.J. 2016. Designing hydrogels for controlled drug delivery. Nature Reviews Materials 1: 16071.
Lundberg, S.M.; Lee, S.-I. 2017. A unified approach to interpreting model predictions. Advances in Neural Information Processing Systems 30: 4765-4774.
Malashin, I.; Martysyuk, D.; Tynchenko, V.; Gantimurov, A.; Semikolenov, A.; Nelyub, V.; Borodulin, A. 2024. Machine learning-based process optimization in biopolymer manufacturing: a review. Polymers 16(23): 3368.
Nakagawa, S.; Schielzeth, H. 2013. A general and simple method for obtaining R² from generalized linear mixed-effects models. Methods in Ecology and Evolution 4(2): 133-142.
Peppas, N.A.; Huang, Y.; Torres-Lugo, M.; Ward, J.H.; Zhang, J. 2000. Hydrogels in pharmaceutical formulations. European Journal of Pharmaceutics and Biopharmaceutics 50: 27-46.
Raccuglia, P.; Dineen, K.C.; Haverkamp, K.; Norquist, A.J.; Schrier, J. 2016. Machine-learning-assisted materials discovery using failed experiments. Nature 533: 73-76.
Ritger, P.L.; Peppas, N.A. 1987. A simple equation for description of solute release I. Fickian and non-Fickian release from non-swellable devices in the form of slabs, spheres, cylinders or discs. Journal of Controlled Release 5(1): 23-36.
Sarah, R.; Schimmelpfennig, K.; Rohauer, R.; Lewis, C.L.; Limon, S.M.; Habib, A. 2025. Characterization and machine learning-driven property prediction of a novel hybrid hydrogel bioink considering extrusion-based 3D bioprinting. Gels 11(1): 45.
Schott, H. 1985. Kinetics of swelling of polymers and their gels. Journal of Pharmaceutical Sciences 74(4): 483-491.
Xu, S.; Chen, X.; Wang, S.; Chen, Z.; Pan, P.; Huang, Q. 2024. Integrating machine learning for the optimization of polyacrylamide/alginate hydrogel. Regenerative Biomaterials 11: rbae109.
Article originating from the Final Course Project of the Specialization in Data Science and Analytics of the MBA USP/Esalq
To learn more about the course, click here and access the MBX Academy platform