Nambekai/dangerous-person-detection-yolo11
Sobre
YOLO11 research prototype for detecting people associated with potentially dangerous objects in public-area imagery, with thesis evidence, reproducibility notes, and responsible-use guidance.
Produtividade e automaçãoCrescimento medido de estrelas
- em 24 h
- 0
- em 7 dias
- +1
- em 15 dias
- +1
- em 1 mês
- Coletando histórico
Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.
README.md
Original
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.
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
Figure 2. Held-out test-set comparison. YOLO11s led the aggregate F1, mAP50, and mAP50-95 measures.
Training evidence
Figure 3. YOLO11s mAP and loss curves over the recorded 132 training epochs.
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.
![]() Figure 5. Crowded public-area test frame with multiple localized people. |
![]() Figure 6. Hard-negative example classified as a normal person. |
![]() Figure 7. Low-light corridor example with a potentially dangerous person. |
![]() Figure 8. Public-building corridor example with two localized people. |
![]() Figure 9. External street scene used for qualitative review. |
![]() Figure 10. External public-area scene used for qualitative review. |
Additional test-set galleries

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

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

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
- Dataset card
- Model card
- Reproducibility guide
- Ethics and limitations
- Frequently asked questions
- Graduation thesis PDF
- Graduation thesis DOCX
- Defense slides
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.
- LinkedIn: linkedin.com/in/nambekai
- GitHub profile: github.com/Nambekai
- Resume: ATS-friendly PDF
- Work email: [email protected]
- Academic email: [email protected]
- Telephone: +84 91 555 1529
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.
Explore projetos relacionados
Carregando…





