Abstract
Background
Infectious diseases are a leading threat to public health. Accurate and timely monitoring of disease risk and progress can reduce their impact. Mentioning a disease in social networks is correlated with physician visits by patients, and can be used to estimate disease activity. Dengue is the fastest growing mosquito-borne viral disease, with an estimated annual incidence of 390 million infections, of which 96 million manifest clinically. Dengue burden is likely to increase in the future owing to trends toward increased urbanization, scarce water supplies and, possibly, environmental change. The epidemiological dynamic of Dengue is complex and difficult to predict, partly due to costly and slow surveillance systems.
Methodology / Principal findings
In this study, we aimed to quantitatively assess the usefulness of data acquired by Twitter for the early detection and monitoring of Dengue epidemics, both at country and city level at a weekly basis. Here, we evaluated and demonstrated the potential of tweets modeling for Dengue estimation and forecast, in comparison with other available web-based data, Google Trends and Wikipedia access logs. Also, we studied the factors that might influence the goodness-of-fit of the model. We built a simple model based on tweets that was able to ‘nowcast’, i.e. estimate disease numbers in the same week, but also ‘forecast’ disease in future weeks. At the country level, tweets are strongly associated with Dengue cases, and can estimate present and future Dengue cases until 8 weeks in advance. At city level, tweets are also useful for estimating Dengue activity. Our model can be applied successfully to small and less developed cities, suggesting a robust construction, even though it may be influenced by the incidence of the disease, the activity of Twitter locally, and social factors, including human development index and internet access.
Conclusions
Tweets association with Dengue cases is valuable to assist traditional Dengue surveillance at real-time and low-cost. Tweets are able to successfully nowcast, i.e. estimate Dengue in the present week, but also forecast, i.e. predict Dengue at until 8 weeks in the future, both at country and city level with high estimation capacity.
Author summary
Dengue is a fast-growing mosquito-borne viral disease, with an estimated annual incidence of 390 million infections, of which 96 million manifest clinically. Dengue burden is likely to increase in the future. Mentioning a disease in social networks is correlated with physician visits by patients, and can be used to estimate disease activity. Traditional, biologically-focused monitoring techniques, based on laboratory diagnostics, are accurate but costly and slow. Alternative approaches for surveillance aim to capture health-seeking behavior at earlier stages of disease progression, specially capturing the asymptomatic and mild clinic manifestation population who do not seek medical care formally. Twitter data have potential application for Dengue surveillance, improving the estimation and prediction of the disease, in space and time, being a valuable and low-cost addition to assist traditional surveillance. We show that tweets are strongly associated with Dengue cases. Tweets are a useful tool for estimating and forecasting Dengue cases until 8 weeks in the future, both at country and city level, even in less developed areas.
Introduction
Infectious diseases are a leading threat to public health, economic stability, and other key social structures [1]. Efforts to mitigate these impacts depend on accurate and timely monitoring to measure the risk and incidence of the disease [2,3,4]. Early detection of disease activity and rapid responses can reduce the impact of diseases [5]. The interdisciplinary field of computational social science aims to quantify real-world social phenomena using large datasets known as ‘big data’, based on data from social networks, such as Twitter and Facebook, to describe behavioral patterns in novel contexts [6,7]. The relative frequency of mentioning a disease in certain social networks, as in Twitter and others, is highly correlated with patients visits to doctors, making it possible to accurately estimate disease activity in each region of a country, with a small reporting lag [3,5]. Also, web search query data from Google and Wikipedia are capable of tracking disease activity and are available in near real-time [2,8].
Twitter is a unique social media channel, since users inform and discuss, through their short 140-character messages or ‘tweets’, about the most diverse topics, including health conditions [3,9,10]. This free social networking service has more than 190 million users registered worldwide and processes about 55 million tweets per day, with the possibility of sentiment analysis and location selection [3,9,10,11]. According to the US Bureau (2014), 45% of the Brazilian households have access to internet and 48% of the population are users of social media products, with an average of 3 hours per day spent in this activity. In Brazil, the main social media of preference is Facebook (94%), followed by Google Plus (75%), Twitter (56%) and LinkedIn (54%) [12]. Important to notice that Twitter usage (86%), as of other social media products, is mostly via mobile phone, which in Brazil has 134% of coverage, meaning an average of 1.34 cell phone subscriptions per person [12].
Dengue is an important public health burden, likely to increase in the future due to increased urbanization, scarce water supplies and environmental change [13]. Dengue is ubiquitous throughout the tropics and a fast spreading viral mosquito-borne disease [14], with an incidence increase of 30 times during the last 50 years [15]. The World Health Organization (WHO) estimates 50 to 100 million new infections per year in 100 different countries, with half the world’s population, or 3.5 billion people at risk [15], but more recent studies estimate the total incidence to be 390 million Dengue infections per year, of which 96 million manifest clinically [14]. Currently, there is no specific antiviral treatment to reduce severe illness or an effective vaccine to induce strong protection from infection [16]. The epidemiology of Dengue in Brazil is characterized by increasing geographical spread, as well as the total incidence of reported cases [17]. The epidemiological dynamics of Dengue disease is complex, and difficult to predict, partly due to the weaknesses of passive surveillance systems [13,17]. The majority of infections are clinically non-specific, consequently, Dengue disease is often underdiagnosed [13], but these patients are also infectious to mosquitoes and contribute for the transmission of the disease [18].
Bureaucracy and lack of resources have interfered with timely detection and reporting of Dengue cases in many endemic countries, including Brazil, where reporting delay is estimated to be of 3 to 4 weeks [3, 19]. Traditional, laboratory and clinically based diagnostic techniques are accurate but costly and slow. Alternative approaches to surveillance aim to capture health-seeking behavior at earlier stages of disease progression, specially capturing those with mild clinic manifestation population who do not seek medical care formally [2,6]. Some studies indicate that digital media reports reflect national epidemiological trends, acting as proxy for surveillance to provide early warning and situation awareness of emerging infectious diseases and Dengue [4,20]. While traditional Dengue surveillance data suffer from substantial delay, web-based data can fill in the gap providing a near real-time source of information [8,21,22]. Previous studies have shown that Twitter is a real-time source of information on Dengue symptoms activity in a population, and shows strong correlation with the number of notified cases [3, 23]. Some advocate that Twitter-based surveillance efforts may provide an important and cost-effective supplement to traditional disease-surveillance systems [10,11]. Besides Twitter, web search query data, such as Google Trends, were also found to be capable of tracking Dengue activity. Proper combination of these two sources of information may provide timely information to public health officials and contribute to real-time predictive models [8, 23]
In this study, we aimed at investigating if tweets with personal indication of Dengue content could be integrated with clinical Dengue data to produce an accurate model for the early detection and monitoring of Dengue epidemics at country and city level. For comparison, we also report other available web-based data, Google Trends and Wikipedia. Also, we studied the factors that might influence the goodness-of-fit of the proposed model. We concluded that a simple model using tweets is able to successfully nowcast, i.e. estimate Dengue in the present week, and forecast, i.e. predict Dengue until 8 weeks in the future, both at country and city level with good estimation capacity. Our model can be applied successfully to smaller and less developed cities, even though it may be influenced by the incidence of the disease, the activity of Twitter locally, and social factors, including human development index and internet access.
Methods
Data sources
Official Dengue case data
Reported Dengue cases were obtained from the Brazilian Ministry of Health, at the SINAN-net (Sistema de Informação de Agravos de Notificação), available from: http://portalweb04.saude.gov.br/sinan_net/default.asp. The majority of cases were ascertained using clinical-epidemiological criteria. We considered the date of symptoms onset as the date of the disease to construct the weekly time series of Dengue incidence, which was calculated counting suspected and confirmed cases, excluding discarded cases, aggregated by city and week, between September, 2012 and October, 2016. Data aggregation per week followed the epidemiological week definition, where week one of every year is the first week with 4 days or more. If the first week has 3 days or less it is accounted as the last week of the previous year. Each year has 52 or 53 weeks.The Dengue transmission season in Brazil occurs primarily between the months of November and April, hence to consider a full disease transmission cycle, we defined the epidemiological year as the period having November as month 1, December as month 2, and so on. We also transformed the standard weeks 1 to 52 (or 53) per year, in weeks per epidemiological year (eyear), starting in the first week of November.
Tweets
The Observatorio da Dengue Lab (ODL, available at: www.observatorio.inweb.org.br/Dengue/) has a web-service that monitors the twitting activity associated with Dengue in Brazil. The method consists in collecting all tweets containing one of the key words: “Dengue”, “aedes” and “aegypti”, then, a machine learning algorithm was developed to identify and select only those suggestive of a personal experience with Dengue (i.e. being infected, knowing someone with Dengue, and others). This is an automatic classifier, trained based on previous classifications performed by human specialists, as described in [3,9]. Other categories, besides personal experience, are: parody, opinion, information and marketing campaigns. The dataset contains: the total number of tweets with Dengue content captured per unit of time and space; the geographic information associated with the Twitter user; the time when the tweet was posted; and the content, according to the aforementioned classification. Tweets are allocated to the city they were most likely posted from. This is preferentially done by using the location provided by the device’s gps (geographic position system) and stored by Twitter at the moment the message was posted. If the device’s gps was disabled, the most likely location is drawn from the address informed by the user during his registration at Twitter. The total number of messages and unique users since 2012, when the application was started, is listed in Table 1. The data refer to the total number of tweets with Dengue content before classification into personal experience. In Table 1, we can observe that 2014 has the smallest number of users and messages, probably associated with a reduced number of Dengue cases (59% less than 2013) [24]. In this study, we analyzed the Twitter activity of a set of 283 cities in Brazil, encompassing cities monitored by the Observatorio, with an average of at least 1 tweet posted (Dengue with all contents) per day during three following weeks.
Table 1. General description of Dengue activity for Twitter dataset in Brazil (Kind et al, 2016).
Data | 2012 | 2013 | 2014 | 2015 | 2016 | Total |
---|---|---|---|---|---|---|
Twitter messages with Dengue content (n) | 303,102 | 285,823 | 177,093 | 417,882 | 475,461 | 1,659,361 |
Unique users posting Dengue tweets (n) | 147,447 | 128,260 | 816,44 | 145,435 | 150,911 | 653,697 |
% of georefered messages | 63 | 72 | 74 | 74 | 74 | 69 |
Cities | 2,826 | 2,991 | 2,598 | 3,131 | 3,168 | 4,597 |
Google trends
In this study, the main source of media data is the Twitter, due to its greater expressiveness (that is, users are authors of their messages). Still, other sources of digital data have been advocated as sensitive indicators of Dengue activity, among them, Google Trends. Google search queries containing the word “Dengue” were obtained for Brazil from 2012 to 2016 and aggregated per week. Data are available at country and state level. Here we considered only country level data. At Google Trends, online anonymized logs submitted since 2004 is computed as a relative measure of the online search queries submitted in that country on that week. The measure represents the relative interest for this topic in relation to the highest peak of interest for this same topic over the period analyzed. Our data request was carried out in December, 18th, 2016, comprising the complete dataset for Brazil since January 2004. The data are freely available at the Google Trends website (https://www.google.com/trends/explore#q=dengue). No information about the identity of any user was retained, including IP address, once the country of origin was determined (http://www.google.com/privacy/privacy-policy.html).
Wikipedia article access logs
For comparison, we further considered the time series of digital activity related to Dengue provided by visits to Wikipedia. Access logs for all Wikipedia articles were obtained from the web interface http://stats.grok.se, where these logs are available with language and time period selection. Data is available per language and have no direct reference to country or region. These data encompass a variety of activities, including article views, article visits and page views. Our data request was performed with the single keyword “Dengue” at December, 18th, 2016, but data are available only until December, 2015. We computed the daily and weekly number of searches for the word “Dengue” with language selection as “Portuguese” or the web interface wikipedia.com/br. Data was then aggregated per week according to epidemiological week.
Sociodemographic data
In order to analyze factors that might influence the Dengue estimation capacity of the tweets models, we evaluated a variety of sociodemographic indices. From the 2010 census (Brazilian Institute for Geography and Statistics) [25], we obtained the following indices: population, per capita GDP (gross domestic product), mean human development index (IDHM), income human development index (IDHM-Income), education human development index (IDHM-Education), and longevity human development index (IDHM-Longevity). We also evaluated the percentage of houses with internet access, and with personal computer, as available elsewhere [26].
Statistical analyses
Levels of analysis
We analyzed the data at city level (283 Brazilian cities with population over 40,000 inhabitants and Twitter activity) and at country level (by summing all Dengue cases and Dengue-related tweets for the country).
Correlation between Dengue and web-based data at country level
Evidence of association between Dengue cases and web-based data from Twitter, Google Trends, and Wikipedia access logs were investigated at national level by plotting their time series and assessing their linear regression.
Model fitting
Only Twitter data with Dengue content were selected for further exploratory analysis and model fitting at city and country-level, since Google Trends and Wikipedia are not available at city resolution [2,5,6,8,22]. For this purpose, tweets were considered the explanatory variable and Dengue cases the response variable. Preliminary analyses indicated a non-linear association between tweets and Dengue. To model the association between tweets and Dengue, we used a generalized additive model (GAM) of the form:
where log(μt) is the logarithm of the number of Dengue cases in week t (t = 1,…, 209), estimated based on the smooth spline of tweets, ƒ1(tweetst), which indicates the number of tweets with Dengue content in that same week t; ƒ2(weekt) is the smooth spline of the epidemiological week (week = 1,…, 53); and eyear is a factor for each epidemiological year (eyear = 2012,…, 2015); β0 is the intercept, and κ is the dispersion parameter.
A negative binomial model was necessary to account for the over-dispersion of the response variable (Dengue case counts per week). This model was compared to simpler versions (without the nonlinear terms) and more complicated versions (i.e. models with interaction terms between week and year, and autocorrelation terms (AR-1)) (S1 Fig). Goodness-of-fit was evaluated using the Akaike Information Criterion (AIC) [27], as well as diagnostic residual plots and by plotting the observed versus predicted values. The same modeling procedure was repeated for each of the 283 cities included in the study, but the model could successfully fit an estimate in 199 of them. In most cases, the above-mentioned model was the most adequate.
To evaluate model estimation and goodness-of-fit, we considered their deviance (Explained deviance = 1 –(residual deviance/null deviance)), adjusted correlation index (r2), and also the mean percentage relative error, calculated as the mean relative difference between predicted Dengue cases and observed cases. All analyses were performed in R version 3.2.3 (2015/12/10, Vienna, Austria), using the packages: ggplot2 [28]; lattice [29]; scales [30]; mgcv [31]; and ggmap [32].
Out-of-sample validation analyses
For the model validation, the datasets were divided into training and validation sets. The training set, used for model fitting, included the first 170 weeks of the dataset, while the validation sets included the remaining 39 weeks’ time series.
Forecast analyses
In order to evaluate if tweets are useful for Dengue forecasting, we fitted the following model with a sequence of delays:
where the number of Dengue cases in week t are predicted based on the number of tweets from x weeks before Dengue cases occurrence. We tested this model with different time lags, with x varying from 1 to 8 weeks and report the deviance explained index, AIC value and the mean relative error for each time lag.
Results
Tweets and other web-based data are associated with Dengue cases at country level
We compared the time series of web-based data indicating Dengue activity with real observed Dengue cases in Brazil country level (Fig 1), between September, 2012 and October, 2016. Dengue cases occurred continuously with a high weekly variation, with a minimum of 694 cases per week. The highest incidence of Dengue was observed in the months of March and April of each year, reaching 106,558 cases per week (Fig 1). Tweets, Google Trends (GT) and Wikipedia access logs showed strong and positive association with the observed Dengue cases (Fig 1A). Tweets showed high variation, with an average of 1,213 tweets per week, ranging from 125 to 6,984 (Fig 1B). Tweets presented a high positive association with Dengue cases (r = 0.87, p<0.001), especially in 2013 and 2014 (Fig 1A and 1B). In the last trimester of 2015 (October to December), there was increased tweet activity not associated with Dengue.
The relative GT index was 17.51 on average, varying from 4 to 100 (Fig 1C). GT showed the stronger linear association with Dengue cases (r = 0.92, p<0.001), compared to tweets (Fig 1A). Wikipedia logs presented the smallest linear association (r = 0.71, p<0,01) with Dengue cases, but could also be considered high (Fig 1A). The values started at 517, and achieved 35,250 logs per week, with mean value of 6,481 (Fig 1D). Unfortunately, Wikipedia data was only available until December, 2015. There is important Wikipedia activity during non-epidemic periods not associated with real Dengue cases.
Tweets are a useful tool for estimating Dengue occurrence at country level
Tweets with Dengue content were used to estimate weekly Dengue cases occurrence at country level, in Brazil (Fig 2, Table 2). Our selected model (Table 2) has tweets as covariate, as well as a temporal structure to account for the seasonality and annual cyclic characteristics of this disease. We can observe that the model with tweets plus a temporal structure presented a better Dengue estimation capacity than a model with either variables alone (Table 2, S2 Fig). We compared the selected tweets model with models including also “Dengue cases” as covariate. Three weeks is the usual time period for data from Dengue cases to become available [19], therefore we decided to include Dengue with three weeks lag (t-3) as explanatory variable for Dengue from week t. The latter model presented the best fit to observed data, with high explained deviance, low AIC, and reduced mean relative error (Table 2, S2 Fig). Otherwise, here the model with tweets and temporal structure was selected for further analyses, because it has the estimate capacity very similar to the model with Dengue as covariate, but is easy to apply and is also useful at city level (Table 2).
Table 2. Tweets are a useful tool for estimating Dengue activity at country level.
Explanatory Variables | Model (Dengue ~ Negative Binomial (μt, k)) |
AIC | Deviance Explained | Mean relative error * |
---|---|---|---|---|
Tweets + temporal structure + Dengue cases (three weeks lag) |
log(μt) = ƒ1(Tweetst) + Dent-3 + ƒ2(weekt) + eyeart + β0 | 3805.44 | 93.8 | 0.344 |
Tweets + temporal structure
(SELECTED MODEL) |
log(μt) = ƒ1(Tweetst) + ƒ2(weekt) + eyeart + β0 | 3805.52 | 93.7 | 0.345 |
Temporal structure + Dengue cases (three weeks lag) |
log(μt) = ƒ(weekt) + eyeart + Dent-3 + β0 | 3917.47 | 88.5 | 0.442 |
Temporal structure only | log(μt) = ƒ(weekt) + eyeart + β0 | 3948.18 | 86.6 | 0.510 |
Tweets + Dengue cases (three weeks lag) |
log(μt) = ƒ(Tweetst) + Dent-3 + β0 | 4027.69 | 79.3 | 0.694 |
Tweets only | log(μt) = ƒ(Tweetst) + β0 | 4103.40 | 69.7 | 0.954 |
Dengue cases (three weeks lag) only | log(μt) = ƒ(Den t-3) + β0 | 4113.61 | 67.8 | 0.707 |
* mean absolute relative difference between predicted Dengue cases and observed cases
Our selected model indicates that tweets are a positive predictor for Dengue cases (Fig 2A), with an almost linear effect until 2,000 tweets, that stabilizes above this value. As expected, the relationship between Dengue and tweets is influenced by the week of the year (Fig 2B), since disease transmission is highly seasonal (Fig 1). Estimated Dengue cases showed a good fit to the observed data (Fig 2C), presenting a mean relative error of 0.345, and 93.7% of deviance explained by the model (Table 2). In order to validate the estimation capacity of our model, we applied out-of-sample analysis with tweets data not previously used by our model for adjustment. Our model could successfully estimate Dengue cases in this scenario, with the capacity for explaining the deviance of Dengue of 93,2% (Fig 2C).
Dengue forecasting
Dengue forecasting, i.e. the prediction of the number of Dengue cases occurring in future weeks (up to 8 weeks), was also investigated (Fig 3, Table 3). The quality of the forecast varies with the week of prediction, as we can observe by the deviance explained index and the mean relative error of the prediction in relation to observed cases (Table 3). We also showed that tweets are performing better in estimating Dengue cases in the present week, “nowcast”, since people may tweet about the disease during its occurrence. Forecasting was possible with an increasing error with the increase in forecast weeks, but good approximation to real disease occurrence, as indicated by fitted and observed lines in the time series for four different epidemic years (Fig 3, Table 3).
Table 3. Forecast analysis.
MODEL | Model (Dengue ~ Negative Binomial (μt, k)) |
FORECAST (week in advance) |
AIC | Deviance Explained | R-sq. (adj) | Mean relative error * |
---|---|---|---|---|---|---|
Twt | log(μt) = ƒ1(Tweetst) + ƒ2(weekt) + eyeart + β0 | 0 | 3805.52 | 93.7 | 0.94 | 0.34 |
Twt-1 | log(μt) = ƒ1(Tweetst-1) + ƒ2(weekt) + eyeart + β0 | 1 | 3825.92 | 93.0 | 0.94 | 0.36 |
Twt-2 | log(μt) = ƒ1(Tweetst-2) + ƒ2(weekt) + eyeart + β0 | 2 | 3849.33 | 92.2 | 0.92 | 0.40 |
Twt-3 | log(μt) = ƒ1(Tweetst-3) + ƒ2(weekt) + eyeart + β0 | 3 | 3868.49 | 91.4 | 0.90 | 0.44 |
Twt-4 | log(μt) = ƒ1(Tweetst-4) + ƒ2(weekt) + eyeart + β0 | 4 | 3877.07 | 91.0 | 0.89 | 0.45 |
Twt-5 | log(μt) = ƒ1(Tweetst-5) + ƒ2(weekt) + eyeart + β0 | 5 | 3881.43 | 90.8 | 0.88 | 0.40 |
Twt-6 | log(μt) = ƒ1(Tweetst-6) + ƒ2(weekt) + eyeart + β0 | 6 | 3896.20 | 90.1 | 0.89 | 0.40 |
Twt-7 | log(μt) = ƒ1(Tweetst-7) + ƒ2(weekt) + eyeart + β0 | 7 | 3918.60 | 88.9 | 0.88 | 0.44 |
Twt-8 | log(μt) = ƒ1(Tweetst-8) + ƒ2(weekt) + eyeart + β0 | 8 | 3931.54 | 88.2 | 0.87 | 0.46 |
* mean absolute relative difference between predicted Dengue cases and observed cases
Tweets signal can be obtained at city level
Tweets were obtained from 283 different cities distributed all over Brazil, including all 5 regions and 26 states (Fig 4, S1 Table). We observe that cities with higher Twitter activity are mostly clustered at the southeastern region of the country (Fig 4A). These cities overlap with the region with the highest incidence of Dengue cases (Fig 4B).
Tweets are a useful tool for estimating and forecasting Dengue activity at city level
We also analyzed the contribution of tweets to estimate Dengue at city level. For the majority of cities, we observed a high positive linear association between Dengue cases and tweets, with 67% of them with association above 50% (S1 Table). Our tweets model (Table 2) could successfully fit and estimate Dengue cases in 199 cities of a total of 283, since some cities had too few data for model estimate convergence. Model goodness-of-fit was high for most cities, with Dengue deviance explained above 60% in 88% of cities analyzed (Table 4, S1 Table). Cities with high Dengue estimation quality of our model are distributed around the country but mostly concentrated at the southeastern region (Fig 5).
Table 4. Dengue estimation capacity by tweets.
Goodness of fit of the Dengue estimation model of tweets at city level | ||
---|---|---|
Deviance Explained | Frequency | |
>90% | 7 | 3.5% |
80–90% | 57 | 28.5% |
70–80% | 73 | 37% |
60–70% | 38 | 19% |
50–60% | 10 | 5% |
<50% | 14 | 7% |
Total | 199 | 100% |
We selected cities in different regions of the country to further investigate and validate the model application for Dengue estimation at city level (Fig 6, S1 Table). We selected the following cities: Belo Horizonte (Fig 6A), Fortaleza (Fig 6B), Manaus (Fig 6C), Porto Alegre (Fig 6D), Rio de Janeiro (Fig 6E), and São Paulo (Fig 6F). In all cities, tweets successfully estimated Dengue cases, as shown by the approximation of observed Dengue cases and its predicted values by the model, and by the high values of deviance explained (ranging from 76.1% to 90.3%) (Fig 6, S1 Table). The model was also able to fit Dengue cases in cities with lower linear correlation indexes, as Fortaleza and Sao Paulo (Fig 6B and 6F, S1 Table). Important to notice that here we evaluated the Dengue estimation capacity of the same tweets model applied to country level, but each city would have improved results with models considering specific characteristics of each individual city.
Dengue estimation capacity of tweets at city level is influenced by social factors
Tweets with Dengue content and their association with Dengue cases may be influenced by different factors. We divided the 283 cities into two groups, according to the quality of their Dengue estimation by the model: high quality group included cities (161) with model explained deviance equal or higher than 60%, and low quality group cities (122) with model explained deviance smaller than 60%, or zero (model did not converge). Cities with high quality of Dengue estimation based on the tweets model have a higher population, more Dengue cases and tweets activity (Table 5). They also had higher human development indices: mean (IDHM), education (IDHME) and income (IDHMI). Only longevity index (IDML) was not different between groups (Table 5). As expected, cities with good fit by the model were those with high coverage of houses with access to a personal computer and internet (Table 5).
Table 5. Goodness-of-fit of the tweets model is influenced by disease incidence, access to computers, internet and social factors.
Goodness-of-fit of the tweet model | |||||
---|---|---|---|---|---|
Variable Description | High | Low | p value | ||
Mean | Std Error | Mean | Std Error | ||
Population (n) | 375,440.00 | 48,784.00 | 31,3882.00 | 10,1736.00 | *** |
Gross Domestic Product per capita | 34,599.00 | 1,793.00 | 28,611.00 | 1,844.00 | ** |
IDHM Mean (2010) | 0.77 | 0.003 | 0.74 | 0.004 | *** |
IDHM Income (2010) | 0.,75 | 0.004 | 0.73 | 0.005 | * |
IDHM Longevity (2010) | 0.85 | 0.002 | 0.84 | 0.002 | |
IDHM Education (2010) | 0.70 | 0.004 | 0.67 | 0.005 | *** |
Houses with personal computer (%) | 52.46 | 0.79 | 47.10 | 1.13 | ** |
Houses with internet (%) | 42.96 | 0.80 | 37.48 | 1.01 | *** |
Dengue cases, 2012 (n) | 333.90 | 54.31 | 125.20 | 28.71 | ** |
Dengue cases, 2013 (n) | 6,419.00 | 1,093.00 | 1,553.00 | 255.10 | ** |
Dengue cases, 2014 (n) | 2,465.00 | 391.50 | 1412.00 | 511.00 | ** |
Dengue cases, 2015 (n) | 6369.00 | 868.40 | 2667.00 | 730.10 | ** |
Dengue cases, 2016 (n) | 4,293.00 | 1,084.00 | 1,506.00 | 305.50 | ** |
Total Dengue cases (n) | 19,880.00 | 2,851.00 | 7,164.00 | 1,669.00 | ** |
Total Dengue Incidence (per 100,000 inhabitants) | 6,604.00 | 400.80 | 3,976.00 | 355.90 | *** |
Tweets, 2012 (n) | 38.65 | 9.22 | 23.08 | 8.84 | *** |
Tweets, 2013 (n) | 378.90 | 94.69 | 134.20 | 56.58 | *** |
Tweets, 2014 (n) | 136.30 | 27.17 | 94.70 | 48.06 | *** |
Tweets, 2015 (n) | 316.10 | 60.03 | 218.20 | 129.70 | *** |
Tweets, 2016 (n) | 288.50 | 72.19 | 147.10 | 74.02 | *** |
Total Tweets (n) | 1,159.00 | 256.30 | 586.80 | 301.00 | *** |
Twitter activity per 100,000 inhabitants | 270.00 | 13.14 | 137.00 | 7.01 | *** |
Linear Correlation (Dengue~Tweets) | 0.67 | 0.01 | 0.43 | 0.02 | *** |
Weeks with tweets (%) | 55.60 | 1.72 | 35.89 | 2.13 | *** |
Weeks with Dengue (%) | 85.82 | 1.11 | 67.23 | 2.57 | *** |
Mean relative error of model estimate | 1.43 | 0.06 | 0.98 | 0.11 | *** |
* p value <0.01
** p value <0.001
***p value <0.0001
Otherwise, considering a linear regression association between the variables analyzed here (Table 5) and the Dengue estimate explained deviance by the model, we can observe that Dengue estimation capacity of tweets is strongly associated with Dengue incidence, but are not or weakly associated with population and development indexes (Fig 7).
Discussion
In this study, we analyzed the potential of Twitter data for estimating and forecasting Dengue cases. Here we show that tweets are strongly associated with Dengue cases, and contribute not only for estimating, but also for forecasting Dengue activity up to 8 weeks in the future.
Tweets, Google Trends and Wikipedia access logs with Dengue content show a strong and positive association with officially registered Dengue cases in Brazil. However, during the last trimester of 2015, there was an important increase of tweets activity that was not associated with Dengue cases. This increase may be associated with an increase in Dengue tweeting activity that may have been caused by media news and the onset of the Zika epidemic in the country. The Zika virus is transmitted by the same vector as Dengue, the mosquito Aedes aegypti, and the disease's first symptoms are very similar, but serious complications include Guillain-Barré syndrome, and congenital infections can occur which may lead to microcephaly and maculopathy [33]. Zika, which was widely spread in the Pacific islands, was introduced in Brazil in 2014–2015 and caused a widespread epidemic in Latin America [33,34]. Google Trends, similar to Twitter, increased at the last trimester of 2015, indicating probably higher public concern with both diseases.
Twitter is a real-time source of information on Dengue symptoms activity in a population, and was shown to have strong correlation with the number of notified cases [21], however, that association may be stronger during the increasing and decreasing phases, than during the disease peaks. Twitter, as a social network, may indicate the need for the Dengue patient to notify the disease to colleagues, therefore being a good estimator of disease occurrence. Otherwise, the other web-based data available for Dengue and evaluated here, GT and Wikipedia, are based on search queries, which would indicate a potential interest or curiosity over the disease, being more subjected to marketing campaigns and confusion with other diseases.
Models built on the fraction of Google search volume for Dengue-related queries were previously shown to adequately estimate true Dengue activity in different seasons [8, 22]. Here we confirm the high association between Google Trends and Dengue disease, also useful for disease surveillance and prevention. Wikipedia data suffer from a variety of instabilities that need to be understood and compensated for [2]. Language as a location proxy can only be used in some cases, since it is impossible to be used at finer scale, or even to indicate exactly the country, an important limitation. Overall, our feeling is that all three sources of data are probably useful to estimate Dengue at country-wide level. However, amongst these three web-based data, tweets with personal experience provide a strong association with real disease with potential to be an important explanatory variable for Dengue estimation models both in country and city level.
The epidemiology of Dengue fever is highly seasonal, with multi-annual fluctuations, caused by the irregular circulation of its four serotypes, and the interplay between environmental drivers [35,36]. We built a simple model based on tweets together with a temporal structure that could successfully be used to estimate Dengue activity at country level, with 93.7% of explained deviance. The capacity of tweets to nowcast, i.e. predict the present events as they occur, may be already enough to provide a time advantage to understanding Dengue situation moment. Twitter was also useful in similar way for tracking and forecasting behavior in the influenza-like illness, as a measure of public interest or concern [11]. Dengue forecast was also possible using the model with tweets as covariate, with up to 8 weeks or 2 months of forecasting window. This result suggests that Twitter data can be used in the development of a proactive surveillance program and help health managers to better directed their resources for disease prevention.
One advantage of Twitter is that it can be geolocated at city level, which is a useful spatial resolution for surveillance. This feature strongly differentiates it from other available web-based data, such as Google Trends and Wikipedia [3,9]. While GT are available per state [22], the Wikipedia logs can only be aggregated per language [2]. Cities with higher tweets activity are those with higher Dengue incidence. Both Dengue occurrence and Twitter use are usually associated with cities with higher concentration of population or urbanization [3,14]. Similarly, GT and Dengue cases correlate better in states with higher Dengue incidence [22].
The Twitter data has also some limitations to be considered. Not everyone who submits a tweet with Dengue content is actually ill, but just interested or curious about it. Good surveillance will depend on a sufficient volume of interest to generate signals and compensate noise [8]. Therefore, a main challenge remains at areas with smaller population of Twitter users [4]. The tweets model performed better in areas with high Dengue incidence, but its performance was only weakly associated with population size and development index. This may suggest a robust model that can successfully be applied to smaller and less developed cities, which would improve the application effectiveness of the model as a surveillance tool. One advantage of including tweets into forecast models is to improve real-time estimations of Dengue incidence, overcoming difficulties of traditional Dengue surveillance systems that rely solely on case report data. Twitter captures information from individuals, especially at earlier stages of illness, who may search health information on the internet before or even instead of making medical visits, and publish this knowledge to seek help and comfort from friends. Tweets-based models may actually be even more useful in endemic regions of the world where the traditional surveillance system is too weak and slow to react to disease notification.
Here we show that the high Dengue estimation capacity of tweets model is influenced by human development indices and internet access. Important to observe that mean, education and income development indices which is associated with more houses with access to a personal computer and internet are also associated with tweets incidence. Otherwise, longevity development index is less associated with tweets incidence and activity, suggesting that young and adults may be the majority of users of this data. The accuracy of Google Trends was not found to be strongly influenced by socio-economic factors, particularly because it relies on internet searches, which may be robust enough to capture population-level disease dynamics [22]. Despite these social limitations, it is clear that tweets-based surveillance provides adequate citywide and countrywide Dengue estimates. Social factors, however, may limit the value of using tweets to examine epidemics within a city. At this stage, freely available tweet data are not sufficient to provide accurate determination of space within a specific city.
The capacity of tweets to estimate Dengue cases represents a valuable complement to assist traditional Dengue surveillance. A novel data source, like Twitter, could complement traditional surveillance at low-cost, since it is passive, free, and requires minimal resources to run [3,11]. These data can help reduce some of the many gaps that exist in Dengue surveillance methods, such as low sensitivity and accuracy, and timeliness [13,14,19]. Improving Dengue surveillance in a cost-effective way remains a major obstacle. In Brazil, the underreporting is about 50%, but can reach values as high as 90%, and the reporting delay is estimated to be approximately 3 to 4 weeks [19]. The main added benefit in monitoring social media behavior through tweets is the potential for early warning. Detecting and confirming results of prevention and control measures is possible at the interface between computer science, epidemiology, and medicine [4]. Our study therefore demonstrates that tweets are a web-based data that strongly associate with Dengue cases and have the potential to successfully estimate Dengue cases. Tweets are an easy to use, cost-effectiveness, useful and robust tool for estimating Dengue cases, both at country and city level, and for Dengue forecasting until 8 weeks in the future.
Supporting information
Acknowledgments
We are grateful to the support of the members of the National Program of Dengue Control (PNCD) of the Brazilian Ministry of Health.
Data Availability
All relevant data are within the paper and its Supporting Information files.
Funding Statement
This study was supported by the Instituto Nacional de Ciencia e Tecnologia (INCT) em Dengue (CNPq/FAPEMIG 573876/2008-08; http://labs.icb.ufmg.br/inctemdengue) and the Pan American Health Organization (PAHO) (BR/LOA/1200073.001; http://www.paho.org/bra). The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.
References
- 1.Lopez AD, Mathers CD, Ezzati M, Jamison DT, Murray CJ. Global and regional burden of disease and risk factors, 2001: Systematic analysis of population health data. The Lancet. 2006; 367: 1747–1757. [DOI] [PubMed] [Google Scholar]
- 2.Generous N, Fairchild G, Deshpande A, Del Valle SY, Priedhorsky R. Global Disease Monitoring and Forecasting with Wikipedia. PLoS Comput Biol. 2014; 10(11): e1003892 doi: 10.1371/journal.pcbi.1003892 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 3.Gomide J, Veloso A, Meira Jr W, Almeida V, Benevenuto F, Ferraz F et al. Dengue surveillance based on a computational model of spatio-temporal locality of Twitter. WebSci '11; 2011 June 14–17; Koblenz, Germany. 2011.
- 4.Olson SH, Benedum CM, Mekaru SR, Preston ND, Mazet JAK, Joly DO et al. Drivers of emerging infectious disease events as a framework for digital detection. Em Inf Dis. 2015; 21(8):1285–1292. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 5.Ginsberg J, Mohebbi MH, Patel RS, Brammer L, Smolinski MS, Brilliant L. Detecting influenza epidemics using search engine query data. Nature. 2009: 457:1012–1015. doi: 10.1038/nature07634 [DOI] [PubMed] [Google Scholar]
- 6.Preis T, Moat HS. Adaptive nowcasting of influenza outbreaks using Google searches. R Soc Open Sci. 2014: 1:140095 doi: 10.1098/rsos.140095 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 7.Bentley RA, O’Brien MJ, Brock WA. Mapping collective behavior in the big-data era. Behavioral and Brain Sciences. 2014; 37: 63–119. doi: 10.1017/S0140525X13000289 [DOI] [PubMed] [Google Scholar]
- 8.Chan EH, Sahai V, Conrad C, Brownstein JS. Using web search query data to monitor Dengue epidemics: a new model for neglected tropical disease surveillance. PLoS Negl Trop Dis. 2011. 5(5): e1206 doi: 10.1371/journal.pntd.0001206 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 9.Gomide, JS. Mineração de redes sociais para detecção e previsão de evento reais. M.Sc Thesis, Universidade Federal de Minas Gerais. Belo Horizonte. 2012; 1–85. Available from: https://www.dcc.ufmg.br/pos/cursos/defesas/1491M.PDF
- 10.Miller Greg. Social scientists wade into the tweet stream. Science. 2011; 333: 1814–1815. doi: 10.1126/science.333.6051.1814 [DOI] [PubMed] [Google Scholar]
- 11.Signorini A, Segre AM, Polgreen PM. The use of Twitter to track levels of disease activity and public concern in the U.S. during the influenza A H1N1 Pandemic. PLoS ONE. 2011; 6(5): e19467 doi: 10.1371/journal.pone.0019467 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 12.Social, Digital & Mobile in 2014, Special Report [Internet]. We are social PTE LTD. 2014. Available from: https://wearesocial.com/sg/special-reports/social-digital-mobile-2014
- 13.Guzman MG, Gubler DJ, Izquierdo A, Martinez E and Halstead SB. Dengue infection. Nature Reviews. 2016; 2:1–25. [DOI] [PubMed] [Google Scholar]
- 14.Bhatt S, Gething PW, Brady OJ, Messina JP, Farlow AW, Moyes CL et al. The global distribution and burden of Dengue. Nature. 2013; 0:1–5. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 15.WHO, World Health Organization. Global Strategy for Dengue Prevention and Control 2012–2020. 2012.
- 16.Endy TP. Human immune responses to Dengue virus infection: lessons learned from prospective cohort studies. Frontiers in Immunology. 2014; 5(183): 1–6. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 17.Teixeira MG, Siqueira JB Jr, Ferreira GLC, Bricks L, Joint G. Epidemiological Trends of Dengue Disease in Brazil (2000–2010): Systematic literature search and analysis. PLoS Negl Trop Dis. 2014; 7(12): e2520. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 18.Duong V, Lambrechts L, Paul RE, Lye S, Lay RS, Long KC et al. Asymptomatic humans transmit Dengue virus to mosquitoes. PNAS. 2015; 112(47): 14688–14693. doi: 10.1073/pnas.1508114112 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 19.Coelho GE, Leal PL, Cerroni MdP, Simplicio ACR, Siqueira JB Jr. Sensitivity of the Dengue surveillance system in Brazil for detecting hospitalized cases. PLoS Negl Trop Dis. 2016; 10(5): e0004705 doi: 10.1371/journal.pntd.0004705 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 20.Lowe R, Coelho CAS, Barcellos C, Carvalho MS, Cata RDC, Coelho GE et al. Evaluating probabilistic Dengue risk forecasts from a prototype early warning system for Brazil. eLife. 2016; 5: e11285 doi: 10.7554/eLife.11285 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 21.Wilder-Smith A, Cohn E, Lloyd DC, Tozan Y, Brownstein JS. Internet-based media coverage on Dengue in Sri Lanka between 2007 and 2015. Glob Health Action. 2016; 9: 31620. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 22.Gluskin RT, Johansson MA, Santillana M, Brownstein JS. Evaluation of Internet-Based Dengue Query Data: Google Dengue Trends. PLoS Negl Trop Dis. 2012; 8(2): e2713. [DOI] [PMC free article] [PubMed] [Google Scholar]
- 23.Codeco CT, Cruz OG, Riback TI, Degener CM, Gomes MF, Villela D, Bastos L, Camargo S, Saraceni V, Lemos MCF, Coelho FC. InfoDengue: a nowcasting system for the surveillance of Dengue fever transmission. BioRxiv. 2016. (preprint). [Google Scholar]
- 24.Kind BC, Jorge VBR, Brito DEF, Souza RCSNP, Meira W. Caracterizando a dinâmica de evolução temporal de mensagens em mídias sociais. Symposium on Knowledge Discovery, Mining and Learning, KDMILE. 2016.
- 25.Census IBGE (Instituto Brasileiro de Geografia e Estatistica) [Internet]. 2010. [Cited 30 November 2016]. Available from: www.ibge.gov.br.
- 26.Neri M. Mapa da Inclusao Digital. M.Sc Thesis, Fundacao Getulio Vargas. 2012. Available from: http://www.cps.fgv.br/cps/bd/mid2012/MID_sumario.pdf
- 27.Akaike H. A new look at the statistical model identification. IEEE Trans Autom Control. 1974; 19: 716–23. [Google Scholar]
- 28.Wickham Hadley. Ggplot2: elegant graphics for data analysis. Springer-Verlag, New York: 2009. [Google Scholar]
- 29.Sarkar, Deepayan. Lattice: multivariate data visualization with R Springer, New York: 2008. [Google Scholar]
- 30.Wickham, Hadley. Scales: scale functions for visualization. 2016.
- 31.Wood SN. Fast stable restricted maximum likelihood and marginal likelihood estimation of semiparametric generalized linear models. J Royal Stat Soc. 2011; 73(1): 3–36. [Google Scholar]
- 32.Kahle D and Wickham H. Ggmap: Spatial Visualization with ggplot2. The R Journal. 2013; 5(1): 144–161. [Google Scholar]
- 33.Wong SS-Y, Poon RWS, Wong SCY. Zika virus infection—the next wave after Dengue? Journal of the Formosan Medical Association. 2016; 1–17. [DOI] [PubMed] [Google Scholar]
- 34.Faria NR, Azevedo RSS, Kraemer MUG, Souza R, Cunha MS, Hill, SC. Zika virus in the Americas: early epidemiological and genetic findings. Science. 2016; 352(6283): 345–349. doi: 10.1126/science.aaf5036 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 35.Bosch QA, Singh BK, Hassan MRA, Chadee DD, Michael E. The role of serotype interactions and seasonality in Dengue model selection and control: insights from a pattern matching approach. PLoS Negl Trop Dis. 2016; 10(5): e0004680 doi: 10.1371/journal.pntd.0004680 [DOI] [PMC free article] [PubMed] [Google Scholar]
- 36.Reiter P. Climate change and mosquito-borne disease. Environ Health Persp. 2001; 109 (1). [DOI] [PMC free article] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.
Supplementary Materials
Data Availability Statement
All relevant data are within the paper and its Supporting Information files.