SlideShare a Scribd company logo
1© Copyright 2016 Pivotal. All rights reserved.
Data Science-Powered Apps for
the Internet of Things
Chris Rawles1 and Jarrod Vawdrey2
1. Sr. Data Scientist in New York, New York
2. Sr. Data Scientist in Atlanta, Georgia
2© Copyright 2016 Pivotal. All rights reserved.
‘By the year 2025, $4 to $11 trillion of
economic value could be created through
the Internet of Things.’
Michael Chui
Partner, McKinsey & Company
3© Copyright 2016 Pivotal. All rights reserved.
IoT
Platform
Applications
Data Science
4© Copyright 2016 Pivotal. All rights reserved.
New business models
Improve efficiencies
Personalized experiences
_____________________
Trillions $ Economic Value
5© Copyright 2016 Pivotal. All rights reserved.
Today’s Speaker
Chris Rawles
Senior Data Scientist
6© Copyright 2016 Pivotal. All rights reserved.
Today’s talk
1.  A real-time data science app
A.  The app: a live demonstration
B.  How can a data scientist build a data science application?
C.  Revisiting the app
2.  Generalizing the framework: Solving new data science
challenges
A.  Internet of Things – Creating a smart app to prevent oil spill disasters
B.  Financial data - How can retail banks influence their cardholders’
behavior?
7© Copyright 2016 Pivotal. All rights reserved.
Today’s talk
1.  A real-time data science app
A.  The app: a live demonstration
B.  How can a data scientist build a data science application?
C.  Revisiting the app
2.  Generalizing the framework: Solving new data science
challenges
A.  Internet of Things – Creating a smart app to prevent oil spill disasters
B.  Financial data - How can retail banks influence their cardholders’
behavior?
8© Copyright 2016 Pivotal. All rights reserved.
App
9© Copyright 2016 Pivotal. All rights reserved.
Today’s talk
1.  A real-time data science app
A.  The app: a live demonstration
B.  How can a data scientist build a data science application?
C.  Revisiting the app
2.  Generalizing the framework: Solving new data science
challenges
A.  Internet of Things – creating a smart app
B.  Financial data - How can retail banks influence their cardholders’
behavior?
10© Copyright 2016 Pivotal. All rights reserved.
Training

app
Model
Scoring as
a service
API Call
Model
Training as
a service
Sensor

app
Scoring

app
Dashboard

app
Data science workflow: Movement classification
1.  Sensor + Dashboard
2.  Redis
3.  Training app
4.  Scoring app
11© Copyright 2016 Pivotal. All rights reserved.
here is my source code
run it on the cloud for me
-  Onsi Fakhouri
@onsijoe
i do not care how
12© Copyright 2016 Pivotal. All rights reserved.
cf push
!  CF determines app type (Java, Python, Ruby, …)
!  Installs necessary environment
!  Provisions and binds data services
!  Creates domain, routing, and load balancing
!  Continual app health checks and restarts
13© Copyright 2016 Pivotal. All rights reserved.
Data ingestion: Accelerometric data
!  Accelerometric data streamed from
mobile phone at 15 Hz (15x / second)
!  Other sensor data: gyroscopic data,
magnetometer data, lon/lat, etc.
Accelerometer axes
14© Copyright 2016 Pivotal. All rights reserved.
!  For real-time applications, low-latency data ingestion into
the data store is essential
!  WebSocket protocol - socket.io
–  Mobile phone " Webserver
–  Webserver " Dashboard
!  socket.io " redis
Data ingestion
Training

app
Sensor

app
15© Copyright 2016 Pivotal. All rights reserved.
Data storage
!  We are using a redis store for:
–  Storing training data
–  Model persistence
–  Storing a micro-batch of scoring data
!  Other storage systems include Pivotal Cloud Cache,
GemFire, HAWQ/Hadoop, Greenplum Database,
PostgreSQL, …
16© Copyright 2016 Pivotal. All rights reserved.
Modeling
Scalable machine learning applications in Pivotal
Cloud Foundry
1.  Training app
2.  Scoring app
17© Copyright 2016 Pivotal. All rights reserved.
Modeling – Training app
!  Goal: build a data-driven model that learns accelerometric
motions associated with each activity
Feature Engineering
•  Time-domain
transformations
•  Fast Fourier Transform
analysis
Machine Learning
Classification Model
•  Random Forest Model
using 2 second time
windows (30 samples)
…
Training data
Trained
model
18© Copyright 2016 Pivotal. All rights reserved.
Model building
!  20 seconds per
training activity
!  Two second moving
window on training
data
!  Features: time-
domain summary
statistics and Fourier
transform coefficients
19© Copyright 2016 Pivotal. All rights reserved.
Model training approaches
1.  Near-real-time model training
–  Use small batches to train model
2.  Real-time model training
–  Online machine learning algorithm : continually update model
using each new data point
3.  Offline model training
–  Build a model offline using batches
–  Useful for models requiring finer model tuning and calibration
20© Copyright 2016 Pivotal. All rights reserved.
Feature Engineering
•  Time-domain
transformations
•  Fast Fourier Transform
analysis
Machine Learning
Classification Model
•  Random Forest Model
using 2 second time
windows (30 samples)
Trained model
Streaming input window
Model
Prediction
API Call
Model
prediction
PCF App:
Scoring app
•  Real-time model scoring
•  The dashboard initiates a request via
an API call and receives a model
prediction
{ "channel": "1234",
"label": ”walking",
”score": 0.746 }
21© Copyright 2016 Pivotal. All rights reserved.
Scaling the model scoring application
$	cf	scale	–i	10	 Scoring App
Scoring App
Scoring App
Scoring App
Horizontal scaling
22© Copyright 2016 Pivotal. All rights reserved.
1.  Application auto-scaling
–  As the data grows, the model scales
2.  Building a model factory–evaluate many models in production
3.  Application autonomy
–  The model application is independent of other applications = faster
development iterations
–  Faster development = rapid feedback loop
4.  Multiple applications can access model scoring app
Operationalizing scalable data science applications
Model scoring as a service
Why?
23© Copyright 2016 Pivotal. All rights reserved.
Today’s talk
1.  A real-time data science app
A.  The app: a live demonstration
B.  How can a data scientist build a data science application?
C.  Revisiting the app
2.  Generalizing the framework: Solving new data science
challenges
A.  Internet of Things – creating a smart app
B.  Financial data - How can retail banks influence their cardholders’
behavior?
24© Copyright 2016 Pivotal. All rights reserved.
App
25© Copyright 2016 Pivotal. All rights reserved.
Today’s talk
1.  A real-time data science app
A.  The app: a live demonstration
B.  How can a data scientist build a data science application?
C.  Revisiting the app
2.  Generalizing the framework: Solving new data science
challenges
A.  Internet of Things – Creating a smart app to prevent oil spill disasters
B.  Financial data - How can retail banks influence their cardholders’
behavior?
26© Copyright 2016 Pivotal. All rights reserved.
Gene Sequencing
Smart Grids
COST TO SEQUENCE
ONE GENOME
HAS FALLEN FROM
$100M IN
2001
TO $10K IN 2011
TO $1K IN 2014
READING SMART METERS
EVERY 15 MINUTES IS
3000X MORE
DATA INTENSIVE
Stock Market
Social Media
FACEBOOK UPLOADS
250 MILLION
PHOTOS EACH DAY
In all industries billions of data points represent
opportunities for the Internet of Things
Oil Exploration
Video Surveillance
OIL RIGS GENERATE
25000
DATA POINTS
PER SECOND
Medical Imaging
Mobile Sensors
27© Copyright 2016 Pivotal. All rights reserved.
How can we use data
to help prevent
accidents like the Macondo
Disaster ?
28© Copyright 2016 Pivotal. All rights reserved. 28© Copyright 2016 Pivotal. All rights reserved.
…by creating a Smart Application
29© Copyright 2016 Pivotal. All rights reserved.
Training

app
Model
Scoring as
a service
API Call
Model
Training as
a service
Sensor

app
Scoring

app
Dashboard

app
Data science workflow: Movement classification
30© Copyright 2016 Pivotal. All rights reserved.
Training

app
Model
Scoring as
a service
API Call
Model
Training as
a service
Sensor

app
Scoring

app
Dashboard

app
Data science workflow: Creating a smart app to
prevent oil spill disasters •  Alert operator
•  Send signal to control system
to change operating
parameters
•  Replace old machinery
•  Shut down plant
31© Copyright 2016 Pivotal. All rights reserved.
Training

app
Model
Scoring as
a service
API Call
Model
Training as
a service
Sensor

app
Scoring

app
Dashboard

app
Data science workflow: How can retail banks influence their
cardholders’ behavior? •  Provide customized services
and promotions
•  Next best offer
•  Characterize and improve
customer satisfaction
32© Copyright 2016 Pivotal. All rights reserved.
Blogs on Building Data Science Apps
Blogs
!  Scoring-as-a-Service To Operationalize Algorithms For Real Time
!  How to Scale a Machine Learning Model Using Pivotal Cloud Foundry
!  Data Science How-To: Text Analytics as a Service
crawles@pivotal.io
33© Copyright 2016 Pivotal. All rights reserved.

More Related Content

Similar to Learn How to Operationalize IoT Apps on Pivotal Cloud Foundry

Data Science Powered Apps for Internet of Things
Data Science Powered Apps for Internet of ThingsData Science Powered Apps for Internet of Things
Data Science Powered Apps for Internet of Things
VMware Tanzu
 
The attention economy and the internet
The attention economy and the internetThe attention economy and the internet
The attention economy and the internet
Ross Garrett
 
Findability Day 2016 - Big data analytics and machine learning
Findability Day 2016 - Big data analytics and machine learningFindability Day 2016 - Big data analytics and machine learning
Findability Day 2016 - Big data analytics and machine learning
Findwise
 
Making your mobile testing strategy future-proof
Making your mobile testing strategy future-proofMaking your mobile testing strategy future-proof
Making your mobile testing strategy future-proof
Nagarro
 
Microservices: The Future-Proof Framework for IoT
Microservices: The Future-Proof Framework for IoTMicroservices: The Future-Proof Framework for IoT
Microservices: The Future-Proof Framework for IoT
Capgemini
 
How to Apply Machine Learning with R, H20, Apache Spark MLlib or PMML to Real...
How to Apply Machine Learning with R, H20, Apache Spark MLlib or PMML to Real...How to Apply Machine Learning with R, H20, Apache Spark MLlib or PMML to Real...
How to Apply Machine Learning with R, H20, Apache Spark MLlib or PMML to Real...
Kai Wähner
 
Entreprise mobility approach within digital transformation
Entreprise mobility approach within digital transformationEntreprise mobility approach within digital transformation
Entreprise mobility approach within digital transformation
moldovaictsummit2016
 
Platform Economy - Tech Vision 2016 Trend 3
Platform Economy - Tech Vision 2016 Trend 3Platform Economy - Tech Vision 2016 Trend 3
Platform Economy - Tech Vision 2016 Trend 3
Accenture Technology
 
Platform Economy - Tech Vision 2016 Trend 3
Platform Economy - Tech Vision 2016 Trend 3Platform Economy - Tech Vision 2016 Trend 3
Platform Economy - Tech Vision 2016 Trend 3
accenture
 
HOW OPEN APIS WILL CHANGE THE FUTURE OF BANKING
HOW OPEN APIS WILL CHANGE THE FUTURE OF BANKINGHOW OPEN APIS WILL CHANGE THE FUTURE OF BANKING
HOW OPEN APIS WILL CHANGE THE FUTURE OF BANKING
figo GmbH
 
CMOfinalpresentation.ppt
CMOfinalpresentation.pptCMOfinalpresentation.ppt
CMOfinalpresentation.ppt
Mr Garg
 
IOT & Machine Learning
IOT & Machine LearningIOT & Machine Learning
IOT & Machine Learning
Avanade Nederland
 
Cognitive Computing : Trends to Watch in 2016
Cognitive Computing:  Trends to Watch in 2016Cognitive Computing:  Trends to Watch in 2016
Cognitive Computing : Trends to Watch in 2016
Bill Chamberlin
 
A Report On Online Crime Reporting Guidance By - Prepared By Muhammad Shoaib
A Report On Online Crime Reporting Guidance By  - Prepared By Muhammad ShoaibA Report On Online Crime Reporting Guidance By  - Prepared By Muhammad Shoaib
A Report On Online Crime Reporting Guidance By - Prepared By Muhammad Shoaib
Kayla Smith
 
Android Application for Updation
Android Application for UpdationAndroid Application for Updation
Android Application for Updation
IRJET Journal
 
EDA-based IoT in Oil & Gas
EDA-based IoT in Oil & GasEDA-based IoT in Oil & Gas
EDA-based IoT in Oil & Gas
VANTIQ
 
IRJET- Medicine Information Retrieval Application- Pharmaguide
IRJET- Medicine Information Retrieval Application- PharmaguideIRJET- Medicine Information Retrieval Application- Pharmaguide
IRJET- Medicine Information Retrieval Application- Pharmaguide
IRJET Journal
 
The Impact of IoT on Product Design
The Impact of IoT on Product DesignThe Impact of IoT on Product Design
The Impact of IoT on Product Design
Aras
 
CA Technologies Survive and Thrive in the Application Economy- August 2014
CA Technologies   Survive and Thrive in the Application Economy- August 2014CA Technologies   Survive and Thrive in the Application Economy- August 2014
CA Technologies Survive and Thrive in the Application Economy- August 2014
JAX Chamber IT Council
 
Sean gately internet of things
Sean gately   internet of thingsSean gately   internet of things
Sean gately internet of thingsProductCamp SoCal
 

Similar to Learn How to Operationalize IoT Apps on Pivotal Cloud Foundry (20)

Data Science Powered Apps for Internet of Things
Data Science Powered Apps for Internet of ThingsData Science Powered Apps for Internet of Things
Data Science Powered Apps for Internet of Things
 
The attention economy and the internet
The attention economy and the internetThe attention economy and the internet
The attention economy and the internet
 
Findability Day 2016 - Big data analytics and machine learning
Findability Day 2016 - Big data analytics and machine learningFindability Day 2016 - Big data analytics and machine learning
Findability Day 2016 - Big data analytics and machine learning
 
Making your mobile testing strategy future-proof
Making your mobile testing strategy future-proofMaking your mobile testing strategy future-proof
Making your mobile testing strategy future-proof
 
Microservices: The Future-Proof Framework for IoT
Microservices: The Future-Proof Framework for IoTMicroservices: The Future-Proof Framework for IoT
Microservices: The Future-Proof Framework for IoT
 
How to Apply Machine Learning with R, H20, Apache Spark MLlib or PMML to Real...
How to Apply Machine Learning with R, H20, Apache Spark MLlib or PMML to Real...How to Apply Machine Learning with R, H20, Apache Spark MLlib or PMML to Real...
How to Apply Machine Learning with R, H20, Apache Spark MLlib or PMML to Real...
 
Entreprise mobility approach within digital transformation
Entreprise mobility approach within digital transformationEntreprise mobility approach within digital transformation
Entreprise mobility approach within digital transformation
 
Platform Economy - Tech Vision 2016 Trend 3
Platform Economy - Tech Vision 2016 Trend 3Platform Economy - Tech Vision 2016 Trend 3
Platform Economy - Tech Vision 2016 Trend 3
 
Platform Economy - Tech Vision 2016 Trend 3
Platform Economy - Tech Vision 2016 Trend 3Platform Economy - Tech Vision 2016 Trend 3
Platform Economy - Tech Vision 2016 Trend 3
 
HOW OPEN APIS WILL CHANGE THE FUTURE OF BANKING
HOW OPEN APIS WILL CHANGE THE FUTURE OF BANKINGHOW OPEN APIS WILL CHANGE THE FUTURE OF BANKING
HOW OPEN APIS WILL CHANGE THE FUTURE OF BANKING
 
CMOfinalpresentation.ppt
CMOfinalpresentation.pptCMOfinalpresentation.ppt
CMOfinalpresentation.ppt
 
IOT & Machine Learning
IOT & Machine LearningIOT & Machine Learning
IOT & Machine Learning
 
Cognitive Computing : Trends to Watch in 2016
Cognitive Computing:  Trends to Watch in 2016Cognitive Computing:  Trends to Watch in 2016
Cognitive Computing : Trends to Watch in 2016
 
A Report On Online Crime Reporting Guidance By - Prepared By Muhammad Shoaib
A Report On Online Crime Reporting Guidance By  - Prepared By Muhammad ShoaibA Report On Online Crime Reporting Guidance By  - Prepared By Muhammad Shoaib
A Report On Online Crime Reporting Guidance By - Prepared By Muhammad Shoaib
 
Android Application for Updation
Android Application for UpdationAndroid Application for Updation
Android Application for Updation
 
EDA-based IoT in Oil & Gas
EDA-based IoT in Oil & GasEDA-based IoT in Oil & Gas
EDA-based IoT in Oil & Gas
 
IRJET- Medicine Information Retrieval Application- Pharmaguide
IRJET- Medicine Information Retrieval Application- PharmaguideIRJET- Medicine Information Retrieval Application- Pharmaguide
IRJET- Medicine Information Retrieval Application- Pharmaguide
 
The Impact of IoT on Product Design
The Impact of IoT on Product DesignThe Impact of IoT on Product Design
The Impact of IoT on Product Design
 
CA Technologies Survive and Thrive in the Application Economy- August 2014
CA Technologies   Survive and Thrive in the Application Economy- August 2014CA Technologies   Survive and Thrive in the Application Economy- August 2014
CA Technologies Survive and Thrive in the Application Economy- August 2014
 
Sean gately internet of things
Sean gately   internet of thingsSean gately   internet of things
Sean gately internet of things
 

More from VMware Tanzu

Spring into AI presented by Dan Vega 5/14
Spring into AI presented by Dan Vega 5/14Spring into AI presented by Dan Vega 5/14
Spring into AI presented by Dan Vega 5/14
VMware Tanzu
 
What AI Means For Your Product Strategy And What To Do About It
What AI Means For Your Product Strategy And What To Do About ItWhat AI Means For Your Product Strategy And What To Do About It
What AI Means For Your Product Strategy And What To Do About It
VMware Tanzu
 
Make the Right Thing the Obvious Thing at Cardinal Health 2023
Make the Right Thing the Obvious Thing at Cardinal Health 2023Make the Right Thing the Obvious Thing at Cardinal Health 2023
Make the Right Thing the Obvious Thing at Cardinal Health 2023
VMware Tanzu
 
Enhancing DevEx and Simplifying Operations at Scale
Enhancing DevEx and Simplifying Operations at ScaleEnhancing DevEx and Simplifying Operations at Scale
Enhancing DevEx and Simplifying Operations at Scale
VMware Tanzu
 
Spring Update | July 2023
Spring Update | July 2023Spring Update | July 2023
Spring Update | July 2023
VMware Tanzu
 
Platforms, Platform Engineering, & Platform as a Product
Platforms, Platform Engineering, & Platform as a ProductPlatforms, Platform Engineering, & Platform as a Product
Platforms, Platform Engineering, & Platform as a Product
VMware Tanzu
 
Building Cloud Ready Apps
Building Cloud Ready AppsBuilding Cloud Ready Apps
Building Cloud Ready Apps
VMware Tanzu
 
Spring Boot 3 And Beyond
Spring Boot 3 And BeyondSpring Boot 3 And Beyond
Spring Boot 3 And Beyond
VMware Tanzu
 
Spring Cloud Gateway - SpringOne Tour 2023 Charles Schwab.pdf
Spring Cloud Gateway - SpringOne Tour 2023 Charles Schwab.pdfSpring Cloud Gateway - SpringOne Tour 2023 Charles Schwab.pdf
Spring Cloud Gateway - SpringOne Tour 2023 Charles Schwab.pdf
VMware Tanzu
 
Simplify and Scale Enterprise Apps in the Cloud | Boston 2023
Simplify and Scale Enterprise Apps in the Cloud | Boston 2023Simplify and Scale Enterprise Apps in the Cloud | Boston 2023
Simplify and Scale Enterprise Apps in the Cloud | Boston 2023
VMware Tanzu
 
Simplify and Scale Enterprise Apps in the Cloud | Seattle 2023
Simplify and Scale Enterprise Apps in the Cloud | Seattle 2023Simplify and Scale Enterprise Apps in the Cloud | Seattle 2023
Simplify and Scale Enterprise Apps in the Cloud | Seattle 2023
VMware Tanzu
 
tanzu_developer_connect.pptx
tanzu_developer_connect.pptxtanzu_developer_connect.pptx
tanzu_developer_connect.pptx
VMware Tanzu
 
Tanzu Virtual Developer Connect Workshop - French
Tanzu Virtual Developer Connect Workshop - FrenchTanzu Virtual Developer Connect Workshop - French
Tanzu Virtual Developer Connect Workshop - French
VMware Tanzu
 
Tanzu Developer Connect Workshop - English
Tanzu Developer Connect Workshop - EnglishTanzu Developer Connect Workshop - English
Tanzu Developer Connect Workshop - English
VMware Tanzu
 
Virtual Developer Connect Workshop - English
Virtual Developer Connect Workshop - EnglishVirtual Developer Connect Workshop - English
Virtual Developer Connect Workshop - English
VMware Tanzu
 
Tanzu Developer Connect - French
Tanzu Developer Connect - FrenchTanzu Developer Connect - French
Tanzu Developer Connect - French
VMware Tanzu
 
Simplify and Scale Enterprise Apps in the Cloud | Dallas 2023
Simplify and Scale Enterprise Apps in the Cloud | Dallas 2023Simplify and Scale Enterprise Apps in the Cloud | Dallas 2023
Simplify and Scale Enterprise Apps in the Cloud | Dallas 2023
VMware Tanzu
 
SpringOne Tour: Deliver 15-Factor Applications on Kubernetes with Spring Boot
SpringOne Tour: Deliver 15-Factor Applications on Kubernetes with Spring BootSpringOne Tour: Deliver 15-Factor Applications on Kubernetes with Spring Boot
SpringOne Tour: Deliver 15-Factor Applications on Kubernetes with Spring Boot
VMware Tanzu
 
SpringOne Tour: The Influential Software Engineer
SpringOne Tour: The Influential Software EngineerSpringOne Tour: The Influential Software Engineer
SpringOne Tour: The Influential Software Engineer
VMware Tanzu
 
SpringOne Tour: Domain-Driven Design: Theory vs Practice
SpringOne Tour: Domain-Driven Design: Theory vs PracticeSpringOne Tour: Domain-Driven Design: Theory vs Practice
SpringOne Tour: Domain-Driven Design: Theory vs Practice
VMware Tanzu
 

More from VMware Tanzu (20)

Spring into AI presented by Dan Vega 5/14
Spring into AI presented by Dan Vega 5/14Spring into AI presented by Dan Vega 5/14
Spring into AI presented by Dan Vega 5/14
 
What AI Means For Your Product Strategy And What To Do About It
What AI Means For Your Product Strategy And What To Do About ItWhat AI Means For Your Product Strategy And What To Do About It
What AI Means For Your Product Strategy And What To Do About It
 
Make the Right Thing the Obvious Thing at Cardinal Health 2023
Make the Right Thing the Obvious Thing at Cardinal Health 2023Make the Right Thing the Obvious Thing at Cardinal Health 2023
Make the Right Thing the Obvious Thing at Cardinal Health 2023
 
Enhancing DevEx and Simplifying Operations at Scale
Enhancing DevEx and Simplifying Operations at ScaleEnhancing DevEx and Simplifying Operations at Scale
Enhancing DevEx and Simplifying Operations at Scale
 
Spring Update | July 2023
Spring Update | July 2023Spring Update | July 2023
Spring Update | July 2023
 
Platforms, Platform Engineering, & Platform as a Product
Platforms, Platform Engineering, & Platform as a ProductPlatforms, Platform Engineering, & Platform as a Product
Platforms, Platform Engineering, & Platform as a Product
 
Building Cloud Ready Apps
Building Cloud Ready AppsBuilding Cloud Ready Apps
Building Cloud Ready Apps
 
Spring Boot 3 And Beyond
Spring Boot 3 And BeyondSpring Boot 3 And Beyond
Spring Boot 3 And Beyond
 
Spring Cloud Gateway - SpringOne Tour 2023 Charles Schwab.pdf
Spring Cloud Gateway - SpringOne Tour 2023 Charles Schwab.pdfSpring Cloud Gateway - SpringOne Tour 2023 Charles Schwab.pdf
Spring Cloud Gateway - SpringOne Tour 2023 Charles Schwab.pdf
 
Simplify and Scale Enterprise Apps in the Cloud | Boston 2023
Simplify and Scale Enterprise Apps in the Cloud | Boston 2023Simplify and Scale Enterprise Apps in the Cloud | Boston 2023
Simplify and Scale Enterprise Apps in the Cloud | Boston 2023
 
Simplify and Scale Enterprise Apps in the Cloud | Seattle 2023
Simplify and Scale Enterprise Apps in the Cloud | Seattle 2023Simplify and Scale Enterprise Apps in the Cloud | Seattle 2023
Simplify and Scale Enterprise Apps in the Cloud | Seattle 2023
 
tanzu_developer_connect.pptx
tanzu_developer_connect.pptxtanzu_developer_connect.pptx
tanzu_developer_connect.pptx
 
Tanzu Virtual Developer Connect Workshop - French
Tanzu Virtual Developer Connect Workshop - FrenchTanzu Virtual Developer Connect Workshop - French
Tanzu Virtual Developer Connect Workshop - French
 
Tanzu Developer Connect Workshop - English
Tanzu Developer Connect Workshop - EnglishTanzu Developer Connect Workshop - English
Tanzu Developer Connect Workshop - English
 
Virtual Developer Connect Workshop - English
Virtual Developer Connect Workshop - EnglishVirtual Developer Connect Workshop - English
Virtual Developer Connect Workshop - English
 
Tanzu Developer Connect - French
Tanzu Developer Connect - FrenchTanzu Developer Connect - French
Tanzu Developer Connect - French
 
Simplify and Scale Enterprise Apps in the Cloud | Dallas 2023
Simplify and Scale Enterprise Apps in the Cloud | Dallas 2023Simplify and Scale Enterprise Apps in the Cloud | Dallas 2023
Simplify and Scale Enterprise Apps in the Cloud | Dallas 2023
 
SpringOne Tour: Deliver 15-Factor Applications on Kubernetes with Spring Boot
SpringOne Tour: Deliver 15-Factor Applications on Kubernetes with Spring BootSpringOne Tour: Deliver 15-Factor Applications on Kubernetes with Spring Boot
SpringOne Tour: Deliver 15-Factor Applications on Kubernetes with Spring Boot
 
SpringOne Tour: The Influential Software Engineer
SpringOne Tour: The Influential Software EngineerSpringOne Tour: The Influential Software Engineer
SpringOne Tour: The Influential Software Engineer
 
SpringOne Tour: Domain-Driven Design: Theory vs Practice
SpringOne Tour: Domain-Driven Design: Theory vs PracticeSpringOne Tour: Domain-Driven Design: Theory vs Practice
SpringOne Tour: Domain-Driven Design: Theory vs Practice
 

Recently uploaded

Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
g2nightmarescribd
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
DanBrown980551
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
Paul Groth
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
BookNet Canada
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Albert Hoitingh
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
RTTS
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 

Recently uploaded (20)

Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
Generating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using SmithyGenerating a custom Ruby SDK for your web service or Rails API using Smithy
Generating a custom Ruby SDK for your web service or Rails API using Smithy
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
LF Energy Webinar: Electrical Grid Modelling and Simulation Through PowSyBl -...
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMsTo Graph or Not to Graph Knowledge Graph Architectures and LLMs
To Graph or Not to Graph Knowledge Graph Architectures and LLMs
 
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...Transcript: Selling digital books in 2024: Insights from industry leaders - T...
Transcript: Selling digital books in 2024: Insights from industry leaders - T...
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
Encryption in Microsoft 365 - ExpertsLive Netherlands 2024
 
JMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and GrafanaJMeter webinar - integration with InfluxDB and Grafana
JMeter webinar - integration with InfluxDB and Grafana
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 

Learn How to Operationalize IoT Apps on Pivotal Cloud Foundry

  • 1. 1© Copyright 2016 Pivotal. All rights reserved. Data Science-Powered Apps for the Internet of Things Chris Rawles1 and Jarrod Vawdrey2 1. Sr. Data Scientist in New York, New York 2. Sr. Data Scientist in Atlanta, Georgia
  • 2. 2© Copyright 2016 Pivotal. All rights reserved. ‘By the year 2025, $4 to $11 trillion of economic value could be created through the Internet of Things.’ Michael Chui Partner, McKinsey & Company
  • 3. 3© Copyright 2016 Pivotal. All rights reserved. IoT Platform Applications Data Science
  • 4. 4© Copyright 2016 Pivotal. All rights reserved. New business models Improve efficiencies Personalized experiences _____________________ Trillions $ Economic Value
  • 5. 5© Copyright 2016 Pivotal. All rights reserved. Today’s Speaker Chris Rawles Senior Data Scientist
  • 6. 6© Copyright 2016 Pivotal. All rights reserved. Today’s talk 1.  A real-time data science app A.  The app: a live demonstration B.  How can a data scientist build a data science application? C.  Revisiting the app 2.  Generalizing the framework: Solving new data science challenges A.  Internet of Things – Creating a smart app to prevent oil spill disasters B.  Financial data - How can retail banks influence their cardholders’ behavior?
  • 7. 7© Copyright 2016 Pivotal. All rights reserved. Today’s talk 1.  A real-time data science app A.  The app: a live demonstration B.  How can a data scientist build a data science application? C.  Revisiting the app 2.  Generalizing the framework: Solving new data science challenges A.  Internet of Things – Creating a smart app to prevent oil spill disasters B.  Financial data - How can retail banks influence their cardholders’ behavior?
  • 8. 8© Copyright 2016 Pivotal. All rights reserved. App
  • 9. 9© Copyright 2016 Pivotal. All rights reserved. Today’s talk 1.  A real-time data science app A.  The app: a live demonstration B.  How can a data scientist build a data science application? C.  Revisiting the app 2.  Generalizing the framework: Solving new data science challenges A.  Internet of Things – creating a smart app B.  Financial data - How can retail banks influence their cardholders’ behavior?
  • 10. 10© Copyright 2016 Pivotal. All rights reserved. Training
 app Model Scoring as a service API Call Model Training as a service Sensor
 app Scoring
 app Dashboard
 app Data science workflow: Movement classification 1.  Sensor + Dashboard 2.  Redis 3.  Training app 4.  Scoring app
  • 11. 11© Copyright 2016 Pivotal. All rights reserved. here is my source code run it on the cloud for me -  Onsi Fakhouri @onsijoe i do not care how
  • 12. 12© Copyright 2016 Pivotal. All rights reserved. cf push !  CF determines app type (Java, Python, Ruby, …) !  Installs necessary environment !  Provisions and binds data services !  Creates domain, routing, and load balancing !  Continual app health checks and restarts
  • 13. 13© Copyright 2016 Pivotal. All rights reserved. Data ingestion: Accelerometric data !  Accelerometric data streamed from mobile phone at 15 Hz (15x / second) !  Other sensor data: gyroscopic data, magnetometer data, lon/lat, etc. Accelerometer axes
  • 14. 14© Copyright 2016 Pivotal. All rights reserved. !  For real-time applications, low-latency data ingestion into the data store is essential !  WebSocket protocol - socket.io –  Mobile phone " Webserver –  Webserver " Dashboard !  socket.io " redis Data ingestion Training
 app Sensor
 app
  • 15. 15© Copyright 2016 Pivotal. All rights reserved. Data storage !  We are using a redis store for: –  Storing training data –  Model persistence –  Storing a micro-batch of scoring data !  Other storage systems include Pivotal Cloud Cache, GemFire, HAWQ/Hadoop, Greenplum Database, PostgreSQL, …
  • 16. 16© Copyright 2016 Pivotal. All rights reserved. Modeling Scalable machine learning applications in Pivotal Cloud Foundry 1.  Training app 2.  Scoring app
  • 17. 17© Copyright 2016 Pivotal. All rights reserved. Modeling – Training app !  Goal: build a data-driven model that learns accelerometric motions associated with each activity Feature Engineering •  Time-domain transformations •  Fast Fourier Transform analysis Machine Learning Classification Model •  Random Forest Model using 2 second time windows (30 samples) … Training data Trained model
  • 18. 18© Copyright 2016 Pivotal. All rights reserved. Model building !  20 seconds per training activity !  Two second moving window on training data !  Features: time- domain summary statistics and Fourier transform coefficients
  • 19. 19© Copyright 2016 Pivotal. All rights reserved. Model training approaches 1.  Near-real-time model training –  Use small batches to train model 2.  Real-time model training –  Online machine learning algorithm : continually update model using each new data point 3.  Offline model training –  Build a model offline using batches –  Useful for models requiring finer model tuning and calibration
  • 20. 20© Copyright 2016 Pivotal. All rights reserved. Feature Engineering •  Time-domain transformations •  Fast Fourier Transform analysis Machine Learning Classification Model •  Random Forest Model using 2 second time windows (30 samples) Trained model Streaming input window Model Prediction API Call Model prediction PCF App: Scoring app •  Real-time model scoring •  The dashboard initiates a request via an API call and receives a model prediction { "channel": "1234", "label": ”walking", ”score": 0.746 }
  • 21. 21© Copyright 2016 Pivotal. All rights reserved. Scaling the model scoring application $ cf scale –i 10 Scoring App Scoring App Scoring App Scoring App Horizontal scaling
  • 22. 22© Copyright 2016 Pivotal. All rights reserved. 1.  Application auto-scaling –  As the data grows, the model scales 2.  Building a model factory–evaluate many models in production 3.  Application autonomy –  The model application is independent of other applications = faster development iterations –  Faster development = rapid feedback loop 4.  Multiple applications can access model scoring app Operationalizing scalable data science applications Model scoring as a service Why?
  • 23. 23© Copyright 2016 Pivotal. All rights reserved. Today’s talk 1.  A real-time data science app A.  The app: a live demonstration B.  How can a data scientist build a data science application? C.  Revisiting the app 2.  Generalizing the framework: Solving new data science challenges A.  Internet of Things – creating a smart app B.  Financial data - How can retail banks influence their cardholders’ behavior?
  • 24. 24© Copyright 2016 Pivotal. All rights reserved. App
  • 25. 25© Copyright 2016 Pivotal. All rights reserved. Today’s talk 1.  A real-time data science app A.  The app: a live demonstration B.  How can a data scientist build a data science application? C.  Revisiting the app 2.  Generalizing the framework: Solving new data science challenges A.  Internet of Things – Creating a smart app to prevent oil spill disasters B.  Financial data - How can retail banks influence their cardholders’ behavior?
  • 26. 26© Copyright 2016 Pivotal. All rights reserved. Gene Sequencing Smart Grids COST TO SEQUENCE ONE GENOME HAS FALLEN FROM $100M IN 2001 TO $10K IN 2011 TO $1K IN 2014 READING SMART METERS EVERY 15 MINUTES IS 3000X MORE DATA INTENSIVE Stock Market Social Media FACEBOOK UPLOADS 250 MILLION PHOTOS EACH DAY In all industries billions of data points represent opportunities for the Internet of Things Oil Exploration Video Surveillance OIL RIGS GENERATE 25000 DATA POINTS PER SECOND Medical Imaging Mobile Sensors
  • 27. 27© Copyright 2016 Pivotal. All rights reserved. How can we use data to help prevent accidents like the Macondo Disaster ?
  • 28. 28© Copyright 2016 Pivotal. All rights reserved. 28© Copyright 2016 Pivotal. All rights reserved. …by creating a Smart Application
  • 29. 29© Copyright 2016 Pivotal. All rights reserved. Training
 app Model Scoring as a service API Call Model Training as a service Sensor
 app Scoring
 app Dashboard
 app Data science workflow: Movement classification
  • 30. 30© Copyright 2016 Pivotal. All rights reserved. Training
 app Model Scoring as a service API Call Model Training as a service Sensor
 app Scoring
 app Dashboard
 app Data science workflow: Creating a smart app to prevent oil spill disasters •  Alert operator •  Send signal to control system to change operating parameters •  Replace old machinery •  Shut down plant
  • 31. 31© Copyright 2016 Pivotal. All rights reserved. Training
 app Model Scoring as a service API Call Model Training as a service Sensor
 app Scoring
 app Dashboard
 app Data science workflow: How can retail banks influence their cardholders’ behavior? •  Provide customized services and promotions •  Next best offer •  Characterize and improve customer satisfaction
  • 32. 32© Copyright 2016 Pivotal. All rights reserved. Blogs on Building Data Science Apps Blogs !  Scoring-as-a-Service To Operationalize Algorithms For Real Time !  How to Scale a Machine Learning Model Using Pivotal Cloud Foundry !  Data Science How-To: Text Analytics as a Service crawles@pivotal.io
  • 33. 33© Copyright 2016 Pivotal. All rights reserved.