ArmFormer: Lightweight Transformer Architecture for Real-Time Multi-Class Weapon Segmentation and Classification
Not on the map. Why?
Abstract (arXiv)
The escalating threat of weapon-related violence necessitates automated detection systems capable of pixel-level precision for accurate threat assessment in real-time security applications. Traditional weapon detection approaches rely on object detection frameworks that provide only coarse bounding box localizations, lacking the fine-grained segmentation required for comprehensive threat analysis. Furthermore, existing semantic segmentation models either sacrifice accuracy for computational efficiency or require excessive computational resources incompatible with edge deployment scenarios. This paper presents ArmFormer, a lightweight transformer-based semantic segmentation framework that strategically integrates Convolutional Block Attention Module (CBAM) with MixVisionTransformer architecture to achieve superior accuracy while maintaining computational efficiency suitable for resource-constrained edge devices. Our approach combines CBAM-enhanced encoder backbone with attention-integrated hamburger decoder to enable multi-class weapon segmentation across five categories: handgun, rifle, knife, revolver, and human. Comprehensive experiments demonstrate that ArmFormer achieves state-of-the-art performance with 80.64% mIoU and 89.13% mFscore while maintaining real-time inference at 82.26 FPS. With only 4.886G FLOPs and 3.66M parameters, ArmFormer outperforms heavyweight models requiring up to 48x more computation, establishing it as the optimal solution for deployment on portable security cameras, surveillance drones, and embedded AI accelerators in distributed security infrastructure.
Key facts. No citing papers in the map yet (data through 14 Oct 2026). Builds on 32 of its 64 references that are in the map. First posted on arXiv 19 Oct 2025.
Builds on
32 of 64 references.
References · 32
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
- 2015U-Net: Convolutional Networks for Biomedical Image Segmentationcited by 19,713
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,364
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,139
- 2020End-to-End Object Detection with Transformerscited by 7,414
- 2014Fully Convolutional Networks for Semantic Segmentationcited by 4,859
- 2017Squeeze-and-Excitation Networkscited by 4,789
- 2020Deformable DETR: Deformable Transformers for End-to-End Object Detectioncited by 3,422
- 2021SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformerscited by 2,940
- 2024SAM 2: Segment Anything in Images and Videoscited by 2,863
- 2018YOLOv3: An Incremental Improvementcited by 2,659
- 2016Pyramid Scene Parsing Networkcited by 2,479
20 more
- 2018CBAM: Convolutional Block Attention Modulecited by 2,477
- 2021Pyramid Vision Transformer: A Versatile Backbone for Dense Prediction without Convolutionscited by 1,962
- 2020YOLOv4: Optimal Speed and Accuracy of Object Detectioncited by 1,630
- 2019Deep High-Resolution Representation Learning for Human Pose Estimationcited by 1,339
- 2018Unified Perceptual Parsing for Scene Understandingcited by 1,271
- 2020A Survey on Visual Transformercited by 654
- 2019Selective Kernel Networkscited by 403
- 2017Residual Attention Network for Image Classificationcited by 386
- 2018Context Encoding for Semantic Segmentationcited by 290
- 2017ICNet for Real-Time Semantic Segmentation on High-Resolution Imagescited by 261
- 2021Attention Mechanisms in Computer Vision: A Surveycited by 232
- 2023Cross-Entropy Loss Functions: Theoretical Analysis and Applicationscited by 210
- 2016Resnet in Resnet: Generalizing Residual Architecturescited by 110
- 2018CGNet: A Light-weight Context Guided Network for Semantic Segmentationcited by 94
- 2015Places205-VGGNet Models for Scene Recognitioncited by 13
- 2021Dynamically pruning segformer for efficient semantic segmentationcited by 13
- 2024Feed-Forward Neural Networks as a Mixed-Integer Programcited by 4
- 2024Real-Time Weapon Detection Using YOLOv8 for Enhanced Safetycited by 3
- 2020Firearm Detection and Segmentation Using an Ensemble of Semantic Neural Networkscited by 1
- 2024Real Time Deep Learning Weapon Detection Techniques for Mitigating Lone Wolf Attackscited by 1
Built on by
Not cited yet.