Dry fruit image classification using stacking ensemble model
Precise and efficient classification of dry fruit images is critical for enhancing quality control, efficiency, and safety in the agricultural and food industries. This study presents a CNN-based classification model developed to analyze a diverse dataset of dry fruit images. The dataset comprises 11,520 high-resolution images representing four varieties (raisins, cashews, almonds, and figs), each divided into three groups, resulting in twelve distinct classes. The proposed multi-step methodology covers data collection, preprocessing, augmentation, and model training. A wide range of image conditions, including variations in fruit types, shapes, colors, and lighting, facilitated comprehensive experimentation and validation using performance indicators such as accuracy. A stacking ensemble, integrating predictions from multiple models (e.g., VGG16, VGG19, ResNet50, MobileNetV1, Mo- bileNetV2, SqueezeNet, and ShuffleNet), achieved a test accuracy of 98.32 %, surpassing individual base model performances (MobileNetV2: 90.33 %, Mo- bileNetV1: 93.68 %, SqueezeNet: 96.98 %, and ShuffleNetV2: 97.79 %). These findings underscore the model’s potential for real-time applications in qual-ity control, automated processing, nutritional research, and other domains, while also delineating the key components required for accurate classification.
Authors
- Md. Rasel
- Saleh Masum
- Maheen Islam (ORCID: https://orcid.org/0000-0002-8292-0059)
- Abdullah Al Rafi (ORCID: https://orcid.org/0009-0003-8079-6693)
- Abdullahi Chowdhury (ORCID: https://orcid.org/0000-0001-7237-1642)
- Mujahidul Islam
- Md Sawkat Ali (ORCID: https://orcid.org/0000-0001-6666-8810)
- Taskeed Jabid (ORCID: https://orcid.org/0000-0002-8249-9567)
- Mohammad Manzurul Islam (ORCID: https://orcid.org/0000-0002-3008-081X)
- Alfe Suny
Institutions
- East West University (BD)
- University of Rajshahi (BD)
Publication Details
- Journal
- Journal of Agriculture and Food Research
- Published
- 2025-03-25
- DOI
- https://doi.org/10.1016/j.jafr.2025.101850
- Citations
- 4
- Primary Topic
- Smart Agriculture and AI
- Type
- article
- Field-Weighted Citation Impact
- 7.00