Reconstruction-Assisted Band Selection for Non-Destructive Prediction of Citrus Soluble Solids Content from VNIR Hyperspectral Images
Abstract
1. Introduction
2. Materials and Methods
2.1. Fruit Samples and SSC Measurement
2.2. VNIR Hyperspectral Imaging System and Spectral Acquisition
2.3. Image Preprocessing and Dataset Split
2.4. Reconstruction-Assisted Task-Driven Framework for SSC Prediction
2.4.1. Core Methodological Idea and Overall Workflow
2.4.2. Spectral–Spatial Attention for Informative Feature Enhancement
2.4.3. Compact Band Learning via a Probability-Based Differentiable Relaxation
2.4.4. Spectral–Spatial Reconstruction Regularization
2.4.5. Lightweight Regression Head for SSC Estimation
2.5. Progressive Optimization Strategy
2.6. Software and Hardware Environment
2.7. Quantitative Evaluation Criteria
3. Results
3.1. Optimization Behavior During Training
3.2. Compact-Band Operating Point and Spectral Interpretability
3.3. Reconstruction Quality in Spatial and Spectral Domains
3.4. SSC Prediction Accuracy and Model Comparison
4. Discussion
4.1. Why Joint Learning Helps Under Band-Limited Settings
4.2. Interpretability of the Selected Bands
4.3. Implications for Postharvest Quality Control and Compact Sensor Design
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
References
- Nicolaï, B.M.; Beullens, K.; Bobelyn, E.; Peirs, A.; Saeys, W.; Theron, K.I.; Lammertyn, J. Nondestructive measurement of fruit and vegetable quality by means of NIR spectroscopy: A review. Postharvest Biol. Technol. 2007, 46, 99–118. [Google Scholar] [CrossRef]
- Gowen, A.A.; O’Donnell, C.P.; Cullen, P.J.; Downey, G.; Frias, J.M. Hyperspectral imaging—An emerging process analytical tool for food quality and safety control. Trends Food Sci. Technol. 2007, 18, 590–598. [Google Scholar] [CrossRef]
- Huang, H.; Liu, L.; Ngadi, M.O. Recent developments in hyperspectral imaging for assessment of food quality and safety. Sensors 2014, 14, 7248–7276. [Google Scholar] [CrossRef]
- Lu, Y.; Saeys, W.; Kim, M.S.; Peng, Y.; Lu, R. Hyperspectral imaging technology for quality and safety evaluation of horticultural products: A review and celebration of the past 20-year progress. Postharvest Biol. Technol. 2020, 170, 111318. [Google Scholar] [CrossRef]
- Gómez, A.H.; He, Y.; Pereira, A.G. Non-destructive measurement of acidity, soluble solids and firmness of Satsuma mandarin using Vis/NIR-spectroscopy techniques. J. Food Eng. 2006, 77, 313–319. [Google Scholar] [CrossRef]
- Magwaza, L.S.; Opara, U.L.; Nieuwoudt, H.H.; Cronje, P.J.R.; Saeys, W.; Nicolaï, B.M. NIR spectroscopy applications for internal and external quality analysis of citrus fruit—A review. Food Bioprocess Technol. 2012, 5, 425–444. [Google Scholar] [CrossRef]
- Magwaza, L.S.; Landahl, S.; Cronje, P.J.R.; Nieuwoudt, H.H.; Mouazen, A.M.; Nicolaï, B.M.; Terry, L.A.; Opara, U.L. The use of Vis/NIRS and chemometric analysis to predict fruit defects and postharvest behaviour of ‘Nules Clementine’ mandarin fruit. Food Chem. 2014, 163, 267–274. [Google Scholar] [CrossRef]
- Liu, Y.; Sun, X.; Zhang, H.; Ouyang, A. Nondestructive measurement of internal quality of Nanfeng mandarin fruit by charge coupled device near infrared spectroscopy. Comput. Electron. Agric. 2010, 71, S10–S14. [Google Scholar] [CrossRef]
- Liu, Y.; Sun, X.; Ouyang, A. Nondestructive measurement of soluble solid content of navel orange fruit by visible-NIR spectrometric technique with PLSR and PCA-BPNN. LWT—Food Sci. Technol. 2010, 43, 602–607. [Google Scholar] [CrossRef]
- Kawano, S.; Fujiwara, T.; Iwamoto, M. Nondestructive determination of sugar content in satsuma mandarin using near infrared transmittance. J. Jpn. Soc. Hortic. Sci. 1993, 62, 465–470. [Google Scholar] [CrossRef]
- Li, C.; He, M.; Cai, Z.; Qi, H.; Zhang, J.; Zhang, C. Hyperspectral Imaging with Machine Learning Approaches for Assessing Soluble Solids Content of Tribute Citru. Foods 2023, 12, 247. [Google Scholar] [CrossRef]
- Zhang, H.; Zhan, B.; Pan, F.; Luo, W. Determination of soluble solids content in oranges using visible and near infrared full transmittance hyperspectral imaging with comparative analysis of models. Postharvest Biol. Technol. 2020, 163, 111148. [Google Scholar] [CrossRef]
- Kim, M.-J.; Yu, W.-H.; Song, D.-J.; Chun, S.-W.; Kim, M.S.; Lee, A.; Kim, G.; Shin, B.-S.; Mo, C. Prediction of soluble-solid content in citrus fruit using visible–near-infrared hyperspectral imaging based on effective-wavelength selection algorithm. Sensors 2024, 24, 1512. [Google Scholar] [CrossRef]
- Pu, Y.-Y.; Feng, Y.-Z.; Sun, D.-W. Recent progress of hyperspectral imaging on quality and safety inspection of fruits and vegetables: A review. Compr. Rev. Food Sci. Food Saf. 2015, 14, 176–188. [Google Scholar] [CrossRef] [PubMed]
- Tian, X.; Li, J.; Yi, S.; Jin, G.; Qiu, X.; Li, Y. Nondestructive determining the soluble solids content of citrus using near infrared transmittance technology combined with the variable selection algorithm. Artif. Intell. Agric. 2020, 4, 48–57. [Google Scholar] [CrossRef]
- Yan, J.; Wang, G.; Du, H.; Liu, Y.; Ouyang, A.; Hu, M. Convolutional neural networks fusing spectral shape features with attentional mechanisms for accurate prediction of soluble solids content in apples. J. Food Meas. Charact. 2025, 19, 412–423. [Google Scholar] [CrossRef]
- Zhai, H.; Xie, P.; Xie, X.; Sha, S.S. Deep learning-enabled hyperspectral imaging for high-accuracy non-destructive quantification of nutritional components in multi-variety apples. Front. Plant Sci. 2025, 16, 1634785. [Google Scholar] [CrossRef]
- Xiao, Y.; Zhai, Y.; Zhou, L.; Yin, Y.; Qi, H.; Zhang, C. Detection of Soluble Solid Content in Citrus Fruits Using Hyperspectral Imaging with Machine and Deep Learning: A Comparative Study of Two Citrus Cultivars. Foods 2025, 14, 2091. [Google Scholar] [CrossRef] [PubMed]
- Huang, C.; Cai, J.; Zhou, Y.; El-Seedi, H.R.; Guo, Z. Fusion models for detection of soluble solids content in mandarin by Vis/NIR transmission spectroscopy combined external factors. Infrared Phys. Technol. 2022, 124, 104233. [Google Scholar] [CrossRef]
- Merzlyak, M.N.; Solovchenko, A.E.; Gitelson, A.A. Reflectance spectral features and non-destructive estimation of chlorophyll, carotenoid and anthocyanin content in apple fruit. Postharvest Biol. Technol. 2003, 27, 197–211. [Google Scholar] [CrossRef]
- Li, H.; Liang, Y.; Xu, Q.; Cao, D. Key wavelengths screening using competitive adaptive reweighted sampling method for multivariate calibration. Anal. Chim. Acta 2009, 648, 77–84. [Google Scholar] [CrossRef]
- Fan, S.; Zhang, B.; Li, J.; Huang, W.; Wang, C. Effect of spectrum measurement position variation on the robustness of NIR spectroscopy models for soluble solids content of apple. Biosyst. Eng. 2016, 143, 9–19. [Google Scholar] [CrossRef]
- Barra, I.; Haefele, S.M.; Sakrabani, R.; Kebede, F. Soil spectroscopy with the use of chemometrics, machine learning and pre-processing techniques in soil diagnosis: Recent advances—A review. TrAC Trends Anal. Chem. 2021, 135, 116166. [Google Scholar] [CrossRef]
- Zhang, L.; Wang, D.; Gao, R.; Li, P.; Zhang, W.; Mao, J.; Yu, L.; Ding, X.; Zhang, Q. Improvement on enhanced Monte-Carlo outlier detection method. Chemom. Intell. Lab. Syst. 2016, 151, 89–94. [Google Scholar] [CrossRef]
- Riccioli, C.; Pérez-Marín, D.; Garrido-Varo, A. Optimizing spatial data reduction in hyperspectral imaging for the prediction of quality parameters in intact oranges. Postharvest Biol. Technol. 2021, 176, 111504. [Google Scholar] [CrossRef]
- Hu, J.; Shen, L.; Sun, G. Squeeze-and-Excitation Networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Salt Lake City, UT, USA, 18–23 June 2018; pp. 7132–7141. [Google Scholar] [CrossRef]
- Woo, S.; Park, J.; Lee, J.-Y.; Kweon, I.S. CBAM: Convolutional block attention module. In Computer Vision—ECCV 2018; Springer: Cham, Switzerland, 2018; pp. 3–19. [Google Scholar] [CrossRef]
- Cai, Y.; Liu, X.; Cai, Z. BS-Nets: An end-to-end framework for band selection of hyperspectral image. IEEE Trans. Geosci. Remote Sens. 2020, 58, 1969–1984. [Google Scholar] [CrossRef]
- Roy, S.K.; S. Das, S.; Song, T.; Chanda, B. Unsupervised dual-attention reconstruction network for hyperspectral band selection. IEEE Geosci. Remote Sens. Lett. 2020, 18, 2152–2156. [Google Scholar] [CrossRef]
- ISO 2173:2003; Fruit and Vegetable Products—Determination of Soluble Solids—Refractometric Method. International Organization for Standardization: Geneva, Switzerland, 2003. Available online: https://www.iso.org/standard/35851.html (accessed on 7 May 2026).
- AOAC International. AOAC Official Method 932.12, Solids (Soluble) in Fruits and Fruit Products—Refractometer Method; AOAC International: Gaithersburg, MD, USA, 1980; Available online: https://www.aoacofficialmethod.org/index.php?main_page=product_info&products_id=538 (accessed on 7 May 2026).
- Garner, D.; Crisosto, C.H.; Wiley, P.; Crisosto, G.M. Measurement of Soluble Solids Content; University of California Agriculture and Natural Resources: Davis, CA, USA; Available online: https://ucanr.edu/sites/default/files/2013-02/162033.pdf (accessed on 7 May 2026).
- Ronneberger, O.; Fischer, P.; Brox, T. U-Net: Convolutional networks for biomedical image segmentation. In Medical Image Computing and Computer-Assisted Intervention—MICCAI 2015; Springer: Cham, Switzerland, 2015; pp. 234–241. [Google Scholar] [CrossRef]
- Chollet, F. Xception: Deep Learning with Depthwise Separable Convolutions. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA, 21–26 July 2017; pp. 1251–1258. [Google Scholar] [CrossRef]
- Wang, Q.; Wu, B.; Zhu, P.; Li, P.; Zuo, W.; Hu, Q. ECA-Net: Efficient Channel Attention for Deep Convolutional Neural Networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), Seattle, WA, USA, 13–19 June 2020; pp. 11531–11539. [Google Scholar] [CrossRef]
- Radenović, F.; Tolias, G.; Chum, O. Fine-Tuning CNN Image Retrieval with No Human Annotation. IEEE Trans. Pattern Anal. Mach. Intell. 2019, 41, 1655–1668. [Google Scholar] [CrossRef] [PubMed]
- Huber, P.J. Robust estimation of a location parameter. Ann. Math. Stat. 1964, 35, 73–101. [Google Scholar] [CrossRef]
- Wang, Z.; Bovik, A.C.; Sheikh, H.R.; Simoncelli, E.P. Image quality assessment: From error visibility to structural similarity. IEEE Trans. Image Process. 2004, 13, 600–612. [Google Scholar] [CrossRef]
- Kruse, F.A.; Lefkoff, A.B.; Boardman, J.W.; Heidebrecht, K.B.; Shapiro, A.T.; Barloon, P.J.; Goetz, A.F.H. The spectral image processing system (SIPS)—Interactive visualization and analysis of imaging spectrometer data. Remote Sens. Environ. 1993, 44, 145–163. [Google Scholar] [CrossRef]
- Williams, P. Near-Infrared Technology—Getting the Best Out of Light; PDK Grain: Nanaimo, BC, Canada, 2003. [Google Scholar]
- Williams, P. The RPD statistic: A tutorial note. NIR News 2014, 25, 22–26. [Google Scholar] [CrossRef]
- Gomes, V.M.; Fernandes, A.M.; Faia, A.; Melo-Pinto, P. Comparison of different approaches for the prediction of sugar content in new vintages of whole Port wine grape berries using hyperspectral imaging. Comput. Electron. Agric. 2017, 140, 244–254. [Google Scholar] [CrossRef]
- Omar, A.F. Spectroscopic profiling of soluble solids content and acidity of intact grape, lime, and star fruit. Sens. Rev. 2013, 33, 238–245. [Google Scholar] [CrossRef]
- Shao, Y.; He, Y.; Bao, Y.; Mao, J. Near-infrared spectroscopy for classification of oranges and prediction of the sugar content. Int. J. Food Prop. 2009, 12, 644–658. [Google Scholar] [CrossRef]
- Qin, J.; Chao, K.; Kim, M.S.; Lu, R.; Burks, T.F. Hyperspectral and multispectral imaging for evaluating food safety and quality. J. Food Eng. 2013, 118, 157–171. [Google Scholar] [CrossRef]









| Dataset | N | SSC Label | Hyperspectral Spectra | |||||
|---|---|---|---|---|---|---|---|---|
| Min | Max | Mean | Std | Mean | Std | L2 to Global | ||
| Train | 765 | 6.80 | 14.10 | 10.23 | 1.35 | 0.20 | 0.13 | 0.014 |
| Val | 93 | 7.60 | 14.00 | 10.54 | 1.45 | 0.20 | 0.12 | 0.121 |
| Test | 94 | 7.90 | 13.70 | 10.39 | 1.44 | 0.20 | 0.12 | 0.049 |
| Model | Selected Band Index |
|---|---|
| Ours | [2, 5, 14, 15, 16, 17, 19, 22, 27, 29, 32, 34, 36, 38, 41, 48, 49, 50, 64, 69, 70, 71, 74, 77, 78, 80, 85, 87, 91, 92, 97, 99, 100, 103, 106, 108, 110, 112, 113, 114, 118, 121, 131, 133, 136, 142, 150, 155, 157, 159, 160, 161, 162, 163, 166, 170] |
| BS-Net-Conv | [6, 10, 12, 15, 17, 20, 23, 25, 30, 34, 36, 38, 40, 42, 43, 44, 48, 49, 56, 64, 68, 75, 77, 81, 83, 84, 85, 86, 89, 90, 92, 94, 95, 96, 101, 103, 113, 118, 122, 124, 128, 131, 134, 140, 144, 147, 153, 154, 156, 159, 161, 162, 163, 165, 170, 175] |
| DARecNet | [48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103] |
| CARS-PLSR | [0, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 18, 19, 20, 21, 22, 24, 25, 27, 28, 29, 31, 32, 34, 35, 36, 40, 41, 42, 45, 46, 47, 48, 52, 53, 54, 55, 56, 69, 70, 71, 82, 87, 92, 153, 154, 155, 160, 161, 163, 167, 170, 175] |
| Model | MAE | MSE | PSNR | SSIM | SCC | SAM |
|---|---|---|---|---|---|---|
| ) | 0.011 | 0.00023 | 36.47 | 0.89 | 0.71 | 7.71 |
| K-band baseline | 0.165 | 0.06518 | 12.03 | 0.29 | 0.24 | 56.07 |
| ) | 0.009 | 0.00019 | 37.59 | 0.91 | 0.73 | 6.87 |
| ) | 0.020 | 0.00069 | 31.64 | 0.86 | 0.99 | 2.50 |
| ) | 0.013 | 0.00027 | 35.75 | 0.98 | 0.99 | 1.45 |
| Model | MAE | RMSE | R2 | RPD |
|---|---|---|---|---|
| Ours | 0.52 | 0.63 | 0.80 | 2.26 |
| Random Forest | 0.64 | 0.79 | 0.69 | 1.81 |
| CARS-PLSR | 0.53 | 0.66 | 0.79 | 2.19 |
| MLP | 0.66 | 0.80 | 0.69 | 1.79 |
| ResNet18 | 0.55 | 0.67 | 0.78 | 2.14 |
| ViT | 0.67 | 0.79 | 0.69 | 1.82 |
| Model | Band Selection | MAE | RMSE | R2 | RPD |
|---|---|---|---|---|---|
| Ours | Task-driven | 0.52 | 0.633 | 0.804 | 2.26 |
| Reg-only (full bands) | None | 0.51 | 0.634 | 0.803 | 2.27 |
| Reg-only ( bands) | Frequency-based Top-K | 0.54 | 0.659 | 0.788 | 2.18 |
| BS + Reg-only | Weight-based Top-K | 0.53 | 0.644 | 0.797 | 2.23 |
| DARecNet + Reg-only | Entropy-based Top-K | 0.55 | 0.687 | 0.769 | 2.09 |
| CARS-PLSR + Reg-only | Heuristic Statistical | 0.60 | 0.744 | 0.730 | 1.93 |
| Random band + Reg-only | Random | 0.62 | 0.771 | 0.710 | 1.87 |
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
Zhao, J.; Liu, S.; Yang, F.; Cheng, L.; Hu, F.; Xu, S.; Shan, L. Reconstruction-Assisted Band Selection for Non-Destructive Prediction of Citrus Soluble Solids Content from VNIR Hyperspectral Images. Foods 2026, 15, 1774. https://doi.org/10.3390/foods15101774
Zhao J, Liu S, Yang F, Cheng L, Hu F, Xu S, Shan L. Reconstruction-Assisted Band Selection for Non-Destructive Prediction of Citrus Soluble Solids Content from VNIR Hyperspectral Images. Foods. 2026; 15(10):1774. https://doi.org/10.3390/foods15101774
Chicago/Turabian StyleZhao, Junjie, Siya Liu, Fengyong Yang, Long Cheng, Fang Hu, Sixing Xu, and Lei Shan. 2026. "Reconstruction-Assisted Band Selection for Non-Destructive Prediction of Citrus Soluble Solids Content from VNIR Hyperspectral Images" Foods 15, no. 10: 1774. https://doi.org/10.3390/foods15101774
APA StyleZhao, J., Liu, S., Yang, F., Cheng, L., Hu, F., Xu, S., & Shan, L. (2026). Reconstruction-Assisted Band Selection for Non-Destructive Prediction of Citrus Soluble Solids Content from VNIR Hyperspectral Images. Foods, 15(10), 1774. https://doi.org/10.3390/foods15101774

