Re: Sequential rule mining
Date: February 19, 2018 06:22AM
Hi,
There are many different ways of spiting a time series to obtain multiple sequences.
1) A simple way is to split the time series into some segments having the same lengths. For example, each sequence could be a day, a week or a month of data.
In SPMF, there is a tool to split a time series into several segments, and a tool to convert a time series to a sequence. However, these tools do not consider time stamps. They just split by the number of points in each segments.
2) Another possibility would be to use a sliding window. For a window of 5 events, you would first take the events 1,2,3,4,5. Then the next window would be the events 2,3,4,5,6. Then the next windows would be the events 3,4,5,6,7. And so on.. This is another way of processing a sequence.
3) Another possibility could be to use some algorithms designed to find patterns in a single sequence. In SPMF, there is no such algorithm but this type of algorithms do exist. A sequential rule in a single sequence is sometimes called an "episode rules" and there exists some algorithms to find such rules. These algorithm will typically use a sliding window. If you are curious you can have a look. However, I do not have the code for this. Thus, the most simple would be to try 1) or 2) first.
Best regards,