[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-detail-122465-en":3,"doc-seo-122465-105":30,"detail-sidebar-cat-0-en-105":91},{"code":4,"msg":5,"data":6},0,"success",{"doc_id":7,"user_id":8,"nickname":9,"user_avatar":10,"doc_module":4,"category_id":11,"category_name":12,"doc_title":13,"doc_description":14,"doc_content":15,"file_id":16,"file_url":17,"file_type":18,"file_size":19,"view_count":4,"is_deleted":4,"is_public":20,"is_downloadable":20,"audit_status":20,"page_count":21,"language":22,"language_code":23,"site_id":24,"html_lang":23,"table_of_contents":25,"faqs":26,"seo_title":27,"seo_description":14,"update_tm":28,"read_time":29},122465,1374391974564,"Clementine","https://ap-avatar.wpscdn.com/avatar/14000253aa45c000a9e?x-image-process=image/resize,m_fixed,w_180,h_180&k=1779874745381141002",8,"Research & Report","From data to insights - Machine learning in thematic analysis of complex health conditions on social media","Social media data enables examination of public perspectives on health conditions, interventions, and policies, but qualitative analysis is resource intensive and limits timely use. This research investigates whether machine learning can augment thematic analysis of complex health issue data from social media. A deductive thematic analysis is first conducted on 7,177 YouTube comments about postpartum depression, followed by machine-assisted analysis using five NLP classification models with and without class balancing (class weights and SMOTE). Results suggest supervised ML alone is not optimal, while ML-NLP integrated with thematic analysis improves efficiency by filtering ineligible data. The study supports using social media for meaningful public health insights and recommends future work on AI tools, larger datasets, and unsupervised approaches.","From data to insights: Machine learning in thematic analysis of complex health conditions on social media  \nAnila Virani Ahsan Mollani Piper Jackson  \nThompson Rivers University, Canada  \nKnowledge Management & E-Learning: An International Journal (KM&EL)  \nISSN 2073-7904  \nRecommended citation:  \nVirani, A., Mollani, A., & Jackson, P. (2025) . From data to insights: Machine learning in thematic analysis of complex health conditions on social media. Knowledge Management & E-Learning, 17(4), 666–682.  \n[https://doi.org/10.34105/j.kmel.2025.17.031](https://doi.org/10.34105/j.kmel.2025.17.031)  \nFrom data to insights: Machine learning in thematic analysis of complex health conditions on social media  \nAnila Virani*   \nSchool of Nursing  \nThompson Rivers University, Canada E-mail: [avirani@tru.ca](avirani@tru.ca)  \nAhsan Mollani   \nFaculty of Science  \nThompson Rivers University, Canada [E-mail: mollania22@mytru.ca](E-mail: mollania22@mytru.ca)  \nPiper Jackson   \nFaculty of Science  \nThompson Rivers University, Canada [E-mail: pjackson@tru.ca](E-mail: pjackson@tru.ca)  \n*Corresponding author  \nAbstract: Social media data has the potential to enable the exploration of public perspectives on health conditions, interventions and policies. However, theresource-intensive nature of qualitative analysis creates a barrier to the timely utilization of social media data. Artificial intelligence can provide innovative ways to reduce the burden by augmenting the data analysis process for researchers. Therefore, the purpose of this research is to explore the feasibility of using Machine Learning (ML) in augmenting thematic analysis of complex health issues data available on social media. First, we performed a humandetermined deductive thematic analysis of the 7,177 comments posted by YouTube video viewers on postpartum depression. Then we used the same data to perform machine-assisted analysis using five Natural Language Processing (NLP) classification models with and without class balancing techniques (class weight balance and SMOTE) to balance the unequal number of comments across themes. Our analysis suggested that supervised machine learning may not be optimal for analyzing complex health datasets. However, integrating ML-NLP techniques with thematic analysis can effectively filter out ineligible data, thereby enhancing the efficiency of traditional thematic analysis processes. This integration allows researchers to focus on valuable data, producing meaningful insights and comprehensive analysis while saving time otherwise spent sifting through a large amount of ineligible data. Social media data can offer significant public health insights, and to enhance the use of such data, future research should focus on developing artificial intelligence tools to improve the efficiency of thematic analysis using larger datasets and unsupervised machine learning models for analyzing complex health issues.  \nKeywords: Machine learning; Natural language processing; Thematic analysis; Social media data; Complex health issues  \nBiographical notes: Dr. Anila Virani serves as an Assistant Professor at the School of Nursing, Thompson Rivers University, Canada. With over 25 years of extensive experience in healthcare, academia, and research, Dr. Virani ’s scholarly journey encompasses significant national and international contributions. Her doctoral research at the University of Calgary and subsequent postdoctoral project at the University of British Columbia focused on the integration of informatics solutions within healthcare systems. Dr. Virani ’s research program is dedicated to investigating the intricate dynamics between individuals and technology in healthcare and educational settings, with a particular emphasis on technological innovation.  \nAhsan Mollani holds a Master ’s degree in Data Science from Thompson Rivers University. His research interests include technology-enhanced learning and the application of machine learning and natural language pro","cbCaifll2iZcW8we","https://ap.wps.com/l/cbCaifll2iZcW8we","pdf",577636,1,18,"English","en",105,"# Introduction\n## Data from social media and research benefits\n## Research aim and approach\n# Methods\n## Deductive thematic analysis of YouTube comments\n## Machine-assisted analysis with NLP classification models\n## Class balancing strategies\n# Results and discussion\n## Suitability of supervised machine learning for complex health data\n## Impact of ML-NLP integration on efficiency and insight quality\n# Conclusion and future work","[{\"question\":\"What problem does the study address about using social media data for health research?\",\"answer\":\"Qualitative analysis of social media content is resource intensive, which slows down and limits timely utilization of social media data for studying health conditions and public responses.\"},{\"question\":\"How was thematic analysis performed in this research?\",\"answer\":\"The study conducted a human-determined deductive thematic analysis on 7,177 YouTube comments from viewers about postpartum depression.\"},{\"question\":\"What machine-learning approach was tested to support thematic analysis?\",\"answer\":\"Five NLP classification models were used with and without class balancing techniques, including class weight balancing and SMOTE, to manage unequal comment counts across themes.\"}]","From data to insights - Machine learning in thematic analysis of complex health conditions on social media | PDF",1785810788,45,{"code":4,"msg":31,"data":32},"ok",{"site_id":24,"language":23,"slug":33,"title":13,"keywords":34,"description":14,"schema_data":35,"social_meta":86,"head_meta":88,"extra_data":90,"updated_unix":28},"from-data-to-insights-machine-learning-in-thematic-analysis-of-complex-health-conditions-on-social-media","",{"@graph":36,"@context":85},[37,54,68],{"@type":38,"itemListElement":39},"BreadcrumbList",[40,44,48,51],{"item":41,"name":42,"@type":43,"position":20},"https://docshare.wps.com","Home","ListItem",{"item":45,"name":46,"@type":43,"position":47},"https://docshare.wps.com/document/","Document",2,{"item":49,"name":12,"@type":43,"position":50},"https://docshare.wps.com/document/research-report/",3,{"item":52,"name":13,"@type":43,"position":53},"https://docshare.wps.com/document/from-data-to-insights-machine-learning-in-thematic-analysis-of-complex-health-conditions-on-social-media/122465/",4,{"url":52,"name":13,"@type":55,"author":56,"headline":13,"publisher":58,"fileFormat":61,"inLanguage":23,"description":14,"dateModified":62,"datePublished":62,"encodingFormat":61,"isAccessibleForFree":63,"interactionStatistic":64},"DigitalDocument",{"name":9,"@type":57},"Person",{"url":41,"name":59,"@type":60},"DocShare","Organization","application/pdf","2026-08-04",true,{"@type":65,"interactionType":66,"userInteractionCount":4},"InteractionCounter",{"@type":67},"ViewAction",{"@type":69,"mainEntity":70},"FAQPage",[71,77,81],{"name":72,"@type":73,"acceptedAnswer":74},"What problem does the study address about using social media data for health research?","Question",{"text":75,"@type":76},"Qualitative analysis of social media content is resource intensive, which slows down and limits timely utilization of social media data for studying health conditions and public responses.","Answer",{"name":78,"@type":73,"acceptedAnswer":79},"How was thematic analysis performed in this research?",{"text":80,"@type":76},"The study conducted a human-determined deductive thematic analysis on 7,177 YouTube comments from viewers about postpartum depression.",{"name":82,"@type":73,"acceptedAnswer":83},"What machine-learning approach was tested to support thematic analysis?",{"text":84,"@type":76},"Five NLP classification models were used with and without class balancing techniques, including class weight balancing and SMOTE, to manage unequal comment counts across themes.","https://schema.org",{"og:url":52,"og:type":87,"og:title":13,"og:site_name":59,"og:description":14},"article",{"robots":89,"canonical":52},"index,follow",{"doc_id":7,"site_id":24},{"code":4,"msg":5,"data":92},[93,97,101,105,110,115,120,123,128,131,135],{"id":20,"doc_module":4,"doc_module_name":46,"category_name":94,"show_sort_weight":95,"slug":96},"Story & Novel",90,"story-novel",{"id":47,"doc_module":4,"doc_module_name":46,"category_name":98,"show_sort_weight":99,"slug":100},"Literature",80,"literature",{"id":53,"doc_module":4,"doc_module_name":46,"category_name":102,"show_sort_weight":103,"slug":104},"Exam",70,"exam",{"id":106,"doc_module":4,"doc_module_name":46,"category_name":107,"show_sort_weight":108,"slug":109},5,"Comic",60,"comic",{"id":111,"doc_module":4,"doc_module_name":46,"category_name":112,"show_sort_weight":113,"slug":114},6,"Technology",50,"technology",{"id":116,"doc_module":4,"doc_module_name":46,"category_name":117,"show_sort_weight":118,"slug":119},7,"Healthcare",40,"healthcare",{"id":11,"doc_module":4,"doc_module_name":46,"category_name":12,"show_sort_weight":121,"slug":122},30,"research-report",{"id":124,"doc_module":4,"doc_module_name":46,"category_name":125,"show_sort_weight":126,"slug":127},9,"Religion & Spirituality",20,"religion-spirituality",{"id":126,"doc_module":4,"doc_module_name":46,"category_name":129,"show_sort_weight":126,"slug":130},"World Cup","world-cup",{"id":132,"doc_module":4,"doc_module_name":46,"category_name":133,"show_sort_weight":132,"slug":134},10,"Lifestyle","lifestyle",{"id":136,"doc_module":4,"doc_module_name":46,"category_name":137,"show_sort_weight":106,"slug":138},19,"General","general"]