Manuscript Offprint

arXiv:2610.32073

Guided Zero-Shot Anomaly Explanation for Anonymized Crowd Video Monitoring: Context, Categorization, and Spatial Localization

Mulugeta Weldezgina Asres, Lei Jiao, Christian Walter Omlin

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Mulugeta Weldezgina Asres, Lei Jiao, Senior Member, IEEE, Christian Walter Omlin

Abstract—Despite the promising development of deep learning for video anomaly detection (VAD), explainability (XAI) of these models remains a challenge. Explainable and privacy-protecting VAD builds transparency and trust, and facilitates adoption of computer vision systems, including safety and security monitoring. However, anomaly explainability in privacy-preserving VAD systems is underexplored. In this study, we present the XAVAD approach, a unified descriptive anomaly XAI for an anonymized VAD, that integrates flexible zero-shot anonymization, anomaly type categorization, visual localization, and scene context description. We provide empirical and qualitative assessments of multifaceted explanations integrated with full-body visual anonymization for privacy protection. We adopt a multimodal CLIP embedding for videos, using improved LLM-assisted prompting and pool-scoring mechanisms for anomaly-type identification. We enhance Grad-ECLIP for spatial anomaly heatmap localization, leveraging computation and accuracy through our novel prompt-guided patching autofocus mechanism. We employ VLMs to generate context and reasoning descriptions of detected anomalies through curated prompt engineering. We have evaluated the accuracy and computational cost of XAVAD on several publicly available CCTV and video datasets. Our experiments demonstrate substantial gains of our XAVAD over state-of-the-art benchmark approaches and provide insights into privacy protection trade-offs in XAI for VAD. We further present ablation studies and assessments across diverse configurations and modeling alternatives to demonstrate the efficacy of our proposed methods. Code: https://github.com/muleina/XAVAD

Index Terms—Explainability, Privacy Protection, Anonymization, Video Anomaly Detection, Crowd Monitoring, Multimodal, Computer Vision, CCTV

ACRONYMS

AN Anonymization

AUC Area under the Curve

BLEU Bilingual Evaluation Understudy

CV Computer Vision

GDSN GroundedSAM2 with Neg. Segmentation

mAP Mean Average Precision

mAR Mean Average Recall

mF 1_{1} Mean F 1_{1}-score

MASKED Full-body AN using Solid Color Masking

MLLMs Multimodal LLMs

PPA Prompt-Guided Patched Autofocus

ROUGE Recall-Oriented Understudy for Gisting Evaluation

SAHI Slicing-Aided Hyper-Inference

SAM Segment Anything

Topk Top kthk^{th} Prediction

VAD Video Anomaly Detection

XAI Explainable Artificial Intelligence

XAVAD Our Unified XAI Approach for AN-VAD

This work was funded by the AI4Citizens project (ID: 320783), under the Research Council of Norway.

M. W. Asres is with University of Agder (UiA), Norway, mulugetawa@uia.no.

L. Jiao is with UiA, Norway, lei.jiao@uia.no. Corresponding author.

C. W. Omlin is with UiA, Norway, christian.omlin@uia.no.

ZS

ZSAC

ZSAD

ZSAM

C

z

X^,X\hat{X}, X

I^,I\hat{I}, I

M

Ψ\Psi

Θ\Theta

FΘ\mathcal{F}_{\Theta}

U, Q

FU\mathcal{F}_{U}

Γ\Gamma

A

Ω\Omega

Ac,Am,AdA_{c}, A_{m}, A_{d}

M

T

T\mathcal{T}

Fclip\mathcal{F}_{\mathrm{clip}}

fcf^{c}

fvf^{v}

sjv,cs_{j}^{v,c}

simax⁡s_{i}^{\max}

jimax⁡j_{i}^{\max}

Λ\Lambda

Sc,βS_{c}, \beta

jβmax⁡j_{\beta}^{\max}

Iβmax⁡I_{\beta}^{\max}

G\mathcal{G}

ξ\xi

ψ\psi

w

ηβmax⁡\eta_{\beta}^{\max}

Φ\Phi

Pvlm\mathcal{P}_{\mathrm{vlm}}

ξvlm\xi_{\mathrm{vlm}}

NvlmN_{\mathrm{vlm}}

Zero-Shot

Zero-Shot Anomaly Categorization

Zero-Shot Anomaly Context Description

Zero-Shot Anomaly Map

Set of Anomaly Category Classes

Image Size z=[H,W]\mathbf{z} = [H, W]

Video Data, Anonymized Video Data

Video Frame, Anonymized Frame

Binary Segmentation Mask/s

Object Segmentation Model

Image AN Function / Algorithm

Video AN System that Applies Θ\Theta

VAD Utility Task, Privacy Detection Task

VAD Utility Model

Anonymized VAD System

Alert Score of AN-VAD

Our Multifaceted Anomaly Explainer

Anomaly XAI for Category, Heatmap, and Context

Number of Anomaly Classes

Number of Consecutive Video Frames

Set of Textual Descriptions for C

Pretrained CLIP Models, Fclip={Ftext,Fimage}\mathcal{F}_{\mathrm{clip}} = \{\mathcal{F}_{\mathrm{text}}, \mathcal{F}_{\mathrm{image}}\}

Embedded Feature of Anomaly Classes using Ftext\mathcal{F}_{\mathrm{text}}

Embedded Feature of Video Frames using Fimage\mathcal{F}_{\mathrm{image}}

Cosine Similarity Scores for the jthj^{th} Frame ∀C\forall C

Maximum Score for the ithi^{th} Anomaly Class

Video Frame Index of simax⁡s_{i}^{\max}

Class Probability Scores λi∈Λ\lambda_{i} \in \Lambda after Softmax

Maximum of Λ\Lambda, Sc=λmax⁡S_{c} = \lambda^{\max}, Its Class Index β=imax⁡\beta = i^{\max}

Video Frame Index for XAI Anomaly Class at β\beta

ZSAC Localized Frame at Iβmax⁡=X[jβmax⁡]\mathbf{I}_{\beta}^{\max} = \mathbf{X}[j_{\beta}^{\max}]

Grad-ECLIP ZSAM Function

PPA Hyperparameters for Improved G\mathcal{G}

Image Slicer Function using the Sliding Window w

Sliding Window with size = [Hw,Ww][H_{w}, W_{w}], step = GwG_{w}

Heatmap Score of Spatial Anomaly XAI for β\beta at jβmax⁡j_{\beta}^{\max}

ZSAD Inference using VLM V\mathcal{V}

VLM XAI Prompt for Φ\Phi

Inference Hyperparameters of V\mathcal{V}

Number of Input Video Frames for V\mathcal{V}

References (77)