Fruit Freshness Detection Explainable Model Based on Attention Mechanism
CSTR:
Author:
Affiliation:

(1.Zhejiang Food and Drug Quality & Safety Engineering Research Institute,Zhejiang Gongshang University, Hangzhou 310018;2.School of Management and E-Business, Zhejiang Gongshang University, Hangzhou 310018)

Clc Number:

Fund Project:

  • Article
  • |
  • Figures
  • |
  • Metrics
  • |
  • Reference
  • |
  • Related
  • |
  • Cited by
  • |
  • Materials
  • |
  • Comments
    Abstract:

    In recent years, fruit freshness detection based on machine vision and deep learning has become one of the mainstream methods. This study explores the application of deep learning technologies, particularly convolutional neural networks(CNNs), in feature extraction for fruit freshness identification. This paper introduces the CBAM (Convolutional block attention module) attention mechanism module into the ResNet34 (34-layer residual network) backbone network to achieve fruit freshness detection. Class activation mapping(CAM) techniques are employed to visualize the heatmaps of pixels that reflect the critical features in the images. On a public fruit dataset, the classification accuracy of the ResNet34 network before and after introducing the attention mechanism is 96.80% and 99.71%, respectively. The CAM heatmaps show that the attention model can more accurately capture the regions of interest in the fruit images, indicating that the proposed model improves the feature extraction capability of deep learning, not only enhancing the model's generalization ability but also increasing its interpretability.

    Reference
    Related
    Cited by
Get Citation
Share
Article Metrics
  • Abstract:
  • PDF:
  • HTML:
  • Cited by:
History
  • Received:October 28,2024
  • Revised:
  • Adopted:
  • Online: December 16,2024
  • Published:
Article QR Code
Copyright :Journal of Chinese Institute of Food Science and Technology     京ICP备09084417号-4
Address :9/F, No. 8 North 3rd Street, Fucheng Road, Haidian District, Beijing, China      Postal code :100048
Telephone :010-65223596 65265376      E-mail :chinaspxb@vip.163.com
Supported by : Beijing E-Tiller Technology Development Co., Ltd.