Cargando…

Modeling Spatiotemporal Factors Associated With Sentiment on Twitter: Synthesis and Suggestions for Improving the Identification of Localized Deviations

BACKGROUND: Studies examining how sentiment on social media varies depending on timing and location appear to produce inconsistent results, making it hard to design systems that use sentiment to detect localized events for public health applications. OBJECTIVE: The aim of this study was to measure h...

Descripción completa

Detalles Bibliográficos
Autores principales: Shah, Zubair, Martin, Paige, Coiera, Enrico, Mandl, Kenneth D, Dunn, Adam G
Formato: Online Artículo Texto
Lenguaje:English
Publicado: JMIR Publications 2019
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6682275/
https://www.ncbi.nlm.nih.gov/pubmed/31344669
http://dx.doi.org/10.2196/12881
_version_ 1783441864589836288
author Shah, Zubair
Martin, Paige
Coiera, Enrico
Mandl, Kenneth D
Dunn, Adam G
author_facet Shah, Zubair
Martin, Paige
Coiera, Enrico
Mandl, Kenneth D
Dunn, Adam G
author_sort Shah, Zubair
collection PubMed
description BACKGROUND: Studies examining how sentiment on social media varies depending on timing and location appear to produce inconsistent results, making it hard to design systems that use sentiment to detect localized events for public health applications. OBJECTIVE: The aim of this study was to measure how common timing and location confounders explain variation in sentiment on Twitter. METHODS: Using a dataset of 16.54 million English-language tweets from 100 cities posted between July 13 and November 30, 2017, we estimated the positive and negative sentiment for each of the cities using a dictionary-based sentiment analysis and constructed models to explain the differences in sentiment using time of day, day of week, weather, city, and interaction type (conversations or broadcasting) as factors and found that all factors were independently associated with sentiment. RESULTS: In the full multivariable model of positive (Pearson r in test data 0.236; 95% CI 0.231-0.241) and negative (Pearson r in test data 0.306; 95% CI 0.301-0.310) sentiment, the city and time of day explained more of the variance than weather and day of week. Models that account for these confounders produce a different distribution and ranking of important events compared with models that do not account for these confounders. CONCLUSIONS: In public health applications that aim to detect localized events by aggregating sentiment across populations of Twitter users, it is worthwhile accounting for baseline differences before looking for unexpected changes.
format Online
Article
Text
id pubmed-6682275
institution National Center for Biotechnology Information
language English
publishDate 2019
publisher JMIR Publications
record_format MEDLINE/PubMed
spelling pubmed-66822752019-08-19 Modeling Spatiotemporal Factors Associated With Sentiment on Twitter: Synthesis and Suggestions for Improving the Identification of Localized Deviations Shah, Zubair Martin, Paige Coiera, Enrico Mandl, Kenneth D Dunn, Adam G J Med Internet Res Original Paper BACKGROUND: Studies examining how sentiment on social media varies depending on timing and location appear to produce inconsistent results, making it hard to design systems that use sentiment to detect localized events for public health applications. OBJECTIVE: The aim of this study was to measure how common timing and location confounders explain variation in sentiment on Twitter. METHODS: Using a dataset of 16.54 million English-language tweets from 100 cities posted between July 13 and November 30, 2017, we estimated the positive and negative sentiment for each of the cities using a dictionary-based sentiment analysis and constructed models to explain the differences in sentiment using time of day, day of week, weather, city, and interaction type (conversations or broadcasting) as factors and found that all factors were independently associated with sentiment. RESULTS: In the full multivariable model of positive (Pearson r in test data 0.236; 95% CI 0.231-0.241) and negative (Pearson r in test data 0.306; 95% CI 0.301-0.310) sentiment, the city and time of day explained more of the variance than weather and day of week. Models that account for these confounders produce a different distribution and ranking of important events compared with models that do not account for these confounders. CONCLUSIONS: In public health applications that aim to detect localized events by aggregating sentiment across populations of Twitter users, it is worthwhile accounting for baseline differences before looking for unexpected changes. JMIR Publications 2019-05-08 /pmc/articles/PMC6682275/ /pubmed/31344669 http://dx.doi.org/10.2196/12881 Text en ©Zubair Shah, Paige Martin, Enrico Coiera, Kenneth D Mandl, Adam G Dunn. Originally published in the Journal of Medical Internet Research (http://www.jmir.org), 08.05.2019. https://creativecommons.org/licenses/by/4.0/This is an open-access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in the Journal of Medical Internet Research, is properly cited. The complete bibliographic information, a link to the original publication on http://www.jmir.org/, as well as this copyright and license information must be included.
spellingShingle Original Paper
Shah, Zubair
Martin, Paige
Coiera, Enrico
Mandl, Kenneth D
Dunn, Adam G
Modeling Spatiotemporal Factors Associated With Sentiment on Twitter: Synthesis and Suggestions for Improving the Identification of Localized Deviations
title Modeling Spatiotemporal Factors Associated With Sentiment on Twitter: Synthesis and Suggestions for Improving the Identification of Localized Deviations
title_full Modeling Spatiotemporal Factors Associated With Sentiment on Twitter: Synthesis and Suggestions for Improving the Identification of Localized Deviations
title_fullStr Modeling Spatiotemporal Factors Associated With Sentiment on Twitter: Synthesis and Suggestions for Improving the Identification of Localized Deviations
title_full_unstemmed Modeling Spatiotemporal Factors Associated With Sentiment on Twitter: Synthesis and Suggestions for Improving the Identification of Localized Deviations
title_short Modeling Spatiotemporal Factors Associated With Sentiment on Twitter: Synthesis and Suggestions for Improving the Identification of Localized Deviations
title_sort modeling spatiotemporal factors associated with sentiment on twitter: synthesis and suggestions for improving the identification of localized deviations
topic Original Paper
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC6682275/
https://www.ncbi.nlm.nih.gov/pubmed/31344669
http://dx.doi.org/10.2196/12881
work_keys_str_mv AT shahzubair modelingspatiotemporalfactorsassociatedwithsentimentontwittersynthesisandsuggestionsforimprovingtheidentificationoflocalizeddeviations
AT martinpaige modelingspatiotemporalfactorsassociatedwithsentimentontwittersynthesisandsuggestionsforimprovingtheidentificationoflocalizeddeviations
AT coieraenrico modelingspatiotemporalfactorsassociatedwithsentimentontwittersynthesisandsuggestionsforimprovingtheidentificationoflocalizeddeviations
AT mandlkennethd modelingspatiotemporalfactorsassociatedwithsentimentontwittersynthesisandsuggestionsforimprovingtheidentificationoflocalizeddeviations
AT dunnadamg modelingspatiotemporalfactorsassociatedwithsentimentontwittersynthesisandsuggestionsforimprovingtheidentificationoflocalizeddeviations