# 异常事件检测

视频中的异常事件检测，是在空间和/或时间上定位异常的任务，其中异常是指异于寻常的活动，也称为反常、新奇事件或离群点。<sup>[1](https://merl.com/publications/docs/TR2021-029.pdf)</sup> 由于收集含有异常的训练视频并不现实，主流范式是从无异常的影像中学习一个正常性模型，并标记出偏离该正常性的情况，而不是在异常类别上训练一个有监督分类器。<sup>[1](https://merl.com/publications/docs/TR2021-029.pdf)</sup> 典型输出是逐帧异常分数，其尺度和范围取决于具体方法（分数可归一化到[0,1]），并在多个阈值下与真值进行比对评估；典型的异常事件包括交通事故、斗殴、盗窃和纵火，完整的解决方案还会报告每个事件的起始帧和结束帧。<sup>[2](https://www.mdpi.com/2313-433X/4/2/36)</sup><sup> • </sup><sup>[3](https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0358538)</sup> 什么算作异常取决于场景：在人行道上行走是正常的，在高速公路上行走则是异常的。<sup>[4](https://arxiv.org/pdf/2402.04857)</sup>

| 关键事实 | 详情 |
|---|---|
| 任务定义 | 在视频的空间和/或时间上定位异于寻常的活动<sup>[1](https://merl.com/publications/docs/TR2021-029.pdf)</sup> |
| 输出 | 逐帧异常分数 \( s(t) \in [0,1] \)，经阈值化处理；可选空间或时空定位<sup>[2](https://www.mdpi.com/2313-433X/4/2/36)</sup><sup> • </sup><sup>[3](https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0358538)</sup> |
| 训练方式 | 默认采用单类（仅正常样本）训练；弱监督的视频级标签是主要替代方案<sup>[5](https://www.sciencedirect.com/science/article/abs/pii/S0031320326009775)</sup><sup> • </sup><sup>[6](https://www.sciencedirect.com/science/article/pii/S2667305326000104)</sup> |
| 偏差信号 | 重建误差、预测误差和生成误差<sup>[4](https://arxiv.org/pdf/2402.04857)</sup><sup> • </sup><sup>[5](https://www.sciencedirect.com/science/article/abs/pii/S0031320326009775)</sup> |
| 标准基准 | UCSD Ped1/Ped2、CUHK Avenue、ShanghaiTech、UCF-Crime<sup>[7](https://arxiv.org/html/2606.29506v1)</sup> |
| 评价指标 | 帧级AUC（Micro与Macro）、EER、用于区域级和轨迹级定位的RBDC/TBDC<sup>[4](https://arxiv.org/pdf/2402.04857)</sup><sup> • </sup><sup>[8](https://ar5iv.labs.arxiv.org/html/2111.08644)</sup> |
| 主要失效模式 | 跨场景泛化能力差：跨数据集AUC平均为0.499，而数据集内为0.704<sup>[7](https://arxiv.org/html/2606.29506v1)</sup> |

## 工作原理

该任务被设定为单类或半监督学习：训练样本不含异常，目标是学习一种能够捕捉正常运动和空间外观的特征表示，从而可以通过度量近似误差来识别偏差。<sup>[2](https://www.mdpi.com/2313-433X/4/2/36)</sup> 其基本假设是，在推理时产生较大重建误差、预测误差或生成误差的事件即为异常。<sup>[5](https://www.sciencedirect.com/science/article/abs/pii/S0031320326009775)</sup><sup> • </sup><sup>[4](https://arxiv.org/pdf/2402.04857)</sup> 文献中出现四种训练范式：全监督、单类、弱监督和无监督；单类分类只需要正常数据，但其关键局限在于正常样本的多样性不足，而文献中的“无监督”往往指的是隐式引入部分监督的单类设定。<sup>[6](https://www.sciencedirect.com/science/article/pii/S2667305326000104)</sup>

这一假设已被认识到有其局限。要获取覆盖各种分布的所有正常类型并不现实，正常与异常的边界往往模糊不清，而且正常性建模方法缺乏能够捕捉正常行为所有变化的代表性训练数据。<sup>[4](https://arxiv.org/pdf/2402.04857)</sup><sup> • </sup><sup>[9](https://www.ecva.net/papers/eccv_2020/papers_ECCV/papers/123670358.pdf)</sup>

## 实现方法

典型的处理流程是从视频中提取特征（早期工作使用手工设计的外观、运动和纹理描述子；后来使用学习到的特征），拟合一个正常行为模型，并对所得的逐帧分数进行阈值化。<sup>[4](https://arxiv.org/pdf/2402.04857)</sup> 基于重建的方法从PCA等传统方法到自编码器等深度学习方法不等，此外还有时空预测模型（自回归模型和卷积LSTM，它们学习给定过去帧条件下当前帧的条件分布 \( P(x_t \mid x_{t-1}, \dots, x_{t-p}) \)），以及生成模型（VAE、GAN、AAE）。<sup>[2](https://www.mdpi.com/2313-433X/4/2/36)</sup> 诸如MemAE之类的记忆增强自编码器增加了记忆模块，使模型记住正常模式而非过度泛化。<sup>[10](https://openaccess.thecvf.com/content_ICCV_2019/papers/Gong_Memorizing_Normality_to_Detect_Anomaly_Memory-Augmented_Deep_Autoencoder_for_Unsupervised_ICCV_2019_paper.pdf)</sup>

## 起源

早期方法使用背景减除、光流和依赖外观、运动与纹理的手工特征提取。<sup>[4](https://arxiv.org/pdf/2402.04857)</sup> 帧级和像素级评价准则在多个异常分数阈值下计算TPR/FPR，并用ROC AUC和EER进行汇总。<sup>[1](https://merl.com/publications/docs/TR2021-029.pdf)</sup> 深度学习的转向以学习到的特征取代了手工特征，弱监督VAD成为一条主要研究方向：大多数弱监督方法基于多示例学习（从整包带有一个标签、包内示例无标签的示例包中学习），追随UCF-Crime论文的思路。<sup>[4](https://arxiv.org/pdf/2402.04857)</sup><sup> • </sup><sup>[11](https://ojs.aaai.org/index.php/AAAI/article/download/20028/version/18325/19787)</sup>

## 变体

基于重建的方法对正常帧进行压缩和重建，并对重建误差打分。基于预测的方法训练模型从正常帧预测未来或过去的帧，假设异常帧会表现出更大的预测误差；其中一种方法使用FlowNet和GAN来预测第 \( t+1 \) 帧。<sup>[12](https://openaccess.thecvf.com/content/WACV2026/papers/Ahn_AnyAnomaly_Zero-Shot_Customizable_Video_Anomaly_Detection_with_LVLM_WACV_2026_paper.pdf)</sup> 记忆增强自编码器增加了记忆模块，使模型记住正常模式而非过度泛化。<sup>[10](https://openaccess.thecvf.com/content_ICCV_2019/papers/Gong_Memorizing_Normality_to_Detect_Anomaly_Memory-Augmented_Deep_Autoencoder_for_Unsupervised_ICCV_2019_paper.pdf)</sup> 基于距离的解决方案通过测试事件与学习到的正常模式之间的距离来打分。<sup>[4](https://arxiv.org/pdf/2402.04857)</sup>

弱监督方法使用带有视频级标注的正常和异常样本进行训练（如UCF-Crime），避免了昂贵的帧级标注，但异常的开始和结束不明确；它们通常建立在多示例学习之上，已成为主流范式。<sup>[4](https://arxiv.org/pdf/2402.04857)</sup><sup> • </sup><sup>[6](https://www.sciencedirect.com/science/article/pii/S2667305326000104)</sup> 较新的方法族应用扩散模型（通过约束扩散步数来解决生成耗时和随机性的问题）以及大型视觉-语言模型：AnyAnomaly定义了可定制的VAD，将用户定义的文本视为异常事件，无需针对每个环境重新训练即可实现零样本检测；EventVAD无需训练，在免训练设定中以7B多模态大语言模型达到最先进水平；HAWK将外观和运动特征与大语言模型（LLAMA）相结合。<sup>[5](https://www.sciencedirect.com/science/article/abs/pii/S0031320326009775)</sup><sup> • </sup><sup>[12](https://openaccess.thecvf.com/content/WACV2026/papers/Ahn_AnyAnomaly_Zero-Shot_Customizable_Video_Anomaly_Detection_with_LVLM_WACV_2026_paper.pdf)</sup><sup> • </sup><sup>[13](http://dl.acm.org/doi/10.1145/3746027.3754500)</sup><sup> • </sup><sup>[14](https://papers.nips.cc/paper_files/paper/2024/file/fca83589e85cb061631b7ebc5db5d6bd-Paper-Conference.pdf)</sup>

## 应用

标准的单场景基准有UCSD Ped1和Ped2，即对行人通道的监控，异常为非行人物体如自行车和手推车；CUHK Avenue，一个校园场景，异常包括奔跑和投掷物品；以及ShanghaiTech，一个更大的多场景校园基准，包含13个摄像头视角，并随附一个未来帧预测基线。UCF-Crime提供视频级标注用于训练，帧级标注用于测试。<sup>[7](https://arxiv.org/html/2606.29506v1)</sup><sup> • </sup><sup>[4](https://arxiv.org/pdf/2402.04857)</sup>

在帧级准则下，一帧中至少有一个超过阈值的异常像素即算作一次检测，在多个阈值下与帧级真值比对形成ROC曲线。<sup>[15](http://www.svcl.ucsd.edu/publications/conference/2010/cvpr2010/cvpr_anomaly_2010.pdf)</sup> 存在两种AUC变体：Micro-AUC将所有视频的帧拼接后计算总体AUC，而Macro-AUC则对每个视频的AUC取平均。<sup>[4](https://arxiv.org/pdf/2402.04857)</sup> UCSD协议下的像素级定位要求至少检测到40%的真实异常像素，该帧才算作正确检测。<sup>[15](http://www.svcl.ucsd.edu/publications/conference/2010/cvpr2010/cvpr_anomaly_2010.pdf)</sup> 对于更丰富的定位，UBnormal评估micro和macro帧级AUC以及基于区域的检测准则（RBDC）和基于轨迹的检测准则（TBDC），这两种准则侧重时间与空间维度上的假阳性率。<sup>[8](https://ar5iv.labs.arxiv.org/html/2111.08644)</sup><sup> • </sup><sup>[4](https://arxiv.org/pdf/2402.04857)</sup><sup> • </sup><sup>[16](https://www.ijcai.org/proceedings/2021/0162.pdf)</sup>

帧级评估并不验证检测是否与实际的异常位置吻合，因此一些真阳性可能是错误检测与异常事件的偶然巧合，MERL综述的作者认为空间定位至关重要，并建议不要仅依赖帧级准则。<sup>[15](http://www.svcl.ucsd.edu/publications/conference/2010/cvpr2010/cvpr_anomaly_2010.pdf)</sup><sup> • </sup><sup>[1](https://merl.com/publications/docs/TR2021-029.pdf)</sup>

## 局限与替代方案

主要的失效模式是场景依赖性。由于视频、摄像头视角和场景有限，现有方法覆盖的异常类型很少，泛化能力差，每遇到新的摄像头视角或场景就需要重新训练；它们还容易受到反光、光照变化和复杂背景的影响，导致频繁的假阳性和假阴性。<sup>[4](https://arxiv.org/pdf/2402.04857)</sup> 一项跨数据集审计量化了域偏移的代价：对各骨干网络的结果取平均后，同数据集AUC为0.704，而跨数据集AUC为0.499，即随机水平，最差的数据集对降至0.340，低于随机水平，差距为0.205个AUC点。<sup>[7](https://arxiv.org/html/2606.29506v1)</sup> 单类方法还需要针对每个新环境重新训练正常模式，代价包括数据收集、专家干预和高性能设备。<sup>[12](https://openaccess.thecvf.com/content/WACV2026/papers/Ahn_AnyAnomaly_Zero-Shot_Customizable_Video_Anomaly_Detection_with_LVLM_WACV_2026_paper.pdf)</sup>

作为替代方案，弱监督范式偏离了异常检测的核心假设，表现得像一个类别严重不平衡且异常类别异质的二分类问题，其闭集评估无法测试对未见异常类型的检测，而UBnormal等开集基准则解决了这一问题。<sup>[6](https://www.sciencedirect.com/science/article/pii/S2667305326000104)</sup><sup> • </sup><sup>[8](https://ar5iv.labs.arxiv.org/html/2111.08644)</sup> 自2023年以来，视觉-语言模型被研究作为VAD的强大特征提取器，零样本、免训练和基于扩散的检测器相继出现。<sup>[17](https://link.springer.com/article/10.1007/s00521-025-11659-8)</sup><sup> • </sup><sup>[12](https://openaccess.thecvf.com/content/WACV2026/papers/Ahn_AnyAnomaly_Zero-Shot_Customizable_Video_Anomaly_Detection_with_LVLM_WACV_2026_paper.pdf)</sup><sup> • </sup><sup>[13](http://dl.acm.org/doi/10.1145/3746027.3754500)</sup><sup> • </sup><sup>[5](https://www.sciencedirect.com/science/article/abs/pii/S0031320326009775)</sup> 一篇面向安全的综述指出，研究侧重于mAP、F1分数和FPS，而检测延迟、误报负担和部署鲁棒性等运维方面的问题未得到充分解决，并提出以检测时间（TTD）作为指标。<sup>[18](https://link.springer.com/article/10.1007/s10462-026-11653-z)</sup>

## References

1. [A Survey of Single-Scene Video Anomaly Detection (Jones, Ramachandra, Vatsavai, MERL TR2021-029, 2021)](https://merl.com/publications/docs/TR2021-029.pdf)
2. [An Overview of Deep Learning Based Methods for Unsupervised and Semi-Supervised Anomaly Detection in Videos (J. Imaging 2018)](https://www.mdpi.com/2313-433X/4/2/36)
3. [Learn the interactions: Weakly supervised video anomaly detection with human-object interactions (PLOS One)](https://journals.plos.org/plosone/article?id=10.1371%2Fjournal.pone.0358538)
4. [Advancing Video Anomaly Detection: A Concise Review and a New Dataset (arXiv 2402.04857)](https://arxiv.org/pdf/2402.04857)
5. [Effective video anomaly detection by step-constrained diffusion model (SCDM)](https://www.sciencedirect.com/science/article/abs/pii/S0031320326009775)
6. [Video anomaly detection for edge-based IoT systems: A survey of input modalities and real-time applications](https://www.sciencedirect.com/science/article/pii/S2667305326000104)
7. [Benchmark AUC Is Not Deployable Reliability: A Cross-Dataset Audit of Off-the-Shelf Features for Surveillance Video Anomaly Detection](https://arxiv.org/html/2606.29506v1)
8. [UBnormal: New Benchmark for Supervised Open-Set Video Anomaly Detection](https://ar5iv.labs.arxiv.org/html/2111.08644)
9. [Learning Self-Supervised Representations for Video Anomaly Detection (ECCV 2020)](https://www.ecva.net/papers/eccv_2020/papers_ECCV/papers/123670358.pdf)
10. [Memorizing Normality to Detect Anomaly: Memory-Augmented Deep Autoencoder for Unsupervised Anomaly Detection](https://openaccess.thecvf.com/content_ICCV_2019/papers/Gong_Memorizing_Normality_to_Detect_Anomaly_Memory-Augmented_Deep_Autoencoder_for_Unsupervised_ICCV_2019_paper.pdf)
11. [Self-Training Multi-Sequence Learning with Transformer for Weakly Supervised Video Anomaly Detection (AAAI)](https://ojs.aaai.org/index.php/AAAI/article/download/20028/version/18325/19787)
12. [AnyAnomaly: Zero-Shot Customizable Video Anomaly Detection with LVLM (WACV 2026; arXiv:2503.04504)](https://openaccess.thecvf.com/content/WACV2026/papers/Ahn_AnyAnomaly_Zero-Shot_Customizable_Video_Anomaly_Detection_with_LVLM_WACV_2026_paper.pdf)
13. [EventVAD: Training-Free Event-Aware Video Anomaly Detection (ACM MM 2025)](http://dl.acm.org/doi/10.1145/3746027.3754500)
14. [HAWK: Learning to Understand Open-World Video Anomalies (NeurIPS 2024)](https://papers.nips.cc/paper_files/paper/2024/file/fca83589e85cb061631b7ebc5db5d6bd-Paper-Conference.pdf)
15. [Anomaly Detection in Crowded Scenes (Mahadevan et al., CVPR 2010, the MDT paper and UCSD Pedestrian dataset source)](http://www.svcl.ucsd.edu/publications/conference/2010/cvpr2010/cvpr_anomaly_2010.pdf)
16. [Weakly-Supervised Spatio-Temporal Anomaly Detection in Surveillance Video (IJCAI 2021)](https://www.ijcai.org/proceedings/2021/0162.pdf)
17. [Video anomaly detection in 10 years: a survey and outlook (Neural Computing and Applications, 2025)](https://link.springer.com/article/10.1007/s00521-025-11659-8)
18. [Deep learning for security-relevant event detection in visual data (Artificial Intelligence Review)](https://link.springer.com/article/10.1007/s10462-026-11653-z)

---
*Initially written Sep 29, 2026 · Edited: Oct 15, 2026; Oct 21, 2026*

Topic: 技术与人造世界 › 计算技术与数字系统 › 人工智能与数据 › Language and vision AI › Computer vision › Vision datasets, software, and community

Copyright 2026 Edgepedia

License: Edgepedia Community License 1.0, https://www.edgepedia.org/edgepedia/license

Source: https://www.edgepedia.org/zh/abnormal-event-detection

English original: https://www.edgepedia.org/abnormal-event-detection
