Portable Vis/NIR Spectroscopy Combined with Optimized SVM for Grade Classification of Apple Watercore
Open Access
- 4 September 2026
- journal article
- research article
- Published by MDPI AG in Applied Sciences
- Vol. 16 (17) , 8793
Abstract
To achieve rapid and non-destructive detection of watercore in apples, the apple Vis–NIR spectral data were used as the research object in this study. A total of 256 × 2 wavelength-based spectral features were extracted, followed by dimensionality reduction via PCA. Subsequently, four machine learning classification models—PLS-DA, SVM, Logistic Regression, and Random Forest—were constructed to identify apples with varying severities of watercore. The results showed that the SVM model achieved the optimal comprehensive performance, with an accuracy of 85.30% and a precision of 91.67% on 34 independent test samples. The five-fold cross-validation accuracy of SVM reached 87.20%, indicating the best generalization stability among the four models. PCA analysis showd that after dimensionality reduction of the core wavelength bands obtained via feature screening, eight principal components can cumulatively explain 95.1% of the total spectral variance; normal apples and watercore-affected apples exhibited significant distribution differences in the principal component space. This study adopted a preprocessing scheme that combined feature selection with SMOTE sample balancing, which effectively alleviated the impact of class imbalance on model performance. It also indicated that insufficient fine-grained classification accuracy and the low recall rate of watercore samples was the key directions for subsequent optimization.Keywords
Funding Information
- Education Department of Shaanxi Province (25JS021)
- Xi'an Science and Technology Association (959202413041)
- National Natural Science Foundation of China (62203285)
- Education Department of Shaanxi Province (S202610708141)
- China Scholarship Council (201906300013)
This publication has 44 references indexed in Scilit:
- Nondestructive determination of edible quality and watercore degree of apples by portable Vis/NIR transmittance system combined with CARS-CNNJournal of Food Measurement and Characterization, 2024
- AI-based fruit identification and quality detection systemMultimedia Tools and Applications, 2022
- General model of multi-quality detection for apple from different origins by Vis/NIR transmittance spectroscopyJournal of Food Measurement and Characterization, 2022
- Identification of rice flour types with near-infrared spectroscopy associated with PLS-DA and SVM methodsEuropean Food Research and Technology, 2019
- Nutritional characterization of apple as a function of genotypeJournal of Food Science and Technology, 2018
- A smoothed monotonic regression via L2 regularizationKnowledge and Information Systems, 2018
- Nondestructive measurement of internal quality attributes of apple fruit by using NIR spectroscopyMultimedia Tools and Applications, 2017
- Robust preprocessing and model selection for spectral dataJournal of Chemometrics, 2012
- Artificial Fruit: Postharvest Online Monitoring of Agricultural Food by Measuring Humidity and TemperatureInternational Journal of Thermophysics, 2011
- Variables selection methods in near-infrared spectroscopyAnalytica Chimica Acta, 2010