I am doing a project in which my aim is to predict the likely locations of a set of latitude/longitude points based on a couple of variables. Since I've never done any ML on locational data, which models would you suggest to try out first?

I am anticipating that the relationships between input variables and locations will not be linear, so models like linear regression would not really perform well.

Also, since it's an inherently spatial problem, should I be concerned about spatial autocorrelation? The points tend to be clustered together when I plot them.

Obviously, at that point, it's just speculation but I would just like to ask you for some general advice and approach which I could adopt.


EDIT: this is how my lat/lon data looks like. I noticed that perhaps creating another feature based on k-means clustering could help (ex. cluster ID and size)? For the plot, alpha was set to 0.1, so some clusters are very dense given that they still appear as pitch black.


1 Answer 1


Here are my suggestions regarding your problem:

  • Yes, I bet your problem is non-linear but I recommend you to try linear models first. First, it will give you a baseline: Your final model should outperform the linear one. Second, running linear models and inspecting their weights sometimes provide intuition regarding the problem. Finally, there truly are cases that linear models outperform non-linear ones, depending on the number of data, the number of features, and the problem domain.

  • In other words, try simpler idea first. For example, concerning spatial autocorrelation will be a good idea, but you don't have to if your model works well without it.

  • By "prediction of latitude and longitude" I assume you are solving a regression problem where output is two real, bounded values.

    • The first try would be the treating latitude and longitude separately: using two unrelated models to predict each of them.
  • $\begingroup$ Thank you for your insights Sangwoon. I also thought that trying simpler models first is a wise decision but I didn't mention that in order to avoid bias in the answers. Do you think that standardising lat/lon data could help in k-means (it assumes Gaussian distribution for clusters)? $\endgroup$
    – slazien
    Jul 11, 2016 at 12:45
  • $\begingroup$ Most of the cases, standardizing or at least scaling (linearly transform the range of variable to [0,1]) is almost necessary (especially for "real" data), because the difference of scales might mislead the algorithm. It is true for k-means clustering as well, because k-means is sensitive to the choice of distance metric. Good luck with you project. $\endgroup$ Jul 11, 2016 at 14:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.