Enhancing Agricultural Product Evaluation with a Multi-Head Vision Transformer Approach
13 Halaman
Penulis
ISSN
2598-9642
Penerbit
Institut Bisnis dan Teknologi Indonesia , Indonesia
Diterbitkan pada
31/12/2025
Bahasa
English
DOI
-Kata Kunci
Abstrak
The advancement of agricultural automation requires efficient and accurate models capable of evaluating multiple aspects of fruit quality simultaneously. Conventional computer vision systems typically employ separate models for fruit type classification and freshness detection, increasing computational complexity and reducing operational efficiency. This study proposes a Multi-Task Learning (MTL) framework based on a Vision Transformer (ViT) backbone to perform both tasks within a single unified model. The architecture utilizes a shared self-attention mechanism for global feature extraction and incorporates two dedicated classification heads to independently predict fruit types and freshness status within a shared feature space. Experiments were conducted using the Fresh and Stale Classification dataset, with evaluation metrics including accuracy, confusion matrices, precision, recall, and F1-score. The model achieved 98% accuracy for fruit classification and 99% for freshness detection. While the proposed ViT-based MTL model requires higher computational resources than individual lightweight CNNs, it demonstrates superior efficiency compared to deploying two separate models, reducing total inference time by 32.8% and parameter count by 31.0% while achieving significantly higher. Results demonstrate consistently high performance across categories, with minor confusion among visually similar fruits. The proposed approach enhances predictive performance while maintaining computational efficiency, offering a practical solution for real-world agricultural quality control applications.
