SlideShare a Scribd company logo
1 of 19
Download to read offline
© 2013 IBM Corporation 
Real time video analytics with InfoSphere Streams, OpenCV and R 
data2day conference 2014, Karlsruhe 
Stephan Reimann – IT Specialist Big Data – stephan.reimann@de.ibm.com @stereimann 
Wilfried Hoge – IT Architect Big Data – hoge@de.ibm.com @wilfriedhoge
© 2014 IBM Corporation 
Motivation: Use machine data to make machines smarter 
Modern machines produces an incredible amount of data 
Use machine generated data to 
–make machines more efficient 
–reduce downtimes with better maintenance management 
–prevent failures 
-> make machines smarter 
Also use unstructured data such as video 
Use that data in real time 
2
© 2014 IBM Corporation 
The demo scenario: Imagine a tunnel drill equipment where the conveyor belt is continuously supervised by a video camera 
What if you can detect a problem in real time, and take an appropriate action such as stopping the machine to prevent damage? 
Our demo focuses on analyzing the data from a single camera to make it easy to understand; in a real life scenario there are usually many structured and unstructured data sources that are most likely combined (e.g. analyzing the image data together with speed info) 
And since we did not have one, we created one  
3
© 2014 IBM Corporation 
Traditional approach 
– Historical fact finding 
– Analyze persisted data 
– (Micro-) Batch philosophy 
– PULL approach 
Streaming analytics 
– Analyze the current moment / the now 
– Analyze data directly “in Motion” – without 
storing it 
– Analyze data at the speed it is created 
– PUSH approach 
Streaming analytics is a paradigm shift from pull to push analytics in 
real time, directly „on the wire“, data does not need to be persisted 
Data Repository Analysis Insight Data Analysis Insight 
4
© 2014 IBM Corporation 
LIVE - DEMO 
5
© 2014 IBM Corporation 
We have used standard algorithms from OpenCV to extract the inte- resting part of the pictures by learning and removing the background 
We are only interested in the objects that are on the conveyor belt, not in the conveyor belt 
But we don‘t know which objects will pass there, there may be many different 
One approach is to describe the background and filter it out, in other words: outlier analysis 
We have used a standard algorithm (CodeBook) from OpenCV (open source image analytics library) 
6
© 2014 IBM Corporation 
The background removal included sevaral steps such as data preparation & cleansing and background detection & removal 
7
© 2014 IBM Corporation 
The background removal included sevaral steps such as data preparation & cleansing and background detection & removal 
Filter: 
Select the area of interest 
Cleanse: Reduce the noise level 
Analyze & Transform: Learn the background and create a mask: black=background, white=foreground 
Cleanse: Reduce the noise level of the back- ground detection 
Transform: Combine the background detec- tion with the original image, it‘s basically a logical AND 
Just for visualization: 
Create the blue separator image 
Publish: 
The Export operators provide the data to other streaming analytics applications (here: the visuali- zation & the color analytics) via publish & subscribe 
8
© 2014 IBM Corporation 
Features 
Background 
Frequencies 
Spectrum 
Edges 
Camera Motion 
Energy 
Zero-crossings 
Models 
P 
P 
P 
P 
P 
P 
P 
P 
P 
P 
Positive Examples 
Negative 
Examples 
N 
N 
N 
N 
N 
N 
N 
N 
N 
N 
Labeled Data 
Unlabeled Data 
Addaboost 
K-means 
Regression 
Bayes Net 
Nearest Neighbor 
Neural Net 
Deep Belief Nets 
GMM 
Clustering 
Markov Model 
Decision Tree 
Expectation Maximization 
Factor Graph 
Shot Boundaries 
Semantics 
Multimedia Data 
Scenes 
Locations 
Settings 
Objects 
Activities 
Actions 
Objects 
Actions 
Behaviors 
People 
Objects 
Living 
Cars 
Animals 
People 
Vehicles 
Activities 
Scenes 
People 
Places 
Faces 
Objects 
Events 
Activities 
GMM 
SVMs 
Shape 
Texture 
Ensemble 
Classifiers 
Motion 
Moving Objects 
Active Learning 
Regions 
Scene Dynamics 
Tracks 
Color 
One approach to image analytics is extracting features and using a variety of statistical/mathematical concepts to deduce the semantics 
9
© 2014 IBM Corporation 
Visual Features 
Spatial Granularities 
Spatial-Frequency Information 
Spatial Information 
Distribution 
Local 
Texture 
Color Wavelet 
Tamura Texture 
Wavelet Texture 
Color Wavelet Texture 
Spatial Relation 
Edges/Shape 
Shape Moments 
Edge Histogram 
Siftogram 
Fourier Shape 
Image Type 
Image Statistics 
Dominant Colors 
Spatial 
Scales 
Scale- Orientation 
Hough Circle 
Max- Response Filters 
Curvelets 
Color (Pixels) 
Color Correlogram 
Color Moments 
Interest Points 
Thumbnail Image 
Local Binary Patterns 
Color Histogram 
Complexity 
1 3 
2 
Global 
Pyramid3 
Horiz. Parts 
Vertical 
Horizontal 
Layout 
Pyramid 
Grid 
Cross 
Center 
Typical image features used for analytics include color, shapes, texture and many more, we have focussed on color for the demo 
10
© 2014 IBM Corporation 
We have calculated several color features and the object‘s area, now we can use it for calculations / analytics 
Area (in pixel) Absolut Color Values Color Histogram 
The cool thing: Now you have attributes! It‘s structured! You can directly use it or combine it with other data sources, e.g. calculate conveyor belt throughput based on area and speed information. 
Analytics: Calculates the color attributes and the area 
Import: 
Receives the data from the background separation app via subscribe 
Visualization: 
Write the text and draw the color histogram 
11
© 2014 IBM Corporation 
We have „marked“ the structured data from the color analytics application and used it to train a model to detect object classes 
Describing explicitly what is characteristic for an object class is difficult/impossible. We have used the numbers to let the algorithm behind the model learn it. The algorithm just needs the marked data (=training data set). Marked data means we provided the information which object class was visible at which time. 
12
© 2014 IBM Corporation 
The model is created when the application is started based on the training data, and predicts the object class for each image in real time 
We have used R (an Open Source package for statistics and advanced analytics) to create the predictive model 
The model is created when the streaming analytics application is started 
Once the application is running, the individual score and the prediction are calculated for each individual image (or in other words: the predictive model is applied), this is called scoring 
In our demo the model is only trained once at startup and maintains constant afterwards, but it is also possible to refresh models continuously or in certain intervals 
Import: 
Receives the data from or analytics app via subscribe 
Visualization: 
Visualizes the results 
Visualization: Write the prediction as text on the image 
13
© 2014 IBM Corporation 
Features 
Background 
Frequencies 
Spectrum 
Edges 
Camera Motion 
Energy 
Zero-crossings 
Models 
P 
P 
P 
P 
P 
P 
P 
P 
P 
P 
Positive Examples 
Negative 
Examples 
N 
N 
N 
N 
N 
N 
N 
N 
N 
N 
Labeled Data 
Unlabeled Data 
Addaboost 
K-means 
Regression 
Bayes Net 
Nearest Neighbor 
Neural Net 
Deep Belief Nets 
GMM 
Clustering 
Markov Model 
Decision Tree 
Expectation Maximization 
Factor Graph 
Shot Boundaries 
Semantics 
Multimedia Data 
Scenes 
Locations 
Settings 
Objects 
Activities 
Actions 
Objects 
Actions 
Behaviors 
People 
Objects 
Living 
Cars 
Animals 
People 
Vehicles 
Activities 
Scenes 
People 
Places 
Faces 
Objects 
Events 
Activities 
GMM 
SVMs 
Shape 
Texture 
Ensemble 
Classifiers 
Motion 
Moving Objects 
Active Learning 
Regions 
Scene Dynamics 
Tracks 
Color 
Color 
Decision Tree 
The demo has shown image analytics on one feature and model, in reality a combination of several features & models is used 
14
© 2014 IBM Corporation 
A freely available Webcast from IBM Research provides further insights into image and video analytics and the theorie behind 
IBM Analytics Education Series: Lecture 7 - Multimedia - Image and Video Analytics 
15
© 2014 IBM Corporation 
R 
–Open Source software for statistics and advanced analytics 
–http://cran.r-project.org/ 
We have used InfoSphere Streams for the real time analytics and have extended it with R and OpenCV for the implementation 
OpenCV 
–Open Source computer vision and machine learning software library 
–http://opencv.org/ & InfoSphere Streams OpenCV Toolkit on GitHub 
InfoSphere Streams 
–Software for real time analytics on any kind of Big Data 
Free Quickstart Edition 
Developer Community 
www.ibmdw.net/streamsdev/ 
ibm.co/streamsqs 
+ 
Tutorials, Labs, Forum, ... 
GitHub Community 
github.com/IBMStreams 
+ 
Toolkits, 
Toolkits, 
Toolkits 
16
© 2014 IBM Corporation 
InfoSphere Streams is the result of an IBM research project, designed for high-throughput, low latency and to make streaming analytics easy 
Scale out 
Millions of Events per Second 
Complex Data & Analytics 
All kinds of data 
Complex analytics: Everything you can express via an algorithm 
Low Latency 
Analyzes data at the speed it is created 
Latencies down to μs 
Immediate action in real time 
+ 
+ 
InfoSphere Streams 
Capabilities 
How it works 
–Define apps as flow graphs consisting of sources (inputs), operators & sinks (outputs) 
–Extend the functionality with your code if required for full flexibility 
–The clustered, distributed runtime on commodity HW scales nearly limitless 
–GUIs for rapid development and operations make streaming analytics easy 
17
© 2014 IBM Corporation 
Telecommunication 
Transport 
Manufacturing 
Security 
Radio astronomy 
Healthcare 
Industrie 4.0 
Energy & Utilities 
Connected Car 
... optimizes the traffic in Stockholm and Dublin 
... analyzes acoustic signals to protect sensible areas 
... optimizes the quality of mobile networks 
... is the foundation for real-time campaign to increase customer satis- faction and revenues 
... analyzes and selects images in real-time within the world‘s largest radio telescope 
... and is a core component within many innovation initiatives 
Present / In production 
Trends 
Prototypes 
InfoSphere Streams is already used in a broad range of real time analytics applications across industries 
18
© 2014 IBM Corporation 
Where technology meets business potential: Start making sense of your data (in real time), it is possible! 
Gain value from your data 
19 
There are many opportu- nities to gain value from data. Let‘s talk how to make sense of your data! 
http://www-05.ibm.com/de/events/workshop/bigdata/ 
Make maintenance more predictable to reduce downtimes 
Detect error patterns to prevent failures 
Better understand complex systems and their dependencies to improve efficiency

More Related Content

What's hot

Vertex Perspectives | AI Optimized Chipsets | Part II
Vertex Perspectives | AI Optimized Chipsets | Part IIVertex Perspectives | AI Optimized Chipsets | Part II
Vertex Perspectives | AI Optimized Chipsets | Part IIVertex Holdings
 
An Open Source solution for Three-Dimensional documentation: archaeological a...
An Open Source solution for Three-Dimensional documentation: archaeological a...An Open Source solution for Three-Dimensional documentation: archaeological a...
An Open Source solution for Three-Dimensional documentation: archaeological a...Giulio Bigliardi
 
"The Path from ADAS to Autonomy," a Presentation from Strategy Analytics
"The Path from ADAS to Autonomy," a Presentation from Strategy Analytics"The Path from ADAS to Autonomy," a Presentation from Strategy Analytics
"The Path from ADAS to Autonomy," a Presentation from Strategy AnalyticsEdge AI and Vision Alliance
 
"Object Detection for Embedded Markets," a Presentation from Imagination Tech...
"Object Detection for Embedded Markets," a Presentation from Imagination Tech..."Object Detection for Embedded Markets," a Presentation from Imagination Tech...
"Object Detection for Embedded Markets," a Presentation from Imagination Tech...Edge AI and Vision Alliance
 
"Optimizing SSD Object Detection for Low-power Devices," a Presentation from ...
"Optimizing SSD Object Detection for Low-power Devices," a Presentation from ..."Optimizing SSD Object Detection for Low-power Devices," a Presentation from ...
"Optimizing SSD Object Detection for Low-power Devices," a Presentation from ...Edge AI and Vision Alliance
 
"Emerging Processor Architectures for Deep Learning: Options and Trade-offs,"...
"Emerging Processor Architectures for Deep Learning: Options and Trade-offs,"..."Emerging Processor Architectures for Deep Learning: Options and Trade-offs,"...
"Emerging Processor Architectures for Deep Learning: Options and Trade-offs,"...Edge AI and Vision Alliance
 
Vertex Perspectives | AI Optimized Chipsets | Part IV
Vertex Perspectives | AI Optimized Chipsets | Part IVVertex Perspectives | AI Optimized Chipsets | Part IV
Vertex Perspectives | AI Optimized Chipsets | Part IVVertex Holdings
 
Unity's Evolving Best Practices
Unity's Evolving Best PracticesUnity's Evolving Best Practices
Unity's Evolving Best PracticesUnity Technologies
 
“Secure Hardware Architecture for Embedded Vision,” a Presentation from Neuro...
“Secure Hardware Architecture for Embedded Vision,” a Presentation from Neuro...“Secure Hardware Architecture for Embedded Vision,” a Presentation from Neuro...
“Secure Hardware Architecture for Embedded Vision,” a Presentation from Neuro...Edge AI and Vision Alliance
 
Neuromophic device for Automotive
Neuromophic device for AutomotiveNeuromophic device for Automotive
Neuromophic device for AutomotiveYoshifumi Sakamoto
 
“An Industry Standard Performance Benchmark Suite for Machine Learning,” a Pr...
“An Industry Standard Performance Benchmark Suite for Machine Learning,” a Pr...“An Industry Standard Performance Benchmark Suite for Machine Learning,” a Pr...
“An Industry Standard Performance Benchmark Suite for Machine Learning,” a Pr...Edge AI and Vision Alliance
 
Arpan pal icdcn
Arpan pal icdcnArpan pal icdcn
Arpan pal icdcnArpan Pal
 
Vibration based condition monitoring of rolling element bearing using xg boo...
Vibration based condition monitoring of rolling element bearing using  xg boo...Vibration based condition monitoring of rolling element bearing using  xg boo...
Vibration based condition monitoring of rolling element bearing using xg boo...Conference Papers
 
image processing
image processingimage processing
image processingDhriya
 
Walkalytics - Reachability Analysis for your business
Walkalytics - Reachability Analysis for your businessWalkalytics - Reachability Analysis for your business
Walkalytics - Reachability Analysis for your businessStephan Heuel
 

What's hot (16)

Vertex Perspectives | AI Optimized Chipsets | Part II
Vertex Perspectives | AI Optimized Chipsets | Part IIVertex Perspectives | AI Optimized Chipsets | Part II
Vertex Perspectives | AI Optimized Chipsets | Part II
 
An Open Source solution for Three-Dimensional documentation: archaeological a...
An Open Source solution for Three-Dimensional documentation: archaeological a...An Open Source solution for Three-Dimensional documentation: archaeological a...
An Open Source solution for Three-Dimensional documentation: archaeological a...
 
"The Path from ADAS to Autonomy," a Presentation from Strategy Analytics
"The Path from ADAS to Autonomy," a Presentation from Strategy Analytics"The Path from ADAS to Autonomy," a Presentation from Strategy Analytics
"The Path from ADAS to Autonomy," a Presentation from Strategy Analytics
 
"Object Detection for Embedded Markets," a Presentation from Imagination Tech...
"Object Detection for Embedded Markets," a Presentation from Imagination Tech..."Object Detection for Embedded Markets," a Presentation from Imagination Tech...
"Object Detection for Embedded Markets," a Presentation from Imagination Tech...
 
"Optimizing SSD Object Detection for Low-power Devices," a Presentation from ...
"Optimizing SSD Object Detection for Low-power Devices," a Presentation from ..."Optimizing SSD Object Detection for Low-power Devices," a Presentation from ...
"Optimizing SSD Object Detection for Low-power Devices," a Presentation from ...
 
"Emerging Processor Architectures for Deep Learning: Options and Trade-offs,"...
"Emerging Processor Architectures for Deep Learning: Options and Trade-offs,"..."Emerging Processor Architectures for Deep Learning: Options and Trade-offs,"...
"Emerging Processor Architectures for Deep Learning: Options and Trade-offs,"...
 
Vertex Perspectives | AI Optimized Chipsets | Part IV
Vertex Perspectives | AI Optimized Chipsets | Part IVVertex Perspectives | AI Optimized Chipsets | Part IV
Vertex Perspectives | AI Optimized Chipsets | Part IV
 
Unity's Evolving Best Practices
Unity's Evolving Best PracticesUnity's Evolving Best Practices
Unity's Evolving Best Practices
 
“Secure Hardware Architecture for Embedded Vision,” a Presentation from Neuro...
“Secure Hardware Architecture for Embedded Vision,” a Presentation from Neuro...“Secure Hardware Architecture for Embedded Vision,” a Presentation from Neuro...
“Secure Hardware Architecture for Embedded Vision,” a Presentation from Neuro...
 
Neuromophic device for Automotive
Neuromophic device for AutomotiveNeuromophic device for Automotive
Neuromophic device for Automotive
 
“An Industry Standard Performance Benchmark Suite for Machine Learning,” a Pr...
“An Industry Standard Performance Benchmark Suite for Machine Learning,” a Pr...“An Industry Standard Performance Benchmark Suite for Machine Learning,” a Pr...
“An Industry Standard Performance Benchmark Suite for Machine Learning,” a Pr...
 
Arpan pal icdcn
Arpan pal icdcnArpan pal icdcn
Arpan pal icdcn
 
Vibration based condition monitoring of rolling element bearing using xg boo...
Vibration based condition monitoring of rolling element bearing using  xg boo...Vibration based condition monitoring of rolling element bearing using  xg boo...
Vibration based condition monitoring of rolling element bearing using xg boo...
 
Computer Vision Introduction
Computer Vision IntroductionComputer Vision Introduction
Computer Vision Introduction
 
image processing
image processingimage processing
image processing
 
Walkalytics - Reachability Analysis for your business
Walkalytics - Reachability Analysis for your businessWalkalytics - Reachability Analysis for your business
Walkalytics - Reachability Analysis for your business
 

Similar to Real time video analytics with InfoSphere Streams, OpenCV and R

Final Report on Optical Character Recognition
Final Report on Optical Character Recognition Final Report on Optical Character Recognition
Final Report on Optical Character Recognition Vidyut Singhania
 
Presentation1.2.pptx
Presentation1.2.pptxPresentation1.2.pptx
Presentation1.2.pptxpranaykusuma
 
GDSC Machine Learning Session Presentation
GDSC Machine Learning Session PresentationGDSC Machine Learning Session Presentation
GDSC Machine Learning Session Presentationgdsclavasa
 
Machine_Learning_with_MATLAB_Seminar_Latest.pdf
Machine_Learning_with_MATLAB_Seminar_Latest.pdfMachine_Learning_with_MATLAB_Seminar_Latest.pdf
Machine_Learning_with_MATLAB_Seminar_Latest.pdfCarlos Paredes
 
IRJET- Number Plate Recognition by using Open CV- Python
IRJET-  	  Number Plate Recognition by using Open CV- PythonIRJET-  	  Number Plate Recognition by using Open CV- Python
IRJET- Number Plate Recognition by using Open CV- PythonIRJET Journal
 
Smart Face Recognition System Analysis
Smart Face Recognition System AnalysisSmart Face Recognition System Analysis
Smart Face Recognition System AnalysisVishal Aditya
 
K anonymity for crowdsourcing database
K anonymity for crowdsourcing databaseK anonymity for crowdsourcing database
K anonymity for crowdsourcing databaseLeMeniz Infotech
 
IRJET- Smart Surveillance Cam using Face Recongition Alogrithm
IRJET-  	  Smart Surveillance Cam using Face Recongition AlogrithmIRJET-  	  Smart Surveillance Cam using Face Recongition Alogrithm
IRJET- Smart Surveillance Cam using Face Recongition AlogrithmIRJET Journal
 
2023 GEOINT Tutorial - Synthetic Data Tools for Computer Vision-Based AI - Re...
2023 GEOINT Tutorial - Synthetic Data Tools for Computer Vision-Based AI - Re...2023 GEOINT Tutorial - Synthetic Data Tools for Computer Vision-Based AI - Re...
2023 GEOINT Tutorial - Synthetic Data Tools for Computer Vision-Based AI - Re...Chris Andrews
 
The sensor data challenge - Innovations (not only) for the Internet of Things
The sensor data challenge - Innovations (not only) for the Internet of ThingsThe sensor data challenge - Innovations (not only) for the Internet of Things
The sensor data challenge - Innovations (not only) for the Internet of ThingsStephan Reimann
 
Tourists yatra guide (An android application)
Tourists yatra guide (An android application)Tourists yatra guide (An android application)
Tourists yatra guide (An android application)Umang Aggarwal
 
AI Powered Drones
AI Powered DronesAI Powered Drones
AI Powered DronesAchal Negi
 
2019 12 14 Global AI Bootcamp - Auto ML with Machine Learning.Net
2019 12 14 Global AI Bootcamp   - Auto ML with Machine Learning.Net2019 12 14 Global AI Bootcamp   - Auto ML with Machine Learning.Net
2019 12 14 Global AI Bootcamp - Auto ML with Machine Learning.NetBruno Capuano
 
Big Data Analytics
Big Data AnalyticsBig Data Analytics
Big Data AnalyticsOsman Ali
 

Similar to Real time video analytics with InfoSphere Streams, OpenCV and R (20)

Final Report on Optical Character Recognition
Final Report on Optical Character Recognition Final Report on Optical Character Recognition
Final Report on Optical Character Recognition
 
Robust ai
Robust aiRobust ai
Robust ai
 
Machine Learning at the Edge
Machine Learning at the EdgeMachine Learning at the Edge
Machine Learning at the Edge
 
Presentation1.2.pptx
Presentation1.2.pptxPresentation1.2.pptx
Presentation1.2.pptx
 
ARM and Machine Learning
ARM and Machine LearningARM and Machine Learning
ARM and Machine Learning
 
AI meets Big Data
AI meets Big DataAI meets Big Data
AI meets Big Data
 
GDSC BPIT ML Campaign.pptx
GDSC BPIT ML Campaign.pptxGDSC BPIT ML Campaign.pptx
GDSC BPIT ML Campaign.pptx
 
GDSC Machine Learning Session Presentation
GDSC Machine Learning Session PresentationGDSC Machine Learning Session Presentation
GDSC Machine Learning Session Presentation
 
Machine_Learning_with_MATLAB_Seminar_Latest.pdf
Machine_Learning_with_MATLAB_Seminar_Latest.pdfMachine_Learning_with_MATLAB_Seminar_Latest.pdf
Machine_Learning_with_MATLAB_Seminar_Latest.pdf
 
IRJET- Number Plate Recognition by using Open CV- Python
IRJET-  	  Number Plate Recognition by using Open CV- PythonIRJET-  	  Number Plate Recognition by using Open CV- Python
IRJET- Number Plate Recognition by using Open CV- Python
 
Smart Face Recognition System Analysis
Smart Face Recognition System AnalysisSmart Face Recognition System Analysis
Smart Face Recognition System Analysis
 
K anonymity for crowdsourcing database
K anonymity for crowdsourcing databaseK anonymity for crowdsourcing database
K anonymity for crowdsourcing database
 
IRJET- Smart Surveillance Cam using Face Recongition Alogrithm
IRJET-  	  Smart Surveillance Cam using Face Recongition AlogrithmIRJET-  	  Smart Surveillance Cam using Face Recongition Alogrithm
IRJET- Smart Surveillance Cam using Face Recongition Alogrithm
 
2023 GEOINT Tutorial - Synthetic Data Tools for Computer Vision-Based AI - Re...
2023 GEOINT Tutorial - Synthetic Data Tools for Computer Vision-Based AI - Re...2023 GEOINT Tutorial - Synthetic Data Tools for Computer Vision-Based AI - Re...
2023 GEOINT Tutorial - Synthetic Data Tools for Computer Vision-Based AI - Re...
 
Work Portfolio
Work PortfolioWork Portfolio
Work Portfolio
 
The sensor data challenge - Innovations (not only) for the Internet of Things
The sensor data challenge - Innovations (not only) for the Internet of ThingsThe sensor data challenge - Innovations (not only) for the Internet of Things
The sensor data challenge - Innovations (not only) for the Internet of Things
 
Tourists yatra guide (An android application)
Tourists yatra guide (An android application)Tourists yatra guide (An android application)
Tourists yatra guide (An android application)
 
AI Powered Drones
AI Powered DronesAI Powered Drones
AI Powered Drones
 
2019 12 14 Global AI Bootcamp - Auto ML with Machine Learning.Net
2019 12 14 Global AI Bootcamp   - Auto ML with Machine Learning.Net2019 12 14 Global AI Bootcamp   - Auto ML with Machine Learning.Net
2019 12 14 Global AI Bootcamp - Auto ML with Machine Learning.Net
 
Big Data Analytics
Big Data AnalyticsBig Data Analytics
Big Data Analytics
 

Recently uploaded

Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024BookNet Canada
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Visualising and forecasting stocks using Dash
Visualising and forecasting stocks using DashVisualising and forecasting stocks using Dash
Visualising and forecasting stocks using Dashnarutouzumaki53779
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxLoriGlavin3
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Ryan Mahoney - Will Artificial Intelligence Replace Real Estate Agents
Ryan Mahoney - Will Artificial Intelligence Replace Real Estate AgentsRyan Mahoney - Will Artificial Intelligence Replace Real Estate Agents
Ryan Mahoney - Will Artificial Intelligence Replace Real Estate AgentsRyan Mahoney
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxLoriGlavin3
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsPixlogix Infotech
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfLoriGlavin3
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxLoriGlavin3
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...AliaaTarek5
 

Recently uploaded (20)

Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: Loan Stars - Tech Forum 2024
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Visualising and forecasting stocks using Dash
Visualising and forecasting stocks using DashVisualising and forecasting stocks using Dash
Visualising and forecasting stocks using Dash
 
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptxMerck Moving Beyond Passwords: FIDO Paris Seminar.pptx
Merck Moving Beyond Passwords: FIDO Paris Seminar.pptx
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Ryan Mahoney - Will Artificial Intelligence Replace Real Estate Agents
Ryan Mahoney - Will Artificial Intelligence Replace Real Estate AgentsRyan Mahoney - Will Artificial Intelligence Replace Real Estate Agents
Ryan Mahoney - Will Artificial Intelligence Replace Real Estate Agents
 
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptxPasskey Providers and Enabling Portability: FIDO Paris Seminar.pptx
Passkey Providers and Enabling Portability: FIDO Paris Seminar.pptx
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
The Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and ConsThe Ultimate Guide to Choosing WordPress Pros and Cons
The Ultimate Guide to Choosing WordPress Pros and Cons
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Moving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdfMoving Beyond Passwords: FIDO Paris Seminar.pdf
Moving Beyond Passwords: FIDO Paris Seminar.pdf
 
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptxA Deep Dive on Passkeys: FIDO Paris Seminar.pptx
A Deep Dive on Passkeys: FIDO Paris Seminar.pptx
 
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
(How to Program) Paul Deitel, Harvey Deitel-Java How to Program, Early Object...
 

Real time video analytics with InfoSphere Streams, OpenCV and R

  • 1. © 2013 IBM Corporation Real time video analytics with InfoSphere Streams, OpenCV and R data2day conference 2014, Karlsruhe Stephan Reimann – IT Specialist Big Data – stephan.reimann@de.ibm.com @stereimann Wilfried Hoge – IT Architect Big Data – hoge@de.ibm.com @wilfriedhoge
  • 2. © 2014 IBM Corporation Motivation: Use machine data to make machines smarter Modern machines produces an incredible amount of data Use machine generated data to –make machines more efficient –reduce downtimes with better maintenance management –prevent failures -> make machines smarter Also use unstructured data such as video Use that data in real time 2
  • 3. © 2014 IBM Corporation The demo scenario: Imagine a tunnel drill equipment where the conveyor belt is continuously supervised by a video camera What if you can detect a problem in real time, and take an appropriate action such as stopping the machine to prevent damage? Our demo focuses on analyzing the data from a single camera to make it easy to understand; in a real life scenario there are usually many structured and unstructured data sources that are most likely combined (e.g. analyzing the image data together with speed info) And since we did not have one, we created one  3
  • 4. © 2014 IBM Corporation Traditional approach – Historical fact finding – Analyze persisted data – (Micro-) Batch philosophy – PULL approach Streaming analytics – Analyze the current moment / the now – Analyze data directly “in Motion” – without storing it – Analyze data at the speed it is created – PUSH approach Streaming analytics is a paradigm shift from pull to push analytics in real time, directly „on the wire“, data does not need to be persisted Data Repository Analysis Insight Data Analysis Insight 4
  • 5. © 2014 IBM Corporation LIVE - DEMO 5
  • 6. © 2014 IBM Corporation We have used standard algorithms from OpenCV to extract the inte- resting part of the pictures by learning and removing the background We are only interested in the objects that are on the conveyor belt, not in the conveyor belt But we don‘t know which objects will pass there, there may be many different One approach is to describe the background and filter it out, in other words: outlier analysis We have used a standard algorithm (CodeBook) from OpenCV (open source image analytics library) 6
  • 7. © 2014 IBM Corporation The background removal included sevaral steps such as data preparation & cleansing and background detection & removal 7
  • 8. © 2014 IBM Corporation The background removal included sevaral steps such as data preparation & cleansing and background detection & removal Filter: Select the area of interest Cleanse: Reduce the noise level Analyze & Transform: Learn the background and create a mask: black=background, white=foreground Cleanse: Reduce the noise level of the back- ground detection Transform: Combine the background detec- tion with the original image, it‘s basically a logical AND Just for visualization: Create the blue separator image Publish: The Export operators provide the data to other streaming analytics applications (here: the visuali- zation & the color analytics) via publish & subscribe 8
  • 9. © 2014 IBM Corporation Features Background Frequencies Spectrum Edges Camera Motion Energy Zero-crossings Models P P P P P P P P P P Positive Examples Negative Examples N N N N N N N N N N Labeled Data Unlabeled Data Addaboost K-means Regression Bayes Net Nearest Neighbor Neural Net Deep Belief Nets GMM Clustering Markov Model Decision Tree Expectation Maximization Factor Graph Shot Boundaries Semantics Multimedia Data Scenes Locations Settings Objects Activities Actions Objects Actions Behaviors People Objects Living Cars Animals People Vehicles Activities Scenes People Places Faces Objects Events Activities GMM SVMs Shape Texture Ensemble Classifiers Motion Moving Objects Active Learning Regions Scene Dynamics Tracks Color One approach to image analytics is extracting features and using a variety of statistical/mathematical concepts to deduce the semantics 9
  • 10. © 2014 IBM Corporation Visual Features Spatial Granularities Spatial-Frequency Information Spatial Information Distribution Local Texture Color Wavelet Tamura Texture Wavelet Texture Color Wavelet Texture Spatial Relation Edges/Shape Shape Moments Edge Histogram Siftogram Fourier Shape Image Type Image Statistics Dominant Colors Spatial Scales Scale- Orientation Hough Circle Max- Response Filters Curvelets Color (Pixels) Color Correlogram Color Moments Interest Points Thumbnail Image Local Binary Patterns Color Histogram Complexity 1 3 2 Global Pyramid3 Horiz. Parts Vertical Horizontal Layout Pyramid Grid Cross Center Typical image features used for analytics include color, shapes, texture and many more, we have focussed on color for the demo 10
  • 11. © 2014 IBM Corporation We have calculated several color features and the object‘s area, now we can use it for calculations / analytics Area (in pixel) Absolut Color Values Color Histogram The cool thing: Now you have attributes! It‘s structured! You can directly use it or combine it with other data sources, e.g. calculate conveyor belt throughput based on area and speed information. Analytics: Calculates the color attributes and the area Import: Receives the data from the background separation app via subscribe Visualization: Write the text and draw the color histogram 11
  • 12. © 2014 IBM Corporation We have „marked“ the structured data from the color analytics application and used it to train a model to detect object classes Describing explicitly what is characteristic for an object class is difficult/impossible. We have used the numbers to let the algorithm behind the model learn it. The algorithm just needs the marked data (=training data set). Marked data means we provided the information which object class was visible at which time. 12
  • 13. © 2014 IBM Corporation The model is created when the application is started based on the training data, and predicts the object class for each image in real time We have used R (an Open Source package for statistics and advanced analytics) to create the predictive model The model is created when the streaming analytics application is started Once the application is running, the individual score and the prediction are calculated for each individual image (or in other words: the predictive model is applied), this is called scoring In our demo the model is only trained once at startup and maintains constant afterwards, but it is also possible to refresh models continuously or in certain intervals Import: Receives the data from or analytics app via subscribe Visualization: Visualizes the results Visualization: Write the prediction as text on the image 13
  • 14. © 2014 IBM Corporation Features Background Frequencies Spectrum Edges Camera Motion Energy Zero-crossings Models P P P P P P P P P P Positive Examples Negative Examples N N N N N N N N N N Labeled Data Unlabeled Data Addaboost K-means Regression Bayes Net Nearest Neighbor Neural Net Deep Belief Nets GMM Clustering Markov Model Decision Tree Expectation Maximization Factor Graph Shot Boundaries Semantics Multimedia Data Scenes Locations Settings Objects Activities Actions Objects Actions Behaviors People Objects Living Cars Animals People Vehicles Activities Scenes People Places Faces Objects Events Activities GMM SVMs Shape Texture Ensemble Classifiers Motion Moving Objects Active Learning Regions Scene Dynamics Tracks Color Color Decision Tree The demo has shown image analytics on one feature and model, in reality a combination of several features & models is used 14
  • 15. © 2014 IBM Corporation A freely available Webcast from IBM Research provides further insights into image and video analytics and the theorie behind IBM Analytics Education Series: Lecture 7 - Multimedia - Image and Video Analytics 15
  • 16. © 2014 IBM Corporation R –Open Source software for statistics and advanced analytics –http://cran.r-project.org/ We have used InfoSphere Streams for the real time analytics and have extended it with R and OpenCV for the implementation OpenCV –Open Source computer vision and machine learning software library –http://opencv.org/ & InfoSphere Streams OpenCV Toolkit on GitHub InfoSphere Streams –Software for real time analytics on any kind of Big Data Free Quickstart Edition Developer Community www.ibmdw.net/streamsdev/ ibm.co/streamsqs + Tutorials, Labs, Forum, ... GitHub Community github.com/IBMStreams + Toolkits, Toolkits, Toolkits 16
  • 17. © 2014 IBM Corporation InfoSphere Streams is the result of an IBM research project, designed for high-throughput, low latency and to make streaming analytics easy Scale out Millions of Events per Second Complex Data & Analytics All kinds of data Complex analytics: Everything you can express via an algorithm Low Latency Analyzes data at the speed it is created Latencies down to μs Immediate action in real time + + InfoSphere Streams Capabilities How it works –Define apps as flow graphs consisting of sources (inputs), operators & sinks (outputs) –Extend the functionality with your code if required for full flexibility –The clustered, distributed runtime on commodity HW scales nearly limitless –GUIs for rapid development and operations make streaming analytics easy 17
  • 18. © 2014 IBM Corporation Telecommunication Transport Manufacturing Security Radio astronomy Healthcare Industrie 4.0 Energy & Utilities Connected Car ... optimizes the traffic in Stockholm and Dublin ... analyzes acoustic signals to protect sensible areas ... optimizes the quality of mobile networks ... is the foundation for real-time campaign to increase customer satis- faction and revenues ... analyzes and selects images in real-time within the world‘s largest radio telescope ... and is a core component within many innovation initiatives Present / In production Trends Prototypes InfoSphere Streams is already used in a broad range of real time analytics applications across industries 18
  • 19. © 2014 IBM Corporation Where technology meets business potential: Start making sense of your data (in real time), it is possible! Gain value from your data 19 There are many opportu- nities to gain value from data. Let‘s talk how to make sense of your data! http://www-05.ibm.com/de/events/workshop/bigdata/ Make maintenance more predictable to reduce downtimes Detect error patterns to prevent failures Better understand complex systems and their dependencies to improve efficiency