Non-Destructive Detection of Soluble Solids Content in Multiple Varieties of Hami Melon Based on Hyperspectral Imaging and Machine Learning
Open Access
Abstract
Hami melon is a widely consumed fruit worldwide, and its sweetness, characterized by soluble solids content (SSC), is a key indicator of fruit quality and commercial value. In this study, hyperspectral imaging combined with machine learning was systematically applied to develop non-destructive models for SSC prediction in multiple Hami melon varieties. Four varieties, namely ‘Xizhoumi’, ‘Jiashigua’, ‘Jinfenghuang’, and ‘Heimeimao’, with a total of 160 samples, were used as the test materials. Hyperspectral images were collected, and SSC was measured at two pulp positions for each sample (denoted as BRIX1 and BRIX2). After applying preprocessing methods including Standard Normal Variate (SNV) transformation and Savitzky–Golay smoothing, five machine learning models were compared: XGBoost, LightGBM, Random Forest (RF), Support Vector Regression (SVR), and Partial Least Squares Regression (PLSR). Furthermore, an ensemble modeling strategy based on residual predictive deviation (RPD) weighting from the validation set was proposed. The results show that all models could effectively predict SSC, with the ensemble model achieving the best performance: the coefficients of determination (R2) for BRIX1 and BRIX2 were 0.848 and 0.833, the root mean square errors (RMSEs) were 0.992 and 0.899, the Mean Absolute Percentage Errors (MAPEs) were 6.90% and 6.76%, and the RPD values were 2.57 and 2.45, respectively, demonstrating its strong quantitative analysis capability. This performance benefited from three core optimized designs adopted in this study: (1) a multi-cultivar experimental design that verified the stable correlation between sugar-related spectral features and internal SSC across different Hami melon varieties; (2) an RPD-weighted ensemble modeling strategy that balanced the fitting ability and generalization performance of linear and nonlinear models; and (3) a dual-position SSC measurement design that validated the robustness of the model for SSC prediction at different spatial positions in the pulp. This study confirms the feasibility of hyperspectral imaging technology for non-destructive SSC detection in the four tested Hami melon varieties under laboratory-controlled conditions. The proposed ensemble model achieved a marginal but stable improvement in overall prediction accuracy across the tested varieties compared with the optimal single model, providing a preliminary methodological reference and data support for the development of cross-cultivar non-destructive SSC detection models for Hami melon.Keywords
Funding Information
- Second Batch of the “Tianchi Talents” Introduction Program of the Xinjiang Uygur Autonomous Region in 2023
- Key Technology Research and Development Program of Shandong Province (2024TSGC0205)
- Research on the Industrial Chain System of Sea Rice Under the Green Development of Coastal Saline-Alkali Land (ZR2019QG008)
- Science and Technology Key Research Program of Shihezi City (2024GG1502)
This publication has 37 references indexed in Scilit:
- Hyperspectral imaging with machine learning for non-destructive prediction of quality attributes in Lanzhou frozen pearsFood Chemistry: X, 2026
- Nondestructive Evaluation of Soluble Solid Content of Cucumbers Based on VIS – NIR and SWIR Hyperspectral ImagesFood Science & Nutrition, 2025
- Effective spectral pre-processing methods enhance accuracy of soil property prediction by NIR spectroscopyDiscover Applied Sciences, 2025
- A fundamental overview of ensemble deep learning models and applications: systematic literature and state of the artAnnals of Operations Research, 2024
- The accuracy of machine learning models relies on hyperparameter tuning: student result classification using random forest, randomized search, grid search, bayesian, genetic, and optuna algorithmsMultimedia Tools and Applications, 2024
- Applications of XGBoost in water resources engineering: A systematic literature review (Dec 2018–May 2023)Environmental Modelling & Software, 2024
- A Novel Multiple-Kernel Support Vector Regression Algorithm for Estimation of Water Quality ParametersNatural Resources Research, 2021
- Very Selective Detection of Low Physiopathological Glucose Levels by Spontaneous Raman Spectroscopy with Univariate Data AnalysisBioNanoScience, 2021
- Improvement of chlorophyll content estimation on maize leaf by vein removal in hyperspectral imageComputers and Electronics in Agriculture, 2021
- Non-destructive measurement of soluble solids content of three melon cultivars using portable visible/near infrared spectroscopyBiosystems Engineering, 2019