Skip to main content
QUICK REVIEW

[Paper Review] Word Embeddings to Enhance Twitter Gang Member Profile Identification

Sanjaya Wijeratne, Lakshika Balasuriya|arXiv (Cornell University)|Oct 27, 2016
Cybercrime and Law Enforcement StudiesComputer Science11 references16 citations
TL;DR

This paper proposes using pre-trained word embeddings to enhance supervised machine learning for identifying Twitter gang member profiles. By converting textual features—such as tweets, profile descriptions, emojis, and YouTube links—into dense vector representations, the approach boosts classification performance, achieving an F1-score of 0.7835, a 6.39% improvement over baseline models without word embeddings.

ABSTRACT

Gang affiliates have joined the masses who use social media to share thoughts and actions publicly. Interestingly, they use this public medium to express recent illegal actions, to intimidate others, and to share outrageous images and statements. Agencies able to unearth these profiles may thus be able to anticipate, stop, or hasten the investigation of gang-related crimes. This paper investigates the use of word embeddings to help identify gang members on Twitter. Building on our previous work, we generate word embeddings that translate what Twitter users post in their profile descriptions, tweets, profile images, and linked YouTube content to a real vector format amenable for machine learning classification. Our experimental results show that pre-trained word embeddings can boost the accuracy of supervised learning algorithms trained over gang members social media posts.

Motivation & Objective

  • To improve the accuracy of supervised machine learning models in identifying Twitter gang member profiles.
  • To investigate whether word embeddings can better represent textual features from gang-related social media content than traditional term frequency methods.
  • To evaluate the impact of different vector operations (e.g., sum, mean, tf-idf weighting) on classification performance.
  • To explore the potential of pre-trained word embeddings in reducing feature space complexity while preserving semantic and syntactic information relevant to gang identity.

Proposed method

  • Pre-trained word embeddings were generated from a curated dataset of 3,000+ Twitter profiles, including gang and non-gang members, using textual content from tweets, profile descriptions, emojis, and linked YouTube content.
  • Textual features were extracted from profile descriptions, tweets, emoji usage, and metadata from linked YouTube videos and profile images.
  • Word embeddings were aggregated using multiple operations: vector sum, vector mean, and weighted sum using word counts and tf-idf values.
  • Supervised classifiers—logistic regression, SVM, and random forest—were trained on the embedded feature representations to classify users as gang or non-gang members.
  • A 10-fold cross-validation strategy was used to evaluate model performance across different embedding aggregation techniques and baseline models.
  • The best-performing model used the mean of word embeddings weighted by word frequency (V_p_avg(sum(count))), which outperformed both baseline models.

Experimental results

Research questions

  • RQ1Can pre-trained word embeddings improve the F1-score of supervised classifiers in identifying Twitter gang member profiles compared to traditional term frequency-based feature extraction?
  • RQ2Which vector aggregation method—sum, mean, or tf-idf weighted sum—yields the highest classification accuracy for gang member identification?
  • RQ3Does incorporating word embeddings from diverse textual sources (tweets, profile descriptions, emojis, and linked content) enhance model generalization and robustness?
  • RQ4How does the performance of word embedding-based models compare to baseline models that rely solely on unigram term frequencies?

Key findings

  • The word embedding-based model using the mean of word embeddings weighted by word frequency achieved the highest F1-score of 0.7835 for the 'gang' class.
  • This represents a 6.39% improvement in F1-score compared to the baseline model using all profiles (F1 = 0.7364) and a 1.03% improvement over the more restrictive baseline model (F1 = 0.7755).
  • The vector mean operation (V_p_avg) consistently outperformed the vector sum (V_p_sum) across all classifiers, indicating that normalization improves representation quality.
  • Weighting the vector sum by word counts (V_p_sum(count)) degraded performance, suggesting that simple frequency weighting without normalization is suboptimal.
  • Using tf-idf weighting before vector sum (V_p_sum(tf-idf)) improved accuracy, showing that term importance normalization enhances feature representation.
  • The logistic regression classifier trained on the mean of weighted word embeddings achieved the best overall performance, outperforming both baseline models and other embedding aggregation techniques.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.