Optimizing Distance-Weighted Manhattan K-Nearest Neighbors with Spectral Standardization for Landsat Land-Cover Classification

Hartini Damanik(1), Lidya Wati(2*), Abdul Karim(3), Hilmi Aziz Bukhori(4),

(1) Informatics, STIKOM Tunas Bangsa, Pematangsiantar, North Sumatra, Indonesia
(2) Faculty of Intelligent Computing, Universiti Malaysia Perlis (UniMAP), Malaysia
(3) Information Technology Study Program, Faculty of Science and Technology, Universitas Labuhanbatu, Indonesia
(4) Mathematics Department, Faculty of Mathematics and Natural Sciences, Universitas Brawijaya, Indonesia
(*) Corresponding Author

Abstract


Distance-based Landsat land-cover classification depends on feature scaling, neighborhood geometry and voting rules. This study compares two standardized K-nearest-neighbor classifiers on the official UCI Statlog Landsat Satellite split of 4,435 training and 2,000 test records. Both models retain all 36 spectral attributes and fit StandardScaler only on the respective training data. The baseline uses Euclidean distance, uniform voting and five neighbors. The proposed configuration fixes Manhattan distance and inverse-distance voting while selecting k from 1 to 35 through eight training-only candidate evaluations. The selected k is three, with internal validation macro-F1 of 0.886329. The configured TPESampler remains within its documented random startup phase at this budget. On the official test set, the baseline achieves 90.45% accuracy and 89.16% macro-F1; the selected model achieves 90.85% and 89.64%. Using unrounded scores, these correspond to gains of 0.40 and 0.49 percentage points. Class-5 recall rises from 87.34% to 91.56%, whereas class-4 recall falls from 68.72% to 67.77%. The comparison therefore shows a small aggregate improvement with uneven class effects. Because distance, voting and k change together, the experiment does not isolate their individual contributions. A single seed, a limited search budget and the absence of geographic identifiers restrict the conclusion to this fixed benchmark; broader optimizer, component and transferability claims require further evaluation.

Full Text:

PDF

References


I. Kotaridis and M. Lazaridou, “CNNs in land cover mapping with remote sensing imagery: a review and meta-analysis,” Int. J. Remote Sens., vol. 44, no. 19, pp. 5896–5935, 2023, doi: 10.1080/01431161.2023.2255354.

D. Moraes, M. L. Campagnolo, and M. Caetano, “Training data in satellite image classification for land cover mapping: a review,” Eur. J. Remote Sens., vol. 57, no. 1, p. 2341414, 2024, doi: 10.1080/22797254.2024.2341414.

Y. Wang, Y. Sun, X. Cao, Y. Wang, W. Zhang, and X. Cheng, “A review of regional and Global scale Land Use/Land Cover (LULC) mapping products generated from satellite remote sensing,” ISPRS Journal of Photogrammetry and Remote Sensing, vol. 206, pp. 311–334, 2023, doi: 10.1016/j.isprsjprs.2023.11.014.

S. Zhao, K. Tu, S. Ye, H. Tang, Y. Hu, and C. Xie, “Land Use and Land Cover Classification Meets Deep Learning: A Review,” Sensors, vol. 23, no. 21, p. 8966, 2023, doi: 10.3390/s23218966.

P. Dou, H. Shen, C. Huang, Z. Li, Y. Mao, and X. Li, “Large-scale land use/land cover extraction from Landsat imagery using feature relationships matrix based deep-shallow learning,” International Journal of Applied Earth Observation and Geoinformation, vol. 129, p. 103866, 2024, doi: 10.1016/j.jag.2024.103866.

Y. Maulani and K. Surendro, “Detailed land use classification model based on vegetation indices and texture features,” Remote Sens. Appl., vol. 40, p. 101786, 2025, doi: 10.1016/j.rsase.2025.101786.

V. Sangeetha and L. Agilandeeswari, “Artificial intelligence enabled spectral-spatial feature extraction techniques for land use and land cover classification using hyperspectral images – An inclusive review,” The Egyptian Journal of Remote Sensing and Space Sciences, vol. 28, no. 3, pp. 455–467, 2025, doi: 10.1016/j.ejrs.2025.06.004.

A. H. Alshammari, G. Bencsik, and A. H. Ali, “A Survey of Six Classical Classifiers, Including Algorithms, Methodological Characteristics, Foundational Variants, and Recent Advances,” Algorithms, vol. 19, no. 1, p. 37, 2026, doi: 10.3390/a19010037.

R. K. Halder, M. N. Uddin, Md. A. Uddin, S. Aryal, and A. Khraisat, “Enhancing K-nearest neighbor algorithm: a comprehensive review and performance analysis of modifications,” J. Big Data, vol. 11, no. 1, p. 113, 2024, doi: 10.1186/s40537-024-00973-y.

L. B. V de Amorim, G. D. C. Cavalcanti, and R. M. O. Cruz, “The choice of scaling technique matters for classification performance,” Appl. Soft Comput., vol. 133, p. 109924, 2023, doi: 10.1016/j.asoc.2022.109924.

O. U. Lenz, H. Bollaert, and C. Cornelis, “A unified weighting framework for evaluating nearest neighbour classification,” Fuzzy Sets Syst., vol. 519, p. 109516, 2025, doi: 10.1016/j.fss.2025.109516.

F. Alonso-Sarría, C. Valdivieso-Ros, and F. Gomariz-Castillo, “Analysis of the hyperparameter optimisation of four machine learning satellite imagery classification methods,” Comput. Geosci., vol. 28, no. 3, pp. 551–571, 2024, doi: 10.1007/s10596-024-10285-y.

M. Baratchi et al., “Automated machine learning: past, present and future,” Artif. Intell. Rev., vol. 57, no. 5, p. 122, 2024, doi: 10.1007/s10462-024-10726-1.

B. Bischl et al., “Hyperparameter optimization: Foundations, algorithms, best practices, and open challenges,” WIREs Data Mining and Knowledge Discovery, vol. 13, no. 2, p. e1484, 2023, doi: 10.1002/widm.1484.

A. Apicella, F. Isgrò, and R. Prevete, “Don’t push the button! Exploring data leakage risks in machine learning and transfer learning,” Artif. Intell. Rev., vol. 58, no. 11, p. 339, 2025, doi: 10.1007/s10462-025-11326-3.

S. Kapoor and A. Narayanan, “Leakage and the reproducibility crisis in machine-learning-based science,” Patterns, vol. 4, no. 9, p. 100804, 2023, doi: 10.1016/j.patter.2023.100804.

M. A. Lones, “Avoiding common machine learning pitfalls,” Patterns, vol. 5, no. 10, p. 101046, 2024, doi: 10.1016/j.patter.2024.101046.

S. Friedrich and T. Friede, “On the role of benchmarking data sets and simulations in method comparison studies,” Biometrical Journal, vol. 66, no. 1, p. 2200212, 2024, doi: 10.1002/bimj.202200212.

S. Kapoor et al., “REFORMS: Consensus-based Recommendations for Machine-learning-based Science,” Sci. Adv., vol. 10, no. 18, p. eadk3452, 2024, doi: 10.1126/sciadv.adk3452.

J. L. J. Pereira, K. Smith-Miles, M. A. Muñoz, and A. C. Lorena, “Optimal selection of benchmarking datasets for unbiased machine learning algorithm evaluation,” Data Min. Knowl. Discov., vol. 38, no. 2, pp. 461–500, 2024, doi: 10.1007/s10618-023-00957-1.

D. Abriha, P. K. Srivastava, and S. Szabó, “Smaller is better? Unduly nice accuracy assessments in roof detection using remote sensing data with machine learning and k-fold cross-validation,” Heliyon, vol. 9, no. 3, p. e14045, 2023, doi: 10.1016/j.heliyon.2023.e14045.

S. de Bruin, D. J. Brus, G. B. M. Heuvelink, T. van Ebbenhorst Tengbergen, and A. M. J.-C. Wadoux, “Dealing with clustered samples for assessing map accuracy by cross-validation,” Ecol. Inform., vol. 69, p. 101665, 2022, doi: 10.1016/j.ecoinf.2022.101665.

A. Stock, “Choosing blocks for spatial cross-validation: lessons from a marine remote sensing case study,” Frontiers in Remote Sensing, vol. 6, p. 1531097, 2025, doi: 10.3389/frsen.2025.1531097.

Y. Wang, M. Khodadadzadeh, and R. Zurita-Milla, “Spatial+: A new cross-validation method to evaluate geospatial machine learning models,” International Journal of Applied Earth Observation and Geoinformation, vol. 121, p. 103364, 2023, doi: 10.1016/j.jag.2023.103364.

S. Farhadpour, T. A. Warner, and A. E. Maxwell, “Selecting and Interpreting Multiclass Loss and Accuracy Assessment Metrics for Classifications with Class Imbalance: Guidance and Best Practices,” Remote Sens. (Basel)., vol. 16, no. 3, p. 533, 2024, doi: 10.3390/rs16030533.

L. Maier-Hein et al., “Metrics reloaded: recommendations for image analysis validation,” Nat. Methods, vol. 21, no. 2, pp. 195–212, 2024, doi: 10.1038/s41592-023-02151-z.

J. Opitz, “A Closer Look at Classification Evaluation Metrics and a Critical Reflection of Common Evaluation Practice,” Trans. Assoc. Comput. Linguist., vol. 12, pp. 820–836, 2024, doi: 10.1162/tacl_a_00675.

A. Reinke et al., “Understanding metric-related pitfalls in image analysis validation,” Nat. Methods, vol. 21, no. 2, pp. 182–194, 2024, doi: 10.1038/s41592-023-02150-0.

A. Paleyes, R.-G. Urma, and N. D. Lawrence, “Challenges in Deploying Machine Learning: A Survey of Case Studies,” ACM Comput. Surv., vol. 55, no. 6, pp. 1–29, 2023, doi: 10.1145/3533378.

T. Silva Filho, H. Song, M. Perello-Nieto, R. Santos-Rodriguez, M. Kull, and P. Flach, “Classifier calibration: a survey on how to assess and improve predicted class probabilities,” Mach. Learn., vol. 112, no. 9, pp. 3211–3260, 2023, doi: 10.1007/s10994-023-06336-7.

S. Bates, T. Hastie, and R. Tibshirani, “Cross-Validation: What Does It Estimate and How Well Does It Do It?,” J. Am. Stat. Assoc., vol. 119, no. 546, pp. 1434–1445, 2024, doi: 10.1080/01621459.2023.2197686.

T. Viering and M. Loog, “The Shape of Learning Curves: A Review,” IEEE Trans. Pattern Anal. Mach. Intell., vol. 45, no. 6, pp. 7799–7819, 2023, doi: 10.1109/tpami.2022.3220744.

H. Andalib, H. Ebadi, and R. Naanjam, “An intelligent dual-stage fusion framework of optical and radar data for land cover classification,” Remote Sens. Appl., vol. 42, p. 101987, 2026, doi: 10.1016/j.rsase.2026.101987.

M. R. Islam, A. A. Lima, S. C. Das, M. F. Mridha, A. R. Prodeep, and Y. Watanobe, “A Comprehensive Survey on the Process, Methods, Evaluation, and Challenges of Feature Selection,” IEEE Access, vol. 10, pp. 99595–99632, 2022, doi: 10.1109/access.2022.3205618.

P. Koukaras and C. Tjortjis, “Data Preprocessing and Feature Engineering for Data Mining: Techniques, Tools, and Best Practices,” AI, vol. 6, no. 10, p. 257, 2025, doi: 10.3390/ai6100257.

H. İ. Gündüz, O. Orhan, S. N. G. Hamal, and S. Ekercin, “An Explainable and Optimized Machine Learning Framework for Multisensor Remote Sensing‐Based Land Use and Land Cover Classification,” Transactions in GIS, vol. 30, no. 3, p. e70293, 2026, doi: 10.1111/tgis.70293.

A. Candelieri, A. Ponti, and F. Archetti, “Fair and green hyperparameter optimization via multi-objective and multiple information source Bayesian optimization,” Mach. Learn., vol. 113, no. 5, pp. 2701–2731, 2024, doi: 10.1007/s10994-024-06515-0.

A. Morales-Hernández, I. Van Nieuwenhuyse, and S. Rojas Gonzalez, “A survey on multi-objective hyperparameter optimization algorithms for machine learning,” Artif. Intell. Rev., vol. 56, no. 8, pp. 8043–8093, 2023, doi: 10.1007/s10462-022-10359-2.

D. Valle, R. Leite, R. Izbicki, C. Silva, and L. Haneda, “Local uncertainty maps for land-use/land-cover classification without remote sensing and modeling work using a class-conditional conformal approach,” International Journal of Applied Earth Observation and Geoinformation, vol. 135, p. 104288, 2024, doi: 10.1016/j.jag.2024.104288.

A. Comber and N. Tsutsumida, “Geographically weighted accuracy for hard and soft land cover classifications: 5 approaches with coded illustrations,” Int. J. Remote Sens., vol. 44, no. 19, pp. 6233–6257, 2023, doi: 10.1080/01431161.2023.2264503.

C. Wang, R. Shang, Y. Li, J. Feng, and S. Xu, “Cross-scene hyperspectral image classification based on cross-domain feature extraction and category decision collaborative optimization,” Expert Syst. Appl., vol. 296, p. 128842, 2026, doi: 10.1016/j.eswa.2025.128842.

X. Zhang and B. Liu, “Open-Set Cross-Domain Hyperspectral Image Classification Based on Manifold Mapping Alignment,” IEEE J. Sel. Top. Appl. Earth Obs. Remote Sens., vol. 17, pp. 6241–6252, 2024, doi: 10.1109/jstars.2024.3396883.


Refbacks

  • There are currently no refbacks.


Copyright (c) 2026 Zahra: Bulletin Big data, Data Science and Artificial Intelligence

Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.