Abstract
Automated firearm detection often fails to accurately attribute a weapon to its carrier in crowded or complex scenes. This paper introduces the Human Firearm Pair Detection (HFPD) framework, which models carrier identification as a Human-Object Interaction (HOI) task. The system employs a dual-detection pipeline followed by a pairing stage that generates "interaction bounding boxes." These boxes are processed by a modified VGG-16 network featuring Adaptive Average Pooling (AAP) to maintain spatial context. Experimental results on an extended firearm dataset demonstrate that HFPD achieves an $AP_{hold}$ of 78.5, significantly outperforming traditional hand-in-box and pose-conditioned baselines.
Introduction
While modern object detection algorithms like Faster R-CNN and YOLO are highly proficient at identifying firearms, they often lack the "social intelligence" required to associate an object with a specific person. In crowded surveillance feeds, visual clutter, overlapping bounding boxes, and complex human poses make it difficult to determine who is actually carrying a weapon.
Existing methods typically rely on simple heuristics, such as checking if a hand is within a firearm's bounding box. However, these approaches often fail when subjects are at a distance, when firearms are large (e.g., rifles), or when scenes are densely populated. This research aims to bridge this gap by treating carrier localization as a Human-Object Interaction (HOI) task, specifically focusing on the "carrying" relationship.
Methodology
The authors propose a multi-stage pipeline called Human Firearm Pair Detection (HFPD):
- Dual Detection: The system first runs two separate detectors. It uses Faster R-CNN (with a ResNet-101 backbone) to localize humans and an Orientation Aware Object Detector (OAOD) to localize firearms.
- Pairing: Every detected human is paired with every detected firearm in the frame. A "paired bounding box" is created—a larger box that encompasses the union of the human and the firearm.
- Feature Extraction & Classification: These paired boxes are fed into a modified VGG-16 architecture. To handle variable-sized proposals without losing spatial context, the authors implement Adaptive Average Pooling (AAP). This allows the network to accept paired boxes of any shape and produce a fixed-length feature vector without distorting the spatial relationship between the person and the gun.
- Binary Classification: The final layer determines if the pair represents a "Carried" or "Not Carried" interaction.
Experimental Setup
The study utilizes an extension of a firearm dataset previously introduced by Javed et al. The authors added 900 new images, bringing the total to 3,128 images. Unlike standard datasets that only label the firearm, this version includes manual annotations for human-firearm pairs, specifically identifying which bounding boxes belong to the carrier and the weapon. The dataset includes diverse firearms and complex scenes with multiple people to test the limits of association.
Results and Discussion
The proposed HFPD model significantly outperformed baseline approaches, achieving an $AP_{hold}$ (Average Precision for holding) of 78.5. In comparison, the HiFD (Hand-in-box) baseline managed a score of 49.2, while the BCFD (Pose-based) baseline reached 66.6.
Key insights from the results include:
- Contextual Importance: By using a "paired bounding box," the network learns the global context of the human's posture and the firearm's orientation relative to the body, rather than just local hand proximity.
- Robustness Over Keypoints: Relying solely on hand keypoints (BCFD) was less effective because keypoint detection often fails in low-resolution surveillance footage or under occlusion. The "paired box" approach proved more robust to these errors.
- Backbone Impact: Upgrading the human detection backbone from VGG-16 to ResNet-101 improved the final $AP_{hold}$ from 69.3 to 78.5, suggesting that high-quality person detection is foundational to accurate carrier identification.
Conclusion
HFPD provides a robust framework for localizing firearm carriers by leveraging interaction context and Adaptive Average Pooling. While the system excels in many scenarios, challenges remain in extremely dense crowds where multiple human bounding boxes overlap significantly with a single firearm. Future work will explore the use of salient area attention—teaching the network to focus on specific regions like the grip or stock—and integrating more sophisticated pose information to further refine associations in complex environments.
Summary updated