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

Developing an automatic system for classifying chatter about health services from Twitter: A case study for Medicaid

Yuan-Chi Yang, Mohammed Ali Al-Garadi, Whitney Hogg-Bremer, Jane M. Zhu, David Grande, View ORCID ProfileAbeed Sarker
doi: https://doi.org/10.1101/2020.06.12.20129593
Yuan-Chi Yang
1Department of Biomedical Informatics, School of Medicine, Emory University, Atlanta, GA
  • 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
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Whitney Hogg-Bremer
1Department of Biomedical Informatics, School of Medicine, Emory University, Atlanta, GA
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
Jane M. Zhu
2Division of General Internal Medicine and Geriatrics, Oregon Health & Science University, Portland, OR
  • Find this author on Google Scholar
  • Find this author on PubMed
  • Search for this author on this site
David Grande
3Division of General Internal Medicine, Perelman School of Medicine, University of Pennsylvania, Philadelphia, PA
  • 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
4Department of Biomedical Engineering, Georgia Institute of Technology and Emory University, Atlanta, GA
  • 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

Background The wide adoption of social media in daily life renders it a rich and effective resource for conducting close-to-real-time assessments of consumers’ perceptions about health services. This is, however, challenging due to the vast amount of data and the diverse content in the social media chatter.

Objectives To develop and evaluate an automatic system, involving natural language processing and machine learning, for automatically characterizing user-posted Twitter data about healer services, using Medicaid, the single largest insurance in the United States, as an example.

Methods We collected data from Twitter in two ways: (i) via the public streaming API using Medicaid-related keywords (Corpus-1), and (ii) by using the website’s search option for tweets mentioning the agency-specific handles (Corpus-2). We manually labeled a sample of tweets into five pre-determined categories or other, and artificially increased the number of training posts from specific low-frequency categories. Using the manually-labeled data, we trained and evaluated several supervised learning algorithms, including Support Vector Machine, Random Forest (RF), Naïve Bayes, shallow Neural Network (NN), k-Nearest Neighbor, Bi-Directional Long Short-Term Memory, and Bidirectional Encoder Representations from Transformers (BERT). We then applied the best-performing classifier to the collected tweets for post-classification analyses assessing the utility of our methods.

Results We manually annotated 11,379 (Corpus-1: 9,179; Corpus-2: 2,200) tweets, using 7,930 (69.7%) for training and 1,449 (12.7%) for validation and 2,000 (17.6%) for test. A BERT-based classifier obtained the highest accuracies (81.7%, Corpus-1; 80.7%, Corpus-2) and F1-score on Consumer Feedback (0.58, Corpus-1; 0.90, Corpus-2), outperforming the second-best classifiers in accuracies (74.6%, RF on Corpus-1; 69.4%, RF on Corpus-2) and F1-score on Consumer Feedback (0.44, NN on Corpus-1; 0.82, RF on Corpus-2). Post-classification analyses revealed differing inter-corpora distributions of tweet categories, with political (64%) and consumer-feedback (55%) tweets being the most frequent for Corpus-1 and -2, respectively.

Conclusions The broad and variable content of Medicaid-related tweets necessitates automatic categorization to identify topic-relevant posts. Our proposed system presents a feasible solution for automatic categorization, and can be deployed/generalized for health service programs other than Medicaid. Annotated data and methods are available for future studies (https://yyang60@bitbucket.org/sarkerlab/medicaid-classification-script-and-data-for-public).

Competing Interest Statement

The authors have declared no competing interest.

Funding Statement

Research reported in this publication was supported by Robert Wood Johnson Foundation (RWJF) under award number 76158 (JMZ, DG). The content is solely the responsibility of the authors and does not necessarily represent the official views of the RWJF.

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:

It's a non-human-subjects research classified by OSHU.

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

Annotated data and methods will be available for future studies once the manuscript is published

  • Abbreviations

    API
    Application Programming Interface
    BERT
    Bidirectional Encoder Representations from Transformers
    BLSTM
    Bi-directional Long Short-Term Memory
    KNN
    K-Nearest Neighbor
    MA
    Medicaid agency
    MCO
    Managed Care Organization
    NB
    Naïve Bayes
    NLP
    Natural Language Processing
    NN
    Shallow Neural Networks
    RF
    Random Forest
    SVM
    Support Vector Machine
    TFIDF
    Term-Frequency-Inverse-Document-Frequency
    US
    United States
  • 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-NC-ND 4.0 International license.
    Back to top
    PreviousNext
    Posted December 19, 2020.
    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.
    Developing an automatic system for classifying chatter about health services from Twitter: A case study for Medicaid
    (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
    Developing an automatic system for classifying chatter about health services from Twitter: A case study for Medicaid
    Yuan-Chi Yang, Mohammed Ali Al-Garadi, Whitney Hogg-Bremer, Jane M. Zhu, David Grande, Abeed Sarker
    medRxiv 2020.06.12.20129593; doi: https://doi.org/10.1101/2020.06.12.20129593
    Digg logo Reddit logo Twitter logo CiteULike logo Facebook logo Google logo Mendeley logo
    Citation Tools
    Developing an automatic system for classifying chatter about health services from Twitter: A case study for Medicaid
    Yuan-Chi Yang, Mohammed Ali Al-Garadi, Whitney Hogg-Bremer, Jane M. Zhu, David Grande, Abeed Sarker
    medRxiv 2020.06.12.20129593; doi: https://doi.org/10.1101/2020.06.12.20129593

    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 (70)
    • Allergy and Immunology (168)
    • Anesthesia (51)
    • Cardiovascular Medicine (455)
    • Dentistry and Oral Medicine (83)
    • Dermatology (55)
    • Emergency Medicine (159)
    • Endocrinology (including Diabetes Mellitus and Metabolic Disease) (191)
    • Epidemiology (5294)
    • Forensic Medicine (3)
    • Gastroenterology (198)
    • Genetic and Genomic Medicine (760)
    • Geriatric Medicine (80)
    • Health Economics (214)
    • Health Informatics (702)
    • Health Policy (362)
    • Health Systems and Quality Improvement (224)
    • Hematology (100)
    • HIV/AIDS (165)
    • Infectious Diseases (except HIV/AIDS) (5934)
    • Intensive Care and Critical Care Medicine (367)
    • Medical Education (105)
    • Medical Ethics (25)
    • Nephrology (83)
    • Neurology (772)
    • Nursing (43)
    • Nutrition (135)
    • Obstetrics and Gynecology (146)
    • Occupational and Environmental Health (234)
    • Oncology (481)
    • Ophthalmology (153)
    • Orthopedics (39)
    • Otolaryngology (97)
    • Pain Medicine (39)
    • Palliative Medicine (20)
    • Pathology (141)
    • Pediatrics (223)
    • Pharmacology and Therapeutics (138)
    • Primary Care Research (99)
    • Psychiatry and Clinical Psychology (865)
    • Public and Global Health (2035)
    • Radiology and Imaging (354)
    • Rehabilitation Medicine and Physical Therapy (159)
    • Respiratory Medicine (287)
    • Rheumatology (94)
    • Sexual and Reproductive Health (74)
    • Sports Medicine (77)
    • Surgery (110)
    • Toxicology (25)
    • Transplantation (29)
    • Urology (39)