Related Experiment Video
Updated: Jun 6, 2026

Cereal Crop Ear Counting in Field Conditions Using Zenithal RGB Images
Published on: February 2, 2019
Distilled vision transformers with CNN fusion for robust cashew apple maturity prediction
Sumalatha Lingamgunta1, Jeevaratnam Mudidana1, Durai Raj Vincent2
1Department of Computer Science and Engineering, University College of Engineering Kakinada, Jawaharlal Nehru Technological University Kakinada, Kakinada, Andhra Pradesh, India.
Introduction:
Cashew apple is a nutrient-rich fruit containing abundant minerals, vitamins, and energy. However, its fleshy texture and delicate skin significantly limit its storage life and market value. Accurate maturity grading is therefore essential for improving post-harvest management and transportation efficiency.
Methods:
This study proposes a lightweight vision transformer (ViT) student model trained using multi-granular knowledge distillation (KD) from a stronger data-efficient image transformer (DeiT)-Base teacher. The distillation framework integrates response-based soft-label supervision, attention transfer, and token-level feature regression to enhance representation learning under limited data conditions. Auxiliary lightweight architectures, including MobileNet, ConvNeXt, and EdgeNeXt, were trained independently to provide complementary predictions, and a weighted fusion strategy was employed for ensemble evaluation.
Results:
The proposed ensemble ViT-KD with EdgeNeXt achieved 90% accuracy under the evaluated test split. To ensure statistical reliability and address potential partition bias, a stratified fivefold cross-validation was conducted on the dataset, yielding a mean accuracy of 86.89% ± 2.89% with consistent F1 scores and recall. The relatively low variance across the folds indicates stable internal generalization. Comparative experiments with conventional convolutional neural network (CNN) baselines and lightweight CNN baselines such as MobileViT-S and ShuffleNetV2 were performed, with the proposed ensemble framework achieving improved accuracy while maintaining computational efficiency. Computational analysis indicates that the stand-alone distilled ViT maintains a real-time inference capability of 8.79 ms per image, which supports suitability for edge-oriented agricultural applications.
Discussion:
These results highlight the effectiveness of knowledge-distilled lightweight transformers for data-efficient maturity grading of cashew apples.