Open Access This article is
- freely available
Int. J. Environ. Res. Public Health 2019, 16(6), 975; https://doi.org/10.3390/ijerph16060975
Census Tract Food Tweets and Chronic Disease Outcomes in the U.S., 2015–2018
Department of Epidemiology and Biostatistics, University of Maryland School of Public Health, College Park, MD 20742, USA
Correspondence: [email protected]; Tel.: +1-301-405-6425
Received: 31 January 2019 / Accepted: 12 March 2019 / Published: 18 March 2019
There is a growing recognition of social media data as being useful for understanding local area patterns. In this study, we sought to utilize geotagged tweets—specifically, the frequency and type of food mentions—to understand the neighborhood food environment and the social modeling of food behavior. Additionally, we examined associations between aggregated food-related tweet characteristics and prevalent chronic health outcomes at the census tract level. We used a Twitter streaming application programming interface (API) to continuously collect ~1% random sample of public tweets in the United States. A total of 4,785,104 geotagged food tweets from 71,844 census tracts were collected from April 2015 to May 2018. We obtained census tract chronic disease outcomes from the CDC 500 Cities Project. We investigated associations between Twitter-derived food variables and chronic outcomes (obesity, diabetes and high blood pressure) using the median regression. Census tracts with higher average calories per tweet, less frequent healthy food mentions, and a higher percentage of food tweets about fast food had higher obesity and hypertension prevalence. Twitter-derived food variables were not predictive of diabetes prevalence. Food-related tweets can be leveraged to help characterize the neighborhood social and food environment, which in turn are linked with community levels of obesity and hypertension.
Keywords:Twitter; food environment; chronic disease
The food environment, including access to grocery stores and different types of restaurants, may shape an individual’s food choices as well as eating habits, which could influence chronic disease outcomes . Researchers have extensively studied the neighborhood food environment in relation to obesity. Food environment indicators, such as a short distance from supermarkets, more favorable retail food environments , and less access to fast food restaurants , have all shown to be associated with lower obesity rates . Similarly, the prevalence of diabetes and hypertension are affected by local food environments [5,6].
Social media, such as Twitter and Facebook, provides a massive amount of user-generated data. Public health researchers have used social media data to track the spread of communicable disease outbreaks. For example, Wakamiya et al. used Twitter data for influenza detection  and Signorini et al. leveraged Twitter data to track disease activities and public concerns . There is, however, increasing use of social media data for neighborhood environment characterization . Twitter data have been used to show the geographical variation in diet choices and nutrition, which furthers the understanding of food environments in different neighborhoods and identifies “food deserts” in certain regions . The information retrieved from Twitter is a reflection of the Twitter user’s health behavior, as well as their utilization of neighborhood resources .
Social learning theory  can be used to explain the reciprocal and dynamic interactions of the person, online Twitter environment, and diet choices. The theory posits that individuals have the ability to adopt healthy behaviors by observing the modeling of behaviors. Users would tweet about what they eat , which may encourage certain eating styles in their local social network. Social norms about healthy eating (i.e., socially accepted behaviors) can be communicated on Twitter and shape an individual’s food choices .
Most previous research that examined the relationship between neighborhood food environments and cardiometabolic outcomes utilized health surveys. However, neighborhood surveys can be costly and become quickly outdated. The food environment indicators that were previously used, such as distance from supermarkets, retail food environments , and access to fast food restaurants , do not capture individuals’ food choices and their interactions with the local food environment. Social media data offer a novel resource for neighborhood research. Dynamic and real-time Twitter data are directly reflective of user activity, which provide more in-depth information on individual health behaviors across the nation.
In this study, we sought to investigate the relationship between aggregated food-related tweet characteristics at the census tract level and the prevalence of certain cardiometabolic outcomes such as obesity, diabetes, and high blood pressure, utilizing geotagged Twitter data collected from 2015 to 2018. We obtained a prevalence of cardiometabolic outcomes at the census tract level from the CDC 500 Cities project , which collected small area estimates for chronic health risk factors, health outcomes and health services for the 500 largest cities in the U.S. Our study advances understanding of the relationship between the food environment and cardiometabolic outcomes at a small area level across the U.S., providing information for public health interventions.
2. Materials and Methods
We utilized the Twitter streaming application programming interface (API) to collect 1% of random tweets from April 2015 to May 2018. Only tweets with a pair of coordinates of where they were sent (geotagged) were collected. A total of 4,785,104 geotagged food tweets were obtained from 71,844 census tracts across the contiguous United States. Tweets related to job postings were excluded. The tweets were then filtered by a list of food keywords (n = 1430) created from the U.S. Department of Agriculture’s National Nutrient Database . Each food item in the list was linked to a measure of caloric density (calories per 100 g). Fruits, vegetables, nuts and lean protein were classified as healthy food items (340 keyword terms). Additionally, 154 keyword terms were used to capture the mention of fast food restaurants. We chose fast food restaurants as an indicator of worse food environment because previous research has found that people who tweeted about fast food had more fast food restaurants in their surroundings than green retailers . Living farther away from a fast food restaurant was found to be associated with lower body mass index (BMI) for children .
Only geotagged tweets related to food were retained to construct indicators of the neighborhood food environment. Each tweet was searched for food items in the food keyword list and was labeled “1” for healthy food if a healthy food item was found in the tweet. Similarly, a tweet was labeled “1” for fast food, if a fast food item was found. Caloric density was calculated by summing up the caloric density for all the food items mentioned in a single tweet. Detailed methods of Twitter data processing were described in a prior paper . By summarizing all the tweets within a given census tract level, we created the following census tract food environment variables: Average caloric density, the percentage of food tweets that mentioned a healthy food, and percentage of food tweets that mentioned fast food. The Twitter-derived food environment characteristics were then standardized to ease the interpretation of results. We have made our census tract level data publicly available at the following location: https://hashtaghealth.github.io/.
We obtained census tract level health outcomes, including the prevalence of obesity, diabetes, and hypertension, from the 500 Cities project from the Centers for Disease Control and Prevention (CDC). The 500 Cities project is a collaborative project launched by the Robert Wood Johnson Foundation, CDC Foundation and CDC, in 2015 . The project aims to provide small area estimates of chronic health outcomes including city level and census tract level estimates for the 500 largest cities across the U.S. The project included 497 of the largest cities and additionally added 3 cities in Vermont, West Virginia and Wyoming to guarantee the inclusion of all the states (including Alaska and Hawaii) in the U.S. . According to the U.S. Census 2010, these 500 cities represent 33.4% of the total population from approximately 28,000 census tracts .
Census tract level demographics were obtained from the American Community Survey (ACS) 2014 five year estimates and included the population density, percent 65 or older, percent male, percent black, percent Hispanic, urban or rural areas, percent relatives (besides spouse and children) living in households, percent unmarried cohabitating adults, household size, percent owner-occupied housing, and income inequality.
To ensure the construct validity of food environment characteristics, we excluded census tracts that had less than 10 tweets collected (n = 4820). A total of 23,324 census tracts were included after merging 500 Cities’ health outcomes to the Twitter-derived food environment for the contiguous United States. We used quantile regression to estimate associations between the Twitter-derived neighborhood characteristics and the conditional median prevalence of health outcomes, which is more robust to outliers. Each outcome (obesity, diabetes and hypertension) was modeled separately. The models controlled for census tract demographics. An adjusted linear regression was performed as a sensitivity analysis for each of the outcomes. We additionally performed a generalized linear model using generalized estimating equations (GEE) to assess temporal trends in average calories per tweet, by state. Moreover, to assess the impact of the Twitter-derived food environment on chronic outcomes in subgroups, we obtained county level sex-specific obesity rates from the CDC 2013 Behavioral Risk Factors and Surveillance System (BRFSS), a telephone survey on the health behaviors related to chronic diseases, injury, and preventable infectious diseases, for the non-institutionalized, adult U.S. population. Age-adjusted estimates for percent obese were generated from these data using a small area estimation technique [18,19]. Separate models were fit by sex to examine associations between the Twitter-derived food environment characteristics and sex-specific obesity rates. R was used for all the statistical analysis .
The percent of food tweets mentioning fast food was highest in Idaho (23.33%), Kentucky (21.57%), West Virginia (19.53%) and Michigan (18.94%) (Figure 1). The average caloric density was highest in West Virginia (270 calories per tweet) (Figure 2). The average caloric density was lowest in Montana (154 calories per tweet) and the fast food mentions for Montana (8.09%) was among the lowest. The percent of food tweets mentioning healthy food was the highest in Mississippi (20.19%), Oregon (19.57%) and Ohio (17.67%) (Figure 3). Oregon (6.80%) and Mississippi (10.47%) also had fewer fast food mentions. Detailed food environment characteristics by state can be found in Table S1.
A one standard deviation increase in caloric density was associated with a 0.19% increase in the prevalence of obesity and a 0.16% increase in the prevalence of hypertension (Table 1). We observed similar results for fast food mentions, where a one standard deviation increase was associated with a 0.15% increase in the prevalence of obesity and a 0.12% increase in the prevalence of hypertension. The percent healthy food was inversely associated with the prevalence of obesity and hypertension. A one standard deviation increase in percent healthy food was associated with a 0.30% decrease in the prevalence of obesity and a 0.13% decrease in the prevalence of hypertension. In sensitivity analyses, we fit adjusted linear regression models for each outcome separately (Table S2). Similar to the results from the median regression, average caloric density and fast food mentions were associated with a higher prevalence of obesity and hypertension. Healthy food was associated with a lower prevalence of obesity and hypertension. None of the Twitter-derived food environment characteristics were associated with the prevalence of diabetes.
In additional analyses, we examined temporal trends using GEE models. The average calories per food tweet increased 15.87 kcal each year (p < 0.001), the percent of fast food mentions increased 1.37% each year (p < 0.001), and the percent of healthy food mentions increased 0.59% (p < 0.001) each year. Figure 4 displays temporal trends for the average calories by state. The x-axis displays year (2015–2018) and the y-axis displays average calories. The majority of states had an upward trend for average calories between 2015 and 2018.
In analyses with sex-specific obesity rates (Table S3), a one standard deviation increase in calories was associated with a 0.32% increase in the prevalence of obesity in males and a 0.42% increase in the prevalence of obesity in females. Similarly, a one standard deviation increase in the percent fast food mentions was associated with a 0.13% increase in the prevalence of obesity in males and a 0.21% increase in the prevalence of obesity in females. Nonetheless, when we conducted a Chow test to assess the differences between the separate regression models, we found that there was no statistically significant difference between the coefficient estimates for the Twitter-derived variables in the male-specific obesity model versus those in the female-specific obesity model, suggesting a similar strength of associations between the Twitter food environment variables and the sex-specific obesity rates.
We found that Twitter-derived food environment characteristics are predictive of obesity and hypertension prevalence at the census tract level in the United States. A higher caloric density, higher percentage of fast food mentions, and lower percentage of healthy food mentions, among all food tweets in the neighborhood, were positively associated with a higher prevalence of obesity and hypertension. Twitter-derived food characteristics were not associated with diabetes.
Findings from our work point to a relationship between the neighborhood food environment and diet-related health outcomes, which has been supported by previous research using traditional research methods [21,22,23]. The underlying mechanism is well studied between fast food consumption, increased caloric intake and obesity risk . The neighborhood food environment may influence fast food consumption and therefore change the obesity risk for residents. Hypertension and diabetes are also heavily influenced by diet choices [5,25].
The relationships between food mentions and census tract level health outcomes identified from our study were generally consistent with prior neighborhood research findings utilizing Twitter data. Previously, Abbar et al. used social media data to monitor dietary habits and found that the food mentions in the daily tweets of users were predictive of obesity and diabetes statistics at the state level . Similar studies leveraging other social media data sources, such as Facebook, also demonstrated the relationship between online social environment characteristics and the prevalence of obesity at the city level using data from the Behavioral Risk Factor Surveillance System and the Selected Metropolitan/Micropolitan Area Risk Trends (SMART) project, and these relationships were also seen at the zip code level in New York City . Previously, Twitter food environment characteristics (tweets collected from 2015 to 2016) were demonstrated to relate to state level health outcomes. Higher caloric density of food mentions was associated with higher prevalence of diabetes .
This is the first study that analyzed Twitter-derived food environment characteristics and its relationship to chronic health outcomes at the census tract level, which is able to incorporate heterogeneity in food tweets characteristics within each state. Food environments within each state can be vastly different—from small disadvantaged areas to wealthy suburbs—therefore, census tract level analyses may be more able to reflect an individual’s local food environment. Collecting Twitter data over a span of three years also provided us with robust data to construct national neighborhood indicators. We utilized health outcome data obtained from the CDC 500 Cities project. Hence, health outcome data also came from geographically diverse areas. To explore the impact of the Twitter-derived food environment characteristics on chronic outcomes by subgroups, we additionally performed analyses for sex-specific obesity rates. We found that there were not statistically significant differences in the strength of associations between the Twitter-derived variables and county obesity rate for men vs. women.
This study is subject to several limitations: The 500 Cities project includes data from the most populous cities in the United States and covers about 33.4% population. Therefore, our results may not be representative of the U.S. population and may not generalize to less populous cities or rural neighborhoods. Further studies are needed to examine the relationship between Twitter characteristics and chronic health outcomes in smaller cities or rural areas. We utilized 1% of publicly available tweets with geotags collected from Twitter’s free API service. It was estimated that about 28% of the online users possessed a Twitter account in 2018  and Twitter users tend to be younger in age . Therefore, the information collected from Twitter may not be representative of all views expressed online or in-person at the neighborhood level. Facebook remains the most popular social media in the U.S. . However, the majority of profiles on Facebook are private, whereas, the majority of profiles on Twitter are public and thus available for analyses. Moreover, it is important to bear in mind that only a small number of tweets are geotagged and may not fully represent the food environment of a given area. However, although tweets may not be representative of all people, behaviors or food resources, as this study demonstrates, tweets may still have utility in predicting health outcomes. Activity on social media itself may impact health behaviors and outcomes. We did not have information on internet use or social media use. Our analyses did account for rurality, minority composition, and socioeconomic status, which correlate with internet access and use . In addition, we were not able to perform a longitudinal analysis, due to the lack of health outcome data from 2016 to 2018. The cross-sectional study design had its inherent limitations. This study design could not definitely determine if a neighborhood food environment caused more obesity and hypertension cases; we report on associations observed. Our study also used aggregated data, therefore inferences cannot be drawn at the individual level.
We find that Twitter-derived food environment characteristics including higher average calories per tweet, less frequent healthy food mentions, and a higher percentage of food tweets about fast food are linked with higher obesity and hypertension prevalence at the census tract level. Harnessing information exchanged online can be a cost-effective way of understanding local health trends and providing information necessary for targeted interventions. Neighborhood Twitter studies can help to identify areas at risk, inform chronic disease prevention at a neighborhood level, and further contribute to reducing important and costly chronic diseases. Our Twitter-derived neighborhood data are publicly available at https://hashtaghealth.github.io/.
The following are available online at https://www.mdpi.com/1660-4601/16/6/975/s1, Table S1: Twitter-derived food environment characteristics by state, United States 2015–2018, Table S2: Census tract level food environment characteristics and health outcomes (linear regression), Table S3: Twitter-derived food environment characteristics and sex-specific obesity rates, county level.
Conceptualization, Q.C.N.; methodology, Q.C.N.; formal analysis, D.H., Y.H.; writing—original draft preparation, Y.H., D.H.; writing—review and editing, Y.H., D.H., Q.C.N.; visualization, Y.H., D.H.; funding acquisition, Q.C.N.
This research was funded by NIH BD2K, grant 5K01ES025433, R01LM012849 (Nguyen, PI). Partial funding for open access provided by the UMD Libraries’ Open Access Publishing Fund.
Conflicts of Interest
The authors declare no conflict of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, or in the decision to publish the results.
- Caspi, C.E.; Sorensen, G.; Subramanian, S.V.; Kawachi, I. The local food environment and diet: a systematic review. Health Place 2012, 18, 1172–1187. [Google Scholar] [CrossRef] [PubMed]
- Laxy, M.; Malecki, K.C.; Givens, M.L.; Walsh, M.C.; Nieto, F.J. The association between neighborhood economic hardship, the retail food environment, fast food intake, and obesity: findings from the Survey of the Health of Wisconsin. BMC Public Health 2015, 15, 237. [Google Scholar] [CrossRef]
- Li, F.; Harmer, P.; Cardinal, B.J.; Bosworth, M.; Johnson-Shelton, D. Obesity and the built environment: does the density of neighborhood fast-food outlets matter? Am. J. Health Promot 2009, 23, 203–209. [Google Scholar] [CrossRef] [PubMed]
- Morland, K.B.; Evenson, K.R. Obesity prevalence and the local food environment. Health Place 2009, 15, 491–495. [Google Scholar] [CrossRef] [PubMed]
- Salois, M.J. Obesity and diabetes, the built environment, and the ‘local’ food economy in the United States, 2007. Econ Hum Biol 2012, 10, 35–42. [Google Scholar] [CrossRef] [PubMed]
- Buys, D.R.; Howard, V.J.; McClure, L.A.; Buys, K.C.; Sawyer, P.; Allman, R.M.; Levitan, E.B. Association between neighborhood disadvantage and hypertension prevalence, awareness, treatment, and control in older adults: results from the University of Alabama at Birmingham Study of Aging. Am. J. Public Health 2015, 105, 1181–1188. [Google Scholar] [CrossRef]
- Wakamiya, S.; Kawai, Y.; Aramaki, E. Twitter-Based Influenza Detection After Flu Peak via Tweets With Indirect Information: Text Mining Study. JMIR Public Health Surveill. 2018, 4, e65. [Google Scholar] [CrossRef]
- Signorini, A.; Segre, A.M.; Polgreen, P.M. 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, e19467. [Google Scholar] [CrossRef]
- Nguyen, Q.C.; Li, D.; Meng, H.W.; Kath, S.; Nsoesie, E.; Li, F.; Wen, M. Building a National Neighborhood Dataset From Geotagged Twitter Data for Indicators of Happiness, Diet, and Physical Activity. JMIR Public Health Surveill. 2016, 2, e158. [Google Scholar] [CrossRef]
- Widener, M.J.; Li, W. Using geolocated Twitter data to monitor the prevalence of healthy and unhealthy food references across the US. Appl. Geogr. 2014, 54, 189–197. [Google Scholar]
- Chen, X.; Yang, X. Does food environment influence food choices? A geographical analysis through “tweets”. Appl. Geogr. 2014, 51, 82–89. [Google Scholar] [CrossRef]
- Bandura, A. Social Learning Theory; Prentice-Hall: Englewood Cliffs, NJ, USA, 1977. [Google Scholar]
- Abbar, S.; Mejova, Y.; Weber, I. You Tweet What You Eat: Studying Food Consumption Through Twitter. In Proceedings of the 33rd Annual ACM Conference on Human Factors in Computing Systems, Seoul, Korea, 18–23 April 2015; ACM: Seoul, Korea; pp. 3197–3206. [Google Scholar]
- Higgs, S.; Thomas, J. Social influences on eating. Curr. Opin. Behav. Sci. 2016, 9, 1–6. [Google Scholar] [CrossRef]
- 500 Cities: Local Data for Better Health. Available online: https://www.cdc.gov/500cities/about.htm (accessed on 9 December 2018).
- Bolier, L.; Haverman, M.; Kramer, J.; Westerhof, J.G.; Riper, H.; Walburg, A.J.; Boon, B.; Bohlmeijer, E. An Internet-Based Intervention to Promote Mental Fitness for Mildly Depressed Adults: Randomized Controlled Trial. J. Med. Internet Res. 2013, 15, e200. [Google Scholar] [CrossRef]
- Fiechtner, L.; Sharifi, M.; Sequist, T.; Block, J.; Duncan, D.T.; Melly, S.J.; Rifas-Shiman, S.L.; Taveras, E.M. Food environments and childhood weight status: effects of neighborhood median income. Childhood Obesity (Print) 2015, 11, 260–268. [Google Scholar] [CrossRef]
- Malec, D.; Sedransk, J.; Moriarity, C.L.; LeClere, F.B. Small area inference for binary variables in the National Health Interview Survey. J. Am. Stat. Assoc. 1997, 92, 815–826. [Google Scholar] [CrossRef]
- Centers for Disease Control and Prevention. Adult Obesity Facts|Overweight & Obesity. Available online: https://www.cdc.gov/obesity/data/adult.html (accessed on 18 February 2019).
- R Core Team, R: A Language and Environment for Statistical Computing. Available online: http://www.R-project.org/ (accessed on 21 November 2018).
- Morland, K.; Roux, A.V.D.; Wing, S. Supermarkets, other food stores, and obesity: the atherosclerosis risk in communities study. Am. J. Prev. Med. 2006, 30, 333–339. [Google Scholar] [CrossRef]
- Maddock, J. The relationship between obesity and the prevalence of fast food restaurants: state-level analysis. Am. J. Health Promot 2004, 19, 137–143. [Google Scholar] [CrossRef]
- Davis, B.; Carpenter, C. Proximity of fast-food restaurants to schools and adolescent obesity. Am. J. Public Health 2009, 99, 505–510. [Google Scholar] [CrossRef]
- Rosenheck, R. Fast food consumption and increased caloric intake: a systematic review of a trajectory towards weight gain and obesity risk. Obes. Rev. 2008, 9, 535–547. [Google Scholar] [CrossRef]
- Hermansen, K. Diet, blood pressure and hypertension. Br. J. Nutr. 2000, 83 (Suppl 1), S113–119. [Google Scholar] [CrossRef]
- Chunara, R.; Bouton, L.; Ayers, J.W.; Brownstein, J.S. Assessing the Online Social Environment for Surveillance of Obesity Prevalence. PLoS ONE 2013, 8, e61373. [Google Scholar] [CrossRef] [PubMed]
- Nguyen, Q.C.; Meng, H.; Li, D.; Kath, S.; McCullough, M.; Paul, D.; Kanokvimankul, P.; Nguyen, T.X.; Li, F. Social media indicators of the food environment and state health outcomes. Public Health 2017, 148, 120–128. [Google Scholar] [CrossRef] [PubMed]
- Twitter Penetration Rate in the United States from 2014 to 2020. Available online: https://www.statista.com/statistics/183466/share-of-adult-us-population-on-twitter/ (accessed on 30 November 2018).
- Duggan, M. Mobile Messaging and Social Media 2015. Available online: http://www.pewinternet.org/2015/08/19/mobile-messaging-and-social-media-2015/ (accessed on 22 April 2018).
- Gilmour, J.A. Reducing disparities in the access and use of Internet health information. A discussion paper. Int. J. Nurs. Studies 2007, 44, 1270–1278. [Google Scholar] [CrossRef] [PubMed]
Figure 1. State level percent of food tweets with a fast food mention in the contiguous United States, Twitter 2015–2018.
Figure 2. State level average caloric density per food tweet in the contiguous United States, Twitter 2015–2018.
Figure 3. State level percent of food tweets with a healthy food mention in the contiguous United States, Twitter 2015–2018.
Figure 4. Temporal trends in average calories per tweet by state, Twitter 2015–2018.
Table 1. Census tract level food environment characteristics and health outcomes (median regression).
|Census Tract Characteristics||Prevalence of Obesity||Prevalence of Diabetes||Prevalence of Hypertension|
|N = 18,504 a|
|standardized mean calories b||0.19||0.05||<0.001 *||0.02||0.02||0.192||0.16||0.04||<0.001 *|
|standardized % healthy food b||−0.30||0.11||<0.001 *||−0.02||0.02||0.301||−0.13||0.04||0.001 *|
|standardized % fast food b||0.15||0.04||<0.001 *||−0.02||0.01||0.055||0.12||0.03||<0.001 *|
a Census tracts with more than 10 tweets collected are included. b Twitter-derived food environment characteristics were standardized to have a mean of 0 and a standard deviation of 1. Adjusted median regression models were run for each outcome separately. Models controlled for census tract level demographics including population density, percent of 65 or older, percent of male, percent black, percent Hispanic, urban or rural areas, percent relatives besides spouse and children living in households, percent unmarried cohabitating adults, household size, percent owner-occupied housing, and income inequality. Data Source: American Community Survey, CDC 500 cities.
© 2019 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).