Submitted:
18 October 2025
Posted:
20 October 2025
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Materials and Methods
2.1. Experimental Materials of Sorghum Grains
2.2. Hyperspectral Image Acquisition and Chemical Determination of Tannin Content
2.2.1. Hyperspectral Image Acquisition
2.2.2. Chemical Determination of Tannin Content
2.3. Data Fusion Strategy for Dual Hyperspectral Sensors
2.3.1. Data Layer Fusion
2.3.2. Feature Layer Fusion
2.4. Hyperspectral Data Extraction and Dataset Partitioning
2.4.1. Spectral Data Extraction
2.4.2. Dataset Partitioning
2.5. Feature Variable Extraction
2.6. Prediction Models and Evaluation Indexes
2.6.1. Prediction Models
2.6.2. Evaluation Indexes
3. Results
3.1. Analysis of Chemical Measurements
3.1.1. Analysis of Chemical Measurement Results of Tannin Content

3.1.2. Analysis of Dataset Partitioning Results

| Tannin content | Calibration set | Prediction set | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Mean | Max | Min | SD | CV | Mean | Max | Min | SD | CV | ||
| VINR | 1.1632 | 2.56 | 0.05 | 0.7437 | 0.6394 | 1.2120 | 20.9 | 0.05 | 0.7073 | 0.5836 | |
| SWIR | 1.1482 | 2.56 | 0.05 | 0.7297 | 0.6356 | 1.2570 | 2.56 | 0.05 | 0.7453 | 0.5929 | |
| VINR+SWIR | 1.1849 | 2.56 | 0.05 | 0.7384 | 0.6332 | 1.1468 | 2.07 | 0.05 | 0.7243 | 0.6315 | |
3.2. Results of Raw Spectral Data

3.3. Feature Variables Analysis

| Sensor | Wavelength of feature variable/nm | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| VNIR | 522.115 | 533.744 | 534.471 | 536.651 | 538.831 | 564.269 | 565.723 | 567.903 | 570.811 | 571.537 |
| 573.718 | 594.795 | 595.522 | 596.249 | 597.702 | 599.156 | 602.063 | 629.681 | 630.408 | 632.589 | |
| 633.315 | 634.769 | 648.578 | 650.032 | 652.212 | 681.284 | 703.088 | 828.824 | 843.36 | 854.989 | |
| 858.623 | 885.515 | 893.509 | ||||||||
| SWIR | 1048.94 | 1129.09 | 1133.8 | 1180.95 | 1289.39 | 1327.11 | 1350.68 | 1383.68 | 1402.54 | 1416.69 |
| 1430.83 | 1473.26 | 1482.69 | 1520.41 | 1553.41 | 1558.13 | 1572.27 | 1595.84 | 1633.56 | ||
| Sensor | Method | Number of variables | Calibration set | |||||
|---|---|---|---|---|---|---|---|---|
| RC2 | RMSEC | RPDC | RCV2 | RMSECV | RPDCV | |||
| VINR | whole-PLS | 646 | 0.7401 | 0.3781 | 1.9616 | 0.6802 | 0.4194 | 1.7683 |
| CARS-PLS | 33 | 0.7812 | 0.3469 | 2.1378 | 0.7384 | 0.3793 | 1.9552 | |
| SWIR | whole-PLS | 148 | 0.5532 | 0.4864 | 1.4961 | 0.4796 | 0.5295 | 1.3862 |
| CARS-PLS | 19 | 0.5997 | 0.4615 | 1.5806 | 0.5388 | 0.4942 | 1.4725 | |
| VNIR-SWIR | Whole-PLS | 794 | 0.7462 | 0.3710 | 1.9849 | 0.6935 | 0.4077 | 1.8063 |
| CARS-PLS | 52 | 0.7904 | 0.3371 | 2.1843 | 0.7609 | 0.3600 | 2.0450 | |
3.4. Comparison of Prediction Models and Optimal Prediction Model
3.4.1. Comparison of Prediction Models



3.4.2. Optimal Prediction Model

4. Discussion
4.1. Discussion of Sample Representativeness and Dataset Reliability
4.2. Discussion of Dual Hyperspectral Data Sources and Feature Fusion Strategy
4.2.1. Complementarity of Dual Hyperspectral Data
4.2.2. The Impact of Feature Extraction and Fusion on Model Performance
4.3. Discussion on Predictive Model Performance
4.3.1. Comparative Analysis of Linear versus Nonlinear Models
4.3.2. Comparative Analysis of SVM versus CNN
5. Conclusions
Author Contributions
Funding
Institutional Review Board Statement
Data Availability Statement
Acknowledgments
Conflicts of Interest
Abbreviations
| VNIR | Visible and Near-Infrared |
| SWIR | Short-Wave Infrared |
| PLS | Partial Least Squares |
| SVM | Support Vector Machine |
| CNN | Convolutional Neural Network |
| CARS | Competitive Adaptive Reweighted Sampling |
References
- Fan, W.; Xu, Y. History and Technology of Chinese Liquor. In Science and Engineering of Chinese Liquor (Baijiu) Microbiology, Chemistry and Process Technology. Singapore: Springer Nature Singapore, 2023; pp. 3–41. [CrossRef]
- Tanwar, R.; Panghal, A.; Chaudhary, G.; Kumari, A.; Chhikara, N. Nutritional, phytochemical and functional potential of sorghum: A review. Food Chemistry Advances 2023, 3, 100501. [Google Scholar] [CrossRef]
- Zhang, L.; Xu, J.; Ding, Y.; Cao, N.; Gao, X.; Feng, Z.; Li, K.; Cheng, B.; Zhou, L.; Ren, M.; Tao, Y.; Zou, G. GWAS of grain color and tannin content in Chinese sorghum based on whole-genome sequencing. Theoretical and Applied Genetics 2023, 136, 77. [Google Scholar] [CrossRef] [PubMed]
- Pérez, M.; Dominguez-López, I.; Lamuela-Raventós, R.M. The chemistry behind the folin–ciocalteu method for the estimation of (poly) phenol content in food: Total phenolic intake in a mediterranean dietary pattern. Journal of agricultural and food chemistry 2023, 71, 17543–17553. [Google Scholar] [CrossRef] [PubMed]
- Sang, M.; Liu, Q.; Li, D.; Dang, J.; Lu, C.; Liu, C.; Wu, Q. Heat stress and microbial stress induced defensive phenol accumulation in medicinal plant sparganium stoloniferum. International Journal of Molecular Sciences 2024, 25, 6379. [Google Scholar] [CrossRef] [PubMed]
- Doan, T.K. Q. , Chiang, K. Y. Characteristics and kinetics study of spherical cellulose nanocrystal extracted from cotton cloth waste by acid hydrolysis. Sustainable Environment Research 2022, 32, 26. [Google Scholar] [CrossRef]
- Oh, Y. J. , Hong, J. Application of the MTT-based colorimetric method for evaluating bacterial growth using different solvent systems. Lwt 2022, 153, 112565. [Google Scholar] [CrossRef]
- Drant, T.; Garcia-Caurel, E.; Perrin, Z.; Sciamma-O’Brien, E.; Carrasco, N.; Vettier, L.; Heng, K. Optical constants of exoplanet haze analogs from 0.3 to 30 µm: Comparative sensitivity between spectrophotometry and ellipsometry. Astronomy & Astrophysics 2024, 682, A6. [Google Scholar] [CrossRef]
- Thilakarathna, R.C. N. , Madhusankha, G. D. M. P., Navaratne, S. B. Potential food applications of sorghum (Sorghum bicolor) and rapid screening methods of nutritional traits by spectroscopic platforms. Journal of Food Science 2022, 87, 36–51. [Google Scholar] [CrossRef]
- Sun, D. W. , Pu, H., Yu, J. Applications of hyperspectral imaging technology in the food industry. Nature Reviews Electrical Engineering, 2024, 1, 251–263. [Google Scholar] [CrossRef]
- Zhang, J.; Lei, Y.; He, L.; Hu, X.; Tian, J.; Chen, M.; Huang, D.; Luo, H. The rapid detection of the tannin content of grains based on hyperspectral imaging technology and chemometrics. Journal of Food Composition and Analysis 2023, 123, 105604. [Google Scholar] [CrossRef]
- Baek, M. W. , Choi, H. R., Hwang, I. G., Tilahun, S., Jeong, C. S. Prediction of tannin content and quality parameters in astringent persimmons from visible and near-infrared spectroscopy. Frontiers in Plant Science 2023, 14, 1260644. [Google Scholar] [CrossRef]
- Savitri, K. P. , Hecker, C., van der Meer, F. D., Sidik, R. P. VNIR-SWIR infrared (imaging) spectroscopy for geothermal exploration: Current status and future directions. Geothermics 2021, 96, 102178. [Google Scholar] [CrossRef]
- Sedghi, M.; Golian, A.; Soleimani-Roodi, P.; Ahmadi, A.; Aami-Azghadi, M. Relationship between color and tannin content in sorghum grain: Application of image analysis and artificial neural network. Brazilian Journal of Poultry Science 2012, 14, 57–62. [Google Scholar] [CrossRef]
- Zhang, L.; Xu, J.; Ding, Y.; Cao, N.; Gao, X.; Feng, Z.; Li, K.; Cheng, B.; Zhou, L.; Ren, M.; Tao, Y.; Zou, G. GWAS of grain color and tannin content in Chinese sorghum based on whole-genome sequencing. Theoretical and Applied Genetics 2023, 136, 77. [Google Scholar] [CrossRef] [PubMed]
- Abera, S.; Yohannes, W.; Chandravanshi, B.S. Effect of processing methods on antinutritional factors (oxalate, phytate, and tannin) and their interaction with minerals (calcium, iron, and zinc) in red, white, and black kidney beans. International Journal of Analytical Chemistry 2023, 1, 6762027. [Google Scholar] [CrossRef] [PubMed]
- Alkowni, R.; Jaradat, N.; Fares, S. Total phenol, flavonoids, and tannin contents, antimicrobial, antioxidant, vital digestion enzymes inhibitory and cytotoxic activities of Verbascum fruticulosum. European Journal of Integrative Medicine 2023, 60, 102256. [Google Scholar] [CrossRef]
- Lim, K.; Ardekani, A. Label-free classification of nanoscale drug delivery systems using hyperspectral imaging and convolutional neural networks. International Journal of Pharmaceutics 2025, 126065. [Google Scholar] [CrossRef]
- Liu, L.; Delnevo, G.; Mirri, S. Unsupervised hyperspectral image segmentation of films: A hierarchical clustering-based approach. Journal of Big Data 2023, 10, 31. [Google Scholar] [CrossRef]
- Michelucci, U. (2024). Model validation and selection. In Fundamental mathematical concepts for machine learning in science, Cham: Springer International Publishing, 2024, 153-184. [CrossRef]
- Lal, A.; Sharan, A.; Sharma, K.; Ram, A.; Roy, D. K. , Datta, B. Scrutinizing different predictive modeling validation methodologies and data-partitioning strategies: New insights using groundwater modeling case study. Environmental Monitoring and Assessment 2024, 196, 623. [Google Scholar] [CrossRef]
- Li, Y.; Yang, X. Quantitative analysis of near infrared spectroscopic data based on dual-band transformation and competitive adaptive reweighted sampling. Spectrochimica Acta Part A: Molecular and Biomolecular Spectroscopy 2023, 285, 121924. [Google Scholar] [CrossRef]
- Xing, C.; Yuan, J.; Shi, C.; Chen, X.; Li, S. Utilizing X-ray diffraction in conjunction with competitive adaptive reweighted sampling (CARS) and principal component analysis for the discrimination of medicinal pearl powder and nacre powder. Analytical Sciences 2024, 40, 1889–1897. [Google Scholar] [CrossRef] [PubMed]
- Zeng, W.; Zhang, D.; Fang, Y.; Wu, J.; Huang, J. Comparison of partial least square regression, support vector machine, and deep-learning techniques for estimating soil salinity from hyperspectral data. Journal of Applied Remote Sensing 2018, 12, 022204–022204. [Google Scholar] [CrossRef]
- Saeed, F.; Khan, M. A. , Sharif, M., Mittal, M., Goyal, L. M., Roy, S. Deep neural network features fusion and selection based on PLS regression with an application for crops diseases classification. Applied Soft Computing 2021, 103, 107164. [Google Scholar] [CrossRef]
- Hasan, H.; Shafri, H. Z. , Habshi, M. A comparison between support vector machine (SVM) and convolutional neural network (CNN) models for hyperspectral image classification. IOP Conference Series: Earth and Environmental Science 2019, 357, 012035. [Google Scholar] [CrossRef]
- Mansuri, S. M. , Chakraborty, S. K., Mahanti, N. K., Pandiselvam, R. Effect of germ orientation during Vis-NIR hyperspectral imaging for the detection of fungal contamination in maize kernel using PLS-DA, ANN and 1D-CNN modelling. Food Control 2022, 139, 109077. [Google Scholar] [CrossRef]
- Sabanci, K.; Aslan, M. F. , Ropelewska, E., Unlersen, M. F. A convolutional neural network-based comparative study for pepper seed classification: Analysis of selected deep features with support vector machine. Journal of Food Process Engineering 2022, 45, e13955. [Google Scholar] [CrossRef]
- Jang, I. S. , Han, J., Kim, D. C., Cho, Y. DRS-based PLSR Model for Predicting Soil Organic Matter under Different Moisture Conditions in Saline and Non-saline Paddy Soils. American Society of Agricultural and Biological Engineers 2025, 1. [Google Scholar] [CrossRef]
- Singha, C.; Swain, K. C. , Sahoo, S., Govind, A. Prediction of soil nutrients through PLSR and SVMR models by VIs-NIR reflectance spectroscopy. The Egyptian Journal of Remote Sensing and Space Sciences 2023, 26, 901–918. [Google Scholar] [CrossRef]
- Seraj, A.; Mohammadi-Khanaposhtani, M.; Daneshfar, R.; Naseri, M.; Esmaeili, M.; Baghban, A.; Eslamian, S. Cross-validation. In Handbook of hydroinformatics; Elsevier, 2023, 89-105. [CrossRef]
- Bates, S.; Hastie, T.; Tibshirani, R. Cross-validation: What does it estimate and how well does it do it? Journal of the American Statistical Association 2024, 119, 1434–1445. [Google Scholar] [CrossRef]
- Oliveira, A.K.D. S. , Rizzo, R., Silva, C. A. A. C., Ré, N. C., Caron, M. L., Fiorio, P. R. Prediction of Corn Leaf Nitrogen Content in a Tropical Region Using Vis-NIR-SWIR Spectroscopy. AgriEngineering 2024, 6. [Google Scholar] [CrossRef]
- Conceição, R.R. P. , Queiroz, V. A. V., Medeiros, E. P., Araújo, J. B., Araújo, D. D. S., Miguel, R. D. A.,... & Simeone, M. L. F. Determination of fumonisin content in maize using near-infrared hyperspectral imaging (NIR-HSI) technology and chemometric methods. Brazilian Journal of Biology 2024, 84, e277974. [Google Scholar] [CrossRef]
- Lehmann, J.R. K. , Große-Stoltenberg, A., Römer, M., Oldeland, J. Field spectroscopy in the VNIR-SWIR region to discriminate between Mediterranean native plants and exotic-invasive shrubs based on leaf tannin content. Remote Sensing 2015, 7, 1225–1241. [Google Scholar] [CrossRef]
- Tziolas, N.; Ordoudi, S. A. , Tavlaridis, A., Karyotis, K., Zalidis, G., Mourtzinos, I. Rapid assessment of anthocyanins content of onion waste through visible-near-short-wave and mid-infrared spectroscopy combined with machine learning techniques. Sustainability 2021, 13, 6588. [Google Scholar] [CrossRef]
- Liu, J.; Dong, Z.; Xia, J.; Wang, H.; Meng, T.; Zhang, R.; Xie, J. Estimation of soil organic matter content based on CARS algorithm coupled with random forest. Spectrochimica Acta Part A: Molecular and Biomolecular Spectroscopy 2021, 258, 119823. [Google Scholar] [CrossRef] [PubMed]
- Bilal, M.; Arslan, M.; Samee-Ullah Iqbal, W.; Khan, S.; Tahir, H.E.; Li, Z.; Xia, S.; Xiaobo, Z. Fusion of NIR and MIR Spectroscopy With Advanced CARS-PLS Techniques for Precise Quantification of Total Polyphenols in Peanut Seeds. Phytochemical Analysis 2025. [Google Scholar] [CrossRef] [PubMed]
- Li, J.; Qian, J.; Chen, J.; Ruiz-Garcia, L.; Dong, C.; Chen, Q.; Liu, Z.; Xiao, P.; Zhao, Z. Recent advances of machine learning in the geographical origin traceability of food and agro-products: A review. Comprehensive Reviews in Food Science and Food Safety 2025, 24, e70082. [Google Scholar] [CrossRef] [PubMed]
- Zhang, K.; Zhou, R.; Adhikarla, E.; Yan, Z.; Liu, Y.; Yu, J.; Liu, Z.; Chen, X.; Davison, B.D.; Ren, H.; Huang, J.; Chen, C.; Zhou, Y.; Fu, S.; Liu, W.; Liu, T.; Li, X.; Chen, Y.; He, L.; Zou, J.; Li, Q.; Liu, H.; Sun, L. A generalist vision–language foundation model for diverse biomedical tasks. Nature Medicine 2024, 30, 3129–3141. [Google Scholar] [CrossRef]
- Ni, Q.; Ji, J. C. , Feng, K., Zhang, Y., Lin, D., Zheng, J. Data-driven bearing health management using a novel multi-scale fused feature and gated recurrent unit. Reliability Engineering & System Safety 2024, 242, 109753. [Google Scholar] [CrossRef]
- Aw, E.C. X. , Tan, G. W. H., Chuah, S. H. W., Ooi, K. B., Hajli, N. Be my friend! Cultivating parasocial relationships with social media influencers: Findings from PLS-SEM and fsQCA. Information Technology & People 2023, 36, 66–94. [Google Scholar] [CrossRef]
- SaiTeja, C.; Seventline, J.B. A hybrid learning framework for multi-modal facial prediction and recognition using improvised non-linear SVM classifier. AIP Advances 2023, 13. [Google Scholar] [CrossRef]
- Yang, C.; Oh, S. K. , Yang, B., Pedrycz, W., Wang, L. Hybrid fuzzy multiple SVM classifier through feature fusion based on convolution neural networks and its practical applications. Expert Systems with Applications 2022, 202, 117392. [Google Scholar] [CrossRef]
- Jiang, Y.; Yang, F.; Zhu, H.; Zhou, D.; Zeng, X. Nonlinear CNN: Improving CNNs with quadratic convolutions. Neural Computing and Applications 2020, 32, 8507–8516. [Google Scholar] [CrossRef]
- Yuan, X.; Qi, S.; Wang, Y.; Xia, H. A dynamic CNN for nonlinear dynamic feature learning in soft sensor modeling of industrial process data. Control Engineering Practice 2020, 104, 104614. [Google Scholar] [CrossRef]
- Ning, C.; Xie, Y.; Sun, L. LSTM, WaveNet, and 2D CNN for nonlinear time history prediction of seismic responses. Engineering Structures 2023, 286, 116083. [Google Scholar] [CrossRef]
- Wanda, P. RunMax: Fake profile classification using novel nonlinear activation in CNN. Social Network Analysis and Mining 2022, 12, 158. [Google Scholar] [CrossRef]
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. |
© 2025 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 (https://creativecommons.org/licenses/by/4.0/).