journal article·2023-06-27Open access

Fine-Grained Image Recognition by Means of Integrating Transformer Encoder Blocks in a Robust Single-Stage Object Detector

Usman Ali, Seungmin Oh, Tai-Won Um, Minsoo Hann, Jinsul Kim

Applied Sciences· Volume 13· Issue 13

Abstract

Fine-grained image classification remains an ongoing challenge in the computer vision field, which is particularly intended to identify objects within sub-categories. It is a difficult task since there is both minimal and substantial intra-class variance. Current methods address the issue through first locating selective regions with region proposal networks (RPNs), object localization, or part localization, followed by implementing a CNN network or SVM classifier to those selective regions. This approach, however, makes the process simple via implementing a single-stage end-to-end feature encoded with a localization method, which leads to improved feature representations of individual tokens/regions through integrating the transformer encoder blocks into the Yolov5 backbone structure. These transformer encoder blocks, with their self-attention mechanism, effectively capture global dependencies and enable the model to learn relationships between distant regions. This improves the model’s ability to understand context and capture long-range spatial relationships in an image. We also replaced the Yolov5 detection heads with three transformer heads at the output for object recognition using the discriminative and informative feature maps from transformer encoder blocks. We established the potential of the single-stage detector for the fine-grained image recognition task, achieving state-of-the-art 93.4% accuracy, as well as outperforming existing one-stage recognition models. The effectiveness of our approach is assessed using the Stanford car dataset, which includes 16,185 images of 196 different classes of vehicles with significantly identical visual appearances.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Advanced Neural Network Applications · Advanced Image and Video Retrieval Techniques · Robotics and Sensor-Based Localization

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

ICT Convergence System Engineering Department, Chonnam National University, Gwangju 61186, Republic of Korea

Graduate School of Data Science, Chonnam National University, Gwangju 61186, Republic of Korea

Astana IT University, Astana 010000, Kazakhstan

Funding

Korean government (MSIT) · Institute of Information & Communications Technology Planning & Evaluation (IITP)

References (32)

Show source-provided references
1. Pang, K., Yang, Y., Hospedales, T.M., Xiang, T., and Song, Y.Z. (2020, January 13–19). Solving Mixed-Modal Jigsaw Puzzle for Fine-Grained Sketch-Based Image Retrieval. Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA.10.1109/CVPR42600.2020.01036 ↗
2. Fashion recommendations through cross-media information retrieval10.1016/j.jvcir.2019.03.003 ↗
3. Food Recommendation: Framework, Existing Solutions, and Challenges10.1109/TMM.2019.2958761 ↗
4. Bao, J., Chen, D., Wen, F., Li, H., and Hua, G. (2017, January 22–29). CVAE-GAN: Fine-Grained Image Generation through Asymmetric Training. Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy.10.1109/ICCV.2017.299 ↗
5. Video you only look once: Overall temporal convolutions for action recognition10.1016/j.jvcir.2018.01.016 ↗
6. Scene graph captioner: Image captioning based on structural visual representation10.1016/j.jvcir.2018.12.027 ↗
7. Imaging and fusing time series for wearable sensor-based human activity recognition10.1016/j.inffus.2019.06.014 ↗
8. Simonyan, K., and Zisserman, A. (2015, January 7–9). Very Deep Convolutional Networks for Large-Scale Image Recognition. Proceedings of the 3rd International Conference on Learning Representations, ICLR 2015—Conference Track Proceedings, San Diego, CA, USA.
9. Diversified Visual Attention Networks for Fine-Grained Object Classification10.1109/TMM.2017.2648498 ↗
10. Pairwise Confusion for Fine-Grained Visual Classification10.1007/978-3-030-01258-8_5 ↗
11. Hierarchical Bilinear Pooling for Fine-Grained Visual Recognition10.1007/978-3-030-01270-0_35 ↗
12. Ji, R., Wen, L., Zhang, L., Du, D., Wu, Y., Zhao, C., Liu, X., and Huang, F. (2019, January 15–20). Attention Convolutional Binary Neural Tree for Fine-Grained Visual Categorization. Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition, Long Beach, CA, USA.10.1109/CVPR42600.2020.01048 ↗
13. Fu, J., Zheng, H., and Mei, T. (2016, January 21–26). Look closer to see better: Recurrent attention convolutional neural network for fine-grained image recognition. Proceedings of the 30th IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2017, Honolulu, HI, USA.10.1109/CVPR.2017.476 ↗
14. Zhang, X., Xiong, H., Zhou, W., Lin, W., and Tian, Q. (2016, January 27–30). Picking deep filter responses for fine-grained image recognition. Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA.10.1109/CVPR.2016.128 ↗
15. Weakly labeled fine-grained classification with hierarchy relationship of fine and coarse labels10.1016/j.jvcir.2019.102584 ↗
16. Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., and Gelly, S. (2020). An Image is Worth 16 × 16 Words: Transformers for Image Recognition at Scale. arXiv.
17. Zheng, S., Lu, J., Zhao, H., Zhu, X., Luo, Z., Wang, Y., Fu, Y., Feng, J., Xiang, T., and Torr, P.H. (2020, January 13–19). Rethinking Semantic Segmentation from a Sequence-to-Sequence Perspective with Transformers. Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition, Seattle, WA, USA.10.1109/CVPR46437.2021.00681 ↗
18. Chen, J., Lu, Y., Yu, Q., Luo, X., Adeli, E., Wang, Y., Lu, L., Yuille, A.L., and Zhou, Y. (2021). TransUNet: Transformers Make Strong Encoders for Medical Image Segmentation. arXiv.
19. End-to-End Object Detection with Transformers
20. Bochkovskiy, A., Wang, C.-Y., and Liao, H.-Y.M. (2020). YOLOv4: Optimal Speed and Accuracy of Object Detection. arXiv.
21. Faster R-CNN: Towards Real-Time Object Detection with Region Proposal Networks10.1109/TPAMI.2016.2577031 ↗
22. Part-based R-CNNs for Fine-grained Category Detection
23. Krause, J., Jin, H., Yang, J., and Li, F.F. (2015, January 7–12). Fine-grained recognition without part annotations. Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition, Boston, MA, USA.10.1109/CVPR.2015.7299194 ↗
24. Huang, S., Xu, Z., Tao, D., and Zhang, Y. (2016, January 1–26). Part-Stacked CNN for Fine-Grained Visual Categorization. Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA.10.1109/CVPR.2016.132 ↗
25. Zhang, H., Xu, T., Elhoseiny, M., Huang, X., Zhang, S., Elgammal, A., and Metaxas, D. (2016, January 1–26). SPDA-CNN: Unifying semantic part detection and abstraction for fine-grained recognition. Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA.10.1109/CVPR.2016.129 ↗
26. Wang, D., Shen, Z., Shao, J., Zhang, W., Xue, X., and Zhang, Z. (2015, January 7–13). Multiple Granularity Descriptors for Fine-Grained Categorization. Proceedings of the 2015 IEEE International Conference on Computer Vision (ICCV), Santiago, Chile.10.1109/ICCV.2015.276 ↗
27. Weakly supervised fine-grained categorization with part-based image representation10.1109/TIP.2016.2531289 ↗
28. Coarse2Fine: A Two-stage Training Method for Fine-grained Visual Classification10.1007/s00138-021-01180-y ↗
29. Zhuang, P., Wang, Y., and Qiao, Y. (2020, January 7–12). Learning Attentive Pairwise Interaction for Fine-Grained Classification. Proceedings of the AAAI 2020—34th AAAI Conference on Artificial Intelligence, New York, NY, USA.
30. Zheng, H., Fu, J., Zha, Z.J., and Luo, J. (2019). Learning Deep Bilinear Transformation for Fine-grained Image Representation. arXiv.
31. He, J., Chen, J.N., Liu, S., Kortylewski, A., Yang, C., Bai, Y., and Wang, C. (February, January 1). TransFG: A Transformer Architecture for Fine-grained Recognition. Proceedings of the 36th AAAI Conference on Artificial Intelligence, AAAI 2022, Virtual.10.1609/aaai.v36i1.19967 ↗
32. Jocher, G., Chaurasia, A., Stoken, A., Borovec, J., Kwon, Y., Michael, K., Fang, J., Yifu, Z., Wong, C., and Montes, D. (2022). ultralytics/yolov5: v7.0—YOLOv5 SOTA Realtime Instance Segmentation. Zenodo, 7347926.