SlideShare a Scribd company logo
H2O Time Series
Using machine learning for solving time series
problems
By Danilo Bassi
Machine learning with time series
Typical steps:
1. Conversion data to regular time series (if needed)
• Sampling rate or period to use
• Convert irregular time data (or events) into regular sampled
• Resample (in time) and convert to numeric categorical/symbolic variables
2. Dynamic preprocessing (optional): convert dynamic data into static pattern
• Tapped delay line (time shift), fixed
• Apply dynamic filter (time convolution), adjustable
• Use transformed domain
3. Apply machine learning
• Static (standard) if dynamic processing is available
• Dynamic models: recurrent neural networks and variants
H2O Time Series 2
Machine learning with time series
Conversion data to regular time series
• Define convenient sampling rate or period (time resolution), according to
problem need and variability (analyze autocorrelation)
• Regularize time series:
• Convert irregular time data (or events) into regular sampled
• Complete when needed
• Convert categorical/symbolic into numeric (optional)
• Reshape :
• Under sampling: aggregation
• Over sampling: smoothing
H2O Time Series 3
Machine learning with time series
Dynamic preprocessing
• Needed for static machine learning model to deal with past information
• Simple processing may be convenient: smoothing, differentiating, etc.
• Other transformation may be used (non linear like log, etc.)
• Complex dynamic processing (array):
• Time domain:
• Tapped delay line: time shifts (past information over a window)
• Dynamic filter array: time convolution (may be adjustable)
• Transformed domain (over window): FFT, wavelet transform, etc.
• Result: each time series variable converted in array suitable for input at the
machine learning process
H2O Time Series 4
Machine learning with time series
Dynamic processing array
H2O Time Series 5
H1(z) (𝑥 ∗ ℎ1)[𝑖]
𝑥[𝑖]
H2(z)
H3(z)
(𝑥 ∗ ℎ2)[𝑖]
(𝑥 ∗ ℎ3)[𝑖]
Tapped delay line
Time shift
Dynamic filters array
Time convolution
z -1
z -1
z -1
𝑥[𝑖]
𝑥[𝑖 − 1]
𝑥[𝑖]
𝑥[𝑖 − 2]
𝑥[𝑖 − 3]
Machine learning with time series
Application of machine learning
• Style of learning:
• Long term for fixed model: single process off-line training, then use with no adjustment
• Short term for (time) variant model: initial off-line training (optional) followed by use
with on-line training (adaptive)
• Type of machine learning model:
• Static: output is function of present input only, dynamic aspect of times series must be
captured by dynamic preprocessing. Most machine learning models.
• Dynamic: output is function of actual input and past history. Recurrent neural networks
(RNN) and variants (Long short-term memory neural network, etc.)
H2O Time Series 6
Machine learning with time series
Machine Learning with dynamic preprocessing
Machine Learning with dynamic system (like recurrent neural network)
H2O Time Series 7
Dynamic
processing
Static
Machine
Learning
Recurrent
Neural
Network
Dynamic
Processing
(optional)
𝑣[i]
𝑥[i]
𝑦[𝑖]𝑥[𝑖]
𝑥[𝑖] 𝑦[𝑖]
Machine learning with time series
Use cases
• Prediction or forecasting:
• Given a time series (and optional inputs), produce expected future value(s):
𝑥 −∞: 𝑖 , 𝑣 −∞: 𝑖 ⟹ 𝑥 𝑖 + 𝑑 , 𝑑 ≥ 1
• Examples:
• Simple one-step forecasting (single variable)
𝑥 −∞: 𝑖 ⟹ 𝑥 𝑖 + 1
• Soft sensor: target values are known only at training
𝑣 −∞: 𝑖 ⟹ 𝑥 𝑖
• Anomaly detector: detection of unexpected values
𝑥 −∞: 𝑖 , 𝑣 −∞: 𝑖 ⟹ ε 𝑖 = 𝑥 𝑖 − 𝑥 𝑖
H2O Time Series 8
Machine learning with time series
Use cases
• Classification:
• Given a time series with a known classification (supervised)
𝑥 −∞: 𝑖 , 𝑐 −∞: 𝑖 − 1 ⟹ 𝑐 𝑖 , training phase
𝑥 −∞: 𝑖 ⟹ 𝑐 𝑖 , application phase
• Given a time series with unknown classification (unsupervised)
𝑥 −∞: 𝑖 ⟹ 𝑐 𝑖
H2O Time Series 9
Machine learning with time series
Use cases
• Control or Decision Making
• For a dynamic system H with input x, output y:
𝑥 −∞: 𝑖
𝐻
𝑦 𝑖
• Define a controller G to produce suitable input into H:
H2O Time Series 10
𝑥[𝑖]
H
𝑦[𝑖]
G
Machine learning with time series
Control or Decision Making
1. Reference problem
Achieve or follow a desired output (target or reference): 𝑦
• Define synthetic model G such that 𝐺𝜊𝐻 𝑦 = 𝑦:
{ 𝑦 −∞: 𝑖 , 𝑦 −∞: 𝑖 − 1 }
𝐺
𝑥 −∞: 𝑖
𝐻
𝑦 𝑖 | 𝑦 𝑖 + 𝑑 = 𝑦 𝑖 + 𝑑 , 𝑑 ≥ 1
• Train 𝐺, may use other model to predict H (predictive control)
H2O Time Series 11
𝑥[𝑖]
H
𝑦[𝑖]
G
𝑦 −∞: 𝑖 − 1
𝑦 −∞: 𝑖
Machine learning with time series
Control or Decision Making
2. Optimization problem
Optimize (min or max) an objective function the output: 𝑞 = 𝑄(𝑦)
• Define synthetic model G such that 𝐺 ∘ 𝐻 ∘ 𝑄 𝑑 = 𝑞 𝑖 + 𝑑 be optimal
{𝑞 −∞: 𝑖 − 1 }
𝐺
𝑥 −∞: 𝑖
𝐻
𝑦 −∞: 𝑖
𝑄
𝑞 𝑖 | 𝑀𝑎𝑥 𝐺 𝑞[𝑖 + 𝑑] (or Min)
• Train 𝐺, may use other model to predict H and Q
H2O Time Series 12
𝑥[𝑖]
H
𝑦[𝑖]
G𝑞 −∞: 𝑖 − 1 Q
𝑞[𝑖]
H2O Time Series 13
Questions???

More Related Content

Similar to Using Machine Learning For Solving Time Series Probelms

Lecture 6.2 flow control repetition
Lecture 6.2  flow control repetitionLecture 6.2  flow control repetition
Lecture 6.2 flow control repetitionalvin567
 
Time Series Forecasting Using Recurrent Neural Network and Vector Autoregress...
Time Series Forecasting Using Recurrent Neural Network and Vector Autoregress...Time Series Forecasting Using Recurrent Neural Network and Vector Autoregress...
Time Series Forecasting Using Recurrent Neural Network and Vector Autoregress...
Databricks
 
Constraint Programming in Compiler Optimization: Lessons Learned
Constraint Programming in Compiler Optimization: Lessons LearnedConstraint Programming in Compiler Optimization: Lessons Learned
Constraint Programming in Compiler Optimization: Lessons Learned
Peter van Beek
 
Computer aided process design and simulation (Cheg.pptx
Computer aided process design and simulation (Cheg.pptxComputer aided process design and simulation (Cheg.pptx
Computer aided process design and simulation (Cheg.pptx
PaulosMekuria
 
Intro to LV in 3 Hours for Control and Sim 8_5.pptx
Intro to LV in 3 Hours for Control and Sim 8_5.pptxIntro to LV in 3 Hours for Control and Sim 8_5.pptx
Intro to LV in 3 Hours for Control and Sim 8_5.pptx
DeepakJangid87
 
Quantitative Forecasting Techniques in SCM
Quantitative Forecasting Techniques in SCMQuantitative Forecasting Techniques in SCM
Quantitative Forecasting Techniques in SCM
Yountek1
 
Spark Summit EU talk by Ram Sriharsha and Vlad Feinberg
Spark Summit EU talk by Ram Sriharsha and Vlad FeinbergSpark Summit EU talk by Ram Sriharsha and Vlad Feinberg
Spark Summit EU talk by Ram Sriharsha and Vlad Feinberg
Spark Summit
 
Automining Presentation by Andre Gibson - Key Engineering Solutions
Automining Presentation by Andre Gibson - Key Engineering SolutionsAutomining Presentation by Andre Gibson - Key Engineering Solutions
Automining Presentation by Andre Gibson - Key Engineering Solutions
Key Engineering Solutions
 
Modeling & Simulation Lecture Notes
Modeling & Simulation Lecture NotesModeling & Simulation Lecture Notes
Modeling & Simulation Lecture Notes
FellowBuddy.com
 
Predict future time series forecasting
Predict future time series forecastingPredict future time series forecasting
Predict future time series forecasting
Hichem Felouat
 
Online learning with structured streaming, spark summit brussels 2016
Online learning with structured streaming, spark summit brussels 2016Online learning with structured streaming, spark summit brussels 2016
Online learning with structured streaming, spark summit brussels 2016
Ram Sriharsha
 
Introduction to Chainer
Introduction to ChainerIntroduction to Chainer
Introduction to Chainer
Seiya Tokui
 
Remember what you learn “A trainable spaced repetition model for online skill...
Remember what you learn “A trainable spaced repetition model for online skill...Remember what you learn “A trainable spaced repetition model for online skill...
Remember what you learn “A trainable spaced repetition model for online skill...
Anni Sapountzi
 
Mit16 30 f10_lec01
Mit16 30 f10_lec01Mit16 30 f10_lec01
Mit16 30 f10_lec01
Masrufaiyah Masrufauyah
 
MODIFIED Final Presentation - JAVID
MODIFIED Final Presentation - JAVIDMODIFIED Final Presentation - JAVID
MODIFIED Final Presentation - JAVIDJavid Mahmoudzadeh
 
Self tuning, Optimal MPC, DMC.pptx
Self tuning, Optimal MPC, DMC.pptxSelf tuning, Optimal MPC, DMC.pptx
Self tuning, Optimal MPC, DMC.pptx
glan Glandeva
 
Artificial Intelligence Course: Linear models
Artificial Intelligence Course: Linear models Artificial Intelligence Course: Linear models
Artificial Intelligence Course: Linear models
ananth
 
When Should I Use Simulation?
When Should I Use Simulation?When Should I Use Simulation?
When Should I Use Simulation?
SIMUL8 Corporation
 
Predicting Stock Market Price Using Support Vector Regression
Predicting Stock Market Price Using Support Vector RegressionPredicting Stock Market Price Using Support Vector Regression
Predicting Stock Market Price Using Support Vector Regression
Chittagong Independent University
 

Similar to Using Machine Learning For Solving Time Series Probelms (20)

Lecture 6.2 flow control repetition
Lecture 6.2  flow control repetitionLecture 6.2  flow control repetition
Lecture 6.2 flow control repetition
 
Time Series Forecasting Using Recurrent Neural Network and Vector Autoregress...
Time Series Forecasting Using Recurrent Neural Network and Vector Autoregress...Time Series Forecasting Using Recurrent Neural Network and Vector Autoregress...
Time Series Forecasting Using Recurrent Neural Network and Vector Autoregress...
 
Constraint Programming in Compiler Optimization: Lessons Learned
Constraint Programming in Compiler Optimization: Lessons LearnedConstraint Programming in Compiler Optimization: Lessons Learned
Constraint Programming in Compiler Optimization: Lessons Learned
 
Start MPC
Start MPC Start MPC
Start MPC
 
Computer aided process design and simulation (Cheg.pptx
Computer aided process design and simulation (Cheg.pptxComputer aided process design and simulation (Cheg.pptx
Computer aided process design and simulation (Cheg.pptx
 
Intro to LV in 3 Hours for Control and Sim 8_5.pptx
Intro to LV in 3 Hours for Control and Sim 8_5.pptxIntro to LV in 3 Hours for Control and Sim 8_5.pptx
Intro to LV in 3 Hours for Control and Sim 8_5.pptx
 
Quantitative Forecasting Techniques in SCM
Quantitative Forecasting Techniques in SCMQuantitative Forecasting Techniques in SCM
Quantitative Forecasting Techniques in SCM
 
Spark Summit EU talk by Ram Sriharsha and Vlad Feinberg
Spark Summit EU talk by Ram Sriharsha and Vlad FeinbergSpark Summit EU talk by Ram Sriharsha and Vlad Feinberg
Spark Summit EU talk by Ram Sriharsha and Vlad Feinberg
 
Automining Presentation by Andre Gibson - Key Engineering Solutions
Automining Presentation by Andre Gibson - Key Engineering SolutionsAutomining Presentation by Andre Gibson - Key Engineering Solutions
Automining Presentation by Andre Gibson - Key Engineering Solutions
 
Modeling & Simulation Lecture Notes
Modeling & Simulation Lecture NotesModeling & Simulation Lecture Notes
Modeling & Simulation Lecture Notes
 
Predict future time series forecasting
Predict future time series forecastingPredict future time series forecasting
Predict future time series forecasting
 
Online learning with structured streaming, spark summit brussels 2016
Online learning with structured streaming, spark summit brussels 2016Online learning with structured streaming, spark summit brussels 2016
Online learning with structured streaming, spark summit brussels 2016
 
Introduction to Chainer
Introduction to ChainerIntroduction to Chainer
Introduction to Chainer
 
Remember what you learn “A trainable spaced repetition model for online skill...
Remember what you learn “A trainable spaced repetition model for online skill...Remember what you learn “A trainable spaced repetition model for online skill...
Remember what you learn “A trainable spaced repetition model for online skill...
 
Mit16 30 f10_lec01
Mit16 30 f10_lec01Mit16 30 f10_lec01
Mit16 30 f10_lec01
 
MODIFIED Final Presentation - JAVID
MODIFIED Final Presentation - JAVIDMODIFIED Final Presentation - JAVID
MODIFIED Final Presentation - JAVID
 
Self tuning, Optimal MPC, DMC.pptx
Self tuning, Optimal MPC, DMC.pptxSelf tuning, Optimal MPC, DMC.pptx
Self tuning, Optimal MPC, DMC.pptx
 
Artificial Intelligence Course: Linear models
Artificial Intelligence Course: Linear models Artificial Intelligence Course: Linear models
Artificial Intelligence Course: Linear models
 
When Should I Use Simulation?
When Should I Use Simulation?When Should I Use Simulation?
When Should I Use Simulation?
 
Predicting Stock Market Price Using Support Vector Regression
Predicting Stock Market Price Using Support Vector RegressionPredicting Stock Market Price Using Support Vector Regression
Predicting Stock Market Price Using Support Vector Regression
 

More from Sri Ambati

GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
Sri Ambati
 
Generative AI Masterclass - Model Risk Management.pptx
Generative AI Masterclass - Model Risk Management.pptxGenerative AI Masterclass - Model Risk Management.pptx
Generative AI Masterclass - Model Risk Management.pptx
Sri Ambati
 
AI and the Future of Software Development: A Sneak Peek
AI and the Future of Software Development: A Sneak Peek AI and the Future of Software Development: A Sneak Peek
AI and the Future of Software Development: A Sneak Peek
Sri Ambati
 
LLMOps: Match report from the top of the 5th
LLMOps: Match report from the top of the 5thLLMOps: Match report from the top of the 5th
LLMOps: Match report from the top of the 5th
Sri Ambati
 
Building, Evaluating, and Optimizing your RAG App for Production
Building, Evaluating, and Optimizing your RAG App for ProductionBuilding, Evaluating, and Optimizing your RAG App for Production
Building, Evaluating, and Optimizing your RAG App for Production
Sri Ambati
 
Building LLM Solutions using Open Source and Closed Source Solutions in Coher...
Building LLM Solutions using Open Source and Closed Source Solutions in Coher...Building LLM Solutions using Open Source and Closed Source Solutions in Coher...
Building LLM Solutions using Open Source and Closed Source Solutions in Coher...
Sri Ambati
 
Risk Management for LLMs
Risk Management for LLMsRisk Management for LLMs
Risk Management for LLMs
Sri Ambati
 
Open-Source AI: Community is the Way
Open-Source AI: Community is the WayOpen-Source AI: Community is the Way
Open-Source AI: Community is the Way
Sri Ambati
 
Building Custom GenAI Apps at H2O
Building Custom GenAI Apps at H2OBuilding Custom GenAI Apps at H2O
Building Custom GenAI Apps at H2O
Sri Ambati
 
Applied Gen AI for the Finance Vertical
Applied Gen AI for the Finance Vertical Applied Gen AI for the Finance Vertical
Applied Gen AI for the Finance Vertical
Sri Ambati
 
Cutting Edge Tricks from LLM Papers
Cutting Edge Tricks from LLM PapersCutting Edge Tricks from LLM Papers
Cutting Edge Tricks from LLM Papers
Sri Ambati
 
Practitioner's Guide to LLMs: Exploring Use Cases and a Glimpse Beyond Curren...
Practitioner's Guide to LLMs: Exploring Use Cases and a Glimpse Beyond Curren...Practitioner's Guide to LLMs: Exploring Use Cases and a Glimpse Beyond Curren...
Practitioner's Guide to LLMs: Exploring Use Cases and a Glimpse Beyond Curren...
Sri Ambati
 
Open Source h2oGPT with Retrieval Augmented Generation (RAG), Web Search, and...
Open Source h2oGPT with Retrieval Augmented Generation (RAG), Web Search, and...Open Source h2oGPT with Retrieval Augmented Generation (RAG), Web Search, and...
Open Source h2oGPT with Retrieval Augmented Generation (RAG), Web Search, and...
Sri Ambati
 
KGM Mastering Classification and Regression with LLMs: Insights from Kaggle C...
KGM Mastering Classification and Regression with LLMs: Insights from Kaggle C...KGM Mastering Classification and Regression with LLMs: Insights from Kaggle C...
KGM Mastering Classification and Regression with LLMs: Insights from Kaggle C...
Sri Ambati
 
LLM Interpretability
LLM Interpretability LLM Interpretability
LLM Interpretability
Sri Ambati
 
Never Reply to an Email Again
Never Reply to an Email AgainNever Reply to an Email Again
Never Reply to an Email Again
Sri Ambati
 
Introducción al Aprendizaje Automatico con H2O-3 (1)
Introducción al Aprendizaje Automatico con H2O-3 (1)Introducción al Aprendizaje Automatico con H2O-3 (1)
Introducción al Aprendizaje Automatico con H2O-3 (1)
Sri Ambati
 
From Rapid Prototypes to an end-to-end Model Deployment: an AI Hedge Fund Use...
From Rapid Prototypes to an end-to-end Model Deployment: an AI Hedge Fund Use...From Rapid Prototypes to an end-to-end Model Deployment: an AI Hedge Fund Use...
From Rapid Prototypes to an end-to-end Model Deployment: an AI Hedge Fund Use...
Sri Ambati
 
AI Foundations Course Module 1 - Shifting to the Next Step in Your AI Transfo...
AI Foundations Course Module 1 - Shifting to the Next Step in Your AI Transfo...AI Foundations Course Module 1 - Shifting to the Next Step in Your AI Transfo...
AI Foundations Course Module 1 - Shifting to the Next Step in Your AI Transfo...
Sri Ambati
 

More from Sri Ambati (20)

GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
Generative AI Masterclass - Model Risk Management.pptx
Generative AI Masterclass - Model Risk Management.pptxGenerative AI Masterclass - Model Risk Management.pptx
Generative AI Masterclass - Model Risk Management.pptx
 
AI and the Future of Software Development: A Sneak Peek
AI and the Future of Software Development: A Sneak Peek AI and the Future of Software Development: A Sneak Peek
AI and the Future of Software Development: A Sneak Peek
 
LLMOps: Match report from the top of the 5th
LLMOps: Match report from the top of the 5thLLMOps: Match report from the top of the 5th
LLMOps: Match report from the top of the 5th
 
Building, Evaluating, and Optimizing your RAG App for Production
Building, Evaluating, and Optimizing your RAG App for ProductionBuilding, Evaluating, and Optimizing your RAG App for Production
Building, Evaluating, and Optimizing your RAG App for Production
 
Building LLM Solutions using Open Source and Closed Source Solutions in Coher...
Building LLM Solutions using Open Source and Closed Source Solutions in Coher...Building LLM Solutions using Open Source and Closed Source Solutions in Coher...
Building LLM Solutions using Open Source and Closed Source Solutions in Coher...
 
Risk Management for LLMs
Risk Management for LLMsRisk Management for LLMs
Risk Management for LLMs
 
Open-Source AI: Community is the Way
Open-Source AI: Community is the WayOpen-Source AI: Community is the Way
Open-Source AI: Community is the Way
 
Building Custom GenAI Apps at H2O
Building Custom GenAI Apps at H2OBuilding Custom GenAI Apps at H2O
Building Custom GenAI Apps at H2O
 
Applied Gen AI for the Finance Vertical
Applied Gen AI for the Finance Vertical Applied Gen AI for the Finance Vertical
Applied Gen AI for the Finance Vertical
 
Cutting Edge Tricks from LLM Papers
Cutting Edge Tricks from LLM PapersCutting Edge Tricks from LLM Papers
Cutting Edge Tricks from LLM Papers
 
Practitioner's Guide to LLMs: Exploring Use Cases and a Glimpse Beyond Curren...
Practitioner's Guide to LLMs: Exploring Use Cases and a Glimpse Beyond Curren...Practitioner's Guide to LLMs: Exploring Use Cases and a Glimpse Beyond Curren...
Practitioner's Guide to LLMs: Exploring Use Cases and a Glimpse Beyond Curren...
 
Open Source h2oGPT with Retrieval Augmented Generation (RAG), Web Search, and...
Open Source h2oGPT with Retrieval Augmented Generation (RAG), Web Search, and...Open Source h2oGPT with Retrieval Augmented Generation (RAG), Web Search, and...
Open Source h2oGPT with Retrieval Augmented Generation (RAG), Web Search, and...
 
KGM Mastering Classification and Regression with LLMs: Insights from Kaggle C...
KGM Mastering Classification and Regression with LLMs: Insights from Kaggle C...KGM Mastering Classification and Regression with LLMs: Insights from Kaggle C...
KGM Mastering Classification and Regression with LLMs: Insights from Kaggle C...
 
LLM Interpretability
LLM Interpretability LLM Interpretability
LLM Interpretability
 
Never Reply to an Email Again
Never Reply to an Email AgainNever Reply to an Email Again
Never Reply to an Email Again
 
Introducción al Aprendizaje Automatico con H2O-3 (1)
Introducción al Aprendizaje Automatico con H2O-3 (1)Introducción al Aprendizaje Automatico con H2O-3 (1)
Introducción al Aprendizaje Automatico con H2O-3 (1)
 
From Rapid Prototypes to an end-to-end Model Deployment: an AI Hedge Fund Use...
From Rapid Prototypes to an end-to-end Model Deployment: an AI Hedge Fund Use...From Rapid Prototypes to an end-to-end Model Deployment: an AI Hedge Fund Use...
From Rapid Prototypes to an end-to-end Model Deployment: an AI Hedge Fund Use...
 
AI Foundations Course Module 1 - Shifting to the Next Step in Your AI Transfo...
AI Foundations Course Module 1 - Shifting to the Next Step in Your AI Transfo...AI Foundations Course Module 1 - Shifting to the Next Step in Your AI Transfo...
AI Foundations Course Module 1 - Shifting to the Next Step in Your AI Transfo...
 

Recently uploaded

Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
Product School
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Product School
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
ThousandEyes
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
Kari Kakkonen
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
Dorra BARTAGUIZ
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
Product School
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
Product School
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
Product School
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
DianaGray10
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
Jemma Hussein Allen
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
91mobiles
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 

Recently uploaded (20)

Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
From Siloed Products to Connected Ecosystem: Building a Sustainable and Scala...
 
Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...Designing Great Products: The Power of Design and Leadership by Chief Designe...
Designing Great Products: The Power of Design and Leadership by Chief Designe...
 
Assuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyesAssuring Contact Center Experiences for Your Customers With ThousandEyes
Assuring Contact Center Experiences for Your Customers With ThousandEyes
 
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdfFIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
FIDO Alliance Osaka Seminar: The WebAuthn API and Discoverable Credentials.pdf
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
DevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA ConnectDevOps and Testing slides at DASA Connect
DevOps and Testing slides at DASA Connect
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
Elevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object CalisthenicsElevating Tactical DDD Patterns Through Object Calisthenics
Elevating Tactical DDD Patterns Through Object Calisthenics
 
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
De-mystifying Zero to One: Design Informed Techniques for Greenfield Innovati...
 
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
AI for Every Business: Unlocking Your Product's Universal Potential by VP of ...
 
How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...How world-class product teams are winning in the AI era by CEO and Founder, P...
How world-class product teams are winning in the AI era by CEO and Founder, P...
 
UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3UiPath Test Automation using UiPath Test Suite series, part 3
UiPath Test Automation using UiPath Test Suite series, part 3
 
The Future of Platform Engineering
The Future of Platform EngineeringThe Future of Platform Engineering
The Future of Platform Engineering
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdfFIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
FIDO Alliance Osaka Seminar: FIDO Security Aspects.pdf
 
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdfSmart TV Buyer Insights Survey 2024 by 91mobiles.pdf
Smart TV Buyer Insights Survey 2024 by 91mobiles.pdf
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 

Using Machine Learning For Solving Time Series Probelms

  • 1. H2O Time Series Using machine learning for solving time series problems By Danilo Bassi
  • 2. Machine learning with time series Typical steps: 1. Conversion data to regular time series (if needed) • Sampling rate or period to use • Convert irregular time data (or events) into regular sampled • Resample (in time) and convert to numeric categorical/symbolic variables 2. Dynamic preprocessing (optional): convert dynamic data into static pattern • Tapped delay line (time shift), fixed • Apply dynamic filter (time convolution), adjustable • Use transformed domain 3. Apply machine learning • Static (standard) if dynamic processing is available • Dynamic models: recurrent neural networks and variants H2O Time Series 2
  • 3. Machine learning with time series Conversion data to regular time series • Define convenient sampling rate or period (time resolution), according to problem need and variability (analyze autocorrelation) • Regularize time series: • Convert irregular time data (or events) into regular sampled • Complete when needed • Convert categorical/symbolic into numeric (optional) • Reshape : • Under sampling: aggregation • Over sampling: smoothing H2O Time Series 3
  • 4. Machine learning with time series Dynamic preprocessing • Needed for static machine learning model to deal with past information • Simple processing may be convenient: smoothing, differentiating, etc. • Other transformation may be used (non linear like log, etc.) • Complex dynamic processing (array): • Time domain: • Tapped delay line: time shifts (past information over a window) • Dynamic filter array: time convolution (may be adjustable) • Transformed domain (over window): FFT, wavelet transform, etc. • Result: each time series variable converted in array suitable for input at the machine learning process H2O Time Series 4
  • 5. Machine learning with time series Dynamic processing array H2O Time Series 5 H1(z) (𝑥 ∗ ℎ1)[𝑖] 𝑥[𝑖] H2(z) H3(z) (𝑥 ∗ ℎ2)[𝑖] (𝑥 ∗ ℎ3)[𝑖] Tapped delay line Time shift Dynamic filters array Time convolution z -1 z -1 z -1 𝑥[𝑖] 𝑥[𝑖 − 1] 𝑥[𝑖] 𝑥[𝑖 − 2] 𝑥[𝑖 − 3]
  • 6. Machine learning with time series Application of machine learning • Style of learning: • Long term for fixed model: single process off-line training, then use with no adjustment • Short term for (time) variant model: initial off-line training (optional) followed by use with on-line training (adaptive) • Type of machine learning model: • Static: output is function of present input only, dynamic aspect of times series must be captured by dynamic preprocessing. Most machine learning models. • Dynamic: output is function of actual input and past history. Recurrent neural networks (RNN) and variants (Long short-term memory neural network, etc.) H2O Time Series 6
  • 7. Machine learning with time series Machine Learning with dynamic preprocessing Machine Learning with dynamic system (like recurrent neural network) H2O Time Series 7 Dynamic processing Static Machine Learning Recurrent Neural Network Dynamic Processing (optional) 𝑣[i] 𝑥[i] 𝑦[𝑖]𝑥[𝑖] 𝑥[𝑖] 𝑦[𝑖]
  • 8. Machine learning with time series Use cases • Prediction or forecasting: • Given a time series (and optional inputs), produce expected future value(s): 𝑥 −∞: 𝑖 , 𝑣 −∞: 𝑖 ⟹ 𝑥 𝑖 + 𝑑 , 𝑑 ≥ 1 • Examples: • Simple one-step forecasting (single variable) 𝑥 −∞: 𝑖 ⟹ 𝑥 𝑖 + 1 • Soft sensor: target values are known only at training 𝑣 −∞: 𝑖 ⟹ 𝑥 𝑖 • Anomaly detector: detection of unexpected values 𝑥 −∞: 𝑖 , 𝑣 −∞: 𝑖 ⟹ ε 𝑖 = 𝑥 𝑖 − 𝑥 𝑖 H2O Time Series 8
  • 9. Machine learning with time series Use cases • Classification: • Given a time series with a known classification (supervised) 𝑥 −∞: 𝑖 , 𝑐 −∞: 𝑖 − 1 ⟹ 𝑐 𝑖 , training phase 𝑥 −∞: 𝑖 ⟹ 𝑐 𝑖 , application phase • Given a time series with unknown classification (unsupervised) 𝑥 −∞: 𝑖 ⟹ 𝑐 𝑖 H2O Time Series 9
  • 10. Machine learning with time series Use cases • Control or Decision Making • For a dynamic system H with input x, output y: 𝑥 −∞: 𝑖 𝐻 𝑦 𝑖 • Define a controller G to produce suitable input into H: H2O Time Series 10 𝑥[𝑖] H 𝑦[𝑖] G
  • 11. Machine learning with time series Control or Decision Making 1. Reference problem Achieve or follow a desired output (target or reference): 𝑦 • Define synthetic model G such that 𝐺𝜊𝐻 𝑦 = 𝑦: { 𝑦 −∞: 𝑖 , 𝑦 −∞: 𝑖 − 1 } 𝐺 𝑥 −∞: 𝑖 𝐻 𝑦 𝑖 | 𝑦 𝑖 + 𝑑 = 𝑦 𝑖 + 𝑑 , 𝑑 ≥ 1 • Train 𝐺, may use other model to predict H (predictive control) H2O Time Series 11 𝑥[𝑖] H 𝑦[𝑖] G 𝑦 −∞: 𝑖 − 1 𝑦 −∞: 𝑖
  • 12. Machine learning with time series Control or Decision Making 2. Optimization problem Optimize (min or max) an objective function the output: 𝑞 = 𝑄(𝑦) • Define synthetic model G such that 𝐺 ∘ 𝐻 ∘ 𝑄 𝑑 = 𝑞 𝑖 + 𝑑 be optimal {𝑞 −∞: 𝑖 − 1 } 𝐺 𝑥 −∞: 𝑖 𝐻 𝑦 −∞: 𝑖 𝑄 𝑞 𝑖 | 𝑀𝑎𝑥 𝐺 𝑞[𝑖 + 𝑑] (or Min) • Train 𝐺, may use other model to predict H and Q H2O Time Series 12 𝑥[𝑖] H 𝑦[𝑖] G𝑞 −∞: 𝑖 − 1 Q 𝑞[𝑖]
  • 13. H2O Time Series 13 Questions???

Editor's Notes

  1. Max