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
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