Source-linked AI summary

Semi-Supervised Spam Detection in Twitter Stream

Surendra Sedhai, Aixin Sun

arXiv:1702.01032v1cs.IRcs.CRcs.SI

TL;DR

Twitter spam detection has often focused on blocking accounts, which may not catch every spam tweet. S3D combines four lightweight real-time detectors with batch updates from confidently labeled data. The authors report that S3D achieves the best F1 scores among the compared methods and is more consistent over time.

  • Problem

    Account blocking may miss spam tweets when spammers use multiple accounts or legitimate accounts post spam, motivating finer-grained tweet-level detection.

    Source: §1 · p. 1
  • Method

    S3D uses four lightweight detectors for real-time tweet labeling and periodically updates detection information from confidently labeled tweets and clusters.

    Source: §1 · pp. 1–2, §3 · p. 3, §3.2 · p. 4
  • Results

    S3D achieves the best F1 scores among the five compared methods and has more consistent F1 scores over time than the other methods.

    Source: §4.1 · p. 6
  • Takeaways & Limitations

    The authors report that confident tweets and clusters help S3D capture new spamming patterns as it learns new patterns and vocabulary over time.

    Source: §4.1 · pp. 6–7, §5 · p. 9

Abstract

from arXiv · show

Most existing techniques for spam detection on Twitter aim to identify and block users who post spam tweets. In this paper, we propose a Semi-Supervised Spam Detection (S3D) framework for spam detection at tweet-level. The proposed framework consists of two main modules: spam detection module operating in real-time mode, and model update module operating in batch mode. The spam detection module consists of four light-weight detectors: (i) blacklisted domain detector to label tweets containing blacklisted URLs, (ii) near-duplicate detector to label tweets that are near-duplicates of confidently pre-labeled tweets, (iii) reliable ham detector to label tweets that are posted by trusted users and that do not contain spammy words, and (iv) multi-classifier based detector labels the remaining tweets. The information required by the detection module are updated in batch mode based on the tweets that are labeled in the previous time window. Experiments on a large scale dataset show that the framework adaptively learns patterns of new spam activities and maintain good accuracy for spam detection in a tweet stream.

1 Introduction

Twitter spam is attractive because messages can be widely propagated and clicked, while account-level blocking can miss spam tweets or affect legitimate accounts. The paper proposes semi-supervised tweet-level detection that updates its models from confidently labeled tweets.

1 Introduction

  • Twitter’s high click rate and effective message propagation attract spammers, whose activity harms user experience and tasks such as behavior analysis and recommendation.The reported click rate is 0.13%, two orders of magnitude above email spam.Source: §1 · p. 1
  • Prior work focuses largely on identifying and blocking spam accounts, including approaches using social graphs and user or tweet features.The paper frames tweet-level detection as a finer-grained complement to account identification.Source: §1 · p. 1
  • Tweet-level detection addresses spam that account blocking can miss when spammers use multiple accounts or legitimate accounts post spam, and can identify spam without waiting to identify a user.Spammers may also change tweet content and strategies to appear legitimate.Source: §1 · p. 1
  • The framework combines real-time spam detection by four lightweight detectors with periodic model updates using confidently labeled tweets from the previous time window.The framework starts with a small labeled set and uses the updates to learn new spamming activities.Source: §1 · pp. 1–2

2 Related Work

Prior Twitter-spam research covers account detection, tweet classification, and several forms of spam activity, while the literature also describes spam patterns as changing over time. The paper positions semi-supervised tweet detection with continuous updates as an approach not previously applied to Twitter spam, to the authors’ knowledge.

2 Related Work

  • Twitter spam includes link farming, trending-topic spam, phishing, and aggressive social-bot posting, and platform-specific spam techniques may not transfer from email.These activities pollute user timelines and Twitter search results.Source: §2 · p. 2
  • Account-focused studies use social graphs, user demographics, tweet content, URLs, and temporal behavior; online learning has also been used for evolving spammer detection.The cited online-learning approach incrementally updates a model using content and network information.Source: §2 · p. 2
  • Other approaches exploit legitimate-user patterns or cluster posts by text and URL similarity to detect large, bursty groups.Source: §2 · p. 2
  • Tweet-level work includes standard classifiers, language modeling, and tweet-credibility analysis; the authors report that semi-supervised learning had not been applied to Twitter spam detection.Prior semi-supervised applications cited include voice-over-IP spam and malware detection.Source: §2 · p. 2

3 Semi-supervised Spam Detection

S3D labels tweets in real time with four lightweight detectors, then updates its detection information in batch mode using confidently labeled tweets and clusters from the prior time window. The procedure includes a cluster-labeling stage and reports an average labeling time of 0.495 ms per tweet.

3.1 Spam Tweet Detection in Real-Time

  • S3D’s real-time cascade checks blacklisted domains, near-duplicate tweets, reliable ham, then remaining tweets with NB, LR, and RF classifiers.Near-duplicates inherit labels from matching pre-labeled signatures; reliable ham must come from a trusted user and contain no spammy words. The three classifiers use different techniques and a full spectrum of tweet features.Source: §3 · p. 3, §3.1 · p. 3

3 Semi-supervised Spam Detection

  • The framework separates real-time labeling from periodic batch updates based on confidently labeled data from the previous time window.Source: §3 · p. 3

3.1 Spam Tweet Detection in Real-Time

  • A spammy word has a higher probability of occurring in spam than ham; trusted users have never posted spam and have at least five confident ham tweets.A confident ham tweet contains no spammy words and is predicted as ham by all component classifiers.Source: §3.1 · p. 3

3.2 Model Update in Batch Mode

  • After each time window, unmatched tweets with the same signature are grouped; clusters of at least 10 tweets receive high-confidence labels for future near-duplicate detection.A cluster is confident when its feature-based classifier and majority vote over tweet labels agree.Source: §3.2 · p. 4
  • Batch updates refresh blacklisted domains, labeled clusters, trusted users, and the three tweet classifiers from confident prior-window data, enabling adaptation to new vocabulary and spamming behavior.A blacklist addition requires at least five tweets in the window and at least 90% confidently labeled spam; a trusted user requires at least five tweets, all confidently labeled ham.Source: §3.2 · p. 4

3.3 Computational Efficiency

  • 0.495 ms per tweet is the reported average labeling time; feature extraction uses more than half of it, and the code was not optimized for real-time operation.The experiments used one processor core for each detector except random forest, which used all cores; the authors note parallelization could further improve efficiency.Source: §3.3 · p. 5

4 Experiment and Discussion

S3D performs best on tweet-level spam detection across the evaluated days, while its update process uses confidently labeled tweets and clusters to adapt to changing spam patterns. The experiments also show that tweet and cluster classification rely on different feature patterns.

4 Experiment and Discussion

  • S3D was evaluated on 15 days of HSpam14 tweets with daily updates, testing the remainder of day one and the next 14 days against 300 manually labeled tweets per window.HSpam14 data were collected from trending topics in May and June 2013; the experiment used May 17–31, 2013.Source: §4 · p. 5

4.1 Result and Discussion

  • The tweet classifier labels 87.20% of tweets, versus 5.55% for blacklisted domains, 6.61% for near-duplicates, and 0.64% for reliable ham.The reliable-ham detector’s low coverage is attributed to the hashtag-based dataset not containing all tweets from users.Source: §4.1 · p. 5, Table 1 · p. 5
  • Across all days, S3D achieves the best F1 scores and outperforms S3D-Update and supervised NB, LR, and RF, with more consistent F1 over time.Figure 2 compares Precision, Recall, and F1 for the five methods.Source: Figure 2 · p. 6, §4.1 · p. 6
  • Confidently labeled cluster precision is almost perfect for spam and ham, while confidently labeled tweet precision stays above 95%, supporting updates that capture emerging spam and vocabulary.Cluster precision was assessed using 47 randomly selected clusters per day.Source: §4.1 · p. 7, Figure 3 · p. 7

4.2 Feature Analysis

  • Normalization improves performance; follower, followee, and tweet-count features use percentile normalization, while tweet length uses maximum-value normalization.The study selects the top 15 features separately for tweet and cluster classification using Gini impurity.Source: §4.2 · p. 7, Table 3 · p. 8
  • Vocabulary features comprise 10 of the top 15 tweet features but only 3 of the top 15 cluster features, where cluster metadata captures collective information across tweets.Only unigrams and bigrams appear among the top vocabulary features; the authors suggest trigram sparsity as one possible reason.Source: Table 2 · p. 6, §4.2 · p. 7

5 Conclusion

S3D combines four lightweight real-time detectors with periodic batch updates, and confidently labeled clusters and tweets help it capture new spamming patterns. User-level spam detection remains limited by the dataset’s user information and is left for future work.

5 Conclusion

  • S3D uses four lightweight detectors for real-time spam-tweet detection and periodically updates its models in batch mode.The framework uses a semi-supervised approach.Source: §5 · p. 9
  • Confidently labeled clusters and tweets make the system effective in capturing new spamming patterns.Source: §5 · p. 9
  • Limited user information in the dataset led the authors to use a simple technique for user-level spam detection, which they identify as future work.Source: §5 · p. 9
Loading 1702.01032v1…