Comparative Analysis of the Performance of KNN, SVM, and Neural Network Algorithms in Lung Cancer Classification

Authors

  • Abwabul jinan Universitas Satya Terra Bhinneka
  • Manatur Pandapotan Siregar Informatics, Universitas Satya Terra Bhinneka
  • Dede Fika Suryani Informatics, Universitas Sumatera Utara
  • Tar Muhammad Raja Gunung Informatics, Universitas Satya Terra Bhinneka
  • Abdul Muis Informatics, Universitas Satya Terra Bhinneka

DOI:

https://doi.org/10.25181/rt.v4i2.5058

Keywords:

lung cancer, data classification, comparative analysis, k-nearest neighbor, support vector machine, neural network

Abstract

Lung cancer is one of the leading causes of cancer-related deaths worldwide, making accurate classification methods essential to support early diagnosis. Although various machine learning algorithms have been applied to lung cancer classification, their reported performance remains inconsistent across different studies. Therefore, a comparative analysis using the same dataset is needed to provide a more objective evaluation of algorithm performance. This study aims to compare the performance of the K-Nearest Neighbor (KNN), Support Vector Machine (SVM), and Neural Network (NN) algorithms for lung cancer classification. The dataset was obtained from Kaggle and consists of 309 instances with 16 attributes. The research process included data preprocessing, classification, and model evaluation using Orange Data Mining. The performance of each algorithm was evaluated using a confusion matrix based on accuracy, precision, and recall metrics. The experimental results indicate that the Neural Network algorithm achieved the best performance, with an accuracy of 92.3%, a precision of 95.4%, and a recall of 95.9%, followed by Support Vector Machine with an accuracy of 89.9% and K-Nearest Neighbor with an accuracy of 89.1%. These findings demonstrate that the Neural Network algorithm is more effective in learning the underlying patterns of the dataset than the other two algorithms. The results of this study are expected to serve as a reference for selecting appropriate classification algorithms in the development of machine learning-based lung cancer diagnosis support systems.

Downloads

Download data is not yet available.

Author Biographies

Abwabul jinan, Universitas Satya Terra Bhinneka

Universitas Satya Terra Bhinneka

Manatur Pandapotan Siregar, Informatics, Universitas Satya Terra Bhinneka

Informatika, Universitas Satya Terra Bhinneka

Dede Fika Suryani, Informatics, Universitas Sumatera Utara

Informatika, Universitas Sumatera Utara

Tar Muhammad Raja Gunung, Informatics, Universitas Satya Terra Bhinneka

Informatika, Universitas Satya Terra Bhinneka

Abdul Muis, Informatics, Universitas Satya Terra Bhinneka

Informatika, Universitas Satya Terra Bhinneka

References

[1] J. Fahmi Idris, R. Ramadhani, and M. Malik Mutoffar, “Klasifikasi Penyakit Kanker Paru Menggunakan Perbandingan Algoritma Machine Learning,” Feb. 2024. doi: https://doi.org/10.62281/v2i2.145.

[2] A. Desiani et al., “Perbandingan Klasifikasi Penyakit Kanker Paru-Paru menggunakan Support Vector Machine dan K-Nearest Neighbor,” Jurnal Processor, vol. 18, no. 1, Apr. 2023, doi: 10.33998/processor.2023.18.1.700.

[3] H. Sung et al., “Global Cancer Statistics 2020: Globocan Estimates of Incidence and Mortality Worldwide for 36 Cancers in 185 Countries,” CA Cancer J. Clin., vol. 71, no. 3, pp. 209–249, May 2021, doi: 10.3322/caac.21660.

[4] R. Resmiati and T. Arifin, “Klasifikasi Pasien Kanker Payudara Menggunakan Metode Support Vector Machine dengan Backward Elimination,” Mar. 2021. doi: https://doi.org/10.32520/stmsi.v10i2.1238.

[5] N. T. Ujianto, Gunawan, H. Fadillah, A. P. Fanti, A. D. Saputra, and I. G. Ramadhan, “Penerapan algoritma K-Nearest Neighbors (KNN) untuk klasifikasi citra medis,” IT-Explore: Jurnal Penerapan Teknologi Informasi dan Komunikasi, vol. 4, no. 1, pp. 33–43, Feb. 2025, doi: https://doi.org/10.24246/itexplore.v4i1.2025.pp33-43.

[6] Y. Shen et al., “An ontology-driven clinical decision support system (IDDAP) for infectious disease diagnosis and antibiotic prescription,” Artif. Intell. Med., vol. 86, pp. 20–32, Mar. 2018, doi: 10.1016/j.artmed.2018.01.003.

[7] J. M. Manampiring et al., “Analisis Sentimen Ulasan Aplikasi X Pada Google Play Store Menggunakan Komparasi SVM, KNN, Dan Naive Bayes,” Jurnal Teknologi Informasi, vol. 7, no. 1, 2026, doi: 10.46576/djtechno.

[8] O. D. Kurnia et al., “Analisis Perbandingan Algoritma Naïve Bayes dengan K-Nearest Neighbor (KNN) Pada Dataset Mobile Price Classification,” Online, 2024. doi: https://doi.org/10.29407/inotek.v8i2.5053.

[9] J. Kusuma, A. Jinan, M. Zulkarnain Lubis, and R. Rosnelly, “Komparasi Algoritma Support Vector Machine Dan Naive Bayes Pada Klasifikasi Ras Kucing.” doi: 10.18495/generic.v14i1.122.

[10] G. M. C. Batubara, A. Desiani, and A. Amran, “Klasifikasi Jamur Beracun Menggunakan Algoritma Naïve Bayes dan K-Nearest Neighbors,” Jurnal Ilmu Komputer dan Informatika, vol. 3, no. 1, pp. 33–42, Jun. 2023, doi: 10.54082/jiki.68.

[11] A. Jinan, M. Siregar, V. Rolanda, D. F. Suryani, and A. Muis, “Comparing Neural Networks, Support Vector Machines, and Naïve Bayes Algorhythms for Classifying Banana Types,” Journal of Computer Networks, Architecture and High Performance Computing, vol. 6, no. 1, pp. 98–107, Dec. 2023, doi: 10.47709/cnahpc.v6i1.3381.

[12] A. Awad Abdellatif, A. Emam, C.-F. Chiasserini, A. Mohamed, A. Jaoua, and R. Ward, “Edge-based compression and classification for smart healthcare systems: Concept, implementation and evaluation,” Expert Syst. Appl., vol. 117, pp. 1–14, Mar. 2019, doi: 10.1016/j.eswa.2018.09.019.

[13] F. Rizaldi, R. Hidayat, and E. Rilvani, “Literature Review: Perbandingan Algoritma ID3 Dan Cart Dalam Data Mining,” Jurnal Multidisiplin Saintek, vol. 9, 2025, doi: https://doi.org/10.2238/bd21vh46.

[14] D. Ruswanti, “Pengukuran Performa Support Vector Machine Dan Neural Netwok Dalam Meramalkan Tingkat Curah Hujan,” 2020. doi: https://doi.org/10.47942/gi.v13i1.455.

[15] M. Ilham Baehaqi, A. Wicaksono, Z. Alykha Puspita, H. Gultom, D. Arifta Eryana, and F. Deivivi, “Studi Komparatif Naive Bayes dan Decision Tree Pada Dataset Bunga Iris: Evaluasi Akurasi dan Efisiensi,” 2025. doi: https://doi.org/10.56486/jris.vol5no2.898.

[16] G. Lang, J. Luo, and Y. Yao, “Three-way conflict analysis: A unification of models based on rough sets and formal concept analysis,” Knowl. Based. Syst., vol. 194, p. 105556, Apr. 2020, doi: 10.1016/j.knosys.2020.105556.

[17] S. Tegar Kusuma and T. Bayu Sasongko, “Optimasi K-Nearest Neighbor dengan Grid Search CV pada Prediksi Kanker Paru-Paru,” Indonesian Journal of Computer Science Attribution, vol. 12, no. 4, p. 2162, Aug. 2023, doi: https://doi.org/10.33022/ijcs.v12i4.3267.

[18] E. Priyanti, “Penerapan Algoritma Neural Network untuk Klasifikasi Kanker Paru,” Jurnal Khatulistiwa Informatika, vol. 9, no. 1, Jun. 2021, doi: 10.31294/bi.v9i1.9989.

[19] D. Septhya, K. Rahayu, S. Rabbani, V. Fitria, Y. Irawan, and R. Hayami, “Implementasi Algoritma Decision Tree dan Support Vector Machine untuk Klasifikasi Penyakit Kanker Paru,” MALCOM: Indonesian Journal of Machine Learning and Computer Science, vol. 3, pp. 15–19, Apr. 2023, doi: https://doi.org/10.57152/malcom.v3i1.591.

[20] A. Karakuzu et al., “qMRLab: Quantitative MRI analysis, under one umbrella,” J. Open Source Softw., vol. 5, no. 53, p. 2343, Sep. 2020, doi: 10.21105/joss.02343.

[21] C. A. Palacios, J. A. Reyes-Suárez, L. A. Bearzotti, V. Leiva, and C. Marchant, “Knowledge discovery for higher education student retention based on data mining: Machine learning algorithms and case study in chile,” Entropy, vol. 23, no. 4, 2021, doi: 10.3390/e23040485.

[22] G. Dwilestari and T. A. Afifah, “Perbandingan Kinerja Algoritma Naive Bayes Dan Decision Tree Dalam Klasifikasi Kanker Paru-Paru,” 2025. doi: https://doi.org/10.36040/jati.v9i1.12463.

[23] R. Erwandi and Suyanto, “Klasifikasi Kanker Payudara Menggunakan Residual Neural Network,” Journal on Computing, Mar. 2020, doi: 10.21108/indojc.2020.5.1.373.

[24] R. Nurhayati, P. Melyna Mushtofa, and F. Sri Mulyani, “Perbandingan Algoritma K- Nearest Neighbor dan Naive Bayes Pada prediksi Harga saham Sektor Asuransi,” Proximal: Jurnal Penelitian Matematika dan Pendidikan Matematika, vol. 9, no. 1, pp. 177–185, Mar. 2026, doi: 10.30605/proximal.v9i1.7967.

[25] M. Azhari, Z. Situmorang, and R. Rosnelly, “Perbandingan Akurasi, Recall, dan Presisi Klasifikasi pada Algoritma C4.5, Random Forest, SVM dan Naive Bayes,” Jurnal Media Informatika Budidarma, vol. 5, no. 2, p. 640, Apr. 2021, doi: 10.30865/mib.v5i2.2937.

[26] A. Nur Rais and W. Warjiyono, “Optimasi Akurasi Klasifikasi Pada Prediksi Smokte Detection dengan Menggunakan Algoritma Adaboost,” Jurnal Sistem Komputer dan Informatika (JSON), vol. 4, no. 2, p. 343, Dec. 2022, doi: 10.30865/json.v4i2.5154.

Downloads

Published

2026-07-07

Issue

Section

Articles