Cargando…

Detecting Potentially Harmful and Protective Suicide-Related Content on Twitter: Machine Learning Approach

BACKGROUND: Research has repeatedly shown that exposure to suicide-related news media content is associated with suicide rates, with some content characteristics likely having harmful and others potentially protective effects. Although good evidence exists for a few selected characteristics, systema...

Descripción completa

Detalles Bibliográficos
Autores principales: Metzler, Hannah, Baginski, Hubert, Niederkrotenthaler, Thomas, Garcia, David
Formato: Online Artículo Texto
Lenguaje:English
Publicado: JMIR Publications 2022
Materias:
Acceso en línea:https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9434391/
https://www.ncbi.nlm.nih.gov/pubmed/35976193
http://dx.doi.org/10.2196/34705
_version_ 1784780861824040960
author Metzler, Hannah
Baginski, Hubert
Niederkrotenthaler, Thomas
Garcia, David
author_facet Metzler, Hannah
Baginski, Hubert
Niederkrotenthaler, Thomas
Garcia, David
author_sort Metzler, Hannah
collection PubMed
description BACKGROUND: Research has repeatedly shown that exposure to suicide-related news media content is associated with suicide rates, with some content characteristics likely having harmful and others potentially protective effects. Although good evidence exists for a few selected characteristics, systematic and large-scale investigations are lacking. Moreover, the growing importance of social media, particularly among young adults, calls for studies on the effects of the content posted on these platforms. OBJECTIVE: This study applies natural language processing and machine learning methods to classify large quantities of social media data according to characteristics identified as potentially harmful or beneficial in media effects research on suicide and prevention. METHODS: We manually labeled 3202 English tweets using a novel annotation scheme that classifies suicide-related tweets into 12 categories. Based on these categories, we trained a benchmark of machine learning models for a multiclass and a binary classification task. As models, we included a majority classifier, an approach based on word frequency (term frequency-inverse document frequency with a linear support vector machine) and 2 state-of-the-art deep learning models (Bidirectional Encoder Representations from Transformers [BERT] and XLNet). The first task classified posts into 6 main content categories, which are particularly relevant for suicide prevention based on previous evidence. These included personal stories of either suicidal ideation and attempts or coping and recovery, calls for action intending to spread either problem awareness or prevention-related information, reporting of suicide cases, and other tweets irrelevant to these 5 categories. The second classification task was binary and separated posts in the 11 categories referring to actual suicide from posts in the off-topic category, which use suicide-related terms in another meaning or context. RESULTS: In both tasks, the performance of the 2 deep learning models was very similar and better than that of the majority or the word frequency classifier. BERT and XLNet reached accuracy scores above 73% on average across the 6 main categories in the test set and F(1)-scores between 0.69 and 0.85 for all but the suicidal ideation and attempts category (F(1)=0.55). In the binary classification task, they correctly labeled around 88% of the tweets as about suicide versus off-topic, with BERT achieving F(1)-scores of 0.93 and 0.74, respectively. These classification performances were similar to human performance in most cases and were comparable with state-of-the-art models on similar tasks. CONCLUSIONS: The achieved performance scores highlight machine learning as a useful tool for media effects research on suicide. The clear advantage of BERT and XLNet suggests that there is crucial information about meaning in the context of words beyond mere word frequencies in tweets about suicide. By making data labeling more efficient, this work has enabled large-scale investigations on harmful and protective associations of social media content with suicide rates and help-seeking behavior.
format Online
Article
Text
id pubmed-9434391
institution National Center for Biotechnology Information
language English
publishDate 2022
publisher JMIR Publications
record_format MEDLINE/PubMed
spelling pubmed-94343912022-09-02 Detecting Potentially Harmful and Protective Suicide-Related Content on Twitter: Machine Learning Approach Metzler, Hannah Baginski, Hubert Niederkrotenthaler, Thomas Garcia, David J Med Internet Res Original Paper BACKGROUND: Research has repeatedly shown that exposure to suicide-related news media content is associated with suicide rates, with some content characteristics likely having harmful and others potentially protective effects. Although good evidence exists for a few selected characteristics, systematic and large-scale investigations are lacking. Moreover, the growing importance of social media, particularly among young adults, calls for studies on the effects of the content posted on these platforms. OBJECTIVE: This study applies natural language processing and machine learning methods to classify large quantities of social media data according to characteristics identified as potentially harmful or beneficial in media effects research on suicide and prevention. METHODS: We manually labeled 3202 English tweets using a novel annotation scheme that classifies suicide-related tweets into 12 categories. Based on these categories, we trained a benchmark of machine learning models for a multiclass and a binary classification task. As models, we included a majority classifier, an approach based on word frequency (term frequency-inverse document frequency with a linear support vector machine) and 2 state-of-the-art deep learning models (Bidirectional Encoder Representations from Transformers [BERT] and XLNet). The first task classified posts into 6 main content categories, which are particularly relevant for suicide prevention based on previous evidence. These included personal stories of either suicidal ideation and attempts or coping and recovery, calls for action intending to spread either problem awareness or prevention-related information, reporting of suicide cases, and other tweets irrelevant to these 5 categories. The second classification task was binary and separated posts in the 11 categories referring to actual suicide from posts in the off-topic category, which use suicide-related terms in another meaning or context. RESULTS: In both tasks, the performance of the 2 deep learning models was very similar and better than that of the majority or the word frequency classifier. BERT and XLNet reached accuracy scores above 73% on average across the 6 main categories in the test set and F(1)-scores between 0.69 and 0.85 for all but the suicidal ideation and attempts category (F(1)=0.55). In the binary classification task, they correctly labeled around 88% of the tweets as about suicide versus off-topic, with BERT achieving F(1)-scores of 0.93 and 0.74, respectively. These classification performances were similar to human performance in most cases and were comparable with state-of-the-art models on similar tasks. CONCLUSIONS: The achieved performance scores highlight machine learning as a useful tool for media effects research on suicide. The clear advantage of BERT and XLNet suggests that there is crucial information about meaning in the context of words beyond mere word frequencies in tweets about suicide. By making data labeling more efficient, this work has enabled large-scale investigations on harmful and protective associations of social media content with suicide rates and help-seeking behavior. JMIR Publications 2022-08-17 /pmc/articles/PMC9434391/ /pubmed/35976193 http://dx.doi.org/10.2196/34705 Text en ©Hannah Metzler, Hubert Baginski, Thomas Niederkrotenthaler, David Garcia. Originally published in the Journal of Medical Internet Research (https://www.jmir.org), 17.08.2022. https://creativecommons.org/licenses/by/4.0/This is an open-access article distributed under the terms of the Creative Commons Attribution License (https://creativecommons.org/licenses/by/4.0/), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work, first published in the Journal of Medical Internet Research, is properly cited. The complete bibliographic information, a link to the original publication on https://www.jmir.org/, as well as this copyright and license information must be included.
spellingShingle Original Paper
Metzler, Hannah
Baginski, Hubert
Niederkrotenthaler, Thomas
Garcia, David
Detecting Potentially Harmful and Protective Suicide-Related Content on Twitter: Machine Learning Approach
title Detecting Potentially Harmful and Protective Suicide-Related Content on Twitter: Machine Learning Approach
title_full Detecting Potentially Harmful and Protective Suicide-Related Content on Twitter: Machine Learning Approach
title_fullStr Detecting Potentially Harmful and Protective Suicide-Related Content on Twitter: Machine Learning Approach
title_full_unstemmed Detecting Potentially Harmful and Protective Suicide-Related Content on Twitter: Machine Learning Approach
title_short Detecting Potentially Harmful and Protective Suicide-Related Content on Twitter: Machine Learning Approach
title_sort detecting potentially harmful and protective suicide-related content on twitter: machine learning approach
topic Original Paper
url https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9434391/
https://www.ncbi.nlm.nih.gov/pubmed/35976193
http://dx.doi.org/10.2196/34705
work_keys_str_mv AT metzlerhannah detectingpotentiallyharmfulandprotectivesuiciderelatedcontentontwittermachinelearningapproach
AT baginskihubert detectingpotentiallyharmfulandprotectivesuiciderelatedcontentontwittermachinelearningapproach
AT niederkrotenthalerthomas detectingpotentiallyharmfulandprotectivesuiciderelatedcontentontwittermachinelearningapproach
AT garciadavid detectingpotentiallyharmfulandprotectivesuiciderelatedcontentontwittermachinelearningapproach