Skip to content
프로젝트

Nambekai/dangerous-person-detection-yolo11

GitHub에서 보기

소개

YOLO11 research prototype for detecting people associated with potentially dangerous objects in public-area imagery, with thesis evidence, reproducibility notes, and responsible-use guidance.

생산성 및 자동화

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
+1
in 15 days
+1
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

YOLO11 dangerous-person detection research project banner

Repository quality status Research prototype status Selected model YOLO11s Dataset with 3,140 images AGPL-3.0 license

Overview

This graduation-thesis repository studies YOLO11-based detection of people who appear with a potentially dangerous object in public-area imagery. The detector localizes the person, not the object alone, using two contextual classes: normal_person and potentially_dangerous_person.

The study compared YOLO11n, YOLO11s, YOLO11s with a recorded preprocessing configuration, YOLO11m, and YOLO11l. YOLO11s provided the strongest overall balance and was selected for the demonstration.

This is an academic research prototype, not an autonomous security decision system. A prediction is a prompt for human review. It does not establish identity, intent, guilt, or future behavior.

Key Results

Measure YOLO11s result
Precision 0.87
Recall 0.69
F1 score 0.77
mAP50 0.80
mAP50-95 0.64
Test images 314

All reported measures come from the held-out test set described in the thesis. The repository does not claim independent replication beyond the supplied artifacts.

Four-stage research workflow covering data, training, evaluation, and review

Figure 1. Research workflow used to prepare data, compare models, evaluate results, and review outputs.

Dataset

The final YOLO-format dataset contains 3,140 images and 10,595 labeled person instances.

Split Images Normal-person instances Potentially-dangerous-person instances Total instances
Train 2,512 6,170 2,298 8,468
Validation 314 968 356 1,324
Test 314 539 264 803
Total 3,140 7,677 2,918 10,595

Dataset access:

The embedded Roboflow export notice identifies the dataset as CC BY 4.0. Review the dataset card and source notices before reuse.

Model Comparison

Comparison of precision, recall, F1, mAP50, and mAP50-95 across five YOLO11 variants

Figure 2. Held-out test-set comparison. YOLO11s led the aggregate F1, mAP50, and mAP50-95 measures.

Training evidence

YOLO11s training and validation curves

Figure 3. YOLO11s mAP and loss curves over the recorded 132 training epochs.

YOLO11s detailed training results

Figure 4. Detailed YOLO11s training, validation, precision, recall, and mAP traces.

Prediction Gallery

The following images are preserved as original model outputs for auditability. Their embedded class identifiers retain the original training labels; all repository captions and explanatory text are in US English.

Crowded public-area test prediction
Figure 5. Crowded public-area test frame with multiple localized people.
Hard-negative test prediction
Figure 6. Hard-negative example classified as a normal person.
Low-light corridor test prediction
Figure 7. Low-light corridor example with a potentially dangerous person.
Public-building corridor prediction
Figure 8. Public-building corridor example with two localized people.
Street-scene prediction
Figure 9. External street scene used for qualitative review.
Public-area prediction
Figure 10. External public-area scene used for qualitative review.
Additional test-set galleries

First extended test-prediction gallery

Figure 11. Extended test-set review, group A.

Second extended test-prediction gallery

Figure 12. Extended test-set review, group B.

Third extended test-prediction gallery

Figure 13. Extended test-set review, group C.

Quick Start

1. Clone and prepare Python

git clone https://github.com/Nambekai/dangerous-person-detection-yolo11.git
cd dangerous-person-detection-yolo11
python -m venv .venv
python -m pip install --upgrade pip
python -m pip install -r requirements.txt

Activate .venv with the command appropriate to your operating system before installing dependencies.

2. Download a model

Download weights-YOLO11s.zip from the v1.0.0 release, extract it, and locate best.pt.

3. Run inference

python scripts/inference.py \
  --model path/to/best.pt \
  --source path/to/image-or-video \
  --confidence 0.35

Outputs are written under runs/predict/. The inference script changes displayed class names to English without modifying the trained class indices.

4. Reconstruct a training run

Extract the dataset so that data/dataset/train, data/dataset/valid, and data/dataset/test exist, then run:

python scripts/train.py --variant yolo11s --data config/data.yaml

The training utility reconstructs settings recorded in the thesis. The original notebooks, package lock file, random seed, and automatically selected optimizer details were not present in the supplied folder, so exact numerical reproduction is not guaranteed. See the reproducibility guide.

Recorded Training Configuration

Variant Base model Epochs set Epochs completed Patience Batch Image size
YOLO11n yolo11n.pt 150 109 35 8 832
YOLO11s yolo11s.pt 150 132 35 8 832
YOLO11s preprocessing variant yolo11s.pt 150 150 35 8 832
YOLO11m yolo11m.pt 150 150 40 8 832
YOLO11l yolo11l.pt 150 150 40 8 832

The recorded shared settings were optimizer auto and an NVIDIA Tesla T4 GPU. The preprocessing variant settings are preserved in config/experiments.yaml.

Repository Map

.
|-- assets/                 Figures and prediction examples
|-- config/                 Dataset and experiment configuration
|-- docs/                   Dataset card, model card, thesis, slides, and guides
|-- scripts/                Training, inference, and quality-validation utilities
|-- tests/                  Lightweight repository tests
|-- CITATION.cff            Machine-readable citation metadata
|-- LICENSE                 AGPL-3.0 license
`-- README.md               Project overview and entry point

Documentation

The thesis and defense deck are preserved in their original Vietnamese submission language. All repository-facing documentation, labels, captions, configuration, and guidance are provided in United States English. The deck contains the 26-slide defense sequence followed by 14 original backup slides.

Responsible Use

  • Keep a trained human reviewer in the decision loop.
  • Do not use the model for identity recognition, demographic inference, predictive policing, or automated punitive action.
  • Validate performance in the actual deployment environment and document subgroup, lighting, distance, crowd-density, and camera-angle effects.
  • Establish lawful data governance, retention, access control, incident review, and an appeal process before any field use.
  • Treat false negatives as a safety risk and false positives as a potential harm to affected people.

Citation

Use the repository citation panel or CITATION.cff. The thesis and third-party sources should be cited separately when their content is used.

Author and Contact

Tran Si Nam - Electronics and Telecommunications Engineering, Faculty of Electronics and Telecommunications, VNUHCM-University of Science.

License and Attribution

The project code and YOLO-integrated model artifacts are provided under the GNU Affero General Public License v3.0. The dataset export identifies its license as CC BY 4.0. Third-party material remains subject to its original terms. See NOTICE.md before reuse.

관련 프로젝트 살펴보기

불러오는 중…