I have a particular segment of temporal data for 3 days. It looks like this:
Day_1_Hour_14 = [d1x1,d1x2,...,d1xn] and [d1y1,d1y2,...,d1yn] Day_2_Hour_14 = [d2x1,d2x2,...,d2xn] and [d2y1,d2y2,...,d2yn] Day_3_Hour_14 = [d3x1,d3x2,...,d3xn] and [d3y1,d3y2,...,d3yn]
When I use these 3 days 1 hour each worth of data on an unsupervised algorithm like DBSCAN, is it better to give the x_axis as an increasing order of index with their respective y_value?
x_axis_total = [1,2,3,4.,...,n] from d1x1 to d3xn y_axis_total = [d1y1,d1y2,,.d1yn,d2y1,d2y2,...,d3y1,d3y2,..,d3yn]
And then I pass
y_axis_total to DBSCAN
I am quite confused about how to pass the data to the algorithm.
Or is it better to include the actual
timestamp of each observation as the x_value? When I use the
timestamp the data points are aligned in a straight line from
1 - n in 4 rows in the graph and DBSCAN does not work good when applied like this.
Any suggestions will be appreciated
If I use the timestamp as x_axis I get this result [Day 1 - 3 of Hour 14]:
My aim is to detect Outliers in my data and the data is
vehicular traffic data - It is contextual. That is the reason I am selecting 4 similar days of the same hour for this example.
My main question is am I losing any information if I do it the first way I mentioned? That is, the x_axis in increasing order from
1-n because using
timestamp gives me bizzart results.
Is there a better way to do it?