Generative Inpainting for Privacy-Oriented Industrial CCTV Dataset Preparation: Cross-Domain Hard-Hat Detection with Temporal Separation
Remigiusz Baran, Andrzej Dziech, Natalia Brzezińska, Rafał Gajos
Key points
From the paper's conclusion- We investigate (i) whether LaMa inpainting, alongside face blurring, affects detection, (ii) whether models trained on public data generalize to industrial CCTV, and (iii) why temporal separation matters for evaluation.
Abstract
Hard-hat compliance detection is central to vision-based industrial safety monitoring. Public hard-hat datasets support model development but rarely reflect industrial closed-circuit television (CCTV) conditions, such as fixed elevated viewpoints, small objects, temporal correlation, occlusion, and privacy-sensitive content. We investigate (i) whether LaMa inpainting, alongside face blurring, affects detection, (ii) whether models trained on public data generalize to industrial CCTV, and (iii) why temporal separation matters for evaluation. We introduce the Industrial CCTV-HH Dataset, an annotated resource prepared from industrial surveillance recordings using privacy-oriented preprocessing, containing 2413 images and 9608 originally annotated head-region instances in two classes (with and without a helmet). A day-level temporal split reduces the risk of near-duplicate leakage and yields deployment-oriented evaluation. A preprocessing pipeline removes on-screen overlays and textual identifiers with generative inpainting (LaMa) and adds localized face blurring designed to preserve head structure. Cross-domain YOLO11n experiments reveal a large domain gap: a public-only model reaches mAP@0.5 ≈ 0.97 on public images but only ≈0.11 on industrial CCTV, whereas target-domain samples and higher input resolution raise industrial-domain mAP@0.5 to ≈0.93 (target-only) and ≈0.90 (balanced training, which also retains ≈0.97 on public images). YOLO11n mAP varied modestly; OCR and face tests indicated reduced detectability, not anonymity.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Near-Duplicate Contamination in a Widely Used Safety Helmet Detection Benchmark: Audit, Controlled Experiments, and a Duplicate-Aware Evaluation SplitApplied Sciences · 2026
- Construction safety AI that knows what it doesn’t see: a Sentry–Judge hybrid for PPE absence detectionFrontiers in Built Environment · 2026
- Effect of hierarchical prompt engineering on convolutional neural networks generated by large language models for helmet wearing compliance classificationDiscover Artificial Intelligence · 2026
- Hybrid open-vocabulary and closed-set helmet detection with slicing-aided hyper inference for robust drone-based construction-safety monitoringFrontiers in Built Environment · 2026
- Auditable Worker-Centered PPE Compliance for Industrial Vision: Ownership-Margin Calibration and Safety-Constrained Selective Decision-MakingApplied Sciences · 2026
- IRA-YOLO: Inter-Class Relation Attention for PPE Detection in Industrial Scenes.Sensors (Basel, Switzerland) · 2026