Maintenance Notice

Due to necessary scheduled maintenance, the JMIR Publications website will be unavailable from Wednesday, July 01, 2020 at 8:00 PM to 10:00 PM EST. We apologize in advance for any inconvenience this may cause you.

Who will be affected?

Accepted for/Published in: JMIR Formative Research

Date Submitted: Mar 13, 2023
Date Accepted: May 15, 2023

The final, peer-reviewed published version of this preprint can be found here:

Models of Gender Dysphoria Using Social Media Data for Use in Technology-Delivered Interventions: Machine Learning and Natural Language Processing Validation Study

Cascalheira CJ, Flinn RE, Zhao Y, Klooster D, Laparade D, Hamdi SM, Scheer JR, Gonzalez A, Lund EM, Gomez IN, Saha K, De Choudhury M

Models of Gender Dysphoria Using Social Media Data for Use in Technology-Delivered Interventions: Machine Learning and Natural Language Processing Validation Study

JMIR Form Res 2023;7:e47256

DOI: 10.2196/47256

PMID: 37327053

PMCID: 10337393

Warning: This is an author submission that is not peer-reviewed or edited. Preprints - unless they show as "accepted" - should not be relied on to guide clinical practice or health-related behavior and should not be reported in news media as established information.

Modeling Gender Dysphoria with Machine Learning and Natural Language Processing: Preliminary Implications for Technology-Delivered Interventions

  • Cory J. Cascalheira; 
  • Ryan E. Flinn; 
  • Yuxuan Zhao; 
  • Dannie Klooster; 
  • Danica Laparade; 
  • Shah M. Hamdi; 
  • Jillian R. Scheer; 
  • Alejandra Gonzalez; 
  • Emily M. Lund; 
  • Ivan N. Gomez; 
  • Koustuv Saha; 
  • Munmun De Choudhury

ABSTRACT

Background:

Many transgender and nonbinary (TNB) people face significant treatment barriers (e.g., healthcare discrimination) when seeking help for gender dysphoria. Technology-delivered interventions for TNB people can be used discretely, safely, and flexibly, thereby reducing such treatment barriers. Technology-delivered interventions are beginning to incorporate machine learning (ML) and natural language processing (NLP) to automate intervention components and tailor intervention content. A critical step in using ML and NLP in technology-delivered interventions is demonstrating how accurately these methods model gender dysphoria.

Objective:

The present study sought to determine the preliminary effectiveness of modeling gender dysphoria with ML and NLP.

Methods:

Six ML models and 949 NLP-generated independent variables were used to model gender dysphoria from the text data of 1,573 Reddit posts created on TNB-specific online forums. Qualitative content analysis was used to determine whether gender dysphoria was present in each post (i.e., the dependent variable). NLP transformed the linguistic content of each post into predictors for the ML algorithms.

Results:

Results indicated that a supervised ML algorithm (i.e., optimized extreme gradient boosting; XGBoost) modeled gender dysphoria with a high degree of accuracy (.84), precision (.83), and speed (1.23 seconds). Of the NLP-generated independent variables, DSM-5 clinical keywords (e.g., dysphoria, disorder) were most predictive of gender dysphoria.

Conclusions:

These preliminary findings and initial validation evidence suggest ML- and NLP-based models of gender dysphoria have significant potential to be integrated into TNB-specific technology-delivered interventions.


 Citation

Please cite as:

Cascalheira CJ, Flinn RE, Zhao Y, Klooster D, Laparade D, Hamdi SM, Scheer JR, Gonzalez A, Lund EM, Gomez IN, Saha K, De Choudhury M

Models of Gender Dysphoria Using Social Media Data for Use in Technology-Delivered Interventions: Machine Learning and Natural Language Processing Validation Study

JMIR Form Res 2023;7:e47256

DOI: 10.2196/47256

PMID: 37327053

PMCID: 10337393

Download PDF


Request queued. Please wait while the file is being generated. It may take some time.

© The authors. All rights reserved. This is a privileged document currently under peer-review/community review (or an accepted/rejected manuscript). Authors have provided JMIR Publications with an exclusive license to publish this preprint on it's website for review and ahead-of-print citation purposes only. While the final peer-reviewed paper may be licensed under a cc-by license on publication, at this stage authors and publisher expressively prohibit redistribution of this draft paper other than for review purposes.