A hyperspectral imaging and deep learning framework developed by researchers at Vellore Institute of Technology (VIT) University in India classified peanut pod maturity with 96.3% accuracy on a laboratory test set of 2,400 images. In an original research study published in Frontiers in Artificial Intelligence, MBM. Balasubramaniyan and CNC. Navaneethan combined a five-band spectral selection method with a sequential neural network architecture to separate mature peanut pods from immature ones. Across the 2,400 test images, the proposed system achieved 95.8% precision, 96.1% recall, a 95.9% F1-score, and a Cohen’s kappa coefficient of 0.974. The findings show high classification accuracy under controlled laboratory imaging, though the dataset was expanded through synthetic augmentation from 300 pods of a single peanut cultivar, and runtime metrics such as inference speed were not reported.
Determining when peanuts are ready for harvest remains a persistent agricultural challenge because the crop reproduces underground through geocarpic development and exhibits an indeterminate growth habit. As a result, pods on the same plant mature unevenly and exist at multiple developmental stages simultaneously at harvest. The internal maturity and quality of peanut kernels directly affect germination potential, processing quality, and nutritional value, making accurate maturity evaluation important for harvesting schedules and quality control. Peanuts are a major global food and oil crop; according to U.S. Department of Agriculture figures cited in the study, the United States produced 5.57 billion pounds of peanuts in 2017 across four primary types: runner, Virginia, Spanish, and Valencia. Peanuts are also vulnerable to fungal diseases and storage molds that can produce harmful aflatoxins, with Chinese standard GBT1532-2008 specifying that sun-dried peanuts should contain less than 9% moisture to limit mold growth.
Growers and researchers currently rely on indirect schedules or labor-intensive physical checks to estimate peanut ripeness. Calendar-based approaches such as days after planting, typically spanning 120 to more than 150 days, and growth degree days, ranging from 1,900 to 2,500 depending on cultivar and season, cannot serve as standalone indicators because field soil temperature and moisture fluctuate rapidly. Direct inspection methods include the shell-out technique, in which pods are opened to see whether the inner shell and seed coat have shifted from white in immature pods to dark pink in mature ones, and the hull scrape method, which removes the outer exocarp with a knife or a pressure washer set between 1,300 and 1,600 psi held roughly one meter away to expose the mesocarp. Other seed-health checks—including field emergence, conductivity, TTC, and red ink methods—require skilled labor and are slow or destructive. Earlier optical tools also face trade-offs: standard machine vision captures only external traits without internal chemistry, while single-point near-infrared spectroscopy is affected by sample thickness.
Previous hyperspectral imaging studies cited by the authors showed promise for peanut defect detection, including a support vector machine model that reached 94% accuracy on 150 peanuts naturally contaminated with aflatoxin B1 and a ShuffleNet V2 model that achieved 97.66% accuracy across 2,171 peanuts using 10 spectral bands between 400 and 1,000 nanometers. To target internal maturity, Balasubramaniyan and Navaneethan obtained 300 intact pods of the medium-grain Qinghua-14 variety from the Peanut Research Institute of the Qingdao Academy of Agricultural Sciences in Qingdao, Shandong Province, China. Although the authors describe hyperspectral imaging as a non-destructive approach for evaluating peanut seed maturity, dataset preparation involved controlled scraping to remove the outer exocarp and expose the mesocarp and endocarp layers surrounding the seeds. Researchers recorded sampling dates and days after planting, then manually sorted samples using visual color criteria, classifying white or light interiors as immature and deep pink, red, or brown interiors as mature.
To capture consistent imagery, the team built a dedicated dark-box test bench equipped with a CHUBU DC311L camera, a light source, three-cone rollers, and a conveyor belt moving at 40 millimeters per second. The camera photographed moving pods at one image per second, generating 2,323 initial shots from the 300 pods. After blurry frames were discarded, 2,000 base hyperspectral images remained. Using LabelImg software to create XML annotations, the researchers organized the augmented dataset across six quality categories: 2,519 normal samples, 2,006 single-kernel pods, 1,960 harmed samples, 1,907 germinated samples, 1,827 insect-damaged samples, and 1,781 mildew-affected samples. Six augmentation techniques—Gaussian noise, salt-and-pepper noise, rotation, flipping, brightness adjustment, and exposure variation—expanded the 2,000 original images into 12,000 total images by adding 10,000 synthetic variations. The dataset was split 80:20 into 9,600 training images and 2,400 test images, with every image resized to 224 by 224 pixels, or 50,176 pixels per image.
Before classification, preprocessing isolated the inner mesocarp tissue from background pixels through binarization thresholding, edge detection, and connected component labeling to crop each region of interest, followed by per-band min–max normalization. The first analytical stage of the sequential pipeline used Hyperspectral Invariant Scaled Feature Selection, or HSISFS, to compress the full hyperspectral data cube into five discriminative spectral bands. The algorithm computes dissimilarity indices between spectral vectors using Euclidean distance and correlation coefficients, preserving tissue-maturity signals while discarding redundant or noisy bands. When compared against established feature-selection methods on hyperspectral data, HSISFS achieved the highest scores across every metric: 96.3% accuracy, 95.8% precision, 96.1% recall, and a 95.9% F1-score. By comparison, MRMR reached 93.2% accuracy and a 92.6% F1-score, Relief F reached 90.8% accuracy and an 89.3% F1-score, and principal component analysis recorded 88.5% accuracy and an 87.0% F1-score.
The five selected spectral bands then passed sequentially through a multi-module deep learning architecture rather than independent classifiers. Initial convolutional layers extracted spatial patterns before feeding feature maps into a Modified Inception Module, or MIM, which replaced standard convolutions with depthwise and pointwise convolutions across 1 by 1, 3 by 3, and 5 by 5 kernel scales alongside max pooling. This redesign reduced module parameters from 15,488 in a standard Inception module to 1,132, a 92.69%—or roughly 13-fold—reduction while retaining multi-scale extraction. Next, a Depthwise Squeeze-and-Excitation Block, or DSEB, combined depthwise separable convolutions with channel-wise squeeze-and-excitation attention to emphasize informative spectral responses and suppress unnecessary channels, cutting parameter redundancy by roughly 65% relative to standard squeeze-and-excitation blocks. The recalibrated features entered a ConvMixer stage using patch embeddings of size 2 across 16 steps, depthwise spatial mixing, 1 by 1 pointwise channel mixing, GELU activation, and batch normalization, before final classification by a Kernel-Refined Squeeze Residual Network-18 backbone with global average pooling, a fully connected layer, and softmax output.
Component-level benchmarks reported by the researchers show how individual blocks performed against standard baselines. In a comparison of convolutional architectures, the Modified Inception Module achieved 94.8% accuracy, 93.5% precision, 94.2% recall, and a 93.7% F1-score, outperforming Inception v3, which scored 91.5% accuracy and a 90.0% F1-score, and a traditional convolutional neural network, which achieved 88.2% accuracy and an 86.8% F1-score. In a separate validation benchmark noted in the paper, a DSEB-based network achieved 92.4% accuracy on the ImageNet validation set, improving on a standard CNN by 5.1 percentage points and on SE-ResNet by 2.7 percentage points. On the 2,400-image peanut maturity test set, confusion matrix analysis showed that the full proposed model correctly classified 1,156 immature samples and 1,153 mature samples, aligning with its 96.3% overall accuracy and 0.974 kappa value.
An ablation study examined how the core modules contributed to classification performance under identical dataset, preprocessing, and evaluation conditions. The baseline backbone without MIM, DSEB, or ConvMixer achieved 88.2% accuracy, 86.5% precision, 87.1% recall, and an 86.8% F1-score. Adding MIM alone increased accuracy to 94.8% and the F1-score to 93.7%, while combining all three modules in the full proposed model raised accuracy to 96.3% and the F1-score to 95.9%. However, the ablation table listed results as not reported for five intermediate configurations—the baseline paired with DSEB alone, the baseline paired with ConvMixer alone, and all three two-module combinations—leaving each module’s isolated contribution incomplete. Computational efficiency reporting also contained gaps: although MIM’s parameter reduction was quantified, inference time per image and frames per second were not reported for any model, total parameters were omitted for KRS-ResNet18, and training hyperparameters including optimizer, learning rate, batch size, epochs, and loss function were not specified.
Because runtime speed and full parameter counts for KRS-ResNet18 were not documented, the authors acknowledged that their efficiency table lacks sufficient data to verify real-time inference capability. They also noted several experimental limitations affecting interpretation and field readiness. Classification performance showed minor variations across image types driven by differences in pod skin texture, moisture content, shell orientation, and natural shape changes during growth. While synthetic augmentations such as brightness, exposure, rotation, and flipping improved model stability, the authors cautioned that these transformations may have altered extracted spectral and spatial features. Furthermore, because maturity labels relied on manual visual reference criteria, pods near developmental transitions may carry ambiguous classifications. Confirming whether this laboratory framework generalizes beyond 300 Qinghua-14 pods will require larger datasets spanning multiple peanut varieties, growing regions, lighting conditions, sensor configurations, and independent external validation.
Subject of Research: Hyperspectral imaging and deep learning classification of peanut pod maturity
Article Title: Identifying peanut maturity based on Hyperspectral Invariant Scaled Feature Selection using 3D CNN with Squeeze and Excitation Block, ConvMixer architecture
Article References: Balasubramaniyan, M., & Navaneethan, C. (2026). Identifying peanut maturity based on Hyperspectral Invariant Scaled Feature Selection using 3D CNN with Squeeze and Excitation Block, ConvMixer architecture. Frontiers in Artificial Intelligence, 9, Article 1948496. https://doi.org/10.3389/frai.2026.1948496
Image Credits: AI Generated
DOI: 10.3389/frai.2026.1948496
Keywords: peanut maturity, hyperspectral imaging, deep learning, feature selection, HSISFS, ConvMixer, KRS-ResNet18, Modified Inception Module, Depthwise Squeeze-and-Excitation Block, agricultural computer vision, Qinghua-14 peanuts, peanut mesocarp, data augmentation, spectral band selection, precision agriculture, seed quality assessment, ablation study
News Source: Blake Davidson. (December 2, 2026). Hyperspectral deep learning classifies peanut maturity with 96.3% lab test accuracy. Scienmag.



