Skip to main content
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 Cover

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

Open Access
|Jul 2025

Figures & Tables

Table 1:

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 (++++)
Figure 1:

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

Figure 2:

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.

Figure 4:

Distribution of 30 test data.

Table 2:

Training and test data

Label/class/categoryAmount of dataInformation protein content (g/L)
−60
+−240.15
+100.3
++221
+++303
++++720
Table 3:

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

[i] KNN, K-nearest neighbors.

Figure 5:

Results of confusion matrix values at K = 3.

Figure 6:

Results of confusion matrix values at K = 10.

Figure 7:

Results of confusion matrix values at K = 20.

Table 4:

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

[i] CNN, convolutional neural network; KNN, K-nearest neighbors; RF, random forest; RGB, red, green, and blue.

Language: English
Submitted on: Sep 14, 2024
Published on: Jul 26, 2025
Published by: International Journal on Smart Sensing and Intelligent Systems
In partnership with: Paradigm Publishing Services
Publication frequency: Volume open

© 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 International Journal on Smart Sensing and Intelligent Systems
This work is licensed under the Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 License.