Hyperspectral Wavelength Selection Based on Inter-Class Feature Differences for Maize Seed Age Discrimination
Abstract
1. Introduction
2. Materials and Methods
2.1. Sample Preparation
2.2. Hyperspectral Imaging System
- (1)
- Direct Correlation with Seed Aging Indicators: Variation in the storage duration of maize seeds leads to the degradation of key biochemical components (chlorophyll, carotenoids, phenolic compounds) and the oxidation of lipids and proteins. These chemical changes are reflected in alterations of the seeds’ optical properties within this specific spectral region.
- (2)
- Cost and Simplicity: Hyperspectral imaging systems operating in the 400–1000 nm range are generally more cost-effective and easier to implement than NIR systems that require cooled, expensive InGaAs detectors. This cost advantage enables higher-throughput configurations for scalability, making them more suitable for future large-scale applications.
- (3)
- Spatial Resolution: The shorter wavelengths in the 400–1000 nm range enable higher spatial resolution for imaging fine morphological structures of the seed (e.g., embryo vs. coat), which is essential for the region of interest analysis we performed. This complements the spectral information.
2.3. Spectra Data Extraction
2.4. Data Preprocessing
2.5. Key Wavelength Selection Algorithms
2.5.1. Successive Projections Algorithm (SPA) and Random Forest (RF)
2.5.2. Inter-Class Feature Differences (IFD)
2.6. Model Construction
3. Results and Discussion
3.1. Spectral Pretreatment
3.2. Key Wavelength Selection
3.2.1. Key Wavelength Selection Based on IFDa
3.2.2. Key Wavelength Selection Based on IFD
3.3. Discrimination Results for Samples of Different Ages
3.4. Comparison of ROIs for Whole Seed and Embryo
3.5. Comparison with Other Key Wavelength Selection Algorithms
3.6. Discrimination Results of New and Aged Maize Seeds
3.7. Discussion of Key Wavelengths Selected by IFD
4. Conclusions
Supplementary Materials
Author Contributions
Funding
Institutional Review Board Statement
Data Availability Statement
Conflicts of Interest
Abbreviations
| VIS-NIR | Visible and near-infrared |
| TYS | Two year aged seeds |
| OYS | One year aged seeds |
| NS | New seeds |
| ROI | Region of interest |
| SG | Savitzky–Golay |
| FD | First-order derivative |
| SPA | Successive projections algorithm |
| RF | Random frog |
| IFD | Inter-Class feature differences |
| LDA | Linear discriminant analysis |
References
- Tenaillon, M.I.; Charcosset, A. A European perspective on maize history. Comptes Rendus Biol. 2011, 334, 221–228. [Google Scholar] [CrossRef] [Scilit]
- Li, L.; Huang, W.; Wang, Z.; Liu, S.; He, X.; Fan, S. Calibration transfer between developed portable Vis/NIR devices for detection of soluble solids contents in apple. Postharvest Biol. Technol. 2022, 183, 111720. [Google Scholar] [CrossRef] [Scilit]
- Jin, X.; Chen, X.; Shi, C.; Li, M.; Guan, Y.; Yu, C.Y.; Yamada, T.; Sacks, E.J.; Peng, J. Determination of hemicellulose, cellulose and lignin content using visible and near infrared spectroscopy in Miscanthus sinensis. Bioresour. Technol. 2017, 241, 603–609. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Huang, M.; Zhao, W.Y.; Wang, Q.G.; Zhang, M.; Zhu, Q.B. Prediction of moisture content uniformity using hyperspectral imaging technology during the drying of maize kernel. Int. Agrophys. 2015, 29, 39–46. [Google Scholar] [CrossRef] [Scilit]
- Zhang, Y.; Guo, W. Moisture content detection of maize seed based on visible/near-infrared and near-infrared hyperspectral imaging technology. Int. J. Food Sci. 2020, 55, 631–640. [Google Scholar] [CrossRef] [Scilit]
- Yang, X.L.; You, Z.H.; Cheng, F. Study on Identification of Immature Corn Seed Using Hyperspectral Imaging. Spectrosc. Spect. Anal. 2016, 36, 4028–4033. [Google Scholar]
- Wang, Z.L.; Tian, X.; Fan, S.X.; Zhang, C.; Li, J.B. Maturity determination of single maize seed by using near-infrared hyperspectral imaging coupled with comparative analysis of multiple classification models. Infrared Phys. Technol. 2021, 112, 103596. [Google Scholar] [CrossRef] [Scilit]
- Wang, L.; Sun, D.W.; Pu, H.B.; Zhu, Z.W. Application of Hyperspectral Imaging to Discriminate the Variety of Maize Seeds. Food Anal. Methods 2016, 9, 225–234. [Google Scholar] [CrossRef] [Scilit]
- Zhao, Y.Y.; Zhu, S.S.; Zhang, C.; Feng, X.P.; Feng, L.; He, Y. Application of hyperspectral imaging and chemometrics for variety classification of maize seeds. RSC Adv. 2018, 8, 1337–1345. [Google Scholar] [CrossRef] [Scilit]
- Huang, M.; Tang, J.Y.; Yang, B.; Zhu, Q.B. Classification of maize seeds of different years based on hyperspectral imaging and model updating. Comput. Electron. Agric. 2016, 122, 139–145. [Google Scholar] [CrossRef] [Scilit]
- Mendoza, F.; Lu, R.F.; Ariana, D.; Cen, H.Y.; Bailey, B. Integrated spectral and image analysis of hyperspectral scattering data for prediction of apple fruit firmness and soluble solids content. Postharvest Biol. Technol. 2011, 62, 149–160. [Google Scholar] [CrossRef] [Scilit]
- Gao, Z.; Shao, Y.; Xuan, G.; Wang, Y.; Liu, Y.; Han, X. Real-time hyperspectral imaging for the in-field estimation of strawberry ripeness with deep learning. Artif. Intell. Agric. 2020, 4, 31–38. [Google Scholar] [CrossRef] [Scilit]
- Dalponte, M.; Bruzzone, L.; Vescovo, L.; Gianelle, D. The role of spectral resolution and classifier complexity in the analysis of hyperspectral images of forest areas. Remote Sens. Environ. 2009, 113, 2345–2355. [Google Scholar] [CrossRef] [Scilit]
- Mianji, F.A.; Zhang, Y. Robust Hyperspectral Classification Using Relevance Vector Machine. IEEE Trans. Geosci. Remote Sens. 2011, 49, 2100–2112. [Google Scholar] [CrossRef] [Scilit]
- Liu, D.; Sun, D.W.; Zeng, X.A. Recent Advances in Wavelength Selection Techniques for Hyperspectral Image Processing in the Food Industry. Food Bioprocess Technol. 2014, 7, 307–323. [Google Scholar] [CrossRef] [Scilit]
- Araújo, M.C.U.; Saldanha, T.C.B.; Galvão, R.K.H.; Yoneyama, T.; Chame, H.C.; Visani, V. The successive projections algorithm for variable selection in spectroscopic multicomponent analysis. Chemom. Intell. Lab. Syst. 2001, 57, 65–73. [Google Scholar] [CrossRef] [Scilit]
- Pontes, M.J.C.; Galvao, R.K.H.; Araujo, M.C.U.; Nogueira, P.; Moreira, T.; Neto, O.D.P.; Jose, G.E.; Saldanha, T.C.B. The successive projections algorithm for spectral variable selection in classification problems. Chemom. Intell. Lab. Syst. 2005, 78, 11–18. [Google Scholar] [CrossRef] [Scilit]
- Hu, M.H.; Dong, Q.L.; Liu, B.L.; Opara, U.L.; Chen, L. Estimating blueberry mechanical properties based on random frog selected hyperspectral data. Postharvest Biol. Technol. 2015, 106, 1–10. [Google Scholar] [CrossRef] [Scilit]
- Lin, C.Y.; Bondell, H.; Hao, H.Z.; Hui, Z. Variable Selection for Nonparametric Quantile Regression via Smoothing Spline AN OVA. Stat 2012, 2, 255–268. [Google Scholar] [CrossRef] [Scilit]
- Wu, L.C.; Zhang, Z.Z.; Xu, D.K. Variable selection in joint mean and variance models of Box-Cox transformation. J. Appl. Stat. 2012, 39, 2543–2555. [Google Scholar] [CrossRef] [Scilit]
- Fan, S.X.; Huang, W.Q.; Guo, Z.M.; Zhang, B.H.; Zhao, C.J. Prediction of Soluble Solids Content and Firmness of Pears Using Hyperspectral Reflectance Imaging. Food Anal. Method 2015, 8, 1936–1946. [Google Scholar] [CrossRef] [Scilit]
- Li, J.B.; Wang, Q.Y.; Xu, L.; Tian, X.; Xia, Y.; Fan, S.X. Comparison and Optimization of Models for Determination of Sugar Content in Pear by Portable Vis-NIR Spectroscopy Coupled with Wavelength Selection Algorithm. Food Anal. Method 2019, 12, 12–22. [Google Scholar] [CrossRef] [Scilit]
- Zhang, B.H.; Liu, L.S.; Gu, B.X.; Zhou, J.; Huang, J.C.; Tian, G.Z. From hyperspectral imaging to multispectral imaging: Portability and stability of HIS-MIS algorithms for common defect detection. Postharvest Biol. Technol. 2018, 137, 95–105. [Google Scholar] [CrossRef] [Scilit]
- Tian, X.; Huang, W.Q.; Li, J.B.; Fan, S.X.; Zhang, B.H. Measuring the Moisture Content in Maize Kernel Based on Hyperspctral Image of Embryo Region. Spectrosc. Spect. Anal. 2016, 36, 3237–3242. [Google Scholar]
- Savitzky, A.; Golay, M. Smoothing and Differentiation of Data by Simplified Least Squares Procedures. Anal. Chem. 1964, 36, 1627–1639. [Google Scholar] [CrossRef] [Scilit]
- 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] [Scilit]
- Wang, H.L.; Peng, J.Y.; Xie, C.Q.; Bao, Y.D.; He, Y. Fruit Quality Evaluation Using Spectroscopy Technology: A Review. Sensors 2015, 15, 11889–11927. [Google Scholar] [CrossRef] [Scilit]
- Ye, S.F.; Wang, D.; Min, S.G. Successive projections algorithm combined with uninformative variable elimination for spectral variable selection. Chemom. Intell. Lab. Syst. 2008, 91, 194–199. [Google Scholar] [CrossRef] [Scilit]
- Soares, S.F.C.; Gomes, A.A.; Galvao, A.R.; Araujo, M.C.U.; Galvao, R.K.H. The successive projections algorithm. Trac-Trends Anal. Chem. 2013, 42, 84–98. [Google Scholar] [CrossRef] [Scilit]
- Li, X.L.; Sun, C.J.; Luo, L.B.; He, Y. Determination of tea polyphenols content by infrared spectroscopy coupled with iPLS and random frog techniques. Comput. Electron. Agric. 2015, 112, 28–35. [Google Scholar] [CrossRef] [Scilit]
- Chen, J.Y.; Li, G.H. Prediction of moisture content of wood using Modified Random Frog and Vis-NIR hyperspectral imaging. Infrared Phys. Technol. 2020, 105, 103225. [Google Scholar] [CrossRef] [Scilit]
- Le, K.T.; Chaux, C.; Richard, F.J.P.; Guedj, E. An adapted linear discriminant analysis with variable selection for the classification in high-dimension, and an application to medical data. Comput. Stat. Data Anal. 2020, 152, 107031. [Google Scholar] [CrossRef] [Scilit]
- Jiang, Y.C.; Leung, F.H.F. Investigating and improving the utility of probabilistic linear discriminant analysis for acoustic signal classification. Digit. Signal Process. 2021, 114, 103055. [Google Scholar] [CrossRef] [Scilit]
- Yang, S.; Zhu, Q.B.; Huang, M. Application of Joint Skewness Algorithm to Select Optimal Wavelengths of Hyperspectral Image for Maize Seed Classification. Spectrosc. Spect. Anal. 2017, 37, 990–996. [Google Scholar]
- Guo, Z.; Zhang, J.; Ma, C.; Yin, X.; Guo, Y.; Sun, X.; Jin, C. Application of visible-near-infrared hyperspectral imaging technology coupled with wavelength selection algorithm for rapid determination of moisture content of soybean seeds. J. Food Compos. Anal. 2023, 116, 105048. [Google Scholar] [CrossRef] [Scilit]
- Xiong, C.; She, Y.; Jiao, X.; Zhang, T.; Wang, M.; Wang, M.; Abd El-Aty, A.M.; Wang, J.; Xiao, M. Rapid nondestructive hardness detection of black highland barley kernels via hyperspectral imaging. J. Food Compos. Anal. 2024, 127, 11. [Google Scholar] [CrossRef] [Scilit]













| Spectra | Different Aged Samples | Predicted Results | Overall Accuracy | |||
|---|---|---|---|---|---|---|
| TYS | OYS | NS | Accuracy | |||
| Raw spectra | TYS | 81 | 15 | 4 | 81% | 81.33% |
| OYS | 18 | 77 | 5 | 77% | ||
| NS | 2 | 12 | 86 | 86% | ||
| Spectra with ends removed | TYS | 86 | 12 | 2 | 86% | 86.33% |
| OYS | 12 | 83 | 5 | 83% | ||
| NS | 1 | 9 | 90 | 90% | ||
| SG-smoothed spectra | TYS | 90 | 9 | 1 | 90% | 89.67% |
| OYS | 11 | 85 | 4 | 85% | ||
| NS | 1 | 5 | 94 | 94% | ||
| SG-FD-preprocessed spectra | TYS | 93 | 7 | 0 | 93% | |
| OYS | 8 | 88 | 4 | 88% | 92.00% | |
| NS | 0 | 5 | 95 | 95% | ||
| Number of Bands | Different Aged Samples | Predicted Results | Overall Accuracy | |||
|---|---|---|---|---|---|---|
| TYS | OYS | NS | Accuracy | |||
| 772 bands | TYS | 93 | 7 | 0 | 93% | 92.00% |
| OYS | 8 | 88 | 4 | 88% | ||
| NS | 0 | 5 | 95 | 95% | ||
| 3 key wavelengths selected by IFD (559.6, 631.2 and 640.5 nm) | TYS | 82 | 18 | 0 | 82% | 85.67% |
| OYS | 11 | 81 | 8 | 81% | ||
| NS | 0 | 6 | 94 | 94% | ||
| 3 key wavelengths selected by IFDa (559.6, 640.5 and 641.3 nm) | TYS | 84 | 16 | 0 | 84% | 85.00% |
| OYS | 14 | 77 | 9 | 77% | ||
| NS | 1 | 5 | 94 | 94% | ||
| Different ROI of Samples | Different Aged Samples | Predicted Results | Overall Accuracy | |||
|---|---|---|---|---|---|---|
| TYS | OYS | NS | Accuracy | |||
| Whole seed region | TYS | 82 | 18 | 0 | 82% | 85.67% |
| OYS | 11 | 81 | 8 | 81% | ||
| NS | 0 | 6 | 94 | 94% | ||
| Embryo region | TYS | 82 | 17 | 1 | 82% | 84.33% |
| OYS | 13 | 78 | 9 | 78% | ||
| NS | 1 | 6 | 93 | 93% | ||
| Different Wavelength Selection Methods | Different Aged Samples | Predicted Results | Overall Accuracy | |||
|---|---|---|---|---|---|---|
| TYS | OYS | NS | Accuracy | |||
| Proposed method | TYS | 82 | 18 | 0 | 82% | 85.67% |
| OYS | 11 | 81 | 8 | 81% | ||
| NS | 0 | 6 | 94 | 94% | ||
| SPA | TYS | 40 | 48 | 12 | 40% | 52.33% |
| OYS | 19 | 44 | 37 | 44% | ||
| NS | 14 | 13 | 73 | 73% | ||
| RF | TYS | 40 | 30 | 30 | 40% | 54.67% |
| OYS | 38 | 51 | 11 | 51% | ||
| NS | 19 | 8 | 73 | 73% | ||
| Number of Bands | Year of Samples | Predicted Results | Overall Accuracy | ||
|---|---|---|---|---|---|
| TYS-OYS | NS | Accuracy | |||
| 772 bands | TYS-OYS | 196 | 4 | 98.00% | 97.00% |
| NS | 5 | 95 | 95.00% | ||
| 3 key wavelengths | TYS-OYS | 192 | 8 | 96.00% | 95.33% |
| NS | 6 | 94 | 94.00% | ||
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
Zhou, Q.; Zheng, S.; Zhang, J.; Wang, B. Hyperspectral Wavelength Selection Based on Inter-Class Feature Differences for Maize Seed Age Discrimination. Agriculture 2026, 16, 196. https://doi.org/10.3390/agriculture16020196
Zhou Q, Zheng S, Zhang J, Wang B. Hyperspectral Wavelength Selection Based on Inter-Class Feature Differences for Maize Seed Age Discrimination. Agriculture. 2026; 16(2):196. https://doi.org/10.3390/agriculture16020196
Chicago/Turabian StyleZhou, Quan, Shijian Zheng, Jing Zhang, and Benyou Wang. 2026. "Hyperspectral Wavelength Selection Based on Inter-Class Feature Differences for Maize Seed Age Discrimination" Agriculture 16, no. 2: 196. https://doi.org/10.3390/agriculture16020196
APA StyleZhou, Q., Zheng, S., Zhang, J., & Wang, B. (2026). Hyperspectral Wavelength Selection Based on Inter-Class Feature Differences for Maize Seed Age Discrimination. Agriculture, 16(2), 196. https://doi.org/10.3390/agriculture16020196

