scieee AI-readable full text Open interactive document viewer

retweetpatterns: deteção de padrões espácio-temporais de retweets

Tomy Antunes Rodrigues

Abstract

https://drive.google.com/file/d/0B1UKAgGZL-L4dmdXMjVzZGNneFE/edit?usp=sharing

Full text

FACULDADE DE ENGENHARIA DA UNIVERSIDADE DO PORTO RetweetPatterns: detection of spatiotemporal patterns of retweets Tomy Antunes Rodrigues Mestrado Integrado em Engenharia Informática e Computação Supervisor: Carlos Soares (PhD) Co-Supervisor: Dino Ienco (PhD) January 2014 © Tomy Antunes Rodrigues, 2014 RetweetPatterns: detection of spatio-temporal patterns of retweets Tomy Antunes Rodrigues Mestrado Integrado em Engenharia Informática e Computação January 2014 i Resumo As redes sociais estão cada vez mais presentes no dia a dia das pessoas, o Twitter e o Facebook são aquelas que mais se destacam. Revelando desta forma serem fontes de informação valiosas. Estas diferentes fontes de informação podem ser analisadas a fim de extrair conhecimento das mesmas (como por exemplo o comportamento dos utilizadores face a certos acontecimentos). Para lidar com essas fontes de informação, a área de Data Mining fornece técnicas interessantes que podem ser usados para extrair padrões úteis a partir destes dados. Este estudo orientado ao twitter terá desta forma como foco principal a identificação de padrões de retweets sendo um retweet o ato de re-publicar algo que foi postado no Twitter. O principal objetivo deste trabalho passa assim por perceber como é que a informação se propagou ao longo do tempo e caracterizar esse fenômeno pela extração e análise de padrões. Para extrair padrões de retweets usamos técnicas anteriormente desenvolvidas, como a Ferramenta GetMove. A ferramenta GetMove foi desenvolvido durante a tese de doutoramento do Dr. Phan Nhat Hai e permite extrair diferentes tipos de padrões espácio-temporais. O GetMove estuda desta forma o comportamento de grupos de objetos em movimento (clusters) para um tempo definido. O objetivo desta tese passa assim pela adaptação desta ferramenta para analisar dados do twitter. A fim de obter os grupos de objectos (clusters) necessários para a extracção de padrões, utilizou-se a abordagem desenvolvida na ferramenta TweeProfiles desenvolvida por Tiago Cunha. O objetivo desta ferramenta é identificar perfis de tweets (ou seja, clusters tendo em conta a dimensão temporal, espacial, social e de conteúdo). Por fim quantos aos dados utilizados como estudo de caso referem-se a tweets extraídos durante a manifestação no Brasil durante o período de 21/06/2013 a 17/07/2013. ii iii Abstract Social networks are increasingly present everyday in life of people, Twitter and Facebook are the ones that stand out. These different sources of information need to be analysed in order to discover useful piece of knowledge (such as users' behaviours). To deal with this issue, Data mining field supplied interesting techniques that can be used to mine useful pattern from this data. This dissertation is oriented to twitter analysis. The primary focus is the identification of patterns of retweets: retweet is the act of re-publish something that was posted on Twitter. The main goal of my work is to figure out how information spread over time and characterise this phenomena by the extraction of pattern analysis. In order to extract retweet patterns we employ previously developed techniques such as the GetMove Tool. The GetMove tool was developed during the PhD Thesis of Dr. Phan Nhat Hai and it allows to mine different types of spatio-temporal pattern describing different trajectory behaviour. The GetMove tool uses groups of moving objects (clusters) as entity to study during the time. The aim of my work lies in the adaptation of this tool (proposed for moving object data) to analyse twitter data. In order to obtain the required clusters for the extraction of patterns, we used the approach developed in the TweeProfiles tool developed by Tiago Cunha. The goal of this tool is to identify tweets profiles (i.e. clusters having regard to the spatial, temporal, social and content dimension). The data employed as case study are tweets collected during the manifestation in Brazil during the period 21/06/2013 to 17/07/2013 iv v Acknowledgements This dissertation was possible with the contributions of various people, who deserve to be recognized. Firstly, I would like to thank Professor Carlos Soares for his orientation of this project, either in conceptual and practical levels. His ideas really propelled the project forward. On the other hand, I wanted to thank Dino Ienco, who help me for everything that was asked throughout this work. I would also thank Tiago Cunha, author of TweeProfile that helped me to integrate and understand the same for this thesis. Lastly, I would like to thank my family and friends because they were there every day. I also dedicate this work to all of you. Tomy Antunes Rodrigues. xii LIST OF TABLES xiii Abbreviations API Application Programming Interface BIRCH Balanced Iterative Reducing and Clustering using Hierarchies CLIQUE Clustering in Quest DBSCAN Density-Based Spatial Clustering of Applications with Noise DENCLUE Density-Based Clustering CLARA Clustering Large Applications CLARANS Clustering Large Applications based on Randomized Search COD-CLARANS Clustering with Obstructed Distance - Clustering Large Applications based on Randomized Search HTML HyperText Markup Language HTTP Hypertext Transfer Protocol IDF Inverse document frequency JSON JavaScript Object Notation OPTICS Ordering Points To Identify the Clustering Structure REST Representational State Transfer SGI Silicon Graphics International STING Statistical Information Grid TF-IDF Term frequency - Inverse document frequency 1 Chapter 1 Introduction 1.1 Context Nowadays social networks are increasingly present and the information that they provide may prove interesting to study and analyze the behaviors of each before certain situations. As an example of situations, the case study we decided to choose for this study is a dataset about the manifestations of Brazil. Being that these platforms provide a certain interaction between the different actors that may or not be related to each other. Social networks are thus sources of information in all areas possible. It is in this sense that several researchers in the area of Data Mining are trying to aggregate and organize this data, in order to try to find patterns, associations, relevant changes and anomalies. In order to understand what are the possibilities that these networks provide in terms of realizing social, temporal, spatial and content behaviors. This knowledge can also be used to predict behaviors and predictable situations happen in future moments. However the following study will focus on Twitter environment. Some studies are already developed in this scope, namely the Automated Twitter data collecting tool [BKLK12], TwitterEcho [BO12] and TweeProfiles [TC13] in which the last two projects was a key essential in the elaboration of this project. The TwitterEcho is a platform that has been developed with the objective of collecting the tweets and retweets from users of Twitter. TweeProfiles allows showing quickly and intuitively tweets profiles taking into account several dimensions: social, temporal, spatial and content. 1.2 Motivation The motivation of this dissertation passes through analyze if we consider the social, temporal, spatial and content dimensions we can extract and find paths of retweets. Being that we define as paths of retweets the initial tweet and retweet associated with the same. This in order to understand if there are relationships among the multiple paths over time and thus able to extract patterns of retweets. Having as motivation to perceive and analyze the extracted patterns, in order to draw relevant conclusions of the results obtained. Introduction 2 1.3 Objectives The aim of this study is to provide a tool capable of displaying quickly how information propagates in our case analyzing retweets, this with particular attention to social, temporal, spatial and content dimension. To achieve this goal it will be interesing to analyze and study the Get Move algorithm, which extract patterns analyzing clusters evolution along the time. So our goal is to investigate the applicability of Get Move to retweet sequences which are somewhat different from the types of sequences for which Get Move was developed. Secondly apply TweeProfiles clustering algorithm to those sequences and finally adapt the TweeProfiles GUI for the resulting sequences. 1.4 Document Structure This document is organized as follows: Chapter 2 contains the state of the art for the fields related to this project. We explain the TwitterEcho and TweeProfiles project in more detail alongside an overview of some Data Mining concepts and applications that use data from twitter. While Chapter 3 presents the Get Move algorithm in detail, with simple examples, such as the related concepts in order to understand the algorithm. In Chapter 4 we present the Get Move algorithm applied to extract retweets pattern. For that we present two case studies. The first one refers to a dataset extracted from twitter during the manifestation in Brazil. For that case study we fully describe the process used to extract knowledge; it details the data preparation methods, clustering algorithm and Get Move algorithm applied to this experiment. The second one is an artificial dataset which was create to test the data mining process in order to prove the correct implementation of the Get Move algorithm. Lastly, the type of results provided in both of cases are presented and analyzed. 3 Chapter 2 Mining Twitter Data 2.1 Twitter Twitter1 is a social network that allows you to publish instant messages with the maximum number of 140 characters. Each message is called Tweet. Within Twitter, a user is following or can being followed by other users. Twitter is a social network in the sense that is based on followers and friend’s concept where each one can share messages each other. Each Tweet is different for that reason we can see many subtleties when we navigate on Twitter, such as the existence of:  Retweet (RT) Share another user’s tweet [Twi13a].  Mention (@ + user name) Identify a user in a tweet [Twi13e].  Reply (@ + user name) Answer to a previous user tweet [Twi13e].  Hashtag (# + topic name) Association of a keyword to a tweet [Twi13d].  Localization User’s geo-coordinates when sending a tweet [Twi13b]. Figure 2.1: Retweet example. ______________________ 1 https://twitter.com/ - Twitter website Mining Twitter Data 4 Twitter provides two APIs to access its information, namely the Streaming API and the REST API [Twi13c]. The Twitter Streaming API provides real time data (where each tweet is flagged as an event), although the only data available is limited by the session’s beginning. In the Streaming API since there is not a request policy but a connection policy instead, limits are imposed to the volume of data transmitted per client per second. Public access does not allow to receive more than 50 tweets per second or 4 320 000 tweets per day. The data is separated in 3 streams, namely: Public, User and Site streams. Public stream provides public data available in twitter. In the case of User and Site streams, a filter is applied to a list of users and only tweets from these users are provided. The Twitter REST API enables access to the user’s information, timeline, friends & followers, direct messages and general search, streaming, Places & Geo and trends, although there are limits imposed to the number of requests allowed. For the REST API, a request window is declared with 15 minutes duration during each user is allowed either 15 or 180 requests per window and method invoked. 2.2 Data Mining In recent years, data mining has been used widely in the areas of science and engineering. A famous example of data mining, often called the Market Basket Analysis (MBA) is a data mining technique which is widely used in the retail sales to identify which items are purchased together. The classic example of MBA is diapers and beer: "An apocryphal early illustrative example for this was when one super market chain discovered in its analysis that customers that bought diapers often bought beer as well, have put the diapers close to beer coolers, and their sales increased dramatically. Although this urban legend is only an example that professors use to illustrate the concept to students, the explanation of this imaginary phenomenon might be that fathers that are sent out to buy diapers often buy a beer as well, as a reward." [Q13] Data mining process is first of all a computational process that aims to extract information from a dataset and transform it into an understandable structure for further use. That process involves many steps (figure 2.2), but the first step is the most important, because that step refers to the analysis of the problem. The main goal in that step is to select a dataset and the best techniques to be used for our problem depending on the knowledge we want to extract. The second step consists in understanding the data and trying to collect and select the most relevant data. This selection can go through the transformation of these data, in order to produce results after the use of data mining techniques or algorithms. After that data preparation, next comes the modeling part, which consist in the selection and configuration of the modeling techniques to use. Following this we apply the model to our data so as to obtain results. Mining Twitter Data 5 Finally we conclude the last step with the analysis and the validation of the results, in order to verify the veracity of the model and its consistency. This section will now focuses on clustering algorithm because this is the task that will be addressed in this project. Figure 2.2: Data Mining Process (Reproduced from [DMP13]) 2.2.1 Clustering Clustering is defined as "the process of grouping a set of data objects into multiple groups or clusters so that objects within a cluster have high similarity, but are very dissimilar to objects in other clusters" [Han06]. In this section we present the most representative clustering algorithms, organized by their type. There are 4 types of clustering methods from raw data: Partitioning, Hierarchical, Density-based and Grid-based. 2.2.1.1 Partitioning Partitioning algorithms are known for generating mutually exclusive clusters of spherical shape using distance-based techniques to group objects. They generally use centroid or medoid to represent cluster centres and have proven effective up to medium size sets [Han06]. A partition algorithm organizes the objects to create partitions accordingly to a particular criterion. Within this set of partitioning algorithms, the most well known are k-means and k-medoids. K-Means classifies a given set of n data objects in k distinct partitions clusters, where k is the number of desired clusters. A centroid is defined for each cluster. A centroid is an average of all data objects in a partition. All the data objects are placed in a cluster having centroid nearest (or most similar) to that data object. After processing all data objects, k-means, or centroids, are recalculated, and the entire process is repeated. All data objects are bound to the clusters based on the new centroids. In each iteration centroids change their location step by step. In other words, centroids move in each iteration. This process is continued until no any centroid move. As a Mining Twitter Data 6 result, k clusters are found representing a set of n data objects. An algorithm for k-means method is given below (algorithm 1). Algorithm 1: k-Means Algorithm k-Means ( k: #clusters, D: dataset ) 1. arbitrary choose k objects from D as the initial clusters centers 2. repeat 3. (re)assign each object to the cluster to which the object is the most similar; 4. update the cluster means; 5. until no change in clusters 6. return set of k clusters; 7. end procedure 2.2.1.2 Hierarchical "A Hierarchical clustering method works by grouping data objects intro a hierarchy or a "tree" of clusters" [Han06]. There are two approaches to hierarchical clustering: we can go “from the bottom up”, grouping small clusters into larger ones, or “from the top down”, splitting big clusters into small ones. These are called agglomerative and divisive clustering, respectively. Usually, the results of hierarchical algorithms are represented by dendogram (i.e. tree diagram), which separates by levels the similarity of objects and represents the connections of clusters by creating lines from the root to the leafs. As an example of this method we can highlight the BIRCH (appendix A) [ZTM96] and chameleon (appendix A) [KH99] algorithm. 2.2.1.3 Density Based Density-based clustering algorithms follow the strategy of modelling clusters as "dense regions in that data space, separated by sparse regions" [Han06]. Therefore, these algorithms are very suitable to finding non-spherical shaped clusters. The DBSCAN (Density-Based Spatial Clustering of Applications with Noise) algorithm uses two parameters: the distance and the minimum number of points MinPts. In order to finds core objects (i.e., points with dense neighbourhood). The basic idea of the algorithm is then, for a given point, to get his -neighborhood and verify whether it contains MinPts points or more. Then we are in the presence of a core object. The algorithm 2 takes into account the two previous concepts and iteratively connects core objects to its ε-neighbourhood until all objects are processed. Mining Twitter Data 7 Algorithm 2: DBSCAN Algorithm DBSCAN ( MinPts: neighborhood_threshold, D: dataset, ε: radius_parameter ) 1. Mark all objects as unvisited; 2. do { 3. Randomly select an unvisited object p; 4. Mark p as visited; 5. if the ε-neighborhood of p has at least MinPts objects { 6. Create a new cluster C and add p to C; 7. Let N be the set of objects in the ε-neighborhood of p; 8. for each point p’ in N { 9. if p’ is unvisited { 10. Mark p’ as visited; 11. if the ε-neighborhood of p’ has at least MinPts points; 12. Add those points to N;} 13. if p’ is not yet a member of any cluster 14. add p’ to C;} 15. Output C;} 16. else mark p as noise; 17. } until no object is unvisited 18. end procedure On the other hand we have OPTICS (appendix A)[AMJ99], a variation of DBSCAN with the purpose of removing the necessity of user defined global parameters. 2.2.1.4 Grid Based Grid-based algorithms use a space-driven approach instead of a data-driven approach as in the previous algorithms. These methods partition the space into a finite number of cells that form a grid structure on which all of the operations for clustering are performed. The main advantage of the approach is its fast processing time [Han06]. STING ( apppendix A) (STatistical INformation Grid-based) is a clustering method to cluster spatial databases. The spatial area is divided into rectangle cells, which are represented by a hierarchical structure. Let the root of the hierarchy be at level 1, its children at level 2 and so on. The number of layers could be obtained by changing the number of cells that form a higher-level cell. A cell in level i corresponds to the union of the areas of its children in level i + 1. This allows for the clustering to be found recurring to querying the hierarchical structure using a topdown query, that goes through each level until it reaches the lowest level and returns the relevant cells for the specified query. Only two-dimensional spatial space is considered in this algorithm [Wang97]. Another algorithm to consider is CLIQUE [GGRJ98], which is a simple grid-based method for retrieving density-based clusters in sub-spaces of data. Mining Twitter Data 14 2.4.1 Clustering on content, time, space and social dimensions As it will be necessary to use TweeProfiles clustering process for RetweetPattern we describe all steps one by one. Since in the case of RetweetPattern we use retweets we have adapted this process from [TC13] for retweets. We start consider that each retweet is formally defined as rti, where i is the index identifier for each tweet post in a timestamp. The distance functions between two retweets rti and rtj are hereby defined as dist X (rti , rtj ), where X is the dimension on which the function maps the values. X can take the values Sp, T, C, So which are related respectively to the spatial, temporal, content and social dimension. In order to calculate the spatial distance between two points, these must be mapped in space. Traditional approaches map the points into an Euclidean space. However, the data received from TwitterEcho for spatial dimension consists of latitude and longitude for each retweet. Taking this into consideration, the haversine function (equation 2.1) is the most appropriate since all points are mapped on earth and this distance function takes into consideration earth’s shape. For each pair of retweets rti and rtj , the distance function uses the latitudes φrti and φrtj and longitudes λrti and λrtj to determine the distance in Kilometers. distSp( rti, rtj) = 2Rsin−1( [sin2 ( ) cosφrticosφrtjsin2 ( )]0.5) (2.1) A previous data conversion was required, since the formula requires the latitude and the longitude values to be expressed in radians. The conversion formula from a value deg in degrees into a radian value rad is given in equation 2.2. The values provided to this formula are the latitudes φrti and φrtj and longitudes λrti and λrtj as the parameter deg. rad = (2.2) Temporal distance was simply calculated as the difference of times (equation 2.3), providing in this way, a time interval converted into seconds to enable its usage in the clustering algorithm. For each pair of retweets rti and rtj, the times values ∆i and ∆j are used to compute the distance. dist T (ti , t j ) = | ∆i − ∆ j | (2.3) To calculate text similarity, the choice fell on TFIDF (equation 2.4) for vector representation and cosine similarity (equation 2.5) to determine the dissimilarity between any two texts. On the other hand, we elected cosine similarity to calculate similarity due to being a traditional yet powerful metric also used in many investigations [RLW12, RKT11]. For a retweet rti we define the retweet Mining Twitter Data 15 text as αi and calculate its TFIDF representation in a document matrix D: TFIDF(αi,D) = Tf(αi,D) IDF(αi) (2.4) Text similarity using cosine function, takes as input two TFIDF representations βi and βj related to two retweets rti and rtj and returns a similarity value between 0 and 1, which we adopt as distance value between texts: distC(rti, rtj) = ‖ ‖ ‖ (2.5) Finally for social distance, the geodesic distance was chosen. Although many other distance functions provide a more elaborate and possibly more powerful approach, they tend to be more difficult to interpret. Geodesic distance is the shortest path between two vertices, vertices which represent in our case two users. This calculation relies simply on the minimum number of edges between two vertices. An edge between two vertices exists only if a relationship between two vertices or users exists. To achieve this distance one must apply a shortest path algorithm on graph, as for instance Dijkstra’s [YAN14]. This distance measure introduced a problem not present in the previous measures: the existence of infinite distances. These occur when a node is not connected to another (nor directly nor through other nodes) and must be treated before applying our combining distances process. Since this process executes a min-max normalization, the usage of infinite values would induce errors in the matrices. It was decided, to substitute the infinite value for the total number of nodes, as this would be the maximum value calculated by the shortest path algorithm. All these distance measures were applied to all pairs of retweets for each timestamp and computed into dissimilarity matrices for further processing. The matrices are the essence for enabling combinations. The dissimilarity matrices are formally defined as DX , where X is the dimension on which the dissimilarity values were calculated. X can take the values Sp, T, C, So which are related respectively to the dimensions spatial, temporal, content and social. Within each dissimilarity matrix DX , the distance value that occupies the indexes i and j is defined as dX (i, j). In order to combine the distances, the approach chosen was to apply a weight system to all four dissimilarity matrices and obtain a single resultant matrix. The weight system were introduced to enable the user to parametrize the relative importance of dimensions in the clustering process. This matrix will contain the sum of all dissimilarities multiplied by the weight value for the corresponding dimension, always maintaining this sum equal to 100%. However, in order to obtain relevant results, we must normalize the primary matrices. The purpose is to induce the same scale for all dimensions to balance the input of every dimension. Therefore, a min-max normalization [Han06] was applied to all primary dissimilarity matrices DX with the goal to switch from a scale [minDX, maxDX] into a new scale [newminDX, newmaxDX] which would be similar to all four dimensions. The resultant normalized matrices were then subjected to the combination method through a weight system. The combination of each matrix gives us the formula presented in equation 2.6. The resulting combined matrix of all four dimensions D4D is the sum of each primary matrices (DSp,DT,DC,DSo) multiplied by the respective weight value (wSp,wT ,wC,wSo). Mining Twitter Data 16 D4D =wSpDSp+wTDT +wCDC+wSoDSo (2.6) All resultant matrices were then subjected to the clustering algorithm DBSCAN. That process will be useful in chapter 4 when we explain the RetweetPattern data Mining process. In this chapter we introduced some concepts of pattern mining. Were also introduced some clustering algorithms in order to understand which algorithms exist in order to understand the TweeProfiles tool which use DBSCAN. Finally a survey was made of some platforms that use data extracted from twitter in order to understand what kind of tool is associated with Twitter. In the next chapter we will present one of the essential tools for this work the algorithm GetMove. 17 Chapter 3 Get Move Algorithm Recently, there has been a growing interest in the querying of patterns, which capture ‘group’ or ‘common’ behavior among moving entities. GetMove [HPPT12a] is a tool that extract moving object patterns. Before to employ it in our retweet analysis we revise the main concepts in the field of data mining for moving object data. 3.1 Definition Firstly we need to introduce some background concepts to understand how the moving object patterns are extracted. First we have to define what is a database of transaction. A database of transaction is a set of timestamps within which objects stay together. Secondly the concept of item can be define as a cluster. A cluster can be define as a group of similar objects gathered or occurring closely together. Otherwise an item set is a set of items or a set of clusters. On the other hand a frequent Itemset is frequent if we can find sets of items that appear in many timestamps. Finally the cardinality of an item set is the number of elements it contains. For the following topics we will assume that we have a group of objects defined as follows ODB = {o1, o2, o3... on} and a set of timestamps TDB = {t1, t2, t3... tn} associated with each object. Definition 1: A Swarm [LZKR10] is a group of objects that contain at least ε objects during a minimum time mint. More formally, a Swarm can be defined as follow The pair (O, T) is a swarm if there is at least one cluster containing all the objects at each timestamp T (1). Furthermore there must be at least ε objects (2) and mint timestamps (3). (1): tai T, c s.t. O c, c é um cluster (2): |O| ≥ ε (3): |T| ≥ mint Get Move Algorithm 18 Figure 3.1: Swarm example (Reproduced from [HPPT12a]) In the example of figure 3.1, C1, C2 and C3 are clusters with related objects in a particular timestamp. If we consider ε = 2 and mint = 2, we can define the following Swarms ({O1, O2}, {t1, t3}), ({O1, O2}, {t3, t4}), ({O1, O2}, {t1, t4}) ({O1, O2}, {t1, t3, t4}). We note that it is possible to group these swarms into one ({O1, O2}, {t1, t3, t4}). Definition 2: A Swarm can be defined as a closed Swarm [HPPT12a] only if the objects defined remain unchanged for a minimum number of (possibly non-consecutive) timestamps, mint. (1): (O, T) is a swarm (2): O’ s.t. (O’, T) is a swarm and O  O’. (3): T’ s.t. (O, T’) is a swarm and T  T’. In the previous example Swarm ({O1, O2}, {t1, t3, t4}) is defined as a closed swarm for, say, mint=3. Definition 3: A convoy [HPPT12a] is a group of objects that contains at least ε objects for a minimum number of timestamps mint. The difference to a closed swarm is that the timestamps must be consecutive. (1): (O, T) is a closed swarm (2): i, 1  i  T, ti, ti+1 are consecutives. Get Move Algorithm 19 Figure 3.2: Example of Convoy (Reproduced from [HPPT12a]) In the example of Figure 3.2 considering ε = 2 objects and mint = 2 we can extract 2 convoys ({O1, O2}, {t1, t2, t3, t4}) and ({O1, O2, O3}, {t3, t4}). Definition 4: Moving clusters can be seen as special cases of convoys with the additional condition that they need to share some objects between two consecutive timestamps. If the pair (O,T) compose by a set of objects O and a set of consecutive timestamps T is a convoy, and let T(X) = {T  DB| X TDB} be the set of transactions including X. (O,T) is a moving cluster if (1): (O,T) is a convoy (2): ( ) ( ) ( ) ( ) In the example of Figure 3.2 we extract 2 convoys ({O1, O2}, {t1, t2, t3, t4}) and ({O1, O2, O3}, {t3, t4}). Now considering = 0.6 we verified that both convoys are Moving Clusters because in the first case ( ) ( ) ( ) ( ) { } { } { } { } in the same way for the second convoy we have ( ) ( ) ( ) ( ) { } { } { } { } and ( ) ( ) ( ) ( ) { } { } { } { } . Definition 5: A Group Pattern [HPPT12a] is the combination of the two patterns defined previously. Basically a group pattern are unconnected convoys which maintains the same objects at different time intervals. In other words a group pattern is a group of objects that remain unchanged for a Get Move Algorithm 20 minimum number of consecutive timestamps mint and after an indefinite period reappear once again for a minimum number of consecutive timestamps mint. Given a set of objects O, a minimum weight minwei , a disjoint set of convoys Ts = {s1, s2... sn}, a set of timestamps TDB = (t1,t2…tn) and a minimum number of convoys minc, (O, Ts) is a group pattern if (1): (O,Ts) is a closed swarm with ε, minc (2): ∑ minwei Figure 3.3: Example of Group Pattern (Reproduced from [HPPT12a]) In the example of Figure 3.2 we define mint = 2 and ε = 2, we can find 2 convoys Ts = ({O1, O2}, {t1, t2}) and ({O1, O2}, {t4, t5}). Additionally, with minc = 2, there are two convoys with nonconsecutive times this way we can say that there is a swarm of convoys, given that | Ts | = 2 ≥ minc and | O | ≥ ε. Moreover with minwei= 0.5 we verified that the example of Figure 3.3 is a Group Pattern as [ ] [ ]  minwei 3.2 Get Move The main objective of Get Move tool [HPPT12a] is to extract different kind of moving object patterns exploiting techniques coming from the field of frequent closed itemset mining. As first point, we need to extract the clusters of objects for each timestamp. To this purpose the Get Move framework uses a cluster matrix representation. For each timestamp a set of clusters CBD = {C1, C2 ... Cn} is generated with a set of objects ODB = {O1 , O2 … On} in order to obtain the evolution of clusters for each timestamp, and the result can be define like that Ci = {Ci1ti, Ci2ti ... Cinti}. Get Move Algorithm 21 A matrix of cluster (Table 3.1) is a matrix with size | OBD | x | CBD | for each timestamp, in which each row represents an item and each column a cluster. When a cell has the value 1 means that a given item is in the corresponding cluster. TDB T1 T2 T3 Cluster CDB C11 C21 C31 C12 C22 C32 C13 C23 O1 1 1 ODB O2 1 1 1 1 1 1 O3 1 1 1 O4 1 1 Table 3.1: Example of a Matrix of Cluster. 3.2.1 LCM Algorithm As mentioned, the Get Move algorithm firstly extracts closed itemset and then post-process the closed itemset in order to mine the moving object patterns. In order to efficiently extract frequent closed itemset, reusing existing methods, the LCM approach [UTTYH04a] is employed. Algorithm 3: LCM Algorithm LCM ( E: items) 1. For i:=1 to | E | do 2. If X[i] is frequent and X[i] = I(T(X[i])) then 3. output X 4. End for The LCM algorithm aims to extract frequent closed item sets. Let E be the universe of items (Figure 3.4), consisting of items 1,...,n. A subset X of E is called an item set. is a set of transactions over E, i.e., each T is sets of items of E. For an item set X, let T(X) = {T  | X T} be the set of transactions including X. Each transaction of T(X) is called an occurrence of X. For a given constant α ≥ 0, an item set X is called frequent if |T (X)| ≥ α. For a transaction set S T, let I(S) = T S . If an item set X satisfies I(T(X)) = X, then X is called a closed item set. Get Move Algorithm 22 Figure 3.4: Universe E of items For instance, we have a universe E (Figure 3.4) that has 6 items (i1, i2, i3, i4, i5, i6). Figure 3.5: Transactions containing items from the Universe E For the elements of the universe E let consider the following transactions (Figure 3.5). In order to understand the LCM algorithm, suppose we have X1 = {i1, i2}, an item set which is composed by items i1 and i2 from the Universe E. Get Move Algorithm 23 Figure 3.6: Transactions that contain i1 and i2 are t1, t2 and t4 Figure 3.7: Common items in transactions t1, t2 and t3 Process starts with an element, and for each iteration a new element is added. For example, using the item set X1 compose by i1 and i2, we start with i1 in the first iteration and then we add i2 in the second iteration. Summarizing the example and applying the LCM algorithm, in the first iteration we start by defining X with X =  because we have not found any frequent closed item set yet, and we have X1 = {i1}. The first step involves finding out the transitions in which i1 is present so we have T(X1) = T(i1) = {t1, t2, t4}. Then the second step aim to find the common elements for these transitions. Following this reasoning we have I(T(X1)) = { i1, i2, i3 }. In this step we can see that X ≠ I(T(X1)) and conclude that X is not frequent (cf. line 3 Algorithm 3). X then becomes X = {i1, i2, i3}. In the second iteration we have X = {i1, i2, i3}, and start this time with X1 = {i1} ∪ {i2}. Applying another time the LCM algorithm we have in the first step, T(X1) = T({i1, i2} = { t1, t2, t4} (cf. Figure 3.6). In the second step when we try to find common elements for such transitions we have I(T(X1) ) = I(t1, t2, t4) = {i1, i2, i3}. At the end of this iteration we see that X = I(T(X1) ) = {i1, i2, i3} (cf. Figure 3.7), so we can define X as frequent and { i1, i2, i3} as a frequent closed item set. RetweetPatterns 30 And this way we can apply the Get Move algorithm to analyze the evolution of the clusters over time. We can thus extract Closed Swarms, Convoys, Moving Cluster and Group Patterns. However from the beginning the goal is to extract patterns but it is necessary to understand the meaning of the extracted patterns for the retweets. Closed Swarm extracts patterns involving group of objects that can be together in non-consecutive timestamps. In other words this pattern tries to find sets of retweets that are recurrent over time. From the other side, Convoy extracts group of objects that need to be together in consecutive timestamps. In our scenario this means that we keep sets of retweets that have consecutive timestamps. Regarding now to Moving Cluster, Moving Cluster can be seen as a special cases of convoys with the additional condition that they need to share some retweets between two consecutive timestamps. Finally we have a Group Pattern which is composed by disconnected convoys i.e. sets of retweets having consecutive timestamps which exist up to a certain point and reappear some time later again. 4.2 Visualization After obtaining the result of Get Move it is important to display these in an intuitive and explicit manner. The RetweetPattern tool was designed and planned to present the results extracted from the Get Move algorithm. The tool is composed of 4 components each one for the 4 dimensions we use. The first part of the tool consists of a map (Figure 4.2), where we can see the extracted patterns of Get Move algorithm, patterns that can be Closed Swarms, Convoys, Moving Clusters and Group Pattern depending on the choice of the user. Figure 4.2: Map of patterns The map displays several patterns (Figure 4.2), each pattern is represented by a line. Each line is a representation of various clusters of retweets over time. Each path is designed taking into account the position of all the users that constitute the cluster. For each timestamp represented by a point RetweetPatterns 31 on the map, the average of all the user’s position was performed in order to obtain an average position to be able to represent the various paths on the map. By clicking on the line that represents a pattern we can see the various retweets constituting the pattern. Each point on that line represents a timestamp for the Get Move algorithm. For example in Figure 4.3 we have a cluster represented by 3 paths of retweet. This cluster tells us that there are 6 timestamps that may or may not be consecutive since this is a closed swarm pattern. Clicking on a point we can view the users who retweet and when they do it (Figure 4.4). Figure 4.3: Display of retweet paths after clicking on a cluster line Figure 4.4: Display of retweets details and user profile picture after clicking on a marker. RetweetPatterns 32 The second part of the tool displays the content and the social dimensions (Figure 4.5). The content dimension that is represented by a word cloud with the most relevant words of the set of retweets found. However for the social dimension we can view the different patterns. The patterns are represented with the same colors used on the map, but the improvement is that you can quickly view how many paths of retweets are present in each pattern. For example for the pattern located in Brazil in red we can say with this graph that the red path is composed by 3 retweets (Figure 4.5). Each node in the graph represents a user, which represent a point on the map. It is also possible to visualize the social relationship of each user. There are two types of links between two nodes. Links with a normal thickness only indicates that we only have a retweet in common, however more thickness indicates that the two nodes or user have a retweet in common and they are friends or followers. Otherwise it is possible to show the name of the user dragging the mouse on top of the node. Figure 4.5: Word Cloud and Social Graph Finally the temporal dimension is presented by a timeline with all retweets extracted from the algorithm (Figure 4.6). The retweets are presented in chronological order. Furthermore the timeline gives the user the possibility to interact with the person that post the retweet or with who made the initial tweet simply pressing its name, the tools present the selected user’s Twitter timeline (Figure 4.8). On the other hand if a given retweet contains a link to a youtube page, or a website, is possible to view the video or website thumbnails, respectively (Figure 4.6 and 4.7). Clicking in the website thumbnails the user will be redirect to the web page. RetweetPatterns 33 Figure 4.6: Retweets timeline with youtube link Figure 4.7: Retweets timeline with website link RetweetPatterns 34 Figure 4.8: Twitter Timeline. 4.3 System Architecture In this section we present the general architecture used to RetweetPatterns (figure 4.9) in order to present in a general way how the whole process was developed. The system was designed to accommodate the data mining process part from the visualization tool, in order to be applicable to other data. The architecture is divided into several parts. We first have TwitterEcho that allows us to extract and store retweets necessary for our analysis. These data are collected and processed using the R tool, such as all the data mining process. In order to help in that process two applications were implemented in Java, the first one extract the twitter friends and followers of each user. The second applications extract the profile picture of each user. Each java application returns a csv file. The R tool was used for all the data mining process, and that require a long process, which was divided into various script with results store in RDS files to facilitate and verify the implementation. The data mining process generate JSON files that contains the results needed for the web page. Finally the web page was developed using HTML, CSS and javascript for reading and presenting the results of the JSON files. RetweetPatterns 35 Figure 4.9: System architecture diagram 4.4 Data analysis In this section we will look at two case studies in order to analyze and discuss the results for each one and to verify that the implemented process returns conclusive results regarding the process developed. The two case studies refer to two different datasets. The first one contain a set of selected data from twitter, in order to create clusters manually and the respective matrix of cluster needed to the Get Move algorithm. Otherwise the second case study concern to a set of retweets extracted at the time of the protests in Brazil. 4.4.1 RetweetPatterns for artificial retweets 4.4.1.1 Data preparation After the implementation of the Data Mining process we decided to test it with artificial data in order to verify that implementation of the algorithm generate correct results and also to be used as illustration of the system and the types of patterns that it can be used to identify. To test the algorithm we generated a set of clusters manually and consequently the matrix of cluster (example in table 3.1). So we started to create 4 different clusters (appendix B). The first contains retweets concerning The reaction of Nilton, a Portuguese comedian, to the Pepsi ads on Cristiano Ronaldo. The tree other one are retweets from 3 famous newspapers le Monde, BBC and Globo about Nelson Mandela death. RetweetPatterns 36 After creating these clusters it was necessary to allocate them to different timestamps in order to define the patterns to be identified by the algorithm. The allocation of clusters to different timestamps is given in table 4.1. The value 1 in this table indicates that a given cluster is present in a given timestamp. Thereafter for each timestamp we defined a user and all data required such as the date and time of when the retweet was post, the latitude, the longitude and the user profile picture in order to make the process as realistic as possible. To facilitate the process we use real profile picture and real users. Timestamp Cluster T1 T2 T3 T4 T5 T6 T7 T8 T9 T10 T11 Cluster 1 1 1 1 1 0 1 1 1 1 0 0 Cluster 2 1 1 1 1 1 0 1 1 1 1 1 Cluster 3 1 1 1 0 1 1 0 0 0 0 0 Cluster 4 1 1 1 0 1 1 1 0 0 0 0 Table 4.1: Matrix of cluster defined for the artificial data 4.4.1.2 Results Illustration The patterns generated are presented in the table 4.2. These patterns should be obtained by running Get Move with following parameters: = 2 which means that each pattern has to have at least two retweets. On the other hand 2 were the minimum number of timestamps defined to form any pattern (mint = 2) as minc that need at least 2 convoys to form a group pattern. and minwei were set to the value 0.6. The results are shown in table 4.2 as output of the algorithm. For cluster 1 with respect to Niltoncomedy's retweet are located in Portugal. We found that for the pattern closed swarm we have 8 timestamps represented by 8 point on the map (figure 4.10). Likewise we have for the Convoy and Moving Cluster patterns two patterns that are visible in Figure 4.11. Both are expected to have 4 timestamps each one represented on the map by two lines with four points. For the Group Pattern we obtained the expected two patterns which are those presented in table 4.2 i.e. with 2 convoys compounds each with 4 timestamps (figure 4.12). We can observe that the results obtained are the results that were initially planned. We verified with the tool that all the expected results were obtained. RetweetPatterns 37 Pattern Cluster Closed Swarm Convoy Moving Cluster Group Pattern Cluster 1 ({rt1, rt2, rt3} , {t1,t2,t3,t4,t6,t7, t8,t9}) ({rt1, rt2, rt3}, {t1,t2,t3,t4}) and ({rt1, rt2, rt3}, {t6,t7,t8,t9}) ({rt1, rt2, rt3}, {t1,t2,t3,t4}) and ({rt1, rt2, rt3}, {t6,t7,t8,t9}) ({rt1, rt2, rt3}, {{t1,t2,t3,t4} , {t6,t7,t8,t9}}) Cluster 2 ({rt1, rt2, rt3, rt4, rt5}, {t1,t2,t3,t4,t5,t7,t8,t9,t 10,t11}) ({rt1, rt2, rt3, rt4, rt5}, {t1,t2,t3,t4,t5}) and ({rt1, rt2, rt3,rt4, rt5},{t7,t8,t9, t10,t11}) ({rt1, rt2, rt3, rt4, rt5}, {t1,t2,t3,t4,t5}) and ({rt1, rt2, rt3, rt4, rt5}, {t7,t8,t9,t10,t11 }) ({rt1, rt2, rt3, rt4, rt5}, {{t1,t2,t3,t4,t5}, {t7,t8,t9,t10,t11 }}) Cluster 3 ({rt1, rt2, rt3, rt4, rt5}, {t1,t2,t3,t5,t6}) ({rt1, rt2, rt3, rt4, rt5}, {t1,t2,t3}) and ({rt1, rt2, rt3, rt4, rt5}, {t5,t6}) ({rt1, rt2, rt3, rt4, rt5}, {t1,t2,t3}) and ({rt1, rt2, rt3, rt4, rt5}, {t5,t6}) ({rt1, rt2, rt3, rt4, rt5}, {{t1,t2,t3}, {t5,t6}}) Cluster 4 ({rt1, rt2, rt3, rt4, rt5}, {t1,t2,t3,t5,t6,t7}) ({rt1, rt2, rt3, rt4, rt5}, {t1,t2,t3}) and ({rt1, rt2, rt3, rt4, rt5}, {t5,t6,t7}) ({rt1, rt2, rt3, rt4, rt5}, {t1,t2,t3}) and ({rt1, rt2, rt3, rt4, rt5}, {t5,t6,t7}) ({rt1, rt2, rt3, rt4, rt5}, {{t1,t2,t3}, {t5,t6,t7}}) Table 4.2: Expected results for the artificial data RetweetPatterns 38 Figure 4.10: Closed Swarm result for artificial data Figure 4.11: Convoy and Moving Cluster result for artificial data RetweetPatterns 39 Figure 4.12: Group Pattern result for artificial data 4.4.2 RetweetPatterns with retweets extracted during the Protests in Brasil 4.4.2.1 Data preparation This project aims to find retweet patterns on geo-referrenced data retrieved by TwitterEcho. The data sample provided dates between June 2013 and July 2013 and consists of a total of 17083 tweets extracted from Twitter during the period of protests in Brasil. Figure 4.13 presents the data distributed in the temporal dimension. In the Figure 4.13 we can see that the distribution of retweet is decreasing over time. However on July 11, we have an increasing number of tweets, this increase is explained by the fact that it was a day of demonstrations and general strikes in Brazil. Figure 4.13: Retweet count distribution over time. RetweetPatterns 46 47 Chapter 5 Conclusions In this chapter we will present a summary of the theoretical and practical decisions made, discuss limitations to both the data mining process used and the visualization tool and finalize with a set of tasks to be implement in the future. 5.1 Summary The goals of this dissertation was to extract spatio-temporal patterns of retweets in various dimensions and create a visual platform to better represent and analyse the information retrieved. The purpose of using different dimensions was to enable their combination and to validate if the results obtained would successfully return interesting patterns. To accomplish such goals, a data mining process was developed with different stages: data preparation, dissimilarity matrices computation, matrices normalization and combination, clustering and lastly, applying the Get Move algorithm. A difference distance function was chosen for each dimension according to the clustering process developed for TweeProfiles tool (Haversine, Time Interval, TFIDF plus cosine similarity and geodesic) and the dissimilarity matrices computed. A min-max normalization function was applied to all matrices before combining them. These matrices were clustered using DBSCAN and patterns were extracted with Get Move algorithm. The results were then exported to the visualization tool to be presented. The visualization tool use visual patterns associated with all dimensions. Namely, a map, a timeline, a social graph and a word cloud were chosen from various JavaScript libraries to create interactive widgets. These widgets allowed the simultaneous representation of information in different dimensions and to interact with them in order to enable a deeper exploration of the results presented. Finally we could say that all the objectives established for this project were achieved. Next, we will discuss some decisions we made and suggest some alternatives. 5.2 Discussion On the data mining process built, there are some aspects that can be discussed such as:  Get Move algorithm parameters. The parameters chosen for the Get Move algorithm were used and tested in other experiments in another context and with other types of data [HPPT12a]. For this reason we decided to keep the same parameters to be those with more certainty to present conclusive results. On the other hand, on the visualization tool we also process some debatable issues. However these have a more technological perspective:  Database. Instead of a database, JSON files were used to store the data mined. This was a necessity due to the JavaScript libraries that were used. These libraries must consume JSON data Conclusions 48 files to present the information correctly. An alternative was to store these JSON files in a MongoDB database and provide accessibility through a RESTful web service. The reason for not implementing a web service at this time is that the system response time could possibly be affected by the greater number of requests and this would degrade the visualization tool response time. Therefore, the decision was taken to store locally the JSON files for the website and leave the eventual creation of the service for future work.  Visualization widgets. The visualization widgets chosen for the visualization tool were chosen by being fairly simple to use and to allow the user to view and understand the results quite easily. 5.3 Future Work Although we feel that the dissertation goals were completely met, there are some aspects that can be perfected. It is our belief that a project of this magnitude can always be better, whether by changing the complexity of the data mining process or by extending the functionalities implemented in the visualization tool. A list of some of the improvable aspects follows:  Visualization widgets. Many additions could be made to the visualization tool. For instance, we could add more interactivity to the map. For example, by clicking in a given path, all the other paths could disappear in order to enable an individual analysis of each path. The user could then use the tool from another perspective. • Evaluation. A evaluation is the next great step for this project. On one hand to validate the chosen approach and on the other hand to tune the parameters required for clustering and for the algorithm Get Move. 49 Appendix A BIRCH pseudo-code Algorithm 5 BIRCH 1: procedure BIRCH(data_set) 2: Load data into memory by building a CF-Tree 3: (Optional) Condense into desirable range by building a smaller CF tree 4: Global Clustering 5: (Optional) Cluster refining 6: return cluster; 7: end procedure Apppendix A 50 OPTICS pseudo-code Algorithm 6 OPTICS 1: procedure EXPANDCLUSTERORDER(SetOfObjects,Object,ε,MinPts,OrderedFile) 2: neighbors := SetOfObjects.neighbors(Object, ε ); 3: Object.Processed := TRUE; 4: Object.reachability_distance := UNDEFINED; 5: Object.setCoreDistance(neighbors, ε , MinPts); 6: if( Object.core_distance UNDEFINED) { 7: OrderedSeeds.update(neighbors, Object); 8: while( NOT OrderSeeds.empty()) { 9: currentObject := OrderSeeds.next(); 10: neighbors := SetOfObjects.neighbors(currentObject, ε); 11: currentObject.processed := TRUE; 12: currentObject.setCoreDistance(neighbors, ε, MinPts); 13: OrderedFile.write(currentObject); 14: if(currentObject.core_distance UNDEFINED) 15: OrderSeeds.update(neighbors, currentObject);}} 16: end procedure 17: procedure ORDERSEEDS::UPDATE(neighbors,CenterObject) 18: c_dist := CenterObject.core_distance; 19: forall Object FROM neighbors { 20: if (NOT Object.processed ) { 21: new_r_dist := max(c_dist,CenterObject.dist(Object)); 22: if (Object.reachability_distance = UNDEFINED { 23: Object.reachability_distance := new_dist; 24: insert(Object, new_r_dist);} 25: else {if ( new_r_dist < Object.reachability_distance) { 36: Object.reachability_distance := new_r_dist; 37: decrease(Object, new_r_dist);}}}} 38: end procedure Apppendix A 51 Chameleon pseudo-code Algorithm 7 Chameleon 1: procedure CHAMELEON(dataset) 2: Construct a sparse graph recurring to a k-nearest-neighbour approach 3: Apply graph partition algorithm to obtain smaller clusters 4: Merge partition using a agglomerative hierarchical clustering algorithm 5: return cluster; 6: end procedure Apppendix A 52 STING pseudo-code Algorithm 8 STING 1: procedure STING(layered_hierarchical_structure) 2: Determine a layer to begin with; 3: For each cell of this layer, we calculate the confidence interval (or estimated range) of probability that this cell is relevant to the query; 4: From the interval calculated above, we label the cell as relevant or not relevant; 5: If this layer is the bottom layer, goto Step (7); otherwise goto Step (6); 6: We go down the hierarchy structure by one level. Go to Step (3) for those cells that form r relevant cells of the higher level layer. 7: If the specification of the query is met, goto Step (9): otherwise goto Step (8); 8: Retrieve those data fall into the relevant cells and do further processing. Return the result that meet the requirement of the query. Goto Step (10); 9: Find the regions of relevant cells. return those regions that meet the requirements of the query. Goto Step (10); 10: Stop. 11: end procedure Apppendix A 53 54 Appendix B  Cluster 1: 1. RT @Niltoncomedy: Telefonei para a PEPSI internacional. Só porque sim! Ronaldo is the best! Há dúvidas! 2. RT @Niltoncomedy: Mandei mail para a PEPSI internacional. Viva o Ronaldo! Viva a Coca- Cola 3. RT @Niltoncomedy: Hoje fui visitar a PEPSI em Lx. Colei um poster do Ronaldo  Cluster 2: 1. RT @lemondefr :Nelson #Mandela est mort à l'âge de 95 ans à son domicile de Johannesburg http://www.lemonde.fr/afrique/article/2013/12/05/nelson-mandela-est- mort_3427343_3212.html 2. RT @lemondefr : Mort de Nelson #Mandela : comment la vie d'un homme a changé le destin de l'Afrique du Sud http://www.lemonde.fr/tiny/3437940/ 3. RT @lemondefr : Nelson Mandela est mort http://lemde.fr/1gIhEQb 4. RT @lemondefr : Nelson Mandela, une vie au cinéma http://lemde.fr/ITrV0L 5. RT @lemondefr : Mort de Nelson #Mandela : nos archives pour comprendre la vie en Afrique du Sud sous l'apartheid, de 1948 à 1994 http://lemde.fr/ILVC3d RT RT @lemondefr :Le monde rend hommage à Nelson Mandela, « un héros de notre temps » http://lemde.fr/IST0Rx  Cluster 3: 1. RT @BBCWorld :Nelson #Mandela: The death of a rare saintly politician http://bbc.in/1d0voDa pic.twitter.com/lc9EA4umSm 2. RT @BBCWorld : In pictures: Mourning South Africa's much-loved Nelson #Mandela http://bbc.in/1bkC1NS pic.twitter.com/GtD7DWgjef 3. RT @BBCWorld : Nelson Mandela was a great hero to us in Chile and in South America - writer and activist Ariel Dorfman 4. RT @BBCWorld : Video: A look back on the extraordinary life of anti-apartheid hero Nelson #Mandela http://bbc.in/1dTDnHg pic.twitter.com/yqSkPuYUz8Video: A look back on the extraordinary life of anti-apartheid hero Nelson #Mandela http://bbc.in/1dTDnHg pic.twitter.com/yqSkPuYUz8 5. RT @BBCWorld : Nelson Mandela 1918-2013 - Full special report with archive video, photos and features http://www.bbc.co.uk/news/world-africa-23043987 … pic.twitter.com/YR2HlxtGhr  Cluster 4: 1. RT @g1 : Funeral de Nelson Mandela deve durar 12 dias, diz jornal http://glo.bo/1iFy00h 2. RT @g1 : Apaixonado por mulheres, Mandela teve três casamentos http://glo.bo/1iFLSro 3. RT @g1 : Sul-africanos temem que país fique vulnerável a tensões sem Mandela http://glo.bo/1iFQPk9 4. RT @g1 : Entenda o apartheid, regime racista contra o qual Mandela lutou Appendix B 55 http://glo.bo/1iFYb77 5. RT @g1 : Mandela criou uma nova África do Sul, diz Papa Francisco http://glo.bo/1iFXYAM