[Tech Review] Predicting Social Crimes: Can Twitter Data Anticipate Digital Threats?

A Framework to Predict Social Crime through Twitter Tweets By Using Machine Learning

2020-02-01
Zaheer Abbass, Zain Ali, Mubashir Ali, Bilal Akbar, Ahsan Saleem
Summary
Problem
Method
Results
Takeaways
Abstract

This paper proposes a machine learning framework to predict five major types of social media crimes (Stalking, Bullying, Hacking, Harassment, and Scam) using Twitter data. The system utilizes supervised learning algorithms—Multinomial Naïve Bayes (MNB), K-Nearest Neighbors (KNN), and Support Vector Machine (SVM)—integrated with N-Gram language modeling, achieving a peak accuracy of 92.0% with SVM.

TL;DR

Researchers have developed an automated framework to classify and predict "Social Crimes" (Cyber-bullying, Harassment, Hacking, Stalking, and Scams) from Twitter's massive stream of 500 million daily tweets. By combining SVM with Bigram language models, the system achieves a high 92% accuracy, outperforming previous network-centric approaches.

Context & Motivation

In the digital age, criminology has shifted from physical streets to virtual threads. Law enforcement agencies are increasingly desperate for tools that can filter through the noise of social media to identify genuine threats. The primary challenge? Twitter data is notoriously messy—filled with slang, hashtags, and character limits that break traditional linguistic models. Unlike previous work that relied on network metadata, this study focuses on the semantic content of the tweets themselves to categorize criminal intent.

Methodology: From Raw Tweets to Crime Prediction

The proposed framework operates like a pipeline, transforming "noisy" social interactions into actionable intelligence through three distinct phases:

1. Data Collection & Pre-processing

The researchers curated a dataset of 150k tweets, categorizing them using domain-specific hashtags. To handle the "noise," they implemented a rigorous cleaning process: tokenization, removal of punctuation, elimination of stop words, and stemming.

2. The Feature Engineering Engine

The core of the system relies on TF-IDF (Term Frequency-Inverse Document Frequency). This mathematical approach de-emphasizes common words (like "the" or "is") and highlights "heavy" keywords that define specific crimes (e.g., "victim," "hacking," "hoax").

Data Pre-processing and Cleaning Steps

3. Classification Algorithms

The study compared three heavyweights of supervised learning:

  • Multinomial Naïve Bayes (MNB): Fast and efficient for high-dimensional text.
  • K-Nearest Neighbors (KNN): used cosine similarity to find patterns.
  • Support Vector Machine (SVM): The winner, which uses hyperplanes to separate crime classes with maximum margin.

Three-Stage Proposed Framework

Performance Breakdown: Why Bigrams Matter

One of the most significant findings was the impact of the N-Gram model. While Unigrams (single words) are often too sparse, and Trigrams (three words) too specific, Bigrams (two-word sequences) hit the "sweet spot" for Twitter's 280-character limit.

Key Results:

  • SVM Performance: Achieved 92% accuracy when using Bigrams.
  • Precision Winner: Cyber-Stalking and Cyber-Scam reached 100% precision, meaning the model almost never misidentified a non-crime as a stalking or scam attempt.
  • Benchmark Comparison: The Bag-of-Words (BOW) approach outperformed existing "Network-based feature selection" by a 2% margin in absolute accuracy.

Model Comparison Table

Critical Insight & Future Outlook

While the results are statistically impressive (F-measures > 0.9), the study currently operates in an offline mode. The real value for society lies in transitioning this to a real-time streaming environment.

Limitations: The reliance on hashtags for ground-truth labeling might introduce "keyword bias." Future research should look into Transformer-based models (like BERT) that understand the context even when specific hashtags are absent.

Conclusion

This framework proves that even with classic Machine Learning techniques, a well-engineered NLP pipeline can turn social media chatter into a powerful shield against cybercrime. As digital harassment continues to rise, these automated "digital sentinels" will become indispensable for modern policing.

Find Similar Papers

Try Our Examples

  • Search for recent papers that utilize Deep Learning architectures like BERT or RoBERTa for multi-class cybercrime detection on social media platforms.
  • Which study first introduced the TF-IDF weighting scheme in the context of short-text classification, and how do modern adaptations for Twitter data differ?
  • Explore research that applies the proposed Bigram-SVM framework to real-time incident detection in other domains such as natural disaster response or public health monitoring.
Contents
[Tech Review] Predicting Social Crimes: Can Twitter Data Anticipate Digital Threats?
1. TL;DR
2. Context & Motivation
3. Methodology: From Raw Tweets to Crime Prediction
3.1. 1. Data Collection & Pre-processing
3.2. 2. The Feature Engineering Engine
3.3. 3. Classification Algorithms
4. Performance Breakdown: Why Bigrams Matter
4.1. Key Results:
5. Critical Insight & Future Outlook
6. Conclusion