Pistachio: Towards Synthetic, Balanced, and Long-Form Video Anomaly Benchmarks

Jie Li, Hongyi Cai, Mingkang Dong, Muxin Pu, Shan You, Fei Wang, Tao HuangarXiv 2025 · DOI

Abstract

Video Anomaly Detection (VAD) is essential for security and autonomous systems, yet existing benchmarks suffer from scene bias, long-tail distributions, and simplistic "normal" behavior. We introduce Pistachio, a massive synthetic benchmark for VAD and Video Anomaly Understanding (VAU). By leveraging a controlled AI generation pipeline using video diffusion models and LLMs, Pistachio provides 4,962 long-form (41-second) videos with dense, causal annotations. Our results demonstrate that models pre-trained on synthetic Pistachio data generalize significantly better to real-world datasets than those trained on traditional benchmarks, achieving a 440% relative improvement in Average Precision on the ShanghaiTech dataset.

1. Introduction

Current VAD benchmarks like UCF-Crime and ShanghaiTech are primarily sourced from the Internet, leading to several critical flaws. First, they exhibit significant scene bias, over-representing urban roads and public streets. Second, they suffer from long-tail distributions where rare but critical events—such as infrastructure failures, chemical leaks, or animal predation—are virtually absent. Finally, "normal" behavior in these datasets is often too simplistic to represent real-world complexity. Pistachio addresses these gaps by using synthetic storylines to create a balanced, diverse, and long-form dataset designed for both detection and causal understanding.

2. Methodology: The Pistachio Generation Pipeline

The authors developed a fully automated, multi-stage pipeline to synthesize high-quality video data that avoids the biases of scraped content:

  1. Scene-Aware Classification: A Vision-Language Model (VLM) categorizes source images into six major scene types (e.g., Industrial, Critical Infrastructure, Nature).
  2. Anomaly Assignment: Contextually appropriate anomalies are assigned to these scenes by a VLM (e.g., "Falling Object" for a construction site).
  3. Multi-step Storyline Generation: An LLM (Qwen2.5-VL) decomposes the video into 7-8 descriptive segments, creating a coherent narrative that progresses from normal activity to an anomalous event.
  4. Temporally Consistent Synthesis: Using the Wan video diffusion model, videos are generated in chunks. To maintain continuity over 41 seconds, the last frame of one segment serves as the starting frame for the next.
  5. Hybrid Filtering: A combination of automated quality assessment and expert verification ensures the videos are free of "AI hallucinations" and follow real-world logic.
The multi-stage generation pipeline for the Pistachio dataset, illustrating the transition from scene classification to temporally consistent video synthesis.

3. Dataset Characteristics

Pistachio is divided into two main components to support different research tasks:

  • Pistachio-VAD: 4,962 long-form videos (1.68 million frames) covering 31 anomaly types across 6 scene categories.
  • Pistachio-VAU: A subset of 1,385 videos with rich, event-level textual descriptions for anomaly understanding.

Compared to existing datasets, Pistachio offers unprecedented scale and diversity in terms of scenes and detailed anomaly types, as shown in the comparison below.

Comparison of Pistachio with existing video anomaly detection datasets, highlighting its superior scale in videos, scenes, and detailed anomaly types.

4. Key Results and Generalization

Training on synthetic data proves to be a powerful pre-training strategy. Models trained on Pistachio showed a 440% relative improvement in Average Precision (AP) on the ShanghaiTech dataset compared to those trained on UCF-Crime. On the Pistachio test set, the state-of-the-art PEL4VAD model achieved 83.7% AUC and 70.96% AP.

Furthermore, cross-dataset testing on the real-world XD-Violence dataset yielded up to 87.52% AUC, validating the effectiveness of synthetic data in bridging the domain gap. However, Video Anomaly Understanding remains a challenge; Large Multimodal Models (MLLMs) like Qwen3-VL-8B achieved an average F1-score of only 27.40, suggesting that long-form causal reasoning is still a difficult problem for current AI.

5. Conclusion and Future Work

Pistachio demonstrates that synthetic storylines can overcome the inherent limitations of Internet-scraped VAD data. While a domain gap in visual texture remains between AI-generated and real CCTV footage, the semantic richness and balance of Pistachio significantly boost model generalization. Future work will focus on enhancing visual realism, integrating multi-modal features like synchronized audio, and providing finer frame-level control over anomaly boundaries.

Summary updated

BibTeX
@misc{li2025pistachio,
  author = {Jie Li and Hongyi Cai and Mingkang Dong and Muxin Pu and Shan You and Fei Wang and Tao Huang},
  title = {{Pistachio: Towards Synthetic, Balanced, and Long-Form Video Anomaly Benchmarks}},
  year = {2025},
  eprint = {2511.19474},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.19474},
}
Figure