Data-Driven Prediction of Limnospira platensis (Spirulina) Biomass from Experimental Time-Series Data
Abstract
1. Introduction
2. Materials and Methods
2.1. Experimental Procedures
2.1.1. Biological Material and Culture Media
2.1.2. Preparation and Pre-Treatment of Industrial By-Product Media
2.1.3. Cultivation System Design and Inoculation Procedure
2.1.4. Sampling Procedures and Calculation of Growth Parameters
2.2. Algorithm Description
2.2.1. Problem Formulation and Leakage-Safe Evaluation
- : biomass concentration (dry weight, g L−1);
- : cultivation day at sampling point ;
- : culture pH at sampling point ;
- : vector of time-invariant treatment descriptors for experiment .
- : cultivation day at sampling point (temporal basis);
- : squared cultivation day (quadratic temporal basis);
- : log-transformed cultivation day (logarithmic temporal basis);
- : sampling interval in days,;
- : culture pH at sampling point ;
- : pH change between consecutive sampling points, ;
- : current biomass concentration;
- : biomass at the previous sampling point (first lag);
- : biomass two sampling points prior (second lag);
- : biomass change (first difference),
- : rolling mean of past biomass values,
- which includes only and explicitly excludes the current value .
- : vinegar dose (mL);
- : cultivation temperature (°C);
- : binary indicator for must supplementation;
- : binary indicator for vinegar supplementation;
- : categorical condition label, with experimental conditions.
2.2.2. Model Training with Group-Wise Cross-Validation
- Training set: all samples from experiments ;
- Test set: all samples from experiment .
- numerical features with missing values are imputed using the training-fold median;
- the categorical condition variable is one-hot encoded using an encoder fitted on the training fold.
2.2.3. Performance Metrics
2.2.4. Predictive Model Description
- Temporal basis functions (4 features):
- Day: cultivation day d(g,t)
- Day_sq: quadratic term d(g,t)2
- Day_log: log-transformed term log(1 + d(g,t))
- delta_day: sampling interval Δd(g,t) = d(g,t) − d(g,t−1)
- pH dynamics (2 features):
- pH_mean: culture pH at sampling point t
- pH_diff: pH change ΔpH(g,t) = pH(g,t) − pH(g,t−1)
- Biomass history (5 features):
- DW_t: current biomass y(g,t)
- DW_lag1: first lag y(g,t−1)
- DW_lag2: second lag y(g,t−2)
- DW_diff_t: first difference Δy(g,t) = y(g,t) − y(g,t−1)
- DW_roll3_t: rolling mean of the three previous measurements, computed as (1/3)·[y(g,t−1) + y(g,t−2) + y(g,t−3)]. This is implemented as shift(1).rolling(3, min_periods = 3).mean(), ensuring that only past values are aggregated and the current observation y(g,t) is excluded.
- Treatment descriptors (6 features):
- vinegar_ml: vinegar dose (mL), parsed from experiment name
- temperature_C: cultivation temperature (°C), when specified
- has_must: binary indicator for must supplementation
- has_vinegar: binary indicator for vinegar supplementation
- phase_id: phase identifier for within-day repeated measurements
- condition: categorical condition label (4 levels)
- Numerical features (16 variables): missing values imputed using the median (SimpleImputer(strategy = “median”))
- Categorical feature (condition): missing values imputed using the most frequent category, then one-hot encoded with handle_unknown = “ignore” to prevent failures when a category is absent from a training fold
- Ridge regression: α = 1.0 (linear baseline with L2 regularization)
- Random Forest: 500 trees, min_samples_leaf = 2
- Gradient Boosting: 500 boosting iterations, learning rate η = 0.05, maximum depth = 3, subsample fraction = 0.9
3. Results and Discussion
3.1. DW and pH Responses Across Cultivation
3.2. Multi-Horizon DW Forecasting Performance
3.3. Model Interpretability and Feature Importance
4. Conclusions
Supplementary Materials
Author Contributions
Funding
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| DW | Dry Weight |
| GB | Gradient Boosting |
| LOEO | Leave-One-Experiment-Out |
| MAE | Mean Absolute Error |
| MAPE | Mean Absolute Percentage Error |
| OOF | Out-of-Fold |
| PBR | Photobioreactor |
| PI | Prediction Interval |
| RF | Random Forest |
| RMSE | Root Mean Squared Error |
| SD | Standard Deviation |
| JM | Jourdan 100× medium |
| V | Vinegar |
| VM | vinegar–must stream |
| OD | optical density (OD-based procedure, OD at 680 nm) |
| PAR | photosynthetically active radiation |
| PVDF | polyvinylidene fluoride |
| UV–Vis | ultraviolet–visible |
References
- Sinetova, M.; Kupriyanova, E.; Los, D. Spirulina/Arthrospira/Limnospira—Three Names of the Single Organism. Foods 2024, 13, 2762. [Google Scholar] [CrossRef] [Scilit]
- Roussel, T.; Halary, S.; Duval, C.; Piquet, B.; Cadoret, J.-P.; Vernès, L.; Bernard, C.; Marie, B. Monospecific renaming within the cyanobacterial genus Limnospira (Spirulina) and consequences for food authorization. J. Appl. Microbiol. 2023, 134, lxad159. [Google Scholar] [CrossRef] [Scilit]
- Lutzu, G.A.; Marin, M.A.; Concas, A.; Dunford, N.T. Growing Picochlorum oklahomensis in hydraulic fracking wastewater supplemented with animal wastewater. Water Air Soil Pollut. 2020, 231, 457. [Google Scholar] [CrossRef] [Scilit]
- Russo, N.P.; Ballotta, M.; Usai, L.; Torre, S.; Giordano, M.; Fais, G.; Casula, M.; Dessì, D.; Nieri, P.; Damergi, E.; et al. Mixotrophic Cultivation of Arthrospira platensis (Spirulina) under Salt Stress: Effect on Biomass Composition, FAME Profile and Phycocyanin Content. Mar. Drugs 2024, 22, 381. [Google Scholar] [CrossRef] [Scilit]
- Cosenza, A.; Lima, S.; Gurreri, L.; Mancini, G.; Scargiali, F. Microalgae in the Mediterranean Area: A Geographical Survey Outlining the Diversity and Technological Potential. Algal Res. 2024, 82, 103669. [Google Scholar] [CrossRef] [Scilit]
- Franzoso, L.; Usai, L.; Allodi, R.; Fais, G.; Dessì, D.; Soto-Ramirez, R.; Cosenza, B.; Damergi, A.; Lutzu, G.A.; Concas, A. Mixotrophic Cultivation of Limnospira (Spirulina) platensis Using Early-Stage Fig Processing Wastewater: Effects on Biomass Composition, Antioxidants and Phycocyanin. Mar. Drugs 2026, 24, 163. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Huo, S.; Kong, M.; Zhu, F.; Qian, J.; Huang, D.; Chen, P.; Ruan, R. Co-Culture of Chlorella and Wastewater-Borne Bacteria in Vinegar Production Wastewater: Enhancement of Nutrients Removal and Influence of Algal Biomass Generation. Algal Res. 2020, 45, 101744. [Google Scholar] [CrossRef] [Scilit]
- Ma, G.; Gao, Q.; Yuan, L.; Chen, Y.; Cai, Z.; Zhang, L.; Hu, J.; Wang, Y.; Wu, S.; Sun, Y. Spirulina (Arthrospira) Cultivation in Photobioreactors: From Biochemistry and Physiology to Scale-Up Engineering. Bioresour. Technol. 2025, 423, 132259. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Galang, M.G.K.; Chen, J.; Cobb, K.; Zarra, T.; Ruan, R. Intelligent Predictive Modeling for the Optimization of Advanced Algal Photobioreactors in Greenhouse Gas Capture and Utilization. J. Environ. Manag. 2025, 381, 125275. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Aowtrakool, N.; Sopitthummakhun, A.; Laomettachit, T.; Ruengjitchatchawalya, M. A Dynamic Model for Predicting Biomass and Phycocyanin Yields in Arthrospira (Spirulina) platensis: A Guidance for Effective Batch Cultivation. Algal Res. 2024, 83, 103709. [Google Scholar] [CrossRef] [Scilit]
- Leca, M.A.; Beigbeder, J.B.; Castel, L.; Sambusiti, C.; Le Guer, Y.; Monlau, F. Cultivation of Arthrospira platensis Using Different Agro-Industrial Liquid Anaerobic Digestates Diluted with Geothermal Water: A Sustainable Culture Strategy. Algal Res. 2024, 77, 103348. [Google Scholar] [CrossRef] [Scilit]
- Amanna, B.; Bahri, P.A.; Moheimani, N.R. Application of Computational Fluid Dynamics in Optimizing Microalgal Photobioreactors. Algal Res. 2024, 83, 103718. [Google Scholar] [CrossRef] [Scilit]
- Altriki, A.; Ali, I.; Razzak, S.A.; Ahmad, I.; Farooq, W. Assessment of CO2 Biofixation and Bioenergy Potential of Microalga Gonium pectorale through Biomass Pyrolysis, and Elucidation of Pyrolysis Reaction via Kinetics Modeling and Artificial Neural Network. Front. Bioeng. Biotechnol. 2022, 10, 925391. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Hossain, S.Z.; Sultana, N.; Razzak, S.A.; Hossain, M.M. Modeling and Multi-Objective Optimization of Microalgae Biomass Production and CO2 Biofixation Using Hybrid Intelligence Approaches. Renew. Sustain. Energy Rev. 2022, 157, 112016. [Google Scholar] [CrossRef] [Scilit]
- Singh, V.; Verma, M.; Chivate, M.S.; Mishra, V. Machine Learning-Based Optimisation of Microalgae Biomass Production by Using Wastewater. J. Environ. Chem. Eng. 2023, 11, 111387. [Google Scholar] [CrossRef] [Scilit]
- Kumar, R.R.; Sarkar, D.; Sen, R. Simultaneously Maximizing Microalgal Biomass and Lipid Productivities by Machine Learning-Driven Modeling, Global Sensitivity Analysis and Multi-Objective Optimization for Sustainable Biodiesel Production. Appl. Energy 2024, 358, 122597. [Google Scholar] [CrossRef] [Scilit]
- Cosenza, B.; Allodi, R.; Usai, L.; Minardi, R.; Cosenza, A.; Soto-Ramirez, R.; Concas, A.; Lutzu, G.A. Advanced Feature Engineering and Gradient Boosting Optimization for Predicting Limnospira platensis Growth Dynamics under Mixotrophic Conditions Using Agro-Industrial Byproducts. Algal Res. 2025, 93, 104445. [Google Scholar] [CrossRef] [Scilit]
- Yeh, Y.C.; Syed, T.; Brinitzer, G.; Frick, K.; Schmid-Staiger, U.; Haasdonk, B.; Tovar, G.E.M.; Krujatz, F.; Mädler, J.; Urbas, L. Improving Microalgae Growth Modeling of Outdoor Cultivation with Light History Data Using Machine Learning Models: A Comparative Study. Bioresour. Technol. 2023, 390, 129882. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Santos, J.M.; Zelioli, I.A.M.; Guimaraes, E.E.X.; Freitas, A.C.D.; Mariano, A.P. Supercritical Water Gasification Thermodynamic Study and Hybrid Modeling of Machine Learning with the Ideal Gas Model: Application to Gasification of Microalgae Biomass. Energy 2024, 291, 130287. [Google Scholar] [CrossRef] [Scilit]
- Syed, T.; Krujatz, F.; Ihadjadene, Y.; Mühlstädt, G.; Hamedi, H.; Mädler, J.; Urbas, L. A Review on Machine Learning Approaches for Microalgae Cultivation Systems. Comput. Biol. Med. 2024, 172, 108248. [Google Scholar] [CrossRef] [Scilit]
- Al-Huqail, A.; Mohammed, K.J.; Suhatril, M.; Almujibah, H.; Toghroli, S.; Alnahdi, S.S.; Ponnore, J.J. Optimizing Microalgal Biomass Conversion into Carbon Materials and Their Application in Water Treatment: A Machine Learning Approach. Carbon Lett. 2025, 35, 861–880. [Google Scholar] [CrossRef] [Scilit]
- Fu, Y.; Zhang, Q.; Tan, Z.; Yu, S.; Zhang, Y. Predicting Harvesting Efficiency of Microalgae with Magnetic Nanoparticles Using Machine Learning Models. J. Environ. Chem. Eng. 2025, 13, 115406. [Google Scholar] [CrossRef] [Scilit]
- Jin, M.; Xu, Y.; Chen, J.; Wei, X.; Yu, G.; Feng, M.; Cao, W.; Guo, L. A comprehensive universal model framework of microalgae growth dynamics for photobioreactor scaling-up design and optimization. Energy Convers. Manag. 2024, 299, 117832. [Google Scholar] [CrossRef] [Scilit]
- Hajinajaf, N.; Fallahi, A.; Eustance, E.; Sarnaik, A.; Askari, A.; Najafi, M.; Davis, R.W.; Rittmann, B.E.; Varman, A.M. Managing carbon dioxide mass transfer in photobioreactors for enhancing microalgal biomass productivity. Algal Res. 2024, 80, 103506. [Google Scholar] [CrossRef] [Scilit]
- Kumar, M.; Brar, A.; Kumari, R.; Vivekanand, V.; Pareek, N. Advancements in photobioreactor designs for development of microalgal biorefinery toward integrated remediation of industrial wastewater and product recovery. 3 Biotech 2025, 15, 274. [Google Scholar] [CrossRef] [Scilit]
- Wu, Y.; Shan, L.; Zhao, W.; Lu, X. Harnessing Artificial Intelligence to Revolutionize Microalgae Biotechnology: Unlocking Sustainable Solutions for High-Value Compounds and Carbon Neutrality. Mar. Drugs 2025, 23, 184. [Google Scholar] [CrossRef] [Scilit]
- Breiman, L.; Friedman, J.H.; Olshen, R.A.; Stone, C.J. Classification and Regression Trees; Chapman & Hall: New York, NY, USA, 1984. [Google Scholar]
- Friedman, J.H. Greedy Function Approximation: A Gradient Boosting Machine. Ann. Stat. 2001, 29, 1189–1232. [Google Scholar] [CrossRef] [Scilit]
- Chen, T.; Guestrin, C. XGBoost: A Scalable Tree Boosting System. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining; Association for Computing Machinery: New York, NY, USA, 2016; pp. 785–794. [Google Scholar] [CrossRef] [Scilit]
- Anyanwu, R.C.; Rodriguez, C.; Durrant, A.; Olabi, A.G. Evaluation of Growth Rate and Biomass Productivity of Scenedesmus quadricauda and Chlorella vulgaris under Different LED Wavelengths and Photoperiods. Sustainability 2022, 14, 6108. [Google Scholar] [CrossRef] [Scilit]
- Trenkenshu, R.P. Calculation of the Specific Growth Rate of Microalgae. Mar. Biol. J. 2019, 4, 100–108. [Google Scholar] [CrossRef] [Scilit]
- Ansari, F.A.; Hassan, H.; Mahmud, U.; Rawat, I.; Bux, F. Cultivation of Arthrospira platensis in Non-Conventional Water Resources: A Comparative Analysis of Biomass Productivity and Chemical Constituents. Biomass Bioenergy 2025, 202, 108163. [Google Scholar] [CrossRef] [Scilit]
- Rizzoli, M.; Lutzu, G.A.; Usai, L.; Fais, G.; Dessì, D.; Soto-Ramirez, R.; Cosenza, B.; Concas, A. Photoautotrophic Batch Cultivation of Limnospira (Spirulina) platensis: Optimizing Biomass Productivity and Bioactive Compound Synthesis through Salinity and pH Modulation. Mar. Drugs 2025, 23, 281. [Google Scholar] [CrossRef] [Scilit]
- Baraldi, L.; Usai, L.; Torre, S.; Fais, G.; Casula, M.; Dessi, D.; Nieri, P.; Concas, A.; Lutzu, G.A. Dairy wastewaters to promote mixotrophic metabolism in Limnospira (Spirulina) platensis: Effect on biomass composition, phycocyanin content, and fatty acids methyl ester profile. Life 2025, 15, 184. [Google Scholar] [CrossRef] [Scilit]
- Ramirez-Perez, J.C.; Janes, H.W. Impact of salinity on the kinetics of CO2 fixation by Spirulina platensis cultivated in semi-continuous photobioreactors. Eclética Quím. J. 2021, 46, 21–34. [Google Scholar] [CrossRef] [Scilit]
- Razzak, S.A.; Bahar, K.; Islam, K.M.O.; Haniffa, A.K.; Faruque, M.O.; Hossain, S.M.Z.; Hossain, M.M. Microalgae cultivation in photobioreactors: Sustainable solutions for a greener future. Green Chem. Eng. 2024, 5, 418–439. [Google Scholar] [CrossRef] [Scilit]
- Meenatchisundaram, K.; Gowd, S.C.; Lee, J.; Barathi, S.; Rajendran, K. Data-Driven Model Development for Prediction and Optimization of Biomass Yield of Microalgae-Based Wastewater Treatment. Sustain. Energy Technol. Assess. 2024, 63, 103670. [Google Scholar] [CrossRef] [Scilit]
- Rayamajhi, V.; Hussain, M.; Shin, H.; Jung, S. Recent Advances in the Application of Artificial Intelligence in Microalgal Cultivation. Processes 2025, 13, 3764. [Google Scholar] [CrossRef] [Scilit]






| Experimental Phase | Objective | Culture Medium/Condition | Variable(s) Tested | Experimental Structure |
|---|---|---|---|---|
| Phase I—Waste screening | Assess suitability of waste streams as sole culture media | JM (control); V; VM | Type of culture liquid | 3 conditions × 4 replicates; ~2-week batch cultivation |
| Phase II—Mixotrophic stimulation | Evaluate effect of organic carbon supplementation on established cultures | JM + V | Vinegar dosage (0.5, 1, 2 mL per 150 mL culture) | 1 week photoautotrophic + 1-week mixotrophic; 3 conditions × 4 replicates |
| Phase III—Temperature × mixotrophy | Investigate interaction between temperature and mixotrophic growth | JM + V | Temperature values (25 °C, 28 °C, 30 °C) at fixed vinegar dose (1 mL per 150 mL culture) | Temperature applied from day 0; mixotrophy induced at week 2 (vinegar addition); 3 conditions × 4 replicates |
| Horizon | Model | RMSE (g L−1) | MAE (g L−1) | R2 | MAPE (%) |
|---|---|---|---|---|---|
| 1 | Gradient Boosting | 0.5356 | 0.3256 | 0.9150 | 12.98 |
| 1 | Random Forest | 0.5933 | 0.3593 | 0.8957 | 14.68 |
| 1 | Ridge | 0.8948 | 0.7070 | 0.7627 | 58.95 |
| 1 | Persistence | 0.9574 | 0.6624 | 0.7283 | 22.88 |
| 2 | Gradient Boosting | 0.4623 | 0.3490 | 0.9353 | 13.92 |
| 2 | Random Forest | 0.5488 | 0.3973 | 0.9088 | 18.89 |
| 2 | Ridge | 1.0265 | 0.8483 | 0.6810 | 67.79 |
| 2 | Persistence | 1.3354 | 1.0459 | 0.4601 | 33.26 |
| 3 | Gradient Boosting | 0.7769 | 0.5516 | 0.8143 | 30.59 |
| 3 | Random Forest | 0.7909 | 0.6088 | 0.8075 | 35.75 |
| 3 | Ridge | 1.0220 | 0.8668 | 0.6786 | 56.12 |
| 3 | Persistence | 1.6973 | 1.3573 | 0.1136 | 40.26 |
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.
Share and Cite
Cosenza, B.; Pomaré, M.; Concas, A.; Cravotto, G.; Cosenza, A.; Peroni, C.V.; Usai, L.; Lutzu, G.A. Data-Driven Prediction of Limnospira platensis (Spirulina) Biomass from Experimental Time-Series Data. Biomass 2026, 6, 41. https://doi.org/10.3390/biomass6030041
Cosenza B, Pomaré M, Concas A, Cravotto G, Cosenza A, Peroni CV, Usai L, Lutzu GA. Data-Driven Prediction of Limnospira platensis (Spirulina) Biomass from Experimental Time-Series Data. Biomass. 2026; 6(3):41. https://doi.org/10.3390/biomass6030041
Chicago/Turabian StyleCosenza, Bartolomeo, Marco Pomaré, Alessandro Concas, Giancarlo Cravotto, Alida Cosenza, Catalina Valencia Peroni, Luca Usai, and Giovanni Antonio Lutzu. 2026. "Data-Driven Prediction of Limnospira platensis (Spirulina) Biomass from Experimental Time-Series Data" Biomass 6, no. 3: 41. https://doi.org/10.3390/biomass6030041
APA StyleCosenza, B., Pomaré, M., Concas, A., Cravotto, G., Cosenza, A., Peroni, C. V., Usai, L., & Lutzu, G. A. (2026). Data-Driven Prediction of Limnospira platensis (Spirulina) Biomass from Experimental Time-Series Data. Biomass, 6(3), 41. https://doi.org/10.3390/biomass6030041

