IEEE KST 2024 · CONcealed Gun dataset

Detecting Human with Concealed Gun by Learning from YouTube's CCTV Videos

Spotting armed people before the gun appears — learning from how people move in real CCTV footage of robberies.

1Visual Intelligence Lab, Department of Statistics, Faculty of Science, Khon Kaen University  ·  2Krungthai Bank

Per-person predictions on real CCTV footage — green: normal, red: likely concealed gun.

01 · Overview

Most systems see the gun. We try to see it coming.

Existing CCTV analytics detect firearms once they are drawn — when it is already too late. This project asks whether the body language of someone hiding a gun is enough to raise an early alarm.

Abstract

We present a human tracking dataset, CONcealed Gun (CONG), where each human is identified as either a normal person, a person with a visible gun, or a person with a concealed gun. The dataset was mined from CCTV footage of robbery incidents uploaded to YouTube. A key distinction of the dataset is that we mark the moment when a person with a concealed gun starts to reveal it, so the footage before the revelation can be used as training data for identifying people with concealed guns.

Along with the dataset, we propose a two-step detection algorithm — human pose estimation followed by human movement analysis — and explore its performance across different backbone models and footage lengths. Our results show that CONG is a challenging benchmark: recognizing a hidden trace is hard from both a dataset-construction and a computer-vision perspective.

System overview: a person with a concealed gun is captured by CCTV, analyzed by an AI detector, which alerts a security guard

From camera to guard: CCTV footage is analyzed in real time and suspicious people trigger an alert before an incident happens.

D

New dataset. Real robbery CCTV from YouTube, tracked per person with three identity labels.

M

Pose-based detector. Skeleton tracking + movement tubelets, no need to see the weapon itself.

S

Working system. Flask API, web demo and LINE notifications for security staff.

02 · The CONG Dataset

A tracking dataset with a little secret

Each tracked person in each clip carries one of three identities. The secret: people who look completely normal for most of the clip may turn out to be armed.

person

Normal

Bystanders, staff and customers with no weapon throughout the clip.

gun · visible

Visible gun

People whose firearm is already in view — the case conventional detectors handle.

gun · concealed

Concealed gun

People carrying a hidden firearm that they reveal later in the footage.

Labeling the moment of revelation

For every armed person we annotate the frame where the gun starts to appear. Everything before that point shows a person who looks unarmed but is not — exactly the signal an early-warning model must learn.

t = 0 end of clip concealed — used for training gun visible revelation frame tubelet 1–2 s tubelet 1–2 s …
Concealed segment → positive samplesRevealed segmentNormal people → negative samples
03 · Method

Read the body, not the weapon

A hidden gun is, by definition, invisible to an object detector. Instead we track each person's skeleton and learn the subtle movement patterns of carrying a concealed weapon.

Collect

Mine robbery CCTV clips from YouTube and cut them around each incident.

YouTubeCCTV

Pose & track

Estimate 2D body keypoints and link them across frames into per-person tracks.

pose estimationPoseFlow

Tubelets

Slice each track into short 1 s / 2 s tubelets and build normalized movement features.

z-score1 s · 2 s

Classify

Predict the probability that each person is carrying a concealed gun.

RFXGBoostSVMLRDT

System architecture

The trained model is served behind an API. Camera footage goes in; per-person risk scores and annotated frames come out.

CCTV→Flask API⇄Model→LINE Notify→Guard

Web demo for debugging

A web application takes a video, draws boxes per person with their concealed-gun probability, and pushes an alert with a snapshot to a pre-configured LINE account.

None 0.12Gun 0.81→alert
04 · Results

A hard problem, measured honestly

Recall matters most for early warning: a missed armed person is far costlier than a false alarm a guard can dismiss.

CONG benchmark

Best configurations from the KST 2024 paper, evaluated per tubelet.

best recall
Random Forest · 2 s
Recall59%
Precision32%
best precision
XGBoost · 1 s
Recall57%
Precision32%

Low precision reflects how subtle the cue is — and why CONG is a useful, challenging benchmark for the community.

Prototype model selection

Earlier NSC 2020 prototype, test set (%). Random Forest was chosen for deployment.

ModelAccuracyRecallPrecisionF1
Decision Tree71.4768.5755.3861.28
Random Forest77.1276.1962.5068.67
SVM80.5143.8193.8856.74
Logistic Regression73.9867.6259.1763.11

The two evaluations use different data splits and protocols and are not directly comparable.

05 · Talks & Poster

Demo & presentations

Full prototype walkthrough: upload a clip in the web app → per-person concealed-gun probability → LINE notification with a snapshot.

Presentation for the Prime Minister's Digital Award 2020 · project talk on YouTube ↗

NSC 2020 research poster
NSC 2020 poster open full ↗
07 · Citation

BibTeX

If you use the CONG dataset or build on this work, please cite:

@inproceedings{wanna2024cong,
  title     = {CONG: Yet Another Human Tracking Dataset, but with a Little Secret},
  author    = {Wanna, Yupaporn and Intharah, Thanapong},
  booktitle = {2024 16th International Conference on Knowledge and Smart Technology (KST)},
  pages     = {35--39},
  year      = {2024},
  publisher = {IEEE},
  doi       = {10.1109/KST61284.2024.10499663}
}