Skip to main content
medRxiv
  • Home
  • About
  • Submit
  • ALERTS / RSS
Advanced Search

Automatic Gender Detection in Twitter Profiles for Health-related Cohort Studies

Yuan-Chi Yang, Mohammed Ali Al-Garadi, Jennifer S. Love, Jeanmarie Perrone, View ORCID ProfileAbeed Sarker
doi: https://doi.org/10.1101/2021.01.06.21249350
Yuan-Chi Yang
1Department of Biomedical Informatics, School of Medicine, Emory University, Atlanta, GA, United States
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • For correspondence: yuan-chi.yang@emory.edu
Mohammed Ali Al-Garadi
1Department of Biomedical Informatics, School of Medicine, Emory University, Atlanta, GA, United States
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Jennifer S. Love
3Department of Emergency Medicine, School of Medicine, Oregon Health & Science University, Portland, OR, United States
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Jeanmarie Perrone
4Department of Emergency Medicine, Perelman School of Medicine, University of Pennsylvania, Philadelphia, PA, United States
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Abeed Sarker
1Department of Biomedical Informatics, School of Medicine, Emory University, Atlanta, GA, United States
2Department of Biomedical Engineering, Georgia Institute of Technology and Emory University, Atlanta, GA, United States
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
  • ORCID record for Abeed Sarker
  • Abstract
  • Full Text
  • Info/History
  • Metrics
  • Supplementary material
  • Data/Code
  • Preview PDF
Loading

Abstract

Objective Biomedical research involving social media (SM) data is gradually moving from population-level to targeted, cohort-level data analysis. Though crucial for biomedical studies, SM user’s demographic information (e.g., gender) is often not explicitly known from profiles. Here we present an automatic gender classification system for SM and we illustrate how gender information can be incorporated into a SM-based health-related study.

Materials and Methods We used two large Twitter datasets: (i) public, gender-labeled users (Dataset-1), and (ii) users who have self-reported nonmedical use of prescription medications (Dataset-2). Dataset-1 was used to train and evaluate the gender detection pipeline. We experimented with machine-learning algorithms including support vector machines (SVMs) and deep-learning models, and released packages including M3. We considered user’s information including profile and tweets for classification. We also developed a meta-classifier ensemble that strategically uses the predicted scores from the classifiers. We applied the best-performing pipeline to Dataset-2 to assess the system’s utility.

Results and Discussion We collected 67,181 and 176,683 users for Dataset-1 and Dataset-2, respectively. A meta-classifier involving SVM and M3 performed the best (Dataset-1 accuracy: 94.4% [95%-CI: 94.0%-94.8%]; Dataset-2: 94.4% [95%-CI: 92.0%-96.6%]. Including automatically-classified information in the analyses of Dataset-2 revealed gender-specific trends— proportions of females closely resemble data from the National Survey of Drug Use and Health 2018 (tranquilizers: 0.50 vs. 0.50; stimulants: 0.50 vs. 0.45), and the overdose Emergency Room Visit due to Opioids by CDC (pain relievers: 0.38 vs. 0.37).

Conclusion Our publicly-available, automated gender detection pipeline may aid cohort-specific social media data analyses (https://bitbucket.org/sarkerlab/gender-detection-for-public).

Competing Interest Statement

The authors have declared no competing interest.

Funding Statement

Research reported in this publication was supported by the National Institute on Drug Abuse (NIDA) of the National Institutes of Health (NIH) under award number R01DA046619. The content is solely the responsibility of the authors and does not necessarily represent the official views of the NIH.

Author Declarations

I confirm all relevant ethical guidelines have been followed, and any necessary IRB and/or ethics committee approvals have been obtained.

Yes

The details of the IRB/oversight body that provided approval or exemption for the research described are given below:

This study was approved by the Emory University institutional review board (IRB00114235).

All necessary patient/participant consent has been obtained and the appropriate institutional forms have been archived.

Yes

I understand that all clinical trials and any other prospective interventional studies must be registered with an ICMJE-approved registry, such as ClinicalTrials.gov. I confirm that any such study reported in the manuscript has been registered and the trial registration ID is provided (note: if posting a prospective study registered retrospectively, please provide a statement in the trial ID field explaining why the study was not registered in advance).

Yes

I have followed all appropriate research reporting guidelines and uploaded the relevant EQUATOR Network research reporting checklist(s) and other pertinent material as supplementary files, if applicable.

Yes

Data Availability

The source code for all experiments described will be made open source.

https://bitbucket.org/sarkerlab/gender-detection-for-public

Copyright 
The copyright holder for this preprint is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. It is made available under a CC-BY-ND 4.0 International license.
Back to top
PreviousNext
Posted January 08, 2021.
Download PDF

Supplementary Material

Data/Code
Email

Thank you for your interest in spreading the word about medRxiv.

NOTE: Your email address is requested solely to identify you as the sender of this article.

Enter multiple addresses on separate lines or separate them with commas.
Automatic Gender Detection in Twitter Profiles for Health-related Cohort Studies
(Your Name) has forwarded a page to you from medRxiv
(Your Name) thought you would like to see this page from the medRxiv website.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
Share
Automatic Gender Detection in Twitter Profiles for Health-related Cohort Studies
Yuan-Chi Yang, Mohammed Ali Al-Garadi, Jennifer S. Love, Jeanmarie Perrone, Abeed Sarker
medRxiv 2021.01.06.21249350; doi: https://doi.org/10.1101/2021.01.06.21249350
Digg logo Reddit logo Twitter logo CiteULike logo Facebook logo Google logo Mendeley logo
Citation Tools
Automatic Gender Detection in Twitter Profiles for Health-related Cohort Studies
Yuan-Chi Yang, Mohammed Ali Al-Garadi, Jennifer S. Love, Jeanmarie Perrone, Abeed Sarker
medRxiv 2021.01.06.21249350; doi: https://doi.org/10.1101/2021.01.06.21249350

Citation Manager Formats

  • BibTeX
  • Bookends
  • EasyBib
  • EndNote (tagged)
  • EndNote 8 (xml)
  • Medlars
  • Mendeley
  • Papers
  • RefWorks Tagged
  • Ref Manager
  • RIS
  • Zotero
  • Tweet Widget
  • Facebook Like
  • Google Plus One

Subject Area

  • Health Informatics
Subject Areas
All Articles
  • Addiction Medicine (62)
  • Allergy and Immunology (144)
  • Anesthesia (47)
  • Cardiovascular Medicine (419)
  • Dentistry and Oral Medicine (72)
  • Dermatology (49)
  • Emergency Medicine (147)
  • Endocrinology (including Diabetes Mellitus and Metabolic Disease) (174)
  • Epidemiology (4906)
  • Forensic Medicine (3)
  • Gastroenterology (185)
  • Genetic and Genomic Medicine (689)
  • Geriatric Medicine (72)
  • Health Economics (193)
  • Health Informatics (636)
  • Health Policy (322)
  • Health Systems and Quality Improvement (209)
  • Hematology (86)
  • HIV/AIDS (157)
  • Infectious Diseases (except HIV/AIDS) (5408)
  • Intensive Care and Critical Care Medicine (333)
  • Medical Education (96)
  • Medical Ethics (24)
  • Nephrology (77)
  • Neurology (692)
  • Nursing (42)
  • Nutrition (115)
  • Obstetrics and Gynecology (128)
  • Occupational and Environmental Health (211)
  • Oncology (447)
  • Ophthalmology (140)
  • Orthopedics (36)
  • Otolaryngology (91)
  • Pain Medicine (37)
  • Palliative Medicine (18)
  • Pathology (131)
  • Pediatrics (201)
  • Pharmacology and Therapeutics (131)
  • Primary Care Research (88)
  • Psychiatry and Clinical Psychology (787)
  • Public and Global Health (1832)
  • Radiology and Imaging (328)
  • Rehabilitation Medicine and Physical Therapy (142)
  • Respiratory Medicine (257)
  • Rheumatology (87)
  • Sexual and Reproductive Health (69)
  • Sports Medicine (63)
  • Surgery (102)
  • Toxicology (23)
  • Transplantation (29)
  • Urology (38)