eren-ck / st_dbscan

ST-DBSCAN: Simple and effective tool for spatial-temporal clustering
MIT License
128 stars 25 forks source link

Using the model for multiple features #5

Closed rfsilva1 closed 3 years ago

rfsilva1 commented 3 years ago

Hi there,

First, congrats for the great implementation of ST-DBSCAN. I'm evaluating using it for a research on spatiotemporal clustering of meteorological data (with multiple features). However, I have a question on your implementation:

An example of data point would be: on the first timestep, 300 is a specific city, x is latitude, y is longitude, feature 1 is precipitation, feature 2 is temperature, feature n is solar radiation: [0, 300, -23.5505, -46.6333, 1271.001, 28.763, 17.971]

Thanks a lot!

Roberto

eren-ck commented 3 years ago

Hello Roberto, the input for the implementation should be ['time', 'x', 'y', 'feature_1', 'feature_2',...]. Further, you should normalize all features features expect for the time.

If you want to use [lat, long] values instead of [x, y] you have to convert the values from the sphere to the plane. So I propose transforming the sphere coordinates to the utm coordinate system and inputting the data into the st_dbscan.

I hope that helps you.

Cheers, Eren