Classification of Urban Images vs. Green Spaces Images Using SVD and KNN

Ryan Satria

Abstract


This study aims to classify urban and green land images by employing the Singular Value Decomposition (SVD) method for dimensionality reduction and the K-Nearest Neighbors (KNN) algorithm for classification. The dataset used consists of 600 images (300 urban and 300 green land) with a resolution of 256x256 pixels, sourced from the Kaggle "Aerial Landscape Images" dataset. Each image was transformed into a feature vector, then reduced using SVD, where this study compares the use of 5 components and 20 components. The dataset was subsequently divided into 80% training data and 20% testing data for classification using KNN with k=3. Performance evaluation was conducted via confusion matrix and the calculation of accuracy, precision, recall, and F1-score. The results showed that the model with 5 SVD components achieved the highest accuracy of 95.00%, outperforming the 20-component model (91.67%). This finding demonstrates the effectiveness of SVD-KNN, but shows that a higher number of components can degrade performance. The limitation of the purely color-based method was also identified during testing on "residential area" images, which possess overlapping features between “Urban” and “Green Spaces”.


Keywords


Classification, Green spaces, Urban, SVD, KNN

Full Text:

PDF

References


H. P. Aguero, “Review of the Current Technologies and Applications of Digital Image Processing,” Journal of Biomedical and Sustainable Healthcare Applications, pp. 148–158, Jul. 2022, doi: 10.53759/0088/JBSHA202202016.

P. R. Kalluri, W. Agnew, M. Cheng, K. Owens, L. Soldaini, and A. Birhane, “Computer-vision research powers surveillance technology,” Nature, vol. 643, no. 8070, pp. 73–79, Jul. 2025, doi: 10.1038/s41586-025-08972-6.

J. Wang, T. Zhang, Y. Cheng, and N. Al-Nabhan, “Deep Learning for Object Detection: A Survey,” Computer Systems Science and Engineering, vol. 38, no. 2, pp. 165–182, 2021, doi: 10.32604/csse.2021.017016.

D. C. Wijayanti and K. Khoirunurrofik, “Strategic Interaction Between the Agglomeration of High-Rise Buildings and the Economy of DKI Jakarta,” International Journal of Sustainable Development and Planning, vol. 17, no. 5, pp. 1449–1459, Aug. 2022, doi: 10.18280/ijsdp.170509.

A. Jaglarz, “Perception of Color in Architecture and Urban Space,” Buildings, vol. 13, no. 8, p. 2000, Aug. 2023, doi: 10.3390/buildings13082000.

P. Tutuko, N. Aini, A. Safrilia, A. Galih Sulaksono, and R. Wikantiyoso, “The Calculation of Green Open Space Patterns in The Cities in Indonesia,” International Review for Spatial Planning and Sustainable Development, vol. 13, no. 2, p. 12, Apr. 2025, doi: 10.14246/irspsd.13.2_179.

K. Xing, “Singular value decomposition: A useful technique for image denoising,” Theoretical and Natural Science, vol. 39, no. 1, pp. 226–231, Jul. 2024, doi: 10.54254/2753-8818/39/20240610.

V. B and R. Gangula, “Exploring the Power and Practical Applications of K-Nearest Neighbours (KNN) in Machine Learning,” Journal of Computer Allied Intelligence, vol. 2, no. 1, pp. 8–15, Feb. 2024, doi: 10.69996/jcai.2024002.

A. A. Shujaaddeen, F. Mutaher Ba -Alwi, A. T. Zahary, and A. Sultan Alhegami, “A Model for Measuring the Effect of Splitting Data Method on the Efficiency of Machine Learning Models: A Comparative Study,” in 2024 4th International Conference on Emerging Smart Technologies and Applications (eSmarTA), IEEE, Aug. 2024, pp. 1–13. doi: 10.1109/eSmarTA62850.2024.10639022.

A. Bhardwaj and Yessica, “Aerial Landscape Images,” https://www.kaggle.com/datasets/ankit1743/skyview-an-aerial-landscape-dataset.

A. Sitanggang, A. D. Harahap, A. Karimullah, Y. A. Dewantara, and C. Rozikin, “Sistem Rekomendasi Anime Menggunakan Metode Singular Value Decomposition (SVD) dan Cosine Similarity,” Jurnal Teknologi Informasi UTU, vol. 2, no. 2, Oct. 2023.

D. Setiawan, “Analisis Curah Hujan di Indonesia untuk Memetakan Daerah Potensi Banjir dan Tanah Longsor dengan Metode Cluster Fuzzy C-Means dan Singular Value Decompotition (SVD),” Engineering, MAthematics and Computer Science (EMACS) Journal, vol. 3, no. 3, pp. 115–120, Oct. 2021, doi: 10.21512/emacsjournal.v3i3.7428.

Hadiyanto, M. Dolok Lauro, and D. E. Herwindiati, “Classification of historic buildings in Indonesia with svd algorithm based on texture and color characteristics (case: temples, historic mosques, historic churches, and historic Confucian temples),” IOP Conf Ser Mater Sci Eng, vol. 1007, no. 1, p. 012130, Dec. 2020, doi: 10.1088/1757-899X/1007/1/012130.

G. L. Nagaria, D. E. Herwindiati, and S. Mulyono, “KLASIFIKASI LAHAN MANGROVE MENGGUNAKAN METODE SINGULAR VALUE DECOMPOSITION,” Seminar Nasional Sistem Informasi Indonesia, Nov. 2016.

N. Fa, R. A. Saputra, and J. Nangi, “Classification of apple maturity based on color using the K-Nearest Neighboor (KNN) method,” Telematika, vol. 21, no. 1, p. 55, Jun. 2024, doi: 10.31315/telematika.v21i1.11773.

A. R. Lubis, M. Lubis, and A.- Khowarizmi, “Optimization of distance formula in K-Nearest Neighbor method,” Bulletin of Electrical Engineering and Informatics, vol. 9, no. 1, pp. 326–338, Feb. 2020, doi: 10.11591/eei.v9i1.1464.

Syahril Dwi Prasetyo, Shofa Shofiah Hilabi, and Fitri Nurapriani, “Analisis Sentimen Relokasi Ibukota Nusantara Menggunakan Algoritma Naïve Bayes dan KNN,” Jurnal KomtekInfo, pp. 1–7, Jan. 2023, doi: 10.35134/komtekinfo.v10i1.330.

S. H. Anggela, L. W. Santoso, and J. Andjarwirawan, “Sistem Rekomendasi Pembelian Laptop dengan K-Nearest Neighbor (KNN),” Jurnal Infra, Aug. 2022.

D. Normawati and S. A. Prayogi, “Implementasi Naïve Bayes Classifier Dan Confusion Matrix Pada Analisis Sentimen Berbasis Teks Pada Twitter,” Jurnal Sains Komputer & Informatika (J-SAKTI), vol. 5, no. 2, Sep. 2021.

Jude Chukwura Obi, “A comparative study of several classification metrics and their performances on data,” World Journal of Advanced Engineering Technology and Sciences, vol. 8, no. 1, pp. 308–314, Feb. 2023, doi: 10.30574/wjaets.2023.8.1.0054.

E. D. Fajrianti, A. A. Pratama, J. A. Nasyir, A. Rasyid, I. Winarno, and S. Sukaridhoto, “High-Performance Computing on Agriculture: Analysis of Corn Leaf Disease,” JOIV : International Journal on Informatics Visualization, vol. 6, no. 2, p. 411, Jun. 2022, doi: 10.30630/joiv.6.2.793.

R. R. R. Arisandi, B. Warsito, and A. R. Hakim, “APLIKASI NAÏVE BAYES CLASSIFIER (NBC) PADA KLASIFIKASI STATUS GIZI BALITA STUNTING DENGAN PENGUJIAN K-FOLD CROSS VALIDATION,” Jurnal Gaussian, vol. 11, no. 1, pp. 130–139, May 2022, doi: 10.14710/j.gauss.v11i1.33991.

A. Tripathy, A. Agrawal, and S. K. Rath, “Classification of sentiment reviews using n-gram machine learning approach,” Expert Syst Appl, vol. 57, pp. 117–126, Sep. 2016, doi: 10.1016/j.eswa.2016.03.028.

E. Y. Boateng, J. Otoo, and D. A. Abaye, “Basic Tenets of Classification Algorithms K-Nearest-Neighbor, Support Vector Machine, Random Forest and Neural Network: A Review,” Journal of Data Analysis and Information Processing, vol. 08, no. 04, pp. 341–357, 2020, doi: 10.4236/jdaip.2020.84020.

I. Tomek, “A Generalization of the k-NN Rule,” IEEE Trans Syst Man Cybern, vol. SMC-6, no. 2, pp. 121–126, 1976, doi: 10.1109/TSMC.1976.5409182.




DOI: http://dx.doi.org/10.30813/jbase.v9i1.9197

Refbacks

  • There are currently no refbacks.


ISSN: 2620-7907


View My Stats