Improving trend analysis using social network features
© The Author(s) 2017
Received: 26 July 2016
Accepted: 19 May 2017
Published: 7 June 2017
In recent years, large volumes of data have been massively studied by researchers and organizations. In this context, trend analysis is one of the most important areas. Typically, good prediction results are hard to obtain because of unknown variables that could explain the behaviors of the subject of the problem. This paper goes beyond standard trend identification methods that consider only historical behavior of the objects by including the structure of the information sources, i.e., social network metrics, as an additional dimension to model and predict trends over time. Results from a set of experiments indicate that including such metrics has improved the prediction accuracy. Our experiments considered the publication titles, as recorded in the Brazilian Lattes database, from all the Ph.Ds. in Computer Science registered in the Brazilian Lattes platform for the periods analyzed in order to evaluate the proposed trend prediction approach.
Data-driven activities are getting more and more usual in many types of organizations and data analysis is becoming the main focus of business. In this context, trend analysis is a major application of data analysis. Organizations may try to identify trends to create strategies and plan actions, e.g., an e-commerce company may try to identify trends in order to better focus their supply chain activities.
There are several approaches used for prediction and most of them are based on the temporal behavior of the studied subject. Usually, the temporal behavior is modeled as a time series, where time explains the behavior of the relevant variable. However, when these subjects are produced or consumed by people (journalistic texts or new technology products, for example), another factor can be taken into account: the social structure of the generators or consumers, i.e., individuals directly related to the object under analysis. A social network in this context can be modeled around these individuals. Nodes can represent producers (or consumers) and edges can represent relationships between them. Taking the content of blog posts as an example, a social network can be built based on the connections among bloggers, i.e., the hyperlinks that connect the websites.
The analysis and quantification of the behaviors and relationships of the people in the social structure can be performed using social network analysis. We can calculate social metrics to understand influences, centralities, and communities to predict the information diffusion in the network [10, 15, 17, 18, 24, 25]. As we understand the social network characteristics given the calculated metrics, we become able to identify which individuals will be reached by the information spread. It enables us to say whether it is going to take a long or a short time. For example, an information being propagated by a very influential node within a specific time interval can reach more nodes in the network than if it were propagated by a non-influential network node. The social structure plays an important role in the temporal behavior of objects [8, 24]. This work differs from previous work in that besides using the temporal behavior of the studied object, it incorporates the social structure of the individuals related to this object into the prediction models.
In this paper, we present an approach that combines the prediction models based on the temporal behavior of the studied object with social network metrics. This approach can be applied to improve the accuracy of trend predictions that are based only on the temporal behavior and where it is possible to model a social network from the interaction among individuals related to the object. For the purpose of this article, we applied this approach to the academic co-authorship environment. Essentially, we used a corpus of titles of papers published in a certain period to predict what will be the major topics (represented as n-grams) in the future. This problem could be solved with standard trend analysis approaches that rely on predicting future frequencies from the observed ones, whereas in this work we consider the properties of the co-authorship network to enhance the predictions. In this case, the objects considered are the n-grams extracted from the paper titles and the individuals are the paper authors.
The approach was tested and validated using data from the publication titles of Computer Science Ph.D.s working in Brazil and then compared with approaches that consider only the temporal behavior of the analyzed object.
This paper is organized as follows. “Related work” section describes some basic concepts and related work. “Methodology” section details the methodology used. The results are described in “Experiments and results” section. Finally, conclusions are presented in “Conclusion” section.
Time series trend analysis
Usually time is a very important feature in prediction and classification problems. Once there is an understanding about the object temporal behavior it is possible to identify patterns and predict trends. A problem modeling in which time is considered as an explanatory variable is known as time series analysis .
Trend analysis can be applied to several topics, such as stock market , textual documents , and many others . The trend identification in textual documents, more specifically in a corpus formed by titles of scientific papers, is the application addressed in this paper. In the context of textual documents, frequency counts are usually used as the dependent variable in time series models .
Social network trend analysis
There are many ways to model and explore social networks and one of the research branches is trend analysis in social networks. How to measure the dynamism and impact of information flow? To answer this question, it is necessary to study the characteristics of the network and its connection structure, that is, how nodes and edges are distributed in the network. Information is produced and transmitted by individuals and their connection structure affects how information diffuses . A very important characteristic of the individuals in the network is their influence. Finding influential nodes in the network can help to explain how fast the information will spread and how many nodes it will reach. There are methods developed to identify influential nodes . Beyond the individual level, analysis of the size and density of groups in the network is very important to understand the dynamics of information diffusion. For this, it is necessary to identify these groups or communities, which is not a trivial task . Another challenge is to identify critical points in the network where the probability of information diffusion increases . Finally, social network information is being used in several ways to predict trends based on the network behavior .
Science and technology systems embrace several utilities related to scholars and knowledge can be discovered in a quantitative way . Research productivity, for example, can be measured by models that use citation indices and academic social network analysis . The application explored in this paper also uses data from a science and technology system aiming to identify research trends and topics.
Our work differs from others by combining time series and social network analysis. The proposed approach uses these two concepts so that trends are identified based on time and social characteristics of the individuals that generate information.
Brazil maintains a unique platform called Lattes Platform1. This is a database of information on science, technology, and innovation, including publications by individual researchers, and currently registers over 4.5 million curricula. In this work, all the information has been obtained from Lattes Platform.
For data gathering, curricula from all the Computer Science PhDs were selected for the periods analyzed (comprising 5642 curricula). The pre-processing consisted of the extraction and organization of the information using the methodology described by Digiampietri et al. [6, 7]. The pre-processing activities include the stop-words removal and coauthorship identification based on an entity resolution approach . From these curricula, 55,710 titles were identified from papers published between the years 1991 and 2012.
The variables considered to build the dataset are lattesId (researcher identification number), year (year of publication), title (title of publication), and publicationId (publication identification).
In this paper, a term is an n-gram extracted from the titles of the papers. In this step, the goal was to automate the data preparation. The first stage of term extraction was to split the titles into subsets of words or sequence of words without stop-words. The terms extracted consist of one or more consecutive words from the titles excluding words that were listed as stop-words. As an example, the title Social Network Analysis For Digital Media was split into the following terms: Social, Network, Analysis, Digital, Media, Social Network, Network Analysis, Digital Media, and Social Network Analysis. Terms such as Analysis Digital Media and Media Digital are not included because they are not formed by consecutive words from a title or because they include stop-words. In this example, we obtained unigrams, bigrams, and 3-grams, however, the process can obtain n-grams for all possible n.
f(C T) is the frequency of the candidate term CT, L F(N i) and R F(N i) indicate the frequency of the left and right word candidates, respectively. This equation is described in detail by Nakagawa et al. . In that same work, the authors conducted evaluations to demonstrate that it is possible to find meaningful terms.
In summary, in this step we automatically extract the terms (n-grams) and then filter the most meaningful ones to build our dataset. We observed that n-grams had more significance than the unigrams for the subjects discussed in the publications. Since our goal is to identify terms and research topics, unigrams could be very ambiguous. For example, the word Network can be ambiguous given that it can be related to Social Network, Neural Network, or even Business Network. Therefore, we selected the 1638 most important n-grams, this is the number of n-grams occur over all the period (1991–2012) considered in the experiments, as explained in “Experiments and results” section.
Time series analysis
As a result, we obtained the best prediction among the regression methods cited above for each term to be used for building the datasets for trend analysis. These results are taken as a basis for comparison with the proposed approach.
Social network analysis
The network modeled was built from the joint publications (co-authorship relationships) as recorded in the Lattes database. The social network was modeled as a graph composed of 5642 vertices (authors) and 14,647 edges (coauthorship relationships).
Metrics of the social network capture different characteristics that can be quantified. In this approach, some metrics have been selected to form the independent variable’s set. Selection was based on assumptions on the potential of each metric to explain the information spreading [14, 23]. For example, one of the assumptions is that a node in the giant component of a network is more capable of disseminating information through the network than a node which is not in this component. The metrics selected are giant composition, the shortest path to the most central node, degree centrality, eigenvector centrality, page rank centrality, betweenness centrality, closeness centrality, clustering coefficient, structural equivalence to the most central node and community average centrality [10, 15, 17, 18, 24, 25]. These metrics are described as follows.
Giant composition: number of nodes in the giant component; Shortest path to the most central node: smaller value among the shortest paths to the most central node; Degree centrality: average degree centrality of the nodes within the community; Eigenvector centrality: average eigenvector centrality of the nodes within the community; Page rank centrality: average page rank centrality of the nodes within the community; Betweenness centrality: average betweenness centrality of the nodes within the community; Closeness centrality: average closeness centrality of the nodes within the community; Clustering coefficient: average value of the clustering coefficient from the nodes within the community; Structural equivalence with the most central node: average value of the structural equivalence from the nodes within the community; Community average centrality: average centrality of all community nodes.
Eigenvector centrality and number of degrees of top ten central nodes
Top important nodes
Each selected metrics has been computed for all network nodes and each term has been related to one or more nodes (a term may have been employed by one or more authors). If a term is related to a single author, then, in this step, its metrics will have exactly the same values of its related node. However if a term is related to multiple nodes then the metrics must be aggregated. The aggregated metrics is computed as the sum of the metrics values of each author related to the term. The one exception is the metrics Shortest path to the most central node, for which the aggregated metrics is taken as the minimum value from all authors related to the term. For example, if author 1 has a Degree centrality of 10 and author 2 has a Degree centrality of 5 and both used a term A, the Degree centrality value of term A would be 15.
We also improved the approach with a so-called network community balance. Communities are characterized as groups of nodes with a high edge density . In a community, information propagates quickly and tends to become general knowledge. In trend analysis, this can lead to situations such as terms that are widespread in a particular community but not in the network as a whole. Thus, it is important to evaluate whether the importance of a term occurs only within a community or in the whole network. Thus, we decided to apply a community level aggregation to balance the node level aggregation in computing the metrics values of each term. To identify the communities, we used the R 2 implementation of the algorithm proposed by Clauset et. al. .
Therefore, for nodes that are within the same community, the aggregated metrics value is computed as the average value of the nodes; for nodes that are not in the same community it is computed as the sum of node metrics values. For example, let us assume that a term A is used only by two authors: author 1 and author 2. If author 1 and author 2 are in the same community, the metrics would be calculated as metrics average of the authors in this community who used term A. But if author 1 and author 2 are in different communities, the average metrics value would be computed for each community and these results would be finally summed.
In the end of this step, the first part of the feature vector is finished which row is a term and each column is a social network metric.
With the time series analysis and social network analysis performed, we are able to model the behavior of each term. At this moment, the time series model and the social network analysis are combined. Having the social network metrics and the time series prediction calculated, we modeled the problem as the term importance index being explained by the social characteristics and the “clue” about its future importance (TF-IDF predicted by time series prediction methods). The feature vector built in the previous step (as described in the “The metrics” section) is then enriched with the importance index (TF-IDF) predicted by the time series models. Thus, in this step, the dataset to be input into the proposed trend analysis is built.
Both social network analysis and time series analysis rely on the periods considered. Therefore, for each time interval of model training, the dataset will be different. For example, the dataset relative to the period between 2002 and 2005, built to predict 2006, is different from the dataset relative to the period between 2002 and 2006 built to predict 2007, that is, one year (2006) is included in the second case.
The dataset is subject to preprocessing methods such as normalization and feature selection and then supervised learning methods are applied to predict the importance index of the terms for certain periods. The methods considered in the experiments were Linear Regression, Artificial Neural Network (ANN), Support Vector Machine (SVM) and Rotation Forest (RF). In this context, trends are the terms with high predicted values of importance index.
Experiments and results
The main goals of the experiments are to evaluate the proposed approach and compare with results from standard time series prediction. Identifying which models, periods, and variables present a better performance is also within the scope. We split the experiments into two groups. In the first group the goal was to evaluate the best techniques, time period and set of variables while the second group of experiments was designed to evaluate longer prediction periods based on the best set of variables and techniques.
Time series and supervised learning methods best results (lowest RAE) for three periods (1991–2011, 2002–2011 and 2007–2011) having 2012 as the year of prediction
Time series regression
Time series supervised learning methods
Basic statistical metrics relative to the final dataset built for the first experiment (period 1991–2011)
Page rank centrality
Community average centrality
Time series prediction
It is clear that some features take values on a larger scale than others (e.g., Betweenness centrality). To correct these differences we applied normalization in the preprocessing step.
In this experiment, we varied the number of features selected. We generated datasets with the instances described by all attributes (features) and datasets with attributes selected by Relief and manual selection, which is an appropriate selection method if the analyst has knowledge about the problem domain. The most important criterion in selecting the features manually was their mutual correlation.
Furthermore, we varied the parameters for each prediction model algorithm generating 16 tests for ANN, 9 tests for SVM, and 15 tests for Rotation Forest. For ANN, we varied the parameters related to learning rate, momentum term, number of nodes in the hidden layer, and number of hidden layers. For SVM, we experimented several kernels (including Radial Basis Function kernel and Polynomial kernel) and different values for parameter C. In Rotation Forest, different tree based methods for the ensemble approach were tested, varying their specific parameters in each case.
Best results (lowest RAE) of all prediction methods for three periods and three different feature’s sets
Linear Reg. 91–11
Rot. Forest 91–11
Linear Reg. 02–11
Rot. Forest 02–11
Linear Reg. 07–11
Rot. Forest 07–11
As far as the techniques are concerned, the best performances, as shown in Table 4, were obtained with Rotation Forest. One observes that Rotation Forest achieved the best performances for short periods while SVM did better on longer periods, doing better than Rotation Forest in the 1991–2011 period.
When analyzing the periods, the period 2002–2011 presented the best results considering an average among all techniques, however, the best result was obtained in the 2007–2011 period (39.28%). The average RAE values for the best techniques are: 43.77% for 2002–2011; 51.57% for 2007–2011; and 69.68% for 1991–2011. There is an important difference between the two models at this point. While the time series model yielded better results on longer periods (Table 2), the proposed approach presented better results on shorter periods. This can be explained by a change in the network dynamics. Metrics derived from networks modeling longer periods can be misleading, as network properties are likely to change considerably along time.
Comparing the best results of the proposed approach with the time series model (Tables 2 and 4) one observes an error reduction of 45%, 70% and 86% for the 1991–2011, 2002–2011 and 2007–2011 periods, respectively. While comparing to the supervised methods applied to time series dataset (Tables 2 and 4) one observes an error increase of 21% for the 1991–2011 period and an error reduction of 22% for the 2002–2011 and 2005–2011 periods.
Sets of features for the model with the best results (lowest RAE)
Clustering coefficient and
Structural equivalence and
Time series prediction.
Time series prediction.
Results comparison for the 15 first trends of the time series prediction model in 2012
Time series regression
Time series supervised learning
The accuracy gain displayed in Table 6 is a sample of the trend analysis improvement when including social network features. The experimental results show that the error produced by the proposed approach corresponds, in average, to only 17% of the error produced by the time series regression model and 18% of the error produced by the time series supervised learning methods which do not consider social network features.
RAE for tests of short, medium, and long terms for the models trained in the period between 1991 and 2005
Approaches that consider only the historical behavior of the analyzed object have been widely employed for trend prediction. However, the contents generated by people are clearly influenced by their connections. How information spreads is an important factor that can be considered in prediction. Intending to fill this gap, we presented a new approach for trend analysis incorporating the social network information to a content-based trend analysis model. The proposed approach achieved better results than the standard time series-based models. In addition to simple prediction techniques, such as linear regression, we applied more robust techniques that resulted in even more accurate models. As we supposed, these findings cast light on the issue of trend prediction. Information content and the characteristics of their social structure can be combined to improve the explanation of the information temporal behavior.
This work explored a concept still little studied and, thus, some shortcomings remain to be addressed. The dynamics of the social network is one of them. We worked with a fixed time window to the social network modeling. However, slicing the time interval probably would improve the prediction models by capturing the transient characteristics over time in the social structures. Another improvement could be achieved by grouping the extracted terms by topics, which can be more relevant than analyzing each term alone.
In conclusion, we found out that looking at the social structure of data sources alongside the main analyzed data can help better understanding the information temporal behavior.
This work was partially funded by FAPESP, CAPES, and CNPq.
CCT developed, tested and validated the approach presented in this paper. LAD was Caio’s advisor and contributed in the specification of the approach and the design of the experiments. Both authors read and approved the final manuscript.
The authors declare that they have no competing interests.
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Open Access This article is distributed under the terms of the Creative Commons Attribution 4.0 International License (http://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons license, and indicate if changes were made.
- Abe H, Tsumoto S (2009) Evaluating a method to detect temporal trends of phrases in research documents In: 2009 8th IEEE International Conference on Cognitive Informatics, 378–383.. IEEE. doi:10.1109/ICSMC.2009.5345958.
- Altshuler Y, Pan W, Pentland AS (2012) Trends prediction using social diffusion models In: International Conference on Social Computing, Behavioral-Cultural Modeling, and Prediction, 97–104.. Springer, Berlin Heidelberg. doi:10.1007/978-3-642-29047-3_12.
- Bakshy E, Rosenn I, Marlow C, Adamic L (2012) The role of social networks in information diffusion In: Proceedings of the 21st international conference on World Wide Web, 519–528.. ACM. doi:10.1145/2187836.2187907.
- Cimenler O, Reeves Ka, Skvoretz J (2014) A regression analysis of researchers social network metrics on their citation performance in a college of engineering. J Informetrics 8(3): 667–682. doi:10.1016/j.joi.2014.06.004.
- Clauset A, Newman ME, Moore C (2004) Finding community structure in very large networks. Physical review E 70(6): 066 111.View ArticleGoogle Scholar
- Digiampietri LA, Alves CM, Trucolo CC, Oliveira RA (2014) Análise da rede dos doutores que atuam em computação no Brasil In: CSBC 2014 - BRASNAM, 33–44.Google Scholar
- Digiampietri LA, Mena-chalco JP, Melo POV, Malheiros AP, Meira DNO, Franco LF, Oliveira LB (2014) BraX-Ray: an x-ray of the Brazilian computer science graduate programs. Plos-ONE9(4): e94541.View ArticleGoogle Scholar
- Glanzel W, Schubert A (2004) Analysing scientific networks through coauthorship In: Handbook of quantitative science and technology research, 257–276.. Kluwer Academic Publishers. doi:10.1.1.86.4083.
- Hamilton JD (1994) Time series analysis, vol 2. Princeton university press, Princeton. ISBN: 9780691042893.Google Scholar
- Lemieux V, Ouimet M (2008) Análise Estrutural das Redes Sociais. Instituto Piaget.Google Scholar
- Moed HF, Glänzel W, Schmoch U (2004) Editors’ introduction In: Handbook of quantitative science and technology research, 1–15.. Springer Netherlands.Google Scholar
- Nakagawa H, Mori T (2002) A Simple but Powerful Automatic Term Extraction Method In: COLING-02 on COMPUTERM 2002: Second International Workshop on Computational Terminology - Volume 14, COMPUTERM ’02., 1–7.. Association for Computational Linguistics, Stroudsburg. doi:10.3115/1118771.1118778.
- Pan W, Aharony N, Pentland A (2011) Composite social network for predicting mobile apps installation In: AAAI. arXiv:1106.0359.Google Scholar
- Pandit S, Yang Y, Chawla NV (2012) Maximizing information spread through influence structures in social networks In: 2012 IEEE 12th International Conference on Data Mining Workshops, 258–265.. IEEE. doi:10.1109/ICDMW.2012.140.
- Poblacion D, Mugnaini R, Ramos L (2009) Redes sociais e colaborativas em informação científica, 1st ed. Angellara Editoras,Sao Paulo.Google Scholar
- Pourkazemi M, Keyvanpour M (2013) A survey on community detection methods based on the nature of social networks. Iccke 2013 5(1): 114–120. doi:10.1109/ICCKE.2013.6682855.View ArticleGoogle Scholar
- Prell C (2012) Social network analysis history, theory & methodology, Los Angeles London SAGE.Google Scholar
- Scott J (2009) Social network analysis: a handbook, 2nd ed. SAGE. doi:10.1109/ICCKE.2013.6682855.
- Singh S, Mishra N, Sharma S (2013) Survey of various techniques for determining influential users in social networks In: Emerging Trends in Computing, Communication and Nanotechnology (ICE-CCN), 2013 International Conference on, 398–403. doi:10.1109/ICE-CCN.2013.6528531.
- Teixeira LA, de Oliveira ALI (2009) Predicting stock trends through technical analysis and nearest neighbor classification In: 2009 IEEE International Conference on Systems, Man and Cybernetics, 3094–3099.. IEEE. doi:10.1109/ICSMC.2009.5345944.
- Trucolo CC, Digiampietri LA (2014) Trend Analysis of the Brazilian Scientific Production in Computer Science. FSMA 14: 2–9.Google Scholar
- Trucolo CC, Digiampietri LA (2014) Uma Revisão Sistematica acerca das Técnicas de Identificação e Análise de Tendênciaś In: X Simpósio Brasileiro de Sistemas de Informação (SBSI 2014), 639–650.. Londrina.Google Scholar
- Wang D, Wen Z, Tong H, Lin CY, Song C, Barabási AL (2011) Information spreading in context In: Proceedings of the 20th International Conference on World Wide Web, WWW ’11., 735–744.. ACM, New York. doi:10.1145/1963405.1963508 http://doi.acm.org/10.1145/1963405.1963508.
- Wasserman S, Faust K (2009) Social network analysis: methods and applications. 19th ed. Social network analysis: methods and applications.Google Scholar
- Wasserman S, Galaskiewicz J (1994) Advances in social network analysis research in the social and behavioral sciences. SAGE. doi:10.4135/9781452243528.