[Paper Review] YouTube-GDD: A challenging gun detection dataset with rich contextual information
This paper introduces YouTube-GDD, a high-quality, dynamic gun detection dataset comprising 5,000 images from 343 HD YouTube videos, with 16,064 gun and 9,046 person instances annotated. The dataset enhances detection performance by incorporating person annotations, which improve YOLOv5s' AP by 2.3 points on AP50 and 0.1 on AP when combined with transfer learning.
An automatic gun detection system can detect potential gun-related violence at an early stage that is of paramount importance for citizens security. In the whole system, object detection algorithm is the key to perceive the environment so that the system can detect dangerous objects such as pistols and rifles. However, mainstream deep learning-based object detection algorithms depend heavily on large-scale high-quality annotated samples, and the existing gun datasets are characterized by low resolution, little contextual information and little data volume. To promote the development of security, this work presents a new challenging dataset called YouTube Gun Detection Dataset (YouTube-GDD). Our dataset is collected from 343 high-definition YouTube videos and contains 5000 well-chosen images, in which 16064 instances of gun and 9046 instances of person are annotated. Compared to other datasets, YouTube-GDD is "dynamic", containing rich contextual information and recording shape changes of the gun during shooting. To build a baseline for gun detection, we evaluate YOLOv5 on YouTube-GDD and analyze the influence of additional related annotated information on gun detection. YouTube-GDD and subsequent updates will be released at https://github.com/UCAS-GYX/YouTube-GDD.
Motivation & Objective
- Address the lack of high-quality, large-scale gun detection datasets with rich contextual information for real-world surveillance applications.
- Overcome limitations of existing datasets, which suffer from low resolution, limited contextual data, and poor distributional alignment with real surveillance footage.
- Improve gun detection robustness by incorporating person annotations as auxiliary supervision to enhance model generalization and performance.
- Establish a benchmark for gun detection by releasing YouTube-GDD and evaluating YOLOv5s as a strong baseline model.
Proposed method
- Collected 5,000 high-resolution images from 343 HD YouTube videos to form a diverse, real-world dataset with dynamic gun appearances.
- Annotated 16,064 gun instances and 9,046 person instances to provide rich contextual and spatial relationships for improved detection.
- Split the dataset into 10 folds using Jensen-Shannon divergence to ensure balanced scale distribution and to designate folds 6 (validation) and 7 (test) for evaluation.
- Trained YOLOv5s with transfer learning from COCO pre-trained weights and evaluated performance using COCO-style metrics (AP and AP50).
- Evaluated the impact of additional person annotations by training models with and without the person detection head, comparing performance gains.
- Used standard training protocols: 640×640 input size, SGD optimizer, 300 epochs, warmup, and NMS for post-processing.
Experimental results
Research questions
- RQ1Can a large-scale, high-quality dataset with dynamic gun appearances and contextual information improve gun detection performance?
- RQ2How does incorporating person annotations affect the performance of gun detection models in complex, real-world scenarios?
- RQ3To what extent does transfer learning from COCO pre-training enhance detection accuracy on the YouTube-GDD dataset?
- RQ4How robust are state-of-the-art detectors like YOLOv5s when tested on a dataset with diverse gun scales, poses, and dynamic changes during shooting?
- RQ5What is the performance gain from adding person annotations in terms of AP and AP50, and is this gain significant despite minimal computational overhead?
Key findings
- Adding person annotations to the YOLOv5s model improved AP50 by 2.3 points and AP by 0.1 points when using transfer learning, demonstrating the value of contextual supervision.
- Training from scratch with person annotations yielded a 0.2-point increase in AP50 and 0.3-point increase in AP, indicating consistent performance gains.
- The model with both transfer learning and person annotations achieved 77.3% AP50 and 52.1% AP for gun detection, and 92.4% AP50 and 81.2% AP for person detection.
- The dataset's dynamic nature—capturing shape changes during shooting—poses a significant challenge to existing detectors, highlighting the need for robust, context-aware models.
- The inclusion of person annotations introduced negligible computational overhead, as GFLOPs and parameters remained nearly unchanged (15.81 GFLOPs, 7.02M parameters).
- YouTube-GDD is well-suited for evaluating generalization and robustness, as it reflects real-world video distributions better than static, low-quality datasets.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.