[Reading Notes] 2010 CEAS Detecting Spammers on Twitter
Abstract
This paper discribes machine learning method to classify spam users from non-spam users in Twitter, a popular microblog, based on user attributes including content attributes and user behavior attributes. The authors first collected a large dataset of Twitter that includes more than 54M users, 1.9G links, and almost 1.8G tweets (Twitter posts). Using tweets related to three famous trending topics from 2009, they construct a large labeled collection of users, manually classified into spammers and non-spammers. They then identify a number of characteristics related to tweet content and user social behavior, which could potentially be used to detect spammers. They used these characteristics as attributes of machine learning process for classifying users as either spammers or non-spammers.
Background
Microblogs are popular social system where users share and discuss about everything, including news, jokes, their take about events, and even their mood. They are very popular all over the word. Twitter is the most popular microblog system all over the world, while in China, we have sina microblog, tencent microblog, etc. With a simple interface where only 140 character messages can be posted, Twitter is increasingly becoming a system for obtaining real time information.
Because of Twitter's popularity, it attracts lots of spammers, and some interfaces, e.g. trending topics, become the target of spammers to mislead users to completely unrelated websites. Since tweets are usually posted containing shortened URLs, it is difficult for users to identify the URL content without loading the webpage. Therefore, it is very necessary to detect spammers from polluting the Twitter system.
Dataset
Dataset collection
Since Twitter assigns each user a numeric ID which uniquely identifies the user's profile. The authors lannched their crawler in August 2009 to collect all user IDs ranging from 0 to 80 million. This work was done when one of the authors was visiting the MPI-SWS. In order not to block by the Twitter, they asked Twiiter to allow them to collect such data and at last Twitter white-listed 58 servers located at MPI-SWS. In total the following data is collected:
- 54,981,152 users with 1,963,263,821 social links: 8% is private;
- 1,755,925,520tweets.
The dataset is said to be share by sending a email. I tried to send a email, but it always fail. I'm still trying on it.
The labeling process
Requirements:
- A significant number spammers and non-spammers;
- The labeled collection needs to include spammers mostly affect the system;
- Users are chosen randomly and not based on their characteristics.
Three trending topics largely discussed in 2009 are chosen: (1) the Micheal Jackson's death (keywords: "Michael Jachson", #michaeljackson, #mj); (2)Susan Boyle's emergence (keywords: "Susan Boyle", #susanboyle), and (3) the hashtag "#musicmonday" (keywords: #musicmonday). Since the spammers aim to mislead users to unrelated urls, the authors randomly selected users among the ones that posted at least one tweet containing a URL with at least one key word described previously. Then a careful manual classification was processed. In orde to minimize the impact of human erro, two volunteers analyzed each user in order to independently label a single user. In case of tie, a third independent user was involved. In total: 8,207 users were labeled, including 355 spammers and 7,852 non-spammers. Since the number of non-spammers is much higher, the authors randomly select only 710 of the legitimate users to include in their collection. At last, 1,065 users were labeled.
User Attributes
- Content atrributes:
- Basic attributes:
(maximum, minimum, average)
(maximum, minimum, average)
- #words (maximum, minimum, average)
- #characters (maximum, minimum, average)
- #users metioned (maximum, minimum, average)
- #URLs (maximum, minimum, average)
- #times retweeted (maximum, minimum, average)
- The fraction of spam words used
- The fraction of reply messages
- The fraction of URLs contained
- ...
- User behavior attributes:
- #folowers
- #folowees
- #tweets
- account age
- #times metioned
- #times replied
- ...
- Basic attributes:
Analysis method: the CDF (cumulative distribution functions between spammers and non-spammers)
Methods
Evaluation metrics
- recall
- precision
- Micro-F1 and Macro-F1
Classifier
SVM with Radial Basis Function (RBF) kernel
Experiments
5-fold cross-validation
Feature selection
- Information gain
(Chi-Squared)
Top 10 attributes:
- fraction of tweets with URLs
- age of the user account
- average number of URLs per tweet
- fraction of followers per followees
- fraction of tweets the user had replied
- number of tweets the user replied
- number of tweets the user receive a reply
- number of followees
- number of followers
- average number of hashtags per tweet
[1]. Benevenuto, F.A.M.G. Detecting Spammers on Twitter. in Seventh annual Collaboration, Electronic messaging, Anti-Abuse and Spam Conference. 2010. Redmond, Washington, US.
![Creative Commons License](http://i.creativecommons.org/l/by/2.5/cn/88x31.png)
本文基于署名 2.5 中国大陆许可协议发布,欢迎转载,演绎或用于商业目的,但是必须保留本文的署名小橋流水(包含链接)。如您有任何疑问或者授权方面的协商,请给我发邮件。