Abstract
Gang-involved youth in cities such as Chicago have increasingly turned to social media to post about their experiences and intents online. In some situations, when they experience the loss of a loved one, their online expression of emotion may evolve into aggression towards rival gangs and ultimately into real-world violence. In this paper, we present a novel system for detecting Aggression and Loss in social media. Our system features the use of domain-specific resources automatically derived from a large unlabeled corpus, and contextual representations of the emotional and semantic content of the user's recent tweets as well as their interactions with other users. Incorporating context in our Convolutional Neural Network (CNN) leads to a significant improvement.
Introduction
In urban environments affected by gang violence, social media platforms like Twitter serve as digital public squares where youth express grief ("Loss") and hostility ("Aggression"). A critical challenge for violence prevention is identifying when expressions of mourning transition into calls for retaliation. Standard Natural Language Processing (NLP) tools often fail in this domain due to the prevalence of African American English (AAE) and highly localized, "coded" gang slang. Furthermore, individual tweets are often ambiguous without the broader context of a user's recent history or social interactions.
Methodology
To address these challenges, we developed a system that integrates domain-specific linguistic resources with temporal and social context into a Convolutional Neural Network (CNN) architecture.
The system utilizes three primary components:
- Domain-Specific Resources: We trained word embeddings on a 1-million-tweet corpus from the target community. We also employed the SENTPROP algorithm to induce a specialized lexicon (SPLex) for "Aggression" and "Loss."
- User History Context: The model incorporates a sliding window of a user's previous posts. We found that a 90-day window effectively captures long-term semantic trends, while a 2-day window is better suited for capturing immediate emotional states.
- User Interaction Features: The system models interactions such as mentions and retweets. By averaging the representation of mutual interaction history, the model gains insight into the relationship between users, which helps disambiguate potentially aggressive language.
Data and Experimental Setup
The study relies on two datasets:
- Labeled Dataset: 4,936 tweets from a Chicago-based social network, hand-annotated by social work researchers into Aggression, Loss, and Other. This is significantly larger than previous benchmarks in this domain.
- Unlabeled Dataset: Approximately 1 million tweets collected via snowball sampling, used for training domain-specific embeddings and lexicons.
We compared our CNN-Context model against several baselines, including a state-of-the-art Support Vector Machine (SVM) and versions of the CNN using only domain-specific (DS) embeddings without context.
Results
Our experimental results demonstrate that both domain-specific embeddings and contextual features are vital for high-accuracy classification in this niche.
As shown in the results table, the CNN-Context model achieved a Macro-F1 score of 69.8, a significant improvement over the SVM baseline (65.3). Notably, the detection of "Aggression" saw the largest gain, with the F1-score jumping from 33.7 to 42.0. The inclusion of context was particularly effective at resolving ambiguity in "Loss" tweets, where references to names or news events only became clear when viewed alongside the user's recent history.
Discussion and Limitations
While the system shows promise, several challenges remain. The model still struggles with rare hashtags and unique character sequences. Furthermore, the current interaction features are undirected; future iterations could benefit from modeling the "back-and-forth" directionality of rivalries.
Ethically, we emphasize that this tool is designed for violence outreach workers to facilitate early intervention and support, rather than for law enforcement purposes. Misidentification and over-policing remain significant risks that must be managed through careful deployment and human-in-the-loop verification.
Summary updated