SA-ConvNeXt: A Hybrid Approach for Flower Image Classification Using Selective Attention Mechanism

Author:

Mo Henghui1,Wei Linjing1

Affiliation:

1. College of Information Science and Technology, Gansu Agricultural University, Lanzhou 730070, China

Abstract

In response to the current lack of annotations for flower images and insufficient focus on key image features in traditional fine-grained flower image classification based on deep learning, this study proposes the SA-ConvNeXt flower image classification model. Initially, in the image preprocessing stage, a padding algorithm was used to prevent image deformation and loss of detail caused by scaling. Subsequently, the model was integrated using multi-level feature extraction within the Efficient Channel Attention (ECA) mechanism, forming an M-ECA structure to capture channel features at different levels; a pixel attention mechanism was also introduced to filter out irrelevant or noisy information in the images. Following this, a parameter-free attention module (SimAM) was introduced after deep convolution in the ConvNeXt Block to reweight the input features. SANet, which combines M-ECA and pixel attention mechanisms, was employed at the end of the module to further enhance the model’s dynamic extraction capability of channel and pixel features. Considering the model’s generalization capability, transfer learning was utilized to migrate the pretrained weights of ConvNeXt on the ImageNet dataset to the SA-ConvNeXt model. During training, the Focal Loss function and the Adam optimizer were used to address sample imbalance and reduce gradient fluctuations, thereby enhancing training stability. Finally, the Grad-CAM++ technique was used to generate heatmaps of classification predictions, facilitating the visualization of effective features and deepening the understanding of the model’s focus areas. Comparative experiments were conducted on the Oxford Flowers102 flower image dataset. Compared to existing flower image classification technologies, SA-ConvNeXt performed excellently, achieving a high accuracy of 96.7% and a recall rate of 98.2%, with improvements of 4.0% and 3.7%, respectively, compared to the original ConvNeXt. The results demonstrate that SA-ConvNeXt can effectively capture more accurate key features of flower images, providing an effective technical means for flower recognition and classification.

Funder

Ministry of Science and Technology’s National Foreign Experts Project

Gansu Province Higher Education Industry Support Project

Gansu Province Key R\&D Plan

Lanzhou Talent Innovation and Entrepreneurship Project

2020 Gansu Agricultural University Graduate Education Research Project

2021 Gansu Agricultural University-level “Three-dimensional Education” Pilot Extension Teaching Research Project

2022 Gansu Agricultural University-level Comprehensive Professional Reform Project

Publisher

MDPI AG

Reference37 articles.

1. Textural features in flower classification;Guru;Math. Comput. Model.,2011

2. An investigation of the textural characteristics associated with gray level cooccurrence matrix statistical parameters;Baraldi;IEEE Trans. Geosci. Remote Sens.,1995

3. Histograms of oriented gradients for human detection;Dalal;Proceedings of the 2005 IEEE Computer Society Conference on Computer visIon and Pattern Recognition (CVPR’05),2005

4. Stricker, M.A., and Orengo, M. (1995, January 20–24). Similarity of color images. Proceedings of the Storage and Retrieval for Image and Video Databases III. SPiE, San Jose, CA, USA.

5. GrowCut: Interactive multi-label ND image segmentation by cellular automata;Vezhnevets;Proc. Graph.,2005

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3