File Download
  Links for fulltext
     (May Require Subscription)
Supplementary

Article: Building a national neighborhood dataset from geotagged twitter data for indicators of happiness, diet, and physical activity

TitleBuilding a national neighborhood dataset from geotagged twitter data for indicators of happiness, diet, and physical activity
Authors
KeywordsFood
Happiness
Health behavior
Physical activity
Social media
Twitter messaging
Issue Date2016
Citation
JMIR Public Health and Surveillance, 2016, v. 2, n. 2, article no. e158 How to Cite?
AbstractBackground: Studies suggest that where people live, play, and work can influence health and well-being. However, the dearth of neighborhood data, especially data that is timely and consistent across geographies, hinders understanding of the effects of neighborhoods on health. Social media data represents a possible new data resource for neighborhood research. Objective: The aim of this study was to build, from geotagged Twitter data, a national neighborhood database with area-level indicators of well-being and health behaviors. Methods: We utilized Twitter's streaming application programming interface to continuously collect a random 1% subset of publicly available geolocated tweets for 1 year (April 2015 to March 2016). We collected 80 million geotagged tweets from 603,363 unique Twitter users across the contiguous United States. We validated our machine learning algorithms for constructing indicators of happiness, food, and physical activity by comparing predicted values to those generated by human labelers. Geotagged tweets were spatially mapped to the 2010 census tract and zip code areas they fall within, which enabled further assessment of the associations between Twitter-derived neighborhood variables and neighborhood demographic, economic, business, and health characteristics. Results: Machine labeled and manually labeled tweets had a high level of accuracy: 78% for happiness, 83% for food, and 85% for physical activity for dichotomized labels with the F scores 0.54, 0.86, and 0.90, respectively. About 20% of tweets were classified as happy. Relatively few terms (less than 25) were necessary to characterize the majority of tweets on food and physical activity. Data from over 70,000 census tracts from the United States suggest that census tract factors like percentage African American and economic disadvantage were associated with lower census tract happiness. Urbanicity was related to higher frequency of fast food tweets. Greater numbers of fast food restaurants predicted higher frequency of fast food mentions. Surprisingly, fitness centers and nature parks were only modestly associated with higher frequency of physical activity tweets. Greater state-level happiness, positivity toward physical activity, and positivity toward healthy foods, assessed via tweets, were associated with lower all-cause mortality and prevalence of chronic conditions such as obesity and diabetes and lower physical inactivity and smoking, controlling for state median income, median age, and percentage white non-Hispanic. Conclusions: Machine learning algorithms can be built with relatively high accuracy to characterize sentiment, food, and physical activity mentions on social media. Such data can be utilized to construct neighborhood indicators consistently and cost effectively. Access to neighborhood data, in turn, can be leveraged to better understand neighborhood effects and address social determinants of health. We found that neighborhoods with social and economic disadvantage, high urbanicity, and more fast food restaurants may exhibit lower happiness and fewer healthy behaviors.
Persistent Identifierhttp://hdl.handle.net/10722/324012
PubMed Central ID

 

DC FieldValueLanguage
dc.contributor.authorNguyen, Quynh C.-
dc.contributor.authorLi, Dapeng-
dc.contributor.authorMeng, Hsien Wen-
dc.contributor.authorKath, Suraj-
dc.contributor.authorNsoesie, Elaine-
dc.contributor.authorLi, Feifei-
dc.contributor.authorWen, Ming-
dc.date.accessioned2023-01-13T03:00:53Z-
dc.date.available2023-01-13T03:00:53Z-
dc.date.issued2016-
dc.identifier.citationJMIR Public Health and Surveillance, 2016, v. 2, n. 2, article no. e158-
dc.identifier.urihttp://hdl.handle.net/10722/324012-
dc.description.abstractBackground: Studies suggest that where people live, play, and work can influence health and well-being. However, the dearth of neighborhood data, especially data that is timely and consistent across geographies, hinders understanding of the effects of neighborhoods on health. Social media data represents a possible new data resource for neighborhood research. Objective: The aim of this study was to build, from geotagged Twitter data, a national neighborhood database with area-level indicators of well-being and health behaviors. Methods: We utilized Twitter's streaming application programming interface to continuously collect a random 1% subset of publicly available geolocated tweets for 1 year (April 2015 to March 2016). We collected 80 million geotagged tweets from 603,363 unique Twitter users across the contiguous United States. We validated our machine learning algorithms for constructing indicators of happiness, food, and physical activity by comparing predicted values to those generated by human labelers. Geotagged tweets were spatially mapped to the 2010 census tract and zip code areas they fall within, which enabled further assessment of the associations between Twitter-derived neighborhood variables and neighborhood demographic, economic, business, and health characteristics. Results: Machine labeled and manually labeled tweets had a high level of accuracy: 78% for happiness, 83% for food, and 85% for physical activity for dichotomized labels with the F scores 0.54, 0.86, and 0.90, respectively. About 20% of tweets were classified as happy. Relatively few terms (less than 25) were necessary to characterize the majority of tweets on food and physical activity. Data from over 70,000 census tracts from the United States suggest that census tract factors like percentage African American and economic disadvantage were associated with lower census tract happiness. Urbanicity was related to higher frequency of fast food tweets. Greater numbers of fast food restaurants predicted higher frequency of fast food mentions. Surprisingly, fitness centers and nature parks were only modestly associated with higher frequency of physical activity tweets. Greater state-level happiness, positivity toward physical activity, and positivity toward healthy foods, assessed via tweets, were associated with lower all-cause mortality and prevalence of chronic conditions such as obesity and diabetes and lower physical inactivity and smoking, controlling for state median income, median age, and percentage white non-Hispanic. Conclusions: Machine learning algorithms can be built with relatively high accuracy to characterize sentiment, food, and physical activity mentions on social media. Such data can be utilized to construct neighborhood indicators consistently and cost effectively. Access to neighborhood data, in turn, can be leveraged to better understand neighborhood effects and address social determinants of health. We found that neighborhoods with social and economic disadvantage, high urbanicity, and more fast food restaurants may exhibit lower happiness and fewer healthy behaviors.-
dc.languageeng-
dc.relation.ispartofJMIR Public Health and Surveillance-
dc.rightsThis work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.-
dc.subjectFood-
dc.subjectHappiness-
dc.subjectHealth behavior-
dc.subjectPhysical activity-
dc.subjectSocial media-
dc.subjectTwitter messaging-
dc.titleBuilding a national neighborhood dataset from geotagged twitter data for indicators of happiness, diet, and physical activity-
dc.typeArticle-
dc.description.naturepublished_or_final_version-
dc.identifier.doi10.2196/publichealth.5869-
dc.identifier.pmid27751984-
dc.identifier.pmcidPMC5088343-
dc.identifier.scopuseid_2-s2.0-85018944404-
dc.identifier.volume2-
dc.identifier.issue2-
dc.identifier.spagearticle no. e158-
dc.identifier.epagearticle no. e158-
dc.identifier.eissn2369-2960-

Export via OAI-PMH Interface in XML Formats


OR


Export to Other Non-XML Formats