Vitamin D3 for Life. Live Enlightened.

Research libraryVitamin D3 For Life
Study design and methods

Secondary relevance to vitamin D This paper mainly addresses another topic and also reports a vitamin D analysis, result or scientific synthesis.

This paper mainly addresses another topic and also reports a vitamin D analysis, result or scientific synthesis.

Why this paper is included

Supporting source evidence:

As supplements to COVID-19 treatments, vitamin D and zinc elicited much less public interest than ivermectin and hydroxychloroquine, with no significant outbreaks or visible patterns.

Source: Data Summary and Trends of Drug Mention Tweets. View original paper

Relevance classification does not establish study quality, causation or editorial approval.

Study design Study design awaiting verification.

Study design awaiting verification

The available source does not establish a sufficiently clear study design.

Meta-analysis unclear · Blinding unclear / not reported · Research setting awaiting verification

How this paper was classified

Automatic source-based classification; awaiting editorial verification. This is not a quality score.

View supporting evidence in the original paper

What the study types mean
Systematic review
Uses explicit methods to identify, assess and summarise research on a defined question.
Scoping review
Maps the extent and characteristics of research on a topic.
Narrative review
Discusses existing research; systematic-review methods have not been established by this classification.
Review / evidence synthesis
Reviews existing research; the exact review methods need further assessment.
Randomised controlled trial
Assigns participants or groups to comparison interventions by chance.
Non-randomised intervention study
Examines an intervention without random allocation.
Cohort study
Examines exposures and outcomes over time within a defined group.
Case-control study
Compares people with an outcome against people without it, examining exposures.
Cross-sectional study
Examines a population at a particular point in time.
Observational study
Observes exposures and outcomes without assigning the exposure; the subtype is not established here.
Case report
Describes an individual case.
Case series
Describes a group of individual cases.
Secondary analysis
Analyses existing study data; this paper is not automatically another independent trial.
Laboratory study
Investigates biological processes in a laboratory setting.
Qualitative study
Examines experiences or meanings using qualitative methods.
Genetic instrumental-variable study
Uses genetic variation as an instrument to investigate relationships; this is not a randomised treatment trial.
Study protocol
Describes planned methods and is not evidence that the planned study has reported results.
Multiple reported designs
More than one design is explicitly reported; examine the supporting methods.
Study design awaiting verification
The available source does not establish a sufficiently clear study design.

Meta-analysis combines numerical results from studies. Blinding describes who was unaware of treatment allocation. Neither is a separate quality grade. Study design, vitamin D relevance and document format are independent filters.

Full studies

Characterizing Public Sentiments and Drug Interactions in the COVID-19 Pandemic Using Social Media: Natural Language Processing and Network Analysis

Study design awaiting verification · Journal of Medical Internet Research · 2025

Original publication title

Characterizing Public Sentiments and Drug Interactions in the COVID-19 Pandemic Using Social Media: Natural Language Processing and Network Analysis

Wanxin Li; Yining Hua; Peilin Zhou; Li Zhou; Xin Xu; Jie Yang

©Wanxin Li, Yining Hua, Peilin Zhou, Li Zhou, Xin Xu, Jie Yang. Originally published in the Journal of Medical Internet Research (https://www.jmir.org), 05.03.2025.

Original publication · Publisher record · CC BY 4.0

Source wording retained. Formatting, section navigation and display-title punctuation adapted for this research record.

Authors’ conclusion

Our study proposed a pipeline of using social media data and NLP techniques to mine potential drug information, timely track drug-related hot events, facilitate public health stakeholders to conduct reasonable policy enactment, monitor drug public opinion, and avoid malignant events during a public health emergency period. In addition, it can supplement the existing ADR and DDI databases by constructing multiple medical entity co-occurrence networks to provide real-world clues for future research. Our framework applies not only to the COVID-19 pandemic but also to other periods of epidemics or major social events.

It can also target other public health care foci such as vaccination.

An extract from the source publication. Read it in context.

At a glance

Abstract: What objectives does the paper state?

Harnessing drug-related data posted on social media in real-time can offer insights into how the pandemic impacts drug use and monitor misinformation. This study aimed to develop a natural language processing (NLP) pipeline tailored for the analysis of social media discourse on COVID-19–related drugs.

Source: Objective

Study methods

What methods does the paper describe?

Overview

As shown in Figure 1, the study workflow is organized into three primary stages: data collection, development of an NLP pipeline, and subsequent data analysis using the constructed pipeline. Initially, we curated a dataset of English tweets related to the COVID-19 pandemic. After a preprocessing phase that excluded tweets with URLs, an NLP pipeline was developed to extract and normalize the drugs and symptoms mentioned in these tweets. Finally, we examined the time trends of drug mentions, public sentiment, and discussion topics toward drugs, as well as the co-occurrence network of drug-drug and drug-symptom pairs [22].

Figure 1

Workflow of drug analysis with natural language processing on Twitter. LDA: latent Dirichlet allocation; METS-CoV: Medical Entity and Targeted Sentiment on COVID-19 Related Tweets; NLP: natural language processing; NER dataset containing medical entities and targeted sentiments from COVID-19–related tweets.

Figure image at the original source — open the original paper. This file is not included in this text import.

Data Collection and Preprocessing

COVID-19–related tweets from February 1, 2020, to April 30, 2022 were downloaded using Twitter’s application programming interface (API) through unique tweet IDs, which were obtained from a public dataset provided by Chen et al [29]. Due to the privacy restrictions of Twitter data, the raw tweets were not publicly available and could only be shared by tweet ID. Therefore, we downloaded tweets by Twitter API based on the provided tweet IDs. The downloaded data included full tweet texts and corresponding metadata such as timestamps and user information.

Tweets containing URLs were excluded from the analysis, as they often only contained summaries or quotations of the original tweet. The data collection process adhered to Twitter’s privacy and data use management policies.

NLP Pipeline Development

The NLP pipeline consists of 4 principal modules: NER, TSA, topic modeling, and drug network analysis. For the NER and TSA modules, we leveraged state-of-the-art models developed in our previous work “Medical Entity and Targeted Sentiment on COVID-19 Related Tweets (METS-CoV)” [22]. Details on model construction can be found in Figure S1 in the Multimedia Appendix 1.

Named Entity Recognition and Normalization

The NER model aims to extract drug entities from tweets. The model we developed, CT-BERT-NER (COVID Twitter with Bidirectional Encoder Representations from Transformers for Named Entity Recognition) [22], was constructed using the COVID-Twitter-BERT (CT-BERT), a widely adopted language model pretrained on 160 million COVID-19–related tweets. CT-BERT-NER was trained on the entire training set of the NER subset of METS-CoV [22]. Upon evaluation, it showed F1-scores of 86.35% for drug entity recognition and 81.85% for symptom entity recognition on the corresponding test set, respectively [22].

We used the model trained on all entity types (ie, disease, drug, symptom, vaccine, person, location, and organization) instead of on drug entities only to enable the nuanced differentiation of drug entities from other types of entities.

To standardize colloquial expressions of drugs among the extracted entities, we manually searched Wikipedia for NER-identified drug entities with a frequency of more than 1000 to map colloquial drug expressions and their standardized concepts (ie, drug trade names, chemical names, and generic names). We conducted an accuracy assessment using a random sample of 100 tweets for each of the top 5 most frequently mentioned drugs and symptoms, as identified through 2 methods: NER combined with lexicon-based extraction (NER+lexicon) and lexicon-based extraction alone, with a total of 1000 tweets being manual review.

Our results demonstrated that the NER+lexicon method achieved an accuracy rate of 97.8%, significantly surpassing the 89% accuracy achieved by the lexicon-only approach (χ21=61.4, P<.001). Further details on this comparison are available in Table S1 in Multimedia Appendix 1.

Targeted Sentiment Analysis

The TSA module is designed to analyze users’ sentiments toward specific drug entities within tweets. Inspired by BERT-SPC [30], we first concatenate the original tweet and the identified drug entity, separated by 1 special token “[SEP],” to form a combined tweet-entity sentence. The tweet-entity sentence is then fed into a pretrained language model to capture semantic features, which are subsequently passed to a linear layer for 3-class sentiment prediction (positive, neutral, or negative). Notably, instead of using the original BERT model, we used CT-BERT, which has been further trained on 97 million COVID-19–related tweets.

This adaptation enhances its understanding of COVID-19–related tweet data [22]. Therefore, although there existed several sentiment-specific embeddings and pretrained models [31-34], we chose the pretrained CT-BERT model as it was trained to understand COVID-19–related tweets. On the TSA test set of METS-COV, the model achieved an F1-score of 62.67% and an accuracy rate of 75.07% across 4 entity types: person, drug, disease, and vaccine. For our own TSA study, we randomly selected 100 drug-related tweets and assessed their emotional orientation toward drug entities using both model predictions and manual review by a researcher with medical expertise.

The results indicated that the model’s accuracy, when compared to manual review, was 77% (77/100), aligning closely with the TSA model’s original accuracy of 75.07%. Furthermore, both our hand-labeled fine-tuned dataset (METS-CoV) and the final applied dataset (169,659,956 drug-related tweets) were derived from the same source, ensuring the reliability and credibility of the predictions.

Topic Model Analysis

To discern prevailing public interests in the most discussed drugs, we implemented latent Dirichlet allocation (LDA) for topic modeling, using the LdaModel function from the Gensim package [35]. Topic numbers were determined based on conventional evaluation metrics, including low perplexity [36] and high coherence scores [37]. Detailed methodologies are delineated in Figure S2 in Multimedia Appendix 1.

Drug Network Analysis

To illustrate potential relationships among drugs, we constructed a drug network analysis module to generate incidence matrices according to a previous study [38] and visualize co-occurrence networks using Gephi [39] and ForceAtlas2 algorithm [40]. For enhanced comprehensiveness, we incorporated a variant supported by the Anatomical Therapeutic Chemical classification system (ATC) [41], in addition to the Gephi-based visualization. In addition, we used the NER model to extract symptom entities and normalize them through a presummarized lexicon list [42] to extend our analysis to drug-symptom networks.

The constructed networks feature nodes represented drugs (Table S3 in Multimedia Appendix 1) or symptoms (Table S4 in Multimedia Appendix 1). Node sizes displayed node degrees (ie, the number of linked entities). Edge weights denoted the cosine similarity score of 2 linked nodes. As our focus is not on causal relationships but rather on the interplay between entities, we used undirected graphs and semantic cosine similarity [43] as the distance metric just as we did in the previous work [38].

Cosine similarity is a widely implemented metric in information retrieval and related studies [44]. In our study, each drug or symptom entity can be represented as a vector, with each dimension of the vector corresponding to 1 tweet text. Details for calculation can be found in Methods in Multimedia Appendix 1.

Pipeline Deployment

Upon completion of the NLP pipeline, we proceeded to its deployment on the preprocessed dataset of COVID-19–related tweets. We first applied the NER and normalization module on the preprocessed dataset (ie, removing URLs) to extract and standardize drug entities to drug concepts. Then we filtered the preprocessed COVID-19–related tweets dataset to get the drug-related tweets dataset according to these drug concepts. Following this standardization, we conducted a distributional analysis of drug mentions to discern time trends, thereby capturing the evolving popularity of these drugs.

We also gather related news and the trend of weekly new COVID-19 cases to show a more holistic view of the shift in drug popularity over time. For clarity and simplicity, we only illustrate the top 5 most discussed drugs.

Subsequently, we used the TSA model for drug-related tweets of the top 5 drugs mentioned above to assign each drug entity a sentiment type. To gain a deeper understanding, we also conducted a time-trend analysis on the positive and negative tweets for the 5 drugs and visualized the results. Building upon our understanding of public sentiment, we turned to topic modeling via LDA in all drug-related tweets to explore the thematic concentrations in the discourse surrounding drugs. The model yielded the 20 most probable keywords and bigrams for each identified topic, enabling us to summarize the primary themes.

We further analyzed the topic distribution associated with each of the top 5 drugs.

Finally, we constructed co-occurrence networks for drug-drug and drug-symptom interactions to provide a relational overview that complements our earlier analyses. All 67 drugs with more than 1000 mentions and 69 symptoms with more than 250 mentions over time were included in the analysis. Meanwhile, we also zoomed in to analyze the 5 most-discussed drugs.

Statistical Analysis

The chi-square test was used to compare the accuracy differences between NER combined with lexicon and lexicon-based only. We used Python software (version 3.8) to conduct the statistical analyses and chose a P value of .001 as the statistically significant threshold.

Ethical Considerations

Ethical approval for this study was granted by the Institutional Review Board of School of Public Health, Zhejiang University (ZGL202201-2).

Source: Methods Source: Methods Source: Methods Source: Methods Source: Methods Source: Methods Source: Methods Source: Methods Source: Methods Source: Methods

Data Summary and Trends of Drug Mention Tweets

Results: Data Summary and Trends of Drug Mention Tweets

This study used a dataset consisting of 471,371,477 COVID-19–related tweets in English, which were collected between February 1, 2020, and April 30, 2022. After excluding tweets containing URLs, the final dataset used for this study consisted of 169,659,956 (36.0%) tweets from 103,682,686 users. Using CT-BERT-NER, we identified 2,124,757 drug-related tweets from 1,800,372 unique Twitter users, accounting for approximately 1.25% of the raw COVID-19–related tweets dataset. Table S2 in Multimedia Appendix 1 provides more detailed statistical results of the medical entity recognition.

Table S3 in Multimedia Appendix 1 presents the 67 most frequently mentioned drugs, each with an occurrence exceeding 1000 times. The most frequent taxonomies are ATC [41] N (nervous system drugs) and J (anti-infective drug). We ranked the total occurrence of all drugs and identified the top 5 most-mentioned drugs: ivermectin, hydroxychloroquine, remdesivir, zinc, and vitamin D to visualize their weekly time trends. Figure 2 presents these temporal trends. The new case counts were collected from the World Health Organization (WHO) [37] on a weekly basis, beginning on February 1, 2020.

Given that the dataset is confined to English-language tweets, the scope of new case counts was likewise restricted to the top 4 English-speaking nations with the highest Twitter activity: the United States, the United Kingdom, the Philippines, and Canada [38].

Figure 2

Weekly popularity trends of the top 5 most-mentioned drugs on Twitter examined with COVID-19–related tweets collected between February 1, 2020 and April 30, 2022. The left Y-axis represents the total number of tweets for each drug in a given week (unit: thousand tweets). The right Y-axis represents the weekly new case count (unit: million cases). CDC: Centers for Disease Control and Prevention; FDA: Food and Drug Administration; HCQ: hydroxychloroquine.

Figure image at the original source — open the original paper. This file is not included in this text import.

Among the 5 drugs, the public focused mostly on repurposed drugs (ie, hydroxychloroquine and ivermectin), followed by daily supplements (ie, zinc and vitamin D). The only officially approved drug among the 5, remdesivir, received the least attention. The frequency of discussion of hydroxychloroquine and ivermectin fluctuated significantly across time, which seemed to be related to relevant news events or policies (marked in Figure 2). In the early stage of the pandemic, drug-related discussions focused on hydroxychloroquine, with 2 prominent peaks occurring on May 24, 2020, and August 2, 2020.

Discussion of ivermectin began to increase in the later stages of the pandemic, with only 1 prominent peak located on September 5, 2021. In contrast, remdesivir received the least public attention, which increased only sporadically throughout the pandemic, with no apparent pattern and a much lower peak on May 3, 2020. As supplements to COVID-19 treatments, vitamin D and zinc elicited much less public interest than ivermectin and hydroxychloroquine, with no significant outbreaks or visible patterns.

Source: Data Summary and Trends of Drug Mention Tweets Source: Data Summary and Trends of Drug Mention Tweets Source: Data Summary and Trends of Drug Mention Tweets Source: Data Summary and Trends of Drug Mention Tweets

Changes in Sentiment for Five Most Frequent Mentioned Drugs

Results: Changes in Sentiment for Five Most Frequent Mentioned Drugs

We calculated the sentiment proportion for the 5 drugs and the weekly time trends of positive and negative tweets. Figure 3A shows the visualization of the overall attitude proportions. The public tended to hold positive and neutral attitudes toward the repurposed drugs, ivermectin and hydroxychloroquine. The immune supplements, zinc and vitamin D, were frequently mentioned with positive sentiments. The only COVID-19 drug approved by the Food and Drug Administration (FDA), remdesivir, received the lowest positive attitude, far lower than those of the other drugs.

Figure 3

Sentiment analyses of the 5 top-discussed drugs from February 1, 2020, to April 30, 2022, grouped according to their polarity, including (A) sentiment distribution, (B) weekly ratio of positive tweets, and (C) weekly ratio of negative tweets. The denominator of the percentage was the entities with sentiment. CDC: Centers for Disease Control and Prevention; EUA: emergency use authorization; FDA: Food and Drug Administration; HCQ: hydroxychloroquine.

Figure image at the original source — open the original paper. This file is not included in this text import.

Figures 3B and 3C present weekly trends of tweets expressing positive and negative attitudes, respectively. The major turning points of the trends tend to coincide with new government policies, major social events, and research findings. The criticism of remdesivir (Figure 3C) and ivermectin increased over time since September 2021, and the turning point for remdesivir came at almost the same time as emerging studies showing that the drug is ineffective [45] and has severe side effects [46-48].

For ivermectin, public sentiment was associated with announcements of health authorities and celebrity effects. For example, the FDA denouncing the use of ivermectin for COVID-19 on August 29t, 2021 had simultaneously increasing negative discussions.

Source: Changes in Sentiment for Five Most Frequent Mentioned Drugs Source: Changes in Sentiment for Five Most Frequent Mentioned Drugs Source: Changes in Sentiment for Five Most Frequent Mentioned Drugs

Topic Distributions of Drug-Mentioned Tweets

Results: Topic Distributions of Drug-Mentioned Tweets

We applied the LDA topic model to all 2,124,757 drug-related tweets and obtained 15 general topics based on their relatively high topic coherence scores and low confusion levels (further discussed in Figure S3 in Multimedia Appendix 1). We displayed the corresponding top 20 most likely keywords in Table 1 and assigned a theme for each topic from these keywords. The topic “clinical treatment effect of drugs” included 288,967 related tweets and dominated the discussions, accounting for 13.6% of all related tweets.

In addition, 251,571 (11.84%) were related to “physical symptoms,” whereas 220,125 (10.36%), 197,177 (9.28%), 174,868 (8.23%), 172,955 (8.14%), and 154,470 (7.27%) were related to “COVID-19 control,” “causes of death,” “general treatment,” “immune response,” and “daily supplement intake.” In addition to the overall topic summary, we explored the distribution of the 15 topics for the 5 drugs. Figure 4 shows a visualization of the distribution. For ivermectin, the prominent theme was “immune response.” In contrast, discussions of remdesivir centered on “hospital care.” Hydroxychloroquine received relatively even attention among the 3 topics “causes of death,” “drug scare,” and “COVID-19 control.” Vitamin D was frequently mentioned in tweets about “daily life,” and the main topics about zinc focused on “hospital care” and “COVID-19 control.”

Table 1

Topic model on drug-related tweets.

TopicKeywordsExampleNumber and Percentage of related tweets, n (%)
Clinical treatment effect of drugstreatment, covid, study, drug, effective, trial, hydroxychloroquine, prove, safe, covid, evidence, prevent, clinical, vaccine, recommend, cheap, infection, continue, antiviral, efficacy“@USERa Ivermectin is pretty safe but the evidence for it being efficacious against SARS-CoV-2 is lacking.”288,967 (13.60%)
Physical symptomsday, test, symptom, week, covid, positive, feel, month, steroid, bad, start, med, ago, sick, time, recover, antibiotic, hour, fine, insulin“When I had covid, it was mild fever for a day, &amp; it was gone”251,571 (11.84%)
COVID-19 controlcure, vaccine, spread, control, lie, people, drug, covid, push, approve, hydroxychloroquine, claim, force, medium, ban, talk, science, government, experimental, president“@USERa I agree with you re lockdown. Just not on HCQ and vaccines.”220,125 (10.36%)
Causes of deathdeath, people, die, covid, kill, reason, heart, drug, cancer, cocaine, dead, trust, epidemic, rate, bad, create, attack, sound, result, fentanyl“@USERa Of course, if they died 30 minutes after taking fentanyl but had a positive covid test, guess what their official cause of death is listed as?”197,177 (9.28%)
General treatmentdoctor, treat, patient, steroid, risk, covid, covid, severe, infection, blood, pill, medication, antibiotic, receive, prescribe, illness, lung, hospitalize, prescription, aspirin“@USERa migraines have a very specific causality (i had them for like 20 years), I wonder if the Covid version is one? -- I would try warm compress, NSAIDs, and maybe nasal irrigation with like a neti pot”174,868 (8.23%)
Immune responsevirus, system, body, immune, corona, zinc, fight, antibody, cure, immunity, bleach, deficiency, cell, response, kill, covid, inject, injectingdisinfectant, human, boost“In addition, mAbs have been shown to improve survival in patients hospitalized with COVID-19 who have not mounted their own immune response.”172,955 (8.14%)
Daily supplement intakevitamin, people, level, covid, eat, healthy, cold, flu, catch, protect, food, hand, low, stay, vit, survive, bad, chance, common, worry“@USERa regularly take vitamins and a Vitamin D supplement. I started taking the Vitamin D supplement because I wasn't going outside as much at the start of the pandemic. As soon as started taking the Vitamin D supplement, my blood work started to improve.”154,470 (7.27%)
Public paniclive, save, pandemic, life, start, lockdown, real, people, buy, time, basicallystart, money, watch, steroid, hit, hard, normal, deadly, cough, break“@USERa waste of time, politicians have organised orgy’s with cocaine, male &amp; female hookers, during lockdown! like they give a fuck about a petition hahaha”149,583 (7.04%)
Hospital carepatient, care, hospital, remdesivir, treatment, cocktail, covid, covid, injection, require, oxygen, admit, medical, lead, ventilator, pay, provide, health, remove, source“Both hospitalized and treated immediately with Oxygen &amp; Remdesivir for covid @ the same time. Both went into heavy psychosis.”118,136 (5.56%)
Daily lifedrink, stay, hear, lose, family, wait, water, love, leave, pandemic, friend, daily, close, rest, hope, lot, drop, head, play, time“Interesting situation. Got a call from a Mom, Family of 4 lives in a house. Son and her drinks SOULTOX everyday. Daughter and Dad don't. Dad got Covid, then daughter. Mom and Son tested negative 4xs over the 2 wks. Everyone is vaxed. Now she makes everyone drink SOULTOX now.”97,952 (4.61%)
Political electionsdem, trump, fake, nursinghome, news, pandemic, free, vote, ill, school, election, economy, release, access, truth, guy, forget, sense, deny, hoax“@realDonaldTrump Hey Captain Covid I VOTED FOR JOE BIDEN AND KAMALA HARRIS! The steroids and tranquilizers are making you more batshit crazy than usual. You should go back to the hospital.” 71,179 (3.35%)
Political crisis and discussiontrump, people, person, infect, dangerous, true, covid, condition, shit, happen, stock, send, woman, idea, stupid, destroy, contract, completely, potus, tablet“@realDonaldTrump @USERa At least Putin just poisons his political enemies -- Trump wants all Americans to drink poisons such as hydroxychloroquine and oleandrin -- there just aren't enough dead Americans from COVID-19 for Trump -- he wants to kill more with poison -- Trump is a quack ...”70,117 (3.30%)
Drug scarecountry, low, rate, dexamethasone, cost, covid, drug, recovery, black, base, reduce, sell, supply, explain, mortality, expect, increase, panic, produce, improve“Once the pandemic hit, stores really upped the prices of aloe vera leaves like i wouldn’t notice smh”60,981 (2.87%)
Personal precautionsmask, wear, medicine, social distance, add, avoid, business, plasma, measure, spray, confirm, skin, drive, advise, campaign, practice, oil, wash hand, air, hourly“@USER @USER @USERa Try working on your immune system. Covid depletes zinc and vitamin D. Try working from prevention instead of fear.”48,444 (2.28%)
Public health carereport, support, health, public, supplement, question, kid, child, datum, stage, issue, american, answer, term, prophylactic, mental, phase, safety, concern, inflammation“@USERa Then, even hcq, zinc, and zithromax had a estimated 50% success and the CDC and WHO said it didnt, so it shouldnt be used. Imagine half of the death tolls because of at least TRYING something instead of shitcanning it just because you are an “authority” that hates Trump.”48,232 (2.27%)

aUsername and other sensitive information were masked off using @USER. Public figures such as @realdonaldtrump are shown in their usernames.

Figure 4

Topic distribution of 5 top-discussed drugs.

Figure image at the original source — open the original paper. This file is not included in this text import.
Source: Topic Distributions of Drug-Mentioned Tweets Source: Topic Distributions of Drug-Mentioned Tweets Source: Topic Distributions of Drug-Mentioned Tweets

Results: Drug-Drug Network

The origin drug-drug network contained 67 drugs (nodes) with more than 1000 mentions and 1103 relations (edges) among them. A predefined similarity threshold (τ) was established to only visualize relationships with substantial co-occurrence, as measured by cosine similarities exceeding τ. After filtering it with a τ of 0.005, 62 drugs and 317 relations remained in the network. By using the Fast Unfolding (Louvain) algorithm built in Gephi for modularity classification [49], the drugs were clustered into 5 categories and were colored in Figure 5A.

The same network with drugs colored by ATC classification (12 types) was shown in Figure 5B for comparison. Drugs in the same group are denoted with the same color. Both figures share similar clustering characteristics, especially in psychotropic drugs ATC-N (Anatomical Therapeutic Chemical classification system, psychotropic drugs; eg, fentanyl, opium, and morphine) and anti-infectious agent ATC-J (Anatomical Therapeutic Chemical classification system, anti-infectious agents; eg, lopinavir, ritonavir, and azithromycin). However, drugs in the ATC-P (Anatomical Therapeutic Chemical classification system, antiparasitic drugs) group (ie, ivermectin, hydroxychloroquine, quinine, and chloroquine) are clustered with the ATC A group in Figure 5A.

The reason may partially lie in the fact that most parasites are intestinal [50], so most people who need to take antiparasitic drugs (ie, ATC-P drugs) often present concomitant digestive manifestations [51], thus necessitating the use of digestive medications (ie, ATC A drugs), therefore the 2 drug groups are closely related. Association between some of the significant drug-drug pairs like 2 HIV protease inhibitors ritonavir and lopinavir has been widely studied [52]. In addition, through the co-occurrence network, we observed several unusual drug pairings, such as midazolam and morphine, salbutamol and prednisone, and zinc and quinine.

These strong co-occurrences suggest potential unexplored synergistic effects, adverse reactions, or other public health concerns that warrant further investigation. For instance, we noted a distinct correlation between morphine and midazolam, drugs not typically combined in direct COVID-19 treatment. An analysis of all 376 tweets mentioning both drugs revealed that most discussions focused on end-of-life management for patients with COVID-19 and on conspiracy theories about the intentional misuse of these drugs, leading to deaths attributed to causes other than COVID-19 infection.

Source: Drug-Drug Network

Results: Drug-Symptom Network

The original drug-symptom network had 136 nodes (ie, 69 drugs and 67 symptoms) and 3099 edges. After filtering by τ of 0.05, 50 nodes and 71 edges remained and are shown in Figure 5C. We observed that the edges often represented symptoms and corresponding treatments, such as Tylenol for fever medication, suggesting the reliability of our association network. We also observed some side effect relations, such as remdesivir to acute kidney failure [46] and some novel associations receiving no clinical investigation like molnupiravir to circulatory failure, cocaine to chest cold, and vitamin D to malaise.

We visualized the top 10 closest drugs and symptoms with co-occurrence relationships to the 5 drugs under investigation (Figure S4 in Multimedia Appendix 1). These networks revealed the great relevance between hydroxychloroquine, ivermectin, and azithromycin from each other. Furthermore, remdesivir was also significantly associated with dexamethasone and tocilizumab.

Source: Drug-Symptom Network

Study limitations

Discussion: What limitations does the paper describe?

Certain limitations apply to this study. First, social media users can’t represent the general population. For example, Twitter users in the United States are younger, more democratic in their political affiliations, and the most prolific 10% of users create 80% of tweets [93] and older people with lower socioeconomic status may have limited access to social media [94], which may result in bias of our observations. The specific events, geographical contexts, and the dynamic nature of social media usage may also influence the observations.

Second, although we tried to automate the information extraction with deep learning, we still relied on an empirical lexicon to cluster different concept representations. This allowed us to effectively reduce false positives but not to avoid false negatives. Third, manual checks for symptom recognition suggested that approximately 2%-3% of the tweets may still be false positive (eg, lexical ambiguity like an American fever dream), which would lead to fake associations, despite the combination of rigorous rules and advanced NLP models based on deep learning.

Data accuracy, as well as the reliability of the network analysis, are also limited by the authenticity of social media data and the influence of noisy information and misinformation. However, the primary advantage of social media information is its vast scale and timeliness, which offers opportunities for advancing valuable research directions, such as identifying novel drug interactions. Finally, due to the relatively low accuracy of the TSA module (ie, 75.07%), future work should develop more effective NLP solutions to facilitate opinion mining.

Source: Limitations

Results

Data Summary and Trends of Drug Mention Tweets

This study used a dataset consisting of 471,371,477 COVID-19–related tweets in English, which were collected between February 1, 2020, and April 30, 2022. After excluding tweets containing URLs, the final dataset used for this study consisted of 169,659,956 (36.0%) tweets from 103,682,686 users. Using CT-BERT-NER, we identified 2,124,757 drug-related tweets from 1,800,372 unique Twitter users, accounting for approximately 1.25% of the raw COVID-19–related tweets dataset. Table S2 in Multimedia Appendix 1 provides more detailed statistical results of the medical entity recognition.

Table S3 in Multimedia Appendix 1 presents the 67 most frequently mentioned drugs, each with an occurrence exceeding 1000 times. The most frequent taxonomies are ATC [41] N (nervous system drugs) and J (anti-infective drug). We ranked the total occurrence of all drugs and identified the top 5 most-mentioned drugs: ivermectin, hydroxychloroquine, remdesivir, zinc, and vitamin D to visualize their weekly time trends. Figure 2 presents these temporal trends. The new case counts were collected from the World Health Organization (WHO) [37] on a weekly basis, beginning on February 1, 2020.

Given that the dataset is confined to English-language tweets, the scope of new case counts was likewise restricted to the top 4 English-speaking nations with the highest Twitter activity: the United States, the United Kingdom, the Philippines, and Canada [38].

Figure 2

Weekly popularity trends of the top 5 most-mentioned drugs on Twitter examined with COVID-19–related tweets collected between February 1, 2020 and April 30, 2022. The left Y-axis represents the total number of tweets for each drug in a given week (unit: thousand tweets). The right Y-axis represents the weekly new case count (unit: million cases). CDC: Centers for Disease Control and Prevention; FDA: Food and Drug Administration; HCQ: hydroxychloroquine.

Figure image at the original source — open the original paper. This file is not included in this text import.

Among the 5 drugs, the public focused mostly on repurposed drugs (ie, hydroxychloroquine and ivermectin), followed by daily supplements (ie, zinc and vitamin D). The only officially approved drug among the 5, remdesivir, received the least attention. The frequency of discussion of hydroxychloroquine and ivermectin fluctuated significantly across time, which seemed to be related to relevant news events or policies (marked in Figure 2). In the early stage of the pandemic, drug-related discussions focused on hydroxychloroquine, with 2 prominent peaks occurring on May 24, 2020, and August 2, 2020.

Discussion of ivermectin began to increase in the later stages of the pandemic, with only 1 prominent peak located on September 5, 2021. In contrast, remdesivir received the least public attention, which increased only sporadically throughout the pandemic, with no apparent pattern and a much lower peak on May 3, 2020. As supplements to COVID-19 treatments, vitamin D and zinc elicited much less public interest than ivermectin and hydroxychloroquine, with no significant outbreaks or visible patterns.

Changes in Sentiment for Five Most Frequent Mentioned Drugs

We calculated the sentiment proportion for the 5 drugs and the weekly time trends of positive and negative tweets. Figure 3A shows the visualization of the overall attitude proportions. The public tended to hold positive and neutral attitudes toward the repurposed drugs, ivermectin and hydroxychloroquine. The immune supplements, zinc and vitamin D, were frequently mentioned with positive sentiments. The only COVID-19 drug approved by the Food and Drug Administration (FDA), remdesivir, received the lowest positive attitude, far lower than those of the other drugs.

Figure 3

Sentiment analyses of the 5 top-discussed drugs from February 1, 2020, to April 30, 2022, grouped according to their polarity, including (A) sentiment distribution, (B) weekly ratio of positive tweets, and (C) weekly ratio of negative tweets. The denominator of the percentage was the entities with sentiment. CDC: Centers for Disease Control and Prevention; EUA: emergency use authorization; FDA: Food and Drug Administration; HCQ: hydroxychloroquine.

Figure image at the original source — open the original paper. This file is not included in this text import.

Figures 3B and 3C present weekly trends of tweets expressing positive and negative attitudes, respectively. The major turning points of the trends tend to coincide with new government policies, major social events, and research findings. The criticism of remdesivir (Figure 3C) and ivermectin increased over time since September 2021, and the turning point for remdesivir came at almost the same time as emerging studies showing that the drug is ineffective [45] and has severe side effects [46-48].

For ivermectin, public sentiment was associated with announcements of health authorities and celebrity effects. For example, the FDA denouncing the use of ivermectin for COVID-19 on August 29t, 2021 had simultaneously increasing negative discussions.

Topic Distributions of Drug-Mentioned Tweets

We applied the LDA topic model to all 2,124,757 drug-related tweets and obtained 15 general topics based on their relatively high topic coherence scores and low confusion levels (further discussed in Figure S3 in Multimedia Appendix 1). We displayed the corresponding top 20 most likely keywords in Table 1 and assigned a theme for each topic from these keywords. The topic “clinical treatment effect of drugs” included 288,967 related tweets and dominated the discussions, accounting for 13.6% of all related tweets.

In addition, 251,571 (11.84%) were related to “physical symptoms,” whereas 220,125 (10.36%), 197,177 (9.28%), 174,868 (8.23%), 172,955 (8.14%), and 154,470 (7.27%) were related to “COVID-19 control,” “causes of death,” “general treatment,” “immune response,” and “daily supplement intake.” In addition to the overall topic summary, we explored the distribution of the 15 topics for the 5 drugs. Figure 4 shows a visualization of the distribution. For ivermectin, the prominent theme was “immune response.” In contrast, discussions of remdesivir centered on “hospital care.” Hydroxychloroquine received relatively even attention among the 3 topics “causes of death,” “drug scare,” and “COVID-19 control.” Vitamin D was frequently mentioned in tweets about “daily life,” and the main topics about zinc focused on “hospital care” and “COVID-19 control.”

Table 1

Topic model on drug-related tweets.

TopicKeywordsExampleNumber and Percentage of related tweets, n (%)
Clinical treatment effect of drugstreatment, covid, study, drug, effective, trial, hydroxychloroquine, prove, safe, covid, evidence, prevent, clinical, vaccine, recommend, cheap, infection, continue, antiviral, efficacy“@USERa Ivermectin is pretty safe but the evidence for it being efficacious against SARS-CoV-2 is lacking.”288,967 (13.60%)
Physical symptomsday, test, symptom, week, covid, positive, feel, month, steroid, bad, start, med, ago, sick, time, recover, antibiotic, hour, fine, insulin“When I had covid, it was mild fever for a day, &amp; it was gone”251,571 (11.84%)
COVID-19 controlcure, vaccine, spread, control, lie, people, drug, covid, push, approve, hydroxychloroquine, claim, force, medium, ban, talk, science, government, experimental, president“@USERa I agree with you re lockdown. Just not on HCQ and vaccines.”220,125 (10.36%)
Causes of deathdeath, people, die, covid, kill, reason, heart, drug, cancer, cocaine, dead, trust, epidemic, rate, bad, create, attack, sound, result, fentanyl“@USERa Of course, if they died 30 minutes after taking fentanyl but had a positive covid test, guess what their official cause of death is listed as?”197,177 (9.28%)
General treatmentdoctor, treat, patient, steroid, risk, covid, covid, severe, infection, blood, pill, medication, antibiotic, receive, prescribe, illness, lung, hospitalize, prescription, aspirin“@USERa migraines have a very specific causality (i had them for like 20 years), I wonder if the Covid version is one? -- I would try warm compress, NSAIDs, and maybe nasal irrigation with like a neti pot”174,868 (8.23%)
Immune responsevirus, system, body, immune, corona, zinc, fight, antibody, cure, immunity, bleach, deficiency, cell, response, kill, covid, inject, injectingdisinfectant, human, boost“In addition, mAbs have been shown to improve survival in patients hospitalized with COVID-19 who have not mounted their own immune response.”172,955 (8.14%)
Daily supplement intakevitamin, people, level, covid, eat, healthy, cold, flu, catch, protect, food, hand, low, stay, vit, survive, bad, chance, common, worry“@USERa regularly take vitamins and a Vitamin D supplement. I started taking the Vitamin D supplement because I wasn't going outside as much at the start of the pandemic. As soon as started taking the Vitamin D supplement, my blood work started to improve.”154,470 (7.27%)
Public paniclive, save, pandemic, life, start, lockdown, real, people, buy, time, basicallystart, money, watch, steroid, hit, hard, normal, deadly, cough, break“@USERa waste of time, politicians have organised orgy’s with cocaine, male &amp; female hookers, during lockdown! like they give a fuck about a petition hahaha”149,583 (7.04%)
Hospital carepatient, care, hospital, remdesivir, treatment, cocktail, covid, covid, injection, require, oxygen, admit, medical, lead, ventilator, pay, provide, health, remove, source“Both hospitalized and treated immediately with Oxygen &amp; Remdesivir for covid @ the same time. Both went into heavy psychosis.”118,136 (5.56%)
Daily lifedrink, stay, hear, lose, family, wait, water, love, leave, pandemic, friend, daily, close, rest, hope, lot, drop, head, play, time“Interesting situation. Got a call from a Mom, Family of 4 lives in a house. Son and her drinks SOULTOX everyday. Daughter and Dad don't. Dad got Covid, then daughter. Mom and Son tested negative 4xs over the 2 wks. Everyone is vaxed. Now she makes everyone drink SOULTOX now.”97,952 (4.61%)
Political electionsdem, trump, fake, nursinghome, news, pandemic, free, vote, ill, school, election, economy, release, access, truth, guy, forget, sense, deny, hoax“@realDonaldTrump Hey Captain Covid I VOTED FOR JOE BIDEN AND KAMALA HARRIS! The steroids and tranquilizers are making you more batshit crazy than usual. You should go back to the hospital.” 71,179 (3.35%)
Political crisis and discussiontrump, people, person, infect, dangerous, true, covid, condition, shit, happen, stock, send, woman, idea, stupid, destroy, contract, completely, potus, tablet“@realDonaldTrump @USERa At least Putin just poisons his political enemies -- Trump wants all Americans to drink poisons such as hydroxychloroquine and oleandrin -- there just aren't enough dead Americans from COVID-19 for Trump -- he wants to kill more with poison -- Trump is a quack ...”70,117 (3.30%)
Drug scarecountry, low, rate, dexamethasone, cost, covid, drug, recovery, black, base, reduce, sell, supply, explain, mortality, expect, increase, panic, produce, improve“Once the pandemic hit, stores really upped the prices of aloe vera leaves like i wouldn’t notice smh”60,981 (2.87%)
Personal precautionsmask, wear, medicine, social distance, add, avoid, business, plasma, measure, spray, confirm, skin, drive, advise, campaign, practice, oil, wash hand, air, hourly“@USER @USER @USERa Try working on your immune system. Covid depletes zinc and vitamin D. Try working from prevention instead of fear.”48,444 (2.28%)
Public health carereport, support, health, public, supplement, question, kid, child, datum, stage, issue, american, answer, term, prophylactic, mental, phase, safety, concern, inflammation“@USERa Then, even hcq, zinc, and zithromax had a estimated 50% success and the CDC and WHO said it didnt, so it shouldnt be used. Imagine half of the death tolls because of at least TRYING something instead of shitcanning it just because you are an “authority” that hates Trump.”48,232 (2.27%)

aUsername and other sensitive information were masked off using @USER. Public figures such as @realdonaldtrump are shown in their usernames.

Figure 4

Topic distribution of 5 top-discussed drugs.

Figure image at the original source — open the original paper. This file is not included in this text import.

Co-Occurrence Networks

We visualized the co-occurrence network for drug-drug and drug-symptom relations in Figure 5. The nodes represented either drugs (as shown in Table S3 in Multimedia Appendix 1) or symptoms (as shown in Table S4 in Multimedia Appendix 1). The size of each node corresponded to its degree, which referred to the number of connections it has. The weights of the edges indicated the cosine similarity score between two connected nodes.

Figure 5

Visualization of drug-related co-occurrence networks by Gephi, including (A) drug-drug associations based on Gephi clustering (τ=0.005), (B) drug-drug associations based on ATC (τ=0.005), and (C) drug-symptom associations (τ=0.05). The color dots on the lower right of the figure represent the ATC categories for (B). ATC: Anatomical Therapeutic Chemical classification system.

Figure image at the original source — open the original paper. This file is not included in this text import.

Drug-Drug Network

The origin drug-drug network contained 67 drugs (nodes) with more than 1000 mentions and 1103 relations (edges) among them. A predefined similarity threshold (τ) was established to only visualize relationships with substantial co-occurrence, as measured by cosine similarities exceeding τ. After filtering it with a τ of 0.005, 62 drugs and 317 relations remained in the network. By using the Fast Unfolding (Louvain) algorithm built in Gephi for modularity classification [49], the drugs were clustered into 5 categories and were colored in Figure 5A.

The same network with drugs colored by ATC classification (12 types) was shown in Figure 5B for comparison. Drugs in the same group are denoted with the same color. Both figures share similar clustering characteristics, especially in psychotropic drugs ATC-N (Anatomical Therapeutic Chemical classification system, psychotropic drugs; eg, fentanyl, opium, and morphine) and anti-infectious agent ATC-J (Anatomical Therapeutic Chemical classification system, anti-infectious agents; eg, lopinavir, ritonavir, and azithromycin). However, drugs in the ATC-P (Anatomical Therapeutic Chemical classification system, antiparasitic drugs) group (ie, ivermectin, hydroxychloroquine, quinine, and chloroquine) are clustered with the ATC A group in Figure 5A.

The reason may partially lie in the fact that most parasites are intestinal [50], so most people who need to take antiparasitic drugs (ie, ATC-P drugs) often present concomitant digestive manifestations [51], thus necessitating the use of digestive medications (ie, ATC A drugs), therefore the 2 drug groups are closely related. Association between some of the significant drug-drug pairs like 2 HIV protease inhibitors ritonavir and lopinavir has been widely studied [52]. In addition, through the co-occurrence network, we observed several unusual drug pairings, such as midazolam and morphine, salbutamol and prednisone, and zinc and quinine.

These strong co-occurrences suggest potential unexplored synergistic effects, adverse reactions, or other public health concerns that warrant further investigation. For instance, we noted a distinct correlation between morphine and midazolam, drugs not typically combined in direct COVID-19 treatment. An analysis of all 376 tweets mentioning both drugs revealed that most discussions focused on end-of-life management for patients with COVID-19 and on conspiracy theories about the intentional misuse of these drugs, leading to deaths attributed to causes other than COVID-19 infection.

Drug-Symptom Network

The original drug-symptom network had 136 nodes (ie, 69 drugs and 67 symptoms) and 3099 edges. After filtering by τ of 0.05, 50 nodes and 71 edges remained and are shown in Figure 5C. We observed that the edges often represented symptoms and corresponding treatments, such as Tylenol for fever medication, suggesting the reliability of our association network. We also observed some side effect relations, such as remdesivir to acute kidney failure [46] and some novel associations receiving no clinical investigation like molnupiravir to circulatory failure, cocaine to chest cold, and vitamin D to malaise.

We visualized the top 10 closest drugs and symptoms with co-occurrence relationships to the 5 drugs under investigation (Figure S4 in Multimedia Appendix 1). These networks revealed the great relevance between hydroxychloroquine, ivermectin, and azithromycin from each other. Furthermore, remdesivir was also significantly associated with dexamethasone and tocilizumab.

Source: Results Source: Results Source: Results Source: Results Source: Results Source: Results

Discussion: Conclusion

Our study proposed a pipeline of using social media data and NLP techniques to mine potential drug information, timely track drug-related hot events, facilitate public health stakeholders to conduct reasonable policy enactment, monitor drug public opinion, and avoid malignant events during a public health emergency period. In addition, it can supplement the existing ADR and DDI databases by constructing multiple medical entity co-occurrence networks to provide real-world clues for future research. Our framework applies not only to the COVID-19 pandemic but also to other periods of epidemics or major social events.

It can also target other public health care foci such as vaccination.

Source: Conclusion
Authors’ abstract

Background

While the COVID-19 pandemic has induced massive discussion of available medications on social media, traditional studies focused only on limited aspects, such as public opinions, and endured reporting biases, inefficiency, and long collection times.

Objective

Harnessing drug-related data posted on social media in real-time can offer insights into how the pandemic impacts drug use and monitor misinformation. This study aimed to develop a natural language processing (NLP) pipeline tailored for the analysis of social media discourse on COVID-19–related drugs.

Methods

This study constructed a full pipeline for COVID-19–related drug tweet analysis, using pretrained language model–based NLP techniques as the backbone. This pipeline is architecturally composed of 4 core modules: named entity recognition and normalization to identify medical entities from relevant tweets and standardize them to uniform medication names for time trend analysis, target sentiment analysis to reveal sentiment polarities associated with the entities, topic modeling to understand underlying themes discussed by the population, and drug network analysis to dig potential adverse drug reactions (ADR) and drug-drug interactions (DDI).

The pipeline was deployed to analyze tweets related to the COVID-19 pandemic and drug therapies between February 1, 2020, and April 30, 2022.

Results

From a dataset comprising 169,659,956 COVID-19–related tweets from 103,682,686 users, our named entity recognition model identified 2,124,757 relevant tweets sourced from 1,800,372 unique users, and the top 5 most-discussed drugs: ivermectin, hydroxychloroquine, remdesivir, zinc, and vitamin D. Time trend analysis revealed that the public focused mostly on repurposed drugs (ie, hydroxychloroquine and ivermectin), and least on remdesivir, the only officially approved drug among the 5. Sentiment analysis of the top 5 most-discussed drugs revealed that public perception was predominantly shaped by celebrity endorsements, media hot spots, and governmental directives rather than empirical evidence of drug efficacy.

Topic analysis obtained 15 general topics of overall drug-related tweets, with “clinical treatment effects of drugs” and “physical symptoms” emerging as the most frequently discussed topics. Co-occurrence matrices and complex network analysis further identified emerging patterns of DDI and ADR that could be critical for public health surveillance like better safeguarding public safety in medicines use.

Conclusions

This study shows that an NLP-based pipeline can be a robust tool for large-scale public health monitoring and can offer valuable supplementary data for traditional epidemiological studies concerning DDI and ADR. The framework presented here aspires to serve as a cornerstone for future social media–based public health analytics.

Read the full paper

Introduction

The emergence of the COVID-19 pandemic has induced an immediate need for effective pharmacotherapies. While the development and application of such therapies are critically important, they are also influenced by an array of political, economic, and social factors. Meanwhile, an overabundance of drug-related information during the COVID-19 pandemic has rapidly proliferated across social media platforms, drawing significant attention from governments and health organizations. This phenomenon, referred to as an “infodemic,” has exacerbated the pandemic’s impact, caused additional harm to individuals, and undermined the effectiveness and sustainability of the global health system [1,2].

For example, public pronouncements by high-profile figures, such as former US President Donald Trump’s endorsement of hydroxychloroquine, have led to its irrational use and consequential public health crises [3]. Traditional pharmacovigilance mechanisms, reliant on clinical trials and formal reporting systems like MedWatch and DrugBank [4-6], offer valuable but lagged information. These traditional approaches are plagued by inefficiencies, reporting biases, and a lack of timeliness, thereby lacking comprehensive coverage of the population’s sentiments and experiences [7-10].

In this context, real-time public comments on pharmacotherapies such as medications on social media provide a valuable resource for complementing research on drug use or repositioning for the COVID-19 pandemic. In addition to the fast accessibility, timeliness, and comprehensive population coverage, social media can also supply real-world evidence on how people respond to different drugs, thus helping researchers mine novel drug potency or side effects [11-13]. Social media also offer data on drugs not typically included in pharmacovigilance datasets, such as over-the-counter drugs [14], herbal remedies [15], and other nontraditional treatments [16].

However, the sheer volume and noise in social media data require robust computational methodologies for effective analysis [17].

Natural language processing (NLP) technologies offer a solution to these challenges. Earlier studies, such as the study conducted by Aramaki et al [18] in 2011, demonstrated that Twitter (subsequently rebranded X) data could be mined to monitor influenza outbreaks using machine learning and rudimentary NLP techniques. Contemporary research in this domain has benefitted immensely from technological advancements, such as deep-learning–based NLP tools specifically for analyzing social media data [19-22]. These have made it increasingly feasible to understand large volumes of colloquial, noisy text for the extraction of meaningful insights on public health.

Substantial efforts such as topic modeling and sentiment analysis have been made to analyze pharmacotherapy-related topics during the COVID-19 pandemic. Notably, existing research lacked of data-driven pipeline with state-of-the-art NLP tools and other big data analysis techniques [23-27] or just involved longitudinal data with a small time span [28]. There is still a gap in how to automatically and accurately extract drug information through social media data for longitudinal monitoring of the drug infodemic.

To address these gaps, this study uses NLP methodologies and network analysis for an extensive assessment of COVID-19 drug-related discourse on social media. We contribute to the existing literature in several ways:

(1) Using deep learning methodologies for named entity recognition (NER), thereby reducing the false positives associated with traditional keyword matching.

(2) Re-examining public sentiments and concerns regarding COVID-19 medications, using target sentiment analysis (TSA) and topic modeling.

(3) Conducting a comprehensive assessment of adverse drug reactions (ADR) and drug-drug interactions (DDI) through network analysis techniques.

We demonstrate that our integrated NLP pipeline can serve as a robust framework for extracting and analyzing drug-related information, thereby enhancing the scope and effectiveness of social media–based pharmacotherapy analysis.

Methods

Overview

As shown in Figure 1, the study workflow is organized into three primary stages: data collection, development of an NLP pipeline, and subsequent data analysis using the constructed pipeline. Initially, we curated a dataset of English tweets related to the COVID-19 pandemic. After a preprocessing phase that excluded tweets with URLs, an NLP pipeline was developed to extract and normalize the drugs and symptoms mentioned in these tweets. Finally, we examined the time trends of drug mentions, public sentiment, and discussion topics toward drugs, as well as the co-occurrence network of drug-drug and drug-symptom pairs [22].

Figure 1

Workflow of drug analysis with natural language processing on Twitter. LDA: latent Dirichlet allocation; METS-CoV: Medical Entity and Targeted Sentiment on COVID-19 Related Tweets; NLP: natural language processing; NER dataset containing medical entities and targeted sentiments from COVID-19–related tweets.

Figure image at the original source — open the original paper. This file is not included in this text import.

Data Collection and Preprocessing

COVID-19–related tweets from February 1, 2020, to April 30, 2022 were downloaded using Twitter’s application programming interface (API) through unique tweet IDs, which were obtained from a public dataset provided by Chen et al [29]. Due to the privacy restrictions of Twitter data, the raw tweets were not publicly available and could only be shared by tweet ID. Therefore, we downloaded tweets by Twitter API based on the provided tweet IDs. The downloaded data included full tweet texts and corresponding metadata such as timestamps and user information.

Tweets containing URLs were excluded from the analysis, as they often only contained summaries or quotations of the original tweet. The data collection process adhered to Twitter’s privacy and data use management policies.

NLP Pipeline Development

The NLP pipeline consists of 4 principal modules: NER, TSA, topic modeling, and drug network analysis. For the NER and TSA modules, we leveraged state-of-the-art models developed in our previous work “Medical Entity and Targeted Sentiment on COVID-19 Related Tweets (METS-CoV)” [22]. Details on model construction can be found in Figure S1 in the Multimedia Appendix 1.

Named Entity Recognition and Normalization

The NER model aims to extract drug entities from tweets. The model we developed, CT-BERT-NER (COVID Twitter with Bidirectional Encoder Representations from Transformers for Named Entity Recognition) [22], was constructed using the COVID-Twitter-BERT (CT-BERT), a widely adopted language model pretrained on 160 million COVID-19–related tweets. CT-BERT-NER was trained on the entire training set of the NER subset of METS-CoV [22]. Upon evaluation, it showed F1-scores of 86.35% for drug entity recognition and 81.85% for symptom entity recognition on the corresponding test set, respectively [22].

We used the model trained on all entity types (ie, disease, drug, symptom, vaccine, person, location, and organization) instead of on drug entities only to enable the nuanced differentiation of drug entities from other types of entities.

To standardize colloquial expressions of drugs among the extracted entities, we manually searched Wikipedia for NER-identified drug entities with a frequency of more than 1000 to map colloquial drug expressions and their standardized concepts (ie, drug trade names, chemical names, and generic names). We conducted an accuracy assessment using a random sample of 100 tweets for each of the top 5 most frequently mentioned drugs and symptoms, as identified through 2 methods: NER combined with lexicon-based extraction (NER+lexicon) and lexicon-based extraction alone, with a total of 1000 tweets being manual review.

Our results demonstrated that the NER+lexicon method achieved an accuracy rate of 97.8%, significantly surpassing the 89% accuracy achieved by the lexicon-only approach (χ21=61.4, P<.001). Further details on this comparison are available in Table S1 in Multimedia Appendix 1.

Targeted Sentiment Analysis

The TSA module is designed to analyze users’ sentiments toward specific drug entities within tweets. Inspired by BERT-SPC [30], we first concatenate the original tweet and the identified drug entity, separated by 1 special token “[SEP],” to form a combined tweet-entity sentence. The tweet-entity sentence is then fed into a pretrained language model to capture semantic features, which are subsequently passed to a linear layer for 3-class sentiment prediction (positive, neutral, or negative). Notably, instead of using the original BERT model, we used CT-BERT, which has been further trained on 97 million COVID-19–related tweets.

This adaptation enhances its understanding of COVID-19–related tweet data [22]. Therefore, although there existed several sentiment-specific embeddings and pretrained models [31-34], we chose the pretrained CT-BERT model as it was trained to understand COVID-19–related tweets. On the TSA test set of METS-COV, the model achieved an F1-score of 62.67% and an accuracy rate of 75.07% across 4 entity types: person, drug, disease, and vaccine. For our own TSA study, we randomly selected 100 drug-related tweets and assessed their emotional orientation toward drug entities using both model predictions and manual review by a researcher with medical expertise.

The results indicated that the model’s accuracy, when compared to manual review, was 77% (77/100), aligning closely with the TSA model’s original accuracy of 75.07%. Furthermore, both our hand-labeled fine-tuned dataset (METS-CoV) and the final applied dataset (169,659,956 drug-related tweets) were derived from the same source, ensuring the reliability and credibility of the predictions.

Topic Model Analysis

To discern prevailing public interests in the most discussed drugs, we implemented latent Dirichlet allocation (LDA) for topic modeling, using the LdaModel function from the Gensim package [35]. Topic numbers were determined based on conventional evaluation metrics, including low perplexity [36] and high coherence scores [37]. Detailed methodologies are delineated in Figure S2 in Multimedia Appendix 1.

Drug Network Analysis

To illustrate potential relationships among drugs, we constructed a drug network analysis module to generate incidence matrices according to a previous study [38] and visualize co-occurrence networks using Gephi [39] and ForceAtlas2 algorithm [40]. For enhanced comprehensiveness, we incorporated a variant supported by the Anatomical Therapeutic Chemical classification system (ATC) [41], in addition to the Gephi-based visualization. In addition, we used the NER model to extract symptom entities and normalize them through a presummarized lexicon list [42] to extend our analysis to drug-symptom networks.

The constructed networks feature nodes represented drugs (Table S3 in Multimedia Appendix 1) or symptoms (Table S4 in Multimedia Appendix 1). Node sizes displayed node degrees (ie, the number of linked entities). Edge weights denoted the cosine similarity score of 2 linked nodes. As our focus is not on causal relationships but rather on the interplay between entities, we used undirected graphs and semantic cosine similarity [43] as the distance metric just as we did in the previous work [38].

Cosine similarity is a widely implemented metric in information retrieval and related studies [44]. In our study, each drug or symptom entity can be represented as a vector, with each dimension of the vector corresponding to 1 tweet text. Details for calculation can be found in Methods in Multimedia Appendix 1.

Pipeline Deployment

Upon completion of the NLP pipeline, we proceeded to its deployment on the preprocessed dataset of COVID-19–related tweets. We first applied the NER and normalization module on the preprocessed dataset (ie, removing URLs) to extract and standardize drug entities to drug concepts. Then we filtered the preprocessed COVID-19–related tweets dataset to get the drug-related tweets dataset according to these drug concepts. Following this standardization, we conducted a distributional analysis of drug mentions to discern time trends, thereby capturing the evolving popularity of these drugs.

We also gather related news and the trend of weekly new COVID-19 cases to show a more holistic view of the shift in drug popularity over time. For clarity and simplicity, we only illustrate the top 5 most discussed drugs.

Subsequently, we used the TSA model for drug-related tweets of the top 5 drugs mentioned above to assign each drug entity a sentiment type. To gain a deeper understanding, we also conducted a time-trend analysis on the positive and negative tweets for the 5 drugs and visualized the results. Building upon our understanding of public sentiment, we turned to topic modeling via LDA in all drug-related tweets to explore the thematic concentrations in the discourse surrounding drugs. The model yielded the 20 most probable keywords and bigrams for each identified topic, enabling us to summarize the primary themes.

We further analyzed the topic distribution associated with each of the top 5 drugs.

Finally, we constructed co-occurrence networks for drug-drug and drug-symptom interactions to provide a relational overview that complements our earlier analyses. All 67 drugs with more than 1000 mentions and 69 symptoms with more than 250 mentions over time were included in the analysis. Meanwhile, we also zoomed in to analyze the 5 most-discussed drugs.

Statistical Analysis

The chi-square test was used to compare the accuracy differences between NER combined with lexicon and lexicon-based only. We used Python software (version 3.8) to conduct the statistical analyses and chose a P value of .001 as the statistically significant threshold.

Ethical Considerations

Ethical approval for this study was granted by the Institutional Review Board of School of Public Health, Zhejiang University (ZGL202201-2).

Results

Data Summary and Trends of Drug Mention Tweets

This study used a dataset consisting of 471,371,477 COVID-19–related tweets in English, which were collected between February 1, 2020, and April 30, 2022. After excluding tweets containing URLs, the final dataset used for this study consisted of 169,659,956 (36.0%) tweets from 103,682,686 users. Using CT-BERT-NER, we identified 2,124,757 drug-related tweets from 1,800,372 unique Twitter users, accounting for approximately 1.25% of the raw COVID-19–related tweets dataset. Table S2 in Multimedia Appendix 1 provides more detailed statistical results of the medical entity recognition.

Table S3 in Multimedia Appendix 1 presents the 67 most frequently mentioned drugs, each with an occurrence exceeding 1000 times. The most frequent taxonomies are ATC [41] N (nervous system drugs) and J (anti-infective drug). We ranked the total occurrence of all drugs and identified the top 5 most-mentioned drugs: ivermectin, hydroxychloroquine, remdesivir, zinc, and vitamin D to visualize their weekly time trends. Figure 2 presents these temporal trends. The new case counts were collected from the World Health Organization (WHO) [37] on a weekly basis, beginning on February 1, 2020.

Given that the dataset is confined to English-language tweets, the scope of new case counts was likewise restricted to the top 4 English-speaking nations with the highest Twitter activity: the United States, the United Kingdom, the Philippines, and Canada [38].

Figure 2

Weekly popularity trends of the top 5 most-mentioned drugs on Twitter examined with COVID-19–related tweets collected between February 1, 2020 and April 30, 2022. The left Y-axis represents the total number of tweets for each drug in a given week (unit: thousand tweets). The right Y-axis represents the weekly new case count (unit: million cases). CDC: Centers for Disease Control and Prevention; FDA: Food and Drug Administration; HCQ: hydroxychloroquine.

Figure image at the original source — open the original paper. This file is not included in this text import.

Among the 5 drugs, the public focused mostly on repurposed drugs (ie, hydroxychloroquine and ivermectin), followed by daily supplements (ie, zinc and vitamin D). The only officially approved drug among the 5, remdesivir, received the least attention. The frequency of discussion of hydroxychloroquine and ivermectin fluctuated significantly across time, which seemed to be related to relevant news events or policies (marked in Figure 2). In the early stage of the pandemic, drug-related discussions focused on hydroxychloroquine, with 2 prominent peaks occurring on May 24, 2020, and August 2, 2020.

Discussion of ivermectin began to increase in the later stages of the pandemic, with only 1 prominent peak located on September 5, 2021. In contrast, remdesivir received the least public attention, which increased only sporadically throughout the pandemic, with no apparent pattern and a much lower peak on May 3, 2020. As supplements to COVID-19 treatments, vitamin D and zinc elicited much less public interest than ivermectin and hydroxychloroquine, with no significant outbreaks or visible patterns.

Changes in Sentiment for Five Most Frequent Mentioned Drugs

We calculated the sentiment proportion for the 5 drugs and the weekly time trends of positive and negative tweets. Figure 3A shows the visualization of the overall attitude proportions. The public tended to hold positive and neutral attitudes toward the repurposed drugs, ivermectin and hydroxychloroquine. The immune supplements, zinc and vitamin D, were frequently mentioned with positive sentiments. The only COVID-19 drug approved by the Food and Drug Administration (FDA), remdesivir, received the lowest positive attitude, far lower than those of the other drugs.

Figure 3

Sentiment analyses of the 5 top-discussed drugs from February 1, 2020, to April 30, 2022, grouped according to their polarity, including (A) sentiment distribution, (B) weekly ratio of positive tweets, and (C) weekly ratio of negative tweets. The denominator of the percentage was the entities with sentiment. CDC: Centers for Disease Control and Prevention; EUA: emergency use authorization; FDA: Food and Drug Administration; HCQ: hydroxychloroquine.

Figure image at the original source — open the original paper. This file is not included in this text import.

Figures 3B and 3C present weekly trends of tweets expressing positive and negative attitudes, respectively. The major turning points of the trends tend to coincide with new government policies, major social events, and research findings. The criticism of remdesivir (Figure 3C) and ivermectin increased over time since September 2021, and the turning point for remdesivir came at almost the same time as emerging studies showing that the drug is ineffective [45] and has severe side effects [46-48].

For ivermectin, public sentiment was associated with announcements of health authorities and celebrity effects. For example, the FDA denouncing the use of ivermectin for COVID-19 on August 29t, 2021 had simultaneously increasing negative discussions.

Topic Distributions of Drug-Mentioned Tweets

We applied the LDA topic model to all 2,124,757 drug-related tweets and obtained 15 general topics based on their relatively high topic coherence scores and low confusion levels (further discussed in Figure S3 in Multimedia Appendix 1). We displayed the corresponding top 20 most likely keywords in Table 1 and assigned a theme for each topic from these keywords. The topic “clinical treatment effect of drugs” included 288,967 related tweets and dominated the discussions, accounting for 13.6% of all related tweets.

In addition, 251,571 (11.84%) were related to “physical symptoms,” whereas 220,125 (10.36%), 197,177 (9.28%), 174,868 (8.23%), 172,955 (8.14%), and 154,470 (7.27%) were related to “COVID-19 control,” “causes of death,” “general treatment,” “immune response,” and “daily supplement intake.” In addition to the overall topic summary, we explored the distribution of the 15 topics for the 5 drugs. Figure 4 shows a visualization of the distribution. For ivermectin, the prominent theme was “immune response.” In contrast, discussions of remdesivir centered on “hospital care.” Hydroxychloroquine received relatively even attention among the 3 topics “causes of death,” “drug scare,” and “COVID-19 control.” Vitamin D was frequently mentioned in tweets about “daily life,” and the main topics about zinc focused on “hospital care” and “COVID-19 control.”

Table 1

Topic model on drug-related tweets.

TopicKeywordsExampleNumber and Percentage of related tweets, n (%)
Clinical treatment effect of drugstreatment, covid, study, drug, effective, trial, hydroxychloroquine, prove, safe, covid, evidence, prevent, clinical, vaccine, recommend, cheap, infection, continue, antiviral, efficacy“@USERa Ivermectin is pretty safe but the evidence for it being efficacious against SARS-CoV-2 is lacking.”288,967 (13.60%)
Physical symptomsday, test, symptom, week, covid, positive, feel, month, steroid, bad, start, med, ago, sick, time, recover, antibiotic, hour, fine, insulin“When I had covid, it was mild fever for a day, &amp; it was gone”251,571 (11.84%)
COVID-19 controlcure, vaccine, spread, control, lie, people, drug, covid, push, approve, hydroxychloroquine, claim, force, medium, ban, talk, science, government, experimental, president“@USERa I agree with you re lockdown. Just not on HCQ and vaccines.”220,125 (10.36%)
Causes of deathdeath, people, die, covid, kill, reason, heart, drug, cancer, cocaine, dead, trust, epidemic, rate, bad, create, attack, sound, result, fentanyl“@USERa Of course, if they died 30 minutes after taking fentanyl but had a positive covid test, guess what their official cause of death is listed as?”197,177 (9.28%)
General treatmentdoctor, treat, patient, steroid, risk, covid, covid, severe, infection, blood, pill, medication, antibiotic, receive, prescribe, illness, lung, hospitalize, prescription, aspirin“@USERa migraines have a very specific causality (i had them for like 20 years), I wonder if the Covid version is one? -- I would try warm compress, NSAIDs, and maybe nasal irrigation with like a neti pot”174,868 (8.23%)
Immune responsevirus, system, body, immune, corona, zinc, fight, antibody, cure, immunity, bleach, deficiency, cell, response, kill, covid, inject, injectingdisinfectant, human, boost“In addition, mAbs have been shown to improve survival in patients hospitalized with COVID-19 who have not mounted their own immune response.”172,955 (8.14%)
Daily supplement intakevitamin, people, level, covid, eat, healthy, cold, flu, catch, protect, food, hand, low, stay, vit, survive, bad, chance, common, worry“@USERa regularly take vitamins and a Vitamin D supplement. I started taking the Vitamin D supplement because I wasn't going outside as much at the start of the pandemic. As soon as started taking the Vitamin D supplement, my blood work started to improve.”154,470 (7.27%)
Public paniclive, save, pandemic, life, start, lockdown, real, people, buy, time, basicallystart, money, watch, steroid, hit, hard, normal, deadly, cough, break“@USERa waste of time, politicians have organised orgy’s with cocaine, male &amp; female hookers, during lockdown! like they give a fuck about a petition hahaha”149,583 (7.04%)
Hospital carepatient, care, hospital, remdesivir, treatment, cocktail, covid, covid, injection, require, oxygen, admit, medical, lead, ventilator, pay, provide, health, remove, source“Both hospitalized and treated immediately with Oxygen &amp; Remdesivir for covid @ the same time. Both went into heavy psychosis.”118,136 (5.56%)
Daily lifedrink, stay, hear, lose, family, wait, water, love, leave, pandemic, friend, daily, close, rest, hope, lot, drop, head, play, time“Interesting situation. Got a call from a Mom, Family of 4 lives in a house. Son and her drinks SOULTOX everyday. Daughter and Dad don't. Dad got Covid, then daughter. Mom and Son tested negative 4xs over the 2 wks. Everyone is vaxed. Now she makes everyone drink SOULTOX now.”97,952 (4.61%)
Political electionsdem, trump, fake, nursinghome, news, pandemic, free, vote, ill, school, election, economy, release, access, truth, guy, forget, sense, deny, hoax“@realDonaldTrump Hey Captain Covid I VOTED FOR JOE BIDEN AND KAMALA HARRIS! The steroids and tranquilizers are making you more batshit crazy than usual. You should go back to the hospital.” 71,179 (3.35%)
Political crisis and discussiontrump, people, person, infect, dangerous, true, covid, condition, shit, happen, stock, send, woman, idea, stupid, destroy, contract, completely, potus, tablet“@realDonaldTrump @USERa At least Putin just poisons his political enemies -- Trump wants all Americans to drink poisons such as hydroxychloroquine and oleandrin -- there just aren't enough dead Americans from COVID-19 for Trump -- he wants to kill more with poison -- Trump is a quack ...”70,117 (3.30%)
Drug scarecountry, low, rate, dexamethasone, cost, covid, drug, recovery, black, base, reduce, sell, supply, explain, mortality, expect, increase, panic, produce, improve“Once the pandemic hit, stores really upped the prices of aloe vera leaves like i wouldn’t notice smh”60,981 (2.87%)
Personal precautionsmask, wear, medicine, social distance, add, avoid, business, plasma, measure, spray, confirm, skin, drive, advise, campaign, practice, oil, wash hand, air, hourly“@USER @USER @USERa Try working on your immune system. Covid depletes zinc and vitamin D. Try working from prevention instead of fear.”48,444 (2.28%)
Public health carereport, support, health, public, supplement, question, kid, child, datum, stage, issue, american, answer, term, prophylactic, mental, phase, safety, concern, inflammation“@USERa Then, even hcq, zinc, and zithromax had a estimated 50% success and the CDC and WHO said it didnt, so it shouldnt be used. Imagine half of the death tolls because of at least TRYING something instead of shitcanning it just because you are an “authority” that hates Trump.”48,232 (2.27%)

aUsername and other sensitive information were masked off using @USER. Public figures such as @realdonaldtrump are shown in their usernames.

Figure 4

Topic distribution of 5 top-discussed drugs.

Figure image at the original source — open the original paper. This file is not included in this text import.

Co-Occurrence Networks

We visualized the co-occurrence network for drug-drug and drug-symptom relations in Figure 5. The nodes represented either drugs (as shown in Table S3 in Multimedia Appendix 1) or symptoms (as shown in Table S4 in Multimedia Appendix 1). The size of each node corresponded to its degree, which referred to the number of connections it has. The weights of the edges indicated the cosine similarity score between two connected nodes.

Figure 5

Visualization of drug-related co-occurrence networks by Gephi, including (A) drug-drug associations based on Gephi clustering (τ=0.005), (B) drug-drug associations based on ATC (τ=0.005), and (C) drug-symptom associations (τ=0.05). The color dots on the lower right of the figure represent the ATC categories for (B). ATC: Anatomical Therapeutic Chemical classification system.

Figure image at the original source — open the original paper. This file is not included in this text import.

Drug-Drug Network

The origin drug-drug network contained 67 drugs (nodes) with more than 1000 mentions and 1103 relations (edges) among them. A predefined similarity threshold (τ) was established to only visualize relationships with substantial co-occurrence, as measured by cosine similarities exceeding τ. After filtering it with a τ of 0.005, 62 drugs and 317 relations remained in the network. By using the Fast Unfolding (Louvain) algorithm built in Gephi for modularity classification [49], the drugs were clustered into 5 categories and were colored in Figure 5A.

The same network with drugs colored by ATC classification (12 types) was shown in Figure 5B for comparison. Drugs in the same group are denoted with the same color. Both figures share similar clustering characteristics, especially in psychotropic drugs ATC-N (Anatomical Therapeutic Chemical classification system, psychotropic drugs; eg, fentanyl, opium, and morphine) and anti-infectious agent ATC-J (Anatomical Therapeutic Chemical classification system, anti-infectious agents; eg, lopinavir, ritonavir, and azithromycin). However, drugs in the ATC-P (Anatomical Therapeutic Chemical classification system, antiparasitic drugs) group (ie, ivermectin, hydroxychloroquine, quinine, and chloroquine) are clustered with the ATC A group in Figure 5A.

The reason may partially lie in the fact that most parasites are intestinal [50], so most people who need to take antiparasitic drugs (ie, ATC-P drugs) often present concomitant digestive manifestations [51], thus necessitating the use of digestive medications (ie, ATC A drugs), therefore the 2 drug groups are closely related. Association between some of the significant drug-drug pairs like 2 HIV protease inhibitors ritonavir and lopinavir has been widely studied [52]. In addition, through the co-occurrence network, we observed several unusual drug pairings, such as midazolam and morphine, salbutamol and prednisone, and zinc and quinine.

These strong co-occurrences suggest potential unexplored synergistic effects, adverse reactions, or other public health concerns that warrant further investigation. For instance, we noted a distinct correlation between morphine and midazolam, drugs not typically combined in direct COVID-19 treatment. An analysis of all 376 tweets mentioning both drugs revealed that most discussions focused on end-of-life management for patients with COVID-19 and on conspiracy theories about the intentional misuse of these drugs, leading to deaths attributed to causes other than COVID-19 infection.

Drug-Symptom Network

The original drug-symptom network had 136 nodes (ie, 69 drugs and 67 symptoms) and 3099 edges. After filtering by τ of 0.05, 50 nodes and 71 edges remained and are shown in Figure 5C. We observed that the edges often represented symptoms and corresponding treatments, such as Tylenol for fever medication, suggesting the reliability of our association network. We also observed some side effect relations, such as remdesivir to acute kidney failure [46] and some novel associations receiving no clinical investigation like molnupiravir to circulatory failure, cocaine to chest cold, and vitamin D to malaise.

We visualized the top 10 closest drugs and symptoms with co-occurrence relationships to the 5 drugs under investigation (Figure S4 in Multimedia Appendix 1). These networks revealed the great relevance between hydroxychloroquine, ivermectin, and azithromycin from each other. Furthermore, remdesivir was also significantly associated with dexamethasone and tocilizumab.

Discussion

Principal Results

Leveraging new advances in NLP, we constructed a pretrained language model driven by the drug entity recognition model and a new targeted sentiment analysis model for the polarity prediction of target drugs. Based on over 2 years of relevant data, our comprehensive NLP pipeline demonstrates advanced accuracy and completeness in collecting and analyzing data for social media-based drug studies. Our NER model identified the top 5 most-discussed drugs and sentiment and topic analysis revealed that public perception concerning these drugs was predominantly shaped by celebrity endorsements, media hot spots, and governmental directives rather than empirical evidence of drug efficacy.

Furthermore, network analysis identified emerging patterns of DDI and ADR (ie, molnupiravir to circulatory failure) that could be critical for public health surveillance like better safeguarding public safety in medicines use. Our pipeline is open-sourced and it can serve as a comprehensive tool to enhance drug safety control, provide crucial guidance for formulating drug usage policies, and support public health decision-making after the outbreak of infectious diseases.

Compared with traditional pharmacovigilance research, the study of drug-related information on social media exhibits distinctive characteristics and advantages. Social media platforms offer real-time and immediate data, enabling the rapid reflection of drug usage patterns and patient feedback, facilitating the prompt identification of potential risks and benefits [53-55]. Furthermore, social media captures the viewpoints and experiences of patients, thus furnishing critical insights for the formulation of patient-centered care [56,57]. For example, understanding patient’s preference for drugs and disease burden can improve drug development strategies, enabling pharmaceutical companies to better focus on specific drugs that meet patient needs and preferences [58].

In contrast to previous COVID-19 social media studies [59-62], this work extracted more rigorous data covering a more extended study period and identified the five most discussed drugs to be investigated through a fully data-driven method. The substantial volume of social media data allows for large-scale real-time dynamic analysis, and it also covers a broader population than electronic health records, which are confined to hospitalized individuals and have restricted access [63]. Social media datasets could also provide large-scale samples for the detection of rare events and the examination of specific population responses, which are challenges in electronic health records–based analysis.

Sentiment analysis on drugs can highlight patient misconceptions and disagreements about a specific medication, enabling pharmaceutical companies and public health agencies to address public anxiety and reduce misinformation about drugs. Our results confirmed findings from Hua et al [59] that the public concern and polarity for ivermectin and hydroxychloroquine, which received the most social media attention, are highly correlated with emotional and political factors, such as personal political orientation, presidential elections, and conspiracy theories. For instance, there was a surge of approximately 200% in acquisitions of medication alternatives such as hydroxychloroquine within 2 days after the press briefing conducted by Donald Trump on March 19, 2020 [3].

The topic distribution indicated possible effects or side effects of ivermectin on the immune system and the wide in-hospital treatment use of remdesivir, but the sentiment analysis showed most opposing stances toward remdesivir which climbed significantly as the crisis unfolded. It was due to shortages, emergency needs, inefficiency [64], and potential side effects of remdesivir like bradycardia [65], and increased risk of hepatic, renal, and cardiovascular reactions [66,67]. Some people even hyped up on Twitter that remdesivir was approved solely for the purposes of reaping big profits for Anthony Fauci and the democidal cabal that he fronts, bilking the taxpayers of billions, and all while quietly euthanizing an unwitting public.

Furthermore, we also found that daily supplements like zinc and vitamin D did not attract much public attention, but their immune-enhancing properties make them significantly more commended by the public than the other three drugs, especially remdesivir.

Analyzing social media data helps identify patterns of drug abuse, adverse reactions, and epidemics, thereby improving health policy planning and resource allocation to address emerging challenges [68,69]. For example, social media plays a pivotal role in addressing drug-related outbreaks and trends, enabling policy makers to respond swiftly and enhance public safety. Its interactive nature fosters direct engagement with the public, allowing policy makers to better understand community needs and concerns. Since public trust in policy makers is critical, for instance, the successful promotion of drugs and vaccines relies heavily on public confidence [70,71], tracking public sentiment through social media in real time enables policy makers to align policies with public attitudes, so as to increase their acceptance and effectiveness.

In addition, this approach helps in combating misinformation about drugs and vaccines [72]. For public health agencies, timely monitoring of drug-related concerns on social media is especially crucial when managing new drug candidates during pandemics. Specifically, our pipeline allows for real-time monitoring of public opinion on social media, which can be an important tool for public health agencies and organizations to implement clear communication plans, physical and mental health interventions, and a coordinated emergency response [73,74].

It could also help conduct rapid and dynamic screening of special populations [60] during public health emergencies, enable targeted communication [75], and combat public health misinformation [72,76].

Our work found that Twitter discussion topics of drugs during the COVID-19 pandemic were consistent with relevant studies focusing on non-drug COVID-19–related topics [25,77,78]. Similar to them, this study uncovered public concerns about “public health measures” and “treatment and recovery.” In addition, by focusing on drugs, we discovered new drug-specific concerns, such as “drug panic” and “immune response.” The focus on “drug panic” may reflect societal uncertainty and anxiety about drug use during the epidemic.

Understanding these anxieties can be instrumental in enabling mental health professionals and policy makers to take measures to support mental health and implement interventions to alleviate anxiety. Care about the “immune response” may be indicative of public concerns about the immune system, including vaccines and immunotherapies. This can help health agencies better communicate information about vaccinations and immunization support to increase public awareness of immunization.

Many previous studies aimed to detect potential DDI and ADR from social media [79-81] or online literature [82] but largely depended on external vocabulary for keyword-matching and little visualization was performed. This study used advanced pretrained language models to identify drug mentions and classify the corresponding sentiments from social media text, ensuring the accuracy of information extraction and sentiment prediction. As the pretrained language model is the main NLP structure in our pipeline, it can be easily extended by integrating better large language models (LLMs) [83-85] that have a similar deep learning network structure but with larger parameters, given enough computational resources.

The visualization module could illustrate associations between drugs, drug-symptoms pairs, and possible clusters or patterns intuitively and clearly, making it easier for researchers to understand and interpret the findings for DDI and ADR [86]. In addition, our co-occurrence network analysis found many widely studied drug-drug and drug-symptom pairs which could verify the reliability of network analysis. The clustering results are consistent with the classification of the general clinic (ie, ATC) to a certain extent, such as the similar clustering characteristics in psychotropic drugs (ie, ATC N) and anti-infectious agent (ie, ATC J), suggesting its potential to capture similarities and associations between drugs.

Notably, we also found many drug pairs with not widely examined associations, such as zinc and quercetin. Their complex (Q/Zn) is considered a potential new drug therapy for improving glycemic control and pulmonary dysfunction in diabetes mellitus [87], which needs to be further investigated. We found new drug-related associations, such as rheumatoid drugs (hydroxychloroquine, dexamethasone, etc.) may affect COVID-19 treatment due to drug repositioning. For these novel drug-drug and drug-symptom pairs, researchers interested in further exploration may undertake additional studies, such as cross-study analyses using multiple data sources or more detailed quantitative studies.

We expect studies could examine the novel associations and provide more robust evidence in future work. Furthermore, networks of the top 5 drugs revealed the significant associations between them such as the co-medication of ivermectin, hydroxychloroquine, and azithromycin for COVID-19 infection. Our network analysis also indicated the combination of remdesivir and tocilizumab or dexamethasone, and a randomized controlled trial showed their efficacy for the treatment of severe COVID-19 infection [88-90].

In essence, the use of NLP techniques and network analysis in our pipeline to analyze vast amounts of social media data is an emerging research approach in pharmacovigilance [91,92]. It holds immense potential in various areas such as the monitoring of ADR, the analysis of drug usage trends, the prediction of epidemics, and the evaluation of drug treatment effects. This novel method could serve pharmaceutical firms, regulatory agencies, and the health care fields with more precise and timely information to enhance their efforts in safeguarding public health.

Limitations

Certain limitations apply to this study. First, social media users can’t represent the general population. For example, Twitter users in the United States are younger, more democratic in their political affiliations, and the most prolific 10% of users create 80% of tweets [93] and older people with lower socioeconomic status may have limited access to social media [94], which may result in bias of our observations. The specific events, geographical contexts, and the dynamic nature of social media usage may also influence the observations.

Second, although we tried to automate the information extraction with deep learning, we still relied on an empirical lexicon to cluster different concept representations. This allowed us to effectively reduce false positives but not to avoid false negatives. Third, manual checks for symptom recognition suggested that approximately 2%-3% of the tweets may still be false positive (eg, lexical ambiguity like an American fever dream), which would lead to fake associations, despite the combination of rigorous rules and advanced NLP models based on deep learning.

Data accuracy, as well as the reliability of the network analysis, are also limited by the authenticity of social media data and the influence of noisy information and misinformation. However, the primary advantage of social media information is its vast scale and timeliness, which offers opportunities for advancing valuable research directions, such as identifying novel drug interactions. Finally, due to the relatively low accuracy of the TSA module (ie, 75.07%), future work should develop more effective NLP solutions to facilitate opinion mining.

Comparison With Previous Works

Hua et al [59] used BERT models to examine public perceptions of approved and off-label medications for COVID-19 infection and found these perceptions to be heavily skewed by misinformation and biases. However, the study suffered from methodological limitations, including a narrow and subjectively chosen selection of drugs, manual lexicon-based extraction, and a small time span. Similarly, Wu et al [38] made the very first attempt to construct co-occurrence networks to study symptoms during COVID-19 infection, but their technique was solely based on lexicon matching.

Both of them relied solely on lexicons for extraction and, as a result, suffered from insufficient accuracy and a lack of generalizability. In contrast, this study combined advanced deep learning models with lexicon-match to improve the accuracy of entity recognition and sentiment analysis, creating a comprehensive and generalized pipeline to streamline information tracking in public health emergencies.

Conclusion

Our study proposed a pipeline of using social media data and NLP techniques to mine potential drug information, timely track drug-related hot events, facilitate public health stakeholders to conduct reasonable policy enactment, monitor drug public opinion, and avoid malignant events during a public health emergency period. In addition, it can supplement the existing ADR and DDI databases by constructing multiple medical entity co-occurrence networks to provide real-world clues for future research. Our framework applies not only to the COVID-19 pandemic but also to other periods of epidemics or major social events.

It can also target other public health care foci such as vaccination.

Authors' Contributions: JY, WL, and XX designed the study. WL and JY drafted the manuscript. JY is the senior author. YH collected the data and drafted and revised the manuscript. WL performed data and statistical analysis. PZ built the NER and TSA models. LZ provided critical reviews. All authors reviewed the manuscript. WL takes responsibility for the integrity of the work.

Conflicts of Interest: None declared.

Multimedia Appendix 1

Additional materials.

Supplement file at the original source — open the original paper. This file is not included in this text import.

Abbreviations

ADR

adverse drug reactions

API

application programming interface

ATC

Anatomical Therapeutic Chemical classification system

ATC-J

Anatomical Therapeutic Chemical classification system, anti-infectious agents

ATC-N

Anatomical Therapeutic Chemical classification system, psychotropic drugs

ATC-P

Anatomical Therapeutic Chemical classification system, antiparasitic drugs

CT-BERT

COVID-Twitter-Bidirectional Encoder Representations from Transformers

CT-BERT-NER

COVID Twitter with Bidirectional Encoder Representations from Transformers for Named Entity Recognition

DDI

drug-drug interactions

FDA

Food and Drug Administration

LDA

latent Dirichlet allocation

METS-CoV

Medical Entity and Targeted Sentiment on COVID-19 Related Tweets

NER

named entity recognition

NLP

natural language processing

TSA

target sentiment analysis

WHO

World Health Organization

Data Availability

Due to the privacy restrictions of Twitter, only tweet IDs can be released. Tweet IDs can be obtained from https://github.com/echen102/COVID-19-TweetIDs. The source code and pipeline tutorial of this paper are available at https://github.com/zju-liwanxin/covid-twitter-drug. Datasets and models for NER and TSA models are publicly available at https://github.com/YLab-Open/METS-CoV. All codes are based on Python software (version 3.8) and the NER, and TSA models are developed by PyTorch (version 1.0).

1 Park HW Park S Chong M Conversations and medical news frames on twitter: infodemiological study on COVID-19 in South Korea J Med Internet Res 2020 22 5 e18897 10.2196/18897 32325426 v22i5e18897 32325426 PMC7202309
2 Abd-Alrazaq A Alhuwail D Househ M Hamdi M Shah Z Top concerns of tweeters during the COVID-19 pandemic: infoveillance study J Med Internet Res 2020 22 4 e19016 10.2196/19016 32287039 v22i4e19016 32287039 PMC7175788
3 Niburski K Niburski O Impact of trump's promotion of unproven COVID-19 treatments and subsequent internet trends: observational Study J Med Internet Res 2020 22 11 e20044 10.2196/20044 33151895 v22i11e20044 33151895 PMC7685699
4 FDA adverse event reporting system (FAERS) U.S. Food and Drug Administration 2025-02-12 http://www.fda.gov/Drugs/GuidanceComplianceRegulatoryInformation/Surveillance/AdverseDrugEffects/
5 Correia R Li L Rocha L Monitoring potential drug interactions and reactions via network analysis of instagram user timelines 2015 Proceedings of the Pacific Symposium2024 January 3-7Big Island of HawaiiBiocomputing 2016World Scientific Publishing Company492 503 10.1142/9789814749411_0045 PMC4720984 26776212
6 Harpaz R DuMouchel W Shah NH Madigan D Ryan P Friedman C Novel data-mining methodologies for adverse drug event discovery and analysis Clin Pharmacol Ther 2012 91 6 1010 1021 10.1038/clpt.2012.50 22549283 clpt201250 22549283 PMC3675775
7 Stephenson WP Hauben M Data mining for signals in spontaneous reporting databases: proceed with caution Pharmacoepidemiol Drug Saf 2007 16 4 359 365 10.1002/pds.1323 17019675 17019675
8 Bate A Hornbuckle K Juhaeri J Motsko SP Reynolds RF Hypothesis-free signal detection in healthcare databases: finding its value for pharmacovigilance Ther Adv Drug Saf 2019 10 2042098619864744 10.1177/2042098619864744 31428307 10.1177_2042098619864744 31428307 PMC6683315
9 Bate A Evans SJW Quantitative signal detection using spontaneous ADR reporting Pharmacoepidemiol Drug Saf 2009 18 6 427 436 10.1002/pds.1742 19358225 19358225
10 Rawlins MD Spontaneous reporting of adverse drug reactions. I: the data Br J Clin Pharmacol 1988 26 1 1 5 10.1111/j.1365-2125.1988.tb03356.x 3203052 3203052 PMC1386492
11 Nikfarjam A Sarker A O'Connor K Ginn R Gonzalez G Pharmacovigilance from social media: mining adverse drug reaction mentions using sequence labeling with word embedding cluster features J Am Med Inform Assoc 2015 22 3 671 681 10.1093/jamia/ocu041 25755127 ocu041 25755127 PMC4457113
12 Yin Z Sulieman LM Malin BA A systematic literature review of machine learning in online personal health data J Am Med Inform Assoc 2019 26 6 561 576 10.1093/jamia/ocz009 30908576 5419782 30908576 PMC7647332
13 Rees S Mian S Grabowski N Using social media in safety signal management: is it reliable? Ther Adv Drug Saf 2018 9 10 591 599 10.1177/2042098618789596 30283627 10.1177_2042098618789596 30283627 PMC6166319
14 Mekawie N Hany A Understanding the factors driving consumers’ purchase intention of over the counter medications using social media advertising In Egypt Procedia Computer Science 2019 164 698 705 10.1016/j.procs.2019.12.238
15 Alshareef M Alotiby A Prevalence and perception among Saudi Arabian population about resharing of information on social media regarding natural remedies as protective measures against COVID-19 Int J Gen Med 2021 14 5127 5137 10.2147/IJGM.S326767 34511995 326767 34511995 PMC8420801
16 Lazard AJ Social media message designs to educate adolescents about E-cigarettes J Adolesc Health 2021 68 1 130 137 10.1016/j.jadohealth.2020.05.030 32654836 S1054-139X(20)30280-9 32654836
17 Wu J Wu X Hua Y Lin S Zheng Y Yang J Exploring social media for early detection of depression in COVID-19 patients 2023 WWW '23: The ACM Web Conference 20232023 April 30Austin TX USAAssociation for Computing Machinery3968 3977 10.1145/3543507.3583867
18 Aramaki E Maskawa S Morita M Twitter catches the flu: detecting influenza epidemics using Twitter 2011 Proceedings of the 2011 Conference on Empirical Methods in Natural Language ProcessingJuly, 2011Edinburgh, Scotland, United KingdomAssociation for Computational Linguistics1568 1576 10.1080/07448481.2021.1973480
19 Nishiyama T Yada S Wakamiya S Hori S Aramaki E Transferability based on drug structure similarity in the automatic classification of noncompliant drug use on social media: natural language processing approach J Med Internet Res 2023 25 e44870 10.2196/44870 37133915 v25i1e44870 37133915 PMC10193216
20 Helgeson SA Mudgalkar RM Jacobs KA Lee AS Sanghavi D Moreno Franco P Brooks IS National COVID Cohort Collaborative (N3C) Association between X/Twitter and prescribing behavior during the COVID-19 pandemic: retrospective ecological study JMIR Infodemiology 2024 4 e56675 10.2196/56675 39556417 v4i1e56675 39556417 PMC11612580
21 Jiang H Hua Y Beeferman D Roy D Annotating the tweebank corpus on named entity recognition and building NLP models for social media analysis arXiv:2201.07281 2022
22 Zhou P Wang Z Chong D Guo Z Hua Y Su Z METS-CoV: a dataset of medical entity and targeted sentiment on COVID-19 related tweets 2022 NIPS'22: 36th International Conference on Neural Information Processing Systems2022 November 28New Orleans LA USACurran Associates Inc21916 21932
23 Satu MS Khan MI Mahmud M Uddin S Summers MA Quinn JM Moni MA TClustVID: a novel machine learning classification model to investigate topics and sentiment in COVID-19 tweets Knowl Based Syst 2021 226 107126 10.1016/j.knosys.2021.107126 33972817 S0950-7051(21)00389-0 33972817 PMC8099549
24 Jelodar H Wang Y Orji R Huang S Deep sentiment classification and topic discovery on novel coronavirus or COVID-19 online siscussions: NLP using LSTM recurrent neural network approach IEEE J Biomed Health Inform 2020 24 10 2733 2742 10.1109/JBHI.2020.3001216 32750931 32750931
25 Chandrasekaran R Mehta V Valkunde T Moustakas E Topics, trends, and sentiments of tweets about the COVID-19 pandemic: temporal infoveillance study J Med Internet Res 2020 22 10 e22624 10.2196/22624 33006937 v22i10e22624 33006937 PMC7588259
26 Babić K Petrović M Beliga S Martinčić-Ipšić S Matešić M Meštrović A Characterisation of COVID-19-related tweets in the croatian language: framework based on the Cro-CoV-cseBERT model Applied Sciences 2021 11 21 10442 10.3390/app112110442
27 de Melo T Figueiredo CMS Comparing news articles and tweets about COVID-19 in Brazil: sentiment analysis and topic modeling approach JMIR Public Health Surveill 2021 7 2 e24585 10.2196/24585 33480853 v7i2e24585 33480853 PMC7886485
28 Beliga S Martinčić-Ipšić S Matešić M Petrijevčanin Vuksanović I Meštrović A Infoveillance of the croatian online media during the COVID-19 pandemic: one-year longitudinal study using natural language processing JMIR Public Health Surveill 2021 7 12 e31540 10.2196/31540 34739388 v7i12e31540 34739388 PMC8715984
29 Chen E Lerman K Ferrara E Tracking social media discourse about the COVID-19 pandemic: development of a public coronavirus twitter data set JMIR Public Health Surveill 2020 6 2 e19273 10.2196/19273 32427106 v6i2e19273 32427106 PMC7265654
30 Devlin J Chang MW Lee K Toutanova K Bert: Pre-training of deep bidirectional transformers for language understanding 2018 Proceedings of the 2019 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Volume 1 (Long and Short Papers)2025 February 09Minneapolis, MinnesotaAssociation for Computational Linguistics181004805
31 Tang D Wei F Qin B Yang N Liu T Zhou M Sentiment embeddings with applications to sentiment analysis IEEE Trans. Knowl. Data Eng 2016 28 2 496 509 10.1109/tkde.2015.2489653
32 Xu P Madotto A Wu C Park J Emo2vec: Learning generalized emotion representation by multi-task training 2018 Proceedings of the 9th Workshop on Computational Approaches to Subjectivity, Sentiment and Social Media Analysis2025 February 09Brussels, Belgium292 298 10.18653/v1/w18-6243
33 Yu LC Wang J Lai KR Zhang X Refining word embeddings using intensity scores for sentiment analysis IEEE/ACM Trans. Audio Speech Lang. Process 2018 26 3 671 681 10.1109/taslp.2017.2788182
34 Wang J Yu L-C Zhang X SoftMCL: soft momentum contrastive learning for fine-grained sentiment-aware pre-training 2024 Proceedings of the 2024 Joint International Conference on Computational Linguistics, Language Resources and Evaluation (LREC-COLING 2024)2025 February 09Torino, ItaliaELRA and ICCL15012 15023
35 Rehurek R Sojka P Software framework for topic modelling with large corpora 2010 Proceedings of the LREC 2010 Workshop on New Challenges for NLP Frameworks2010 July 25Malta
36 Guo Y Zhang Y Lyu T Prosperi M Wang F Xu H Bian J The application of artificial intelligence and data integration in COVID-19 studies: a scoping review J Am Med Inform Assoc 2021 28 9 2050 2067 10.1093/jamia/ocab098 34151987 6307183 34151987 PMC8344463
37 Stevens K Kegelmeyer P Andrzejewski D Buttler D Exploring topic coherence over many models and many topics 2012 Proceedings of the 2012 joint conference on empirical methods in natural language processing and computational natural language learning2012 July 12-14Jeju Island Korea952 961
38 Wu J Wang L Hua Y Li M Zhou L Bates DW Yang J Trend and Co-occurrence Network of COVID-19 symptoms from large-scale social media data: infoveillance study J Med Internet Res 2023 25 e45419 10.2196/45419 36812402 v25i1e45419 36812402 PMC10131634
39 About Gephi 2025-02-12 https://gephi.org/about/
40 Jacomy M Venturini T Heymann S Bastian M ForceAtlas2, a continuous graph layout algorithm for handy network visualization designed for the Gephi software PLoS One 2014 9 6 e98679 10.1371/journal.pone.0098679 24914678 PONE-D-13-40457 24914678 PMC4051631
41 ATC/DDD index 2025 Norwegian Institute of Public Health 2025-02-12 https://www.whocc.no/atc_ddd_index/
42 Hua Y Wu J Lin S Li M Zhang Y Foer D Wang S Zhou P Yang J Zhou L Streamlining social media information retrieval for public health research with deep learning J Am Med Inform Assoc 2024 31 7 1569 1577 10.1093/jamia/ocae118 38718216 7667306 38718216 PMC11187427
43 Rahutomo F Kitasuka T Aritsugi M Semantic cosine similarity 2012 The 7th International Student Conference on Advanced Science and Technology ICAST 20122012 October 29-30Seoul, South Korea
44 Xia P Zhang L Li F Learning similarity with cosine similarity ensemble Information Sciences 2015 307 39 52 10.1016/j.ins.2015.02.024
45 Ansems K Grundeis F Dahms K Mikolajewska A Thieme V Piechotta V Metzendorf M Stegemann M Benstoem C Fichtner F Remdesivir for the treatment of COVID-19 Cochrane Database Syst Rev 2021 8 8 CD014962 10.1002/14651858.CD014962 34350582 34350582 PMC8406992
46 Rahimi MM Jahantabi E Lotfi B Forouzesh M Valizadeh R Farshid S Renal and liver injury following the treatment of COVID-19 by remdesivir J Nephropathol 2020 10 2 1 4 10.34172/jnp.2021.10
47 Guerra M Mendoza C Kandhi S Sun H Saad M Vittorio T Cardiac arrhythmia related to remdesivir in COVID-19 ISMMS Journal of Science and Medicine 2021 1 2 15 10.29024/ijsm.64
48 Sneij E Kohli V Al-Adwan SA Mealor A Remdesivir causing profound bradycardia Journal of the American College of Cardiology 2021 77 18 2037 10.1016/s0735-1097(21)03393-3
49 Blondel V Guillaume J Lambiotte R Lefebvre E Fast unfolding of communities in large networks J. Stat. Mech 2008 2008 10 P10008 10.1088/1742-5468/2008/10/p10008
50 Naveed A Abdullah S Impact of parasitic infection on human gut ecology and immune regulations transl med commun 2021 6 1 10.1186/s41231-021-00091-4
51 Sey ICM Ehimiyein AM Bottomley C Riley EM Mooney JP Does malaria cause diarrhoea? A systematic review Front Med (Lausanne) 2020 7 589379 10.3389/fmed.2020.589379 33330549 33330549 PMC7717985
52 Cvetkovic RS Goa KL Lopinavir/ritonavir: a review of its use in the management of HIV infection Drugs 2003 63 8 769 802 10.2165/00003495-200363080-00004 12662125 6384 12662125
53 Eysenbach G Infodemiology and infoveillance: framework for an emerging set of public health informatics methods to analyze search, communication and publication behavior on the Internet J Med Internet Res 2009 11 1 e11 10.2196/jmir.1157 19329408 v11i1e11 19329408 PMC2762766
54 Chen J Wang Y Social media use for health purposes: systematic review J Med Internet Res 2021 23 5 e17917 10.2196/17917 33978589 v23i5e17917 33978589 PMC8156131
55 Gupta A Katarya R Social media based surveillance systems for healthcare using machine learning: a systematic review J Biomed Inform 2020 108 103500 10.1016/j.jbi.2020.103500 32622833 S1532-0464(20)30128-3 32622833 PMC7331523
56 McDonald L Malcolm B Ramagopalan S Syrad H Real-world data and the patient perspective: the PROmise of social media? BMC Med 2019 17 1 11 10.1186/s12916-018-1247-8 30646913 10.1186/s12916-018-1247-8 30646913 PMC6334434
57 Kudchadkar SR Carroll CL Using social media for rapid information dissemination in a pandemic: #PedsICU and coronavirus disease 2019 Pediatr Crit Care Med 2020 21 8 e538 e546 10.1097/PCC.0000000000002474 32459792 00130478-202008000-00030 32459792 PMC7255404
58 Schmidt AL Rodriguez-Esteban R Gottowik J Leddin M Applications of quantitative social media listening to patient-centric drug development Drug Discov Today 2022 27 5 1523 1530 10.1016/j.drudis.2022.01.015 35114364 S1359-6446(22)00037-X 35114364
59 Hua Y Jiang H Lin S Yang J Plasek JM Bates DW Zhou L Using twitter data to understand public perceptions of approved versus off-label use for COVID-19-related medications J Am Med Inform Assoc 2022 29 10 1668 1678 10.1093/jamia/ocac114 35775946 6625661 35775946 PMC9278189
60 Li M Hua Y Liao Y Zhou L Li X Wang L Yang J Tracking the impact of COVID-19 and lockdown policies on public mental health using social media: infoveillance study J Med Internet Res 2022 24 10 e39676 10.2196/39676 36191167 v24i10e39676 36191167 PMC9566822
61 Lyu JC Han EL Luli GK COVID-19 vaccine-related discussion on twitter: topic modeling and sentiment analysis J Med Internet Res 2021 23 6 e24435 10.2196/24435 34115608 v23i6e24435 34115608 PMC8244724
62 Al-Ramahi M Elnoshokaty A El-Gayar O Nasralah T Wahbeh A Public discourse against masks in the COVID-19 era: infodemiology study of twitter data JMIR Public Health Surveill 2021 7 4 e26780 10.2196/26780 33720841 v7i4e26780 33720841 PMC8023378
63 Wu J Liu X Li M Li W Su Z Lin S Garay L Zhang Z Zhang Y Zeng Q Shen J Yuan C Yang J Clinical text datasets for medical artificial intelligence and large language models — a systematic review NEJM AI 2024 1 6 10.1056/aira2400012
64 Hagman K Hedenstierna M Widaeus J Arvidsson E Hammas B Grillner L Jakobsson J Gille-Johnson P Ursing J Effects of remdesivir on SARS-CoV-2 viral dynamics and mortality in viraemic patients hospitalized for COVID-19 J Antimicrob Chemother 2023 78 11 2735 2742 10.1093/jac/dkad295 37757451 7283037 37757451 PMC10631829
65 Ishisaka Y Aikawa T Malik A Kampaktsis PN Briasoulis A Kuno T Association of remdesivir use with bradycardia: a systematic review and meta-analysis J Med Virol 2023 95 8 e29018 10.1002/jmv.29018 37539782 37539782
66 Blair HA Remdesivir: a review in COVID-19 Drugs 2023 83 13 1215 1237 10.1007/s40265-023-01926-0 37589788 10.1007/s40265-023-01926-0 37589788 PMC10474216
67 Akhvlediani T Bernard-Valnet R Dias SP Eikeland R Pfausler B Sellner J Infectious Disease Panel of the European Academy of Neurology Neurological side effects and drug interactions of antiviral compounds against SARS-CoV-2 Eur J Neurol 2023 30 12 3904 3912 10.1111/ene.16017 37526048 37526048
68 Lane JM Habib D Curtis B Linguistic methodologies to surveil the leading causes of mortality: scoping review of twitter for public health data J Med Internet Res 2023 25 e39484 10.2196/39484 37307062 v25i1e39484 37307062 PMC10337472
69 van Stekelenborg J Ellenius J Maskell S Bergvall T Caster O Dasgupta N Dietrich J Gama S Lewis D Newbould V Brosch S Pierce CE Powell G Ptaszyńska-Neophytou A Wiśniewski AFZ Tregunno P Norén GN Pirmohamed M Recommendations for the use of social media in pharmacovigilance: lessons from IMI WEB-RADR Drug Saf 2019 42 12 1393 1407 10.1007/s40264-019-00858-7 31446567 10.1007/s40264-019-00858-7 31446567 PMC6858385
70 Rand LZ Carpenter DP Kesselheim AS Bhaskar A Darrow JJ Feldman WB Securing the trustworthiness of the FDA to build public trust in vaccines Hastings Cent Rep 2023 53 Suppl 2 S60 S68 10.1002/hast.1525 37963051 37963051
71 Saechang O Yu J Li Y Public trust and policy compliance during the COVID-19 pandemic: the role of professional trust Healthcare (Basel) 2021 9 2 151 10.3390/healthcare9020151 33540762 healthcare9020151 33540762 PMC7913086
72 Pagoto S Waring ME Xu R A call for a public health agenda for social media research J Med Internet Res 2019 21 12 e16661 10.2196/16661 31855185 v21i12e16661 31855185 PMC6940852
73 Terry K Yang F Yao Q Liu C The role of social media in public health crises caused by infectious disease: a scoping review BMJ Glob Health 2023 8 12 e013515 10.1136/bmjgh-2023-013515 38154810 bmjgh-2023-013515 PMC10759087 38154810
74 Yoo S Kim D Yang S Jeong O Real-time disease detection and analysis system using social media contents IJWGS 2020 16 1 22 38 10.1504/ijwgs.2020.106103
75 Murthy BP Krishna N Jones T Wolkin A Avchen RN Vagi SJ Public health emergency risk communication and social media reactions to an errant warning of a ballistic missile threat - Hawaii, January 2018 MMWR Morb Mortal Wkly Rep 2019 68 7 174 176 10.15585/mmwr.mm6807a2 30789877 30789877 PMC6385709
76 Pierri F DeVerna MR Yang KC Axelrod D Bryden J Menczer F One year of COVID-19 vaccine misinformation on twitter: longitudinal study J Med Internet Res 2023 25 e42227 10.2196/42227 36735835 v25i1e42227 36735835 PMC9970010
77 Boon-Itt S Skunkan Y Public perception of the COVID-19 pandemic on twitter: sentiment analysis and topic modeling study JMIR Public Health Surveill 2020 6 4 e21978 10.2196/21978 33108310 v6i4e21978 33108310 PMC7661106
78 Boukobza A Burgun A Roudier B Tsopra R Deep neural networks for simultaneously capturing public topics and sentiments during a pandemic: application on a COVID-19 tweet data set JMIR Med Inform 2022 10 5 e34306 10.2196/34306 35533390 v10i5e34306 35533390 PMC9135113
79 Yang H Yang CC Harnessing social media for drug-drug interactions detection 2013 2013 IEEE International Conference on Healthcare Informatics2013 September 9-11Philadelphia, PA, USA9 11 10.1109/ichi.2013.10
80 Xia L Wang GA Fan W A deep learning based named entity recognition approach for adverse drug events identification and extraction in health social media 2017 International Conference on Smart Health2017 June 26-27Hong Kong, China237 248 10.1007/978-3-319-67964-8_23
81 Coloma PM Becker B Sturkenboom MCJM van Mulligen EM Kors JA Evaluating social media networks in medicines safety surveillance: two case studies Drug Saf 2015 38 10 921 930 10.1007/s40264-015-0333-5 26242616 10.1007/s40264-015-0333-5 26242616 PMC4579253
82 Lu Y Shen D Pietsch M Nagar C Fadli Z Huang H Tu YC Cheng F A novel algorithm for analyzing drug-drug interactions from MEDLINE literature Sci Rep 2015 5 17357 10.1038/srep17357 26612138 srep17357 26612138 PMC4661569
83 Brown T Mann B Ryder N Subbiah M Kaplan J Dhariwal P Neelakantan A Shyam P Sastry G Askell A Agarwal S Herbert-Voss A Krueger G Henighan T Child, R Ramesh A Ziegler DM Wu J Winter C Hesse C Chen M Sigler E Litwin M Gray, S Chess B Clark J Berner C McCandlish S Radford A Sutskever I Amodei D Language models are few-shot learners 2020 NIPS'20: 34th International Conference on Neural Information Processing Systems2020 December 6 - 12Vancouver BC Canada1877 1901
84 Singhal K Azizi S Tu T Mahdavi SS Wei J Chung HW Scales N Tanwani A Cole-Lewis H Pfohl S Payne P Seneviratne M Gamble P Kelly C Babiker A Schärli N Chowdhery A Mansfield P Demner-Fushman D Agüera Y Arcas B Webster D Corrado GS Matias Y Chou K Gottweis J Tomasev N Liu Y Rajkomar A Barral J Semturs C Karthikesalingam A Natarajan V Large language models encode clinical knowledge Nature 2023 620 7972 172 180 10.1038/s41586-023-06291-2 37438534 10.1038/s41586-023-06291-2 37438534 PMC10396962
85 Wu J Wu X Qiu Z Li M Lin S Zhang Y Zheng Y Yuan C Yang Jie Large language models leverage external knowledge to extend clinical insight beyond language boundaries J Am Med Inform Assoc 2024 31 9 2054 2064 10.1093/jamia/ocae079 38684792 7659846 38684792 PMC11339525
86 Wang R Li S Cheng L Wong MH Leung KS Predicting associations among drugs, targets and diseases by tensor decomposition for drug repositioning BMC Bioinformatics 2019 20 Suppl 26 628 10.1186/s12859-019-3283-6 31839008 10.1186/s12859-019-3283-6 31839008 PMC6912989
87 Refat MS Hamza RZ Adam AMA Saad HA Gobouri AA Al-Harbi FS Al-Salmi FA Altalhi T El-Megharbel SM Quercetin/Zinc complex and stem cells: a new drug therapy to ameliorate glycometabolic control and pulmonary dysfunction in diabetes mellitus: structural characterization and genetic studies PLoS One 2021 16 3 e0246265 10.1371/journal.pone.0246265 33661932 PONE-D-20-11910 33661932 PMC7932096
88 Mohiuddin Chowdhury ATM Kamal A Abbas KU Talukder S Karim MR Ali MA Nuruzzaman M Li Y He S Efficacy and outcome of remdesivir and tocilizumab combination against dexamethasone for the treatment of severe COVID-19: a randomized controlled trial Front Pharmacol 2022 13 690726 10.3389/fphar.2022.690726 35450050 690726 35450050 PMC9017992
89 Marrone A Nevola R Sellitto A Cozzolino D Romano C Cuomo G Aprea C Schwartzbaum MXP Ricozzi C Imbriani S Rinaldi L Gjeloshi K Padula A Ranieri R Ruosi C Meo LA Abitabile M Cinone F Carusone C Adinolfi LE Remdesivir plus dexamethasone versus dexamethasone alone for the treatment of coronavirus disease 2019 (COVID-19) patients requiring supplemental O2 therapy: a prospective controlled nonrandomized study Clin Infect Dis 2022 75 1 e403 e409 10.1093/cid/ciac014 35084022 6515763 35084022 PMC8807307
90 Gressens SB Esnault V De Castro N Sellier P Sene D Chantelot L Hervier B Delaugerre C Chevret S Molina JM Saint-Louis CORE group Remdesivir in combination with dexamethasone for patients hospitalized with COVID-19: a retrospective multicenter study PLoS One 2022 17 2 e0262564 10.1371/journal.pone.0262564 35176057 PONE-D-21-27196 35176057 PMC8853490
91 Alshammari TM Mendi N Alenzi KA Alsowaida Y Pharmacovigilance systems in arab countries: overview of 22 arab Countries Drug Saf 2019 42 7 849 868 10.1007/s40264-019-00807-4 31006085 10.1007/s40264-019-00807-4 31006085
92 Liang L Hu J Sun G Hong N Wu G He Y Li Y Hao T Liu L Gong M Artificial intelligence-based pharmacovigilance in the setting of limited resources Drug Saf 2022 45 5 511 519 10.1007/s40264-022-01170-7 35579814 10.1007/s40264-022-01170-7 35579814 PMC9112260
93 Wojcik S Hughes A Sizing up twitter users Pew Research Center 2019 2025-02-12 https://www.pewresearch.org/internet/2019/04/24/sizing-up-twitter-users/
94 Wojcik S Hughes A Sizing up twitter users PEW Research Center 2019 2025-02-12 https://www.pewresearch.org/internet/2019/04/24/sizing-up-twitter-users/
Publication and source details

Original title: Characterizing Public Sentiments and Drug Interactions in the COVID-19 Pandemic Using Social Media: Natural Language Processing and Network Analysis

Wanxin Li; Yining Hua; Peilin Zhou; Li Zhou; Xin Xu; Jie Yang

Journal of Medical Internet Research · 2025

Corresponding Author: Xin Xu xuxinsummer@zju.edu.cn©Wanxin Li, Yining Hua, Peilin Zhou, Li Zhou, Xin Xu, Jie Yang. Originally published in the Journal of Medical Internet Research (https://www.jmir.org), 05.03.2025.2025https://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 (ISSN 1438-8871), is properly cited. The complete bibliographic information, a link to the original publication on https://www.jmir.org/, as well as this copyright and license information must be included.

Repository JATS snapshot; version as supplied

Source retrieved: 2026-11-11T02:37:55.821814+00:00

DOI: 10.2196/63755 · PMC11923463