Robust Peanut Size Grading via Scale-Augmented Ordinal Classification and Morphological Feature Fusion
Open Access
- 6 October 2026
- journal article
- research article
- Published by MDPI AG in Applied Sciences
- Vol. 16 (19) , 9897
Abstract
Deep learning models classify peanut size accurately under fixed imaging conditions, but accuracy drops when apparent object scale changes, for example with camera-to-object distance. Ordinal losses and feature-level fusion are rarely compared under a leakage-controlled protocol. To address both gaps, this study evaluates a single pipeline that pairs scale-aware training with morphological feature fusion. Five backbone architectures (ViT-Base, DeiT-Small, Swin-Tiny, ResNet-50, EfficientNet-B0) were trained with three loss functions (cross-entropy, CORAL, CORN). Continuous isotropic scale augmentation (50–) simulated the scale change expected in the field, and robustness was measured with a ten-step synthetic scale scan against a non-augmented control. Independently trained CORAL and CORN outputs were then stacked with analytically rescaled morphological features, to test whether fusion adds genuine value beyond the base models. In the resulting comparison, transformer backbones achieved higher classification accuracy than convolutional networks, and CORN was the most stable of the three loss functions. Scale augmentation delivered a clear robustness gain at a modest cost: for ViT-Base with CORN, mean accuracy across the tested scale range rose from to , and cross-scale variability fell sevenfold, with only a small loss at native scale. The same pattern held for Swin-Tiny ( to , a -fold reduction) and ResNet-50 ( to , a -fold reduction). Gradient-boosting fusion then raised accuracy by percentage points on average over the best single model, with the largest gains on the weaker convolutional backbones. Permutation importance and boundary-case analysis confirmed that this gain did not rest on a single dominant size-correlated feature. Scale-aware training and analytically consistent fusion, rather than architectural complexity, therefore account for the main improvement in image-based ordinal size grading.
Keywords
This publication has 33 references indexed in Scilit:
- Information fusion in smart agriculture: machine learning applications and future research directionsInformation Fusion, 2025
- A comprehensive review of techniques, algorithms, advancements, challenges, and clinical applications of multi-modal medical image fusion for improved diagnosisComputer Methods and Programs in Biomedicine, 2025
- Enhancing peanut pre‐sizing with PodTracker: A multiple pod tracking algorithmThe Plant Phenome Journal, 2025
- Deep neural networks for rank-consistent ordinal regression based on conditional probabilitiesPattern Analysis and Applications, 2023
- Efficient improvement of classification accuracy via selective test-time augmentationInformation Sciences, 2023
- A novel deep ordinal classification approach for aesthetic quality control classificationNeural Computing and Applications, 2022
- Unimodal regularisation based on beta distribution for deep ordinal regressionPattern Recognition, 2022
- Deep and interpretable regression models for ordinal outcomesPattern Recognition, 2022
- Rank consistent ordinal regression for neural networks with application to age estimationPattern Recognition Letters, 2020
- Automatic Detection and Grading of Multiple Fruits by Machine LearningFood Analytical Methods, 2019