Have a personal or library account? Click to login

Optimizing urine protein detection accuracy using the K-nearest neighbors algorithm and advanced image segmentation techniques

Open Access
|Jul 2025

Figures & Tables

Figure 1:

Protein detection computer program. KNN, K-nearest neighbors.
Protein detection computer program. KNN, K-nearest neighbors.

Figure 2:

Evaluation of the KNN model. KNN, K-nearest neighbors.
Evaluation of the KNN model. KNN, K-nearest neighbors.

Figure 3:

(A) Image of the prototype seen from the outside, (B) prototype components seen from the inside, and (C) shape of the prototype that is ready to be used.
(A) Image of the prototype seen from the outside, (B) prototype components seen from the inside, and (C) shape of the prototype that is ready to be used.

Figure 4:

Distribution of 30 test data.
Distribution of 30 test data.

Figure 5:

Results of confusion matrix values at K = 3.
Results of confusion matrix values at K = 3.

Figure 6:

Results of confusion matrix values at K = 10.
Results of confusion matrix values at K = 10.

Figure 7:

Results of confusion matrix values at K = 20.
Results of confusion matrix values at K = 20.

Comparison of research results

No.BiomarkerAuthor and yearColor classificationWork principleRef.
1.AlbuminThakur (2021)RGB, HSV, and LabRF algorithm to estimate albumin concentration using a smartphone[32]
2.AlbuminThakur (2022)RGB, HSV, and LabCNN algorithm for classifying Color in detecting albumin using a smartphone.[41]
3.AlbuminKim (2022)RGBRGB extraction uses machine learning and iPhone 11 as a means of detecting color in urine.[42]
4.ProteinThis study (2023)RGBProtein detection equipped with a digital color sensor type ELP camera. Image data are classified based on RGB and evaluated using the KNN algorithm

Evaluation of the KNN model

K valueAccuracy (%)Precision (%)Recall (%)F1 score (%)
396.797.096.796.2
1086.775.886.780.7
2076.760.976.767.3

Preparation of sample solutions

No.Protein (g)Water (mL)Output strip
1.0.0020Negative (−)
2.1.0020Plus-minus (+−)
3.3.0020Positive 1 (+)
4.5.0020Positive 2 (++)
5.7.3020Positive 3 (+++)
6.11.6020Positive 4 (++++)

Training and test data

Label/class/categoryAmount of dataInformation protein content (g/L)
60
+−240.15
+100.3
++221
+++303
++++720
Language: English
Submitted on: Sep 14, 2024
Published on: Jul 26, 2025
Published by: Professor Subhas Chandra Mukhopadhyay
In partnership with: Paradigm Publishing Services
Publication frequency: 1 times per year

© 2025 Anton Yudhana, Novi Febrianti, Ilham Mufandi, Arsyad Cahya Subrata, Nuni Ihsana, Son Ali Akbar, Liya Yusrina Sabila, Helda Pratama, Nisa Fajriyanti, Sri Lestari, Ismail Rakip Karas, published by Professor Subhas Chandra Mukhopadhyay
This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License.