← all projects
Machine Learning · May 2024 · 1 min read

Image Geolocation with k-NN & Linear Regression

Computer vision system predicting photo locations from visual features. Combines k-nearest neighbors with regression models, achieving 127km median error on global street-view dataset.

PythonOpenCVScikit-learnComputer VisionMachine Learning

Predict photo locations from visual content alone. Multi-stage k-NN + regression pipeline achieving 127km median error globally. Extracts geographic signals from architecture, vegetation, and lighting.

featuresHOG + color histograms + SIFT keypoints + metadata performance127km median error, 34% within 25km coverage50k+ geotagged images, global dataset

Algorithm Performance

k-NN Optimization: Distance-weighted k-NN with k=20 optimal. Performance improves dramatically with training data size — benefits from geographic clustering.

Feature Engineering: HOG captures architectural patterns, color profiles vary by climate zone. SIFT keypoint density correlates with urbanization level.

Geographic Analysis: Performance inversely correlates with population density. Europe achieves 89km median error due to distinctive architecture and dense training coverage.

#computer-vision#geolocation#k-nearest-neighbors#image-processing

Related projects