File Download
Links for fulltext
(May Require Subscription)
- Publisher Website: 10.2196/publichealth.5869
- Scopus: eid_2-s2.0-85018944404
- PMID: 27751984
Supplementary
- Citations:
- Appears in Collections:
Article: Building a national neighborhood dataset from geotagged twitter data for indicators of happiness, diet, and physical activity
Title | Building a national neighborhood dataset from geotagged twitter data for indicators of happiness, diet, and physical activity |
---|---|
Authors | |
Keywords | Food Happiness Health behavior Physical activity Social media Twitter messaging |
Issue Date | 2016 |
Citation | JMIR Public Health and Surveillance, 2016, v. 2, n. 2, article no. e158 How to Cite? |
Abstract | Background: 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 Identifier | http://hdl.handle.net/10722/324012 |
PubMed Central ID |
DC Field | Value | Language |
---|---|---|
dc.contributor.author | Nguyen, Quynh C. | - |
dc.contributor.author | Li, Dapeng | - |
dc.contributor.author | Meng, Hsien Wen | - |
dc.contributor.author | Kath, Suraj | - |
dc.contributor.author | Nsoesie, Elaine | - |
dc.contributor.author | Li, Feifei | - |
dc.contributor.author | Wen, Ming | - |
dc.date.accessioned | 2023-01-13T03:00:53Z | - |
dc.date.available | 2023-01-13T03:00:53Z | - |
dc.date.issued | 2016 | - |
dc.identifier.citation | JMIR Public Health and Surveillance, 2016, v. 2, n. 2, article no. e158 | - |
dc.identifier.uri | http://hdl.handle.net/10722/324012 | - |
dc.description.abstract | Background: 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.language | eng | - |
dc.relation.ispartof | JMIR Public Health and Surveillance | - |
dc.rights | This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License. | - |
dc.subject | Food | - |
dc.subject | Happiness | - |
dc.subject | Health behavior | - |
dc.subject | Physical activity | - |
dc.subject | Social media | - |
dc.subject | Twitter messaging | - |
dc.title | Building a national neighborhood dataset from geotagged twitter data for indicators of happiness, diet, and physical activity | - |
dc.type | Article | - |
dc.description.nature | published_or_final_version | - |
dc.identifier.doi | 10.2196/publichealth.5869 | - |
dc.identifier.pmid | 27751984 | - |
dc.identifier.pmcid | PMC5088343 | - |
dc.identifier.scopus | eid_2-s2.0-85018944404 | - |
dc.identifier.volume | 2 | - |
dc.identifier.issue | 2 | - |
dc.identifier.spage | article no. e158 | - |
dc.identifier.epage | article no. e158 | - |
dc.identifier.eissn | 2369-2960 | - |