State of the art time-series analysis with deep learning by Javier Ordóñez at Big Data Spain 2017
State of the art time-
series analysis with
deep learning
Who am I?
Francisco Javier
Ordóñez
Lead Data Scientist
javier.ordonez@stylesage.c
o
http://stylesage.
co
What is this about?
Approach for time series analysis using deep neural nets
What are we going to see:
Brief introduction
Deep learning concepts
Model
Use case
Core ref:
“Deep convolutional and lstm recurrent neural networks for multimodal wearable activity
recognition” FJ Ordóñez, et. al
Time series classification Time series forecasting
ECG anomaly detection Energy demand prediction
Human activity recognition Stock market prediction
Time series
A time series is a sequence of regular time-ordered observations
e.g. stock prices, weather readings, smartphone sensor data, health
monitoring data
“Traditional” approaches for time series analysis are based on autoregressive
models
-Challenges: Tackle feature design, usually a single signal involved, etc
Why deep
learning?●State of the art in speech
recognition and computer vision
●Capable of automatically learn
features
○Don’t require much domain
knowledge
●Works better when you have lots
of labelled data
© David Yanofsky |
CONCEPTS
Model that learns by the example
●using many examples
●defined as series of hierarchically connected functions
(layers)
●can be very complex (deep!)
Artificial neural
nets
Model that learns by the example
●using many examples
●defined as series of hierarchically connected functions
(layers)
●can be very complex (deep!)
Input Hidden layer Output
Artificial neural
nets
What does it know?
●composed by units (neurons), distributed in layers, which
control whether the data flow should continue (activation
level)
●controlled by “weights” and nonlinear functions
Artificial neural
nets
Input Hidden layer Output
How does it learn?
●correcting the errors
●backpropagation!, the weights are adjusted and readjusted,
layer by layer, until the network can have the fewest
possible errors
Artificial neural
nets
Input Hidden layer Output
Case: image processing
●Classical problem: MNIST dataset
○It’s the “Hello World” of image
processing
●Recognition of handwritten numbers
●Training - 60,000 pictures to learn the
relation picture-label
Input Hidden layer Output
Case: image processing
It’s a
8!!
●Convolutional nets are less dense = less number of
weights
●Focus on local patterns, assuming that neighboring
variables are locally correlated
- Images - Pixels that are close
●One simple operation is repeated over and over several
times starting with the raw input data.
●They work very well. State of the art results in different
fields
Convnets
Convnets: filters
Input
Output
Filte
r
●Parameters of
convnets
●Capture a feature
Convnets:
features
http://caisplusplus.usc.edu/
Convnets:
architecture
https://blogs.sap.com/2015/01/14/image-classification-with-convolutional-neural-networks-my-attempt-at-the-ndsb-kaggle-
competition/
Convnets:
training
http://www.cs.nyu.edu/~yann/research/deep/ Y. LeCun
●Random initialization
●Backpropagated end to end
“Convolutional deep belief networks for scalable unsupervised learning of hierarchical representations”. H Lee
Convnets: feature
learning
Convnets and images:
summary
http://karpathy.github.io/2015/10/25/selfie/ A.
Karpathy
●Result is a transformed representation of the input
Convnets:
dimensions
●Number of dimensions is not
relevant
●Time series use 1D filters (or
kernels)
●They are also feature extractors
© Wikipedia
Convnets:
signals●Same principles:
○Operations applied in a hierarchy
○Each filter will define a feature
map
○As many features maps as filters
○Each filter captures a pattern
●Result is another sequence/signal
○Transformed by the operations
3rd
layer
2nd
layer
1st
Recurrent neural
net nets
●Designed to learn from time
related data
●Units with persistence
●Input includes the output from
previous timestep
© deeplearning4j
Memory cells which can maintain its state over time, and non-linear
gating units which regulate the information flow into and out of the
cell
Long short-term
memory
“Generating Sequences With Recurrent Neural Networks”
LSTM: Layers
“Recurrent Neural Network Regularization” Zaremba, W.
●Also in a hierarchy. Output of
layer l is the input of layer
l+1
●Can model more complex
time relations
MODEL
DeepConvLSTM
Deep framework based on convolutional and LSTM recurrent
units
●The convolutional layers are feature extractors and provide abstract
representations of the input data in feature maps.
●The recurrent layers model the temporal dynamics of the activation of the
feature maps
https://github.com/sussexwearlab/DeepConvLST
M
DeepConvLSTM
●Architecture
○How many layers
○How many nodes/filters
○Which type
●Data
○Batches size
○Size of filters
○Number of steps the
memory cells will learn
●Training:
○Regularization
○Learning rate
○Gradient expressions
○Init policy
Parameters are learnt automatically, but the
hyperparameters??
●Architecture
○Layers:
Conv(64)−Conv(64)−Conv(64)−Conv(64)−LSTM(128)−LSTM(128)
○Type: ReLUs units for conv layers
●Data
○Batches size: 100 (careful with the GPU memory)
○Size of filters: 5 samples
○Number of steps the memory cells will learn: 24 samples
●Training
○Regularization: Dropout in the conv layers
○Learning rate: Small (0.0001)
○Gradient expressions: RMSProp. Usually a good choice for
RNN
DeepConvLSTM:
hyperparams
DeepConvLSTM:
architecture
Input 1st conv 2nd conv 3rd conv 4th conv 1st lstm 2nd
lstm Output
64 64 64 64 128
128
Code +Lasagn
e
USE CASE
Stand Run Walk
time
Activity
recognition
Output:
Activity label
Input:
Sensor signals
Supervised classification problem. Most likely activity label
according to a sensor signal for each time instant.
Dataset
●113 sensor channels
●30 Hz
●6 hours data
●17 home activities:
○Open/Close fridge
○Clean Table
○Toggle switch
○Open/Close dishwasher
○Open/Close drawers
○Open/Close doors
○Drink from cup
"Collecting complex activity datasets in highly rich networked sensor environments"
Roggen, D. et al
OPPORTUNITY
dataset
Labels
F-score
●Considers all errors equally important
●Combines precision and recall
●Value between 0 and 1
●The higher the F-score the better the
model
Metrics
Loss
●Measures of the number of errors
●Value aimed to optimize during the
learning process
●Value between 0 and 1
●The lower the loss, the better a model
1
0
f-score
1
0
●Benchmark:
○OPPORTUNITY challenge
●~1M parameters
●Single GPU - 1664 cores
●Training takes ~6h to converge
●Classification takes ~6 seconds
(kNN)
(SVM)
(kNN + SVM)
Performance
F-score
1
0
Training
visualizationGreenness Thickness
Influence in Activation
final score level
F-score Loss
1
0
1
0
class 1
class 2
class n
State of the art time-series analysis with deep learning by Javier Ordóñez at Big Data Spain 2017
Summary
Automatic feature learning. A convolutional filter captures a
specific salient pattern and would act as a feature detector
Core ref:
“Deep convolutional and lstm recurrent neural networks for multimodal wearable activity
recognition” FJ Ordóñez, et. al
We have to deal with the hyperparameters.
“Learning to learn by gradient descent by gradient descent”
Andrychowicz. M.
Recurrent layers can learn the temporal dynamics of such
features
State of the art performance with restrained nets (~1M
params). Capable of real time processing

More Related Content

PDF
Deep Recurrent Neural Networks for Sequence Learning in Spark by Yves Mabiala
PDF
Anomaly Detection at Scale
PDF
Distributed implementation of a lstm on spark and tensorflow
PDF
DLD meetup 2017, Efficient Deep Learning
PDF
Applying your Convolutional Neural Networks
PDF
Large Scale Deep Learning with TensorFlow
PPTX
Deep Learning with Apache Spark: an Introduction
PDF
Startup.Ml: Using neon for NLP and Localization Applications
Deep Recurrent Neural Networks for Sequence Learning in Spark by Yves Mabiala
Anomaly Detection at Scale
Distributed implementation of a lstm on spark and tensorflow
DLD meetup 2017, Efficient Deep Learning
Applying your Convolutional Neural Networks
Large Scale Deep Learning with TensorFlow
Deep Learning with Apache Spark: an Introduction
Startup.Ml: Using neon for NLP and Localization Applications

What's hot (19)

PPTX
Anomaly detection in deep learning (Updated) English
PDF
Introduction to deep learning @ Startup.ML by Andres Rodriguez
PPTX
Intel Nervana Artificial Intelligence Meetup 11/30/16
PDF
Urs Köster - Convolutional and Recurrent Neural Networks
PDF
Introduction to Deep Learning and neon at Galvanize
PDF
Basic ideas on keras framework
PDF
Language translation with Deep Learning (RNN) with TensorFlow
 
PPTX
Introduction to Deep Learning
PDF
Anil Thomas - Object recognition
PDF
Machine Learning Use Cases with Azure
PDF
Spark Meetup TensorFrames
PDF
Alex Smola, Director of Machine Learning, AWS/Amazon, at MLconf SF 2016
PDF
Nervana and the Future of Computing
PPTX
Daniel Shank, Data Scientist, Talla at MLconf SF 2016
PDF
First steps with Keras 2: A tutorial with Examples
PPTX
Energy Monitoring With Self-taught Deep Network
PDF
Image Classification Done Simply using Keras and TensorFlow
PDF
ESAI-CEU-UCH solution for American Epilepsy Society Seizure Prediction Challenge
PDF
End-to-End Object Detection with Transformers
Anomaly detection in deep learning (Updated) English
Introduction to deep learning @ Startup.ML by Andres Rodriguez
Intel Nervana Artificial Intelligence Meetup 11/30/16
Urs Köster - Convolutional and Recurrent Neural Networks
Introduction to Deep Learning and neon at Galvanize
Basic ideas on keras framework
Language translation with Deep Learning (RNN) with TensorFlow
 
Introduction to Deep Learning
Anil Thomas - Object recognition
Machine Learning Use Cases with Azure
Spark Meetup TensorFrames
Alex Smola, Director of Machine Learning, AWS/Amazon, at MLconf SF 2016
Nervana and the Future of Computing
Daniel Shank, Data Scientist, Talla at MLconf SF 2016
First steps with Keras 2: A tutorial with Examples
Energy Monitoring With Self-taught Deep Network
Image Classification Done Simply using Keras and TensorFlow
ESAI-CEU-UCH solution for American Epilepsy Society Seizure Prediction Challenge
End-to-End Object Detection with Transformers
Ad

Similar to State of the art time-series analysis with deep learning by Javier Ordóñez at Big Data Spain 2017 (20)

PDF
物件偵測與辨識技術
PDF
MDEC Data Matters Series: machine learning and Deep Learning, A Primer
PDF
Accelerating stochastic gradient descent using adaptive mini batch size3
PPTX
Deep learning from a novice perspective
PDF
AI and Deep Learning
PPTX
Cvpr 2018 papers review (efficient computing)
PPTX
Deep learning
PDF
Introduction to Deep learning Models.pdf
PPTX
Real-Time Streaming Data Analysis with HTM
PPTX
deeplearningwithneuralnetworks-190303185558 (1).pptx
PPTX
Long and short term memory presesntation
PPTX
Wits presentation 6_28072015
PPTX
Seminar nov2017
PPTX
Application of machine learning and cognitive computing in intrusion detectio...
PDF
Deep learning fundamentals workshop
PDF
Apache MXNet ODSC West 2018
PDF
Intro to Neural Networks
PDF
Sequence Model pytorch at colab with gpu.pdf
 
PPTX
Deep Learning With Neural Networks
PPTX
Introduction to deep learning
物件偵測與辨識技術
MDEC Data Matters Series: machine learning and Deep Learning, A Primer
Accelerating stochastic gradient descent using adaptive mini batch size3
Deep learning from a novice perspective
AI and Deep Learning
Cvpr 2018 papers review (efficient computing)
Deep learning
Introduction to Deep learning Models.pdf
Real-Time Streaming Data Analysis with HTM
deeplearningwithneuralnetworks-190303185558 (1).pptx
Long and short term memory presesntation
Wits presentation 6_28072015
Seminar nov2017
Application of machine learning and cognitive computing in intrusion detectio...
Deep learning fundamentals workshop
Apache MXNet ODSC West 2018
Intro to Neural Networks
Sequence Model pytorch at colab with gpu.pdf
 
Deep Learning With Neural Networks
Introduction to deep learning
Ad

More from Big Data Spain (20)

PDF
Big Data, Big Quality? by Irene Gonzálvez at Big Data Spain 2017
PDF
Scaling a backend for a big data and blockchain environment by Rafael Ríos at...
PDF
AI: The next frontier by Amparo Alonso at Big Data Spain 2017
PDF
Disaster Recovery for Big Data by Carlos Izquierdo at Big Data Spain 2017
PDF
Presentation: Boost Hadoop and Spark with in-memory technologies by Akmal Cha...
PDF
Data science for lazy people, Automated Machine Learning by Diego Hueltes at ...
PDF
Training Deep Learning Models on Multiple GPUs in the Cloud by Enrique Otero ...
PDF
Unbalanced data: Same algorithms different techniques by Eric Martín at Big D...
PDF
Trading at market speed with the latest Kafka features by Iñigo González at B...
PDF
Unified Stream Processing at Scale with Apache Samza by Jake Maes at Big Data...
PDF
The Analytic Platform behind IBM’s Watson Data Platform by Luciano Resende a...
PDF
Artificial Intelligence and Data-centric businesses by Óscar Méndez at Big Da...
PDF
Why big data didn’t end causal inference by Totte Harinen at Big Data Spain 2017
PDF
Meme Index. Analyzing fads and sensations on the Internet by Miguel Romero at...
PDF
Vehicle Big Data that Drives Smart City Advancement by Mike Branch at Big Dat...
PDF
End of the Myth: Ultra-Scalable Transactional Management by Ricardo Jiménez-P...
PDF
Attacking Machine Learning used in AntiVirus with Reinforcement by Rubén Mart...
PDF
More people, less banking: Blockchain by Salvador Casquero at Big Data Spain ...
PDF
Make the elephant fly, once again by Sourygna Luangsay at Big Data Spain 2017
PDF
Feature selection for Big Data: advances and challenges by Verónica Bolón-Can...
Big Data, Big Quality? by Irene Gonzálvez at Big Data Spain 2017
Scaling a backend for a big data and blockchain environment by Rafael Ríos at...
AI: The next frontier by Amparo Alonso at Big Data Spain 2017
Disaster Recovery for Big Data by Carlos Izquierdo at Big Data Spain 2017
Presentation: Boost Hadoop and Spark with in-memory technologies by Akmal Cha...
Data science for lazy people, Automated Machine Learning by Diego Hueltes at ...
Training Deep Learning Models on Multiple GPUs in the Cloud by Enrique Otero ...
Unbalanced data: Same algorithms different techniques by Eric Martín at Big D...
Trading at market speed with the latest Kafka features by Iñigo González at B...
Unified Stream Processing at Scale with Apache Samza by Jake Maes at Big Data...
The Analytic Platform behind IBM’s Watson Data Platform by Luciano Resende a...
Artificial Intelligence and Data-centric businesses by Óscar Méndez at Big Da...
Why big data didn’t end causal inference by Totte Harinen at Big Data Spain 2017
Meme Index. Analyzing fads and sensations on the Internet by Miguel Romero at...
Vehicle Big Data that Drives Smart City Advancement by Mike Branch at Big Dat...
End of the Myth: Ultra-Scalable Transactional Management by Ricardo Jiménez-P...
Attacking Machine Learning used in AntiVirus with Reinforcement by Rubén Mart...
More people, less banking: Blockchain by Salvador Casquero at Big Data Spain ...
Make the elephant fly, once again by Sourygna Luangsay at Big Data Spain 2017
Feature selection for Big Data: advances and challenges by Verónica Bolón-Can...

Recently uploaded (20)

PDF
August Patch Tuesday
PDF
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
PDF
A review of recent deep learning applications in wood surface defect identifi...
PDF
NewMind AI Weekly Chronicles – August ’25 Week III
PDF
Enhancing emotion recognition model for a student engagement use case through...
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PDF
Unlock new opportunities with location data.pdf
PDF
Taming the Chaos: How to Turn Unstructured Data into Decisions
PDF
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
PDF
1 - Historical Antecedents, Social Consideration.pdf
PPTX
Tartificialntelligence_presentation.pptx
PDF
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
PPT
Module 1.ppt Iot fundamentals and Architecture
PDF
Five Habits of High-Impact Board Members
PDF
CloudStack 4.21: First Look Webinar slides
PDF
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
PPTX
Group 1 Presentation -Planning and Decision Making .pptx
PDF
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
PDF
Zenith AI: Advanced Artificial Intelligence
PDF
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...
August Patch Tuesday
DASA ADMISSION 2024_FirstRound_FirstRank_LastRank.pdf
A review of recent deep learning applications in wood surface defect identifi...
NewMind AI Weekly Chronicles – August ’25 Week III
Enhancing emotion recognition model for a student engagement use case through...
Univ-Connecticut-ChatGPT-Presentaion.pdf
Unlock new opportunities with location data.pdf
Taming the Chaos: How to Turn Unstructured Data into Decisions
Microsoft Solutions Partner Drive Digital Transformation with D365.pdf
1 - Historical Antecedents, Social Consideration.pdf
Tartificialntelligence_presentation.pptx
How ambidextrous entrepreneurial leaders react to the artificial intelligence...
Module 1.ppt Iot fundamentals and Architecture
Five Habits of High-Impact Board Members
CloudStack 4.21: First Look Webinar slides
Video forgery: An extensive analysis of inter-and intra-frame manipulation al...
Group 1 Presentation -Planning and Decision Making .pptx
Transform Your ITIL® 4 & ITSM Strategy with AI in 2025.pdf
Zenith AI: Advanced Artificial Intelligence
A Late Bloomer's Guide to GenAI: Ethics, Bias, and Effective Prompting - Boha...

State of the art time-series analysis with deep learning by Javier Ordóñez at Big Data Spain 2017