Hyperspectral Analysis of Grain Year Identification
author: Callum
2025-01-22
1. Introduction
The identification of the storage year of grains is crucial for ensuring food quality and safety. Taking wheat as an example, the germination rate of wheat seeds is closely related to its storage year. As the storage year increases, the germination rate of wheat seeds typically decreases, which in turn affects both the yield and quality of wheat. Therefore, accurately identifying the storage year of grains is essential for agricultural production and food reserve management. Traditional methods for identifying grain storage years rely primarily on manual sensory judgments, such as observing the grain’s appearance or smelling it. However, these methods are time-consuming, labor-intensive, and prone to errors, making it difficult to meet the modern agricultural demand for fast and accurate grain year identification.
With the continuous development of spectral technologies, hyperspectral imaging has emerged as a promising solution, offering new technical means for grain year identification. Hyperspectral imaging combines the advantages of imaging and spectral technologies, allowing for the simultaneous acquisition of both image and spectral data that reflect the external characteristics, internal physical structure, and chemical composition of the sample. This technology is non-destructive, fast, and accurate, and has been widely applied in non-destructive testing of agricultural products.
This study aims to use hyperspectral imaging technology to identify the storage years of grains (such as wheat, corn, etc.). By collecting hyperspectral data from grains of different storage years, extracting their characteristic spectral information, and constructing year identification models, rapid and accurate identification of grain years can be achieved. This not only helps improve the scientific management of grain reserves but also contributes to the sustainable development of grain production.
2. Technical Approach and Main Content
2.1 Sample Selection and Data Collection
Steps:
1. Select representative grain samples from different years, such as wheat, corn, etc.
2. Use a hyperspectral imaging system to collect the hyperspectral data of the samples. It is crucial to ensure consistency in the collection conditions to avoid external factors influencing the results.
Advantages:
Non-destructive testing ensures the integrity of the samples and allows for the acquisition of spatial distribution information across the entire sample. This helps to identify any internal inhomogeneities.
Non-destructive testing ensures the integrity of the samples and allows for the acquisition of spatial distribution information across the entire sample. This helps to identify any internal inhomogeneities.
2.2 Data Preprocessing
The collected hyperspectral data undergoes preprocessing operations such as radiometric calibration and noise removal to improve data quality. The calculation formula for radiometric calibration is as follows:
Figure 1 Hyperspectral Image of Grain
Advantages:
This step allows for the acquisition of detailed spectral information, containing rich chemical and physical data. It enables the distinction of subtle differences in components and the detection of complex compositions.
By using methods like Principal Component Analysis (PCA), redundant information between bands is removed, and multi-band image data is compressed into a smaller number of effective transformed bands.
Figure 2 PCA-Based Synthetic Color Image of Grain Seeds from Different Years
2.3 Feature Extraction and Selection
Using PCA transformation for RGB color synthesis, we can more objectively observe the differences in the images of wheat seeds from different years. To further analyze these differences, we extract the features of wheat seeds from various years, such as the mean and standard deviation. The variations in the mean and standard deviation of wheat seeds from different years are shown in the figure below.
From the figure, it is evident that the spectral curves of wheat seeds from different years are very consistent, both in terms of the mean and the standard deviation. Looking at the mean, the wheat seeds from different years show relatively distinct differentiation around 500 nm. For the standard deviation, differentiation is more evident at 700 nm. Therefore, in this study, these two bands are used to construct NDVI and EVI spectral indices, and the formulas for calculating NDVI and EVI are as follows:
2.4 Results Analysis
Taking the NDVI spectral index as an example, we analyze the image display differences of wheat seeds from different years. In the left image (excluding 2011) and the right image (excluding 2012), the image colors of wheat seeds from other years show a regular pattern of change. In the NDVI image, wheat seeds from earlier years appear blue, those from intermediate years appear green, and the most recent seeds appear red.
For modeling data, wheat seeds from the years 1995, 2008, 2009, 2010, 2012, 2013, and 2014 (7 years in total) were used, while wheat seeds from 2010, 2011, 2013, and 2014 (4 years) were used for validation. Using the NDVI and EVI spectral indices, we built a model to predict the year of wheat seeds and verified the reliability of the model.
2.5 Conclusion
The raw imaging data of wheat seeds collected by the hyperspectral sorter were preprocessed, including radiometric calibration and noise removal. The MNF method was used for noise removal. To compress the multi-band image data into a more effective set of fewer transformed bands, Principal Component Analysis (PCA) was applied to the preprocessed hyperspectral data. Based on the analysis of the mean and standard deviation, we selected the visible spectrum bands at 500 nm and 700 nm to construct the NDVI and EVI spectral indices. As the storage year of wheat seeds increased, the NDVI and EVI values also increased. The coefficient of determination (R²) for NDVI with respect to the corresponding year was 0.7624, while for EVI it was 0.8585, indicating that the model built using EVI had a higher R² than that of NDVI. The NDVI modeling equation is y=−118.48x+2051.5, and the EVI modeling equation is y=−9.312x+2027.7. Using these models, to predicted the year of wheat seeds for 2010, 2011, 2013, and 2014. Both NDVI and EVI models gave the exact predicted years matching the actual years.
UAV-Based Hyperspectral Imaging for Wheat Stripe Rust Monitoring
Development and Prospects of Hyperspectral LiDAR for Earth Observation
Related Article

Discover Optosky’s air–ground collaborative hyperspectral solution for mine ecological restoration monitoring. Combining UAV hyperspectral imaging, fixed-point rotating-scan systems, and field spectroradiometers, it supports vegetation, soil, mineral alteration, and water environment monitoring for green mine evaluation and restoration acceptance.
Applications | Hyperspectral Mine Restoration Monitoring

Compare single InGaAs and CMOS+InGaAs detector architectures in hyperspectral imaging. Learn why both can cover 400–1700 nm, how visible-light-extended InGaAs works, and the trade-offs in calibration, spectral registration, and system integration for applications in agriculture, food safety, and industrial inspection.
Technology | Single InGaAs vs. CMOS+InGaAs in Hyperspectral Imaging

Discover how hyperspectral imaging combined with multi-feature fusion (PCA + 2DCOS + CARS) enables non-destructive three-level grading of chili pepper sunburn with 97.2% accuracy. Learn about the ATH3000 system and Optosky's customized solutions for horticultural crop quality inspection and damage classification.
Can Sunburned Chili Peppers Be Non-Destructively Graded? Hyperspectral Imaging ATH3000 Offers a New Answer

Discover the Optosky ATH9600 multi-lens UAV-borne multispectral imaging system—featuring 67° ultra-wide FOV, synchronous snapshot, 3.75 μm large pixel, and native DJI X-Port integration. Ideal for large-area farmland monitoring, orchard management, pest early warning, water quality inversion, and complex crop classification. Born for efficient, all-weather low-altitude remote sensing.
Born for Large-Area Remote Sensing! Optosky Releases the ATH9600 Multi-Lens UAV-Borne Multispectral Imaging System