SlideShare a Scribd company logo
1Confidential
Kafka Streams + Deep Learning
TensorFlow and H2O Applied to Real Time Streaming Applications
Kai Waehner
Technology Evangelist
kontakt@kai-waehner.de
LinkedIn
@KaiWaehner
www.kai-waehner.de
2Apache Kafka and Deep Learning – Kai Waehner
Agenda
1) Deep Learning and Real Time World
2) Deep Learning and the Apache Kafka Ecosystem
3) Building Neural Networks with TensorFlow and H2O
4) Deployment of Neural Networks with Kafka Streams
3Apache Kafka and Deep Learning – Kai Waehner
Agenda
1) Deep Learning and Real World Applications
2) Deep Learning and the Apache Kafka Ecosystem
3) Building Neural Networks with TensorFlow and H2O
4) Deployment of Neural Networks with Kafka Streams
4Apache Kafka and Deep Learning – Kai Waehner
Machine Learning
... allows computers to find hidden insights without being
explicitly programmed where to look.
Machine Learning
• Decision Trees
• Naïve Bayes
• Clustering
• Neural Networks
• etc.
Deep Learning
• CNN
• RNN
• Autoencoder
• etc.
5Apache Kafka and Deep Learning – Kai Waehner
Real World Examples of Deep Learning
Language Translation
https://recombu.com/mobile/article/google-instant-voice-translation-the-end-of-franglais_M11397.html
http://wellroundedfashion.com/2015/01/13/trendy-tech-camouflage-from-facial-detection/
http://www.washington.edu/news/2017/07/11/lip-syncing-obama-new-tools-turn-audio-clips-into-realistic-video/
https://www.technologyreview.com/s/602796/starcraft-will-become-the-next-big-playground-for-ai/
Speech and Video Generation
Picture Analysis (Face, Location, Items, …)
Intelligent Decision Making
6Apache Kafka and Deep Learning – Kai Waehner
Deep Learning to Analyze and Act on Critical Business Moments
Seconds Minutes Hours
Price
Optimization
Predictive
Maintenance
Fraud
Detection
Cross Selling
Transportation
Rerouting
Customer
Service
Inventory
Management
Windows of Opportunity
7Apache Kafka and Deep Learning – Kai Waehner
Live Demo
Deep Learning in Action
http://playground.tensorflow.org/
8Apache Kafka and Deep Learning – Kai Waehner
Agenda
1) Deep Learning and Real World Applications
2) Deep Learning and the Apache Kafka Ecosystem
3) Building Neural Networks with TensorFlow and H2O
4) Deployment of Neural Networks with Kafka Streams
9Apache Kafka and Deep Learning – Kai Waehner
Apache Kafka Ecosystem and Deep Learning
Kafka
Streams
Kafka
Connect
Rest Proxy
Schema Registry
Go / .NET / Python
Kafka Producer
KSQL
Kafka
Streams
STREAMING PLATFORM
BIG DATA ANALYTICS
Oracle DB
CoaP IoT
Kafka
Java Client
…..
HP Vertica
K
A
F
K
A
H2O.ai,
TensorFlow
Batch
Real
Time
Confluent
REST Proxy
MQTT IoT
iPhone
App
Kafka
Go Client
C
K O
A N
F N
K E
A C
T
H
I
V
E
Grafana
Kafka
Java EE
Web App
Spark
C
K O
A N
F N
K E
A C
T
Confluent
Schema Registry
Kafka Streams
H2O.ai
Mesos
Kafka Streams
TensorFlow
Kubernetes
Avro
Avro
1) Data Producer
2) Analytics Platform
3) Streaming Platform
4) Data Consumer
11Apache Kafka and Deep Learning – Kai Waehner
Agenda
1) Deep Learning and Real World Applications
2) Deep Learning and the Apache Kafka Ecosystem
3) Building Neural Networks with TensorFlow and H2O
4) Deployment of Neural Networks with Kafka Streams
12Apache Kafka and Deep Learning – Kai Waehner
Languages, Frameworks and Tools for Deep Learning
There is no Allrounder!
Portable Format
for Analytics (PFA)
13Confidential
Deep Learning with H2O.ai
H2O Engine
R / Python /
Scala / Flow UI
Java Code
14Apache Kafka and Deep Learning – Kai Waehner
Live Demo
Use Case:
Airline Flight Delay Prediction
Machine Learning Algorithm:
Deep Learning
using Neural Networks
Technology:
H2O.ai, TensorFlow
15Apache Kafka and Deep Learning – Kai Waehner
H2O Deep Water (TensorFlow, MXNet, …)
https://h2o-release.s3.amazonaws.com/h2o/rel-vapnik/1/
docs-website/h2o-docs/booklets/DeepWaterBooklet.pdf
Deep Water
(H2O + TensorFlow)
Pre-Defined Networks
+
User-Defined Networks
16Apache Kafka and Deep Learning – Kai Waehner
Agenda
1) Deep Learning and Real World Applications
2) Deep Learning and the Apache Kafka Ecosystem
3) Building Neural Networks with TensorFlow and H2O
4) Deployment of Neural Networks with Kafka Streams
17Apache Kafka and Deep Learning – Kai Waehner
Stream Processing
Data at Rest Data in Motion
18Apache Kafka and Deep Learning – Kai Waehner
Stream Processing Pipeline
APIs
Adapters /
Channels
Integration
Messaging
Stream
Ingest
Transformation
Aggregation
Enrichment
Filtering
Stream
Preprocessing
Process
Management
Analytics
(Real Time)
Applications
& APIs
Analytics /
DW Reporting
Stream
Outcomes
• Contextual Rules
• Windowing
• Patterns
• Analytics
• Machine Learning
• …
Stream
Analytics
Index / SearchNormalization
Applying an Analytic Model
is just a piece of the puzzle!
19Apache Kafka and Deep Learning – Kai Waehner
Kafka Streams (shipped with Apache Kafka)
Map, filter,
aggregate,
apply analytic
model,
„any business logic“
Input Stream
(Kafka Topic)
Kafka Cluster
Output Stream
(Kafka Topic)
Kafka Cluster
Stream Processing
Microservice
(Kafka Streams)
Deployed Anywhere
Java App, Docker,
Kubernetes, Mesos,
“you-name-it”
20Apache Kafka and Deep Learning – Kai Waehner
When to use Kafka Streams for Stream Processing?
21Apache Kafka and Deep Learning – Kai Waehner
A complete streaming microservices, ready for production at large-scale
Word
Count
App configuration
Define processing
(here: WordCount)
Start processing
22Apache Kafka and Deep Learning – Kai Waehner
Use Case:
Airline Flight Delay Prediction
Machine Learning Algorithm:
Neural Network
built with H2O and TensorFlow
Streaming Platform:
Apache Kafka and Kafka Streams
Live Demo
23Apache Kafka and Deep Learning – Kai Waehner
H2O.ai Model + Kafka Streams
Filter
Map
1) Create H2O DL model
2) Configure Kafka Streams Application
3) Apply H2O DL model to Streaming Data
4) Start Kafka Streams App
24Apache Kafka and Deep Learning – Kai Waehner
Github Examples: Kafka + Deep Learning
https://github.com/kaiwaehner/kafka-streams-machine-learning-examples
1) git clone … 2) mvn clean package … 3) look at implementations and unit tests
25Apache Kafka and Deep Learning – Kai Waehner
Online Model Training with Apache Kafka and Kafka Streams
How to improve models?
1. Manual Update
2. Automated Batch
3. Real Time
Your choice… All possible with Kafka!
26Apache Kafka and Deep Learning – Kai Waehner
Caveats for Online Model Training
• Processes and infrastructure not ready
• Validation needed before production
• Slows down the system
• Only a few ML implementations à Build your own!
• Many use cases do not need it
à Do it only when really needed!
27Apache Kafka and Deep Learning – Kai Waehner
Key Take-Aways
à Data Scientist and Developers have to work together continuously (org + tech!)
à Mission critical, scalable production deployment is key for success of Machine Learning projects
à Apache Kafka Ecosystem for Batch and Real Time Machine Learning (Training, Inference, Monitoring)
28Apache Kafka and Deep Learning – Kai Waehner
Confluent KSQL à www.confluent.io/product/ksql
Use SQL-like queries to write stream processing applications with Kafka Streams
Leverage Kafka and Kafka Streams from anywhere without coding
• Streaming ETL
• Anomaly Detection
• Real Time Monitoring
• etc.
SELECT STREAM
CEIL(timestamp TO HOUR) AS timeWindow, productId, COUNT(*) AS hourlyOrders, SUM(units) AS units
FROM Orders GROUP BY CEIL(timestamp TO HOUR), productId;
timeWindow | productId | hourlyOrders | units
------------+-----------+--------------+-------
08:00:00 | 10 | 2 | 5
08:00:00 | 20 | 1 | 8
09:00:00 | 10 | 4 | 22
09:00:00 | 40 | 1 | 45
... | ... | ... | ...
à … maybe also use it to apply analytic models via user defined functions? J
29Apache Kafka and Deep Learning – Kai Waehner
Kai Waehner
Technology Evangelist
kontakt@kai-waehner.de
@KaiWaehner
www.kai-waehner.de
LinkedIn
Questions? Feedback?
Please contact me!

More Related Content

What's hot (20)

PDF
Rethinking Stream Processing with Apache Kafka, Kafka Streams and KSQL
Kai Wähner
 
PDF
KSQL – The Open Source SQL Streaming Engine for Apache Kafka (Big Data Spain ...
Kai Wähner
 
PDF
Service Mesh with Apache Kafka, Kubernetes, Envoy, Istio and Linkerd
Kai Wähner
 
PDF
IoT Sensor Analytics with Python, Jupyter, TensorFlow, Keras, Apache Kafka, K...
Kai Wähner
 
PDF
Kafka Connect and Streams (Concepts, Architecture, Features)
Kai Wähner
 
PDF
Confluent REST Proxy and Schema Registry (Concepts, Architecture, Features)
Kai Wähner
 
PDF
Apache Kafka vs. Integration Middleware (MQ, ETL, ESB)
Kai Wähner
 
PDF
Apache Kafka, Tiered Storage and TensorFlow for Streaming Machine Learning wi...
confluent
 
PDF
Apache Kafka vs. Integration Middleware (MQ, ETL, ESB) - Friends, Enemies or ...
confluent
 
PDF
Event-Driven Stream Processing and Model Deployment with Apache Kafka, Kafka ...
Kai Wähner
 
PPTX
Kafka for data scientists
Jenn Rawlins
 
PDF
Ten reasons to choose Apache Pulsar over Apache Kafka for Event Sourcing_Robe...
StreamNative
 
PDF
Apache Kafka Open Source Ecosystem for Machine Learning at Extreme Scale (Apa...
Kai Wähner
 
PDF
Unleashing Apache Kafka and TensorFlow in the Cloud

Kai Wähner
 
PDF
Apache Kafka 2.3 + Confluent Platform 5.3 => What's New?
Kai Wähner
 
PDF
Apache Kafka and API Management / API Gateway – Friends, Enemies or Frenemies?
Kai Wähner
 
PDF
Kai Waehner - KSQL – The Open Source SQL Streaming Engine for Apache Kafka - ...
Codemotion
 
PDF
Apache Kafka as Event Streaming Platform for Microservice Architectures
Kai Wähner
 
PDF
Can Apache Kafka Replace a Database?
Kai Wähner
 
PDF
Cloud Native London 2019 Faas composition using Kafka and cloud-events
Neil Avery
 
Rethinking Stream Processing with Apache Kafka, Kafka Streams and KSQL
Kai Wähner
 
KSQL – The Open Source SQL Streaming Engine for Apache Kafka (Big Data Spain ...
Kai Wähner
 
Service Mesh with Apache Kafka, Kubernetes, Envoy, Istio and Linkerd
Kai Wähner
 
IoT Sensor Analytics with Python, Jupyter, TensorFlow, Keras, Apache Kafka, K...
Kai Wähner
 
Kafka Connect and Streams (Concepts, Architecture, Features)
Kai Wähner
 
Confluent REST Proxy and Schema Registry (Concepts, Architecture, Features)
Kai Wähner
 
Apache Kafka vs. Integration Middleware (MQ, ETL, ESB)
Kai Wähner
 
Apache Kafka, Tiered Storage and TensorFlow for Streaming Machine Learning wi...
confluent
 
Apache Kafka vs. Integration Middleware (MQ, ETL, ESB) - Friends, Enemies or ...
confluent
 
Event-Driven Stream Processing and Model Deployment with Apache Kafka, Kafka ...
Kai Wähner
 
Kafka for data scientists
Jenn Rawlins
 
Ten reasons to choose Apache Pulsar over Apache Kafka for Event Sourcing_Robe...
StreamNative
 
Apache Kafka Open Source Ecosystem for Machine Learning at Extreme Scale (Apa...
Kai Wähner
 
Unleashing Apache Kafka and TensorFlow in the Cloud

Kai Wähner
 
Apache Kafka 2.3 + Confluent Platform 5.3 => What's New?
Kai Wähner
 
Apache Kafka and API Management / API Gateway – Friends, Enemies or Frenemies?
Kai Wähner
 
Kai Waehner - KSQL – The Open Source SQL Streaming Engine for Apache Kafka - ...
Codemotion
 
Apache Kafka as Event Streaming Platform for Microservice Architectures
Kai Wähner
 
Can Apache Kafka Replace a Database?
Kai Wähner
 
Cloud Native London 2019 Faas composition using Kafka and cloud-events
Neil Avery
 

Viewers also liked (20)

PDF
A Vision for Exascale, Simulation, and Deep Learning
inside-BigData.com
 
PPTX
Appscrip
Appscrip
 
PDF
R, Spark, Tensorflow, H20.ai Applied to Streaming Analytics
Kai Wähner
 
PDF
Machine Learning and Deep Learning Applied to Real Time with Apache Kafka Str...
confluent
 
PDF
MMLSpark: Lessons from Building a SparkML-Compatible Machine Learning Library...
Spark Summit
 
PPTX
Streaming platform Kafka in SK planet
Byeongsu Kang
 
PPTX
Spark machine learning & deep learning
hoondong kim
 
PPTX
Building scalable cloud-native applications (Sam Vanhoutte at Codit Azure Paa...
Codit
 
PPT
Building Cloud Native Software
Paul Fremantle
 
PPTX
Agile Development and DevOps in the Oracle Cloud
jeckels
 
PDF
The Need of Cloud-Native Application
Emiliano Pecis
 
PPTX
Infinite power at your fingertips with Microsoft Azure Cloud & ActiveEon
Activeeon
 
PPTX
Microsoft Azure Big Data Analytics
Mark Kromer
 
PDF
Cloud Native Architectures for Devops
cornelia davis
 
PDF
B3 getting started_with_cloud_native_development
Dr. Wilfred Lin (Ph.D.)
 
PDF
Openshift Container Platform on Azure
Glenn West
 
PDF
Patterns of Cloud Native Architecture
Andrew Shafer
 
PDF
Cloud native application 입문
Seong-Bok Lee
 
PPTX
The Application Server Platform of the Future - Container & Cloud Native and ...
Lucas Jellema
 
PDF
Cloud-Native-Data with Cornelia Davis
VMware Tanzu
 
A Vision for Exascale, Simulation, and Deep Learning
inside-BigData.com
 
Appscrip
Appscrip
 
R, Spark, Tensorflow, H20.ai Applied to Streaming Analytics
Kai Wähner
 
Machine Learning and Deep Learning Applied to Real Time with Apache Kafka Str...
confluent
 
MMLSpark: Lessons from Building a SparkML-Compatible Machine Learning Library...
Spark Summit
 
Streaming platform Kafka in SK planet
Byeongsu Kang
 
Spark machine learning & deep learning
hoondong kim
 
Building scalable cloud-native applications (Sam Vanhoutte at Codit Azure Paa...
Codit
 
Building Cloud Native Software
Paul Fremantle
 
Agile Development and DevOps in the Oracle Cloud
jeckels
 
The Need of Cloud-Native Application
Emiliano Pecis
 
Infinite power at your fingertips with Microsoft Azure Cloud & ActiveEon
Activeeon
 
Microsoft Azure Big Data Analytics
Mark Kromer
 
Cloud Native Architectures for Devops
cornelia davis
 
B3 getting started_with_cloud_native_development
Dr. Wilfred Lin (Ph.D.)
 
Openshift Container Platform on Azure
Glenn West
 
Patterns of Cloud Native Architecture
Andrew Shafer
 
Cloud native application 입문
Seong-Bok Lee
 
The Application Server Platform of the Future - Container & Cloud Native and ...
Lucas Jellema
 
Cloud-Native-Data with Cornelia Davis
VMware Tanzu
 
Ad

Similar to Deep Learning Streaming Platform with Kafka Streams, TensorFlow, DeepLearning4J, H2O (20)

PDF
How to Leverage the Apache Kafka Ecosystem to Productionize Machine Learning ...
Codemotion
 
PDF
Unleashing Apache Kafka and TensorFlow in Hybrid Cloud Architectures
Kai Wähner
 
PDF
Event-Driven Model Serving: Stream Processing vs. RPC with Kafka and TensorFl...
confluent
 
PDF
Kai Waehner - Deep Learning at Extreme Scale in the Cloud with Apache Kafka a...
Codemotion
 
PDF
Kai Wähner, Technology Evangelist at Confluent: "Development of Scalable Mac...
Dataconomy Media
 
PDF
2019 04 seattle_meetup___kafka_machine_learning___kai_waehner
Nitin Kumar
 
PDF
Apache Kafka, Tiered Storage and TensorFlow for Streaming Machine Learning wi...
Kai Wähner
 
PDF
Machine Learning with Apache Kafka in Pharma and Life Sciences
Kai Wähner
 
PDF
Simplified Machine Learning Architecture with an Event Streaming Platform (Ap...
Kai Wähner
 
PDF
Apache Kafka for Smart Grid, Utilities and Energy Production
Kai Wähner
 
PDF
Apache Kafka in the Airline, Aviation and Travel Industry
Kai Wähner
 
PDF
Introduction to Apache Kafka and why it matters - Madrid
Paolo Castagna
 
PDF
Apache Kafka in the Transportation and Logistics
Kai Wähner
 
PDF
When NOT to use Apache Kafka?
Kai Wähner
 
PDF
When NOT to Use Apache Kafka? With Kai Waehner | Current 2022
HostedbyConfluent
 
PPTX
Streaming Data and Stream Processing with Apache Kafka
confluent
 
PDF
Apache Kafka® and Analytics in a Connected IoT World
confluent
 
PPTX
Apache Kafka® + Machine Learning for Supply Chain 
confluent
 
PPTX
IIoT with Kafka and Machine Learning for Supply Chain Optimization In Real Ti...
Kai Wähner
 
PPTX
IoT and Event Streaming at Scale with Apache Kafka
confluent
 
How to Leverage the Apache Kafka Ecosystem to Productionize Machine Learning ...
Codemotion
 
Unleashing Apache Kafka and TensorFlow in Hybrid Cloud Architectures
Kai Wähner
 
Event-Driven Model Serving: Stream Processing vs. RPC with Kafka and TensorFl...
confluent
 
Kai Waehner - Deep Learning at Extreme Scale in the Cloud with Apache Kafka a...
Codemotion
 
Kai Wähner, Technology Evangelist at Confluent: "Development of Scalable Mac...
Dataconomy Media
 
2019 04 seattle_meetup___kafka_machine_learning___kai_waehner
Nitin Kumar
 
Apache Kafka, Tiered Storage and TensorFlow for Streaming Machine Learning wi...
Kai Wähner
 
Machine Learning with Apache Kafka in Pharma and Life Sciences
Kai Wähner
 
Simplified Machine Learning Architecture with an Event Streaming Platform (Ap...
Kai Wähner
 
Apache Kafka for Smart Grid, Utilities and Energy Production
Kai Wähner
 
Apache Kafka in the Airline, Aviation and Travel Industry
Kai Wähner
 
Introduction to Apache Kafka and why it matters - Madrid
Paolo Castagna
 
Apache Kafka in the Transportation and Logistics
Kai Wähner
 
When NOT to use Apache Kafka?
Kai Wähner
 
When NOT to Use Apache Kafka? With Kai Waehner | Current 2022
HostedbyConfluent
 
Streaming Data and Stream Processing with Apache Kafka
confluent
 
Apache Kafka® and Analytics in a Connected IoT World
confluent
 
Apache Kafka® + Machine Learning for Supply Chain 
confluent
 
IIoT with Kafka and Machine Learning for Supply Chain Optimization In Real Ti...
Kai Wähner
 
IoT and Event Streaming at Scale with Apache Kafka
confluent
 
Ad

More from Kai Wähner (20)

PDF
Apache Kafka as Data Hub for Crypto, NFT, Metaverse (Beyond the Buzz!)
Kai Wähner
 
PDF
Kafka for Live Commerce to Transform the Retail and Shopping Metaverse
Kai Wähner
 
PDF
The Heart of the Data Mesh Beats in Real-Time with Apache Kafka
Kai Wähner
 
PDF
Apache Kafka vs. Cloud-native iPaaS Integration Platform Middleware
Kai Wähner
 
PDF
Data Warehouse vs. Data Lake vs. Data Streaming – Friends, Enemies, Frenemies?
Kai Wähner
 
PDF
Serverless Kafka and Spark in a Multi-Cloud Lakehouse Architecture
Kai Wähner
 
PDF
Resilient Real-time Data Streaming across the Edge and Hybrid Cloud with Apac...
Kai Wähner
 
PDF
Data Streaming with Apache Kafka in the Defence and Cybersecurity Industry
Kai Wähner
 
PDF
Apache Kafka in the Healthcare Industry
Kai Wähner
 
PDF
Apache Kafka in the Healthcare Industry
Kai Wähner
 
PDF
Apache Kafka for Real-time Supply Chain in the Food and Retail Industry
Kai Wähner
 
PDF
Kafka for Real-Time Replication between Edge and Hybrid Cloud
Kai Wähner
 
PDF
Apache Kafka for Predictive Maintenance in Industrial IoT / Industry 4.0
Kai Wähner
 
PDF
Apache Kafka Landscape for Automotive and Manufacturing
Kai Wähner
 
PDF
Kappa vs Lambda Architectures and Technology Comparison
Kai Wähner
 
PPTX
The Top 5 Apache Kafka Use Cases and Architectures in 2022
Kai Wähner
 
PDF
Event Streaming CTO Roundtable for Cloud-native Kafka Architectures
Kai Wähner
 
PDF
Apache Kafka in the Public Sector (Government, National Security, Citizen Ser...
Kai Wähner
 
PDF
Telco 4.0 - Payment and FinServ Integration for Data in Motion with 5G and Ap...
Kai Wähner
 
PDF
Apache Kafka for Cybersecurity and SIEM / SOAR Modernization
Kai Wähner
 
Apache Kafka as Data Hub for Crypto, NFT, Metaverse (Beyond the Buzz!)
Kai Wähner
 
Kafka for Live Commerce to Transform the Retail and Shopping Metaverse
Kai Wähner
 
The Heart of the Data Mesh Beats in Real-Time with Apache Kafka
Kai Wähner
 
Apache Kafka vs. Cloud-native iPaaS Integration Platform Middleware
Kai Wähner
 
Data Warehouse vs. Data Lake vs. Data Streaming – Friends, Enemies, Frenemies?
Kai Wähner
 
Serverless Kafka and Spark in a Multi-Cloud Lakehouse Architecture
Kai Wähner
 
Resilient Real-time Data Streaming across the Edge and Hybrid Cloud with Apac...
Kai Wähner
 
Data Streaming with Apache Kafka in the Defence and Cybersecurity Industry
Kai Wähner
 
Apache Kafka in the Healthcare Industry
Kai Wähner
 
Apache Kafka in the Healthcare Industry
Kai Wähner
 
Apache Kafka for Real-time Supply Chain in the Food and Retail Industry
Kai Wähner
 
Kafka for Real-Time Replication between Edge and Hybrid Cloud
Kai Wähner
 
Apache Kafka for Predictive Maintenance in Industrial IoT / Industry 4.0
Kai Wähner
 
Apache Kafka Landscape for Automotive and Manufacturing
Kai Wähner
 
Kappa vs Lambda Architectures and Technology Comparison
Kai Wähner
 
The Top 5 Apache Kafka Use Cases and Architectures in 2022
Kai Wähner
 
Event Streaming CTO Roundtable for Cloud-native Kafka Architectures
Kai Wähner
 
Apache Kafka in the Public Sector (Government, National Security, Citizen Ser...
Kai Wähner
 
Telco 4.0 - Payment and FinServ Integration for Data in Motion with 5G and Ap...
Kai Wähner
 
Apache Kafka for Cybersecurity and SIEM / SOAR Modernization
Kai Wähner
 

Recently uploaded (20)

PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
PDF
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PPT
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
PDF
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PDF
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
PDF
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
PPTX
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
PPTX
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
PDF
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
DOCX
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
PDF
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
PDF
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
“Computer Vision at Sea: Automated Fish Tracking for Sustainable Fishing,” a ...
Edge AI and Vision Alliance
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
Newgen 2022-Forrester Newgen TEI_13 05 2022-The-Total-Economic-Impact-Newgen-...
darshakparmar
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
Ericsson LTE presentation SEMINAR 2010.ppt
npat3
 
Book industry state of the nation 2025 - Tech Forum 2025
BookNet Canada
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
“Voice Interfaces on a Budget: Building Real-time Speech Recognition on Low-c...
Edge AI and Vision Alliance
 
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
Seamless Tech Experiences Showcasing Cross-Platform App Design.pptx
presentifyai
 
Agentforce World Tour Toronto '25 - Supercharge MuleSoft Development with Mod...
Alexandra N. Martinez
 
“NPU IP Hardware Shaped Through Software and Use-case Analysis,” a Presentati...
Edge AI and Vision Alliance
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
Bitcoin for Millennials podcast with Bram, Power Laws of Bitcoin
Stephen Perrenod
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Python coding for beginners !! Start now!#
Rajni Bhardwaj Grover
 
Future-Proof or Fall Behind? 10 Tech Trends You Can’t Afford to Ignore in 2025
DIGITALCONFEX
 
AI Agents in the Cloud: The Rise of Agentic Cloud Architecture
Lilly Gracia
 

Deep Learning Streaming Platform with Kafka Streams, TensorFlow, DeepLearning4J, H2O

  • 1. 1Confidential Kafka Streams + Deep Learning TensorFlow and H2O Applied to Real Time Streaming Applications Kai Waehner Technology Evangelist [email protected] LinkedIn @KaiWaehner www.kai-waehner.de
  • 2. 2Apache Kafka and Deep Learning – Kai Waehner Agenda 1) Deep Learning and Real Time World 2) Deep Learning and the Apache Kafka Ecosystem 3) Building Neural Networks with TensorFlow and H2O 4) Deployment of Neural Networks with Kafka Streams
  • 3. 3Apache Kafka and Deep Learning – Kai Waehner Agenda 1) Deep Learning and Real World Applications 2) Deep Learning and the Apache Kafka Ecosystem 3) Building Neural Networks with TensorFlow and H2O 4) Deployment of Neural Networks with Kafka Streams
  • 4. 4Apache Kafka and Deep Learning – Kai Waehner Machine Learning ... allows computers to find hidden insights without being explicitly programmed where to look. Machine Learning • Decision Trees • Naïve Bayes • Clustering • Neural Networks • etc. Deep Learning • CNN • RNN • Autoencoder • etc.
  • 5. 5Apache Kafka and Deep Learning – Kai Waehner Real World Examples of Deep Learning Language Translation https://recombu.com/mobile/article/google-instant-voice-translation-the-end-of-franglais_M11397.html http://wellroundedfashion.com/2015/01/13/trendy-tech-camouflage-from-facial-detection/ http://www.washington.edu/news/2017/07/11/lip-syncing-obama-new-tools-turn-audio-clips-into-realistic-video/ https://www.technologyreview.com/s/602796/starcraft-will-become-the-next-big-playground-for-ai/ Speech and Video Generation Picture Analysis (Face, Location, Items, …) Intelligent Decision Making
  • 6. 6Apache Kafka and Deep Learning – Kai Waehner Deep Learning to Analyze and Act on Critical Business Moments Seconds Minutes Hours Price Optimization Predictive Maintenance Fraud Detection Cross Selling Transportation Rerouting Customer Service Inventory Management Windows of Opportunity
  • 7. 7Apache Kafka and Deep Learning – Kai Waehner Live Demo Deep Learning in Action http://playground.tensorflow.org/
  • 8. 8Apache Kafka and Deep Learning – Kai Waehner Agenda 1) Deep Learning and Real World Applications 2) Deep Learning and the Apache Kafka Ecosystem 3) Building Neural Networks with TensorFlow and H2O 4) Deployment of Neural Networks with Kafka Streams
  • 9. 9Apache Kafka and Deep Learning – Kai Waehner Apache Kafka Ecosystem and Deep Learning Kafka Streams Kafka Connect Rest Proxy Schema Registry Go / .NET / Python Kafka Producer KSQL Kafka Streams
  • 10. STREAMING PLATFORM BIG DATA ANALYTICS Oracle DB CoaP IoT Kafka Java Client ….. HP Vertica K A F K A H2O.ai, TensorFlow Batch Real Time Confluent REST Proxy MQTT IoT iPhone App Kafka Go Client C K O A N F N K E A C T H I V E Grafana Kafka Java EE Web App Spark C K O A N F N K E A C T Confluent Schema Registry Kafka Streams H2O.ai Mesos Kafka Streams TensorFlow Kubernetes Avro Avro 1) Data Producer 2) Analytics Platform 3) Streaming Platform 4) Data Consumer
  • 11. 11Apache Kafka and Deep Learning – Kai Waehner Agenda 1) Deep Learning and Real World Applications 2) Deep Learning and the Apache Kafka Ecosystem 3) Building Neural Networks with TensorFlow and H2O 4) Deployment of Neural Networks with Kafka Streams
  • 12. 12Apache Kafka and Deep Learning – Kai Waehner Languages, Frameworks and Tools for Deep Learning There is no Allrounder! Portable Format for Analytics (PFA)
  • 13. 13Confidential Deep Learning with H2O.ai H2O Engine R / Python / Scala / Flow UI Java Code
  • 14. 14Apache Kafka and Deep Learning – Kai Waehner Live Demo Use Case: Airline Flight Delay Prediction Machine Learning Algorithm: Deep Learning using Neural Networks Technology: H2O.ai, TensorFlow
  • 15. 15Apache Kafka and Deep Learning – Kai Waehner H2O Deep Water (TensorFlow, MXNet, …) https://h2o-release.s3.amazonaws.com/h2o/rel-vapnik/1/ docs-website/h2o-docs/booklets/DeepWaterBooklet.pdf Deep Water (H2O + TensorFlow) Pre-Defined Networks + User-Defined Networks
  • 16. 16Apache Kafka and Deep Learning – Kai Waehner Agenda 1) Deep Learning and Real World Applications 2) Deep Learning and the Apache Kafka Ecosystem 3) Building Neural Networks with TensorFlow and H2O 4) Deployment of Neural Networks with Kafka Streams
  • 17. 17Apache Kafka and Deep Learning – Kai Waehner Stream Processing Data at Rest Data in Motion
  • 18. 18Apache Kafka and Deep Learning – Kai Waehner Stream Processing Pipeline APIs Adapters / Channels Integration Messaging Stream Ingest Transformation Aggregation Enrichment Filtering Stream Preprocessing Process Management Analytics (Real Time) Applications & APIs Analytics / DW Reporting Stream Outcomes • Contextual Rules • Windowing • Patterns • Analytics • Machine Learning • … Stream Analytics Index / SearchNormalization Applying an Analytic Model is just a piece of the puzzle!
  • 19. 19Apache Kafka and Deep Learning – Kai Waehner Kafka Streams (shipped with Apache Kafka) Map, filter, aggregate, apply analytic model, „any business logic“ Input Stream (Kafka Topic) Kafka Cluster Output Stream (Kafka Topic) Kafka Cluster Stream Processing Microservice (Kafka Streams) Deployed Anywhere Java App, Docker, Kubernetes, Mesos, “you-name-it”
  • 20. 20Apache Kafka and Deep Learning – Kai Waehner When to use Kafka Streams for Stream Processing?
  • 21. 21Apache Kafka and Deep Learning – Kai Waehner A complete streaming microservices, ready for production at large-scale Word Count App configuration Define processing (here: WordCount) Start processing
  • 22. 22Apache Kafka and Deep Learning – Kai Waehner Use Case: Airline Flight Delay Prediction Machine Learning Algorithm: Neural Network built with H2O and TensorFlow Streaming Platform: Apache Kafka and Kafka Streams Live Demo
  • 23. 23Apache Kafka and Deep Learning – Kai Waehner H2O.ai Model + Kafka Streams Filter Map 1) Create H2O DL model 2) Configure Kafka Streams Application 3) Apply H2O DL model to Streaming Data 4) Start Kafka Streams App
  • 24. 24Apache Kafka and Deep Learning – Kai Waehner Github Examples: Kafka + Deep Learning https://github.com/kaiwaehner/kafka-streams-machine-learning-examples 1) git clone … 2) mvn clean package … 3) look at implementations and unit tests
  • 25. 25Apache Kafka and Deep Learning – Kai Waehner Online Model Training with Apache Kafka and Kafka Streams How to improve models? 1. Manual Update 2. Automated Batch 3. Real Time Your choice… All possible with Kafka!
  • 26. 26Apache Kafka and Deep Learning – Kai Waehner Caveats for Online Model Training • Processes and infrastructure not ready • Validation needed before production • Slows down the system • Only a few ML implementations à Build your own! • Many use cases do not need it à Do it only when really needed!
  • 27. 27Apache Kafka and Deep Learning – Kai Waehner Key Take-Aways à Data Scientist and Developers have to work together continuously (org + tech!) à Mission critical, scalable production deployment is key for success of Machine Learning projects à Apache Kafka Ecosystem for Batch and Real Time Machine Learning (Training, Inference, Monitoring)
  • 28. 28Apache Kafka and Deep Learning – Kai Waehner Confluent KSQL à www.confluent.io/product/ksql Use SQL-like queries to write stream processing applications with Kafka Streams Leverage Kafka and Kafka Streams from anywhere without coding • Streaming ETL • Anomaly Detection • Real Time Monitoring • etc. SELECT STREAM CEIL(timestamp TO HOUR) AS timeWindow, productId, COUNT(*) AS hourlyOrders, SUM(units) AS units FROM Orders GROUP BY CEIL(timestamp TO HOUR), productId; timeWindow | productId | hourlyOrders | units ------------+-----------+--------------+------- 08:00:00 | 10 | 2 | 5 08:00:00 | 20 | 1 | 8 09:00:00 | 10 | 4 | 22 09:00:00 | 40 | 1 | 45 ... | ... | ... | ... à … maybe also use it to apply analytic models via user defined functions? J
  • 29. 29Apache Kafka and Deep Learning – Kai Waehner Kai Waehner Technology Evangelist [email protected] @KaiWaehner www.kai-waehner.de LinkedIn Questions? Feedback? Please contact me!