SlideShare a Scribd company logo
1 of 13
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 LearnedPeter 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.pptxPaulosMekuria
 
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.pptxDeepakJangid87
 
Quantitative Forecasting Techniques in SCM
Quantitative Forecasting Techniques in SCMQuantitative Forecasting Techniques in SCM
Quantitative Forecasting Techniques in SCMYountek1
 
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 FeinbergSpark 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 SolutionsKey Engineering Solutions
 
Modeling & Simulation Lecture Notes
Modeling & Simulation Lecture NotesModeling & Simulation Lecture Notes
Modeling & Simulation Lecture NotesFellowBuddy.com
 
Predict future time series forecasting
Predict future time series forecastingPredict future time series forecasting
Predict future time series forecastingHichem 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 2016Ram Sriharsha
 
Introduction to Chainer
Introduction to ChainerIntroduction to Chainer
Introduction to ChainerSeiya 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
 
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.pptxglan Glandeva
 
Artificial Intelligence Course: Linear models
Artificial Intelligence Course: Linear models Artificial Intelligence Course: Linear models
Artificial Intelligence Course: Linear models ananth
 
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 RegressionChittagong 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

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 DaySri 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.pptxSri 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 5thSri 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 ProductionSri 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 LLMsSri 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 WaySri Ambati
 
Building Custom GenAI Apps at H2O
Building Custom GenAI Apps at H2OBuilding Custom GenAI Apps at H2O
Building Custom GenAI Apps at H2OSri 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 PapersSri 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 AgainSri 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
 
AI Foundations Course Module 1 - An AI Transformation Journey
AI Foundations Course Module 1 - An AI Transformation JourneyAI Foundations Course Module 1 - An AI Transformation Journey
AI Foundations Course Module 1 - An AI Transformation JourneySri Ambati
 

More from Sri Ambati (20)

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...
 
AI Foundations Course Module 1 - An AI Transformation Journey
AI Foundations Course Module 1 - An AI Transformation JourneyAI Foundations Course Module 1 - An AI Transformation Journey
AI Foundations Course Module 1 - An AI Transformation Journey
 

Recently uploaded

[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdfSandro Moreira
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyKhushali Kathiriya
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfsudhanshuwaghmare1
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoffsammart93
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Orbitshub
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...apidays
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...apidays
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businesspanagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FMESafe Software
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfOrbitshub
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWERMadyBayot
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century educationjfdjdjcjdnsjd
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...DianaGray10
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024The Digital Insurer
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Zilliz
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherRemote DBA Services
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesrafiqahmad00786416
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAndrey Devyatkin
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MIND CTI
 

Recently uploaded (20)

[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Strategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a FresherStrategies for Landing an Oracle DBA Job as a Fresher
Strategies for Landing an Oracle DBA Job as a Fresher
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 

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