[Tech Review] Predicting Social Crimes: Can Twitter Data Anticipate Digital Threats?
A Framework to Predict Social Crime through Twitter Tweets By Using Machine Learning
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").

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.

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.

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.
