Sentiment analysis and topic modeling of social media data to explore public discourse on irritable bowel syndrome
- PMID: 40596686
- PMCID: PMC12216140
- DOI: 10.1038/s41598-025-08599-7
Sentiment analysis and topic modeling of social media data to explore public discourse on irritable bowel syndrome
Abstract
Irritable Bowel Syndrome (IBS) is a functional gastrointestinal disorder affecting 10-15% of the global population, characterized by abdominal pain, bloating, and altered bowel habits. This study aimed to analyze IBS-related discussions on X.com using sentiment analysis and topic modeling to understand patient experiences, concerns, and information needs from 2006 to 2024. A mixed-methods analysis of 12,345 IBS-related posts from X.com was conducted, collecting data using focused search terms ('IBS', 'irritable bowel syndrome', '#ibs', 'bowel syndrome'). After preprocessing, sentiment analysis was performed on 8,864 posts using the VADER algorithm. Topic modeling was conducted on 2,532 posts using Latent Dirichlet Allocation, focusing on posts with at least fifty words to ensure meaningful theme extraction. Sentiment analysis showed predominantly neutral (45.9%), positive (35.4%), and negative (18.7%) sentiments. Topic modeling revealed eight major themes: physical symptoms (15.6%), diet and triggers (15.1%), social support (14.2%), comorbidities (12.2%), research and treatment (12.2%), quality of life (12.0%), awareness (11.5%), and mental health (7.2%). Temporal analysis indicated increasing engagement with IBS-related content over time, suggesting growing public awareness and support needs. This study demonstrates the value of social media analysis in understanding IBS patient experiences and highlights the need for integrated care models addressing both physical and psychosocial aspects of the condition. The findings suggest healthcare providers should adopt more comprehensive, patient-centered approaches that consider the full spectrum of patient needs. Results underscore the importance of social media platforms in facilitating peer support and information sharing within the IBS community. Each identified theme offers specific clinical implications, from symptom management strategies to psychological support services. This study positions social media discourse analysis within the broader framework of patient-centered care, contributing to understanding how digital health communication can bridge the gap between clinical practice and lived patient experience in chronic illness.
© 2025. The Author(s).
Conflict of interest statement
Declarations. Competing interests: The authors declare no competing interests. Ethics approval: This study analyzes publicly available social media posts from X.com, adhering to the platform’s terms of service and ethical guidelines for social media research. No personal identifiers were collected or stored, and all data were analyzed in aggregate form. While formal ethics approval was not required for public data analysis, we followed ethical principles for digital research, including respect for user privacy and responsible data handling.
Figures





Similar articles
-
Physical activity for treatment of irritable bowel syndrome.Cochrane Database Syst Rev. 2022 Jun 29;6(6):CD011497. doi: 10.1002/14651858.CD011497.pub2. Cochrane Database Syst Rev. 2022. PMID: 35766861 Free PMC article.
-
Decoding HIV Discourse on Social Media: Large-Scale Analysis of 191,972 Tweets Using Machine Learning, Topic Modeling, and Temporal Analysis.J Med Internet Res. 2025 Aug 29;27:e76745. doi: 10.2196/76745. J Med Internet Res. 2025. PMID: 40882217 Free PMC article.
-
Tegaserod for the treatment of irritable bowel syndrome and chronic constipation.Cochrane Database Syst Rev. 2007 Oct 17;(4):CD003960. doi: 10.1002/14651858.CD003960.pub3. Cochrane Database Syst Rev. 2007. PMID: 17943807
-
Tegaserod for the treatment of irritable bowel syndrome.Cochrane Database Syst Rev. 2004;(1):CD003960. doi: 10.1002/14651858.CD003960.pub2. Cochrane Database Syst Rev. 2004. Update in: Cochrane Database Syst Rev. 2007 Oct 17;(4):CD003960. doi: 10.1002/14651858.CD003960.pub3. PMID: 14974049 Updated.
-
Bulking agents, antispasmodics and antidepressants for the treatment of irritable bowel syndrome.Cochrane Database Syst Rev. 2011 Aug 10;2011(8):CD003460. doi: 10.1002/14651858.CD003460.pub3. Cochrane Database Syst Rev. 2011. PMID: 21833945 Free PMC article.
References
-
- Chey, W. D., Kurlander, J. & Eswaran, S. Irritable bowel syndrome: a clinical review. Jama313, 949–958. 10.1001/jama.2015.0954 (2015). - PubMed
-
- Lovell, R. M. & Ford, A. C. Global prevalence of and risk factors for irritable bowel syndrome: a meta-analysis. Clin. Gastroenterol. Hepatol.10, 712–721e714. 10.1016/j.cgh.2012.02.029 (2012). - PubMed
-
- Sperber, A. D. et al. The global prevalence of IBS in adults remains elusive due to the heterogeneity of studies: a Rome foundation working team literature review. Gut66, 1075–1082. 10.1136/gutjnl-2015-311240 (2017). - PubMed
MeSH terms
LinkOut - more resources
Full Text Sources
Miscellaneous