Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT...
Transcript of Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT...
![Page 1: Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT algorithms MATLAB and ThingSpeak helps you collect and analyse IoT data, quickly and](https://reader035.fdocuments.net/reader035/viewer/2022062917/5ed6f7c3d2091b626663e2da/html5/thumbnails/1.jpg)
1© 2015 The MathWorks, Inc.
Developing and
Deploying Analytics
for IoT Systems
Daryl Ning
Applications Engineer
MathWorks Australia
![Page 2: Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT algorithms MATLAB and ThingSpeak helps you collect and analyse IoT data, quickly and](https://reader035.fdocuments.net/reader035/viewer/2022062917/5ed6f7c3d2091b626663e2da/html5/thumbnails/2.jpg)
2
Key Takeaways
MATLAB helps you develop IoT algorithms
MATLAB and ThingSpeak helps you collect and analyse IoT data, quickly
and easily
MATLAB and Simulink help you develop smart connected devices
MATLAB supports cloud deployment for small to medium scale IoT
systems, up to large enterprise systems.
![Page 3: Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT algorithms MATLAB and ThingSpeak helps you collect and analyse IoT data, quickly and](https://reader035.fdocuments.net/reader035/viewer/2022062917/5ed6f7c3d2091b626663e2da/html5/thumbnails/3.jpg)
3
What is IoT?
Devices InsightAnalytics
![Page 4: Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT algorithms MATLAB and ThingSpeak helps you collect and analyse IoT data, quickly and](https://reader035.fdocuments.net/reader035/viewer/2022062917/5ed6f7c3d2091b626663e2da/html5/thumbnails/4.jpg)
4
Do hamsters run a marathon every day?
Fun Example from Michelle Leonhart
![Page 5: Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT algorithms MATLAB and ThingSpeak helps you collect and analyse IoT data, quickly and](https://reader035.fdocuments.net/reader035/viewer/2022062917/5ed6f7c3d2091b626663e2da/html5/thumbnails/5.jpg)
5
ChallengeMeasure and evaluate the energy efficiency of residential
homes and businesses based on data from onsite sensors
Solution Used ThingSpeak to collect up-to-the-minute
temperature, humidity, and power usage data
Used MATLAB to analyze and visualize the data
Results Market opportunity seized
Development effort cut by two-thirds
Sensor networks quickly deployed
Commercial Example from Cadmus
![Page 6: Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT algorithms MATLAB and ThingSpeak helps you collect and analyse IoT data, quickly and](https://reader035.fdocuments.net/reader035/viewer/2022062917/5ed6f7c3d2091b626663e2da/html5/thumbnails/6.jpg)
6
ChallengeMeasure and evaluate the energy efficiency of
residential homes and factories based on data from
onsite sensors
SolutionCadmus used ThingSpeak to collect up-to-the-minute
temperature, humidity, and power usage data and use
MATLAB to analyze and visualize the data
Results Market opportunity seized
Development effort cut by two-thirds
Sensor networks quickly deployed
Commercial Example from Cadmus
![Page 7: Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT algorithms MATLAB and ThingSpeak helps you collect and analyse IoT data, quickly and](https://reader035.fdocuments.net/reader035/viewer/2022062917/5ed6f7c3d2091b626663e2da/html5/thumbnails/7.jpg)
7
IoT Analytics Framework
Smart Connected Devices
• Storage
• On-Line analytics
• Visualization & reporting
• Communication
• Embedded Sensor Analytics
• Data Reduction
Analytic IoT Platform
![Page 8: Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT algorithms MATLAB and ThingSpeak helps you collect and analyse IoT data, quickly and](https://reader035.fdocuments.net/reader035/viewer/2022062917/5ed6f7c3d2091b626663e2da/html5/thumbnails/8.jpg)
8
IoT Analytics Challenges
1. How do I develop my algorithms?
2. How do I collect enough data to build my algorithm?
3. How do I deploy my algorithms to the cloud?
4. How do I deploy my algorithms on a smart device?
![Page 9: Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT algorithms MATLAB and ThingSpeak helps you collect and analyse IoT data, quickly and](https://reader035.fdocuments.net/reader035/viewer/2022062917/5ed6f7c3d2091b626663e2da/html5/thumbnails/9.jpg)
9
IoT Analytics Challenges
Algorithm Development
Sensor Analytics
Data Aggregation
& AnalyticsCommunications
Network
Deploy analytics
to server/cloud
Deploy algorithms to nodes/devices
How do I collect
enough data to
build my
algorithm?
Smart Connected
Devices
How do I
develop my
algorithms?
![Page 10: Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT algorithms MATLAB and ThingSpeak helps you collect and analyse IoT data, quickly and](https://reader035.fdocuments.net/reader035/viewer/2022062917/5ed6f7c3d2091b626663e2da/html5/thumbnails/10.jpg)
10
MATLAB Helps You Develop IoT Algorithms
Real data is messy and
needs to be cleaned up
Missing data points
need to be handled
Features need to be
extracted
Predictions need to be
made
![Page 11: Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT algorithms MATLAB and ThingSpeak helps you collect and analyse IoT data, quickly and](https://reader035.fdocuments.net/reader035/viewer/2022062917/5ed6f7c3d2091b626663e2da/html5/thumbnails/11.jpg)
11
What Is ThingSpeak?
Web Site For People Web Service for Devices
![Page 12: Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT algorithms MATLAB and ThingSpeak helps you collect and analyse IoT data, quickly and](https://reader035.fdocuments.net/reader035/viewer/2022062917/5ed6f7c3d2091b626663e2da/html5/thumbnails/12.jpg)
12
ThingSpeak Collects, Analyzes and Acts on Data
A new MathWorks web service hosted
on AWS
Lets you collect, analyze and act on
data from “things”
Evaluates MATLAB code in the cloud
Over 130,000 users worldwide
It’s free to get started
https://thingspeak.com
![Page 13: Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT algorithms MATLAB and ThingSpeak helps you collect and analyse IoT data, quickly and](https://reader035.fdocuments.net/reader035/viewer/2022062917/5ed6f7c3d2091b626663e2da/html5/thumbnails/13.jpg)
13
MATLAB Toolbox Access from ThingSpeak
When you are logged into ThingSpeak™ using your MathWorks® Account, you can use
functions from the following toolboxes if you are licensed to use them:
– Statistics and Machine Learning Toolbox™ (Statistics and Machine Learning Toolbox)
– Curve Fitting Toolbox™ (Curve Fitting Toolbox)
– Control System Toolbox™ (Control System Toolbox)
– Signal Processing Toolbox™ (Signal Processing Toolbox)
– Mapping Toolbox™ (Mapping Toolbox)
– System Identification Toolbox™ (System Identification Toolbox)
– Neural Network Toolbox™ (Neural Network Toolbox)
– DSP System Toolbox™ (DSP System Toolbox)
– Datafeed Toolbox™ (Datafeed Toolbox)
– Financial Toolbox™ (Financial Toolbox)
Up to date info: https://au.mathworks.com/help/thingspeak/matlab-toolbox-access.html
![Page 14: Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT algorithms MATLAB and ThingSpeak helps you collect and analyse IoT data, quickly and](https://reader035.fdocuments.net/reader035/viewer/2022062917/5ed6f7c3d2091b626663e2da/html5/thumbnails/14.jpg)
14
Custom Visualizations with ThingSpeak- Weather Station Example
![Page 15: Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT algorithms MATLAB and ThingSpeak helps you collect and analyse IoT data, quickly and](https://reader035.fdocuments.net/reader035/viewer/2022062917/5ed6f7c3d2091b626663e2da/html5/thumbnails/15.jpg)
15
Custom Visualizations with ThingSpeak- Weather Station Example
![Page 16: Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT algorithms MATLAB and ThingSpeak helps you collect and analyse IoT data, quickly and](https://reader035.fdocuments.net/reader035/viewer/2022062917/5ed6f7c3d2091b626663e2da/html5/thumbnails/16.jpg)
16
Predictive Analytics Example with ThingSpeak
Problem: Common for boats to get stuck due
to unusually low tides caused by certain winds
![Page 17: Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT algorithms MATLAB and ThingSpeak helps you collect and analyse IoT data, quickly and](https://reader035.fdocuments.net/reader035/viewer/2022062917/5ed6f7c3d2091b626663e2da/html5/thumbnails/17.jpg)
17
Predictive Analytics Example with ThingSpeak
Problem: Common for boats to get stuck due
to unusually low tides caused by certain winds
Ultrasonic Tide
Gauge
![Page 18: Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT algorithms MATLAB and ThingSpeak helps you collect and analyse IoT data, quickly and](https://reader035.fdocuments.net/reader035/viewer/2022062917/5ed6f7c3d2091b626663e2da/html5/thumbnails/18.jpg)
18
Predictive Analytics Example with ThingSpeak
Problem: Common for boats to get stuck due
to unusually low tides caused by certain winds
![Page 19: Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT algorithms MATLAB and ThingSpeak helps you collect and analyse IoT data, quickly and](https://reader035.fdocuments.net/reader035/viewer/2022062917/5ed6f7c3d2091b626663e2da/html5/thumbnails/19.jpg)
19
Predictive Analytics Example with ThingSpeak
Analytics on the cloud
Visualisation accessible
from ThingSpeak website
No infrastructure setup or
custom web development
![Page 20: Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT algorithms MATLAB and ThingSpeak helps you collect and analyse IoT data, quickly and](https://reader035.fdocuments.net/reader035/viewer/2022062917/5ed6f7c3d2091b626663e2da/html5/thumbnails/20.jpg)
20
MATLAB and ThingSpeak: Customer Testimonial
“In just a few months, we implemented a new
service that measures and analyzes temperature and
humidity changes in dozens—and soon hundreds—of
homes.
Without MATLAB and ThingSpeak, we would still
just be talking about it. Instead, we’re already
pitching this service to utilities. That is a huge
competitive advantage for our company.”
Dave Korn, VP of engineering at Cadmus
![Page 21: Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT algorithms MATLAB and ThingSpeak helps you collect and analyse IoT data, quickly and](https://reader035.fdocuments.net/reader035/viewer/2022062917/5ed6f7c3d2091b626663e2da/html5/thumbnails/21.jpg)
21
IoT Analytics Challenges
Algorithm Development
Sensor Analytics
Data Aggregation
& AnalyticsCommunications
Network
Deploy analytics
to server/cloud
Deploy algorithms to nodes/devices
Smart Connected
Devices How do I deploy my
algorithms on a
smart device?
How do I collect
enough data to
build my
algorithm?
How do I
develop my
algorithms?
![Page 22: Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT algorithms MATLAB and ThingSpeak helps you collect and analyse IoT data, quickly and](https://reader035.fdocuments.net/reader035/viewer/2022062917/5ed6f7c3d2091b626663e2da/html5/thumbnails/22.jpg)
22
Sensor Signal
AnalyticsConnect and Acquire
Signal
Pre-Processing
Embedded
Implementation
Development of Smart Connected Devices
Automatic Code
Generation
![Page 23: Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT algorithms MATLAB and ThingSpeak helps you collect and analyse IoT data, quickly and](https://reader035.fdocuments.net/reader035/viewer/2022062917/5ed6f7c3d2091b626663e2da/html5/thumbnails/23.jpg)
23
Objectives
Measure, explore, discover traffic
patterns
Provide traffic information without
sending live video
Solution
RaspberryPi + webcam
Automated deployment of vision
algorithms on embedded sensor
Reduce Data Transfer with Smart Connected Devices
Full example available at makerzone.mathworks.com
![Page 24: Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT algorithms MATLAB and ThingSpeak helps you collect and analyse IoT data, quickly and](https://reader035.fdocuments.net/reader035/viewer/2022062917/5ed6f7c3d2091b626663e2da/html5/thumbnails/24.jpg)
24
Developing Embeddable Analytics with Simulink
![Page 25: Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT algorithms MATLAB and ThingSpeak helps you collect and analyse IoT data, quickly and](https://reader035.fdocuments.net/reader035/viewer/2022062917/5ed6f7c3d2091b626663e2da/html5/thumbnails/25.jpg)
25
When should I go
to work?
From Data to Insight
![Page 26: Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT algorithms MATLAB and ThingSpeak helps you collect and analyse IoT data, quickly and](https://reader035.fdocuments.net/reader035/viewer/2022062917/5ed6f7c3d2091b626663e2da/html5/thumbnails/26.jpg)
26
MATLAB and Simulink Help Design Smart Connected Devices
Gather data from sensors using I2C/SPI and other interfaces
Use pre-built libraries for signal processing , computer vision, machine
learning and more
Automatically generate C / C++ and HDL code
Hardware Support Packages for a wide variety of devices
Smart Connected
Devices
Sensor Analytics
Algorithm
Development
Deploy algorithms to device(s)
Retrieve data from sensor(s)
C, C++ HDL PLC
![Page 27: Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT algorithms MATLAB and ThingSpeak helps you collect and analyse IoT data, quickly and](https://reader035.fdocuments.net/reader035/viewer/2022062917/5ed6f7c3d2091b626663e2da/html5/thumbnails/27.jpg)
27
Ono Sokki Reduce Development Time for Smart Device
Challenge
Develop a high-precision speedometer (within 0.1 km/h) using
inertial measurement unit sensors.
Very tight deadline
Technology Applied
Model, simulate and verify complex algorithms in Simulink
Use automatic C code generation to deploy the algorithm onto an
embedded device
Results
Development time cut significantly
Project was completed well ahead of schedule
Easier to maintain, and fewer bugs
LC-8100 GPS Speedometer System.
![Page 28: Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT algorithms MATLAB and ThingSpeak helps you collect and analyse IoT data, quickly and](https://reader035.fdocuments.net/reader035/viewer/2022062917/5ed6f7c3d2091b626663e2da/html5/thumbnails/28.jpg)
28
Ono Sokki Reduce Development Time for Smart Device
Challenge
Develop a high-precision speedometer (within 0.1 km/h) using
inertial measurement unit sensors.
Very tight deadline
Technology Applied
Model, simulate and verify complex algorithms in Simulink
Use automatic C code generation to deploy the algorithm onto an
embedded device
Results
Development time cut significantly
Project was completed well ahead of schedule
Easier to maintain, and fewer bugs
“With MathWorks tools we have a seamless
environment for development, simulation, code
generation, and processor-in-the-loop verification.
The advantages over hand-coding in C can’t be
overestimated.”
Kazuhiro Ichikawa, Ono Sokki
LC-8100 GPS Speedometer System.
![Page 29: Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT algorithms MATLAB and ThingSpeak helps you collect and analyse IoT data, quickly and](https://reader035.fdocuments.net/reader035/viewer/2022062917/5ed6f7c3d2091b626663e2da/html5/thumbnails/29.jpg)
29
IoT Analytics Challenges
Algorithm Development
Sensor Analytics
Data Aggregation
& AnalyticsCommunications
Network
Deploy analytics
to server/cloud
Deploy algorithms to nodes/devices
Smart Connected
Devices
How do I deploy
my algorithms to
the cloud?
How do I collect
enough data to
build my
algorithm?
How do I
develop my
algorithms?
How do I deploy
my algorithms on
a smart device?
![Page 30: Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT algorithms MATLAB and ThingSpeak helps you collect and analyse IoT data, quickly and](https://reader035.fdocuments.net/reader035/viewer/2022062917/5ed6f7c3d2091b626663e2da/html5/thumbnails/30.jpg)
30
ThingSpeak for Small Scale Deployment
External Data & Business
Systems
Store
Deploy analytics
To cloudComputeIngest
Algorithm Development
Sensor Analytics
A few thousand devices or less
Quickly build a “Proof of Concept”
IoT System
No need to build/manage web
servers and databases
Smart Connected
Devices
![Page 31: Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT algorithms MATLAB and ThingSpeak helps you collect and analyse IoT data, quickly and](https://reader035.fdocuments.net/reader035/viewer/2022062917/5ed6f7c3d2091b626663e2da/html5/thumbnails/31.jpg)
31
Integrating MATLAB with 3rd Party IoT Platforms
External Data & Business
Systems
Store
Algorithm Development
ComputeIngest
IoT
Platform
MATLAB
Production
Server
Smart Connected
Devices
Deploy analytics
To cloud
Algorithm Development
Sensor Analytics
MATLAB Production Server can
be used to execute MATLAB
analytics on 3rd party platforms
![Page 32: Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT algorithms MATLAB and ThingSpeak helps you collect and analyse IoT data, quickly and](https://reader035.fdocuments.net/reader035/viewer/2022062917/5ed6f7c3d2091b626663e2da/html5/thumbnails/32.jpg)
32
Databases
Cloud
Storage
IoT
Visualization
Web
Custom App
Public Cloud Private Cloud
Integrating MATLAB in Large Scale Production Systems
Platform
Data Business System
MATLAB
Production
Server
Analytics
Request
Broker
Azure
Blob
Azure
SQL
![Page 33: Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT algorithms MATLAB and ThingSpeak helps you collect and analyse IoT data, quickly and](https://reader035.fdocuments.net/reader035/viewer/2022062917/5ed6f7c3d2091b626663e2da/html5/thumbnails/33.jpg)
33
Big Data and Predictive Analytics at Shell
Shell analyses big data sets to detect
events and abnormalities at downstream
chemical plants using predictive analytics
with MATLAB®.
Multivariate statistical models running on
MATLAB Production Server™ are used to
do real-time batch and process monitoring,
enabling real-time interventions when
abnormalities are detected.
https://au.mathworks.com/videos/big-data-and-predictive-analytics-at-shell-99526.html
![Page 34: Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT algorithms MATLAB and ThingSpeak helps you collect and analyse IoT data, quickly and](https://reader035.fdocuments.net/reader035/viewer/2022062917/5ed6f7c3d2091b626663e2da/html5/thumbnails/34.jpg)
34
MathWorks Addresses IoT Analytics Challenges
Develop analytics algorithms using MATLAB and toolboxes
Quickly collect and analyze IoT data with ThingSpeak and MATLAB
Deploy on smart devices using code generation for embedded hardware
Deploy on cloud using ThingSpeak and MATLAB Production Server
![Page 35: Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT algorithms MATLAB and ThingSpeak helps you collect and analyse IoT data, quickly and](https://reader035.fdocuments.net/reader035/viewer/2022062917/5ed6f7c3d2091b626663e2da/html5/thumbnails/35.jpg)
35
What You Can Do to Learn More
Log-in to ThingSpeak with you
MathWorks account and explore
View a webinar on Machine Learning
with MATLAB
Read a Technical Article on Forecasting
Tides with MATLAB
Read a tutorial on how to send data to
ThingSpeak over MQTT
![Page 36: Developing and Deploying Analytics for IoT Systems...2 Key Takeaways MATLAB helps you develop IoT algorithms MATLAB and ThingSpeak helps you collect and analyse IoT data, quickly and](https://reader035.fdocuments.net/reader035/viewer/2022062917/5ed6f7c3d2091b626663e2da/html5/thumbnails/36.jpg)
36© 2017 The MathWorks, Inc.
© 2017 The MathWorks, Inc. MATLAB and Simulink are registered trademarks of The MathWorks, Inc. See www.mathworks.com/trademarks
for a list of additional trademarks. Other product or brand names may be trademarks or registered trademarks of their respective holders.