YOU ARE DOWNLOADING DOCUMENT

Please tick the box to continue:

Transcript
Page 1: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

AnopensourceGATEtoolkitforsocialmediaanalysis

DianaMaynardUniversityofSheffield,UK

Page 2: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

GATEfortextengineering• ToolfordevelopinganddeploymentofTextMiningtechnology

• http://gate.ac.uk

• 20yearsold(butnotpastityet!)

• establishedlargedevelopercommunity,incl.industrialcommitters(Ontotext,Intellius,TextMiningSolutions)

• Usedworldwidebymanyorganisations tobuildbespokesolutions,e.g.TNA,PressAssociation,BBC,NHS

• Afreeopensourceframework(LGPL)andGUI

• IncludesInformationExtractiontoolsinmanylanguages• Researchteamof15people• Lotsoftoolsalsoforsocialmediaanalysis

Page 3: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

GATEopen-sourcesocialmediatools

Name/Description Description/Domain License

GATE Numeroustoolsfortextanalytics,includingsocialmedia

LGPL+pluginspecific

TwitIE NERfortweets LGPL

GATECloud Variouscloud-basedGATEservices,includingsocialmediaanalytics

SaaSmodel

Sentimentanalysis Generictwitter-basedsentimentanalysis LGPL

TweetCollector Socialmediaanalytics SaaSmodel

YODIE(indevelopment) Cloud-basednamedentitydisambiguationandlinking;versionforsocialmedia

SaaSmodel

Page 4: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

GATEAnnotation

Page 5: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

NERinFrench

Page 6: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

NERinArabic

Page 7: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

Environmentaltermrecognition

Page 8: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

Hashtaganalysis

● Weneedtochopupthehashtagsintoindividualwords,andfindanytermswithinthem●#palmoilhumanrights --> palm oil + human rights

Page 9: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

GATECloudTools

• YoucantryvariousdemosofourtoolsontheGATECloud

• http://cloud.gate.ac.uk• Youcanprocesssmallamountsoftextforfree• Forlargervolumes,youcansetupanaccountandpayforthetimeyouuse

Page 10: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

CollectyourownTweets!

• Twitter providesAPIstodownloadtweetsinrealtimebasedonvariousfilteringconditions

• Theycanbechallengingtosetupifyou'renotaprogrammer

• WehavetoolsontheGATECloudtoletyousetupaquerytocollecttweetsbyparticularpeople,matchingcertainkeywords,geo-taggedwithparticularlocations,andsoon.

• Youdon’tneedtoinstallanysoftware!• Moredetails availableonGATECloudpages

Page 11: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

Exploringthecollecteddata• Youcanalsoget6reportsonyourdatacollectedsofar,updatedinrealtime.

1. Viewthetophashtagsasabarchartortagcloud,andaddhashtagstothetrackinglistinthecollector.

2. Viewalinegraphoftweetfrequencyperhour.3. Viewabarchartorcloudofthetoptopicsaccordingtolistsof

terms.Thelistscanbeeditedfromalinkonthetopicsgraphpage.Topicscanbeaddedastermstothetracker.

4. Viewabarchartorcloudofthemostmentionedusers.Thesecanalsobeaddedforthecollectortotrack.

5. Viewabarchartorcloudofthefrequencyofthetermsyouaretracking.

6. Viewabarchartorcloudofthetopwordsofonegrammaticaltype(adjective,verb,nounetc.)(onlyforEnglish)

Demo

Page 12: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

Analysing Polarised SocietalDebates

• Public,polarised debatesaffectpolicymaking,thecourseofacountry,votingintents

• Historically,thepublicdebatestookplaceonTVandinvolvedonlypoliticiansormediafigures

Page 13: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

Motivation

• Today,polarised debatesalsotakeplacepubliclyontheinternet,andanyonecanparticipate

• Analysing thesepublicstatementstellsus:• Whatparticipantsarethinking• Whatargumentstheyaremaking• Whoisthinkingwhat• Gaina“bigpicture”viewoftheresponsetoeventsorpolicies.

Page 14: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place
Page 15: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

TheStory

• Analyse socialmediasurroundingpolarised societaldebates

• Indextheresultstounderstand,visualise andexplore:

• Whattopicsarebeingdiscussed?• Whatsentimentsarebeingexpressed?• Whoisparticipatinginthedebate?• Howdodebatesevolveovertime?

Page 16: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

Real-timeOpinionMonitoring

16

vs replies

Page 17: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

RepliestoTrumpre:climatechange

17

Page 18: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

Climatechange,ISISandTrump

18

Page 19: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

Topicrelations

19

Page 20: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

DynamicsOverTime/Location

20

Page 21: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

• EuropeanResearchInfrastructureforBigDataandSocialMining• 7Europeancountries,morethan100researchers• Collectionsofdatasets,creationoftools• Trans-nationalaccessprogramme (comeandvisitus!)• Researchorganised inverticalthemes(exploratories)ontopofSBDinfrastructure

• Performcross-disciplinarycutting-edgesocialmediaminingresearch

• CityofCitizens• Well-being&Economy• SocietalDebates• MigrationStudies

www.sobigdata.eu@sobigdata

Page 22: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

Photocredit:https://www.flickr.com/photos/armydre2008

Page 23: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

Brexitanalyser

Page 24: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

Tweets

Tokenization

Normalization POS tagging

NErecognition

Leave/remainclassification

TopicDetection

TweetGeolocation

Userclassification

SemanticSearch

TweetsaretrackedinrealtimeusingthestreamingAPI

TweetCollection

Page 25: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

Tweets

Tokenization

Normalization POS tagging

NErecognition

Leave/remainclassification

TopicDetection

TweetGeolocation

Userclassification

SemanticSearch

Individualtokens(analogoustoterms)areextracted

Tokenisation

Page 26: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

Tweets

Tokenization

Normalization POS tagging

NErecognition

Leave/remainclassification

TopicDetection

TweetGeolocation

Userclassification

SemanticSearch

Spellingandabbreviationsarenormalised tohelplinguisticprocessingtools

Normalization

Page 27: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

Tweets

Tokenization

Normalization POS tagging

NErecognition

Leave/remainclassification

TopicDetection

TweetGeolocation

Userclassification

SemanticSearch

Parts-of-speechareidentified.Thisisnecessarytosupportlaterprocessing

POStagging

Page 28: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

Tweets

Tokenization

Normalization POS tagging

NErecognition

Leave/remainclassification

TopicDetection

TweetGeolocation

Userclassification

SemanticSearch

Wediscovermentionsofentitiessuchaspeople,locations,organisations andproducts

NamedEntities

Page 29: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

Tweets

Tokenization

Normalization POS tagging

NErecognition

Leave/remainclassification

TopicDetection

TweetGeolocation

Userclassification

SemanticSearch

Intenttovoteleaveorremainclassifiedby#hashtag

VotingIntent

Page 30: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

Tweets

Tokenization

Normalization POS tagging

NErecognition

Leave/remainclassification

TopicDetection

TweetGeolocation

Userclassification

SemanticSearch

Tweetsarematchedagainstadetailedlistoftopics

TopicDetection

Page 31: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

Tweets

Tokenization

Normalization POS tagging

NErecognition

Leave/remainclassification

TopicDetection

TweetGeolocation

Userclassification

SemanticSearch

TweetsarelinkedtoNUTSregionsbasedonplacetagsanduserhomelocations

Geolocation

Page 32: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

Tweets

Tokenization

Normalization POS tagging

NErecognition

Leave/remainclassification

TopicDetection

TweetGeolocation

Userclassification

SemanticSearch

Weclassifyusersintoegjournalist,charity,memberofpublic

UserClassification

Page 33: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

Tweets

Tokenization

Normalization POS tagging

NErecognition

Leave/remainclassification

TopicDetection

TweetGeolocation

Userclassification

SemanticSearch

TweettextandannotationsareindexedinsemanticsearchengineMímirforsearchand

visualisation

SemanticSearch

Page 34: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

SemanticsearchwithMímir

• Mímir:Multiparadigm IndexingandRetrieval

• Complexqueries– cansearchoverannotationslike

{DocumentTimestamp hour_timestamp >= 2016062223 hour_timestamp < 2016062323} OVER ( {DocumentKind tweet_kind = original} AND {NUTS2NUTS2 = "UKE3"})

• Canalsomixinfulltextandsemanticqueries.Verypowerful!

• WhichpoliticiansfromtheNorthofEnglandovertheageof40talkedmostpositivelyaboutclimatechange?

• Allowsustodrilldownandeasilyseetweetswithcertainproperties

Page 35: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place
Page 36: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

Votingintentionpertopic

Page 37: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

VotingIntentionovertime

Page 38: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

Ego-networkanalysis

• AnalysisusingpreviousworkonselectedBrexitdata• ValerioArnaboldi• InstituteofInformaticsandTelematics(IIT)• ItalianNationalResearchCouncil(CNR)

• Understandingthequantityandqualityofrelationshipsofdebateparticipants

• Remain,leaveandneutraluserswereselectedbySheffieldusingtheirpipelineandprocessedbyCNR-IIT

• Niceexampleofbringingseveralsystemstogether

Page 39: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

Remainers aremoresocial

• Theymaintainlargeregonetworks

• Largeractivenetworksize• numberofpeopleactivelycontactedbytheegos

• withafrequencyofatleastonedirecttweetperyear

• consideringmentions,replies,andretweets

• Effectremainsevenafterfilteringoutantisocialaccounts

Activenetworksizeinusers

Page 40: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

Leavershadfewersocialcircles

• Socialcircle:• Groupofusersinanego-network

• Withsimilarlevelsofinteractiontooneanother

• Mostfrequentinteractionswithasmallersocialcircle

• Moreoccasionalinteractionswithalargercircle

Averagenumberofsocialcircles

Page 41: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

Many“leave”accountsdidn’tsocialise atall

• Alotofaccountswerenotusedsocially

• Thisisreflectedinthenumberofaccountswithsocialcircles

• Theleavetwitterers werewellbelowtherandomsample. %ofaccountswithatleast1socialcircle

Page 42: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

BrexitDemo

• http://demos.gate.ac.uk/sobigdata/brexit/• Morecoolvisualisations (workinprogress)

Page 43: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

GATEsocialmediaanalysistoolkit:analysingtheUKelections

Page 44: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

MIMIRquery

• Dataset:everytweetbyMP/Candidate/Party,plusallreplies/retweets

• FindalltweetswhereaConservativeMPtalkedabouttheeconomy

Page 45: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

Parties/themesco-occurrence

UK economyEurope

Tax and revenueNHS

Borders and ImmigrationScotland

EmploymentCommunity and society

Public healthMedia and communications

Labo

ur P

arty

Can

dida

teLa

bour

Par

ty M

PCo

nser

vativ

e Pa

rty

Cand

idat

eCo

nser

vativ

e Pa

rty

MP

UKIP

Can

dida

teOt

her M

PSN

P Ca

ndid

ate

Gree

n Pa

rty

Cand

idat

eLi

bera

l Dem

ocra

ts C

andi

date

SNP

Othe

r

Page 46: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

SemanticqueryingviaDBpedia

• Queryingforinformationnotexplicitinthetext

• “FindalltopicsintweetsbytheMPfromSheffieldHallam”

• Wedon’tneedtoknowwhothisMPis

• IftheSheffieldHallamMPchangedatsomepoint,thiswouldbecaptured

Page 47: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

Analysis of the EarthHour campaign

l Analysis of hashtags and topics mentioned

l The main activities and themes of the campaign drove most of the social media conversations

l Users engaged in the campaign but did not necessarily engage with climate change and sustainability issues.

l Lack of correlation between Durex campaign and climate change engagement

Page 48: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

BehaviourAnalysis• Basedontheassumptionthatusersindifferentbehaviouralstagescommunicatedifferently(differentemotions,directives,etc.)

Pajarito@lindopajarito .2h

Ourbuildingneeds40%ofallenergyconsumedinSwitzerland!L

DJPajarito@DJPajaritoGenial .12hI'msoproudwhenIremembertosaveenergyandIknowhoweversmallit'shelping.

Desirability:Negativesentiment(expressingpersonalfrustration-anger/sadness)

Buzz:Positivesentiment(happiness/joy).I/we+presenttense

HotelPajarito@HotelPajarito .18hJoinustodaytodaytoswitchofalightforEH!J

Invitation:Positivesentiment(happy)+useofvocativesYou are an organisation, not an individual!

Page 49: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

What’snext?

• AnumberoftoolshavealreadybeenbroughttogetheraroundBrexitandotherdebates

• Moretoolsstillbeingdeveloped• ToolsavailablethroughtheSoBigData VREandGATECloud

• Focusonanalysisratherthanpredictingresults• 2017UKelections:imminentresultscomingthisweekonpartymanifestos!

• Othercurrentworkanalysing hatespeecharoundBrexit,andcorrelatingsocialmediaandnewsmediadiscussions

Page 50: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

WhatareLabour talkingabout?

1. Economy2. Business3. Health4. Employment5. Schools

Page 51: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

WhatareLibDemstalkingabout?

1. Economy2. Health3. Schools4. Business5. Europe

Page 52: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

WhatarePlaidCymru talkingabout?

1. Wales2. UKeconomy3. Business4. Environment5. Health

Page 53: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

\whatareConservativestalkingabout?

1. Economy2. Health3. Business4. Schools5. Europe

Page 54: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

Linksformoreinfo

• GATEathttp://gate.ac.uk• GateCloud athttps://cloud.gate.ac.uk• ComeonaGATEtrainingcourseinJune!• BrexitVisualisations athttp://demos.gate.ac.uk/sobigdata/brexit/

• BrexitstudyblogpostfromNESTAathttp://www.nesta.org.uk/blog/network-analysis-top-eu-referendum-tweeters

• BrexitstudyblogpostsfromSheffieldathttp://gate4ugc.blogspot.co.uk/search/label/Brexit

• UKelectionsmonitorathttp://gate.ac.uk/projects/pft

Page 55: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

Publications• DianaMaynard,IanRoberts,MarkA.Greenwood,DominicRoutandKalinaBontcheva.AFrameworkforReal-timeSemanticSocialMediaAnalysis.WebSemantics:Science,ServicesandAgentsontheWorldWideWeb,2017.

• K.Bontcheva,L.Derczynski,A.Funk,M.A.Greenwood,D.Maynard,N.Aswani.TwitIE:AnOpen-SourceInformationExtractionPipelineforMicroblogText.ProceedingsoftheInternationalConferenceonRecentAdvancesinNaturalLanguageProcessing(RANLP2013).

• D.MaynardandK.Bontcheva.Understandingclimatechangetweets:anopensourcetoolkitforsocialmediaanalysis.InProc.ofEnviroInfo 2015,Copenhagen,Sep.2015

• DianaMaynard,Kalina Bontcheva,IsabelleAugenstein.NaturalLanguageProcessingfortheSemanticWeb.MorganandClaypool,December2016.ISBN:9781627059091(containsachapteronsocialmediaanalysis)

• Available(andmore)athttps://gate.ac.uk/gate/doc/papers.html

Page 56: An open source GATE toolkit for social media analysis · An open source GATE toolkit for social media analysis ... Semantic Search Tweets are linked to NUTS regions based on place

Acknowledgements

Thisworksupportedby:• the European Union/EU under the Information and Communication

Technologies (ICT) theme of the 7th Framework and H2020 Programmes for R&D

• KNOWMAK (726992)https://gate.ac.uk/projects/knowmak/• DecarboNet (610829) http://www.decarbonet.eu● Pheme (611233) http://www.pheme.eu● SoBigData (654024) http://www.sobigdata.eu● COMRADES (687847) http://www.comrades-project.eu● OpenMinted (654021)http://openminted.eu● Kconnect (644753) http://www.kconnect.eu/

● Nesta http://nesta.org.uk


Related Documents