SlideShare a Scribd company logo
1© 2016 The MathWorks, Inc.
Trending Now!
Performance Trends and Alerts
with ThingSpeak IoT
By Anoush Najarian • MATLAB Performance Team • MathWorks
Boston CMG • Social Media Chair at #CMGimPACt • CMG Board of Directors
@anoushnajarian
2
Agenda
 The Internet of Things (IoT)
 ThingSpeak
 A few of our favorite IoT applications
 Performance Trends and Alerts on ThingSpeak
3
The Internet of Things is…
The internet of things (IoT) is the internetworking of physical devices, vehicles
(also referred to as "connected devices" and "smart devices"), buildings and
other items—embedded with electronics, software, sensors, actuators, and
network connectivity that enable these objects to collect and exchange data.
https://en.wikipedia.org/wiki/Internet_of_things
4
Things…
 Typical “thing”
– A sensor with connectivity
– An actuator with connectivity
 They are constrained
– Processing
– Memory
– Protocols
– Clock
– Power
 They run code over and over – sometimes they sleep wake up and run
code, and go back to sleep
 There are lots of them
5
What is the Internet of Things?
Edge Nodes Exploratory Analysis
Analytic IoT Platform
Deploy analytics
to aggregator
Deploy algorithms to nodes/devices
6
Agenda
 The Internet of Things (IoT)
 ThingSpeak
 A few of our favorite IoT applications
 Performance Trends and Alerts on ThingSpeak
7
What is ThingSpeak?
 Analytic IoT platform
– Collect data from sensors, “things”
– Visualize data instantly
– Has more than 60,000 users
 Analyze data
– MATLAB integration allows users to run
scheduled code on data coming into
ThingSpeak
 Act on data
– E.g. send a tweet when the temperature in
your backyard reaches 32 degrees
8
Who is ThingSpeak for?
 Makers
 Academics
 Engineers and scientists
https://thingspeak.com/
9
ThingSpeak: Collecting Data using Channels
 For any new data, first login and
create a channel in ThingSpeak
 Channels have read and write API
keys and can be public or private
 A channel is made up of 8 fields and
can store 8 streams of data (Temp,
Humidity, etc.)
 Channels can be updated at a
maximum rate of once every 15
seconds
ThingSpeak Weather Channel
10
Agenda
 The Internet of Things (IoT)
 ThingSpeak
 A few of our favorite IoT applications
 Performance Trends and Alerts on ThingSpeak
11
Objectives
 Measure, explore, discover weather patterns
 Provide niche weather service
Solution
 Arduino station with weather sensors
 Cloud-based aggregation and analysis
 Full example available at
makerzone.mathworks.com
Example 1: Monitoring Weather
12
Fun with Arduino!
 Arduino Serial Monitor
records the data from
the temperature sensor,
the pressure sensor,
and the humitidity
sensor, as transmitted
to ThingSpeak!
 Placing ice on
the Arduino temperature
sensor to cool it off!
13
Fun with Raspberry Pi
 Building a circuit with a
temperature sensor in this
week's
 Posting the temperature
readings from the sensor
to ThingSpeak using
Twitter.
14
Objectives
 Measure, explore, discover traffic patterns
 Provide live local traffic information service
Solution
 RaspberryPi + webcam
 Automated deployment of vision
algorithms on embedded sensor
 Full example available at
makerzone.mathworks.com
Example 2: Monitoring Traffic
15
Smart Agriculture
 Vineyards
 Green Houses
 Golf Courses
 Weather Stations – drought studies, radiation analysis
 Compost – Fungus prevention
16
Agenda
 The Internet of Things (IoT)
 ThingSpeak
 A few of our favorite IoT applications
 Performance Trends and Alerts on ThingSpeak
17
Case Study: Performance Optimization of MATLAB Code
 A customer ran into slow performance issues with her code in MATLAB.
She saw such slow performance in that she decided to recode her
algorithm in another language. We wanted to show her some simple
techniques in MATLAB that could bring her code down to a more
reasonable running time.
18
What is the problem the user was trying to solve?
 The code generates locations on a 2D
grid with dimensions nx1 by nx2
 The code iterates through all possible
combinations of these initial and final
positions
19
The core of the code
20
Measure performance of the original code
21
Set up ThingSpeak channel
22
Post performance data to our ThingSpeak channel
23
Focusing in on the Performance Improvements
February 1 – baseline at 23.8s
 If we hover over the data points in the trend plots, or zoom in, we will spot the key
optimizations that helped performance of Sarah's code. Initial Code measured at around
23.8s:

24
Performance Optimizations We Used
 Preallocation
 Vectorization
 Elimination of repeated calculations
25
Optimization #1: Preallocation
 Listen to Code Analyzer!
26
Focusing in on the Performance Improvements
Optimization #1: February 20 – 22.3s
 On February 20, we switched to Code with Preallocation, speeding up to
around 22.3s, or by 6%:
27
Optimization #2
Vectorize the inner two loops
28
Focusing in on the Performance Improvements
Optimization #2: May 20 - down to 0.2s!
 On May 2, we implemented the optimization to Vectorize the Inner Two loops; this sped up
the code 100+-fold, to 0.2s.
29
Optimization #3
Vectorize the inner three loops
30
Focusing in on the Performance Improvements
Optimization #3: June 9 – dipped down to 0.06s!
 Finally, on June 9, we implemented Vectorize the Inner Three Loops, and the code sped up
to 0.06s, or by 67%.
31
Final Optimization, #4: Eliminate redundant work
32
 In all, our trends capture pretty awesome 400+-fold performance improvement in the past
few months!
The result: 400x as fast overall!
33
What’s Next?
 Use Analysis and Visualization tools on ThingSpeak for more advanced
data analysis like displaying error bars, normalizing performance across a
suite of tests
 Set up email alerts in response to changes in performance
 Use machine learning for anomaly detection and to generate smart alerts
34
Thank you!
 Many thanks to the ThingSpeak team for help with these slides and for
creating and growing ThingSpeak!
 A big thank you to Andy Campbell for helping me publish a MATLAB Central
blog post on this
@anoushnajarian
Anoush.Najarian@mathworks.com
linkedin.com/in/anoushnajarian

More Related Content

What's hot

IOT Based Environmental Pollution Monitoring System
IOT Based Environmental Pollution Monitoring SystemIOT Based Environmental Pollution Monitoring System
IOT Based Environmental Pollution Monitoring System
IRJET Journal
 
Internet of things (IoT)
Internet of things (IoT)Internet of things (IoT)
Internet of things (IoT)
Prakash Honnur
 
Internet of Things (IoT) - IK
Internet of Things (IoT) - IKInternet of Things (IoT) - IK
Internet of Things (IoT) - IK
Ilgın Kavaklıoğulları
 
Iot architecture
Iot architectureIot architecture
Iot architecture
Anam Iqbal
 
IoT sensor devices
IoT sensor devicesIoT sensor devices
IoT sensor devices
Roman Staszewski
 
Industrial Internet of Things (IIOT)
Industrial Internet of Things (IIOT)Industrial Internet of Things (IIOT)
Industrial Internet of Things (IIOT)
Ikbal Ahmed
 
Sensors in IOT
Sensors in IOTSensors in IOT
Sensors in IOT
ATS SBGI MIRAJ
 
iot industry automation
iot industry automationiot industry automation
iot industry automationmansi sharma
 
Internet of Things and its applications
Internet of Things and its applicationsInternet of Things and its applications
Internet of Things and its applications
Pasquale Puzio
 
wireless sensor network my seminar ppt
wireless sensor network my seminar pptwireless sensor network my seminar ppt
wireless sensor network my seminar pptEisha Madhwal
 
Arduino based health monitoring system
Arduino based health monitoring systemArduino based health monitoring system
Arduino based health monitoring system
Yousuf Shaikh
 
Internet of things (IOT) Presentation-PPT
Internet of things (IOT) Presentation-PPTInternet of things (IOT) Presentation-PPT
Internet of things (IOT) Presentation-PPT
Charan Vimala
 
Introduction to Internet of Things Hardware
Introduction to Internet of Things HardwareIntroduction to Internet of Things Hardware
Introduction to Internet of Things Hardware
Daniel Eichhorn
 
IoT Development - Opportunities and Challenges
IoT Development - Opportunities and ChallengesIoT Development - Opportunities and Challenges
IoT Development - Opportunities and Challenges
Asim Rais Siddiqui
 
Internet of Things (IoT) Based Smart Security & Home Automation System.
Internet of Things (IoT) Based Smart Security & Home Automation System.Internet of Things (IoT) Based Smart Security & Home Automation System.
Internet of Things (IoT) Based Smart Security & Home Automation System.
sayed78
 
Smart home Environment using iot
Smart home Environment using iotSmart home Environment using iot
Smart home Environment using iot
parvathy s m
 
Raspberry Pi
Raspberry Pi Raspberry Pi
Raspberry Pi
Selvaraj Seerangan
 
IoT Design Principles
IoT Design PrinciplesIoT Design Principles
IoT Design Principles
ardexateam
 
Home automation ppt
Home automation pptHome automation ppt
Home automation ppt
Anshul97842474929
 

What's hot (20)

IOT Based Environmental Pollution Monitoring System
IOT Based Environmental Pollution Monitoring SystemIOT Based Environmental Pollution Monitoring System
IOT Based Environmental Pollution Monitoring System
 
Internet of things (IoT)
Internet of things (IoT)Internet of things (IoT)
Internet of things (IoT)
 
Internet of Things (IoT) - IK
Internet of Things (IoT) - IKInternet of Things (IoT) - IK
Internet of Things (IoT) - IK
 
Iot architecture
Iot architectureIot architecture
Iot architecture
 
Introduction to IOT
Introduction to IOTIntroduction to IOT
Introduction to IOT
 
IoT sensor devices
IoT sensor devicesIoT sensor devices
IoT sensor devices
 
Industrial Internet of Things (IIOT)
Industrial Internet of Things (IIOT)Industrial Internet of Things (IIOT)
Industrial Internet of Things (IIOT)
 
Sensors in IOT
Sensors in IOTSensors in IOT
Sensors in IOT
 
iot industry automation
iot industry automationiot industry automation
iot industry automation
 
Internet of Things and its applications
Internet of Things and its applicationsInternet of Things and its applications
Internet of Things and its applications
 
wireless sensor network my seminar ppt
wireless sensor network my seminar pptwireless sensor network my seminar ppt
wireless sensor network my seminar ppt
 
Arduino based health monitoring system
Arduino based health monitoring systemArduino based health monitoring system
Arduino based health monitoring system
 
Internet of things (IOT) Presentation-PPT
Internet of things (IOT) Presentation-PPTInternet of things (IOT) Presentation-PPT
Internet of things (IOT) Presentation-PPT
 
Introduction to Internet of Things Hardware
Introduction to Internet of Things HardwareIntroduction to Internet of Things Hardware
Introduction to Internet of Things Hardware
 
IoT Development - Opportunities and Challenges
IoT Development - Opportunities and ChallengesIoT Development - Opportunities and Challenges
IoT Development - Opportunities and Challenges
 
Internet of Things (IoT) Based Smart Security & Home Automation System.
Internet of Things (IoT) Based Smart Security & Home Automation System.Internet of Things (IoT) Based Smart Security & Home Automation System.
Internet of Things (IoT) Based Smart Security & Home Automation System.
 
Smart home Environment using iot
Smart home Environment using iotSmart home Environment using iot
Smart home Environment using iot
 
Raspberry Pi
Raspberry Pi Raspberry Pi
Raspberry Pi
 
IoT Design Principles
IoT Design PrinciplesIoT Design Principles
IoT Design Principles
 
Home automation ppt
Home automation pptHome automation ppt
Home automation ppt
 

Viewers also liked

What we learned from #CMGimPACt Performance and Capacity Conference attendee ...
What we learned from #CMGimPACt Performance and Capacity Conference attendee ...What we learned from #CMGimPACt Performance and Capacity Conference attendee ...
What we learned from #CMGimPACt Performance and Capacity Conference attendee ...
Anoush Najarian
 
Social Media for #CMG2015
Social Media for #CMG2015Social Media for #CMG2015
Social Media for #CMG2015
Anoush Najarian
 
Performance OR Capacity #CMGimPACt2016
Performance OR Capacity #CMGimPACt2016 Performance OR Capacity #CMGimPACt2016
Performance OR Capacity #CMGimPACt2016
Alex Gilgur
 
Arduino seminar report
Arduino seminar reportArduino seminar report
Arduino seminar report
Zaka Jutt
 
Arduino 2 Final Report (final)
Arduino 2 Final Report (final)Arduino 2 Final Report (final)
Arduino 2 Final Report (final)Mohammad Molani
 
Queuing model based load testing of large enterprise applications
Queuing model based load testing of large enterprise applicationsQueuing model based load testing of large enterprise applications
Queuing model based load testing of large enterprise applications
Leonid Grinshpan, Ph.D.
 
Report On Arduino
Report On  ArduinoReport On  Arduino
Report On Arduino
TongXu520
 
Open / Free Cloud platforms and Open Hardware Systems
Open / Free Cloud platforms and Open Hardware SystemsOpen / Free Cloud platforms and Open Hardware Systems
Open / Free Cloud platforms and Open Hardware Systems
Charalampos Doukas
 
IoT with Arduino
IoT with ArduinoIoT with Arduino
IoT with Arduino
Arvind Singh
 
25 Examples of Native Analytics in Modern Products
25 Examples of Native Analytics in Modern Products25 Examples of Native Analytics in Modern Products
25 Examples of Native Analytics in Modern Products
Keen
 
Arduino、Web 到 IoT
Arduino、Web 到 IoTArduino、Web 到 IoT
Arduino、Web 到 IoT
Justin Lin
 
Android Control Hardware and Arduino IoT ( 22 Aug 15 )
Android Control Hardware and Arduino IoT ( 22 Aug 15 )Android Control Hardware and Arduino IoT ( 22 Aug 15 )
Android Control Hardware and Arduino IoT ( 22 Aug 15 )
Adun Nanthakaew
 
Heart Rate Powerpoint
Heart Rate PowerpointHeart Rate Powerpoint
Heart Rate Powerpoint
mmoyerhealth
 
Microcontroller based heart rate meter
Microcontroller based heart rate meterMicrocontroller based heart rate meter
Microcontroller based heart rate meter
Chetana Nair
 
Automatic Wireless Health Monitoring System In Hospitals For Patients
Automatic Wireless Health Monitoring System In Hospitals For PatientsAutomatic Wireless Health Monitoring System In Hospitals For Patients
Automatic Wireless Health Monitoring System In Hospitals For Patients
Edgefxkits & Solutions
 
Wireless human health Monitor
Wireless human health MonitorWireless human health Monitor
Wireless human health Monitor
Amarendra K Yadav
 
Presentation on home automation
Presentation on home automationPresentation on home automation
Presentation on home automation
Subhash Kumar Yadav
 
Heart beat monitor system PPT
Heart beat monitor system PPT Heart beat monitor system PPT
Heart beat monitor system PPT
Anand Dwivedi
 
Boston DevOps Days 2016: Implementing Metrics Driven DevOps - Why and How
Boston DevOps Days 2016: Implementing Metrics Driven DevOps - Why and HowBoston DevOps Days 2016: Implementing Metrics Driven DevOps - Why and How
Boston DevOps Days 2016: Implementing Metrics Driven DevOps - Why and How
Andreas Grabner
 
Slideshare Powerpoint presentation
Slideshare Powerpoint presentationSlideshare Powerpoint presentation
Slideshare Powerpoint presentation
elliehood
 

Viewers also liked (20)

What we learned from #CMGimPACt Performance and Capacity Conference attendee ...
What we learned from #CMGimPACt Performance and Capacity Conference attendee ...What we learned from #CMGimPACt Performance and Capacity Conference attendee ...
What we learned from #CMGimPACt Performance and Capacity Conference attendee ...
 
Social Media for #CMG2015
Social Media for #CMG2015Social Media for #CMG2015
Social Media for #CMG2015
 
Performance OR Capacity #CMGimPACt2016
Performance OR Capacity #CMGimPACt2016 Performance OR Capacity #CMGimPACt2016
Performance OR Capacity #CMGimPACt2016
 
Arduino seminar report
Arduino seminar reportArduino seminar report
Arduino seminar report
 
Arduino 2 Final Report (final)
Arduino 2 Final Report (final)Arduino 2 Final Report (final)
Arduino 2 Final Report (final)
 
Queuing model based load testing of large enterprise applications
Queuing model based load testing of large enterprise applicationsQueuing model based load testing of large enterprise applications
Queuing model based load testing of large enterprise applications
 
Report On Arduino
Report On  ArduinoReport On  Arduino
Report On Arduino
 
Open / Free Cloud platforms and Open Hardware Systems
Open / Free Cloud platforms and Open Hardware SystemsOpen / Free Cloud platforms and Open Hardware Systems
Open / Free Cloud platforms and Open Hardware Systems
 
IoT with Arduino
IoT with ArduinoIoT with Arduino
IoT with Arduino
 
25 Examples of Native Analytics in Modern Products
25 Examples of Native Analytics in Modern Products25 Examples of Native Analytics in Modern Products
25 Examples of Native Analytics in Modern Products
 
Arduino、Web 到 IoT
Arduino、Web 到 IoTArduino、Web 到 IoT
Arduino、Web 到 IoT
 
Android Control Hardware and Arduino IoT ( 22 Aug 15 )
Android Control Hardware and Arduino IoT ( 22 Aug 15 )Android Control Hardware and Arduino IoT ( 22 Aug 15 )
Android Control Hardware and Arduino IoT ( 22 Aug 15 )
 
Heart Rate Powerpoint
Heart Rate PowerpointHeart Rate Powerpoint
Heart Rate Powerpoint
 
Microcontroller based heart rate meter
Microcontroller based heart rate meterMicrocontroller based heart rate meter
Microcontroller based heart rate meter
 
Automatic Wireless Health Monitoring System In Hospitals For Patients
Automatic Wireless Health Monitoring System In Hospitals For PatientsAutomatic Wireless Health Monitoring System In Hospitals For Patients
Automatic Wireless Health Monitoring System In Hospitals For Patients
 
Wireless human health Monitor
Wireless human health MonitorWireless human health Monitor
Wireless human health Monitor
 
Presentation on home automation
Presentation on home automationPresentation on home automation
Presentation on home automation
 
Heart beat monitor system PPT
Heart beat monitor system PPT Heart beat monitor system PPT
Heart beat monitor system PPT
 
Boston DevOps Days 2016: Implementing Metrics Driven DevOps - Why and How
Boston DevOps Days 2016: Implementing Metrics Driven DevOps - Why and HowBoston DevOps Days 2016: Implementing Metrics Driven DevOps - Why and How
Boston DevOps Days 2016: Implementing Metrics Driven DevOps - Why and How
 
Slideshare Powerpoint presentation
Slideshare Powerpoint presentationSlideshare Powerpoint presentation
Slideshare Powerpoint presentation
 

Similar to Performance trends and alerts with ThingSpeak IoT

IBM Bluemix Nice Meetup #1 - CEEI NCA - 20160630 -
IBM Bluemix Nice Meetup #1 - CEEI NCA - 20160630 - IBM Bluemix Nice Meetup #1 - CEEI NCA - 20160630 -
IBM Bluemix Nice Meetup #1 - CEEI NCA - 20160630 -
IBM France Lab
 
Final Year Project For Computer Science
Final Year Project For  Computer ScienceFinal Year Project For  Computer Science
Final Year Project For Computer Science
Simplilearn
 
PPT on Weather Monitoring System-converted (1).pptx
PPT on Weather Monitoring System-converted (1).pptxPPT on Weather Monitoring System-converted (1).pptx
PPT on Weather Monitoring System-converted (1).pptx
abhisheksinghcompute
 
Jprofessionals co create the future of your city
Jprofessionals co create the future of your cityJprofessionals co create the future of your city
Jprofessionals co create the future of your city
Pance Cavkovski
 
Prototyping the Internet of Things
Prototyping the Internet of ThingsPrototyping the Internet of Things
Prototyping the Internet of Things
David Bliss
 
Using bluemix predictive analytics service in Node-RED
Using bluemix predictive analytics service in Node-REDUsing bluemix predictive analytics service in Node-RED
Using bluemix predictive analytics service in Node-RED
Lionel Mommeja
 
Data Science for Internet of Things with Ajit Jaokar
Data Science for Internet of Things with Ajit JaokarData Science for Internet of Things with Ajit Jaokar
Data Science for Internet of Things with Ajit Jaokar
Jessica Willis
 
Ajit jaokar slides
Ajit jaokar slidesAjit jaokar slides
Ajit jaokar slides
Sheamus McGovern
 
IRJET- Information Logging and Investigation of Control Framework Utilizing D...
IRJET- Information Logging and Investigation of Control Framework Utilizing D...IRJET- Information Logging and Investigation of Control Framework Utilizing D...
IRJET- Information Logging and Investigation of Control Framework Utilizing D...
IRJET Journal
 
SAP Leonardo
SAP LeonardoSAP Leonardo
SAP Leonardo
Mahmoud Farag
 
Self-Service Analytics on Hadoop: Lessons Learned
Self-Service Analytics on Hadoop: Lessons LearnedSelf-Service Analytics on Hadoop: Lessons Learned
Self-Service Analytics on Hadoop: Lessons Learned
DataWorks Summit/Hadoop Summit
 
BigData @ comScore
BigData @ comScoreBigData @ comScore
BigData @ comScoreeaiti
 
Embedded system & IoT Course | certification Program | Learn and Build
Embedded system & IoT Course | certification Program | Learn and BuildEmbedded system & IoT Course | certification Program | Learn and Build
Embedded system & IoT Course | certification Program | Learn and Build
Learn and Build
 
Big Data Analytics for Real Time Systems
Big Data Analytics for Real Time SystemsBig Data Analytics for Real Time Systems
Big Data Analytics for Real Time Systems
Kamalika Dutta
 
Splunk All the Things: Our First 3 Months Monitoring Web Service APIs - Splun...
Splunk All the Things: Our First 3 Months Monitoring Web Service APIs - Splun...Splunk All the Things: Our First 3 Months Monitoring Web Service APIs - Splun...
Splunk All the Things: Our First 3 Months Monitoring Web Service APIs - Splun...
Dan Cundiff
 
AWS Summit Berlin 2013 - Big Data Analytics
AWS Summit Berlin 2013 - Big Data AnalyticsAWS Summit Berlin 2013 - Big Data Analytics
AWS Summit Berlin 2013 - Big Data Analytics
AWS Germany
 
SoftElegance Services: Data Science, Data Engineering, Big Data Architecture
SoftElegance Services: Data Science, Data Engineering, Big Data Architecture SoftElegance Services: Data Science, Data Engineering, Big Data Architecture
SoftElegance Services: Data Science, Data Engineering, Big Data Architecture
Daryna Dubitska
 
MongoDB.local Atlanta: MongoDB @ Sensus: Xylem IoT and MongoDB
MongoDB.local Atlanta: MongoDB @ Sensus: Xylem IoT and MongoDBMongoDB.local Atlanta: MongoDB @ Sensus: Xylem IoT and MongoDB
MongoDB.local Atlanta: MongoDB @ Sensus: Xylem IoT and MongoDB
MongoDB
 
Real-Time Analytics with Confluent and MemSQL
Real-Time Analytics with Confluent and MemSQLReal-Time Analytics with Confluent and MemSQL
Real-Time Analytics with Confluent and MemSQL
SingleStore
 

Similar to Performance trends and alerts with ThingSpeak IoT (20)

IBM Bluemix Nice Meetup #1 - CEEI NCA - 20160630 -
IBM Bluemix Nice Meetup #1 - CEEI NCA - 20160630 - IBM Bluemix Nice Meetup #1 - CEEI NCA - 20160630 -
IBM Bluemix Nice Meetup #1 - CEEI NCA - 20160630 -
 
Final Year Project For Computer Science
Final Year Project For  Computer ScienceFinal Year Project For  Computer Science
Final Year Project For Computer Science
 
PPT on Weather Monitoring System-converted (1).pptx
PPT on Weather Monitoring System-converted (1).pptxPPT on Weather Monitoring System-converted (1).pptx
PPT on Weather Monitoring System-converted (1).pptx
 
Jprofessionals co create the future of your city
Jprofessionals co create the future of your cityJprofessionals co create the future of your city
Jprofessionals co create the future of your city
 
Prototyping the Internet of Things
Prototyping the Internet of ThingsPrototyping the Internet of Things
Prototyping the Internet of Things
 
Using bluemix predictive analytics service in Node-RED
Using bluemix predictive analytics service in Node-REDUsing bluemix predictive analytics service in Node-RED
Using bluemix predictive analytics service in Node-RED
 
Data Science for Internet of Things with Ajit Jaokar
Data Science for Internet of Things with Ajit JaokarData Science for Internet of Things with Ajit Jaokar
Data Science for Internet of Things with Ajit Jaokar
 
Ajit jaokar slides
Ajit jaokar slidesAjit jaokar slides
Ajit jaokar slides
 
IRJET- Information Logging and Investigation of Control Framework Utilizing D...
IRJET- Information Logging and Investigation of Control Framework Utilizing D...IRJET- Information Logging and Investigation of Control Framework Utilizing D...
IRJET- Information Logging and Investigation of Control Framework Utilizing D...
 
SAP Leonardo
SAP LeonardoSAP Leonardo
SAP Leonardo
 
Self-Service Analytics on Hadoop: Lessons Learned
Self-Service Analytics on Hadoop: Lessons LearnedSelf-Service Analytics on Hadoop: Lessons Learned
Self-Service Analytics on Hadoop: Lessons Learned
 
BigData @ comScore
BigData @ comScoreBigData @ comScore
BigData @ comScore
 
Embedded system & IoT Course | certification Program | Learn and Build
Embedded system & IoT Course | certification Program | Learn and BuildEmbedded system & IoT Course | certification Program | Learn and Build
Embedded system & IoT Course | certification Program | Learn and Build
 
Mendix-7-Keynote
Mendix-7-KeynoteMendix-7-Keynote
Mendix-7-Keynote
 
Big Data Analytics for Real Time Systems
Big Data Analytics for Real Time SystemsBig Data Analytics for Real Time Systems
Big Data Analytics for Real Time Systems
 
Splunk All the Things: Our First 3 Months Monitoring Web Service APIs - Splun...
Splunk All the Things: Our First 3 Months Monitoring Web Service APIs - Splun...Splunk All the Things: Our First 3 Months Monitoring Web Service APIs - Splun...
Splunk All the Things: Our First 3 Months Monitoring Web Service APIs - Splun...
 
AWS Summit Berlin 2013 - Big Data Analytics
AWS Summit Berlin 2013 - Big Data AnalyticsAWS Summit Berlin 2013 - Big Data Analytics
AWS Summit Berlin 2013 - Big Data Analytics
 
SoftElegance Services: Data Science, Data Engineering, Big Data Architecture
SoftElegance Services: Data Science, Data Engineering, Big Data Architecture SoftElegance Services: Data Science, Data Engineering, Big Data Architecture
SoftElegance Services: Data Science, Data Engineering, Big Data Architecture
 
MongoDB.local Atlanta: MongoDB @ Sensus: Xylem IoT and MongoDB
MongoDB.local Atlanta: MongoDB @ Sensus: Xylem IoT and MongoDBMongoDB.local Atlanta: MongoDB @ Sensus: Xylem IoT and MongoDB
MongoDB.local Atlanta: MongoDB @ Sensus: Xylem IoT and MongoDB
 
Real-Time Analytics with Confluent and MemSQL
Real-Time Analytics with Confluent and MemSQLReal-Time Analytics with Confluent and MemSQL
Real-Time Analytics with Confluent and MemSQL
 

Recently uploaded

一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
oz8q3jxlp
 
一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单
enxupq
 
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
ukgaet
 
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
NABLAS株式会社
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP
 
一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单
ocavb
 
Q1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year ReboundQ1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year Rebound
Oppotus
 
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
mbawufebxi
 
Machine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptxMachine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptx
balafet
 
Empowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptxEmpowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptx
benishzehra469
 
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
vcaxypu
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
Subhajit Sahu
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
ewymefz
 
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project PresentationPredicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Boston Institute of Analytics
 
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdfSample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Linda486226
 
一比一原版(CU毕业证)卡尔顿大学毕业证成绩单
一比一原版(CU毕业证)卡尔顿大学毕业证成绩单一比一原版(CU毕业证)卡尔顿大学毕业证成绩单
一比一原版(CU毕业证)卡尔顿大学毕业证成绩单
yhkoc
 
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
axoqas
 
Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)
TravisMalana
 
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
ewymefz
 
standardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghhstandardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghh
ArpitMalhotra16
 

Recently uploaded (20)

一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
一比一原版(Deakin毕业证书)迪肯大学毕业证如何办理
 
一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单一比一原版(YU毕业证)约克大学毕业证成绩单
一比一原版(YU毕业证)约克大学毕业证成绩单
 
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
一比一原版(UVic毕业证)维多利亚大学毕业证成绩单
 
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
【社内勉強会資料_Octo: An Open-Source Generalist Robot Policy】
 
Criminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdfCriminal IP - Threat Hunting Webinar.pdf
Criminal IP - Threat Hunting Webinar.pdf
 
一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单一比一原版(TWU毕业证)西三一大学毕业证成绩单
一比一原版(TWU毕业证)西三一大学毕业证成绩单
 
Q1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year ReboundQ1’2024 Update: MYCI’s Leap Year Rebound
Q1’2024 Update: MYCI’s Leap Year Rebound
 
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
一比一原版(Bradford毕业证书)布拉德福德大学毕业证如何办理
 
Machine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptxMachine learning and optimization techniques for electrical drives.pptx
Machine learning and optimization techniques for electrical drives.pptx
 
Empowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptxEmpowering Data Analytics Ecosystem.pptx
Empowering Data Analytics Ecosystem.pptx
 
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
一比一原版(ArtEZ毕业证)ArtEZ艺术学院毕业证成绩单
 
Adjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTESAdjusting primitives for graph : SHORT REPORT / NOTES
Adjusting primitives for graph : SHORT REPORT / NOTES
 
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
一比一原版(IIT毕业证)伊利诺伊理工大学毕业证成绩单
 
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project PresentationPredicting Product Ad Campaign Performance: A Data Analysis Project Presentation
Predicting Product Ad Campaign Performance: A Data Analysis Project Presentation
 
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdfSample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
Sample_Global Non-invasive Prenatal Testing (NIPT) Market, 2019-2030.pdf
 
一比一原版(CU毕业证)卡尔顿大学毕业证成绩单
一比一原版(CU毕业证)卡尔顿大学毕业证成绩单一比一原版(CU毕业证)卡尔顿大学毕业证成绩单
一比一原版(CU毕业证)卡尔顿大学毕业证成绩单
 
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
做(mqu毕业证书)麦考瑞大学毕业证硕士文凭证书学费发票原版一模一样
 
Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)Malana- Gimlet Market Analysis (Portfolio 2)
Malana- Gimlet Market Analysis (Portfolio 2)
 
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
一比一原版(UofM毕业证)明尼苏达大学毕业证成绩单
 
standardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghhstandardisation of garbhpala offhgfffghh
standardisation of garbhpala offhgfffghh
 

Performance trends and alerts with ThingSpeak IoT

  • 1. 1© 2016 The MathWorks, Inc. Trending Now! Performance Trends and Alerts with ThingSpeak IoT By Anoush Najarian • MATLAB Performance Team • MathWorks Boston CMG • Social Media Chair at #CMGimPACt • CMG Board of Directors @anoushnajarian
  • 2. 2 Agenda  The Internet of Things (IoT)  ThingSpeak  A few of our favorite IoT applications  Performance Trends and Alerts on ThingSpeak
  • 3. 3 The Internet of Things is… The internet of things (IoT) is the internetworking of physical devices, vehicles (also referred to as "connected devices" and "smart devices"), buildings and other items—embedded with electronics, software, sensors, actuators, and network connectivity that enable these objects to collect and exchange data. https://en.wikipedia.org/wiki/Internet_of_things
  • 4. 4 Things…  Typical “thing” – A sensor with connectivity – An actuator with connectivity  They are constrained – Processing – Memory – Protocols – Clock – Power  They run code over and over – sometimes they sleep wake up and run code, and go back to sleep  There are lots of them
  • 5. 5 What is the Internet of Things? Edge Nodes Exploratory Analysis Analytic IoT Platform Deploy analytics to aggregator Deploy algorithms to nodes/devices
  • 6. 6 Agenda  The Internet of Things (IoT)  ThingSpeak  A few of our favorite IoT applications  Performance Trends and Alerts on ThingSpeak
  • 7. 7 What is ThingSpeak?  Analytic IoT platform – Collect data from sensors, “things” – Visualize data instantly – Has more than 60,000 users  Analyze data – MATLAB integration allows users to run scheduled code on data coming into ThingSpeak  Act on data – E.g. send a tweet when the temperature in your backyard reaches 32 degrees
  • 8. 8 Who is ThingSpeak for?  Makers  Academics  Engineers and scientists https://thingspeak.com/
  • 9. 9 ThingSpeak: Collecting Data using Channels  For any new data, first login and create a channel in ThingSpeak  Channels have read and write API keys and can be public or private  A channel is made up of 8 fields and can store 8 streams of data (Temp, Humidity, etc.)  Channels can be updated at a maximum rate of once every 15 seconds ThingSpeak Weather Channel
  • 10. 10 Agenda  The Internet of Things (IoT)  ThingSpeak  A few of our favorite IoT applications  Performance Trends and Alerts on ThingSpeak
  • 11. 11 Objectives  Measure, explore, discover weather patterns  Provide niche weather service Solution  Arduino station with weather sensors  Cloud-based aggregation and analysis  Full example available at makerzone.mathworks.com Example 1: Monitoring Weather
  • 12. 12 Fun with Arduino!  Arduino Serial Monitor records the data from the temperature sensor, the pressure sensor, and the humitidity sensor, as transmitted to ThingSpeak!  Placing ice on the Arduino temperature sensor to cool it off!
  • 13. 13 Fun with Raspberry Pi  Building a circuit with a temperature sensor in this week's  Posting the temperature readings from the sensor to ThingSpeak using Twitter.
  • 14. 14 Objectives  Measure, explore, discover traffic patterns  Provide live local traffic information service Solution  RaspberryPi + webcam  Automated deployment of vision algorithms on embedded sensor  Full example available at makerzone.mathworks.com Example 2: Monitoring Traffic
  • 15. 15 Smart Agriculture  Vineyards  Green Houses  Golf Courses  Weather Stations – drought studies, radiation analysis  Compost – Fungus prevention
  • 16. 16 Agenda  The Internet of Things (IoT)  ThingSpeak  A few of our favorite IoT applications  Performance Trends and Alerts on ThingSpeak
  • 17. 17 Case Study: Performance Optimization of MATLAB Code  A customer ran into slow performance issues with her code in MATLAB. She saw such slow performance in that she decided to recode her algorithm in another language. We wanted to show her some simple techniques in MATLAB that could bring her code down to a more reasonable running time.
  • 18. 18 What is the problem the user was trying to solve?  The code generates locations on a 2D grid with dimensions nx1 by nx2  The code iterates through all possible combinations of these initial and final positions
  • 19. 19 The core of the code
  • 20. 20 Measure performance of the original code
  • 22. 22 Post performance data to our ThingSpeak channel
  • 23. 23 Focusing in on the Performance Improvements February 1 – baseline at 23.8s  If we hover over the data points in the trend plots, or zoom in, we will spot the key optimizations that helped performance of Sarah's code. Initial Code measured at around 23.8s: 
  • 24. 24 Performance Optimizations We Used  Preallocation  Vectorization  Elimination of repeated calculations
  • 25. 25 Optimization #1: Preallocation  Listen to Code Analyzer!
  • 26. 26 Focusing in on the Performance Improvements Optimization #1: February 20 – 22.3s  On February 20, we switched to Code with Preallocation, speeding up to around 22.3s, or by 6%:
  • 28. 28 Focusing in on the Performance Improvements Optimization #2: May 20 - down to 0.2s!  On May 2, we implemented the optimization to Vectorize the Inner Two loops; this sped up the code 100+-fold, to 0.2s.
  • 29. 29 Optimization #3 Vectorize the inner three loops
  • 30. 30 Focusing in on the Performance Improvements Optimization #3: June 9 – dipped down to 0.06s!  Finally, on June 9, we implemented Vectorize the Inner Three Loops, and the code sped up to 0.06s, or by 67%.
  • 31. 31 Final Optimization, #4: Eliminate redundant work
  • 32. 32  In all, our trends capture pretty awesome 400+-fold performance improvement in the past few months! The result: 400x as fast overall!
  • 33. 33 What’s Next?  Use Analysis and Visualization tools on ThingSpeak for more advanced data analysis like displaying error bars, normalizing performance across a suite of tests  Set up email alerts in response to changes in performance  Use machine learning for anomaly detection and to generate smart alerts
  • 34. 34 Thank you!  Many thanks to the ThingSpeak team for help with these slides and for creating and growing ThingSpeak!  A big thank you to Andy Campbell for helping me publish a MATLAB Central blog post on this @anoushnajarian Anoush.Najarian@mathworks.com linkedin.com/in/anoushnajarian

Editor's Notes

  1. Internet of Things (IoT) describes an emerging trend where a large number of embedded devices (things) are connected to the Internet. These connected devices communicate with people and other things and often provide sensor data to cloud storage and cloud computing resources where the data is processed and analyzed to gain important insights. Cheap cloud computing power and increased device connectivity is enabling this trend. IoT solutions are built for many vertical applications such as environmental monitoring and control, health monitoring, vehicle fleet monitoring, industrial monitoring and control, and home automation. MATLAB® and Simulink® products support IoT systems by helping you develop and test edge node devices, access and aggregate data, and analyze IoT sensor data. At a high level, many IoT systems can be described using the diagram above. The left side of the diagram illustrates edge nodes. Edge nodes are devices that collect data and include devices such as wireless temperatures sensors, heart rate monitors, and hydraulic pressure sensors. The middle of the diagram shows the data aggregator. The aggregator collects, processes and stores data from many edge nodes that are often geographically dispersed, and it may have the capability to analyze and take action on the incoming data. The right side of the diagram depicts the historical analysis of data. In this case, the data is pulled from the aggregator into a software environment to allow researchers to gain insight from the data and to prototype algorithms that may eventually execute on the aggregator or on the edge node device itself.
  2. Show weather station channel
  3. Our channel: https://thingspeak.com/channels/14046
  4. https://thingspeak.com/channels/82845