What are IBD Patients Talking About on Twitter? Using Natural Language Understanding to Investigate Patients' Tweets

SN Comput Sci. 2023;4(4):343. doi: 10.1007/s42979-023-01772-7. Epub 2023 Apr 20.

Abstract

This research aims to investigate what patients with inflammatory bowel disease (IBD) are talking about on Twitter and learn from the experimental knowledge they share online. The study presents a framework for analyzing patients' tweets and comparing their content to tweets of the general population. We started by constructing two datasets of tweets-a dataset of patients' tweets and a control dataset for comparison. Then, we thematically classified the tweets and obtained a subset of tweets related to health and nutrition. We used a Dirichlet regression to compare the thematic segmentations of the two groups. We continued by extracting keywords from the filtered tweets and applying entity sentiment analysis to determine the patients' sentiments towards the extracted keywords. Finally, we detected emotions within the tweets and used a Wilcoxon test to compare the emotions conveyed in each group. We found statistically significant differences between the patients' thematic segmentations and those of the control group and observed significant differences in the emotions each group expressed while talking about health. Not only do patients talk more about health in comparison to the general Twitter population, but they also address the subject with negative sentiments and express more negative emotions. The personal information IBD patients share on Twitter can be used to derive complementary knowledge about the disease and provide an additional foundation to existing medical research on IBD. The four stages of the study are also feasible to extend to other chronic conditions.

Keywords: Inflammatory bowel disease (IBD); Natural language understanding (NLU); Sentiment analysis; Thematic analysis; Twitter.