Melola Discovery

← Melola Discovery

Jurnal Tanpa peringkat SINTA

Implementation of the K-Nearest Neighbor Algorithm (KNN) with Principal Component Analysis to Diagnose Tuberculosis

Recursive Journal of Informatics · Vol. 3 No. 2 (2025) · hlm. 108–121

DOI
10.15294/rji.v3i2.5235
ISSN
2986-6588, 2963-5551
Terbit
2025-10-17
Penerbit
Universitas Negeri Semarang
Bahasa
eng

Abstrak

Purpose: Tuberculosis (TB) is an infectious disease that attacks the respiratory organs, the lungs, and some can attack organs outside the lungs. Indonesia is one of the largest contributors to TB cases with around 320,000 new cases every year. Delays in diagnosing TB disease can cause a higher number of deaths due to errors in the treatment of sufferers. This makes the early diagnosis of TB disease important as early as possible. The research carried out aims to implement machine learning techniques to help diagnose TB disease. Methods: The research was carried out using the K-Nearest Neighbor (KNN) classification algorithm which was optimized with the Principal Component Analysis (PCA) feature selection technique. The dataset used consists of 577 data with 12 attributes labeled patients with tuberculosis and patients who do not have tuberculosis. Result: From the research that has been conducted, models that implement the KNN algorithm with PCA produce models with better performance than models that only implement KNN. The model that only uses KNN gets an accuracy of 92.528%, while the model that uses KNN and PCA gets an accuracy of 98.85%. This shows that the implementation of KNN and PCA is able to produce a good tuberculosis diagnosis model and can be used to assist in the early diagnosis of tuberculosis. Novelty: Using PCA in the feature selection process can reduce unnecessary attributes. It is a PCA that helps reduce the dimensionality, simplifies the visualization and interpretation of complex data sets. The use of PCA has been proven to be able to optimize the performance of the KNN algorithm for the detection of tuberculosis.

Kata kunci

Jaringan kolaborasi para penulis

40 penulis · 187 tautan kepenulisan bersama · 26 lintas organisasi · menampilkan 40 yang paling banyak terhubung

Arahkan kursor atau ketuk sebuah nama untuk menyorot rekan penulisnya. Klik dua kali untuk membuka halaman penulis.

  • Institut Teknologi Kalimantan
  • State University of Semarang
  • National Research and Innovation Agency
  • Newcastle University
  • Afiliasi tidak diketahui
  • Organisasi berbeda
  • Organisasi sama
  • Afiliasi tidak diketahui
  • Garis lebih tebal = lebih banyak artikel bersama · lingkaran lebih besar = lebih banyak artikel
Tampilkan sebagai tabel
Rekan penulisOrganisasiArtikel bersama
Alamsyah AlamsyahInstitut Teknologi Kalimantan7
Much Aziz MuslimState University of Semarang3
Endang SugihartiState University of Semarang3
Amalia Ika WulandariAfiliasi tidak diketahui3
Riza ArifudinState University of Semarang2
Chris Jeremy Verian SitorusInstitut Teknologi Kalimantan2
Muhammad Uswah PawaraInstitut Teknologi Kalimantan2
Rodlian Jamal IkhwaniInstitut Teknologi Kalimantan2
Suardi SuardiAfiliasi tidak diketahui2
Amalia Ika WulandariInstitut Teknologi Kalimantan2
Suardi SuardiInstitut Teknologi Kalimantan2
Lisa AriyantiState University of Semarang2
Budi PrasetiyoState University of Semarang1
Jumanto JumantoState University of Semarang1
Rofik RofikState University of Semarang1
Charles Sambera KalaAfiliasi tidak diketahui1
Niti Gede KumandangInstitut Teknologi Kalimantan1
Arif Nur IskandarAfiliasi tidak diketahui1
Taufik HidayatNational Research and Innovation Agency1
Taufik HidayatInstitut Teknologi Kalimantan1
Arif Nur IskandarInstitut Teknologi Kalimantan1
Abrari Noor HasmiAfiliasi tidak diketahui1
Abrari Noor HasmiInstitut Teknologi Kalimantan1
Asram Dio PratamaInstitut Teknologi Kalimantan1
Rodlian Jamal IkhwaniAfiliasi tidak diketahui1
Irvan SetiawanInstitut Teknologi Kalimantan1
Destyariani Liana PutriAfiliasi tidak diketahui1
Alan Dicky Swans SaragihAfiliasi tidak diketahui1
Anggoronadhi DianiswaraAfiliasi tidak diketahui1
Destyariani Liana PutriInstitut Teknologi Kalimantan1
Alan Dicky Swans SaragihInstitut Teknologi Kalimantan1
Anggoronadhi DianiswaraInstitut Teknologi Kalimantan1
Wira SetiawanAfiliasi tidak diketahui1
Muhammad Uswah PawaraAfiliasi tidak diketahui1
Andi Mursid Nugraha ArifuddinAfiliasi tidak diketahui1
Samsu Dlukha NurcholiqAfiliasi tidak diketahui1
Wira SetiawanNewcastle University1
Andi Mursid Nugraha ArifuddinInstitut Teknologi Kalimantan1

Afiliasi berasal dari OpenAlex; metadata OAI-PMH jurnal tidak memuatnya. Penulis tanpa ID OpenAlex dicocokkan berdasarkan nama, sehingga dua orang bisa tergabung atau satu orang bisa terpisah.

Sumber metadata: OAI-PMH (metadata jurnal) https://journal.unnes.ac.id/journals/rji/oai, pertama di-harvest 6 Nov 2026, terakhir terlihat 8 Nov 2026.
Metadata asli (oai_dc)
<oai_dc:dc xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:oai_dc="http://www.openarchives.org/OAI/2.0/oai_dc/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/oai_dc/  http://www.openarchives.org/OAI/2.0/oai_dc.xsd">
	<dc:title xml:lang="en">Implementation of the K-Nearest Neighbor Algorithm (KNN) with Principal Component Analysis to Diagnose Tuberculosis</dc:title>
	<dc:creator xml:lang="en">Putri, Yuliana</dc:creator>
	<dc:creator xml:lang="en">Alamsyah, Alamsyah</dc:creator>
	<dc:subject xml:lang="en">Machine Learning</dc:subject>
	<dc:subject xml:lang="en">Tuberculosis</dc:subject>
	<dc:subject xml:lang="en">Data Mining</dc:subject>
	<dc:subject xml:lang="en">Disease Diagnosis</dc:subject>
	<dc:subject xml:lang="en">KNN</dc:subject>
	<dc:description xml:lang="en">Purpose: Tuberculosis (TB) is an infectious disease that attacks the respiratory organs, the lungs, and some can attack organs outside the lungs. Indonesia is one of the largest contributors to TB cases with around 320,000 new cases every year. Delays in diagnosing TB disease can cause a higher number of deaths due to errors in the treatment of sufferers. This makes the early diagnosis of TB disease important as early as possible. The research carried out aims to implement machine learning techniques to help diagnose TB disease.
Methods: The research was carried out using the K-Nearest Neighbor (KNN) classification algorithm which was optimized with the Principal Component Analysis (PCA) feature selection technique. The dataset used consists of 577 data with 12 attributes labeled patients with tuberculosis and patients who do not have tuberculosis. 
Result: From the research that has been conducted, models that implement the KNN algorithm with PCA produce models with better performance than models that only implement KNN. The model that only uses KNN gets an accuracy of 92.528%, while the model that uses KNN and PCA gets an accuracy of 98.85%. This shows that the implementation of KNN and PCA is able to produce a good tuberculosis diagnosis model and can be used to assist in the early diagnosis of tuberculosis.
Novelty: Using PCA in the feature selection process can reduce unnecessary attributes. It is a PCA that helps reduce the dimensionality, simplifies the visualization and interpretation of complex data sets. The use of PCA has been proven to be able to optimize the performance of the KNN algorithm for the detection of tuberculosis.
 </dc:description>
	<dc:publisher xml:lang="en">Universitas Negeri Semarang</dc:publisher>
	<dc:date>2025-10-17</dc:date>
	<dc:type>info:eu-repo/semantics/article</dc:type>
	<dc:type>info:eu-repo/semantics/publishedVersion</dc:type>
	<dc:type xml:lang="en">Peer-reviewed Article</dc:type>
	<dc:format>application/pdf</dc:format>
	<dc:identifier>https://journal.unnes.ac.id/journals/rji/article/view/5235</dc:identifier>
	<dc:identifier>10.15294/rji.v3i2.5235</dc:identifier>
	<dc:source xml:lang="en">Recursive Journal of Informatics; Vol. 3 No. 2 (2025): September 2025; 108-121</dc:source>
	<dc:source>2986-6588</dc:source>
	<dc:source>2963-5551</dc:source>
	<dc:source>10.15294/rji.v3i2</dc:source>
	<dc:language>eng</dc:language>
	<dc:relation>https://journal.unnes.ac.id/journals/rji/article/view/5235/6209</dc:relation>
	<dc:rights xml:lang="en">Copyright (c) 2025 Recursive Journal of Informatics</dc:rights>
</oai_dc:dc>