This is your Twitter on drugs. Any Questions?

106
Workshop on Modeling Social Media Florence, Italy, 19 May 2015 1 This Is Your Twitter on Drugs. Any Questions? Cody Buntain and Jennifer Golbeck {cbuntain,golbeck}@cs.umd.edu Human-Computer Interaction Lab University of Maryland

Transcript of This is your Twitter on drugs. Any Questions?

Page 1: This is your Twitter on drugs. Any Questions?

Workshop on Modeling Social Media

Florence, Italy, 19 May 2015

1

This Is Your Twitter on Drugs.Any Questions?

Cody Buntain and Jennifer Golbeck{cbuntain,golbeck}@cs.umd.eduHuman-Computer Interaction LabUniversity of Maryland

Page 2: This is your Twitter on drugs. Any Questions?

What is the point of this talk?

2

Page 3: This is your Twitter on drugs. Any Questions?

Can Twitter yield rapid insights about trends in drug use?

3

Page 4: This is your Twitter on drugs. Any Questions?

Can Twitter yield rapid insights about trends in drug use?

4

Page 5: This is your Twitter on drugs. Any Questions?

Can Twitter yield rapid insights about trends in drug use?

5

Page 6: This is your Twitter on drugs. Any Questions?

Drug use patterns are changing in the United

States

6

Page 7: This is your Twitter on drugs. Any Questions?

Drug use patterns are changing in the United

States

Source: National Survey on Drug Use and Health: Summary of National Findings, 2012

Past Month and Past Year Heroin Use Among Persons Aged 12 or Older: 2002-2012

The New Face of HeroinThe explosion of drugs like OxyContin has given way to a heroin epidemic ravaging the least likely corners of America - like bucolic Vermont, which has just woken up to a full-blown crisis

7

Page 8: This is your Twitter on drugs. Any Questions?

Drug use patterns are changing in the United

States

8

Designer Drugs

Page 9: This is your Twitter on drugs. Any Questions?

Drug use patterns are changing in the United

States

9

Designer Drugs

Page 10: This is your Twitter on drugs. Any Questions?

10

Page 11: This is your Twitter on drugs. Any Questions?

Current methods for tracking these trends are slow

11

Page 12: This is your Twitter on drugs. Any Questions?

12

Page 13: This is your Twitter on drugs. Any Questions?

13

Page 14: This is your Twitter on drugs. Any Questions?

Current methods have no support for partial results or

regression

14

Page 15: This is your Twitter on drugs. Any Questions?

15

Page 16: This is your Twitter on drugs. Any Questions?

Researchers have used

Twitter to track a variety of phenomena

16

Page 17: This is your Twitter on drugs. Any Questions?

Researchers have used

Twitter to track a variety of phenomena

17

Earthquake Epicenter Estimation

Typhoon Track Estimation

T. Sakaki, M. Okazaki, and Y. Matsuo, “Earthquake shakes Twitter users: real-time event detection by social sensors,” in Proceedings of the 19th

international conference on World wide web, 2010, pp. 851–860.

Page 18: This is your Twitter on drugs. Any Questions?

Researchers have used

Twitter to track a variety of phenomena

18D. Hauger and M. Schedl, “Exploring geospatial music listening patterns in

microblog data,” Proc. 10th Int. Work. Adapt. Multimed. Retr. (AMR 2012), 2012.

Artist Popularity by Region

Artist’s Song Popularity Over Time

Page 19: This is your Twitter on drugs. Any Questions?

Researchers have used

Twitter to track a variety of phenomena

19

V. Lampos, T. De Bie, and N. Cristianini, “Flu detector - Tracking epidemics on Twitter,” in Machine Learning and Knowledge Discovery in Databases, J. Balcázar, F. Bonchi, A.

Gionis, and M. Sebag, Eds. Springer Berlin Heidelberg, 2010, pp. 599–602.

V. Lampos and N. Cristianini, “Tracking the flu pandemic by monitoring the social web,” 2010 2nd Int. Work. Cogn. Inf. Process. CIP2010, pp. 411–416, 2010.

Twitter-based Flu Scores versus UK’s HPA Data

Page 20: This is your Twitter on drugs. Any Questions?

20 *M. J. Paul, M. Dredze, J. P. Michael, and D. Mark, “You are what you Tweet: Analyzing Twitter for public health,” Icwsm, pp. 265–272, 2011.

You Are What You Tweet: Analyzing Twitter for Public Health*

Rates of Allergy Sufferers in 2010

Page 21: This is your Twitter on drugs. Any Questions?

21 *M. J. Paul, M. Dredze, J. P. Michael, and D. Mark, “You are what you Tweet: Analyzing Twitter for public health,” Icwsm, pp. 265–272, 2011.

You Are What You Tweet: Analyzing Twitter for Public Health*

Rates of Allergy Sufferers in 2010

Drug use should also affect public health

Page 22: This is your Twitter on drugs. Any Questions?

Research Questions

22

Page 23: This is your Twitter on drugs. Any Questions?

Research Questions

• RQ 1 - Can Twitter provide insight in temporal trends in drug use?

22

Page 24: This is your Twitter on drugs. Any Questions?

Research Questions

• RQ 2 - Can Twitter illustrate state-level geographic trends in drug use?

• RQ 1 - Can Twitter provide insight in temporal trends in drug use?

22

Page 25: This is your Twitter on drugs. Any Questions?

Data Collection

23

Page 26: This is your Twitter on drugs. Any Questions?

Data Collection

24

Page 27: This is your Twitter on drugs. Any Questions?

Sample Stream

Data Collection

24

Page 28: This is your Twitter on drugs. Any Questions?

Sample Stream

Filter Stream

Data Collection

24

Page 29: This is your Twitter on drugs. Any Questions?

Sample Stream

Filter Stream

Data Collection

25

Page 30: This is your Twitter on drugs. Any Questions?

Sample Stream

Filter Stream

Data Collection

Distributed Data Store

(HDFS)

25

Page 31: This is your Twitter on drugs. Any Questions?

Sample Stream

Filter Stream

Data Collection

Distributed Data Store

(HDFS)

Drug Keywords

26

Page 32: This is your Twitter on drugs. Any Questions?

Sample Stream

Filter Stream

Data Collection

Distributed Data Store

(HDFS)

Drug Keywords

27

Page 33: This is your Twitter on drugs. Any Questions?

Sample Stream

Filter Stream

Data Collection

Distributed Data Store

(HDFS)

Drug Keywords

Sampled from April-July 2014: 645,761,955 tweets (247GB)

27

Page 34: This is your Twitter on drugs. Any Questions?

Sample Stream

Filter Stream

Data Collection

Distributed Data Store

(HDFS)

Drug Keywords

Sampled from April-July 2014: 645,761,955 tweets (247GB)

Filtered from Oct. 30 - Nov. 26: 176,742,962 tweets (81GB)

27

Page 35: This is your Twitter on drugs. Any Questions?

Sample Stream

Filter Stream

Data Collection

Distributed Data Store

(HDFS)

Drug Keywords

28

Hadoop +

Spark

Page 36: This is your Twitter on drugs. Any Questions?

Case Study #1 Temporal Trends

29

Page 37: This is your Twitter on drugs. Any Questions?

Twee

t Fre

quen

cy

0

150

300

450

600

Date4/3

0/145/5

/14

5/10/1

4

5/15/1

4

5/20/1

4

5/25/1

4

5/30/1

46/4

/146/9

/14

6/14/1

4

6/19/1

4

6/24/1

4

6/29/1

47/4

/147/9

/14

7/14/1

4

7/19/1

4

7/24/1

4

7/29/1

4

CocaineHeroinMethYaba

Sample StreamTemporal Trends

30

Page 38: This is your Twitter on drugs. Any Questions?

Twee

t Fre

quen

cy

0

150

300

450

600

Date

5/3/14

5/8/14

5/13/1

4

5/18/1

4

5/23/1

4

5/28/1

46/2

/146/7

/14

6/12/1

4

6/17/1

4

6/22/1

4

6/27/1

47/2

/147/7

/14

7/12/1

4

7/17/1

4

7/22/1

4

7/27/1

4

CocaineHeroinMethYaba

Sample StreamTemporal Trends

(Smoothed)

31

Page 39: This is your Twitter on drugs. Any Questions?

Twee

t Fre

quen

cy

0

150

300

450

600

Date

5/3/14

5/8/14

5/13/1

4

5/18/1

4

5/23/1

4

5/28/1

46/2

/146/7

/14

6/12/1

4

6/17/1

4

6/22/1

4

6/27/1

47/2

/147/7

/14

7/12/1

4

7/17/1

4

7/22/1

4

7/27/1

4

CocaineHeroinMethYaba

Sample StreamTemporal Trends

(Smoothed)?

31

Page 40: This is your Twitter on drugs. Any Questions?

32

Page 41: This is your Twitter on drugs. Any Questions?

33

Page 42: This is your Twitter on drugs. Any Questions?

Twee

t Fre

quen

cy

0

75

150

225

300

Date

5/3/14

5/8/14

5/13/1

4

5/18/1

4

5/23/1

4

5/28/1

46/2

/146/7

/14

6/12/1

4

6/17/1

4

6/22/1

4

6/27/1

47/2

/147/7

/14

7/12/1

4

7/17/1

4

7/22/1

4

7/27/1

4

Cocaine†HeroinMethYaba

Sample StreamTemporal Trends

(Smoothed + No RT)

34

Page 43: This is your Twitter on drugs. Any Questions?

Twee

t Fre

quen

cy

0

75

150

225

300

Date

5/3/14

5/8/14

5/13/1

4

5/18/1

4

5/23/1

4

5/28/1

46/2

/146/7

/14

6/12/1

4

6/17/1

4

6/22/1

4

6/27/1

47/2

/147/7

/14

7/12/1

4

7/17/1

4

7/22/1

4

7/27/1

4

Cocaine†HeroinMethYaba

Sample StreamTemporal Trends

(Smoothed + No RT)Popularity by Volume:

Cocaine Meth

Heroin Yaba

35

Page 44: This is your Twitter on drugs. Any Questions?

Twee

t Fre

quen

cy

0

75

150

225

300

Date

5/3/14

5/8/14

5/13/1

4

5/18/1

4

5/23/1

4

5/28/1

46/2

/146/7

/14

6/12/1

4

6/17/1

4

6/22/1

4

6/27/1

47/2

/147/7

/14

7/12/1

4

7/17/1

4

7/22/1

4

7/27/1

4

Cocaine†HeroinMethYaba

Sample StreamTemporal Trends

(Smoothed + No RT)Popularity by Volume:

Cocaine Meth

Heroin Yaba

Consistent with the Global Drug Survey

36

Page 45: This is your Twitter on drugs. Any Questions?

Twee

t Fre

quen

cy

0

75

150

225

300

Date

5/3/14

5/8/14

5/13/1

4

5/18/1

4

5/23/1

4

5/28/1

46/2

/146/7

/14

6/12/1

4

6/17/1

4

6/22/1

4

6/27/1

47/2

/147/7

/14

7/12/1

4

7/17/1

4

7/22/1

4

7/27/1

4

Cocaine†HeroinMethYaba

Sample StreamTemporal Trends

(Smoothed + No RT)

37

Page 46: This is your Twitter on drugs. Any Questions?

Twee

t Fre

quen

cy

0

75

150

225

300

Date

5/3/14

5/8/14

5/13/1

4

5/18/1

4

5/23/1

4

5/28/1

46/2

/146/7

/14

6/12/1

4

6/17/1

4

6/22/1

4

6/27/1

47/2

/147/7

/14

7/12/1

4

7/17/1

4

7/22/1

4

7/27/1

4

Cocaine†Trend 1HeroinTrend 2MethTrend 3YabaTrend 4

Sample StreamTemporal Trends

(Smoothed + No RT + Trendlines)

38

Page 47: This is your Twitter on drugs. Any Questions?

Twee

t Fre

quen

cy

0

75

150

225

300

Date

5/3/14

5/8/14

5/13/1

4

5/18/1

4

5/23/1

4

5/28/1

46/2

/146/7

/14

6/12/1

4

6/17/1

4

6/22/1

4

6/27/1

47/2

/147/7

/14

7/12/1

4

7/17/1

4

7/22/1

4

7/27/1

4

Cocaine†Trend 1HeroinTrend 2MethTrend 3YabaTrend 4

Sample StreamTemporal Trends

(Smoothed + No RT + Trendlines)y = 0.5269x + 149.02

R² = 0.30184

39

Page 48: This is your Twitter on drugs. Any Questions?

Case Study #2 Geographic Trends

40

Page 49: This is your Twitter on drugs. Any Questions?

Geographic Trends

41

Page 50: This is your Twitter on drugs. Any Questions?

Geographic TrendsSample +

Filter Stream

HDFS Store of Drug Tweets

Heroin

Cocaine

Meth

Oxy

Filter for

USA

42

Page 51: This is your Twitter on drugs. Any Questions?

Geographic Trends

43

Page 52: This is your Twitter on drugs. Any Questions?

Geographic Trends

!

43

Page 53: This is your Twitter on drugs. Any Questions?

Geographic Trends

!

!

43

Page 54: This is your Twitter on drugs. Any Questions?

Geographic Trends

!

!

Only about 2% of tweets have GPS data

44

Page 55: This is your Twitter on drugs. Any Questions?

Geographic TrendsSample +

Filter Stream

Drug Geocoded Tweet Count

Cocaine 281

Heroin 1,490

Meth 3,462

Oxy 223

45

Page 56: This is your Twitter on drugs. Any Questions?

Cocaine Heroin

Meth Oxy46

Geographic TrendsSample +

Filter Stream

Page 57: This is your Twitter on drugs. Any Questions?

47

Geographic TrendsSample +

Filter Stream

CocaineMin Max

Page 58: This is your Twitter on drugs. Any Questions?

48

Geographic TrendsSample +

Filter Stream

CocaineMin Max

Page 59: This is your Twitter on drugs. Any Questions?

Heroin49

Geographic TrendsSample +

Filter Stream

Min Max

Page 60: This is your Twitter on drugs. Any Questions?

Heroin50

Geographic TrendsSample +

Filter Stream

Min Max

The New Face of HeroinThe explosion of drugs like OxyContin has given way to a heroin epidemic ravaging the least likely corners of America - like bucolic Vermont, which has just woken up to a full-blown crisis

Page 61: This is your Twitter on drugs. Any Questions?

Meth51

Geographic TrendsSample +

Filter Stream

Min Max

Page 62: This is your Twitter on drugs. Any Questions?

Meth52

Geographic TrendsSample +

Filter Stream

Min Max

Region 12 or Older Estimate

Northeast 3.07%

Midwest 3.12%

South 3.35%

West 3.81%

Page 63: This is your Twitter on drugs. Any Questions?

Oxy53

Geographic TrendsSample +

Filter Stream

Min Max

Page 64: This is your Twitter on drugs. Any Questions?

Oxy54

Geographic TrendsSample +

Filter Stream

Min Max

Page 65: This is your Twitter on drugs. Any Questions?

Additional Research: Tweet Disambiguation

55

Page 66: This is your Twitter on drugs. Any Questions?

Tweet Relevancy

56

Page 67: This is your Twitter on drugs. Any Questions?

Tweet Relevancy

!

56

Page 68: This is your Twitter on drugs. Any Questions?

Tweet Relevancy

57

Page 69: This is your Twitter on drugs. Any Questions?

Tweet Relevancy

!

57

Page 70: This is your Twitter on drugs. Any Questions?

Tweet Relevancy

!

!

57

Page 71: This is your Twitter on drugs. Any Questions?

Rele

vant

Per

cent

age

0%

25%

50%

75%

100%

Drug-Related Keywordssyn

thetic

mari

juana

hydroc

odon

elor

tab

methylo

ne

bath sa

ltsthi

zzox

iesdop

e pottwea

kha

shsta

cks ox k2

subbies flu

ff

pink la

dysm

iles

pandas

orang

es

demon

spee

d

malcolm

xne

gra

Tweet Relevancy

58

Page 72: This is your Twitter on drugs. Any Questions?

Rele

vant

Per

cent

age

0%

25%

50%

75%

100%

Drug-Related Keywordssyn

thetic

mari

juana

hydroc

odon

elor

tab

methylo

ne

bath sa

ltsthi

zzox

iesdop

e pottwea

kha

shsta

cks ox k2

subbies flu

ff

pink la

dysm

iles

pandas

orang

es

demon

spee

d

malcolm

xne

gra

Tweet Relevancy

59

Page 73: This is your Twitter on drugs. Any Questions?

Rele

vant

Per

cent

age

0%

25%

50%

75%

100%

Drug-Related Keywordssyn

thetic

mari

juana

hydroc

odon

elor

tab

methylo

ne

bath sa

ltsthi

zzox

iesdop

e pottwea

kha

shsta

cks ox k2

subbies flu

ff

pink la

dysm

iles

pandas

orang

es

demon

spee

d

malcolm

xne

gra

Tweet Relevancy

59

Page 74: This is your Twitter on drugs. Any Questions?

Rele

vant

Per

cent

age

0%

25%

50%

75%

100%

Drug-Related Keywordssyn

thetic

mari

juana

hydroc

odon

elor

tab

methylo

ne

bath sa

ltsthi

zzox

iesdop

e pottwea

kha

shsta

cks ox k2

subbies flu

ff

pink la

dysm

iles

pandas

orang

es

demon

spee

d

malcolm

xne

gra

Tweet Relevancy

59

Page 75: This is your Twitter on drugs. Any Questions?

Disambiguation with Topic Models

Mallet Topic Modeling Package

60

Page 76: This is your Twitter on drugs. Any Questions?

Disambiguation with Topic Models

Mallet Topic Modeling Package

Oxy Topics

61

Page 77: This is your Twitter on drugs. Any Questions?

Disambiguation with Topic Models

Mallet Topic Modeling Package

Oxy Topics

adderal, amp, bars, buy, day, drugs, ecstasy, it's, morphine, muscle, oxy, oxycodone, percocets,

percs, prescription, purplethizzle, relaxers,

speed, state, xanax

61

Page 78: This is your Twitter on drugs. Any Questions?

Disambiguation with Topic Models

Mallet Topic Modeling Package

Oxy Topics

amino, credits, feelin, feeling, i'm, kinda, man, morons, oxycontin, pain, people, pills, real, reel,

strange, supply, system, treatment, ubos

adderal, amp, bars, buy, day, drugs, ecstasy, it's, morphine, muscle, oxy, oxycodone, percocets,

percs, prescription, purplethizzle, relaxers,

speed, state, xanax

61

Page 79: This is your Twitter on drugs. Any Questions?

Disambiguation with Topic Models

Mallet Topic Modeling Package

Oxy Topics

gabapertina, gotas, health, ice, lumina, mac, make,

months, oxy, oxygen, oxymoron, prince, redman, sweet, tah, tonight, trailer,

video, youtube

amino, credits, feelin, feeling, i'm, kinda, man, morons, oxycontin, pain, people, pills, real, reel,

strange, supply, system, treatment, ubos

adderal, amp, bars, buy, day, drugs, ecstasy, it's, morphine, muscle, oxy, oxycodone, percocets,

percs, prescription, purplethizzle, relaxers,

speed, state, xanax

61

Page 80: This is your Twitter on drugs. Any Questions?

Disambiguation with Topic Models

Mallet Topic Modeling Package

Molly Topics back, chest, china, coke, crack, don't, dont, drug, flogging, gas, gotta, green, i'm, jay,

lean, literally

62

Page 81: This is your Twitter on drugs. Any Questions?

Disambiguation with Topic Models

Mallet Topic Modeling Package

Molly Topics back, chest, china, coke, crack, don't, dont, drug, flogging, gas, gotta, green, i'm, jay,

lean, literally

balloon, birthday, body, books, bookslapped, date, enter, happy, harpercollins,

kiss, letting, love, molly, mollysmcadams, nov, turn

weasley, win

ally, anthony, can't, club, emilio, estevez, finally, find, fresh, hall, kicks, michael,

molly, music, official, ringwald, sheedy, video,

youtube

ain't, ass, bill, champagne, cosby, drink, een, enjoyed, ford, girl, gramps, home,

i'm, lewinsky, lol, love, make, molly, monica, pop,

pop, popped, pudding, rock, slip, that's, tom,

wanna, weed, whiskey, wit, world

62

Page 82: This is your Twitter on drugs. Any Questions?

Disambiguation with Topic Models

Mallet Topic Modeling Package

Molly Topics back, chest, china, coke, crack, don't, dont, drug, flogging, gas, gotta, green, i'm, jay,

lean, literally

balloon, birthday, body, books, bookslapped, date, enter, happy, harpercollins,

kiss, letting, love, molly, mollysmcadams, nov, turn

weasley, win

ally, anthony, can't, club, emilio, estevez, finally, find, fresh, hall, kicks, michael,

molly, music, official, ringwald, sheedy, video,

youtube

ain't, ass, bill, champagne, cosby, drink, een, enjoyed, ford, girl, gramps, home,

i'm, lewinsky, lol, love, make, molly, monica, pop,

pop, popped, pudding, rock, slip, that's, tom,

wanna, weed, whiskey, wit, world

62

Page 83: This is your Twitter on drugs. Any Questions?

Disambiguation with Topic Models

Mallet Topic Modeling Package

Molly Topics back, chest, china, coke, crack, don't, dont, drug, flogging, gas, gotta, green, i'm, jay,

lean, literally

balloon, birthday, body, books, bookslapped, date, enter, happy, harpercollins,

kiss, letting, love, molly, mollysmcadams, nov, turn

weasley, win

ally, anthony, can't, club, emilio, estevez, finally, find, fresh, hall, kicks, michael,

molly, music, official, ringwald, sheedy, video,

youtube

ain't, ass, bill, champagne, cosby, drink, een, enjoyed, ford, girl, gramps, home,

i'm, lewinsky, lol, love, make, molly, monica, pop,

pop, popped, pudding, rock, slip, that's, tom,

wanna, weed, whiskey, wit, world

62

Page 84: This is your Twitter on drugs. Any Questions?

Disambiguation with Topic Models

Mallet Topic Modeling Package

Molly Topics back, chest, china, coke, crack, don't, dont, drug, flogging, gas, gotta, green, i'm, jay,

lean, literally

balloon, birthday, body, books, bookslapped, date, enter, happy, harpercollins,

kiss, letting, love, molly, mollysmcadams, nov, turn

weasley, win

ally, anthony, can't, club, emilio, estevez, finally, find, fresh, hall, kicks, michael,

molly, music, official, ringwald, sheedy, video,

youtube

ain't, ass, bill, champagne, cosby, drink, een, enjoyed, ford, girl, gramps, home,

i'm, lewinsky, lol, love, make, molly, monica, pop,

pop, popped, pudding, rock, slip, that's, tom,

wanna, weed, whiskey, wit, world

62

Page 85: This is your Twitter on drugs. Any Questions?

Limitations and Future Work

63

Page 86: This is your Twitter on drugs. Any Questions?

Relevancy Classification

64

Page 87: This is your Twitter on drugs. Any Questions?

Ground Truth

Page 88: This is your Twitter on drugs. Any Questions?

Ground Truth

• Limited concurrent ground truth for comparison

• Tweets about news stories may introduce bias

Page 89: This is your Twitter on drugs. Any Questions?

Ground Truth

• Limited concurrent ground truth for comparison

• Tweets about news stories may introduce bias

• New NSDUH should be released in the fall

Page 90: This is your Twitter on drugs. Any Questions?

Ground Truth

• Limited concurrent ground truth for comparison

• Tweets about news stories may introduce bias

• New NSDUH should be released in the fall

• Comparison with Google search trends

Page 91: This is your Twitter on drugs. Any Questions?

Twitter Data

Limited Location Data

Page 92: This is your Twitter on drugs. Any Questions?

Twitter Data

Limited Location Data

Drug-Related Tweets

Page 93: This is your Twitter on drugs. Any Questions?

Twitter Data

Limited Location Data

Geocoded Drug-Related

Tweets

Sampled Tweets

Drug-Related Tweets

Page 94: This is your Twitter on drugs. Any Questions?

Limited Location Data

Geocoded Drug-Related

Tweets

Sampled Drug-Related

Tweets

Page 95: This is your Twitter on drugs. Any Questions?

Limited Location Data

Geocoded Drug-Related

Tweets

Sampled Drug-Related

TweetsInfer User Locations

Page 96: This is your Twitter on drugs. Any Questions?

Limited Location Data

Geocoded Drug-Related

Tweets

Sampled Drug-Related

Tweets

Page 97: This is your Twitter on drugs. Any Questions?

Limited Location Data

Geocoded Drug-Related

Tweets

Sampled Drug-Related

Tweets

Page 98: This is your Twitter on drugs. Any Questions?

Conclusions

71

Page 99: This is your Twitter on drugs. Any Questions?

Twee

t Fre

quen

cy

0

75

150

225

300

Date

5/3/14

5/8/14

5/13/1

4

5/18/1

4

5/23/1

4

5/28/1

46/2

/146/7

/14

6/12/1

4

6/17/1

4

6/22/1

4

6/27/1

47/2

/147/7

/14

7/12/1

4

7/17/1

4

7/22/1

4

7/27/1

4

Cocaine†HeroinMethYaba

Sample StreamTemporal Trends

72

Page 100: This is your Twitter on drugs. Any Questions?

Twee

t Fre

quen

cy

0

75

150

225

300

Date

5/3/14

5/8/14

5/13/1

4

5/18/1

4

5/23/1

4

5/28/1

46/2

/146/7

/14

6/12/1

4

6/17/1

4

6/22/1

4

6/27/1

47/2

/147/7

/14

7/12/1

4

7/17/1

4

7/22/1

4

7/27/1

4

Cocaine†HeroinMethYaba

Sample StreamTemporal Trends

73

Popularity by Volume: Cocaine

Meth Heroin Yaba

Consistent with the Global Drug Survey

Page 101: This is your Twitter on drugs. Any Questions?

Twee

t Fre

quen

cy

0

75

150

225

300

Date

5/3/14

5/8/14

5/13/1

4

5/18/1

4

5/23/1

4

5/28/1

46/2

/146/7

/14

6/12/1

4

6/17/1

4

6/22/1

4

6/27/1

47/2

/147/7

/14

7/12/1

4

7/17/1

4

7/22/1

4

7/27/1

4

Cocaine†Trend 1HeroinTrend 2MethTrend 3YabaTrend 4

Sample StreamTemporal Trendlines

y = 0.5269x + 149.02 R² = 0.30184

74

Page 102: This is your Twitter on drugs. Any Questions?

Twee

t Fre

quen

cy

0

75

150

225

300

Date

5/3/14

5/8/14

5/13/1

4

5/18/1

4

5/23/1

4

5/28/1

46/2

/146/7

/14

6/12/1

4

6/17/1

4

6/22/1

4

6/27/1

47/2

/147/7

/14

7/12/1

4

7/17/1

4

7/22/1

4

7/27/1

4

Cocaine†Trend 1HeroinTrend 2MethTrend 3YabaTrend 4

Sample StreamTemporal Trendlines

y = 0.5269x + 149.02 R² = 0.30184

75

Cocaine increased in popularity on Twitter

Page 103: This is your Twitter on drugs. Any Questions?

Cocaine Heroin

Meth Oxy76

Geographic TrendsSample +

Filter Stream

Page 104: This is your Twitter on drugs. Any Questions?

Cocaine Heroin

Meth Oxy77

Geographic TrendsSample +

Filter Stream

Can extract geographic trends from Twitter

Page 105: This is your Twitter on drugs. Any Questions?

Cocaine Heroin

Meth Oxy78

Geographic TrendsSample +

Filter Stream

Can extract geographic trends from Twitter

(for some drugs at least)

Page 106: This is your Twitter on drugs. Any Questions?

Thanks!

Questions?

79

Contact: @codybuntain

[email protected]