Today I generated an interesting idea on analysis of time series. Those are frequently used in pattern recognition, mathematical finance and forecastings (weather prediction, sales prediction, number of site visitors etc.).
Apart from different window-based approaches, there are two basic models that by their nature represent the sequential structure in data:
Some pros and cons of both models I see:
Apart from different window-based approaches, there are two basic models that by their nature represent the sequential structure in data:
- hidden Markov chain (HMC)
- recurrent neural network (RNN)
Some pros and cons of both models I see:
- HMC training is inexpensive, but requires predicted values to be binned (so it doesn't work with continuous variables, even with variables with many possible values)
- RNN requires quite a long training, but has hard times to find stable mapping (since it should be continuous), so requires some regularizations built in its architecture. Training is usually based on prediction of one or several next points in sequence, which is not always adequate.
Apart of setting several next observation in sequence as a target, there is plenty of various targets, like running mean over $n$ next observations. However, I'd prefer machine learning to find out these targets for me.
Possible approach I came to:
- train HMC in inverse time, so HMC predicts past, not future
- it's predictions (probabilities of hidden states) can be treated as vector representation of future, because it is computed on information from future
- RNN is trained to predict hidden states of HMC
- Later, some other model is used based on the output of RNN to predict the value of interest.
So the trick is that we use HMC predictions as some reliable informative target about the future, like this is done is deep learning, for instance.
No comments :
Post a Comment