Hostname: page-component-76fb5796d-wq484 Total loading time: 0 Render date: 2024-04-30T02:07:52.064Z Has data issue: false hasContentIssue false

Spikes and Variance: Using Google Trends to Detect and Forecast Protests

Published online by Cambridge University Press:  08 April 2021

Joan C. Timoneda*
Affiliation:
Department of Political Science, Purdue University, 2230 Beering Hall, 100 North University Street, West Lafayette, IN47907, USA. Email: timoneda@purdue.edu
Erik Wibbels
Affiliation:
Department of Political Science, Duke University, 280 Gross Hall, 140 Science Drive, Durham, NC27708, USA
*
Corresponding author Joan C. Timoneda

Abstract

Google search is ubiquitous, and Google Trends (GT) is a potentially useful access point for big data on many topics the world over. We propose a new ‘variance-in-time’ method for forecasting events using GT. By collecting multiple and overlapping samples of GT data over time, our algorithm leverages variation both in the mean and the variance of a search term in order to accommodate some idiosyncracies in the GT platform. To elucidate our approach, we use it to forecast protests in the United States. We use data from the Crowd Counting Consortium between 2017 and 2019 to build a sample of true protest events as well as a synthetic control group where no protests occurred. The model’s out-of-sample forecasts predict protests with higher accuracy than extant work using structural predictors, high frequency event data, or other sources of big data such as Twitter. Our results provide new insights into work specifically on political protests, while providing a general approach to GT that should be useful to researchers of many important, if rare, phenomena.

Type
Article
Copyright
© The Author(s) 2021. Published by Cambridge University Press on behalf of the Society for Political Methodology

Access options

Get access to the full version of this content by using one of the access options below. (Log in options will check for institutional or personal access. Content may require purchase if you do not have access.)

Footnotes

Edited by Jeff Gill

References

Aletras, N., Tsarapatsanis, D., Preoţiuc-Pietro, D., and Lampos, V.. 2016. “Predicting Judicial Decisions of the European Court of Human Rights: A Natural Language Processing Perspective.” PeerJ Computer Science 2:e93.CrossRefGoogle Scholar
Bahrami, M., Findik, Y., Bozkaya, B., and Balcisoy, S.. 2018. “Twitter Reveals: Using Twitter Analytics to Predict Public Protests.” Preprint, arXiv:1805.00358.Google Scholar
Barberá, P. 2015. “Birds of the Same Feather Tweet Together: Bayesian Ideal Point Estimation Using Twitter Data.” Political Analysis 23(1):7691.CrossRefGoogle Scholar
Barberá, P., Jost, J. T., Nagler, J., Tucker, J. A., and Bonneau, R.. 2015. “Tweeting from Left to Right: Is Online Political Communication More than an Echo Chamber? Psychological Science 26(10):15311542.CrossRefGoogle ScholarPubMed
Beck, N. 2020. “Estimating Grouped Data Models with a Binary-Dependent Variable and Fixed Effects via a Logit Versus a Linear Probability Model: The Impact of Dropped Units.” Political Analysis 28(1):139145.CrossRefGoogle Scholar
Boschee, E., Lautenschlager, J., O’Brien, S., Shellman, S., Starz, J., and Ward, M.. 2015. “ICEWS Coded Event Data.” Harvard Dataverse 12.Google Scholar
Bowlsby, D., Chenoweth, E., Hendrix, C., and Moyer, J. D.. 2020. “The Future Is a Moving Target: Predicting Political Instability.” British Journal of Political Science 50(4):14051417.CrossRefGoogle Scholar
Brecher, M., Wilkenfeld, J., Beardsley, K., James, P., and Quinn, D.. 2016. “International Crisis Behavior Data Codebook, Version 11.” http://sites.duke.edu/icbdata/data-collections.Google Scholar
Brigo, F. et al. 2014. Why Do People Google Epilepsy?: An Infodemiological Study of Online Behavior for Epilepsy-Related Search Terms. Epilepsy & Behavior 31:6770.CrossRefGoogle ScholarPubMed
Brownlee, J. 2018. Statistical Methods for Machine Learning: Discover How to Transform Data into Knowledge with Python. Machine Learning Mastery.Google Scholar
Carneiro, H. A. and Mylonakis, E.. 2009. “Google Trends: A Web-Based Tool for Real-Time Surveillance of Disease Outbreaks.” Clinical Infectious Diseases 49(10):15571564.CrossRefGoogle ScholarPubMed
Cederman, L.-E. and Weidmann, N. B.. 2017. “Predicting Armed Conflict: Time to Adjust Our Expectations? Science 355(6324):474476.CrossRefGoogle ScholarPubMed
Chadwick, M. G. and Sengül, G.. 2013. “Nowcasting the Unemployment Rate in Turkey: Let’s Ask Google.” Central Bank Review 15(3):15.Google Scholar
Chenoweth, E. and Ulfelder, J.. 2017. “Can Structural Conditions Explain the Onset of Nonviolent Uprisings? Journal of Conflict Resolution 61(2):298324.CrossRefGoogle Scholar
Choi, H. and Varian, H.. 2012. “Predicting the Present with Google Trends.” Economic Record 88:29.CrossRefGoogle Scholar
Chykina, V. and Crabtree, C.. 2018. “Using Google Trends to Measure Issue Salience for Hard-to-Survey Populations.” Socius 4:2378023118760414.CrossRefGoogle Scholar
Do, Q.-T. et al. 2018. “Terrorism, Geopolitics, and Oil Security: Using Remote Sensing to Estimate Oil Production of the Islamic State.” Energy Research & Social Science 44:411418.CrossRefGoogle ScholarPubMed
Fearon, J. D. and Laitin, D. D.. 2003. “Ethnicity, Insurgency, and Civil War.” American Political Science Review 97(1):7590.CrossRefGoogle Scholar
Fisher, D. R. et al. 2019. “The Science of Contemporary Street Protest: New Efforts in the United States.” Science Advances 5(10):eaaw5461.CrossRefGoogle ScholarPubMed
Gebru, T. et al. 2017. “Using Deep Learning and Google Street View to Estimate the Demographic Makeup of Neighborhoods Across the United States.” Proceedings of the National Academy of Sciences 114(50):1310813113.CrossRefGoogle ScholarPubMed
Gerner, D. J., Schrodt, P. A., Francisco, R. A., and Weddle, J. L.. 1994. “Machine Coding of Event Data Using Regional and International Sources.” International Studies Quarterly 38(1):91119.CrossRefGoogle Scholar
Goldstone, J. A. et al. 2010. “A Global Model for Forecasting Political Instability.” American Journal of Political Science 54(1):190208.CrossRefGoogle Scholar
Grimmer, J. and Stewart, B. M.. 2013. “Text as Data: The Promise and Pitfalls of Automatic Content Analysis Methods for Political Texts.” Political Analysis 21(3):267297.CrossRefGoogle Scholar
Gurr, T. R. and Lichbach, M. I.. 1986. “Forecasting Internal Conflict: A Competitive Evaluation of Empirical Theories.” Comparative Political Studies 19(1):338.CrossRefGoogle Scholar
Hegre, H., Karlsen, J., Nygård, H. M., Strand, H., and Urdal, H.. 2013. “Predicting Armed Conflict, 2010–2050.” International Studies Quarterly 57(2):250270.CrossRefGoogle Scholar
Hollenbach, F. M. and Pierskalla, J. H.. 2017. “A Re-Assessment of Reporting Bias in Event-Based Violence Data with Respect to Cell Phone Coverage.” Research & Politics 4(3):2053168017730687.CrossRefGoogle Scholar
James, G., Witten, D., Hastie, T., and Tibshirani, R.. 2013. An Introduction to Statistical Learning, vol. 112, Springer.CrossRefGoogle Scholar
Jun, S.-P., Yoo, H. S., and Choi, S.. 2018. “Ten Years of Research Change Using Google Trends: From the Perspective of Big Data Utilizations and Applications.” Technological Forecasting and Social Change 130:6987.CrossRefGoogle Scholar
King, G. and Lowe, W.. 2003. “An Automated Information Extraction Tool for International Conflict Data with Performance as Good as Human Coders: A Rare Events Evaluation Design.” International Organization 57(3):617642.CrossRefGoogle Scholar
King, G. and Zeng, L.. 2001. “Logistic Regression in Rare Events Data.” Political Analysis 9(2):137163.CrossRefGoogle Scholar
Korolov, R. et al. 2016. “On Predicting Social Unrest Using Social Media.” In 2016 IEEE/ACM International Conference on Advances in Social Networks Analysis and Mining (ASONAM), 8995. San Francisco, CA:IEEE.CrossRefGoogle Scholar
Lazer, D., Kennedy, R., King, G., and Vespignani, A.. 2014. “The Parable of Google Flu: Traps in Big Data Analysis.” Science 343(6176):12031205.CrossRefGoogle ScholarPubMed
Leetaru, K. and Schrodt, P. A.. 2013. “GDELT: Global Data on Events, Location, and Tone, 1979–2012.” In ISA Annual Convention, vol. 2, 149. San Francisco, CA:Citeseer.Google Scholar
Lucas, C., Nielsen, R. A., Roberts, M. E., Stewart, B. M., Storer, A., and Tingley, D.. 2015. “Computer-Assisted Text Analysis for Comparative Politics.” Political Analysis 23(2):254277.CrossRefGoogle Scholar
Mavragani, A. and Tsagarakis, K. P.. 2016. “YES or NO: Predicting the 2015 GReferendum Results Using Google Trends. Technological Forecasting and Social Change 109:15.CrossRefGoogle Scholar
Min, B. 2015. Power and the Vote: Elections and Electricity in the Developing World. New York: Cambridge University Press.CrossRefGoogle Scholar
Muthiah, S. et al. 2015. “Planned Protest Modeling in News and Social Media.” In Twenty-Seventh IAAI Conference, 1–8. Palo Alto, CA: Association for the Advancement of Artificial Intelligence.Google Scholar
Pelat, C., Turbelin, C., Bar-Hen, A., Flahault, A., and Valleron, A.-J.. 2009. “More Diseases Tracked by Using Google Trends.” Emerging Infectious Diseases 15(8):1327.CrossRefGoogle ScholarPubMed
Preis, T., Moat, H. S., and Stanley, H. E.. 2013. Quantifying Trading Behavior in Financial Markets Using Google Trends.” Scientific Reports 3:1684.CrossRefGoogle ScholarPubMed
Raleigh, C., Linke, A., Hegre, H., and Karlsen, J.. 2010. “Introducing ACLED: An Armed Conflict Location and Event Dataset: Special Data Feature.” Journal of Peace Research 47(5):651660.CrossRefGoogle Scholar
Sarkees, M. R. and Wayman, F. W.. 2010. Resort to War: A Data Guide to Inter-State, Extra-State, Intra-State, and Non-State Wars, 1816–2007. Washington, DC: CQ Press.Google Scholar
Schrodt, P. A. 2012. “Precedents, Progress, and Prospects in Political Event Data.” International Interactions 38(4):546569.CrossRefGoogle Scholar
Schrodt, P. A., Beieler, J., and Idris, M.. 2014. “Three’s a Charm?: Open Event Data Coding with EL:DIABLO, PETRARCH, and the Open Event Data Alliance.” In ISA Annual Convention.Google Scholar
Schrodt, P. A. and Gerner, D. J.. 1994. “Validity Assessment of a Machine-Coded Event Data Set for the Middle East, 1982–1992.” American Journal of Political Science 38(3):825854.CrossRefGoogle Scholar
Teng, Y. et al. 2017. “Dynamic Forecasting of Zika Epidemics Using Google Trends.” PLoS One 12(1):e0165085.CrossRefGoogle ScholarPubMed
Timoneda, J. C. 2018. “Where in the World Is My Tweet: Detecting Irregular Removal Patterns on Twitter.” PLoS One 13(9):e0203104.CrossRefGoogle ScholarPubMed
Timoneda, J. C. and Wibbels, E.. 2020. “Replication Data for: Spikes and Variance: Using Google Trends to Detect and Forecast Protests” https://doi.org/10.7910/DVN/WXZH8C, Harvard Dataverse, V1, UNF:6:lQQ5Ro7fEJ8rH6A/91G9rg== [fileUNF].Google Scholar
Vosen, S. and Schmidt, T.. 2011. “Forecasting Private Consumption: Survey-Based Indicators vs. Google Trends.” Journal of Forecasting 30(6):565578.CrossRefGoogle Scholar
Ward, M. D., Greenhill, B. D., and Bakke, K. M.. 2010. “The Perils of Policy by P-Value: Predicting Civil Conflicts.” Journal of Peace Research 47(4):363375.CrossRefGoogle Scholar
Weidmann, N. B. 2016. “A Closer Look at Reporting Bias in Conflict Event Data.” American Journal of Political Science 60(1):206218.CrossRefGoogle Scholar
Weidmann, N. B. and Ward, M. D.. 2010. “Predicting Conflict in Space and Time.” Journal of Conflict Resolution 54(6):883901.CrossRefGoogle Scholar
Zhang, X. et al. 2018. “Seasonality of Cellulitis: Evidence from Google Trends.” Infection and Drug Resistance 11:689.CrossRefGoogle ScholarPubMed
Zhou, D., Chen, L., and He, Y.. 2015. “An Unsupervised Framework of Exploring Events on Twitter: Filtering, Extraction and Categorization.” In Twenty-Ninth AAAI Conference on Artificial Intelligence, 24682474. Palo Alto, CA: ACM.Google Scholar
Supplementary material: PDF

Timoneda and Wibbels supplementary material

Appendix

Download Timoneda and Wibbels supplementary material(PDF)
PDF 100.1 KB
Supplementary material: Link

Timoneda and Wibbels Dataset

Link