Shahid Munir Shah , Syeda Anshrah Gillani , Mirza Samad Ahmed Baig , Muhammad Aamer Saleem , Muhammad Hamzah Siddiqui
{"title":"Advancing depression detection on social media platforms through fine-tuned large language models","authors":"Shahid Munir Shah , Syeda Anshrah Gillani , Mirza Samad Ahmed Baig , Muhammad Aamer Saleem , Muhammad Hamzah Siddiqui","doi":"10.1016/j.osnem.2025.100311","DOIUrl":null,"url":null,"abstract":"<div><div>This study investigates the use of Large Language Models (LLMs) for improved depression detection from users’ social media data. Through the use of fine-tuned GPT-3.5 Turbo 1106 and LLaMA2-7B models and a sizable dataset from earlier studies, we were able to identify depressed content in social media posts with a high accuracy of 96.4%. The comparative analysis of the obtained results with the relevant studies in the literature and the base models shows that the proposed fine-tuned LLMs achieved enhanced performance compared to existing state-of-the-art systems and the base models. This demonstrates the robustness of LLM-based fine-tuned systems to be used as potential depression detection systems. The study describes the approach in depth, including the parameters used and the fine-tuning procedure, along with the dataset description and comparative summary of the results, indicating the important implications of the obtained results for the early diagnosis of depression on various social media platforms.</div></div>","PeriodicalId":52228,"journal":{"name":"Online Social Networks and Media","volume":"46 ","pages":"Article 100311"},"PeriodicalIF":0.0000,"publicationDate":"2025-03-21","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Online Social Networks and Media","FirstCategoryId":"1085","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S2468696425000126","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"Q1","JCRName":"Social Sciences","Score":null,"Total":0}
引用次数: 0
Abstract
This study investigates the use of Large Language Models (LLMs) for improved depression detection from users’ social media data. Through the use of fine-tuned GPT-3.5 Turbo 1106 and LLaMA2-7B models and a sizable dataset from earlier studies, we were able to identify depressed content in social media posts with a high accuracy of 96.4%. The comparative analysis of the obtained results with the relevant studies in the literature and the base models shows that the proposed fine-tuned LLMs achieved enhanced performance compared to existing state-of-the-art systems and the base models. This demonstrates the robustness of LLM-based fine-tuned systems to be used as potential depression detection systems. The study describes the approach in depth, including the parameters used and the fine-tuning procedure, along with the dataset description and comparative summary of the results, indicating the important implications of the obtained results for the early diagnosis of depression on various social media platforms.