人工智能
特征提取
模型验证
机器学习
模式识别(心理学)
变压器
食品质量
数学
鉴定(生物学)
新鲜食物
训练集
工程类
质量(理念)
计算机科学
特征(语言学)
作者
V. Karunakaran,Vinoth Kumar Sathish Kumar,Mohanasundaram Gunasekaran,Bharani Dharan M,Naveen Kumar Thirugnanam
出处
期刊:
[Institute of Electrical and Electronics Engineers]
日期:2025-12-15
卷期号:: 683-689
标识
DOI:10.1109/icicnis66685.2025.11315518
摘要
Accurate identification of spoiled versus fresh fruits and vegetables is important for quality control in agriculture. Traditional manual inspection is slow and inconsistent. This work compares a standard ResNet-18 model against a hybrid ResNet-18–Vision Transformer ResNet-18 ViT model for classifying fresh and rotten fruit and vegetable images. This work used a ResNet-18 backbone for feature extraction from the image, and the pre-trained ViT-B16 is used for the classification. Both the models are trained, tested, and validated on the Fresh and Rotten Classification dataset. The model is evaluated with the following performance metrics, such as accuracy, precision, recall, F1-score, and ROC-AUC for training, testing, and validation datasets. The ResNet-18 model achieves 98.77 percent training accuracy, 97.76 percent testing accuracy, and 98.40 percent validation accuracy. While the ResNet-18 ViT model achieves 99.40 percent training accuracy, 99.26 percent testing accuracy, and 99.37 percent validation accuracy. Our hybrid model consistently outperforms the standard ResNet-18, demonstrating that combining convolutional feature extractors with transformer-based global attention can improve classification of fruit and vegetable freshness. These results suggest that hybrid ResNet-18 transformer architectures are promising for image-based food quality assessment.
科研通智能强力驱动
Strongly Powered by AbleSci AI