Artificial Intelligence (AI) approach for the quantification of C-phycocyanin in Spirulina platensis: Hybrid stacking-ensemble model based on machine learning and deep learning
The rising demand for natural pigments in nutraceuticals, pharmaceuticals, and cosmetics has highlighted the need for efficient, non-destructive methods to predict C-phycocyanin (CPC) concentrations in Spirulina platensis . Conventional extraction and quantification methods are labour-intensive, environmentally harmful, and time-consuming. This study proposes a hybrid stacking-ensemble model integrating convolutional neural networks (CNN) for automated feature extraction with both Support Vector Machine (SVM) and eXtreme gradient boosting (XGBoost) as base models and multiple meta-regressor models. The meta-regressors include Ridge regression with built-in cross-validation (RidgeCV), Linear Regression (LR), Support Vector Regressor (SVR), Decision Tree (DT), Random Forest (RF), and XGBoost. The datasets comprising 11,000 images of biomass and extracted CPC were captured under varying lighting conditions and device setups to reflect real-world conditions accurately. While digital cameras achieved higher accuracy, smartphones provide competitive results under both covered and light-disturbed conditions, demonstrating smartphones' scalability for real-time applications. While XGBoost as a meta-regressor (standard deviation (Std) = 0.0052, R 2 Train = 0.9985, R 2 Val = 0.9983 with 95 % confident interval (CI) [0.9979, 0.9986]), demonstrates marginal improvements over individual models such as SVM (Std = 0.0065, R 2 Train = 0.9975, R 2 Val = 0.9973 with 95 % CI [0.9970, 0.9976]) and XGBoost (Std = 0.0053, R 2 Train = 0.9987, R 2 Val = 0.9982 with 95 % CI [0.9978, 0.9986]), yet ensemble approach offers lower variability, reduced overfitting, enhanced stability, and generalisation. CPC datasets delivered better accuracy but were competitive against biomass datasets. Thus, biomass datasets are more feasible in real-world applications by excluding the need for extraction steps, enabling rapid, reliable, and accurate CPC concentration predictions. • Hybrid stacking-ensemble model outperformed individual models (SVM and XGBoost). • XGBoost as meta-regressor consistently achieves good performance and generalisation. • CPC datasets delivered better accuracy but competitive against biomass datasets. • Smartphones provide scalable, real-time solutions for CPC predictions. • All proposed models successfully predict CPC concentrations with high accuracy.
Authors
- Zengling Ma (ORCID: https://orcid.org/0000-0002-4165-0339)
- Koji Iwamoto (ORCID: https://orcid.org/0000-0002-5987-0698)
- Pau Loke Show (ORCID: https://orcid.org/0000-0002-0913-5409)
- Jun Wei Roy Chong (ORCID: https://orcid.org/0000-0002-2437-5611)
- Huong-Yong Ting (ORCID: https://orcid.org/0000-0001-7950-2676)
- Kuan Shiong Khoo (ORCID: https://orcid.org/0000-0002-5369-2675)
Institutions
- Wenzhou University (CN)
- University of Nottingham Malaysia Campus (MY)
- Khalifa University of Science and Technology (AE)
- University of Technology Sarawak
- University of Technology Malaysia (MY)
- Yuan Ze University (TW)
Publication Details
- Journal
- Ecological Informatics
- Published
- 2025-05-08
- DOI
- https://doi.org/10.1016/j.ecoinf.2025.103186
- Citations
- 4
- Primary Topic
- Water Quality Monitoring and Analysis
- Type
- article
- Field-Weighted Citation Impact
- 3.99