Literature DB >> 34153432

Pulse of the pandemic: Iterative topic filtering for clinical information extraction from social media.

Julia Wu1, Venkatesh Sivaraman2, Dheekshita Kumar1, Juan M Banda3, David Sontag4.   

Abstract

The rapid evolution of the COVID-19 pandemic has underscored the need to quickly disseminate the latest clinical knowledge during a public-health emergency. One surprisingly effective platform for healthcare professionals (HCPs) to share knowledge and experiences from the front lines has been social media (for example, the "#medtwitter" community on Twitter). However, identifying clinically-relevant content in social media without manual labeling is a challenge because of the sheer volume of irrelevant data. We present an unsupervised, iterative approach to mine clinically relevant information from social media data, which begins by heuristically filtering for HCP-authored texts and incorporates topic modeling and concept extraction with MetaMap. This approach identifies granular topics and tweets with high clinical relevance from a set of about 52 million COVID-19-related tweets from January to mid-June 2020. We also show that because the technique does not require manual labeling, it can be used to identify emerging topics on a week-to-week basis. Our method can aid in future public-health emergencies by facilitating knowledge transfer among healthcare workers in a rapidly-changing information environment, and by providing an efficient and unsupervised way of highlighting potential areas for clinical research.
Copyright © 2021 Elsevier Inc. All rights reserved.

Entities:  

Keywords:  Clinical concept extraction; Data mining; Information retrieval; Public health surveillance; Social media; Topic modeling

Mesh:

Year:  2021        PMID: 34153432      PMCID: PMC9339268          DOI: 10.1016/j.jbi.2021.103844

Source DB:  PubMed          Journal:  J Biomed Inform        ISSN: 1532-0464            Impact factor:   8.000


Introduction

In May 2020, a retrospective study of over 3,000 patients in a major New York healthcare system found that in around 1% of cases, the disease caused by the novel coronavirus (COVID-19) was associated with ischemic stroke [1]. The result, which was initially described in early April in China and Europe [2], [3] and corroborated by other New York studies [4], [5], quickly became part of a larger story on thrombotic complications of COVID-19 [6]. In the weeks leading up to these articles, however, physicians were already discussing a possible association between cerebrovascular accidents and COVID-19 on Twitter, starting with a small number of users affiliated with Boston-area hospitals on March 17. If conversations like these could be surfaced to physicians around the world as they emerge, they could serve as a focal point for new evidence, suggest directions for clinical research, and accelerate progress toward understanding the disease. In the face of a developing medical situation such as COVID-19, health-care professionals (HCPs) interact with a range of knowledge sources to provide and share up-to-date, accurate clinical information. Guidance released by public health organizations such as the World Health Organization (WHO) and the US Centers for Disease Control and Prevention (CDC) is considered the most reliable, but is relatively slow to change due to its wide impact. These guidelines are backed by published research and case reports, which also take time to be disseminated due to the need for formalization and peer review. To obtain more up-to-the-minute information, HCPs share insights amongst each other through webinars, hospital-specific channels, and chat groups. For example, many initial accounts of Chilblain-like skin lesions on the toes, a now-famous symptom of COVID-19, were circulated on a WhatsApp group from France [7]. Social media platforms have emerged as important areas for sharing clinical information publicly. In particular, Twitter is a popular option because it is already home to a sizeable physician community [8], [9]. HCPs can opt to discuss medical topics under hashtags such as “#medtwitter” and “#epitwitter,” or share experiences tagged as “free open-access medical education” (#FOAMed). While Twitter would not be appropriate as a primary source of clinical guidance, it has been shown to be a useful complement to more incremental, rigorously evaluated sources [10], and to assist in the dissemination of new information across geographic and cultural boundaries [11]. Furthermore, Twitter data is a well-established source for public health research, and textual analysis of Twitter data can reveal patterns in how health-related content is disseminated through the population [12] and identify drug effects and adverse reactions [13], [14], [15]. Recently, Wahbeh et al. found themes relating to symptoms and disease transmission in COVID-related tweets by 119 medical professionals [16], while analysis of a Twitter account compiling anonymous tweets by HCPs highlighted numerous calls to bolster the health system and provide PPE [17]. For HCPs looking for clinically-relevant advice or anecdotes, it can be difficult to find the most relevant authors unless they are already in the right social circles. Furthermore, because of the high volume of non-expert conversation, the terms that one would expect to find in clinically-meaningful information can also be found in mundane and non-expert posts as well as in myths and misinformation [18]. In the case of COVID-19, even within the posts that mention the pandemic, the global impact on everyday life has essentially put “popularity” at odds with medical usefulness.

Automating clinical relevance filtering

Framed as an information retrieval problem, our task is to extract and cluster clinically relevant social media posts by reputable authors, who form a tiny minority of the general population. For the purposes of this study, we define information as clinically relevant if it is technical in nature and intended to help characterize, prevent, diagnose, or treat the disease under consideration. This definition helps to characterize and remove irrelevant information, especially given the low proportion of clinical tweets compared to noise. While we exclusively consider COVID-19 and HCP-authored Twitter data in this study, the problem formulation and approach can be applied to other healthcare topics or social media platforms. Prior analyses of social media for public health have taken several approaches that vary in how much supervision is required. One option is to manually label the relevance of a subset of posts, an approach that has shown promise for identifying adverse drug reactions on social media [19], [20], [21]. This is the most straightforward approach, but is difficult to scale and requires expert annotation. Other techniques typically use some form of topic modeling, often based on Latent Dirichlet Allocation (LDA) [22]. Since these traditional topic models try to represent all posts, including irrelevant ones, some upfront labeling and filtering is still typically required [23], [24], [25]. Hierarchical topic models are another strategy that may facilitate interpretation by connecting related topics [26], [27], enabling individual topics to be more granular. Finally, variants of LDA have been proposed to replace manual document labeling with priors on the topics themselves; for example, SeededLDA can build models around topics for which one or more keywords are known [28]. A recent study by Ferner et al. [29] applies a similar seeded approach with automatically-selected seeds to improve topic quality. However, initial exploration of COVID-19 Twitter data suggested that even these priors may not be strong enough to overcome the bias towards irrelevant topics; we therefore aimed to develop a filtering strategy that could make use of well-established topic modeling tools without any manual labeling. We take an iterative approach to finding the most clinically relevant documents within a dataset. Documents are automatically annotated for clinical concepts using MetaMap [30], which provides an initial approximation of clinical relevance (though prone to false positives [31]). Our method uses topic modeling to associate documents with similar content without supervision, then scores topics based on the relevance of the clinical concepts they contain. The documents are then filtered by their degree of association with the most relevant topics, and the process is repeated. The concept relevance estimates are refined in each iteration, thereby overcoming the noise in concept annotations as the filtering quality improves. We demonstrate the utility of our method by retrospectively analyzing 1 million automatically extracted COVID-related tweets by HCPs, resulting in a detailed picture of clinical discourse about the disease. We perform qualitative and quantitative comparisons of the method against traditional and seeded LDA approaches, and we test the importance of using clinical concepts by comparing to a version of the method that omits the concept extraction step. Finally, we simulate the use of our technique during the early stages of a pandemic by analyzing tweets in two-week time intervals. Our results suggest this method’s potential to efficiently surface useful information to a clinical audience without significant manual analysis, potentially before such information is announced in more formal channels.

Methods

In order to surface clinically relevant information in a highly noisy corpus, we develop a method based on two fundamental subroutines: topic modeling using LDA, and relevance filtering based on clinical concepts. Given an initial corpus of documents (tweets), denoted , we first apply an author-based heuristic (Section 2.1) to obtain a dataset that has a considerably higher prior likelihood for clinical relevance. Then, we use to produce a series of filtered subsets by finding topics, computing a relevance score for each topic, and removing documents containing clinically irrelevant topics. The result of this iterative process (Section 2.3) is a set of highly relevant tweets as well as an interpretable yet granular topic model. This process is summarized in Algorithm 1 and detailed in the following sections. Iterative relevance filtering

Heuristic author selection

To generate , we opt to only consider documents by authors who self-identify as HCPs. Social media norms suggest that it should be relatively straightforward to design a highly sensitive classifier for HCPs: audiences typically rely on author information to determine credibility on Twitter [32], so users posting about medical topics are incentivized to display their credentials. Thus, we filter for users whose name, handle, or bio contains any of 27 medical titles, professions, or keywords (for example, “MD”, “Dr”, “epidemiolog∗”, “public health”). Note that some authors use credentials falsely or in jest, and many credentialed authors post irrelevant content. This issue could be mitigated by isolating verified accounts, but we intentionally keep non-verified accounts since generally only people with large followings are verified, and this would eliminate several interesting posts from people with smaller followings and those who just began tweeting during the pandemic. We therefore intentionally allow these users’ documents to pass the heuristic selection; the subsequent relevance filtering process removes these false positives. Verification of this first heuristic filtering step can be found in Section 3.1.

Preprocessing and clinical concept extraction

For each document in the HCP-authored set , we preprocess the text using standard natural language processing (NLP) routines such as removing contractions, punctuation, HTML tags, and emoji. We lemmatize each word using NLTK’s WordNet lemmatizer [33], and remove stopwords and any query terms that were used to generate the original dataset (in our case study data, these were words explicitly referring to the coronavirus). In addition, we extract clinical concepts from each document with MetaMap18, a tool that uses symbolic NLP to identify UMLS Metathesaurus medical concepts2 [30]. For a given piece of clinical text, MetaMap outputs a series of “mentions,” or occurrences of a concept defined by a unique identifier (CUI), a preferred name from UMLS, one or more semantic types (e.g. disease/syndrome or clinical finding), and trigger words (a set of words that triggered the concept match). MetaMap also outputs a relevance score, but this was not used in our protocol because it correlated poorly with our desired criteria on Twitter data.

Iterative relevance filtering

We perform the following iterative procedure to produce corpus given and (for ).

Generate topics

Using the MALLET implementation of LDA [34], we generate a topic model over the documents in with k topics. We tested several values of k ranging from 10 to 200, and found that provides a good balance of detail and summarizability; filtering results are comparable across k values. Topic modeling results in a matrix that encodes topic probabilities: in particular, the value at is the probability that a word in document m was sampled from topic t. As described above, each document is also annotated with a certain number of concepts, which we will denote .

Score concepts

Concepts are scored by estimating the clinical relevance of each concept given its trigger word. More formally, we define relevance as a relationship between two corpora A and B where :where and are the number of occurrences of trigger word c in corpora A and B respectively, and represent the number of documents in each corpus, and is a small number to prevent division by zero. Intuitively, Eq. 1 measures how frequently concepts appear in preserved documents (A) as compared to discarded documents (). We assume that the topic-filtration process correctly separates a class of relevant documents (in A) from irrelevant documents (in B). Thus, a concept’s relevance is well-approximated by looking at the ratio of its frequencies in the relevant versus irrelevant corpus. A simpler approach might be to rank concepts by inverse English word frequency, but this tends to artificially elevate alphanumeric codes (often falsely annotated by MetaMap as genes) and suppress everyday words with medical definitions (e.g. “mask,” “vent”). The iterative nature of our protocol affords us the most direct comparison possible, i.e. documents from the same data source that are known to be irrelevant. The choice of reference set B is flexible: it could be held constant, or it could be set to the previously-generated corpus . Empirically, we found that a hybrid of these two approaches results in the most meaningful scores:In other words, the relevance scores are initialized using the unfiltered set as reference, comparing HCP to non-HCP texts. In subsequent sections, serves as a better baseline because of its drastically improved signal-to-noise ratio compared to . We then hold as a fixed baseline, which helps to stabilize the relevance scores over multiple iterations, and avoids honing in on a particular topic at the expense of others. We also apply this relevance metric as a pre-filter on the MetaMap concepts: any concepts with (the concept occurred less frequently in doctor tweets than non-doctor tweets) are removed. This helps mitigate the signal-to-noise ratio from the very beginning, which clarifies the results of the next step.

Score topics

Each topic is given a score based on the relevance of the concepts in tweets that are associated with it. Given the document-topic probability matrix , the score of topic t isThis favors topics for which the documents drawn most heavily from the topic also contain highly relevant concepts. Note that we do not directly test for concept relevance among the topic words ; this allows for clinically-relevant words that are not annotated by MetaMap (e.g. too new to appear in UMLS) to weigh heavily in topics without penalty. We designate topics as “relevant” by choosing a threshold and retaining topics that satisfywhere and are the maximal and minimal topic scores, respectively. We denote this set of relevant topics , of size . The threshold reflects the diversity of clinically-relevant topics that is desired; values closer to 1 will tend to keep only the topics with the most clinical terms. We chose by examining the distribution of topic scores in an initial 100-topic model, an analysis that can easily be done on a new dataset. This thresholding scheme allows for variation in how many topics are selected: as the algorithm progresses, the number of topics retained increases with the prevalence of relevant content. We found that after about three rounds of filtering, the number of topics preserved increased significantly, indicating a good stopping point.

Filter documents

Finally, we select the documents that are highly associated with relevant topics. We generate the next corpus by simply choosing tweets in which the probability of sampling from a relevant topic is greater than a uniform probability over topics, i.e. if . At this point, the filtering process can be terminated if is sufficiently high, or the newly-filtered corpus can be passed on to another iteration of topic modeling and relevance filtering.

Results

First, we describe our COVID-19 tweet dataset, which forms a case study for the use of our method. Then we present the results of the method on this data (Section 3.2), a validation of the use of concept extraction (Section 3.4 proof-of-concept for analysis on time-limited datasets (Section 3.5).

COVID-19 tweets underscore the need for relevance filtering

We illustrate the use of our method on a publicly-available COVID-19 Twitter dataset [35], comprising over 420 million tweets (as of June 21, 2020) that contain coronavirus-related keywords such as coronavirus, 2019nCoV, and covid19. The dataset is pre-filtered, with non-English tweets and retweets removed. Tweets from accounts listed as bots or those that tweet more than 400 times in 1 day were also removed. Using this pre-filtered set, we retrieved 52.9 million tweets posted between January 8 and June 21, 2020 using the twarc command line tool. Notably, many HCP-authored tweets were part of longer “threads,” or sequences of tweets by the same author, that were not fully covered by . We decided to expand the dataset in by including the complete threads, because the missing tweets often appeared to contain useful clinical information despite not explicitly mentioning COVID keywords. The final HCP-authored tweet set contained 990,756 threads, with 1,078,830 total tweets. We validated the initial HCP filtering step (Section 2.1) by sampling users in the dataset and annotating whether the users represented HCP individuals or organizations. Because HCPs comprise a very small fraction of the larger dataset, we sampled 500 users from the predicted-HCP set to estimate false positives and 500 users from the predicted-non-HCP set to estimate false negatives. Users were manually labeled by the three first authors as HCPs or non-HCPs based on screen name, username, and bio content, with the majority label taken as ground-truth. Since this heuristic filtering step was designed to capture as many HCPs as possible, we expected its negative predictive value (NPV) to be much stronger than its positive predictive value (PPV). Indeed, we observed a relatively low PPV of 58.2% and a high NPV of 98.6%. While the low PPV indicates that around 40% of the initial HCP set is irrelevant, we note that the filter still dramatically enhances the representation of true positives, which improves our topic modeling results. The subsequent relevance filtering process improves the proportion of true positives even further, removing about 87% of false-positive accounts and resulting in an overall PPV of 91.5% for identifying HCPs. As expected from the above analysis, the combined presence of non-HCP content and irrelevant content by HCPs resulted in tweets that vary dramatically in relevance, as illustrated in Table 1 . Some tweets introduce useful information, such as tweet (a) in the table. Many others contain no medical insights (tweet (b)). More subtly, however, tweet (c) contains clinical terms, but does not introduce novel information. Because of the preponderance of tweets like (b) and (c), when we attempted a large topic model () without relevance filtering, the clinically-relevant topics were vastly outnumbered by irrelevant ones. This validated the need for filtering out tweets with spurious relevance and preferentially surfacing tweets like (a).
Table 1

Paraphrased example tweets from the HCP-authored subset of the dataset.

Paraphrased example tweets from the HCP-authored subset of the dataset.

Relevance filtering produces high-quality clinical topics

We performed three rounds of filtering on the HCP-authored dataset, resulting in a dataset of 107,794 tweets. Roughly 38–40 topics were selected as relevant in each iteration, but 85 topics would have been selected to proceed to the fourth iteration, indicating that most of the irrelevant data had been filtered out by this point. The topics extracted from the third level of filtering (), shown in Fig. 1 , demonstrate clear clinical relevance. For example, several topics describe clinical presentations of COVID-19, ranging from the most common symptoms (topic #1, fever and cough) to rarer manifestations that received buzz among the medical community (#28, venous thromboembolism; #26, Kawasaki syndrome). Some topics describe the underlying physiological conditions that lead to these symptoms, such as #17 (cytokine storms) and #19 (the ACE2 receptor, which is implicated in viral entry to the cell). Still other topics discuss new and emerging treatments, such as #16 (convalescent plasma therapy), #2 (hydroxychloroquine and azithromycin), #14 (dexamethasone) and #15 (remdesivir).
Fig. 1

Topics generated after three iterations of relevance filtering (i.e. from ). The upper section shows the top 40 highest-scoring topics, while the lower section shows the 10 lowest-scoring topics. Both sections are sorted vertically in order of the date of maximum intensity. The heat map colors indicate the popularity of each topic per day, with yellow representing the peak of popularity for the topic.

Topics generated after three iterations of relevance filtering (i.e. from ). The upper section shows the top 40 highest-scoring topics, while the lower section shows the 10 lowest-scoring topics. Both sections are sorted vertically in order of the date of maximum intensity. The heat map colors indicate the popularity of each topic per day, with yellow representing the peak of popularity for the topic. The third-iteration model also contains several false positives or irrelevant topics. A few of these are mistakenly scored as relevant, such as #23 (case reports) and #29 (supporting evidence); these topics likely co-occur frequently with clinical terms. Topics that are correctly scored as irrelevant often tend to deal with the boilerplate aspects of clinical tweets, such as #91 (announcing study pre-prints), as well as topics adjacent to COVID-19 but not directly applicable (#95 and #96 refer to secondary effects of the pandemic on healthcare). Interestingly, the topics considered least relevant (#99 and #100) are the ones that deal with surgical and everyday masks, respectively. These tweets are likely considered irrelevant because they often touch on the U.S. politicization of mask wearing, or address the topic in a public-safety announcement format, such as “COVID is still spreading out there. Wear your mask. Practice social distancing.” Irrelevant topics will always be present in some frequency because they co-occur in the same documents as relevant topics, but by presenting the topics in ranked order, the model still facilitates interpretation over an unsorted topic list.

Relevance filtering produces higher-quality topics than traditional and seeded LDA

We validated the performance of our iterative filtering technique by conducting a quantitative and qualitative comparison of topics generated from the final filtered set with those generated using traditional and seeded LDA approaches. These methods were tested on the HCP-authored tweet set, so the prevalence of clinical content was considerably higher than it would be in a random sample of the larger COVID-19 dataset. For traditional LDA, we used MALLET [34], the same implementation used in our pipeline. SeededLDA was tested using the implementation provided by Watanabe and Zhou [36]. We initialized SeededLDA with two different sets of seeds that would resemble a reasonable expert-derived initialization: Concepts. Each topic was seeded with one of the most common single-word UMLS concepts in the filtered tweet set. The top 5 concepts were “lung,” “plasma,” “pneumonia,” “hydroxychloroquine,” and “ards.” Topics. Each topic was seeded with the top three words from one of the highest-scoring topics in the relevance-filtered 100-topic model. For example, the top three topics were “fever, symptom, cough,” “hydroxychloroquine, hcq, chloroquine,” and “sars, human, coronaviruses.” We quantitatively compared each of these four methods according to two metrics that roughly measure topic quality. The first was the fraction of the top 10 words for each topic that were annotated by MetaMap as a UMLS concept, which approximates the amount of clinical interest in the topic model as a whole. The second was UMass coherence, a well-established metric that aims to correlate with human judgments of topic interpretability [37]. Each of the four methods was run 5 times at , and 50 topics to compute the two metrics3 . The results, shown in Fig. 2 , show that relevance filtering produces more clinically interesting and coherent topics across different values of k. Note that relevance filtering should necessarily produce more clinically relevant results than traditional LDA, since our method specifically filters for topics containing clinical concept mentions. However, it also performs better than SeededLDA, even when highly clinically-relevant words are provided to that method as seeds. Similarly, we find that relevance-filtered topics are the most coherent out of the four methods, while SeededLDA’s performance is somewhere between traditional LDA and relevance filtering.
Fig. 2

Comparison of the iterative relevance filtering method with traditional and seeded LDA approaches by two metrics, proportion of topic words annotated by MetaMap and the UMass coherence score. Error bars and shaded regions indicate 95% confidence intervals around the mean over 5 trials.

Comparison of the iterative relevance filtering method with traditional and seeded LDA approaches by two metrics, proportion of topic words annotated by MetaMap and the UMass coherence score. Error bars and shaded regions indicate 95% confidence intervals around the mean over 5 trials. The observation of higher topic coherence for relevance filtering was confirmed in a qualitative comparison of the topic words generated by each method. Table 2 shows the top 5 words for each topic in a 20-topic model generated by each method. For SeededLDA, we observe some plausibly meaningful topics, such as “lung, patient, risk, disease, high” and “symptom, illness, mild, home, stay” (seed words italicized); however, most of the SeededLDA topics have little to do with their seed words. Several topics share common words in the corpus, such as “pandemic” and “health.” Notably, the SeededLDA model initialized with top topics from the filtered topic model still failed to associate other clinical terms with the seeds (e.g. the “cell, spike, protein” topic was merged with terms about news about UK lockdowns and travel). This suggests a lingering susceptibility to irrelevant content that would need to be mitigated in other ways if SeededLDA were used on this task.
Table 2

Comparison of 20-topic models generated by various approaches: (a) SeededLDA seeded with the top 20 most relevant clinical concepts; (b) SeededLDA seeded with the first three words of the 20 highest-scoring topics in Fig. 1; (c) a traditional MALLET model on the initial HCP-authored tweet corpus; and (d) a MALLET model trained on the final filtered tweet corpus. Words provided as seeds to the SeededLDA algorithm are italicized. Topics are presented in the arbitrary order output by each algorithm.

(a) SeededLDA with Concepts
(b) SeededLDA with Topics

lung, patient, risk, disease, highsymptom, cough, fever, day, like
plasma, late, information, help, newhydroxychloroquine, hcq, chloroquine, read, article
pneumonia, care, hospital, patient, doctorhuman, sars, coronaviruses, vaccine, china
hydroxychloroquine, news, read, article, goodcommon, pneumonia, cold, people, know
ards, time, life, week, yeartreat, anti, drug, trump, american
syndrome, home, stay, family, daycell, spike, protein, news, uk
antibodies, india, lockdown, fight, peoplesymptom, illness, mild, home, stay
sars, disease, infection, human, spreadprevent, infection, antibiotic, mask, spread
cough, mask, social, spread, facerespiratory, severe, acute, care, hospital
fever, china, country, world, outbreakinfection, antibody, immunity, test, positive
cell, people, know, dont, likeyear, flu, influenza, time, week
dexamethasone, business, pay, pandemic, joblung, injury, pulmonary, dr, join
cancer, dr, join, pandemic, todaypotential, treatment, prevention, health, public
treatment, vaccine, use, study, druglife, save, dexamethasone, work, thank
azithromycin, trump, american, president, lietreatment, drug, remdesivir, patient, study
oxygen, health, public, government, responserecover, therapy, plasma, india, lockdown
antiviral, work, thank, help, supportsevere, storm, cytokine, business, pay
diabetes, health, pandemic, people, communitydisease, condition, diabetes, people, risk
pcr, test, positive, contact, peopleace, receptor, inhibitor, state, new
flu, case, death, new, number
high, ards, prone, case, death

(c) Traditional LDA
(d) Iterative Relevance Filtering

week, good, dont, thing, yearrisk, high, blood, heart, lung
open, travel, close, reopen, foodsars, cell, viral, human, ace
business, government, job, crisis, paypeople, flu, death, die, rate
dr, today, live, question, pmpatient, treatment, evidence, good, life
test, positive, contact, symptom, peoplepatient, pt, icu, ventilator, require
vaccine, study, patient, treatment, researchsymptom, cough, respiratory, fever, droplet
time, child, family, school, feelpatient, health, doctor, hospital, care
health, pandemic, public, response, stateimmune, response, infection, level, cytokine
lockdown, fight, life, india, savestudy, data, outcome, mortality, group
people, die, life, kill, stopdrug, trial, hydroxychloroquine, treatment, remdesivir
case, death, report, number, daytest, antibody, positive, result, negative
news, china, world, country, ukmask, wear, face, protect, public
pandemic, community, change, impact, riskday, case, symptom, infection, report
work, support, great, team, pandemicdisease, severe, child, infectious, syndrome
read, data, article, important, greatpatient, cancer, pandemic, treatment, impact
patient, care, hospital, doctor, medicalvaccine, trial, develop, plasma, recover
disease, infection, risk, flu, sarswork, great, dr, article, today
mask, home, stay, spread, socialpatient, pneumonia, clinical, ct, finding
late, learn, information, check, freetransmission, asymptomatic, spread, infection, contact
trump, american, president, medium, housepeople, dont, question, lot, time
Comparison of 20-topic models generated by various approaches: (a) SeededLDA seeded with the top 20 most relevant clinical concepts; (b) SeededLDA seeded with the first three words of the 20 highest-scoring topics in Fig. 1; (c) a traditional MALLET model on the initial HCP-authored tweet corpus; and (d) a MALLET model trained on the final filtered tweet corpus. Words provided as seeds to the SeededLDA algorithm are italicized. Topics are presented in the arbitrary order output by each algorithm. Interestingly, traditional LDA produces several interpretable topics, such as “case, death, report, number, day” and “disease, infection, risk, flu, sars.” However, these topics are overall less clinically relevant than the model trained on the filtered set, which includes topics like “patient, pt, icu, ventilator, require” and “transmission, asymptomatic, spread, infection, contact.” Taken together, the quantitative and visual assessments of the four methods indicate that relevance filtering produces the most coherent topics overall, while traditional LDA and SeededLDA are roughly comparable (although SeededLDA tended to merge clinical seed words with unrelated topic words, rendering its results less human-interpretable). Relevance filtering likely eliminated numerous political and economic tweets, leading to the observed improvement in topic quality over traditional LDA.

Concept extraction improves focus on clinical terms

To validate our use of MetaMap concept annotations when calculating relevance, we ran a version of our iterative filtering routine that entirely omitted clinical concepts. In other words, the relevance of a topic (Eq. 3) was computed not as the sum of relevances over concepts, but instead over all words in each tweet (excluding stopwords and words explicitly mentioning the coronavirus). This comparison therefore reflects the marginal benefit of directing the relevance filtering toward words already known to be clinically relevant (subject to MetaMap error). First, we compared the words that were predicted to be most and least relevant by each method, shown in Table 3 . Relevance is calculated using Eq. 2 for all unigrams, bigrams, and trigrams; this therefore also serves as a measure of what phrases are most “enriched” in the relevant tweet set compared to the irrelevant tweet set. The first column, which shows the enrichment of relative to , suggests that heuristic author filtering alone establishes a fairly strong baseline, independent of the use of clinical concepts. Still, after three rounds of relevance filtering, the top phrases in show a marked improvement over . Using concepts in the filtering process led to an emphasis on clinical content (“lung,” “respiratory,” “ards”), while using all words resulted in a greater proportion of epidemiological content (“mortality,” “asymptomatic,” “growth rate”). This could be because of a natural bias in UMLS toward concepts used in a hospital setting, or because epidemiological topics received the most sustained attention while areas of medical interest shifted. Therefore, while using concepts better suited our objective of extracting clinically-relevant information in this case, omitting the MetaMap step in our pipeline could still result in useful filtering for a different application.
Table 3

Words and phrases that were designated most (upper half) and least (lower half) relevant according to Eq. 2 (relevance values shown in parentheses). The first column indicates the initial relevance estimates computed after heuristic author filtering; the right two columns list the relevances after three rounds of filtering with and without concept annotations.

D(1)D(4) with conceptsD(4) without concepts
1medtwitter (6.33)cells (20.18)cells (28.71)
2publichealth (4.70)lung (17.67)mortality (28.05)
3physicians (4.14)hcq (16.03)rate (26.57)
4patients with (3.88)trial (15.85)asymptomatic (22.21)
5pts (3.85)patients with (13.96)rate of (20.66)
6clinical (3.81)severe (13.64)fatality (18.86)
7physician (3.66)respiratory (13.63)mild (18.41)
8icu (3.44)blood (12.97)growth rate (17.24)
9surgery (3.34)antibodies (12.46)viral (16.51)
10md (3.33)ards (12.40)ace2 (16.24)

1f∗∗∗ (0.44)business (0.18)trump (0.14)
2s∗∗∗ (0.48)leadership (0.20)business (0.15)
3f∗∗∗ing (0.48)businesses (0.23)bbc news (0.19)
4petition (0.49)students (0.23)bbc (0.20)
5the petition (0.50)government (0.23)president (0.21)
6rt (0.50)trump (0.23)news coronavirus (0.24)
7sign the petition (0.53)crisis (0.24)bbc news coronavirus (0.25)
8democrats (0.53)county (0.24)the latest (0.25)
9sign the (0.53)pm (0.24)businesses (0.26)
10the petition via (0.54)economy (0.25)amid (0.26)
Words and phrases that were designated most (upper half) and least (lower half) relevant according to Eq. 2 (relevance values shown in parentheses). The first column indicates the initial relevance estimates computed after heuristic author filtering; the right two columns list the relevances after three rounds of filtering with and without concept annotations. Next, to ensure our method was accurately discriminating relevant and irrelevant tweets, we examined the effect of filtering on several topics known to be either relevant or irrelevant to the pandemic. With the guidance of a clinician, 12 categories and associated keywords were chosen such that if any two of the keywords were present in a tweet, its relevance could be gauged with relative certainty. For example, any tweet containing both “anosmia” and “dysgeusia” should most likely never be eliminated. Similarly, any tweet containing the names of political leaders is most likely irrelevant. A total of 26,851 tweets were used for this analysis. Fig. 3 shows the proportion of tweets in each category that were retained by the filtering process in each iteration, with the darkest bar representing the proportion kept after three rounds. Based on the aggregation of categories to the right of the figure, using concept extraction leads to an increase in relevant tweets preserved (72.5% with concepts, 55.8% without), and a decrease in irrelevant tweets (2.5% with concepts, 5.9% without). Concept filtering performed especially well on the “Drugs” category, likely because the drug mentions were consistently annotated and scored well for relevance. On the other hand, concept-based filtering performed poorly by this test on “Chilblains” and “Anosmia,” both of which are referenced using common words (“toe,” “smell”) that were ranked lower by the concept relevance metric than other clinical terms. While the categories used here are imperfect representations of relevance and irrelevance, concept extraction does provide an advantage in preserving the correct sets of tweets.
Fig. 3

Fraction of tweets preserved by two different models (with and without using clinical concepts for relevance filtering) for each of 12 pre-defined tweet categories, including clinically-relevant subjects (first seven bars) and irrelevant ones (next five). The progressively darker bars represent successive stages of filtering. The parenthesized number indicates the number of tweets that fell into each category. The total fractions for the irrelevant and irrelevant categories are shown in the right panel.

Fraction of tweets preserved by two different models (with and without using clinical concepts for relevance filtering) for each of 12 pre-defined tweet categories, including clinically-relevant subjects (first seven bars) and irrelevant ones (next five). The progressively darker bars represent successive stages of filtering. The parenthesized number indicates the number of tweets that fell into each category. The total fractions for the irrelevant and irrelevant categories are shown in the right panel.

Real-time automatic relevance filtering on Twitter complements academic literature search

While the topic models analyzed above were built retrospectively on a dataset containing nearly six months worth of tweets, applying our method during the early stages of a pandemic would require a more real-time approach. We therefore investigated whether applying automatic relevance filtering to time-windowed subsets of the data could recover topics of clinical interest, or micro-trends, during those periods. This experiment also provided a natural opportunity to probe the time-scale differences between Twitter and academic articles, two information sources that evolved at different rates throughout the pandemic. We hypothesized that clinical keywords would be surfaced in topic models soon after their first mention on Twitter, and that they would appear in HCP-authored tweets and clinically-relevant topics before they appeared in academic articles. To generate time-windowed topic models, we first split the dataset into twenty 2-week subsets, where the subsets overlapped each other by 1 week. Topic models with topics were generated after two rounds of relevance filtering on each subset. The resulting topics were highly granular and highlighted new clinical concepts from week to week, similar to the topics shown in Fig. 1. From these topics, we curated a set of twelve diverse topics that were of known clinical interest and that could be identified fairly unambiguously using a small set of keywords. These keywords were converted to regular expressions (to allow for variations like “radiology” and “radiological”), then used to search both our dataset of HCP-authored tweets and CORD-19, a dataset of COVID-related publications [38]. Fig. 4 shows the results of this analysis for each of the twelve topics.
Fig. 4

Incidence of selected topics of clinical interest in HCP-authored tweets, time-limited topic models, and academic publications. The number of tweets containing the bolded keywords is plotted in blue as a 7-day rolling sum (note the different y-axis scales), while the red heatmap bar shows the number of new publications in each week. Time intervals are highlighted in green if the topic keywords appear in the topic model for that interval (specifically, in the top ten words for each topic). The black carets mark the date of the first tweet (paraphrased at left of each plot) and the first publication relevant to the topic.

Incidence of selected topics of clinical interest in HCP-authored tweets, time-limited topic models, and academic publications. The number of tweets containing the bolded keywords is plotted in blue as a 7-day rolling sum (note the different y-axis scales), while the red heatmap bar shows the number of new publications in each week. Time intervals are highlighted in green if the topic keywords appear in the topic model for that interval (specifically, in the top ten words for each topic). The black carets mark the date of the first tweet (paraphrased at left of each plot) and the first publication relevant to the topic.

Comparison with initial tweet appearance

Many of the keywords appear in the time-windowed topic models in the same week as or shortly after the first tweet that contains them (indicated by the upper black caret). This is a remarkable finding given that some of these keywords are mentioned in fewer than 100 tweets per week (out of over 40,000 HCP-authored tweets per week on average). The cases in which topic model appearance is delayed from the first tweet mention, such as thrombosis, generally have even smaller tweet counts; however, as shown below, these tweets could still be found within other clinically-relevant topics. These results support the notion that relevance-filtered topic models can be a fairly sensitive indicator of clinical interest.

Comparison with academic publications

Next, we consider the question of whether the time-windowed topic models surface topics of interest in advance of academic publications. Note that this is only possible when the first tweets about a topic appear before the first publication, which occurred for six out of the twelve example topics. Even so, Fig. 4 shows that for the most part, the time-windowed topic models surface topics of interest at the same time or prior to their appearance in academic publications. For instance, topics about clinical trials and approvals for the antiviral drug remdesivir appeared in almost all time-windowed topic models from Jan. 26 onward, while the first mention of the drug in CORD-19 was only in mid-February. Another example is the micro-trend discussing the use of ibuprofen to treat COVID-19 symptoms, which became popular and controversial in mid-March and was briefly addressed in a March 25 article. These cases support the usefulness of Twitter topics in surfacing clinical research with long lead times before publication, as well as potentially controversial and rapidly developing micro-trends. In contrast, we found that publications for the concepts related to cytokine and ventilators predate their first appearance in the time-windowed topic models. This seems to be because the bulk of discussion of these topics in our English-language dataset does not begin until March, when COVID-19 first started to hit English-speaking countries. While early tweets mentioning these topics were present in the dataset, they were typically isolated and served to highlight publications describing the disease in early epicenters like China (e.g. [39] is an article from late January referencing ARDS). This reflects a fundamental drawback to Twitter trend analysis: in order to appear in a topic model, the topic must be actively discussed by HCPs on Twitter, who are in some ways systematically non-representative of the global medical community. Another complication of this analysis is that some concepts (for example, ace and zoonotic) appear in both time-windowed topic models and publications at the very start of January, implying that our dataset only starts amid existing discussion of these topics.

Evolution of time-windowed topics

Most of the example topics were represented across several two-week windows, reflecting continued clinical interest after their initial discovery. To illustrate how the content of the topics changed throughout these time intervals, Fig. 5 illustrates word clouds for topics containing the keywords for two of the example topics, anosmia and thrombosis.
Fig. 5

Topics containing the same surfaced clinical concepts plotted across time. Topics containing the concept anosmia from the time intervals 3/8–3/22, 3/15–3/29, and 3/22–4/05 are shown on top. Topics containing the concept thrombosis from the time intervals 3/29–4/12, 4/05–4/19, and 4/19–5/3 are shown at the bottom. Each topic is rendered as a word cloud; the size of the words correlates to its weight in the topic. A paraphrased tweet belonging to each topic along with the topic’s clinical relevance ranking relative to other topics in that time interval are also shown.

Topics containing the same surfaced clinical concepts plotted across time. Topics containing the concept anosmia from the time intervals 3/8–3/22, 3/15–3/29, and 3/22–4/05 are shown on top. Topics containing the concept thrombosis from the time intervals 3/29–4/12, 4/05–4/19, and 4/19–5/3 are shown at the bottom. Each topic is rendered as a word cloud; the size of the words correlates to its weight in the topic. A paraphrased tweet belonging to each topic along with the topic’s clinical relevance ranking relative to other topics in that time interval are also shown. While anosmia is now known to be a symptom of COVID-19, in March 2020 the connection between anosmia and COVID-19 was not yet well established. In topics that contain anosmia-related keywords from three consecutive time windows (Fig. 5, top), words describing loss of smell grow progressively more significant, which tracks with the increasing number of tweets about anosmia during this time period. A similar trend can be seen for topics related to thrombosis (blood clotting, Fig. 5, bottom), although the keywords are initially mixed together with words related to lung failure. Even so, the tweets highly associated with this early topic contain relevant mentions of thrombosis, underscoring the importance of looking not only at the topic words, but at the texts they are drawn from.

Discussion

This study provides a new look at social media for rapidly-evolving public health situations, and develops a strategy for extracting granular clinical topics without manual labeling. As with all social media applications, a key challenge in information extraction from Twitter is the signal-to-noise ratio: our filtering process reduced the initial COVID dataset to about 0.2% of its original size. Furthermore, because of the pandemic’s impact on everyday life, many tweets can contain medical terminology without necessarily imparting clinically relevant information. Our proposed technique resolves these issues by applying topic modeling and concept extraction in tandem, resulting in progressively better estimates of clinical relevance. Traditional topic modeling is a valuable first step in understanding the contents of any textual dataset, and we observed that our flat topic models often naturally grouped together relevant and irrelevant information. However, the larger and more granular our models became, the harder it was to find relevant topics without a ranking strategy (which led to the development of our method). On the other hand, MetaMap concept extraction can identify relevant phrases regardless of their frequency, a useful complement to statistical NLP methods. Using these annotations to rank the topic models allows one to quickly discard irrelevant categories, improving interpretability considerably for larger models. Concept extraction therefore approximates a physician’s prior belief of which topics should be considered relevant, while the topic-document mapping approximates which documents should be considered related. An iterative approach is key to enabling topic modeling and concept extraction to refine and validate each other’s results. For example, in early iterations, we observed many tweets that were associated with relevant topics because they contained clinical terminology, but that were not themselves written in a medical “frame.” As these tweets were carried forward into subsequent levels, however, topics became more relevant overall, and tweets that used clinical terminology in a non-medical context became sequestered into their own topics. We note that the filtered topic sets do contain false positives, but their prevalence dramatically decreases over the course of filtering. The volume and diversity of clinically-relevant content found in this study is a testament to the opportunity for medical professionals to learn from each other and initiate new lines of research based on topics extracted from Twitter. Our filtered dataset seems to capture micro-trends of special interest to physicians such as emerging symptoms and clinical anecdotes, which augment and enrich an understanding gained from academic articles. In fact, the first tweets in these topics of interest often themselves contained links to publications, including on domain-specific platforms such as AuntMinnie.com (an online community of medical imaging professionals). This was especially the case for early clinical topics, perhaps because they originated in non-English language countries, as well as topics stemming from biological research (e.g. the role of the ACE2 receptor). In later months, the dataset includes more anecdotal discussions that document the English-speaking medical community’s evolving understanding of COVID-19. By surfacing both timely references to published findings and records of real-time clinical developments, topic models of HCP-authored tweets could greatly accelerate awareness of new developments outside of the circles in which they are shared. The relevance filtering strategy presented here suggests future research questions that can take advantage of the scale and high signal-to-noise ratio of data it generates. In particular, many downstream linguistic analyses, such as clinical concept co-occurrence or sentiment analysis, would benefit from a dataset that is highly focused on medical content. Time-limited topic models such as the ones described in Section 3.5 could also be aligned and compared with one another to automatically highlight new clinical indicators. Answering these research questions could help understand the events of 2020 as well as improve preparedness for future public-health emergencies. As with any study involving Twitter data, our analysis is subject to the biases and caveats inherent in social media. The dataset collected here only consisted of English tweets, but it could be more helpful to apply the technique across languages and capture a truly global conversation, perhaps by integrating a multilingual topic model [40]. Even among English-speaking HCPs, this dataset is hardly a representative sample of all medical opinion on the pandemic, since the demographics of physicians on Twitter are inevitably skewed by the demographics of Twitter itself. Finally, the rapid oscillations of interest in the generated topics suggest that HCPs, like other Twitter users, gravitate toward the most exciting stories at any given time. The degree of intensity of a topic, therefore, will always be an imperfect proxy for true clinical importance.

Conclusions

We present a method that combines topic modeling and clinical concept extraction to surface clinically relevant information from a noisy text dataset. Both topic modeling and concept annotation have their limitations on this type of data; nevertheless, we have shown that iterating between the two techniques can overcome these weaknesses. This is especially important in emergent situations such as COVID-19, where unconventional data sources and unsupervised information extraction are often the only option for rapid analysis. Our pipeline can be applied without modification to social media data on other medical topics, and the iterative filtering technique could be a helpful augmentation to topic models used for preliminary explorations of text data. In seeking to extract clinical information from social media data, this study addresses a problem space that has not yet been addressed to our knowledge. Indeed, in normal circumstances the rapid fluctuations of social media trends are antithetical to robust, reliable official guidance. As demonstrated by our analysis, however, HCP-authored tweets about COVID-19 can present a surprisingly bountiful window into the epicenters of a pandemic, and we hope that our method enables future research to gain deeper insights from the physician population on social media. By automatically bringing clinical tweets out of the limited audiences among whom they are shared, newly-emerging clinical observations can be disseminated quickly and clinicians everywhere can contribute to shared knowledge. Just as Twitter data reflects the rapidly-changing world, this method could enable the flexible, real-time analysis that a pandemic demands.

CRediT authorship contribution statement

Julia Wu: Methodology, Software, Investigation, Data curation, Visualization. Venkatesh Sivaraman: Methodology, Software, Investigation, Data curation, Visualization. Dheekshita Kumar: Methodology, Software, Investigation, Data curation, Visualization. Juan M. Banda: Data curation, Writing - review & editing, Supervision. David Sontag: Conceptualization, Writing - review & editing, Supervision, Project administration.

Declaration of Competing Interest

The authors declare that they have no known competing financial interests or personal relationships that could have appeared to influence the work reported in this paper.
  23 in total

1.  An overview of MetaMap: historical perspective and recent advances.

Authors:  Alan R Aronson; François-Michel Lang
Journal:  J Am Med Inform Assoc       Date:  2010 May-Jun       Impact factor: 4.497

2.  Social media and physicians: Exploring the benefits and challenges.

Authors:  Sirous Panahi; Jason Watson; Helen Partridge
Journal:  Health Informatics J       Date:  2014-07-18       Impact factor: 2.681

3.  Applying MetaMap to Medline for identifying novel associations in a large clinical dataset: a feasibility analysis.

Authors:  David A Hanauer; Mohammed Saeed; Kai Zheng; Qiaozhu Mei; Kerby Shedden; Alan R Aronson; Naren Ramakrishnan
Journal:  J Am Med Inform Assoc       Date:  2014-06-13       Impact factor: 4.497

4.  Acute cerebrovascular disease following COVID-19: a single center, retrospective, observational study.

Authors:  Yanan Li; Man Li; Mengdie Wang; Yifan Zhou; Jiang Chang; Ying Xian; David Wang; Ling Mao; Huijuan Jin; Bo Hu
Journal:  Stroke Vasc Neurol       Date:  2020-07-02

5.  Conversations and Medical News Frames on Twitter: Infodemiological Study on COVID-19 in South Korea.

Authors:  Han Woo Park; Sejung Park; Miyoung Chong
Journal:  J Med Internet Res       Date:  2020-05-05       Impact factor: 5.428

6.  Mining Physicians' Opinions on Social Media to Obtain Insights Into COVID-19: Mixed Methods Analysis.

Authors:  Abdullah Wahbeh; Tareq Nasralah; Mohammad Al-Ramahi; Omar El-Gayar
Journal:  JMIR Public Health Surveill       Date:  2020-06-18

7.  Characterization of Anonymous Physician Perspectives on COVID-19 Using Social Media Data.

Authors:  Katherine J Sullivan; Marisha Burden; Angela Keniston; Juan M Banda; Lawrence E Hunter
Journal:  Pac Symp Biocomput       Date:  2021

Review 8.  Going viral: A brief history of Chilblain-like skin lesions ("COVID toes") amidst the COVID-19 pandemic.

Authors:  Paul R Massey; Krystal M Jones
Journal:  Semin Oncol       Date:  2020-05-23       Impact factor: 4.929

9.  Incidence of thrombotic complications in critically ill ICU patients with COVID-19.

Authors:  F A Klok; M J H A Kruip; N J M van der Meer; M S Arbous; D A M P J Gommers; K M Kant; F H J Kaptein; J van Paassen; M A M Stals; M V Huisman; H Endeman
Journal:  Thromb Res       Date:  2020-04-10       Impact factor: 3.944

10.  The Assessment of Twitter's Potential for Outbreak Detection: Avian Influenza Case Study.

Authors:  Samira Yousefinaghani; Rozita Dara; Zvonimir Poljak; Theresa M Bernardo; Shayan Sharif
Journal:  Sci Rep       Date:  2019-12-03       Impact factor: 4.379

View more
  2 in total

1.  Novel informatics approaches to COVID-19 Research: From methods to applications.

Authors:  Hua Xu; David L Buckeridge; Fei Wang; Peter Tarczy-Hornoch
Journal:  J Biomed Inform       Date:  2022-02-16       Impact factor: 8.000

2.  Agenda-Setting for COVID-19: A Study of Large-Scale Economic News Coverage Using Natural Language Processing.

Authors:  Guang Lu; Martin Businger; Christian Dollfus; Thomas Wozniak; Matthes Fleck; Timo Heroth; Irina Lock; Janna Lipenkova
Journal:  Int J Data Sci Anal       Date:  2022-10-06
  2 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.