{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,7,28]],"date-time":"2026-07-28T15:19:17Z","timestamp":1785251957636,"version":"3.55.0"},"reference-count":32,"publisher":"Frontiers Media SA","license":[{"start":{"date-parts":[[2023,7,19]],"date-time":"2023-07-19T00:00:00Z","timestamp":1689724800000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"content-domain":{"domain":["frontiersin.org"],"crossmark-restriction":true},"short-container-title":["Front. Artif. Intell."],"abstract":"<jats:sec><jats:title>Introduction<\/jats:title><jats:p>Globally, the prevalence of mental health problems, especially depression, is at an all-time high. The objective of this study is to utilize machine learning models and sentiment analysis techniques to predict the level of depression earlier in social media users' posts.<\/jats:p><\/jats:sec><jats:sec><jats:title>Methods<\/jats:title><jats:p>The datasets used in this research were obtained from Twitter posts. Four machine learning models, namely extreme gradient boost (XGB) Classifier, Random Forest, Logistic Regression, and support vector machine (SVM), were employed for the prediction task.<\/jats:p><\/jats:sec><jats:sec><jats:title>Results<\/jats:title><jats:p>The SVM and Logistic Regression models yielded the most accurate results when applied to the provided datasets. However, the Logistic Regression model exhibited a slightly higher level of accuracy compared to SVM. Importantly, the logistic regression model demonstrated the advantage of requiring less execution time.<\/jats:p><\/jats:sec><jats:sec><jats:title>Discussion<\/jats:title><jats:p>The findings of this study highlight the potential of utilizing machine learning models and sentiment analysis techniques for early detection of depression in social media users. The effectiveness of SVM and Logistic Regression models, with Logistic Regression being more efficient in terms of execution time, suggests their suitability for practical implementation in real-world scenarios.<\/jats:p><\/jats:sec>","DOI":"10.3389\/frai.2023.1230649","type":"journal-article","created":{"date-parts":[[2023,7,19]],"date-time":"2023-07-19T06:49:57Z","timestamp":1689749397000},"update-policy":"https:\/\/doi.org\/10.3389\/crossmark-policy","source":"Crossref","is-referenced-by-count":31,"title":["Supervised machine learning models for depression sentiment analysis"],"prefix":"10.3389","volume":"6","author":[{"given":"Ibidun Christiana","family":"Obagbuwa","sequence":"first","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Samantha","family":"Danster","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Onil Colin","family":"Chibaya","sequence":"additional","affiliation":[],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1965","published-online":{"date-parts":[[2023,7,19]]},"reference":[{"key":"B1","first-page":"35","article-title":"Sentiment analysis using logistic regression","author":"Aliman","year":"2022","journal-title":"J. Comp. Innovat. Eng. Appl."},{"key":"B2","doi-asserted-by":"publisher","first-page":"1206","DOI":"10.18517\/ijaseit.12.3.14724","article-title":"Machine learning model for sentiment analysis of COVID-19 tweets","volume":"12","author":"Aljabri","year":"2022","journal-title":"Int. J. Adv. Sci. Eng. Inf. Technol."},{"key":"B3","doi-asserted-by":"publisher","first-page":"1825","DOI":"10.1587\/transinf.2020EDP7023","article-title":"Machine learning-based approach for depression detection in twitter using content and activity features","volume":"103","author":"AlSagri","year":"2020","journal-title":"IEICE Transact. Inf. Syst."},{"key":"B4","doi-asserted-by":"publisher","first-page":"1","DOI":"10.1007\/s42979-021-00958-1","article-title":"Sentiment analysis in social media data for depression detection using artificial intelligence: a review","volume":"3","author":"Babu","year":"2022","journal-title":"SN Comp. Sci."},{"key":"B5","unstructured":"Leveraging big data for early detection of depression: developing a machine learning model using tweets777784\n            DaveG. H.\n          Vidhyayana Int. Multidiscipl. Peer Rev. Eur J.82023"},{"key":"B6","unstructured":"DraelosR.\n          GLASS BOX - Machine Learning and Medicine2019"},{"key":"B7","unstructured":"Text mining process: Techniques and tools413418\n            GaikwadS.\n            KhairnarU.\n            DeshpandeA.\n          Int. J. Adv. Res. Comput. Engg. Technol32014"},{"key":"B8","doi-asserted-by":"publisher","first-page":"012079","DOI":"10.1088\/1742-6596\/2070\/1\/012079","article-title":"Sentiment analysis of social media text-emoticon post with machine learning models contribution title","volume":"2070","author":"Jagadishwari","year":"2021","journal-title":"J. Phys."},{"key":"B9","doi-asserted-by":"publisher","first-page":"012034","DOI":"10.1088\/1742-6596\/2161\/1\/012034","article-title":"Depression and suicide analysis using machine learning and NLP","volume":"2161","author":"Jain","year":"2022","journal-title":"J. Phys."},{"key":"B10","unstructured":"JavaTpoint"},{"key":"B11","doi-asserted-by":"publisher","first-page":"2870","DOI":"10.1109\/ACCESS.2017.2672677","article-title":"Comparison research on text pre-processing methods on twitter sentiment analysis","volume":"5","author":"Jianqiang","year":"2017","journal-title":"IEEE Access"},{"key":"B12","doi-asserted-by":"publisher","first-page":"1989","DOI":"10.1016\/j.procs.2020.04.213","article-title":"Assessment of anxiety, depression and stress using learning models","volume":"171","author":"Kumar","year":"2020","journal-title":"Proced. Comput. Sci"},{"key":"B13","doi-asserted-by":"publisher","DOI":"10.1016\/j.chb.2020.106380","article-title":"Social media and public opinion during COVID-19 pandemic: A cross-country analysis","author":"Lui","year":"2020","journal-title":"Comput. Hum. Behav"},{"key":"B14","doi-asserted-by":"publisher","DOI":"10.3389\/fpsyg.2021.660484","article-title":"Influence of false self-presentation on mental health and deleting behavior on instagram: the mediating role of perceived popularity","author":"Mun","year":"2021","journal-title":"Front. Psychol"},{"key":"B15","doi-asserted-by":"crossref","first-page":"88","DOI":"10.18653\/v1\/W18-0609","article-title":"\u201cDeep learning for depression detection of twitter users,\u201d","volume-title":"Proceedings of the Fifth Workshop on Computational Linguistics and Clinical Psychology: From Keyboard to Clinic","author":"Orabi","year":"2018"},{"key":"B16","doi-asserted-by":"publisher","DOI":"10.3390\/medicina57080793","article-title":"A systematic review on telemental health in youth mental health: Focus on anxiety, depression and obsessive-compulsive disorder (Medicina: MDPI).","author":"Orsolini","year":"2021"},{"key":"B17","doi-asserted-by":"publisher","first-page":"1258","DOI":"10.1016\/j.procs.2020.03.442","article-title":"Predicting anxiety, depression, and stress in modern life using machine learning algorithms","volume":"167","author":"Priya","year":"2020","journal-title":"Proced. Comput. Sci."},{"key":"B18","doi-asserted-by":"publisher","first-page":"58","DOI":"10.1016\/j.procs.2019.09.160","article-title":"Emotion mining in social media data","volume":"159","author":"Ranganathan","year":"2019","journal-title":"Proc. Comp. Sci."},{"key":"B19","doi-asserted-by":"publisher","first-page":"e118","DOI":"10.2196\/11817","article-title":"Exploring the utility of community-generated social media content for detecting depression: an analytical study on instagram","volume":"20","author":"Ricard","year":"2018","journal-title":"J. Med. Int. Res."},{"key":"B20","doi-asserted-by":"publisher","first-page":"66","DOI":"10.24191\/mij.v3i1.18273","article-title":"Sentiment analysis on students' stress and depression due to online distance learning during the COVID-19 pandemic","volume":"3","author":"Samsari","year":"2022","journal-title":"Math. Sci. Inf. J"},{"key":"B21","doi-asserted-by":"publisher","first-page":"e168","DOI":"10.2196\/jmir.9267","article-title":"Predicting depression from language-based emotion dynamics: a longitudinal analysis of Facebook and Twitter status updates","volume":"20","author":"Seabrook","year":"2018","journal-title":"J. Med. Int. Res."},{"key":"B22","doi-asserted-by":"publisher","first-page":"8","DOI":"10.1016\/j.biopsych.2018.01.017","article-title":"Opposite molecular signatures of depression in men and women","volume":"84","author":"Seney","year":"2018","journal-title":"Biol. Psychiatry."},{"key":"B23","doi-asserted-by":"publisher","first-page":"12","DOI":"10.5120\/ijca2016907978","article-title":"A survey on image mining, its techniques, and application","volume":"133","author":"Shukla","year":"2016","journal-title":"Int. J. Comp. Appl."},{"key":"B24","doi-asserted-by":"publisher","DOI":"10.1140\/epjds\/s13688-018-0140-6","article-title":"Instagram photos reveal predictive markers of depression","author":"Smith","year":"2018","journal-title":"EPJ Data Sci"},{"key":"B25","doi-asserted-by":"publisher","first-page":"1","DOI":"10.17485\/ijst\/2018\/v11i4\/119594","article-title":"An Initiative To Identify Depression Using Sentiment Analysis: A Machine Learning Approach","volume":"11","author":"Sood","year":"2018","journal-title":"Indian J. Sci. Technol."},{"key":"B26","doi-asserted-by":"publisher","first-page":"23","DOI":"10.36548\/jucct.2023.1.002","article-title":"An intellectual decision system for classification of mental health illness on social media using computational intelligence approach","volume":"5","author":"Sujithra","year":"2023","journal-title":"J. Ubiquit. Comp. Commun. Technol."},{"key":"B27","unstructured":"University of Queensland2022"},{"key":"B28","first-page":"227","article-title":"\u201cEmotion mining in social media data,\u201d","volume-title":"Intelligent Computing Techniques for Cyber Security","author":"Tiwari","year":"2021"},{"key":"B29","doi-asserted-by":"publisher","first-page":"3174","DOI":"10.3390\/s19143174","article-title":"A machine-learning approach to distinguish passengers and drivers reading while driving","volume":"19","author":"Torres","year":"2019","journal-title":"Sensors (Basel)"},{"key":"B30","doi-asserted-by":"crossref","unstructured":"WangW.\n            ChakrabortyG.\n            ChakrabortyB.\n          Predicting the Risk of Chronic Kidney Disease (CKD) Using Machine Learning Algorithm. ResearchGate2020","DOI":"10.3390\/app11010202"},{"key":"B31","unstructured":"Wikipedia Organisation.2023"},{"key":"B32","first-page":"38","volume-title":"An In-Depth Analysis of Machine Learning Approaches to Predict Depression","author":"Zulfiker","year":"2021"}],"container-title":["Frontiers in Artificial Intelligence"],"original-title":[],"link":[{"URL":"https:\/\/www.frontiersin.org\/articles\/10.3389\/frai.2023.1230649\/full","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2023,7,19]],"date-time":"2023-07-19T06:50:04Z","timestamp":1689749404000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.frontiersin.org\/articles\/10.3389\/frai.2023.1230649\/full"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2023,7,19]]},"references-count":32,"alternative-id":["10.3389\/frai.2023.1230649"],"URL":"https:\/\/doi.org\/10.3389\/frai.2023.1230649","relation":{},"ISSN":["2624-8212"],"issn-type":[{"value":"2624-8212","type":"electronic"}],"subject":[],"published":{"date-parts":[[2023,7,19]]},"article-number":"1230649"}}