SlideShare a Scribd company logo
Mental Disorder Detection on Twitter:
Bipolar Disorder and Borderline
Personality Disorder
National Tsing Hua University
Department of Information System and
Application
Advisor: Prof. Yi-Shin Chen
Student: Chun-Hao Chang
Introduction
18.1% people suffer from mental disorder in United States (*)
Using Social Network to research on Mental Disorder
National Insititute of Mental Helath:
http://www.nimh.nih.gov/health/statistics/prevalence/index.shtml
Analyze
Challenges
How to efficiently collect the tweets of patients?
How to correctly detect mental disorder patients?
Related Works
Quantifying Mental Health Signals in Twitter - John Hopkins
University(Coppersmith, G., Dredze, M., & Harman, C. (2014))
Automatic collecting patients by matching: “I was diagnosed with X” in tweets
Prediction of 4 kinds of disorder
Predicting Depression via Social Media - Microsoft (M De Choudhury, M
Gamon, S Counts, E Horvitz - ICWSM, 2013)
Collecting data from Amazon Turks and purchased Twitter data.
Able to predict an user having depression disorder before a formal diagnosis
Two important related works are as following:
Related Works
Quantifying Mental Health Signals in Twitter - John Hopkins
University(Coppersmith, G., Dredze, M., & Harman, C. (2014))
Automatic collecting patients by matching: “I was diagnosed with X” in tweets
Prediction of 4 kinds of disorder
Predicting Depression via Social Media - Microsoft (M De Choudhury, M
Gamon, S Counts, E Horvitz - ICWSM, 2013)
Collecting data from Amazon Turks and purchased Twitter data.
Able to predict an user having depression disorder before a formal diagnosis
Two important related works are as following:
700 Million Tweets from Oct 2014 to Aug 2015
Only 8 Bipolar and 3 BPD patients are found
Background
Bipolar Disorder:
*Unstable and impulsive emotions
Cycling between Maniac and Depression episodes
Borderline Personality Disorder:
*Unstable and impulsive emotions
Impaired social interactions
Framework
Data Collecting
A community portals is
a Twitter account which
is followed by a lot of
patients.
The community portals can
be found by searching for
the disorder on the Twitter
website.
Keywords
Filter
Manual
Verification
Collect
Followers
(REST API)
Randomly
Sample Users
(Streaming API &
REST API)
Manually Collect
Community
Portals
Tweets of Patients ,
Experts and Random
Samples
Collect
Tweets
(REST API)
1
Data Collecting
Download Followers of
Community Patients.
(5000 followers for each portal in this study)
Filter out suspicious patients
from follower profiles by
keywords:
BPD and Bipolar in this study
Manually label the users as
patients, experts and
non-related.
Keywords
Filter
Manual
Verification
Collect
Followers
(REST API)
Randomly
Sample Users
(Streaming API &
REST API)
Manually Collect
Community
Portals
Tweets of Patients ,
Experts and Random
Samples
Collect
Tweets
(REST API)
2
3
4
A BPD patient
A BPD Expert
Data Collecting Download Tweets by REST API
(3200 tweets at most, exclude retweets)
1. Randomly sample English
spoken users by Twitter
Streaming API
2. Download Tweets by REST
API
(3200 tweets at most, exclude retweets)
Keywords
Filter
Manual
Verification
Collect
Followers
(REST API)
Randomly
Sample Users
(Streaming API &
REST API)
Manually Collect
Community
Portals
Tweets of Patients ,
Experts and Random
Samples
Collect
Tweets
(REST API)
6
5
Data Collected Group Users
Random Samples 823
Bipolar 798
BPD 427
Bipolar Experts 54
BPD Experts 42
We assume theses random sampled Twitter users and experts does not
have Bipolar or BPD
Because prevalence of Bipolar is 2.6% and BPD is 1.6% (*) in United States. It
shouldn’t seriously damage the predictive performance
National Insititute of Mental Helath:
http://www.nimh.nih.gov/health/statistics/prevalence/index.shtml
Preprocessing
Sentiment
140 API
Emotion
Classificatio
n API
Processed Data of
Patients, Experts and
Random Samples
Spam and Inactive
User Filter
1. Tweets amount > 100
2. Tweets contain hyperlink lower
than 50%
Positive Negtaive Neutral
Data after preprocessing
Group Users Tweets Averaged
Tweets
Random
Samples
548 796957 1454.3
Bipolar
Patients
278 347774 1250.99
BPD Patients 203 225774 1112.19
Bipolar Experts 11 14056 1611.67
BPD Experts 9 19696 1790.55
Feature Extraction
1
TF-IDF
Features
LIWC Features
Pattern of
Life
Features
TF-IDF
Calculation
LIWC
Counting
Polarity
Extraction
Emotions
Extraction
Age Gender
Prediction
Social
Behavior
Extraction
Open vocabulary approach by
calculating unigram and bigram
Personal behaviors: Emotional Pattern,
Social Interactions and Profiles Data
64 Categories of Psychological
Dictionary
Feature Extraction :
Pattern of Life Features
Proposed by Coppersmith et al. We further improve it as following :
1. Polarity: Positive and negative percentages, Positive
and negative combos ratio, Flips ratios
2. Emotions: Percentage of eight emotions
3. Age and Gender: Inferred age and gender(*)
4. Social Interactions: Mentioning Rate, Frequent menting
Counts, Unique Mentioning Counts
Schwartz, H. Andrew, et al. "Personality, gender, and age in the
language of social media: The open-vocabulary approach." PloS one
8.9 (2013): e73791.
APA
Feature Extraction: Illustration of combos and Flips
3 min 900 min 18 min 15 min 800 min 200 min
1 Flips 3 Negative Combos
Flip Ratio = 1 / 7
Negative Combo Ratio = 3 / 7
Time interval between tweets
Flip Time threshold: 30 min
Combo Time threshold: 120 min
Classifiers Training and Evaluations
TF-IDF Models
Pattern of
Life Models
LIWC Models
Random Forest
Classifier Training
10-Fold Cross
Validation Test
Selection Bias
Test
Limited Data
Test
Classifiers Training and Evaluations
TF-IDF Models
Pattern of
Life Models
LIWC Models
Random Forest
Classifier Training
10-Fold Cross
Validation Test
Limited Data
Test
Selection Bias
Test
Shows relationship between
precision and recall
Randomly split data into 10 chunks, 9
chunks for training and 1 chunks for
testing. And calculate the precision and
recall after multiple iteration
Evaluations on Bipolar: 10-fold Cross Validation
Area Under the Curve:
Pattern of
Life
0.90
LIWC 0.91
TF-IDF 0.96
Evaluations on BPD: 10-fold Cross Validation
Area Under the Curve:
Pattern of
Life
0.91
LIWC 0.90
TF-IDF 0.96
Classifiers Training and Evaluations
TF-IDF Models
Pattern of
Life Models
LIWC Models
Random Forest
Classifier Training
10-Fold Cross
Validation Test
Selection Bias
Test
Selection Bias
Test
To see if model is predicting
people having disorder or just
talking about it
11 Bipolar experts 9 BPD experts as
the testing data. It shows the
tendency of classifiers mis-classified
experts as patients
Selection Bias Test
TOP 10 Keywords from TF-IDF Classifier
Bipolar BPD
mentalhealth dbt
meds feeling
blog borderline
therapy helps
anxiety self harm
thoughts psychiatrist
feel better cpn
electroboyusa disorder
health bpdchat
bipolarblogger depression
TF-IDF Classifier has the tendency to
detect
people who are talking about disorder
Classifiers Training and Evaluations
TF-IDF Models
Pattern of
Life Models
LIWC Models
Random Forest
Classifier Training
10-Fold Cross
Validation Test
Limited Data
Test
Selection Bias
Test
Reveals how precision changes
when the tweets are limited.
Similar to 10-fold cross validation,
but the testing data are extracted
only from the latest K tweets
Evaluations on Bipolar: Limited Tweets Precision
Evaluations on BPD: Limited Tweets Precision
Conclusion:
How to efficiently collect the tweets data patients?
We proposed an efficient and accessible way to collect
tweets of patients
How to correctly detect mental disorder patients?
We suggested that Pattern of Life Model gives high
precision and low bias

More Related Content

What's hot

Digital Inclusion: Social Determinant of Health
Digital Inclusion: Social Determinant of Health Digital Inclusion: Social Determinant of Health
Digital Inclusion: Social Determinant of Health
Iris Thiele Isip-Tan
 
Sociable! 'App-y Hour: Social Media and Technology in Oncology Pharmacy
Sociable! 'App-y Hour: Social Media and Technology in Oncology PharmacySociable! 'App-y Hour: Social Media and Technology in Oncology Pharmacy
Sociable! 'App-y Hour: Social Media and Technology in Oncology Pharmacy
Christopher B. Ralph
 
Social Media & Health: Safety Concerns
Social Media & Health: Safety Concerns Social Media & Health: Safety Concerns
Social Media & Health: Safety Concerns
Iris Thiele Isip-Tan
 
Leveraging Social Media for Healthcare Providers
Leveraging Social Media for Healthcare ProvidersLeveraging Social Media for Healthcare Providers
Leveraging Social Media for Healthcare Providers
Greenway Health
 
Managing Social Media Presence (for Doctors)
Managing Social Media Presence (for Doctors)Managing Social Media Presence (for Doctors)
Managing Social Media Presence (for Doctors)
Iris Thiele Isip-Tan
 
Twitter 103 Trolls, Malware and Spam
Twitter 103   Trolls, Malware and SpamTwitter 103   Trolls, Malware and Spam
Twitter 103 Trolls, Malware and Spam
Matthew Katz
 
Use of Social Media in Radiology
Use of Social Media in RadiologyUse of Social Media in Radiology
Use of Social Media in Radiology
Erik R. Ranschaert, MD, PhD
 
Social media and the Oncology Nurse
Social media and the Oncology NurseSocial media and the Oncology Nurse
Social media and the Oncology Nurse
Dee Chaudhary
 
Top 7 Physicians Networks for you to Join as a Medical Professional
Top 7 Physicians Networks for you to Join as a Medical ProfessionalTop 7 Physicians Networks for you to Join as a Medical Professional
Top 7 Physicians Networks for you to Join as a Medical Professional
Net Pro Referral
 
Social media and cancer communities
Social media and cancer communitiesSocial media and cancer communities
Social media and cancer communities
Matthew Katz
 
Social Media Final
Social Media FinalSocial Media Final
Social Media Final
Eric Newman
 
Cancer Care in a Post Truth World
Cancer Care in a Post Truth World Cancer Care in a Post Truth World
Cancer Care in a Post Truth World
Matthew Katz
 
Healthcare professionals on Twitter
Healthcare professionals on TwitterHealthcare professionals on Twitter
Healthcare professionals on Twitter
CREATION
 
Social Media and Medicine: Relevance to Cancer Care
Social Media and Medicine: Relevance to Cancer CareSocial Media and Medicine: Relevance to Cancer Care
Social Media and Medicine: Relevance to Cancer Care
Matthew Katz
 
Social Media & Healthcare
Social Media & HealthcareSocial Media & Healthcare
Social Media & Healthcare
Iris Thiele Isip-Tan
 
Social Media in Medicine: A Podium Without Boundaries
Social Media in Medicine: A Podium Without BoundariesSocial Media in Medicine: A Podium Without Boundaries
Social Media in Medicine: A Podium Without Boundaries
Ali Bonar
 
Social Media and MCR Readmissions
Social Media and MCR ReadmissionsSocial Media and MCR Readmissions
Social Media and MCR Readmissions
Mark Ryan
 
Take two tweets social media for doctors
Take two tweets social media for doctorsTake two tweets social media for doctors
Take two tweets social media for doctors
Christian Sinclair
 
22 Reasons Why Social Media is the Future of Patient Relationships
22 Reasons Why Social Media is the Future of Patient Relationships22 Reasons Why Social Media is the Future of Patient Relationships
22 Reasons Why Social Media is the Future of Patient Relationships
Nicole Stagg
 
Incorporating Social Media into the Clinical Trial Process
Incorporating Social Media into the Clinical Trial ProcessIncorporating Social Media into the Clinical Trial Process
Incorporating Social Media into the Clinical Trial Process
Katja Reuter, PhD
 

What's hot (20)

Digital Inclusion: Social Determinant of Health
Digital Inclusion: Social Determinant of Health Digital Inclusion: Social Determinant of Health
Digital Inclusion: Social Determinant of Health
 
Sociable! 'App-y Hour: Social Media and Technology in Oncology Pharmacy
Sociable! 'App-y Hour: Social Media and Technology in Oncology PharmacySociable! 'App-y Hour: Social Media and Technology in Oncology Pharmacy
Sociable! 'App-y Hour: Social Media and Technology in Oncology Pharmacy
 
Social Media & Health: Safety Concerns
Social Media & Health: Safety Concerns Social Media & Health: Safety Concerns
Social Media & Health: Safety Concerns
 
Leveraging Social Media for Healthcare Providers
Leveraging Social Media for Healthcare ProvidersLeveraging Social Media for Healthcare Providers
Leveraging Social Media for Healthcare Providers
 
Managing Social Media Presence (for Doctors)
Managing Social Media Presence (for Doctors)Managing Social Media Presence (for Doctors)
Managing Social Media Presence (for Doctors)
 
Twitter 103 Trolls, Malware and Spam
Twitter 103   Trolls, Malware and SpamTwitter 103   Trolls, Malware and Spam
Twitter 103 Trolls, Malware and Spam
 
Use of Social Media in Radiology
Use of Social Media in RadiologyUse of Social Media in Radiology
Use of Social Media in Radiology
 
Social media and the Oncology Nurse
Social media and the Oncology NurseSocial media and the Oncology Nurse
Social media and the Oncology Nurse
 
Top 7 Physicians Networks for you to Join as a Medical Professional
Top 7 Physicians Networks for you to Join as a Medical ProfessionalTop 7 Physicians Networks for you to Join as a Medical Professional
Top 7 Physicians Networks for you to Join as a Medical Professional
 
Social media and cancer communities
Social media and cancer communitiesSocial media and cancer communities
Social media and cancer communities
 
Social Media Final
Social Media FinalSocial Media Final
Social Media Final
 
Cancer Care in a Post Truth World
Cancer Care in a Post Truth World Cancer Care in a Post Truth World
Cancer Care in a Post Truth World
 
Healthcare professionals on Twitter
Healthcare professionals on TwitterHealthcare professionals on Twitter
Healthcare professionals on Twitter
 
Social Media and Medicine: Relevance to Cancer Care
Social Media and Medicine: Relevance to Cancer CareSocial Media and Medicine: Relevance to Cancer Care
Social Media and Medicine: Relevance to Cancer Care
 
Social Media & Healthcare
Social Media & HealthcareSocial Media & Healthcare
Social Media & Healthcare
 
Social Media in Medicine: A Podium Without Boundaries
Social Media in Medicine: A Podium Without BoundariesSocial Media in Medicine: A Podium Without Boundaries
Social Media in Medicine: A Podium Without Boundaries
 
Social Media and MCR Readmissions
Social Media and MCR ReadmissionsSocial Media and MCR Readmissions
Social Media and MCR Readmissions
 
Take two tweets social media for doctors
Take two tweets social media for doctorsTake two tweets social media for doctors
Take two tweets social media for doctors
 
22 Reasons Why Social Media is the Future of Patient Relationships
22 Reasons Why Social Media is the Future of Patient Relationships22 Reasons Why Social Media is the Future of Patient Relationships
22 Reasons Why Social Media is the Future of Patient Relationships
 
Incorporating Social Media into the Clinical Trial Process
Incorporating Social Media into the Clinical Trial ProcessIncorporating Social Media into the Clinical Trial Process
Incorporating Social Media into the Clinical Trial Process
 

Similar to Mental Disorder Detection on Twitter

Subconscious Crowdsourcing: A Feasible Data Collection Mechanism for Mental D...
Subconscious Crowdsourcing: A Feasible Data Collection Mechanism for Mental D...Subconscious Crowdsourcing: A Feasible Data Collection Mechanism for Mental D...
Subconscious Crowdsourcing: A Feasible Data Collection Mechanism for Mental D...
Elvis Saravia
 
Health Literacy for COPD Educators
Health Literacy for COPD EducatorsHealth Literacy for COPD Educators
Health Literacy for COPD Educators
Margot G. Malachowski, MLS
 
STARS_presentation_EthanNg_2016_pdf
STARS_presentation_EthanNg_2016_pdfSTARS_presentation_EthanNg_2016_pdf
STARS_presentation_EthanNg_2016_pdf
Ethan Ng
 
Swapnil soni Thesis_Presentation
Swapnil soni Thesis_PresentationSwapnil soni Thesis_Presentation
Swapnil soni Thesis_Presentation
Swapnil Soni
 
Domain Specific Document Retrieval Framework for Near Real-time Social Health...
Domain Specific Document Retrieval Framework for Near Real-time Social Health...Domain Specific Document Retrieval Framework for Near Real-time Social Health...
Domain Specific Document Retrieval Framework for Near Real-time Social Health...
Artificial Intelligence Institute at UofSC
 
Identifying and Engaging Risk Stratified Patient Populations
Identifying and Engaging Risk Stratified Patient PopulationsIdentifying and Engaging Risk Stratified Patient Populations
Identifying and Engaging Risk Stratified Patient Populations
Steve Wallace, DPS, MBA
 
Mental Illness to Master's Degree: Holistic Psychiatric Information Technology
Mental Illness to Master's Degree: Holistic Psychiatric Information TechnologyMental Illness to Master's Degree: Holistic Psychiatric Information Technology
Mental Illness to Master's Degree: Holistic Psychiatric Information Technology
drBretta Grant
 
WSDM2015Tutorial.pdf
WSDM2015Tutorial.pdfWSDM2015Tutorial.pdf
WSDM2015Tutorial.pdf
ssuser2c7393
 
1Running Head Health Policy, Politics and Perspectives2He.docx
1Running Head Health Policy, Politics and Perspectives2He.docx1Running Head Health Policy, Politics and Perspectives2He.docx
1Running Head Health Policy, Politics and Perspectives2He.docx
aulasnilda
 
Reviewing Apps: Taking Evaluation Skills Outside of the Library
Reviewing Apps: Taking Evaluation Skills Outside of the LibraryReviewing Apps: Taking Evaluation Skills Outside of the Library
Reviewing Apps: Taking Evaluation Skills Outside of the Library
CULS
 
Alan turing uva-presentationdec-2019
Alan turing uva-presentationdec-2019Alan turing uva-presentationdec-2019
Alan turing uva-presentationdec-2019
Victoria López
 
Resilience tech
Resilience techResilience tech
Resilience tech
HopeLab
 
What Do Patients Really Want Out Of Adherence Technology?
What Do Patients Really Want Out Of Adherence Technology?What Do Patients Really Want Out Of Adherence Technology?
What Do Patients Really Want Out Of Adherence Technology?
Inspire
 
Argumentative Essay Powerpoint Presentation
Argumentative Essay Powerpoint PresentationArgumentative Essay Powerpoint Presentation
Argumentative Essay Powerpoint Presentation
Lakeisha Johnson
 
Utilizing Social Health Websites for Cognitive Computing and Clinical Decisio...
Utilizing Social Health Websites for Cognitive Computing and Clinical Decisio...Utilizing Social Health Websites for Cognitive Computing and Clinical Decisio...
Utilizing Social Health Websites for Cognitive Computing and Clinical Decisio...
CrowdTruth
 
How To Get Your Research Published in the BMJ
How To Get Your Research Published in the BMJHow To Get Your Research Published in the BMJ
How To Get Your Research Published in the BMJ
bmjslides
 
Does Social Psychology Really Have More Retractions?
Does Social Psychology Really Have More Retractions?Does Social Psychology Really Have More Retractions?
Does Social Psychology Really Have More Retractions?
Ivan Oransky
 
Does Social Psychology Really Have More Retractions?
Does Social Psychology Really Have More Retractions?Does Social Psychology Really Have More Retractions?
Does Social Psychology Really Have More Retractions?
RetractionWatch
 
Innovative Insights for Smarter Care: Care Management and Analytics
Innovative Insights for Smarter Care: Care Management and AnalyticsInnovative Insights for Smarter Care: Care Management and Analytics
Innovative Insights for Smarter Care: Care Management and Analytics
IBM Cúram Software Health and Social Programs
 
Healthcare Social Media: The Conversation That Is Defining Your Brand
Healthcare Social Media: The Conversation That Is Defining Your BrandHealthcare Social Media: The Conversation That Is Defining Your Brand
Healthcare Social Media: The Conversation That Is Defining Your Brand
NM Incite
 

Similar to Mental Disorder Detection on Twitter (20)

Subconscious Crowdsourcing: A Feasible Data Collection Mechanism for Mental D...
Subconscious Crowdsourcing: A Feasible Data Collection Mechanism for Mental D...Subconscious Crowdsourcing: A Feasible Data Collection Mechanism for Mental D...
Subconscious Crowdsourcing: A Feasible Data Collection Mechanism for Mental D...
 
Health Literacy for COPD Educators
Health Literacy for COPD EducatorsHealth Literacy for COPD Educators
Health Literacy for COPD Educators
 
STARS_presentation_EthanNg_2016_pdf
STARS_presentation_EthanNg_2016_pdfSTARS_presentation_EthanNg_2016_pdf
STARS_presentation_EthanNg_2016_pdf
 
Swapnil soni Thesis_Presentation
Swapnil soni Thesis_PresentationSwapnil soni Thesis_Presentation
Swapnil soni Thesis_Presentation
 
Domain Specific Document Retrieval Framework for Near Real-time Social Health...
Domain Specific Document Retrieval Framework for Near Real-time Social Health...Domain Specific Document Retrieval Framework for Near Real-time Social Health...
Domain Specific Document Retrieval Framework for Near Real-time Social Health...
 
Identifying and Engaging Risk Stratified Patient Populations
Identifying and Engaging Risk Stratified Patient PopulationsIdentifying and Engaging Risk Stratified Patient Populations
Identifying and Engaging Risk Stratified Patient Populations
 
Mental Illness to Master's Degree: Holistic Psychiatric Information Technology
Mental Illness to Master's Degree: Holistic Psychiatric Information TechnologyMental Illness to Master's Degree: Holistic Psychiatric Information Technology
Mental Illness to Master's Degree: Holistic Psychiatric Information Technology
 
WSDM2015Tutorial.pdf
WSDM2015Tutorial.pdfWSDM2015Tutorial.pdf
WSDM2015Tutorial.pdf
 
1Running Head Health Policy, Politics and Perspectives2He.docx
1Running Head Health Policy, Politics and Perspectives2He.docx1Running Head Health Policy, Politics and Perspectives2He.docx
1Running Head Health Policy, Politics and Perspectives2He.docx
 
Reviewing Apps: Taking Evaluation Skills Outside of the Library
Reviewing Apps: Taking Evaluation Skills Outside of the LibraryReviewing Apps: Taking Evaluation Skills Outside of the Library
Reviewing Apps: Taking Evaluation Skills Outside of the Library
 
Alan turing uva-presentationdec-2019
Alan turing uva-presentationdec-2019Alan turing uva-presentationdec-2019
Alan turing uva-presentationdec-2019
 
Resilience tech
Resilience techResilience tech
Resilience tech
 
What Do Patients Really Want Out Of Adherence Technology?
What Do Patients Really Want Out Of Adherence Technology?What Do Patients Really Want Out Of Adherence Technology?
What Do Patients Really Want Out Of Adherence Technology?
 
Argumentative Essay Powerpoint Presentation
Argumentative Essay Powerpoint PresentationArgumentative Essay Powerpoint Presentation
Argumentative Essay Powerpoint Presentation
 
Utilizing Social Health Websites for Cognitive Computing and Clinical Decisio...
Utilizing Social Health Websites for Cognitive Computing and Clinical Decisio...Utilizing Social Health Websites for Cognitive Computing and Clinical Decisio...
Utilizing Social Health Websites for Cognitive Computing and Clinical Decisio...
 
How To Get Your Research Published in the BMJ
How To Get Your Research Published in the BMJHow To Get Your Research Published in the BMJ
How To Get Your Research Published in the BMJ
 
Does Social Psychology Really Have More Retractions?
Does Social Psychology Really Have More Retractions?Does Social Psychology Really Have More Retractions?
Does Social Psychology Really Have More Retractions?
 
Does Social Psychology Really Have More Retractions?
Does Social Psychology Really Have More Retractions?Does Social Psychology Really Have More Retractions?
Does Social Psychology Really Have More Retractions?
 
Innovative Insights for Smarter Care: Care Management and Analytics
Innovative Insights for Smarter Care: Care Management and AnalyticsInnovative Insights for Smarter Care: Care Management and Analytics
Innovative Insights for Smarter Care: Care Management and Analytics
 
Healthcare Social Media: The Conversation That Is Defining Your Brand
Healthcare Social Media: The Conversation That Is Defining Your BrandHealthcare Social Media: The Conversation That Is Defining Your Brand
Healthcare Social Media: The Conversation That Is Defining Your Brand
 

Recently uploaded

Population Growth in Bataan: The effects of population growth around rural pl...
Population Growth in Bataan: The effects of population growth around rural pl...Population Growth in Bataan: The effects of population growth around rural pl...
Population Growth in Bataan: The effects of population growth around rural pl...
Bill641377
 
University of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma TranscriptUniversity of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma Transcript
soxrziqu
 
原版一比一多伦多大学毕业证(UofT毕业证书)如何办理
原版一比一多伦多大学毕业证(UofT毕业证书)如何办理原版一比一多伦多大学毕业证(UofT毕业证书)如何办理
原版一比一多伦多大学毕业证(UofT毕业证书)如何办理
mkkikqvo
 
The Ipsos - AI - Monitor 2024 Report.pdf
The  Ipsos - AI - Monitor 2024 Report.pdfThe  Ipsos - AI - Monitor 2024 Report.pdf
The Ipsos - AI - Monitor 2024 Report.pdf
Social Samosa
 
Monthly Management report for the Month of May 2024
Monthly Management report for the Month of May 2024Monthly Management report for the Month of May 2024
Monthly Management report for the Month of May 2024
facilitymanager11
 
原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理
原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理
原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理
wyddcwye1
 
Open Source Contributions to Postgres: The Basics POSETTE 2024
Open Source Contributions to Postgres: The Basics POSETTE 2024Open Source Contributions to Postgres: The Basics POSETTE 2024
Open Source Contributions to Postgres: The Basics POSETTE 2024
ElizabethGarrettChri
 
End-to-end pipeline agility - Berlin Buzzwords 2024
End-to-end pipeline agility - Berlin Buzzwords 2024End-to-end pipeline agility - Berlin Buzzwords 2024
End-to-end pipeline agility - Berlin Buzzwords 2024
Lars Albertsson
 
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
bopyb
 
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Aggregage
 
一比一原版(harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(harvard毕业证书)哈佛大学毕业证如何办理一比一原版(harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(harvard毕业证书)哈佛大学毕业证如何办理
taqyea
 
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docxDATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
SaffaIbrahim1
 
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
Social Samosa
 
一比一原版巴斯大学毕业证(Bath毕业证书)学历如何办理
一比一原版巴斯大学毕业证(Bath毕业证书)学历如何办理一比一原版巴斯大学毕业证(Bath毕业证书)学历如何办理
一比一原版巴斯大学毕业证(Bath毕业证书)学历如何办理
y3i0qsdzb
 
UofT毕业证如何办理
UofT毕业证如何办理UofT毕业证如何办理
UofT毕业证如何办理
exukyp
 
Module 1 ppt BIG DATA ANALYTICS_NOTES FOR MCA
Module 1 ppt BIG DATA ANALYTICS_NOTES FOR MCAModule 1 ppt BIG DATA ANALYTICS_NOTES FOR MCA
Module 1 ppt BIG DATA ANALYTICS_NOTES FOR MCA
yuvarajkumar334
 
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
nyfuhyz
 
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data LakeViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
Walaa Eldin Moustafa
 
原版一比一弗林德斯大学毕业证(Flinders毕业证书)如何办理
原版一比一弗林德斯大学毕业证(Flinders毕业证书)如何办理原版一比一弗林德斯大学毕业证(Flinders毕业证书)如何办理
原版一比一弗林德斯大学毕业证(Flinders毕业证书)如何办理
a9qfiubqu
 
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
apvysm8
 

Recently uploaded (20)

Population Growth in Bataan: The effects of population growth around rural pl...
Population Growth in Bataan: The effects of population growth around rural pl...Population Growth in Bataan: The effects of population growth around rural pl...
Population Growth in Bataan: The effects of population growth around rural pl...
 
University of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma TranscriptUniversity of New South Wales degree offer diploma Transcript
University of New South Wales degree offer diploma Transcript
 
原版一比一多伦多大学毕业证(UofT毕业证书)如何办理
原版一比一多伦多大学毕业证(UofT毕业证书)如何办理原版一比一多伦多大学毕业证(UofT毕业证书)如何办理
原版一比一多伦多大学毕业证(UofT毕业证书)如何办理
 
The Ipsos - AI - Monitor 2024 Report.pdf
The  Ipsos - AI - Monitor 2024 Report.pdfThe  Ipsos - AI - Monitor 2024 Report.pdf
The Ipsos - AI - Monitor 2024 Report.pdf
 
Monthly Management report for the Month of May 2024
Monthly Management report for the Month of May 2024Monthly Management report for the Month of May 2024
Monthly Management report for the Month of May 2024
 
原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理
原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理
原版一比一利兹贝克特大学毕业证(LeedsBeckett毕业证书)如何办理
 
Open Source Contributions to Postgres: The Basics POSETTE 2024
Open Source Contributions to Postgres: The Basics POSETTE 2024Open Source Contributions to Postgres: The Basics POSETTE 2024
Open Source Contributions to Postgres: The Basics POSETTE 2024
 
End-to-end pipeline agility - Berlin Buzzwords 2024
End-to-end pipeline agility - Berlin Buzzwords 2024End-to-end pipeline agility - Berlin Buzzwords 2024
End-to-end pipeline agility - Berlin Buzzwords 2024
 
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
一比一原版(GWU,GW文凭证书)乔治·华盛顿大学毕业证如何办理
 
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
Beyond the Basics of A/B Tests: Highly Innovative Experimentation Tactics You...
 
一比一原版(harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(harvard毕业证书)哈佛大学毕业证如何办理一比一原版(harvard毕业证书)哈佛大学毕业证如何办理
一比一原版(harvard毕业证书)哈佛大学毕业证如何办理
 
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docxDATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
DATA COMMS-NETWORKS YR2 lecture 08 NAT & CLOUD.docx
 
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
4th Modern Marketing Reckoner by MMA Global India & Group M: 60+ experts on W...
 
一比一原版巴斯大学毕业证(Bath毕业证书)学历如何办理
一比一原版巴斯大学毕业证(Bath毕业证书)学历如何办理一比一原版巴斯大学毕业证(Bath毕业证书)学历如何办理
一比一原版巴斯大学毕业证(Bath毕业证书)学历如何办理
 
UofT毕业证如何办理
UofT毕业证如何办理UofT毕业证如何办理
UofT毕业证如何办理
 
Module 1 ppt BIG DATA ANALYTICS_NOTES FOR MCA
Module 1 ppt BIG DATA ANALYTICS_NOTES FOR MCAModule 1 ppt BIG DATA ANALYTICS_NOTES FOR MCA
Module 1 ppt BIG DATA ANALYTICS_NOTES FOR MCA
 
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
一比一原版(UMN文凭证书)明尼苏达大学毕业证如何办理
 
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data LakeViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
ViewShift: Hassle-free Dynamic Policy Enforcement for Every Data Lake
 
原版一比一弗林德斯大学毕业证(Flinders毕业证书)如何办理
原版一比一弗林德斯大学毕业证(Flinders毕业证书)如何办理原版一比一弗林德斯大学毕业证(Flinders毕业证书)如何办理
原版一比一弗林德斯大学毕业证(Flinders毕业证书)如何办理
 
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
办(uts毕业证书)悉尼科技大学毕业证学历证书原版一模一样
 

Mental Disorder Detection on Twitter

  • 1. Mental Disorder Detection on Twitter: Bipolar Disorder and Borderline Personality Disorder National Tsing Hua University Department of Information System and Application Advisor: Prof. Yi-Shin Chen Student: Chun-Hao Chang
  • 2. Introduction 18.1% people suffer from mental disorder in United States (*) Using Social Network to research on Mental Disorder National Insititute of Mental Helath: http://www.nimh.nih.gov/health/statistics/prevalence/index.shtml Analyze
  • 3. Challenges How to efficiently collect the tweets of patients? How to correctly detect mental disorder patients?
  • 4. Related Works Quantifying Mental Health Signals in Twitter - John Hopkins University(Coppersmith, G., Dredze, M., & Harman, C. (2014)) Automatic collecting patients by matching: “I was diagnosed with X” in tweets Prediction of 4 kinds of disorder Predicting Depression via Social Media - Microsoft (M De Choudhury, M Gamon, S Counts, E Horvitz - ICWSM, 2013) Collecting data from Amazon Turks and purchased Twitter data. Able to predict an user having depression disorder before a formal diagnosis Two important related works are as following:
  • 5. Related Works Quantifying Mental Health Signals in Twitter - John Hopkins University(Coppersmith, G., Dredze, M., & Harman, C. (2014)) Automatic collecting patients by matching: “I was diagnosed with X” in tweets Prediction of 4 kinds of disorder Predicting Depression via Social Media - Microsoft (M De Choudhury, M Gamon, S Counts, E Horvitz - ICWSM, 2013) Collecting data from Amazon Turks and purchased Twitter data. Able to predict an user having depression disorder before a formal diagnosis Two important related works are as following: 700 Million Tweets from Oct 2014 to Aug 2015 Only 8 Bipolar and 3 BPD patients are found
  • 6. Background Bipolar Disorder: *Unstable and impulsive emotions Cycling between Maniac and Depression episodes Borderline Personality Disorder: *Unstable and impulsive emotions Impaired social interactions
  • 8. Data Collecting A community portals is a Twitter account which is followed by a lot of patients. The community portals can be found by searching for the disorder on the Twitter website. Keywords Filter Manual Verification Collect Followers (REST API) Randomly Sample Users (Streaming API & REST API) Manually Collect Community Portals Tweets of Patients , Experts and Random Samples Collect Tweets (REST API) 1
  • 9.
  • 10. Data Collecting Download Followers of Community Patients. (5000 followers for each portal in this study) Filter out suspicious patients from follower profiles by keywords: BPD and Bipolar in this study Manually label the users as patients, experts and non-related. Keywords Filter Manual Verification Collect Followers (REST API) Randomly Sample Users (Streaming API & REST API) Manually Collect Community Portals Tweets of Patients , Experts and Random Samples Collect Tweets (REST API) 2 3 4
  • 13. Data Collecting Download Tweets by REST API (3200 tweets at most, exclude retweets) 1. Randomly sample English spoken users by Twitter Streaming API 2. Download Tweets by REST API (3200 tweets at most, exclude retweets) Keywords Filter Manual Verification Collect Followers (REST API) Randomly Sample Users (Streaming API & REST API) Manually Collect Community Portals Tweets of Patients , Experts and Random Samples Collect Tweets (REST API) 6 5
  • 14. Data Collected Group Users Random Samples 823 Bipolar 798 BPD 427 Bipolar Experts 54 BPD Experts 42 We assume theses random sampled Twitter users and experts does not have Bipolar or BPD Because prevalence of Bipolar is 2.6% and BPD is 1.6% (*) in United States. It shouldn’t seriously damage the predictive performance National Insititute of Mental Helath: http://www.nimh.nih.gov/health/statistics/prevalence/index.shtml
  • 15. Preprocessing Sentiment 140 API Emotion Classificatio n API Processed Data of Patients, Experts and Random Samples Spam and Inactive User Filter 1. Tweets amount > 100 2. Tweets contain hyperlink lower than 50% Positive Negtaive Neutral
  • 16. Data after preprocessing Group Users Tweets Averaged Tweets Random Samples 548 796957 1454.3 Bipolar Patients 278 347774 1250.99 BPD Patients 203 225774 1112.19 Bipolar Experts 11 14056 1611.67 BPD Experts 9 19696 1790.55
  • 17. Feature Extraction 1 TF-IDF Features LIWC Features Pattern of Life Features TF-IDF Calculation LIWC Counting Polarity Extraction Emotions Extraction Age Gender Prediction Social Behavior Extraction Open vocabulary approach by calculating unigram and bigram Personal behaviors: Emotional Pattern, Social Interactions and Profiles Data 64 Categories of Psychological Dictionary
  • 18. Feature Extraction : Pattern of Life Features Proposed by Coppersmith et al. We further improve it as following : 1. Polarity: Positive and negative percentages, Positive and negative combos ratio, Flips ratios 2. Emotions: Percentage of eight emotions 3. Age and Gender: Inferred age and gender(*) 4. Social Interactions: Mentioning Rate, Frequent menting Counts, Unique Mentioning Counts Schwartz, H. Andrew, et al. "Personality, gender, and age in the language of social media: The open-vocabulary approach." PloS one 8.9 (2013): e73791. APA
  • 19. Feature Extraction: Illustration of combos and Flips 3 min 900 min 18 min 15 min 800 min 200 min 1 Flips 3 Negative Combos Flip Ratio = 1 / 7 Negative Combo Ratio = 3 / 7 Time interval between tweets Flip Time threshold: 30 min Combo Time threshold: 120 min
  • 20. Classifiers Training and Evaluations TF-IDF Models Pattern of Life Models LIWC Models Random Forest Classifier Training 10-Fold Cross Validation Test Selection Bias Test Limited Data Test
  • 21. Classifiers Training and Evaluations TF-IDF Models Pattern of Life Models LIWC Models Random Forest Classifier Training 10-Fold Cross Validation Test Limited Data Test Selection Bias Test Shows relationship between precision and recall Randomly split data into 10 chunks, 9 chunks for training and 1 chunks for testing. And calculate the precision and recall after multiple iteration
  • 22. Evaluations on Bipolar: 10-fold Cross Validation Area Under the Curve: Pattern of Life 0.90 LIWC 0.91 TF-IDF 0.96
  • 23. Evaluations on BPD: 10-fold Cross Validation Area Under the Curve: Pattern of Life 0.91 LIWC 0.90 TF-IDF 0.96
  • 24. Classifiers Training and Evaluations TF-IDF Models Pattern of Life Models LIWC Models Random Forest Classifier Training 10-Fold Cross Validation Test Selection Bias Test Selection Bias Test To see if model is predicting people having disorder or just talking about it 11 Bipolar experts 9 BPD experts as the testing data. It shows the tendency of classifiers mis-classified experts as patients
  • 26. TOP 10 Keywords from TF-IDF Classifier Bipolar BPD mentalhealth dbt meds feeling blog borderline therapy helps anxiety self harm thoughts psychiatrist feel better cpn electroboyusa disorder health bpdchat bipolarblogger depression TF-IDF Classifier has the tendency to detect people who are talking about disorder
  • 27. Classifiers Training and Evaluations TF-IDF Models Pattern of Life Models LIWC Models Random Forest Classifier Training 10-Fold Cross Validation Test Limited Data Test Selection Bias Test Reveals how precision changes when the tweets are limited. Similar to 10-fold cross validation, but the testing data are extracted only from the latest K tweets
  • 28. Evaluations on Bipolar: Limited Tweets Precision
  • 29. Evaluations on BPD: Limited Tweets Precision
  • 30. Conclusion: How to efficiently collect the tweets data patients? We proposed an efficient and accessible way to collect tweets of patients How to correctly detect mental disorder patients? We suggested that Pattern of Life Model gives high precision and low bias