TransWikia.com

Model for classifying time-series data with distinct features?

Data Science Asked by Rithwik Sudharsan on December 30, 2020

I’ve heard about time-series classification being done with TCN’s and CNN’s combined with LSTM’s very often, citing that CNN’s would provide insight both forward and in the past since you already have all the information for that time period. For my application, there is a distinct shape and I’d like to classify whether it exists or not. For example, I want to detect whether the data looks like this enter image description here or this enter image description here

Of course, there would be noise involved and the feature would be much less obvious making the problem worthy of using machine learning. Is there some way I can exploit this knowledge of there being a single important feature (this hump) to use a different architecture or do anything differently? Thanks.

One Answer

This specific problem looks at the pattern across the whole data I.e. pattern will not show up from time < -3 or time > 3 for a given curvature.

You can try two models :

  1. Simple feed-forward Network with number of inputs = number of time steps (Maybe scale / shift the data so that it always has the same number of time steps )

This should be able to detect some patterns for classification (Like f(0) must be less that f(4))

  1. Univariate LSTM with different sizes of time steps in each sample

This should be able to learn that f(x) should stay near constant, reduce and then increase and return to constant

Both networks will have a sigmoid in output layer since it is a binary classification problem.

Code exmaple for LSTM : https://machinelearningmastery.com/sequence-classification-lstm-recurrent-neural-networks-python-keras/

Answered by Shamit Verma on December 30, 2020

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP