Fruit Freshness Detection Explainable Model Based on Attention Mechanism

被引:0
|
作者
Zhang, Yinsheng [1 ]
Song, Zenglin [2 ]
Wang, Haiyan [1 ]
机构
[1] Zhejiang Food and Drug Quality & Safety Engineering Research Institute, Zhejiang Gongshang University, Hangzhou,310018, China
[2] School of Management and E-Business, Zhejiang Gongshang University, Hangzhou,310018, China
关键词
Cams;
D O I
10.16429/j.1009-7848.2024.10.003
中图分类号
学科分类号
摘要
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. © 2024 Chinese Institute of Food Science and Technology. All rights reserved.
引用
收藏
页码:28 / 36
相关论文
共 50 条
  • [41] Face Detection and Recognition Based on Visual Attention Mechanism Guidance Model in Unrestricted Posture
    Yuan, Zhenguo
    SCIENTIFIC PROGRAMMING, 2020, 2020
  • [42] Malicious URL Detection Model Based on Bidirectional Gated Recurrent Unit and Attention Mechanism
    Wu, Tiefeng
    Wang, Miao
    Xi, Yunfang
    Zhao, Zhichao
    APPLIED SCIENCES-BASEL, 2022, 12 (23):
  • [43] Enhanced credit card fraud detection based on attention mechanism and LSTM deep model
    Benchaji, Ibtissam
    Douzi, Samira
    El Ouahidi, Bouabid
    Jaafari, Jaafar
    JOURNAL OF BIG DATA, 2021, 8 (01)
  • [44] Face Mask-Wearing Detection Model Based on Loss Function and Attention Mechanism
    Wang, Zhong
    Sun, Wu
    Zhu, Qiang
    Shi, Peibei
    COMPUTATIONAL INTELLIGENCE AND NEUROSCIENCE, 2022, 2022
  • [45] ID-insensitive deepfake detection model based on multi-attention mechanism
    Sheng, Yuncan
    Zou, Zhengrui
    Yu, Zongxuan
    Pang, Mengxue
    Ou, Wei
    Han, Wenbao
    SCIENTIFIC REPORTS, 2025, 15 (01):
  • [46] BFEA: A SAR Ship Detection Model Based on Attention Mechanism and Multiscale Feature Fusion
    Zhou, Liming
    Wan, Ziye
    Zhao, Shuai
    Han, Hongyu
    Liu, Yang
    IEEE JOURNAL OF SELECTED TOPICS IN APPLIED EARTH OBSERVATIONS AND REMOTE SENSING, 2024, 17 : 11163 - 11177
  • [47] Object Detection Model for Examination Classroom Based on Cascade Attention and Point Supervision Mechanism
    Tian Z.-Y.
    Ma M.
    Yang K.-F.
    Ruan Jian Xue Bao/Journal of Software, 2022, 33 (07): : 2633 - 2645
  • [48] A Network Intrusion Detection Model Based on BiLSTM with Multi-Head Attention Mechanism
    Zhang, Jingqi
    Zhang, Xin
    Liu, Zhaojun
    Fu, Fa
    Jiao, Yihan
    Xu, Fei
    ELECTRONICS, 2023, 12 (19)
  • [49] A hybrid depression detection model and correlation analysis for social media based on attention mechanism
    Liu, Jiacheng
    Chen, Wanzhen
    Wang, Liangxu
    Ding, Fangyikuang
    INTERNATIONAL JOURNAL OF MACHINE LEARNING AND CYBERNETICS, 2024, 15 (07) : 2631 - 2642
  • [50] A Self-Attention Mechanism-Based Model for Early Detection of Fake News
    Jamshidi, Bahman
    Hakak, Saqib
    Lu, Rongxing
    IEEE TRANSACTIONS ON COMPUTATIONAL SOCIAL SYSTEMS, 2024, 11 (04) : 5241 - 5252