Using visible and NIR hyperspectral imaging and machine learning for nondestructive detection of nutrient contents in sorghum
- PMID: 39972103
- PMCID: PMC11839942
- DOI: 10.1038/s41598-025-90892-6
Using visible and NIR hyperspectral imaging and machine learning for nondestructive detection of nutrient contents in sorghum
Abstract
Nondestructive, rapid, and accurate detection of nutritional compositions in sorghum is crucial for agricultural and food industries. In our study, the crude protein, tannin, and crude fat contents of sorghum variety samples were taken as the research object. The visible near-infrared (VIS-NIR) hyperspectral of sorghum were measured by the indoor mobile scanning platform. The nutritional components were determined using chemical methods to analyze the differences in nutritional composition among different varieties. After preprocessing the original spectral, the competitive adaptive reweighted sampling (CARS) and bootstrapping soft shrinkage (BOSS) algorithms were used to coarsely extract the key variables. Subsequently, the iteratively retains informative variables (IRIV) was employed to assess the importance of these key variables, resulting in explanatory wavelength sets for crude protein, tannin, and crude fat. Finally, the partial least squares (PLS), back propagation (BP) and extreme learning machine (ELM) were utilized to establish detection models. The results indicated that the optimal wavelength variable sets for crude protein, tannin, and crude fat contained 41, 38, and 22 wavelength variables, respectively. The CARS-IRIV-PLS, BOSS-IRIV-PLS and BOSS-IRIV-ELM were suitable for detecting crude protein, tannin and crude fat, respectively. Meanwhile, the Rp2, RMSEp and RPDp values of the model were 0.69, 0.80% and 1.80, 0.88, 0.22% and 2.84, 0.61, 0.32% and 1.61, respectively. These detection models can be used for the effective estimation of the nutritional compositions in sorghum with VIS-NIR spectral data, and can provide an important basis for the application of food nutrition assessment.
Keywords: Detection model; Hyperspectral; Machine learning; Nondestructive; Nutrient contents; Sorghum.
© 2025. The Author(s).
Conflict of interest statement
Declarations. Competing interests: The authors declare no competing interests.
Figures






Similar articles
-
Combining Vis-NIR and NIR hyperspectral imaging techniques with a data fusion strategy for rapid and nondestructive determination of multiple nutritional qualities in flaxseed.Spectrochim Acta A Mol Biomol Spectrosc. 2025 Nov 5;340:126306. doi: 10.1016/j.saa.2025.126306. Epub 2025 Apr 28. Spectrochim Acta A Mol Biomol Spectrosc. 2025. PMID: 40334580
-
Nondestructive detection of saponin content in Panax notoginseng powder based on hyperspectral imaging.J Pharm Biomed Anal. 2024 May 15;242:116015. doi: 10.1016/j.jpba.2024.116015. Epub 2024 Feb 5. J Pharm Biomed Anal. 2024. PMID: 38364344
-
Modeling of soluble solid content of PE-packaged blueberries based on near-infrared spectroscopy with back propagation neural network and partial least squares (BP-PLS) algorithm.J Food Sci. 2023 Nov;88(11):4602-4619. doi: 10.1111/1750-3841.16769. Epub 2023 Sep 27. J Food Sci. 2023. PMID: 37755701
-
Determination of Adulteration Content in Extra Virgin Olive Oil Using FT-NIR Spectroscopy Combined with the BOSS-PLS Algorithm.Molecules. 2019 Jun 6;24(11):2134. doi: 10.3390/molecules24112134. Molecules. 2019. PMID: 31174245 Free PMC article.
-
Nondestructive spectroscopic and imaging techniques for quality evaluation and assessment of fish and fish products.Crit Rev Food Sci Nutr. 2015;55(6):864-86. doi: 10.1080/10408398.2012.746638. Crit Rev Food Sci Nutr. 2015. PMID: 24915393 Review.
References
-
- Khoddami, A. et al. Sorghum in foods: Functionality and potential in innovative products. Crit. Rev. Food Sci. Nutr.63 (9), 1170–1186. 10.1080/10408398.2021.1960793 (2023). - PubMed
-
- Bakari, H. et al. Sorghum (Sorghum bicolor L. Moench) and its main parts (by-products) as promising sustainable sources of value-added ingredients. Waste Biomass Valoriz.14 (4), 1023–1044. 10.1007/s12649-022-01992-7 (2023).
-
- Wang, H. et al. Regulation of density and fertilization on crude protein synthesis in forage maize in a semiarid rain-Fed area. Agriculture13 (3), 715. 10.3390/agriculture13030715 (2023).
-
- Zeng, X., Jiang, W., Du, Z. & Kokini, J. L. Encapsulation of tannins and tannin-rich plant extracts by complex coacervation to improve their physicochemical properties and biological activities: A review. Crit. Rev. Food Sci. Nutr.63, 3005–3018. 10.1080/10408398.2022.2075313 (2023). - PubMed
MeSH terms
Substances
Grants and funding
- 202102140601013/Key Research and Development Program Project of Shanxi Province
- YDZJSX20231C009/Central Government Guides Local Funds for Scientific and Technological Development
- 2023XSHF2/School academic recovery project
- 24142C0207001/Construction Project of Shanxi Modern Agricultural Industry Technology System
- 202203021212450/Youth Scientific Research Project of Shanxi Province grant number
LinkOut - more resources
Full Text Sources
Miscellaneous