Adapting language models for mental health analysis on social media
| dc.contributor.affiliation | Universidade de Santiago de Compostela. Centro de Investigación en Tecnoloxías Intelixentes da USC (CiTIUS) | |
| dc.contributor.author | Aragón Saenzpardo, Mario Ezra | |
| dc.contributor.author | López Monroy, Adrián Pastor | |
| dc.contributor.author | Montes y Gómez, Manuel | |
| dc.contributor.author | Losada Carril, David Enrique | |
| dc.date.accessioned | 2025-11-18T13:35:22Z | |
| dc.date.available | 2025-11-18T13:35:22Z | |
| dc.date.issued | 2025-07-16 | |
| dc.description.abstract | In recent years, there has been a growing research interest focused on identifying traces of mental disorders through social media analysis. These disorders significantly impair millions of individuals’ cognitive and behavioral functions worldwide. Our study aims to advance the understanding of four prevalent mental disorders: Anorexia, Depression, Gambling, and Self-harm. We present a comprehensive framework designed for the domain adaptation of models to analyze and identify signs of these conditions on social media posts. The language models’ adapting strategy consisted of three key stages. First, we gathered and enriched substantial data on the four psychological disorders. Second, we adapted the different models to the language used to discuss mental health concerns on social media. Finally, we employed an adapter to fine-tune the models for multiple classification tasks (specific to each mental health condition). The intuitive idea is to adapt a language model smoothly to each domain. Our work includes a comparative study of different language models under in- and cross-domain conditions. This allows us to, for example, assess the ability of a depression-based language model to detect signs of disorders such as anorexia or self-harm. We show that the resulting mental health models perform well in early risk detection tasks. Additionally, we thoroughly analyze the linguistic qualities of these models by testing their predictive abilities using conventional clinical tools, such as specialized questionnaires. We rigorously examine the models across multiple predictive tasks to provide evidence of the adaptation approach’s robustness and effectiveness. Our evaluation results are promising. They demonstrate that our framework enhances classification performance and competes favorably with state-of-the-art models. | |
| dc.description.peerreviewed | SI | |
| dc.description.sponsorship | Mario Ezra Aragón and David E. Losada, thank the support obtained from MICIU/AEI/10.13039/501100011033 (PID2022-137061OB-C22, supported by ERDF) and Xunta de Galicia-Consellería de Cultura, Educación, Formación Profesional e Universidades (ED431G 2023/04, ED431C 2022/19, supported by ERDF). | |
| dc.identifier.citation | Aragón, M. E., López-Monroy, A. P., Montes-y-Gómez, M., & Losada, D. E. (2025). Adapting language models for mental health analysis on social media. Artificial Intelligence in Medicine, 168, 103217. 10.1016/j.artmed.2025.103217 | |
| dc.identifier.doi | 10.1016/j.artmed.2025.103217 | |
| dc.identifier.issn | 0933-3657 | |
| dc.identifier.uri | https://hdl.handle.net/10347/43901 | |
| dc.journal.title | Artificial Intelligence in Medicine | |
| dc.language.iso | eng | |
| dc.page.final | 16 | |
| dc.page.initial | 1 | |
| dc.publisher | Elsevier | |
| dc.relation.projectID | info:eu-repo/grantAgreement/AEI/Plan Estatal de Investigación Científica y Técnica y de Innovación 2021-2023/PID2022-137061OB-C22/ES/ | |
| dc.relation.publisherversion | https://doi.org/10.1016/j.artmed.2025.103217 | |
| dc.rights | © 2025 The Authors. Published by Elsevier B.V. This is an open access article under the CC BY license (http://creativecommons.org/licenses/by/4.0/). | |
| dc.rights | Attribution 4.0 International | en |
| dc.rights.accessRights | open access | |
| dc.rights.uri | http://creativecommons.org/licenses/by/4.0/ | |
| dc.subject | Social media | |
| dc.subject | Mental health | |
| dc.subject | Anorexia | |
| dc.subject | Depression | |
| dc.subject | Gambling | |
| dc.subject | Self-harm | |
| dc.subject | Language models | |
| dc.subject | Adapters | |
| dc.title | Adapting language models for mental health analysis on social media | |
| dc.type | journal article | |
| dc.type.hasVersion | VoR | |
| dc.volume.number | 168 | |
| dspace.entity.type | Publication | |
| relation.isAuthorOfPublication | 7ddb36fe-bf39-4c79-85bc-540ce4d9a23b | |
| relation.isAuthorOfPublication.latestForDiscovery | 7ddb36fe-bf39-4c79-85bc-540ce4d9a23b |
Files
Original bundle
1 - 1 of 1
Loading...
- Name:
- 2025_artificial_aragon_adapting.pdf
- Size:
- 3.83 MB
- Format:
- Adobe Portable Document Format