Anti-Depressants Twitter report for the week of July 10, 2022

Daily sentiment

Net daily sentiment ranged from -19.05 for on Monday the 11th to 35.41 for on Tuesday the 12th.

The sentiment for each tweet is scored from -1 (most negative) to +1 (most positive) using VADER sentiment analysis. Net sentiment is calculated by summing the sentiment across all tweets for a given day and/or category, then normalizing the score by the number of tweets.

daily sentiment for tweets published between 2022-07-10 and 2022-07-16


Medical conditions from the MedDRA dictionary

Anxiety was the most frequently observed medical condition mentioned. Insomnia had the highest overall net sentiment of 25.65. Boil had the lowest net sentiment this week (-38.64).

medical condition count sentiment
Anxiety 79 -10.91
Pain 64 -31.65
Crying 31 -29.31
Sweating 25 -20.03
Stroke 22 14.89
Insomnia 20 25.65
ADHD 16 1.41
Sleepiness, Sleepy 15 -4.78
Boil 13 -38.64
Stress 12 -23.68

MedDra is a standardized medical terminology developed by the International Council for Harmonization Cross-referencing tweets against this list is a starting point for identifying medical conditions mentioned in tweets.


Cross-referencing the MedDRA dictionary by sentiment and topic

Positive tweets:

There were 138 tweets with an strong positive sentiment. The top 10 most frequent medical conditions mentioned within these tweets were (1) Anxiety, (2) Pain, (3) Insomnia, (4) Stroke, (5) Crying, (6) Inflammation, (7) Weight gain, (8) ADHD, (9) Nightmare, Nightmares, (10) Sweating. Of these terms, Inflammation (n=5), Weight gain (n=5), Nightmare, Nightmares (n=4) were not in the top 10 most frequent terms across all tweets.

Meddra conditions associated with positive tweets published between 2022-07-10 and 2022-07-16

Negative tweets:

There were 186 tweets with an strong negative sentiment. The top 10 most frequent medical conditions mentioned within these tweets were (1) Anxiety, (2) Pain, (3) Crying, (4) Boil, (5) Sweating, (6) Sickness, (7) Stroke, (8) Fall, (9) Stress, (10) ADHD. Of these terms, Sickness (n=7), Fall (n=5) were not in the top 10 most frequent terms across all tweets.

Meddra conditions associated with negative tweets published between 2022-07-10 and 2022-07-16


Word-level analysis

The 25 most important words within positive tweets (compared to negative and neutral) tweets are shown in the treemap below. The size of each box represents the weighted score of each word. The word “feel” within the search for “Sertraline” had the highest overall weight. When the words are summed for each topic, Sertraline had the highest overall weight.

words associated with positive tweets published between 2022-07-10 and 2022-07-16

The 25 most important words within negative tweets (compared to positive and neutral) tweets are shown in the treemap below. The word “stress” within the search for “Tryptophan” had the highest overall weight. When the words are summed for each topic, “Tryptophan” had the highest overall weight within negative tweets.

words associated with negative tweets published between 2022-07-10 and 2022-07-16

This analysis of words evaluates the stemmed version of words using the Snowball algorithm. By stemming words, words with similar meaning, such as pain, painful & pained, are grouped together as simply “pain”.


References

Webpage created in R version 4.1.0 (2021-05-18) and R Studio (Version 1.4.1717) using the following packages: plotly, kableExtra, formattable, treemap, and wordpressr.

  • C. Sievert. Interactive Web-Based Data Visualization with R, plotly, and shiny. Chapman and Hall/CRC Florida, 2020.
  • Hao Zhu (2021). kableExtra: Construct Complex Table with ‘kable’ and Pipe Syntax. R package version 1.3.4.
  • Kun Ren and Kenton Russell (2021). formattable: Create ‘Formattable’ Data Structures. R package version 0.2.1.
  • Martijn Tennekes (2021). treemap: Treemap Visualization. R package version 2.4-3.
  • Simit Patel (2021). wordpressr: An API Wrapper for WordPress Site APIs. R package version 0.1.0.
  • Hutto, C.J. & Gilbert, E.E. (2014). VADER: A Parsimonious Rule-based Model for Sentiment Analysis of Social Media Text. Eighth International Conference on Weblogs and Social Media (ICWSM-14). Ann Arbor, MI, June 2014.