Back to Search
Start Over
Toward Using Twitter for Tracking COVID-19: A Natural Language Processing Pipeline and Exploratory Data Set
- Source :
- Journal of Medical Internet Research, Vol 23, Iss 1, p e25314 (2021), Journal of Medical Internet Research
- Publication Year :
- 2021
- Publisher :
- JMIR Publications Inc., 2021.
-
Abstract
- Background In the United States, the rapidly evolving COVID-19 outbreak, the shortage of available testing, and the delay of test results present challenges for actively monitoring its spread based on testing alone. Objective The objective of this study was to develop, evaluate, and deploy an automatic natural language processing pipeline to collect user-generated Twitter data as a complementary resource for identifying potential cases of COVID-19 in the United States that are not based on testing and, thus, may not have been reported to the Centers for Disease Control and Prevention. Methods Beginning January 23, 2020, we collected English tweets from the Twitter Streaming application programming interface that mention keywords related to COVID-19. We applied handwritten regular expressions to identify tweets indicating that the user potentially has been exposed to COVID-19. We automatically filtered out “reported speech” (eg, quotations, news headlines) from the tweets that matched the regular expressions, and two annotators annotated a random sample of 8976 tweets that are geo-tagged or have profile location metadata, distinguishing tweets that self-report potential cases of COVID-19 from those that do not. We used the annotated tweets to train and evaluate deep neural network classifiers based on bidirectional encoder representations from transformers (BERT). Finally, we deployed the automatic pipeline on more than 85 million unlabeled tweets that were continuously collected between March 1 and August 21, 2020. Results Interannotator agreement, based on dual annotations for 3644 (41%) of the 8976 tweets, was 0.77 (Cohen κ). A deep neural network classifier, based on a BERT model that was pretrained on tweets related to COVID-19, achieved an F1-score of 0.76 (precision=0.76, recall=0.76) for detecting tweets that self-report potential cases of COVID-19. Upon deploying our automatic pipeline, we identified 13,714 tweets that self-report potential cases of COVID-19 and have US state–level geolocations. Conclusions We have made the 13,714 tweets identified in this study, along with each tweet’s time stamp and US state–level geolocation, publicly available to download. This data set presents the opportunity for future work to assess the utility of Twitter data as a complementary resource for tracking the spread of COVID-19.
- Subjects :
- 020205 medical informatics
Computer science
Interface (Java)
social media
coronavirus
Datasets as Topic
Health Informatics
02 engineering and technology
pandemics
lcsh:Computer applications to medicine. Medical informatics
computer.software_genre
infodemiology
Disease Outbreaks
03 medical and health sciences
0302 clinical medicine
Resource (project management)
0202 electrical engineering, electronic engineering, information engineering
Humans
Speech
Longitudinal Studies
030212 general & internal medicine
Regular expression
natural language processing
Original Paper
Artificial neural network
SARS-CoV-2
business.industry
lcsh:Public aspects of medicine
COVID-19
lcsh:RA1-1270
data mining
Pipeline (software)
United States
Metadata
Geolocation
lcsh:R858-859.7
epidemiology
Self Report
Artificial intelligence
Timestamp
business
computer
Natural language processing
Subjects
Details
- ISSN :
- 14388871
- Volume :
- 23
- Database :
- OpenAIRE
- Journal :
- Journal of Medical Internet Research
- Accession number :
- edsair.doi.dedup.....c53f88a2913eb91b7380646bf1c65d0c
- Full Text :
- https://doi.org/10.2196/25314