Role of Analytics in Digital Business

40
Driving Insights for Your Digital Business With Analytics Srinath Perera (@srinath_perera) VP – Research, WSO2 Member, Apache Foundation

Transcript of Role of Analytics in Digital Business

Page 1: Role of Analytics in Digital Business

Driving Insights for Your Digital Business With Analytics

Srinath Perera (@srinath_perera)VP – Research, WSO2 Member, Apache Foundation

Page 2: Role of Analytics in Digital Business

Let’s do“Analytics”?

Page 3: Role of Analytics in Digital Business

Big Data Washing

• Collect anything that is easy to get

• Aggregate and Group • Find a complex but pretty

chart • Predict something, but does

not measure it’s quality • Claim you just got started!

Page 4: Role of Analytics in Digital Business

Uber• A company worth XX• A taxi company that does not have cars or drivers

A Taxi company

without cars or drivers

Page 5: Role of Analytics in Digital Business

Picture by Dan Ruscoe (CC) https://www.flickr.com/photos/druscoe/8031488298

Game Changers

Analytics & AI Social Media & Mobile Crowdsourcin

g

Page 6: Role of Analytics in Digital Business
Page 7: Role of Analytics in Digital Business

New Digital inspired Products and Revenue Streams

• New way to do business (e.g. Uber, Amazon Go)

• Product as a Service (e.g. IoT Jack hammer, Light as a service)

• Progressive Insurance Gadget • Sell insights ( Telcos knows

where people are, credit card companies know what people buy and their demographics, navigation apps know traffic)

Page 8: Role of Analytics in Digital Business

Get Close to your Customers

• Use analytics to optimize the experience

• Predict issues and proactively handle them ( e.g. reschedule automatically when flight has missed)

• Predict churn and act • Track the brand and

manage it • Target your marketing

Page 9: Role of Analytics in Digital Business

Optimizations• Reduce Fraud • Logistics, day to day

operations • Analytics for hiring and

Performance appraisal• Predictive maintenance • Sales analytics, demand

prediction • Security and surveillance

Page 10: Role of Analytics in Digital Business

Making this real

Page 11: Role of Analytics in Digital Business

Conceptual Architecture

• APIs play a key role in data collection

• Need to respond to events as fast as possible

• Incremental Analysis is key

Page 12: Role of Analytics in Digital Business
Page 13: Role of Analytics in Digital Business

Only DAS, which has everything

Focus is on CEP ( siddhi),

our core differentiator

and 80% streaming and 20% batch use

cases

Integrating with Apache

Spark as oppose to

bundling it in

Page 14: Role of Analytics in Digital Business

Data Collection Points

1. APIs2. Instrumentations built

into products being used (e.g. SNMP, JMX)

3. Sensors and custom instrumentations

4. Log analysis 5. Social networks and

other feeds

Page 15: Role of Analytics in Digital Business

Data Collection API One Sensor API to publish

events - REST, Thrift, Java, JMS,

Kafka- Java clients, java script

clients* First you define streams

(think it as a infinite table in SQL DB)

Then publish events via Sensor API

Page 16: Role of Analytics in Digital Business

“Publish once, analyze anyway you

like”

Page 17: Role of Analytics in Digital Business

KPIs and their Role• KPIs (Key Performance Indicators)

are numbers that can give you an idea about performance of something – E.g. Countries have them ( GDP, Per

Capita Income, HDI index etc) • Examples

– Company Revenue – Lifetime value of a customer – Revenue per Square foot ( in retail

industry)• Idea is to define them and monitor

them. But defining them is hard work!!

• Often one indicator tells half the story, and you need several that cover different angles

Page 18: Role of Analytics in Digital Business

insert overwrite table BusSpeedselect hour, average(v) as avgV, busID from BusStream group by busID, getHour(ts);

Batch Analytics

1. For simple analytics, you can write Spark SQL (SQL-like)

2. They operates on top of data streams we published

3. Run as MapReduce jobs in Apache Spark

Page 19: Role of Analytics in Digital Business

Picture by Dan Ruscoe (CC) https://www.flickr.com/photos/druscoe/8031488298

Lets go Beyond Batch

Realtime Incremental Intelligent

Page 20: Role of Analytics in Digital Business

Incremental Analytics• Most “Digital business” use cases

are incremental ( data keeps coming, and results should be updated)

• Can do just with batch, but slow and lot of work

• DAS includes set of incremental operators, works just with streaming in most cases.

• Incremental ML is not included yet

Page 21: Role of Analytics in Digital Business

Real-time: Value of some Insights degrade Fast!

1. Stock Markets 2. Fraud3. Surveillance4. Patient Monitoring 5. Traffic

Page 22: Role of Analytics in Digital Business

Real Time Analytics with CEP

Page 23: Role of Analytics in Digital Business

Case Study: People Tracking via BLE

• Traffic Monitoring

• Smart retail • Airport

management

Track people through • BLE via triangulation• Higher level logic via

CEP

Page 24: Role of Analytics in Digital Business

Case Study: Realtime Soccer Analysis

Videohttps://www.youtube.com/watch?v=nRI6buQ0NOM

Page 25: Role of Analytics in Digital Business

Machine learning • Given examples build a

program that matches those examples

• We call that program a “model”

• Major improvements in last few years (e.g. deeplearning)

Can you “Write a program to drive a Car?”

Predictive Analytics

Page 26: Role of Analytics in Digital Business

Machine Learner Wizard is No More • Machine learner

provided wizard to build machine learning models

• Technology is changing too fast to keep building such a Wizard

• We are dropping that and instead support models built with other machine learning tools

Page 27: Role of Analytics in Digital Business

Using ML Models• We support models built

with following tools• PMML• Spark

• We recommend PySpark as default ( works with DAS)

• Models can be used them with both WSO2 CEP and ESB

• Tensorflow, H20 models are coming ( can do already by writing an extension)

Page 28: Role of Analytics in Digital Business

Case Study: Predict Wait Time in the Airport

• Predicting the time to go through airport using location data

• Real-time updates and events to passengers via the App

Page 29: Role of Analytics in Digital Business

Anomaly Detection• Find the Odd

one out• Anomalies by value

though “Clustering”

• Anomalies through time using Markov Chains

• Detect Problems are drill in to find details

• Available as a solution

White paper: Fraud Detection and Prevention: A Data Analytics ApproachImage "Reading" by Creative Stall (cc), Noun Project

Page 30: Role of Analytics in Digital Business

Communicate

Dashboard Alerts APIs

Page 31: Role of Analytics in Digital Business

What is a Dashboard?• Think a car dashboard • It give you idea about

overall system in a glance • It is boring when all is

good, and grab attention when something is wrong

• Support for drill down and find root cause

Page 32: Role of Analytics in Digital Business

• Starts with data in tabular format

• Map each column to dimension in your plot like X,Y, color, point size, etc

• Create a chart with few clicks

Powered by VizGrammer lib that uses Vaga undneath (see

https://github.com/wso2/VizGrammar)

Gadget Generation Wizard

Page 33: Role of Analytics in Digital Business

• When data cross security domains, there are security and management concerns

• APIs ( e.g. WSO2 APIM) solve these problems

Often data are accessed through the network

– Mobile Apps– Query

interfaces– Data

integration – As a

Subscription

Expose data through API

Page 34: Role of Analytics in Digital Business

Alerts• Done through CEP

queries• Notifications ( sent via

email, SMS, Pager etc.) • Goal is to give you peace

of mind ( not having to check all the time)

• They should be specific • They should be infrequent • They should have very low

false positives • Let users control

sensitivity

Page 35: Role of Analytics in Digital Business

Take the time to

Understand!!

Page 36: Role of Analytics in Digital Business

Solutions

Page 37: Role of Analytics in Digital Business

Cool Vendors Internet of

Things Analytics,

2016 Gartner report

Strong Performer in Forester 2016, Big

Data Streaming Analytics Report

Photo by Tim Evanson (CC) https://www.flickr.com/photos/timevanson/

6830726558

Page 38: Role of Analytics in Digital Business

Throttling and Anomaly

Detection ( by group of Telco companies)

Digital Marketing(Experian)

Financial Modeling(Large bank)

30+ CustomersIoT / Connected

Car

Online Retail(Large foodservice

distributor)

Page 39: Role of Analytics in Digital Business

Open SourceApache 2 license Publish data once,

analyze it anyway you like Rich, extensible,

SQL-like configuration

language100+ data connectorsSupport most ML

modelsIncremental Processing

Key Differentiators

Page 40: Role of Analytics in Digital Business

Thank You!Questions

?