{"id":{"repo_id":"unitec","oai_identifier":"oai:null:10652/6944"},"canonical_url":"https://search.ndltd.org/etd/unitec/oai:null:10652/6944","repository":{"repo_id":"unitec","name":"Unitec","base_url":"https://www.researchbank.ac.nz/server/oai/request"},"display":{"title":"Classifying causes of depression from social media posts using machine learning and NLP","abstract":"RESEARCH QUESTIONS 1 How accurately can machine learning models (e.g., SVM, XGBoost) classify causes of depression expressed in social media posts? 2 Which feature representation—TF-IDF or contextual embeddings (e.g., BERT)—yields better performance for cause classification? 3 How does model performance differ when trained on expert-labeled data versus publicly available self-reported depression datasets? 4 What are the advantages and limitations of using expert-annotated data for classifying causes of depression in terms of accuracy and generalizability? 5 Does combining expert and public datasets improve the robustness and reliability of cause classification models? ABSTRACT Depression is a serious challenge to one’s mental health worldwide, affecting billions of souls and causing grievous personal, social, and economic consequences. Detecting de pression early through social media platforms has been a matter of recent interest in the research domain. However, this fails to distinguish between general depression and the underlying cause for it. This is a significant oversight since a therapeutic interven tion, when oriented towards a specific cause like trauma, stress, gender discrimination, or domestic violence, tends to produce far better results. The advancement in machine learning (ML) and natural language processing offers an excellent opportunity to analyze large-scale social media data to detect mental health indicators. This leaves a massive gap, however, in employing these technologies to detect the causes of depression, espe cially with expert-verified standards. This paper considers a new framework for defining depression based on the causes of social media posts. Two complementary datasets are integrated into the study: (1) a small, expert-classified, high-quality dataset annotated by mental health professionals under DSM-5 guidelines, and (2) a large, publicly available dataset of self-disclosed depressive posts. Feature extraction was done with TF-IDF and BERT contextual embeddings. Classification was done with supervised learning through SVM and XGBoost, while latent structures were discovered with unsupervised learning through K-Means. The results indicate that the merged dataset performed better than individual sources, with XGBoost + BERT embeddings achieving the best accuracy and F1 score. Interestingly, unsupervised clustering highlighted latent patterns compatible with known depression causes. The importance of merging expert knowledge with broader social data is thus confirmed by these results, along with the provision of a scalable and interpretable mental health monitoring method. The study contributes to viewing depression not from a general classification but more specifically, from cause classification, thus allowing for more targeted and timely support and intervention.","abstract_html":"RESEARCH QUESTIONS 1 How accurately can machine learning models (e.g., SVM, XGBoost) classify causes of depression expressed in social media posts? 2 Which feature representation—TF-IDF or contextual embeddings (e.g., BERT)—yields better performance for cause classification? 3 How does model performance differ when trained on expert-labeled data versus publicly available self-reported depression datasets? 4 What are the advantages and limitations of using expert-annotated data for classifying causes of depression in terms of accuracy and generalizability? 5 Does combining expert and public datasets improve the robustness and reliability of cause classification models? ABSTRACT Depression is a serious challenge to one’s mental health worldwide, affecting billions of souls and causing grievous personal, social, and economic consequences. Detecting de pression early through social media platforms has been a matter of recent interest in the research domain. However, this fails to distinguish between general depression and the underlying cause for it. This is a significant oversight since a therapeutic interven tion, when oriented towards a specific cause like trauma, stress, gender discrimination, or domestic violence, tends to produce far better results. The advancement in machine learning (ML) and natural language processing offers an excellent opportunity to analyze large-scale social media data to detect mental health indicators. This leaves a massive gap, however, in employing these technologies to detect the causes of depression, espe cially with expert-verified standards. This paper considers a new framework for defining depression based on the causes of social media posts. Two complementary datasets are integrated into the study: (1) a small, expert-classified, high-quality dataset annotated by mental health professionals under DSM-5 guidelines, and (2) a large, publicly available dataset of self-disclosed depressive posts. Feature extraction was done with TF-IDF and BERT contextual embeddings. Classification was done with supervised learning through SVM and XGBoost, while latent structures were discovered with unsupervised learning through K-Means. The results indicate that the merged dataset performed better than individual sources, with XGBoost + BERT embeddings achieving the best accuracy and F1 score. Interestingly, unsupervised clustering highlighted latent patterns compatible with known depression causes. The importance of merging expert knowledge with broader social data is thus confirmed by these results, along with the provision of a scalable and interpretable mental health monitoring method. The study contributes to viewing depression not from a general classification but more specifically, from cause classification, thus allowing for more targeted and timely support and intervention.","abstract_has_math":false,"creators":["Thakur, Ayushi"],"institution":"Unitec, Te Pūkenga – New Zealand Institute of Skills and Technology","degree_name":"Master of Applied Technologies (Computing)","degree_level":"Masters","degree_discipline":null,"degree_department":null,"school":null,"contributors":[],"advisors":["Keivanmarz, Ali","Pashen, Mohsen"],"committee_chairs":[],"committee_members":[],"year":2025,"date_issued":"2025","date_published":"2025","updated_at":"2026-11-26T14:13:46Z","subjects":["depression (psychology)","social media","natural language processing (computer science)","pattern recognition"],"languages":["en"],"rights":["All rights reserved","Author"],"rights_urls":[],"identifier_entries":[{"key":"dc:identifier.citation","label":"Dc Identifier Citation","values":["Thakur, A. (2025). Classifying causes of depression from social media posts using machine learning and NLP (Unpublished document submitted in partial fulfilment of the requirements for the degree of Master of Applied Technologies (Computing)). Unitec, Te Pūkenga - New Zealand Institute of Skills and Technology https://hdl.handle.net/10652/6944"],"render_values":[{"text":"Thakur, A. (2025). Classifying causes of depression from social media posts using machine learning and NLP (Unpublished document submitted in partial fulfilment of the requirements for the degree of Master of Applied Technologies (Computing)). Unitec, Te Pūkenga - New Zealand Institute of Skills and Technology https://hdl.handle.net/10652/6944","href":null,"code":true}]}],"person_identifier_entries":[]},"links":{"outbound_url":"https://hdl.handle.net/10652/6944","outbound_label":"Handle","outbound_source":"dc:identifier.uri","record_url":"https://hdl.handle.net/10652/6944","record_label":"Repository record","record_kind":"handle","record_source":"dc:identifier.uri","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Aunitec%3Aoai%3Anull%3A10652%2F6944","prefix":"oai_dc"},"source_record":{"url":"https://www.researchbank.ac.nz/server/oai/request?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Anull%3A10652%2F6944","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Keivanmarz, Ali","Pashen, Mohsen"]},{"key":"dc:creator","label":"Author","values":["Thakur, Ayushi"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2025-08-19T22:48:16Z"]},{"key":"dc:date.available","label":"Dc Date Available","values":["2025-08-19T22:48:16Z"]},{"key":"dc:date.issued","label":"Date","values":["2025"]},{"key":"dc:type","label":"Dc Type","values":["Masters Thesis"]},{"key":"thesis:degree_level","label":"Degree Level","values":["Masters"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Applied Technologies (Computing)"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["Unitec, Te Pūkenga – New Zealand Institute of Skills and Technology"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["depression (psychology)","social media","natural language processing (computer science)","pattern recognition"]},{"key":"dc:subject.discipline","label":"Dc Subject Discipline","values":["Applied Technologies"]},{"key":"dc:subject.marsden","label":"Dc Subject Marsden","values":["ANZSRC Fields of Research 2020::52 Psychology::5203 Clinical and health psychology::520304 Health psychology","ANZSRC Fields of Research 2020::46 Information and computing sciences::4603 Computer vision and multimedia computation::460308 Pattern recognition","ANZSRC Fields of Research 2020::46 Information and computing sciences::4602 Artificial intelligence::460208 Natural language processing"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]},{"key":"dc:rights","label":"Dc Rights","values":["All rights reserved"]},{"key":"dc:rights.holder","label":"Dc Rights Holder","values":["Author"]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.citation","label":"Dc Identifier Citation","values":["Thakur, A. (2025). Classifying causes of depression from social media posts using machine learning and NLP (Unpublished document submitted in partial fulfilment of the requirements for the degree of Master of Applied Technologies (Computing)). Unitec, Te Pūkenga - New Zealand Institute of Skills and Technology https://hdl.handle.net/10652/6944"]},{"key":"dc:identifier.uri","label":"Identifier URI","values":["https://hdl.handle.net/10652/6944"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["RESEARCH QUESTIONS 1 How accurately can machine learning models (e.g., SVM, XGBoost) classify causes of depression expressed in social media posts? 2 Which feature representation—TF-IDF or contextual embeddings (e.g., BERT)—yields better performance for cause classification? 3 How does model performance differ when trained on expert-labeled data versus publicly available self-reported depression datasets? 4 What are the advantages and limitations of using expert-annotated data for classifying causes of depression in terms of accuracy and generalizability? 5 Does combining expert and public datasets improve the robustness and reliability of cause classification models? ABSTRACT Depression is a serious challenge to one’s mental health worldwide, affecting billions of souls and causing grievous personal, social, and economic consequences. Detecting de pression early through social media platforms has been a matter of recent interest in the research domain. However, this fails to distinguish between general depression and the underlying cause for it. This is a significant oversight since a therapeutic interven tion, when oriented towards a specific cause like trauma, stress, gender discrimination, or domestic violence, tends to produce far better results. The advancement in machine learning (ML) and natural language processing offers an excellent opportunity to analyze large-scale social media data to detect mental health indicators. This leaves a massive gap, however, in employing these technologies to detect the causes of depression, espe cially with expert-verified standards. This paper considers a new framework for defining depression based on the causes of social media posts. Two complementary datasets are integrated into the study: (1) a small, expert-classified, high-quality dataset annotated by mental health professionals under DSM-5 guidelines, and (2) a large, publicly available dataset of self-disclosed depressive posts. Feature extraction was done with TF-IDF and BERT contextual embeddings. Classification was done with supervised learning through SVM and XGBoost, while latent structures were discovered with unsupervised learning through K-Means. The results indicate that the merged dataset performed better than individual sources, with XGBoost + BERT embeddings achieving the best accuracy and F1 score. Interestingly, unsupervised clustering highlighted latent patterns compatible with known depression causes. The importance of merging expert knowledge with broader social data is thus confirmed by these results, along with the provision of a scalable and interpretable mental health monitoring method. The study contributes to viewing depression not from a general classification but more specifically, from cause classification, thus allowing for more targeted and timely support and intervention."]},{"key":"dc:format.extent","label":"Dc Format Extent","values":["115"]},{"key":"dc:title","label":"Title","values":["Classifying causes of depression from social media posts using machine learning and NLP"]},{"key":"local:contributor.affiliation","label":"Local Contributor Affiliation","values":["Unitec, Te Pūkenga"]}]}],"canonical_facts":{"dc:contributor.advisor":["Keivanmarz, Ali","Pashen, Mohsen"],"dc:creator":["Thakur, Ayushi"],"dc:date.accessioned":["2025-08-19T22:48:16Z"],"dc:date.available":["2025-08-19T22:48:16Z"],"dc:date.issued":["2025"],"dc:description.abstract":["RESEARCH QUESTIONS 1 How accurately can machine learning models (e.g., SVM, XGBoost) classify causes of depression expressed in social media posts? 2 Which feature representation—TF-IDF or contextual embeddings (e.g., BERT)—yields better performance for cause classification? 3 How does model performance differ when trained on expert-labeled data versus publicly available self-reported depression datasets? 4 What are the advantages and limitations of using expert-annotated data for classifying causes of depression in terms of accuracy and generalizability? 5 Does combining expert and public datasets improve the robustness and reliability of cause classification models? ABSTRACT Depression is a serious challenge to one’s mental health worldwide, affecting billions of souls and causing grievous personal, social, and economic consequences. Detecting de pression early through social media platforms has been a matter of recent interest in the research domain. However, this fails to distinguish between general depression and the underlying cause for it. This is a significant oversight since a therapeutic interven tion, when oriented towards a specific cause like trauma, stress, gender discrimination, or domestic violence, tends to produce far better results. The advancement in machine learning (ML) and natural language processing offers an excellent opportunity to analyze large-scale social media data to detect mental health indicators. This leaves a massive gap, however, in employing these technologies to detect the causes of depression, espe cially with expert-verified standards. This paper considers a new framework for defining depression based on the causes of social media posts. Two complementary datasets are integrated into the study: (1) a small, expert-classified, high-quality dataset annotated by mental health professionals under DSM-5 guidelines, and (2) a large, publicly available dataset of self-disclosed depressive posts. Feature extraction was done with TF-IDF and BERT contextual embeddings. Classification was done with supervised learning through SVM and XGBoost, while latent structures were discovered with unsupervised learning through K-Means. The results indicate that the merged dataset performed better than individual sources, with XGBoost + BERT embeddings achieving the best accuracy and F1 score. Interestingly, unsupervised clustering highlighted latent patterns compatible with known depression causes. The importance of merging expert knowledge with broader social data is thus confirmed by these results, along with the provision of a scalable and interpretable mental health monitoring method. The study contributes to viewing depression not from a general classification but more specifically, from cause classification, thus allowing for more targeted and timely support and intervention."],"dc:format.extent":["115"],"dc:identifier.citation":["Thakur, A. (2025). Classifying causes of depression from social media posts using machine learning and NLP (Unpublished document submitted in partial fulfilment of the requirements for the degree of Master of Applied Technologies (Computing)). Unitec, Te Pūkenga - New Zealand Institute of Skills and Technology https://hdl.handle.net/10652/6944"],"dc:identifier.uri":["https://hdl.handle.net/10652/6944"],"dc:language.iso":["en"],"dc:rights":["All rights reserved"],"dc:rights.holder":["Author"],"dc:subject":["depression (psychology)","social media","natural language processing (computer science)","pattern recognition"],"dc:subject.discipline":["Applied Technologies"],"dc:subject.marsden":["ANZSRC Fields of Research 2020::52 Psychology::5203 Clinical and health psychology::520304 Health psychology","ANZSRC Fields of Research 2020::46 Information and computing sciences::4603 Computer vision and multimedia computation::460308 Pattern recognition","ANZSRC Fields of Research 2020::46 Information and computing sciences::4602 Artificial intelligence::460208 Natural language processing"],"dc:title":["Classifying causes of depression from social media posts using machine learning and NLP"],"dc:type":["Masters Thesis"],"local:contributor.affiliation":["Unitec, Te Pūkenga"],"thesis:degree_level":["Masters"],"thesis:degree_name":["Master of Applied Technologies (Computing)"],"thesis:institution_name":["Unitec, Te Pūkenga – New Zealand Institute of Skills and Technology"]},"updated_at":"2026-11-26T14:13:46Z"}