Introduction
Detecting violent events in video streams is a critical task for public safety and automated content moderation. However, this task is primarily a "weakly-supervised" challenge: while researchers often have access to video-level labels (indicating if a video contains violence), they rarely have precise second-by-second timestamps.
Traditional approaches utilize Multiple Instance Learning (MIL), which treats a video as a "bag" of snippets and attempts to identify the most violent instances to optimize the model. However, standard MIL methods suffer from two major limitations in audio-visual contexts: Modality Asynchrony (where sound and sight cues do not align perfectly in time) and Undifferentiated Instances (where the model ignores "normal" or "background" snippets that could provide valuable negative context).
The MACIL-SD Framework
To address these issues, researchers from Fudan University developed MACIL-SD (Modality-Aware Contrastive Instance Learning with Self-Distillation). This lightweight framework is designed to be both parameter-efficient and highly effective at distinguishing violent cues from background noise.
Core Components
- Lightweight Two-Stream Network: The architecture uses a parameter-efficient design featuring cross-modality attention. This allows audio and visual features to interact and share context without the massive computational overhead typical of large-scale Transformers.
- Modality-Aware Contrastive Instance Learning (MA-CIL): Instead of focusing only on the most violent snippets, MA-CIL clusters snippets into three "semi-bags": Violent, Normal, and Background. By employing Contrastive Learning (specifically the InfoNCE loss), the model learns to pull violent audio and visual representations together in the feature space while pushing them away from normal and background instances. This forces the model to learn more distinct boundaries between classes.
- Self-Distillation (SD): The framework trains a separate unimodal visual network alongside the main multimodal model. Using an Exponential Moving Average (EMA) strategy, the system "distills" knowledge from the visual network into the multimodal one. This helps the model filter out multimodal noise and bridges the semantic gap between different types of data.
Experimental Results
The researchers evaluated MACIL-SD on the XD-Violence dataset, currently the largest and most comprehensive audio-visual violence benchmark, featuring 217 hours of footage ranging from brawls to car accidents.
Performance and Efficiency
- State-of-the-Art Accuracy: MACIL-SD achieved 83.40% Average Precision (AP) on the XD-Violence dataset, outperforming previous benchmarks by 1.71%.
- Extreme Efficiency: The "light" version of the model utilizes only 0.347M parameters. Despite being a fraction of the size of competitors (some of which exceed 13M parameters), it delivers superior results, making it ideal for real-world deployment.
- Versatility: The MA-CIL and SD modules were tested as "plug-ins" for other existing models (such as RTFM). In these tests, the modules consistently boosted performance by 1.3% to 2.3%, proving their broad utility.
Discussion and Future Directions
One of the key insights of this research is that temporal asynchrony—often viewed as a problem—can be managed by processing unimodal features individually before fusion. Furthermore, the success of the "semi-bag" approach suggests that the "background" snippets of a violent video contain essential information for teaching a model what violence is not.
While the model currently relies on frozen pre-trained feature extractors (I3D for video and VGGish for audio), future work may explore end-to-end training to further refine performance. Additionally, the researchers aim to test how well this contrastive strategy generalizes to other forms of anomaly detection, such as theft or medical emergencies, where the relationship between sound and vision may differ.
Summary updated