Deep Learning based Multi-Label Image Classification of Protest Activities

Yingzhou Lu, Kosaku Sato, Jialu WangarXiv 2023 · DOI

Abstract

Monitoring social unrest through social media often relies on text-based analysis, which lacks the granular detail of visual evidence. This paper presents a deep learning approach using Convolutional Neural Networks (CNNs) to automatically classify multiple visual attributes in protest images. By employing aggressive data augmentation to handle class imbalance and optimizing classification thresholds via the Matthews Correlation Coefficient, the proposed model achieves superior recall and computational efficiency compared to traditional Support Vector Machine (SVM) baselines.

Introduction

Sociologists and policy analysts increasingly turn to social media to monitor social unrest. While Natural Language Processing (NLP) of hashtags and text provides some insight, it often fails to capture the specific dynamics of an event—such as the presence of police, active fires, or the demographic makeup of the crowd. Automating the visual analysis of these events is challenging due to the "messy" nature of social media imagery, which includes background clutter, occlusions, and significant class imbalance (e.g., many images of crowds but few of fires).

Methods

The study evaluates two primary methodologies for multi-label classification, where a single image can be assigned multiple non-exclusive tags:

  1. Support Vector Machines (SVM): A baseline model using a "One-vs-All" strategy. To address class imbalance, a custom weighting hyper-parameter ($C_k$) was used to penalize misclassifications of minority classes more heavily.
  2. Convolutional Neural Networks (CNN): A deep learning architecture featuring three convolutional layers with ReLU activation and Max-Pooling, followed by two fully connected layers.

Data Augmentation and Thresholding

To overcome the scarcity of samples for classes like "Fire" and "Student," the researchers applied 13 image transformation techniques, including flipping, scaling, perspective transforms, and noise injection. This expanded the "Fire" dataset from 327 to over 4,500 images. For final label assignment, the Matthews Correlation Coefficient (MCC) was used to determine the optimal probability threshold for each attribute, converting the CNN's continuous outputs into hard binary labels.

Datasets

The research utilized the OSI (Open Source Indicators) dataset, specifically the Gold Standard Report (GSR) provided by Virginia Tech. The dataset consists of 48,713 protest-related and 40,647 non-protest images, with a refined set of 9,504 hand-picked images for training and testing. Images were labeled across seven distinct visual attributes: Fire, Flag, Large Crowd, Police, Sign, Student, and Other.

Example of a multi-label protest image with flags and signs.

Key Insights

The CNN approach demonstrated several critical advantages over traditional machine learning:

  • Prioritizing Recall: In the context of monitoring unrest, missing a high-intensity event (a False Negative) is often worse than a False Positive. The CNN's superior recall makes it a more reliable tool for real-world monitoring.
  • Computational Efficiency: The CNN trained in less than half the time of the SVM and required significantly less system memory by utilizing mini-batch processing, whereas the SVM consumed nearly 90% of available system memory.
  • The Complexity of Scene Understanding: While individual attribute detection is strong, achieving "exact match" accuracy—where every tag in a complex image is correct—remains a hurdle, with rates currently around 20%.
Detection of police presence and crowd dynamics in a protest context.

Key Results

The CNN generally outperformed the SVM across most metrics, particularly in the F1-score (the balance between precision and recall):

  • Fire Detection: The CNN achieved an F1-score of 71%, compared to the SVM’s 42%.
  • Recall Advantage: The CNN’s recall for "Fire" was 67%, whereas the SVM only caught 35% of fire instances.
  • Large Crowds: Both models performed well here, but the CNN led with an F1 of 73%.
  • Overall Accuracy: Per-label accuracy reached nearly 77% on average for the CNN.

Limitations and Future Work

The authors identify several areas for improvement, including the use of Generative Adversarial Networks (GANs) to create even more realistic synthetic training data to further balance the classes. A major future step is merging image data with text data (headlines and descriptions) for multimodal analysis. Finally, future iterations will need to address source verification and privacy protection for the individuals pictured in the datasets.

Summary updated

BibTeX
@misc{lu2023deep,
  author = {Yingzhou Lu and Kosaku Sato and Jialu Wang},
  title = {{Deep Learning based Multi-Label Image Classification of Protest Activities}},
  year = {2023},
  eprint = {2301.04212},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2301.04212},
}
Figure