SlideShare une entreprise Scribd logo
1  sur  33
Télécharger pour lire hors ligne
1	
  
Last Updated: Jan. 2014
VP	
  Pla&orm	
  Evangelism	
  
@cobiacomm	
  on	
  Twi6er	
  
h6p://blog.cobia.net/cobiacomm/	
  
Chris	
  Haddad	
  
Tracking	
  a	
  Soccer	
  
Game	
  with	
  Big	
  Data	
  
Big	
  Data	
  Improves	
  Team	
  Performance	
  
๏  Sports	
  Teams	
  
๏  Your	
  Business	
  Team	
  3	
  
Improvement	
  Requires	
  A	
  Feedback	
  Loop	
  
4	
  
Internet	
  of	
  Things	
  (IoT)	
  	
  
Bridges	
  Physical	
  and	
  
Virtual	
  Worlds	
  
๏  Sensors,	
  actuators	
  everywhere	
  
๏  Internet	
  connecOvity	
  
Improvement	
  =	
  IoT,	
  Apps,	
  and	
  APIs	
  
๏  VisualizaOon	
  Apps	
  
๏  Control	
  APIs	
  
DEBS	
  Challenge	
  
•  Bridge	
  game	
  play	
  to	
  Internet	
  of	
  Things	
  
•  Sensors	
  in	
  shoes,	
  ball,	
  goalie	
  hands	
  
•  Analyze	
  Soccer	
  Game	
  
•  SpaOal	
  and	
  Temporal	
  Processing	
  
•  Visualize	
  Game	
  Play	
  
•  AcOvity	
  Heat	
  maps	
  
•  Recommend	
  Performance	
  
Improvements	
  
http://srinathsview.blogspot.com/2013/05/solving-debs-2013-grand-challenge-with.html
Bridging	
  Game	
  Play	
  to	
  IoT	
  
7	
  
Temporal	
  Tracking	
  
SpaOal	
  Tracking	
  
•  Each	
  event	
  includes	
  the	
  
locaOon	
  (x,y,z),	
  Ome	
  stamp,	
  
velocity	
  and	
  acceleraOon	
  
•  Throughput	
  15,000	
  events	
  per	
  
second	
  
Analyze	
  Game	
  
8	
  
๏  BALL	
  POSSESSION	
  
STATE	
  DIAGRAM	
  
๏  SHOT	
  ON	
  GOAL	
  
STATE	
  DIAGRAM	
  
Analyze	
  Game	
  
9	
  
๏  RUNNING	
  LOCATION	
  STATES	
  
10	
  
SoluOon	
  Architecture	
  
๏  Capture	
  millions	
  of	
  events	
  with	
  
Common	
  Events	
  Collector	
  	
  
๏  Derive	
  real-­‐Ome	
  decisions	
  with	
  
temporal	
  processing	
  	
  	
  
๏  Further	
  opOmize	
  
recommendaOons	
  with	
  spaOal	
  
Map-­‐Reduce	
  processing	
  analyOcs	
  
๏  View	
  feedback	
  dashboards	
  
Batch	
  AnalyOc	
  FoundaOon	
  
11	
  
Business	
  AcOvity	
  Monitor	
  
Realizing	
  Real-­‐Ome	
  AnalyOcs	
  
๏  Processing	
  Data	
  on	
  the	
  fly,	
  while	
  
storing	
  a	
  minimal	
  amount	
  of	
  
informaOon	
  and	
  responding	
  fast	
  
(from	
  <1	
  ms	
  to	
  few	
  seconds)	
  
๏  Idea	
  of	
  Event	
  streams	
  	
  
๏  A	
  series	
  of	
  events	
  in	
  Ome	
  	
  
๏  Enabling	
  technologies	
  	
  
๏  Stream	
  Processing	
  (Storm)	
  
๏  Complex	
  Event	
  processing	
  	
  
(Siddhi)	
  
Complex	
  Event	
  Processing	
  
Complex	
  Event	
  
Processing	
  
Stream	
  Processing	
  
• SQL	
  like	
  language	
  
• Supports	
  powerful	
  
temporal	
  operators	
  
(e.g.	
  windows,	
  event	
  
paberns)	
  	
  
• Focus	
  on	
  speed	
  
• Harder	
  to	
  scale	
  	
  
• e.g.	
  WSO2	
  CEP,	
  
Streambase,	
  Esper	
  	
  
	
  
• Operators	
  connected	
  
in	
  a	
  network,	
  but	
  you	
  
have	
  to	
  write	
  the	
  logic	
  
• Distributed	
  by	
  design	
  
• Focus	
  on	
  reliability	
  (do	
  
not	
  loose	
  messages),	
  
has	
  transacOons	
  
• e.g.	
  Storm,	
  S4	
  
	
  
Complex	
  Event	
  Processing	
  Operators	
  
๏  Filters	
  or	
  transformaOons	
  (process	
  a	
  single	
  event)	
  
๏  from Ball[v>10] select .. insert into ..
๏  Windows	
  +	
  aggregaOon	
  (track	
  window	
  of	
  events:	
  Ome,	
  length)	
  
๏  from Ball#window.time(30s) select avg(v) ..
๏  Joins	
  (join	
  two	
  event	
  streams	
  to	
  one)	
  
๏  from Ball#window.time(30s) as b join Players as p on p.v
< b.v
๏  Paberns	
  (state	
  machine	
  implementaOon)	
  
๏  from Ball[v>10], Ball[v<10]*,Ball[v>10] select ..
๏  Event	
  tables	
  (map	
  a	
  database	
  as	
  an	
  event	
  stream)	
  
๏  Define table HitV (v double) using .. db info ..
Usecase	
  1:	
  Running	
  Analysis	
  
๏  Detect	
  when	
  speed	
  crosses	
  threshold	
  limits	
  	
  
define partition player by Players .id;
from s = Players [v <= 1 or v > 11] ,
t = Players [v > 1 and v <= 11]+ ,
e = Players [v <= 1 or v > 11]
select s.ts as tsStart , e.ts as tsStop ,s.id as
playerId ,
‘‘trot" as intensity , t [0].v as
instantSpeed ,
(e.ts - s.ts )/1000000000 as unitPeriod
insert into RunningStats partition by player;
Usecase	
  2:	
  Ball	
  possession	
  
๏  Ball	
  possession	
  
๏  Defined	
  as	
  possessing	
  the	
  ball	
  from	
  Ome	
  you	
  hit	
  it	
  unOl	
  someone	
  else	
  hit	
  it	
  or	
  ball	
  
leaves	
  the	
  ground)	
  	
  
Usecase	
  3:	
  Heatmap	
  of	
  AcOvity	
  	
  
๏  Show	
  where	
  acOons	
  happened	
  (via	
  cells	
  defined	
  by	
  a	
  grid	
  of	
  
64X100	
  etc.),	
  need	
  updates	
  once	
  every	
  second	
  
๏  Can	
  solved	
  via	
  cell	
  change	
  boundaries,	
  but	
  	
  does	
  not	
  work	
  if	
  one	
  player	
  stays	
  more	
  than	
  
1	
  sec	
  in	
  the	
  same	
  cell.	
  So	
  need	
  to	
  join	
  with	
  a	
  Omer.	
  	
  
Usecase	
  4:	
  Detect	
  kicks	
  on	
  goal	
  	
  
๏  Main	
  Idea:	
  Detect	
  kicks	
  on	
  
the	
  ball,	
  calculate	
  direcOon	
  
aker	
  1m,	
  and	
  keep	
  giving	
  
updates	
  as	
  long	
  as	
  it	
  is	
  in	
  
right	
  direcOon	
  
Results	
  for	
  DEBS	
  Scenarios	
  
Big	
  Data	
  and	
  IoT	
  Changes	
  the	
  Game	
  
๏  Real-­‐Ome	
  Status	
  Dashboard	
  	
  
๏  Player	
  game	
  play	
  
๏  Momentum	
  indicators	
  
๏  PredicOons	
  about	
  the	
  next	
  move	
  	
  
๏  Improvement	
  Dashboard	
  
๏  Study	
  of	
  game	
  and	
  players	
  effecOveness	
  	
  
๏  Monitor	
  player	
  health	
  and	
  body	
  funcOons	
  	
  
Success	
  Target	
  
Photo by John Trainoron Flickr http://www.flickr.com/photos/
trainor/2902023575/, Licensed under CC
SituaOonal	
  Context:	
  Traffic	
  Example	
  
{incidents: [	

{impacting: false,	

eventCode: 0,	

iconURL: "http://...",	

lat: 38.743999,	

shortDesc: "Exit ramp closed on I 95...",	

type: 1,	

severity: 0,	

fullDesc: "In NEWINGTON exit ramp
closed on I-95 ...",	

startTime: "2010-02-21T00:14:07",	

lng: -77.188004,	

id: "368598263",	

endTime: "2010-02-27T05:04:19"	

},	

Image source: http://www.directoryofnewyorkcity.com/blog/2009/05/how-to-find-parking-in-new-york-city/	

Real-time traffic map: http://www.mapquestapi.com/traffic/
Accelerate	
  
interac6ons	
  
inside	
  and	
  
outside	
  the	
  
organiza6on	
  
	
  
Reduce	
  
interac6on	
  
fric6on	
  and	
  cost	
  
	
  
Increase	
  
engagement	
  and	
  
enhance	
  
produc6vity	
  	
  	
  	
  
	
  
Sense	
  	
  
business	
  ac6vity	
  
and	
  	
  
automa6cally	
  
adapt	
  
	
  
Become	
  a	
  More	
  Connected	
  Business	
  
http://wso2.com/landing/enabling-the-connected-business
Connected	
  Business	
  	
  
Reference	
  Architecture	
  
Conceptual	
  Architecture	
  
CEP	
  High	
  Availability	
  
Siddhi	
  Storm	
  Bolt	
  (next	
  Major	
  Release)	
  
๏  We	
  have	
  wriben	
  a	
  Siddhi	
  bolt	
  that	
  would	
  let	
  users	
  run	
  
distributed	
  Siddhi	
  Queries	
  using	
  Storm	
  
SiddhiBolt siddhiBolt1 = new SiddhiBolt( .. siddhi queries .. );
SiddhiBolt siddhiBolt2 = new SiddhiBolt( .. siddhi queries .. );
TopologyBuilder builder = new TopologyBuilder();
builder.setSpout("source", new PlayStream(), 1);
builder.setBolt("node1", siddhiBolt1, 1)
.shuffleGrouping("source", "PlayStream1");
..
builder.setBolt("LeafEacho", new EchoBolt(), 1)
.shuffleGrouping("node1", "LongAdvanceStream");
..
cluster.submitTopology("word-count", conf, builder.createTopology());
31	
  
Contact	
  us	
  !	
  
33	
  
About	
  the	
  Presenter	
  
๏  Chris	
  Haddad	
  
๏  VP	
  Plaoorm	
  Evangelism	
  
๏  Learn	
  more	
  about	
  me	
  
๏  www.linkedin.com/in/cobiacomm/	
  
๏  Follow	
  me	
  
๏  @cobiacomm	
  on	
  Twiber	
  
๏  hbp://blog.cobia.net/cobiacomm	
  
๏  On	
  Google+	
  too	
  

Contenu connexe

Similaire à Structure Data 2014: TRACKING A SOCCER GAME WITH BIG DATA, Chris Haddad

Tracking a soccer game with big data
Tracking a soccer game with big dataTracking a soccer game with big data
Tracking a soccer game with big data
WSO2
 
Big Data in the Real World. Real-time Football Analytics
Big Data in the Real World. Real-time Football AnalyticsBig Data in the Real World. Real-time Football Analytics
Big Data in the Real World. Real-time Football Analytics
WSO2
 
Reactive & Realtime Web Applications with TurboGears2
Reactive & Realtime Web Applications with TurboGears2Reactive & Realtime Web Applications with TurboGears2
Reactive & Realtime Web Applications with TurboGears2
Alessandro Molina
 
Participatory Project
Participatory ProjectParticipatory Project
Participatory Project
#Xiao Zhe#
 
Multiplayer Networking Game
Multiplayer Networking GameMultiplayer Networking Game
Multiplayer Networking Game
Tanmay Krishna
 
Live Streaming & Server Sent Events
Live Streaming & Server Sent EventsLive Streaming & Server Sent Events
Live Streaming & Server Sent Events
tkramar
 

Similaire à Structure Data 2014: TRACKING A SOCCER GAME WITH BIG DATA, Chris Haddad (20)

Tracking a soccer game with BigData
Tracking a soccer game with BigDataTracking a soccer game with BigData
Tracking a soccer game with BigData
 
Tracking a soccer game with Big Data
Tracking a soccer game with Big DataTracking a soccer game with Big Data
Tracking a soccer game with Big Data
 
Tracking a soccer game with big data
Tracking a soccer game with big dataTracking a soccer game with big data
Tracking a soccer game with big data
 
Big Data in the Real World. Real-time Football Analytics
Big Data in the Real World. Real-time Football AnalyticsBig Data in the Real World. Real-time Football Analytics
Big Data in the Real World. Real-time Football Analytics
 
Analyzing a Soccer Game with WSO2 CEP
Analyzing a Soccer Game with WSO2 CEPAnalyzing a Soccer Game with WSO2 CEP
Analyzing a Soccer Game with WSO2 CEP
 
Measuring Continuity
Measuring ContinuityMeasuring Continuity
Measuring Continuity
 
Create online games with node.js and socket.io
Create online games with node.js and socket.ioCreate online games with node.js and socket.io
Create online games with node.js and socket.io
 
Introduction to WSO2 Data Analytics Platform
Introduction to  WSO2 Data Analytics PlatformIntroduction to  WSO2 Data Analytics Platform
Introduction to WSO2 Data Analytics Platform
 
Why you should be using structured logs
Why you should be using structured logsWhy you should be using structured logs
Why you should be using structured logs
 
WSO2 Complex Event Processor
WSO2 Complex Event ProcessorWSO2 Complex Event Processor
WSO2 Complex Event Processor
 
Modern Data Stack for Game Analytics / Dmitry Anoshin (Microsoft Gaming, The ...
Modern Data Stack for Game Analytics / Dmitry Anoshin (Microsoft Gaming, The ...Modern Data Stack for Game Analytics / Dmitry Anoshin (Microsoft Gaming, The ...
Modern Data Stack for Game Analytics / Dmitry Anoshin (Microsoft Gaming, The ...
 
Capstone Project Final Presentation
Capstone Project Final PresentationCapstone Project Final Presentation
Capstone Project Final Presentation
 
How Do ‘Things’ Talk? - An Overview of the IoT/M2M Protocol Landscape at IoT ...
How Do ‘Things’ Talk? - An Overview of the IoT/M2M Protocol Landscape at IoT ...How Do ‘Things’ Talk? - An Overview of the IoT/M2M Protocol Landscape at IoT ...
How Do ‘Things’ Talk? - An Overview of the IoT/M2M Protocol Landscape at IoT ...
 
Clojure@Nuday
Clojure@NudayClojure@Nuday
Clojure@Nuday
 
Reactive & Realtime Web Applications with TurboGears2
Reactive & Realtime Web Applications with TurboGears2Reactive & Realtime Web Applications with TurboGears2
Reactive & Realtime Web Applications with TurboGears2
 
Cloud Dataflow - A Unified Model for Batch and Streaming Data Processing
Cloud Dataflow - A Unified Model for Batch and Streaming Data ProcessingCloud Dataflow - A Unified Model for Batch and Streaming Data Processing
Cloud Dataflow - A Unified Model for Batch and Streaming Data Processing
 
View, Act, and React: Shaping Business Activity with Analytics, BigData Queri...
View, Act, and React: Shaping Business Activity with Analytics, BigData Queri...View, Act, and React: Shaping Business Activity with Analytics, BigData Queri...
View, Act, and React: Shaping Business Activity with Analytics, BigData Queri...
 
Participatory Project
Participatory ProjectParticipatory Project
Participatory Project
 
Multiplayer Networking Game
Multiplayer Networking GameMultiplayer Networking Game
Multiplayer Networking Game
 
Live Streaming & Server Sent Events
Live Streaming & Server Sent EventsLive Streaming & Server Sent Events
Live Streaming & Server Sent Events
 

Plus de Gigaom

Plus de Gigaom (20)

Structure 2014 - The strategic value of the cloud - Joe Weinman
Structure 2014 - The strategic value of the cloud - Joe WeinmanStructure 2014 - The strategic value of the cloud - Joe Weinman
Structure 2014 - The strategic value of the cloud - Joe Weinman
 
Structure 2014 - The right and wrong way to scale - Rackspace
Structure 2014 - The right and wrong way to scale - RackspaceStructure 2014 - The right and wrong way to scale - Rackspace
Structure 2014 - The right and wrong way to scale - Rackspace
 
Structure 2014 - The future of cloud computing survey results
Structure 2014 - The future of cloud computing survey resultsStructure 2014 - The future of cloud computing survey results
Structure 2014 - The future of cloud computing survey results
 
Structure 2014 - Launchpad Competition
Structure 2014 - Launchpad CompetitionStructure 2014 - Launchpad Competition
Structure 2014 - Launchpad Competition
 
Structure 2014 - Disrupting the data center - Intel sponsor workshop
Structure 2014 - Disrupting the data center - Intel sponsor workshopStructure 2014 - Disrupting the data center - Intel sponsor workshop
Structure 2014 - Disrupting the data center - Intel sponsor workshop
 
Structure 2014 - Cloud trends - Battery
Structure 2014 - Cloud trends - BatteryStructure 2014 - Cloud trends - Battery
Structure 2014 - Cloud trends - Battery
 
Structure Data 2014: HOW MICRODATA CAN SAY A LOT ABOUT MACROECONOMICS, David ...
Structure Data 2014: HOW MICRODATA CAN SAY A LOT ABOUT MACROECONOMICS, David ...Structure Data 2014: HOW MICRODATA CAN SAY A LOT ABOUT MACROECONOMICS, David ...
Structure Data 2014: HOW MICRODATA CAN SAY A LOT ABOUT MACROECONOMICS, David ...
 
Structure Data 2014: QLIK SPONSOR WORKSHOP: ANALYTICS THE WAY NATURE INTENDED...
Structure Data 2014: QLIK SPONSOR WORKSHOP: ANALYTICS THE WAY NATURE INTENDED...Structure Data 2014: QLIK SPONSOR WORKSHOP: ANALYTICS THE WAY NATURE INTENDED...
Structure Data 2014: QLIK SPONSOR WORKSHOP: ANALYTICS THE WAY NATURE INTENDED...
 
Structure Data 2014: FIVE MYTHS ABOUT BIG DATA, Amit Bendov
Structure Data 2014: FIVE MYTHS ABOUT BIG DATA, Amit BendovStructure Data 2014: FIVE MYTHS ABOUT BIG DATA, Amit Bendov
Structure Data 2014: FIVE MYTHS ABOUT BIG DATA, Amit Bendov
 
Structure Data 2014: AMID BILLIONS OF METRICS, YOUR SOFTWARE IS TRYING TO TEL...
Structure Data 2014: AMID BILLIONS OF METRICS, YOUR SOFTWARE IS TRYING TO TEL...Structure Data 2014: AMID BILLIONS OF METRICS, YOUR SOFTWARE IS TRYING TO TEL...
Structure Data 2014: AMID BILLIONS OF METRICS, YOUR SOFTWARE IS TRYING TO TEL...
 
Structure Data 2014: SISENSE SPONSOR WORKSHOP: ON BEER, CHIPS AND DATA,
Structure Data 2014: SISENSE SPONSOR WORKSHOP: ON BEER, CHIPS AND DATA, Structure Data 2014: SISENSE SPONSOR WORKSHOP: ON BEER, CHIPS AND DATA,
Structure Data 2014: SISENSE SPONSOR WORKSHOP: ON BEER, CHIPS AND DATA,
 
Structure Data 2014: INVERTING 80/20: BEYOND BESPOKE BIG DATA, Ari Gesher
Structure Data 2014: INVERTING 80/20: BEYOND BESPOKE BIG DATA, Ari GesherStructure Data 2014: INVERTING 80/20: BEYOND BESPOKE BIG DATA, Ari Gesher
Structure Data 2014: INVERTING 80/20: BEYOND BESPOKE BIG DATA, Ari Gesher
 
Structure Data 2014: TECH AGAINST HUMAN TRAFFICKING AND ILLICIT NETWORKS, Jus...
Structure Data 2014: TECH AGAINST HUMAN TRAFFICKING AND ILLICIT NETWORKS, Jus...Structure Data 2014: TECH AGAINST HUMAN TRAFFICKING AND ILLICIT NETWORKS, Jus...
Structure Data 2014: TECH AGAINST HUMAN TRAFFICKING AND ILLICIT NETWORKS, Jus...
 
Structure Data 2014: DATA DRIVEN DESIGN AT FORMULA ONE SPEED, Geoff McGrath
Structure Data 2014: DATA DRIVEN DESIGN AT FORMULA ONE SPEED, Geoff McGrathStructure Data 2014: DATA DRIVEN DESIGN AT FORMULA ONE SPEED, Geoff McGrath
Structure Data 2014: DATA DRIVEN DESIGN AT FORMULA ONE SPEED, Geoff McGrath
 
Structure Data 2014: IS VIDEO BIG DATA?, Steve Russell
Structure Data 2014: IS VIDEO BIG DATA?, Steve RussellStructure Data 2014: IS VIDEO BIG DATA?, Steve Russell
Structure Data 2014: IS VIDEO BIG DATA?, Steve Russell
 
Structure Data 2014: BIG DATA ANALYTICS RE-INVENTED, Ryan Waite
Structure Data 2014: BIG DATA ANALYTICS RE-INVENTED, Ryan WaiteStructure Data 2014: BIG DATA ANALYTICS RE-INVENTED, Ryan Waite
Structure Data 2014: BIG DATA ANALYTICS RE-INVENTED, Ryan Waite
 
How Data is Remaking E-commerce - from Roadmap 2013
How Data is Remaking E-commerce - from Roadmap 2013How Data is Remaking E-commerce - from Roadmap 2013
How Data is Remaking E-commerce - from Roadmap 2013
 
25 Favorite Experiences in Tech - from Roadmap 2013
25 Favorite Experiences in Tech - from Roadmap 201325 Favorite Experiences in Tech - from Roadmap 2013
25 Favorite Experiences in Tech - from Roadmap 2013
 
How Moore’s Law is Influencing Design - from Roadmap 2013
How Moore’s Law is Influencing Design - from Roadmap 2013How Moore’s Law is Influencing Design - from Roadmap 2013
How Moore’s Law is Influencing Design - from Roadmap 2013
 
Building the Visual Language of the Web - from Roadmap 2013
Building the Visual Language of the Web - from Roadmap 2013Building the Visual Language of the Web - from Roadmap 2013
Building the Visual Language of the Web - from Roadmap 2013
 

Dernier

Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
WSO2
 

Dernier (20)

Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Architecting Cloud Native Applications
Architecting Cloud Native ApplicationsArchitecting Cloud Native Applications
Architecting Cloud Native Applications
 

Structure Data 2014: TRACKING A SOCCER GAME WITH BIG DATA, Chris Haddad

  • 2. Last Updated: Jan. 2014 VP  Pla&orm  Evangelism   @cobiacomm  on  Twi6er   h6p://blog.cobia.net/cobiacomm/   Chris  Haddad   Tracking  a  Soccer   Game  with  Big  Data  
  • 3. Big  Data  Improves  Team  Performance   ๏  Sports  Teams   ๏  Your  Business  Team  3  
  • 4. Improvement  Requires  A  Feedback  Loop   4  
  • 5. Internet  of  Things  (IoT)     Bridges  Physical  and   Virtual  Worlds   ๏  Sensors,  actuators  everywhere   ๏  Internet  connecOvity   Improvement  =  IoT,  Apps,  and  APIs   ๏  VisualizaOon  Apps   ๏  Control  APIs  
  • 6. DEBS  Challenge   •  Bridge  game  play  to  Internet  of  Things   •  Sensors  in  shoes,  ball,  goalie  hands   •  Analyze  Soccer  Game   •  SpaOal  and  Temporal  Processing   •  Visualize  Game  Play   •  AcOvity  Heat  maps   •  Recommend  Performance   Improvements   http://srinathsview.blogspot.com/2013/05/solving-debs-2013-grand-challenge-with.html
  • 7. Bridging  Game  Play  to  IoT   7   Temporal  Tracking   SpaOal  Tracking   •  Each  event  includes  the   locaOon  (x,y,z),  Ome  stamp,   velocity  and  acceleraOon   •  Throughput  15,000  events  per   second  
  • 8. Analyze  Game   8   ๏  BALL  POSSESSION   STATE  DIAGRAM   ๏  SHOT  ON  GOAL   STATE  DIAGRAM  
  • 9. Analyze  Game   9   ๏  RUNNING  LOCATION  STATES  
  • 10. 10   SoluOon  Architecture   ๏  Capture  millions  of  events  with   Common  Events  Collector     ๏  Derive  real-­‐Ome  decisions  with   temporal  processing       ๏  Further  opOmize   recommendaOons  with  spaOal   Map-­‐Reduce  processing  analyOcs   ๏  View  feedback  dashboards  
  • 13. Realizing  Real-­‐Ome  AnalyOcs   ๏  Processing  Data  on  the  fly,  while   storing  a  minimal  amount  of   informaOon  and  responding  fast   (from  <1  ms  to  few  seconds)   ๏  Idea  of  Event  streams     ๏  A  series  of  events  in  Ome     ๏  Enabling  technologies     ๏  Stream  Processing  (Storm)   ๏  Complex  Event  processing     (Siddhi)  
  • 15.
  • 16. Complex  Event   Processing   Stream  Processing   • SQL  like  language   • Supports  powerful   temporal  operators   (e.g.  windows,  event   paberns)     • Focus  on  speed   • Harder  to  scale     • e.g.  WSO2  CEP,   Streambase,  Esper       • Operators  connected   in  a  network,  but  you   have  to  write  the  logic   • Distributed  by  design   • Focus  on  reliability  (do   not  loose  messages),   has  transacOons   • e.g.  Storm,  S4    
  • 17. Complex  Event  Processing  Operators   ๏  Filters  or  transformaOons  (process  a  single  event)   ๏  from Ball[v>10] select .. insert into .. ๏  Windows  +  aggregaOon  (track  window  of  events:  Ome,  length)   ๏  from Ball#window.time(30s) select avg(v) .. ๏  Joins  (join  two  event  streams  to  one)   ๏  from Ball#window.time(30s) as b join Players as p on p.v < b.v ๏  Paberns  (state  machine  implementaOon)   ๏  from Ball[v>10], Ball[v<10]*,Ball[v>10] select .. ๏  Event  tables  (map  a  database  as  an  event  stream)   ๏  Define table HitV (v double) using .. db info ..
  • 18. Usecase  1:  Running  Analysis   ๏  Detect  when  speed  crosses  threshold  limits     define partition player by Players .id; from s = Players [v <= 1 or v > 11] , t = Players [v > 1 and v <= 11]+ , e = Players [v <= 1 or v > 11] select s.ts as tsStart , e.ts as tsStop ,s.id as playerId , ‘‘trot" as intensity , t [0].v as instantSpeed , (e.ts - s.ts )/1000000000 as unitPeriod insert into RunningStats partition by player;
  • 19. Usecase  2:  Ball  possession   ๏  Ball  possession   ๏  Defined  as  possessing  the  ball  from  Ome  you  hit  it  unOl  someone  else  hit  it  or  ball   leaves  the  ground)    
  • 20. Usecase  3:  Heatmap  of  AcOvity     ๏  Show  where  acOons  happened  (via  cells  defined  by  a  grid  of   64X100  etc.),  need  updates  once  every  second   ๏  Can  solved  via  cell  change  boundaries,  but    does  not  work  if  one  player  stays  more  than   1  sec  in  the  same  cell.  So  need  to  join  with  a  Omer.    
  • 21. Usecase  4:  Detect  kicks  on  goal     ๏  Main  Idea:  Detect  kicks  on   the  ball,  calculate  direcOon   aker  1m,  and  keep  giving   updates  as  long  as  it  is  in   right  direcOon  
  • 22. Results  for  DEBS  Scenarios  
  • 23. Big  Data  and  IoT  Changes  the  Game   ๏  Real-­‐Ome  Status  Dashboard     ๏  Player  game  play   ๏  Momentum  indicators   ๏  PredicOons  about  the  next  move     ๏  Improvement  Dashboard   ๏  Study  of  game  and  players  effecOveness     ๏  Monitor  player  health  and  body  funcOons    
  • 24. Success  Target   Photo by John Trainoron Flickr http://www.flickr.com/photos/ trainor/2902023575/, Licensed under CC
  • 25. SituaOonal  Context:  Traffic  Example   {incidents: [ {impacting: false, eventCode: 0, iconURL: "http://...", lat: 38.743999, shortDesc: "Exit ramp closed on I 95...", type: 1, severity: 0, fullDesc: "In NEWINGTON exit ramp closed on I-95 ...", startTime: "2010-02-21T00:14:07", lng: -77.188004, id: "368598263", endTime: "2010-02-27T05:04:19" }, Image source: http://www.directoryofnewyorkcity.com/blog/2009/05/how-to-find-parking-in-new-york-city/ Real-time traffic map: http://www.mapquestapi.com/traffic/
  • 26. Accelerate   interac6ons   inside  and   outside  the   organiza6on     Reduce   interac6on   fric6on  and  cost     Increase   engagement  and   enhance   produc6vity           Sense     business  ac6vity   and     automa6cally   adapt     Become  a  More  Connected  Business   http://wso2.com/landing/enabling-the-connected-business
  • 27. Connected  Business     Reference  Architecture  
  • 30. Siddhi  Storm  Bolt  (next  Major  Release)   ๏  We  have  wriben  a  Siddhi  bolt  that  would  let  users  run   distributed  Siddhi  Queries  using  Storm   SiddhiBolt siddhiBolt1 = new SiddhiBolt( .. siddhi queries .. ); SiddhiBolt siddhiBolt2 = new SiddhiBolt( .. siddhi queries .. ); TopologyBuilder builder = new TopologyBuilder(); builder.setSpout("source", new PlayStream(), 1); builder.setBolt("node1", siddhiBolt1, 1) .shuffleGrouping("source", "PlayStream1"); .. builder.setBolt("LeafEacho", new EchoBolt(), 1) .shuffleGrouping("node1", "LongAdvanceStream"); .. cluster.submitTopology("word-count", conf, builder.createTopology());
  • 31. 31  
  • 33. 33   About  the  Presenter   ๏  Chris  Haddad   ๏  VP  Plaoorm  Evangelism   ๏  Learn  more  about  me   ๏  www.linkedin.com/in/cobiacomm/   ๏  Follow  me   ๏  @cobiacomm  on  Twiber   ๏  hbp://blog.cobia.net/cobiacomm   ๏  On  Google+  too