Next Article in Journal
Preliminary Studies on Detection of Fusarium Basal Rot Infection in Onions and Shallots Using Electronic Nose
Next Article in Special Issue
Smartphone-Based Electrochemical Systems for Glucose Monitoring in Biofluids: A Review
Previous Article in Journal
What Can We Learn from Depth Camera Sensor Noise?
Previous Article in Special Issue
Carrying Position-Independent Ensemble Machine Learning Step-Counting Algorithm for Smartphones
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Predictive System Implementation to Improve the Accuracy of Urine Self-Diagnosis with Smartphones: Application of a Confusion Matrix-Based Learning Model through RGB Semiquantitative Analysis

1
Department of Biomedical Engineering, School of Medicine, Keimyung University, 1095 Dalgubeol-daero, Daegu 42601, Korea
2
College of Pharmacy, Keimyung University, 1095 Dalgubeol-daero, Daegu 42601, Korea
*
Author to whom correspondence should be addressed.
Submission received: 31 May 2022 / Revised: 15 July 2022 / Accepted: 18 July 2022 / Published: 21 July 2022
(This article belongs to the Special Issue Advanced Applications in Smartphone-Based Analysis)

Abstract

:
Urinalysis, an elementary chemical reaction-based method for analyzing color conversion factors, facilitates examination of pathological conditions in the human body. Recently, considerable urinalysis-centered research has been conducted on the analysis of urine dipstick colors using smartphone cameras; however, such methods have a drawback: the problem of reproducibility of accuracy through quantitative analysis. In this study, to solve this problem, the function values for each concentration of a range of analysis factors were implemented in an algorithm through urine dipstick RGB semi-quantitative color analysis to enable real-time results. Herein, pH, glucose, ketones, hemoglobin, bilirubin, protein (albumin), and nitrites were selected as analysis factors, and the accuracy levels of the existing equipment and the test application were compared and evaluated using artificial urine. In the semi-quantitative analysis, the red (R), green (G), and blue (B) characteristic values were analyzed by extracting the RGB characteristic values of the analysis factors for each concentration of artificial urine and obtaining linear function values. In addition, to improve the reproducibility of detection accuracy, the measurement value of the existing test equipment was set to an absolute value; using a machine-learning technique, the confusion matrix, we attempted to stabilize test results that vary with environment.

1. Introduction

Urinalysis is one of the most frequently performed tests in medical institutions because it is an inexpensive test that can detect risk signals with respect to major metabolic functions from a urine sample [1,2]. Urinalysis has three aspects: physical characteristics, such as urine color; chemical measurement; and microscopic examination [3,4,5]. The physical and chemical tests of urine are performed using a urine dipstick, and the public can easily access urinalysis. Although urinalysis is simple, it requires a significant amount of attention due to the problems, such as infection, that may occur during the collection and testing process [6]. In particular, because the test results are obtained through chemical and enzymatic reactions, errors in results may occur owing to reaction times and environment changes [7].
The dipstick used for urinalysis is a plastic strip that has pads containing reagents attached to it [8]. Therefore, by using a dipstick, pH, protein, occult blood, glucose, leukocytes, esterase, nitrites, bilirubin, and ketones can be simultaneously measured [9]. The dipstick is mainly used for rapid point-of-care testing because it has high sensitivity, a low cost, and confirms results through visual color analysis [10].
In general, color analysis with the naked eye significantly affects the reading. Brightness is important and white light of approximately 1000 lux is excellent [11]. During visual analysis, if the surrounding environment is too dark, the color will appear dark, whereas if too bright, the color will appear pale, which may cause errors in readings [12]. Therefore, an objective system that can clearly observe and evaluate dipstick color change is needed. To increase the accuracy of the test, a mechanical rather than a manual test is required. In particular, a more accurate method for detecting quantitative changes in urine chemical elements by change in dipstick color is needed. Considering the speed and accuracy of the test, the method can be applied using a camera and an application (app) in tandem in mobile devices.
This study intends to develop an algorithm and app for urinalysis RGB quantitative analysis using a smartphone to provide a solution to the aforementioned problems and improve accessibility. First, the range of items that can be inspected with a dipstick was specified and RGB values were extracted for the specified items on the basis of smartphone camera images. In addition, a method for semi-quantitatively deriving the color conversion range by comparing the extracted RGB values with standard RGB values was studied. When using the smartphone, to maintain the reproducibility of the measurement value, which varied with environmental changes, the measurement value of the existing test equipment was set as an absolute value. In addition, this study aimed to increase the reproducibility of accuracy by applying a confusion matrix-based learning model to the results of a urine test obtained using a smartphone camera [13,14].
Previous studies have focused on quantitatively converting the color conversion value of the dipstick, and there was a difference in setting the quantitative range of color similarity in this process [15,16]. Color-measurement sensitivity is based on the accuracy of the camera’s complementary metal-oxide-semiconductor sensor, the color uniformity of the color response, and the number of calibration points [17]. Herein, the method of inputting the model of the converted color through image processing and the multidimensional color conversion method through image processing were applied [18]. However, there was fluidity in the change value according to the environment. Therefore, a quantitative presentation of the radical RGB values was necessary. In addition, the proposed methods suggest specific values to maintain the objectivity of extracted values in relation to camera characteristics [19].
However, if the RGB values recognized by the smartphone camera change depending on the concentration of the object detected in the urine and the RGB is not presented quantitatively, there is a high possibility of error in the measurement value. Therefore, this study aimed to present data within a predictable range by measuring RGB change values according to the amounts of the analysis factors to be tested. In addition, the accuracy of the algorithm was ascertained by evaluating the agreement between the results of the existing test device used in hospitals and the results obtained using the app. Since urinalysis is analyzed as a chemical reaction, the impact of the surrounding environment should be minimized, and thus the test should feature a quantitative evaluation factor [20]. Therefore, an algorithm that can infer changes according to the measurement medium is required. To maintain a good agreement between the smartphone-measured value and the absolute value measured by the existing equipment, an attempt was made to increase the accuracy of reproducibility according to the test environment using a confusion matrix-based machine-learning model. This study aimed to develop a smartphone app to increase the accessibility of real-time urine tests at home and to introduce the basic mechanism of a new color analysis algorithm as a method to increase the reliability of test results.

2. Materials and Methods

The urine dipstick color table is presented as a color comparison table for conventional visual recognition, as shown in Figure 1 [21]. A method for comparing and tracking the same color is suggested, but distinguishing and recognizing color with the naked eye is limited. In this study, an experiment was performed to compare and track changes in detected RGB values. This was carried out by extracting the dipstick color change as RGB values of the photographed images and setting the reference values for each standard concentration for the test item. After photographing using a smartphone camera (iPhone 11 pro, 2021), RGB values were obtained, as shown in Figure 2, through image processing (photoshop CS6, 2020).
The smartphone used in this study had a screen size of 6.1 inches and a resolution of 1792 × 828 pixels at 326 ppi. It also included basic specifications, such as the Triple 12MP Ultra-Wide, Wide, and Telephoto cameras. The white balance was set automatically under the condition of lighting from a fluorescent light bulb. The suggested smartphone camera was used without changing the camera measurement sensitivity and color correction and by applying the same steps that an actual user would use. The distance from the smartphone was set to 50 ± 0.5 mm, and the average illuminance was 1000 lux (the color temperature was 4000 K). The urine dipstick used was the UroColor 10 Urine Test Strip made by Abbott Korea Diagnostics [22]. Comparative analysis of the results was performed using a urine dipstick reading device URiSCAN Pro (YD-Diagnostics, 2006, Yongin-si, Korea) used in hospitals.
The urine used in the experiment was based on artificial urine [23]. The analysis factors selected were pH, glucose, ketones, hemoglobin, bilirubin, protein (albumin), and nitrites. According to these test results, various diseases, such as carbohydrate disorders, liver and hemolysis disorders, and urinary tract infections, can be successfully suspected [24]. The urine used herein was prepared by dissolving 0.2, 8, 1.14, 0.2, and 0.05 g of KCl, NaCl, Na2HPO4, KH2PO4, and food coloring (yellow) in 1 L of triple distilled water, respectively. In addition, the pH was adjusted to 6.0 by adding HCl. Thereafter, RGB analysis was performed by adjusting the concentrations of the relevant analyte factors. For example, in the case of glucose among the analysis factors, first, a 300 mg/dL solution was prepared by dissolving 300 mg of glucose in 100 mL of artificial urine. Subsequently, 50 mL of this glucose solution was mixed with 25 mL of the artificial urine to make a diluted solution of 200 mg/dL. Subsequently, 50 mL of this prepared solution (200 mg/dL) was mixed with 50 mL of artificial urine and diluted twice to prepare 100 mg/dL. By diluting the concentration of the analysis factor, the algorithm was implemented by analyzing the characteristics and change trend of the RGB values according to the concentration change. Through this, the program was structured to extract the results in the same way as the existing results.
To reproduce the accuracy of the values measured by the smartphone camera and those measured by the existing test equipment, the measured values of the existing test equipment were set as the reference values. In addition, all specific values of RGB were set as standard values, and a learning model was implemented through the application of the confusion matrix [25].
Therefore, the measured value, which was calculated as a similar boundary value, was implemented to match the existing specific value through the learning model. RGB values implemented in actual urine tests are widely distributed; as these values are generally presented as figures that are difficult to distinguish from each other, the definition of boundary values may be ambiguous. Therefore, the measured values should be corrected to reduce errors in measurements.
To overcome this limitation, by analyzing the properties of heterogeneous RGB data values using a learning model, accuracy can be increased by reducing errors in determination and measurement values [26]. The confusion matrix comprises four sub-elements: TP (True Positive), FP (False Positive), TN (True Negative), and FN (False Negative) [27]. In this study, to obtain the same results as those of the existing test tools by setting the testing dataset and the training dataset, the decision value approximate to the testing dataset was presented as a measurement value and subsequently learned by the model. Therefore, for multiple users, the same dipstick should be tested more than 1000 times to maintain accuracy.
Accuracy was confirmed by comparing the results of the testing equipment used in existing clinical practice with those of the test conducted using the developed app. Thus, urine dipstick agreement was verified with a Bland–Altman plot [28]. The degree of agreement was confirmed based on the graphic distribution of the average value, which was obtained by performing the test 10 times under the same conditions.

3. Results

Changes in RGB values according to the concentration of analysis factors in artificial urine were observed. First, the change in RGB value according to pH concentration is shown in Figure 3. The RGB values analyzed as colors are displayed in different regions depending on the analysis factors. This shows the color conversion characteristics according to the changes in concentrations. Considering individual characteristics, the change areas of R, G, and B appeared to be different; hence, it was difficult to distinguish them from the overall visual image change through color conversion applied to all analysis factors. Therefore, the individual areas were calculated by estimating the change value based on the optimization factor among R, G, and B by finding the color change characteristics for the concentrations of each analysis factor.
In the case of pH among the urine dipstick analysis factors, the color conversion factor was distinctly observed. The extracted R value exhibits the highest reactivity (linear coefficient and slope) according to pH change and can be calculated on this basis. In the case of glucose, the change in G value is quantitatively distributed; hence, it can be used as an index for color conversion estimation of images taken with a smartphone camera. Table 1 presents the RGB selection criteria for the quantitative changes in each analysis factor. In particular, a linear coefficient (r-squared) value of 0.9 or higher is presented. Herein, the linearity range for the analysis factor corresponds to the limit of color processing obtained with a real smartphone and suggests that color readings within this range are possible.
In this experiment, because the color change values of ketones exhibit the most uniform pattern, the reliability of readings can be increased. Bilirubin presents the lowest color conversion values and the RGB values are difficult to distinguish. The same pattern can be detected in visual inspection. Therefore, it is possible to apply the change values for each analysis factor by presenting the RGB values obtained as a function, thereby reducing the error between the actual and extracted values. In addition, it is possible to use an algorithm to apply to the app.
For color analysis, a method involving hue, saturation, and value (HSV) rather than RGB is used at times [29]. In general, it is known that the HSV color space model has better detection accuracy than the RGB model in image analysis because it cannot separate the effect of light from color information. However, this study aims to utilize color space information for quantitative analysis. Therefore, it is important to analyze the linearity (coefficient of determination) and slope of RGB and HSV values according to the concentrations of urine components. As shown in Figure 4, the color space values for the urine analysis factor concentrations were extracted as in RGB extraction, and the linear coefficients and slope values were calculated using a prism (GraphPad Software, Inc., San Diego, CA, USA) [30]. As a result, the RGB value and the individual HSV value were plotted according to the concentration of bilirubin, and then a graph was created. The coefficients of determination (r2) of the R and V values of bilirubin were the highest at 0.9596 and 0.9422, respectively, and the slope was approximately thrice higher. As the reactivity of the extracted value was high according to the change in concentration, the concentration could be determined based on the change in color. Therefore, as shown in the experimental results, RGB extraction analysis tends to be similar to that of HSV.
Figure 5 shows the screen of the application in which the development algorithm is applied. It was configured to express the same quantitative result as the test result of a specific item representing the same value. Figure 6 shows the degree of agreement between the test result extracted from the device used in hospitals (URiSCAN Pro) and that obtained from the app using a Bland–Altman plot. In the graph, the black dots denote the results of testing with the existing urine test device (URiSCAN Pro), whereas the white dots denote the results extracted using the app developed in this study. The closer the two points, the more likely it is that the result will be the same. It was found that the seven results for the presented urine analytes showed the same degree of agreement. Therefore, it was predicted that there would be no difficulty in applying the algorithm developed as a function using RGB analysis values to urinalysis.
The test values measured by the developed algorithm are consistent when the test is performed in identical environments; however, the measurement environment may vary depending on the user. Therefore, a confusion matrix-based model was applied which can continuously learn the measured values regardless of the current user. The results are listed in Table 2. The measurement value for the existing equipment is an absolute value, and when a new dipstick is tested a new measurement value is learned on the basis of the value measured by the current test. As a result, an average accuracy of 98.74% can be maintained.
In this study, the standard values for artificial urine analyzed through the linear semi-quantitative algorithm were consistent with the values measured using the existing equipment. Considering this result, the proposed method will help improve the reproducibility of the accuracy of data recorded by users in actual clinical trials.

4. Discussion

Generally, urinalysis can test for kidney disease and other systemic diseases at a low cost. Therefore, accessing the simple test method results should be convenient. A method for presenting quantitative values by acquiring test results according to the color of urine in smartphone camera images has been recently developed, and commercialization of this method is being promoted as an app [30,31,32,33]. The urine dipstick color conversion factor is recognized as a total value; therefore, a change factor may occur depending on the illuminance or environment. In addition, because the color conversion coefficient is corrected based on an estimated specific value, there may be differences between each urinalysis app [34].
In existing research, for the most part, standard color values are inputted and matching algorithms are applied. In this case, it is difficult to present an accurate quantitative reference value because errors at the boundary of the color conversion value or corresponding to an incorrectly recognized value due to environmental conditions may occur. This problem can be solved through machine learning, which matches RGB values with spectral conversion values [35,36]. In addition, it can be solved using a method that predicts linearity and suggests semi-quantitative indicators, similar to the method employed in this study.
In general, the RGB or HSV model is used for color image analysis; however, in this study, the RGB model, which has excellent accessibility because of the availability of many applicable programs, was used, and similar results were extracted and applied from comparative experimental results. Semi-quantitative analysis has the advantage of quantitatively estimating detected amounts of analytes by extracting an optimized linear relationship according to element concentration and RGB value. The app-based urinalysis in this study obtained semi-quantitative values using RGB values and then presented a new algorithm for extracting quantitative values through AI. Therefore, it is useful to provide a standard for quantitatively predicting the degree of a suspected disease, which can be presented in the same way as the test result in a hospital, thereby increasing the reliability of the examiner. In the existing urinalysis app, color interpolation is applied for accuracy and an analysis method using linear interpolation was applied [37], but this requires that all RGB values are applied. In addition, the app has its own standard algorithm which digitally extracts the color table provided by the urine dipstick company; therefore, there may be differences depending on the app [38]. When analyzing test results with colors obtained with a smartphone camera, as in this study, linearity can be found through the formula of specific color values among the extracted R, G, and B values according to the analysis factors for each concentration. If the optimized RGB value is applied, the accuracy of the color conversion value can be improved through semi-quantitative analysis.
In addition, to maintain accuracy, an AI-based measurement service is required, and because the environment and usage method differ for each user, the test results obtained through self-diagnosis require reproducibility of accuracy. Accordingly, as an effective solution, the measured and absolute values are learned using a confusion matrix, and subsequently the similar measured values are estimated and presented. Accuracy refers to the degree to which the same result value can be maintained even in the case of repeated tests, not the classification of boundary values.
In general, color interpretation of digital images using a smartphone camera is influenced by the choice of color space and the method of measuring color similarity [39,40]. The color space provides specific values for all expressed colors, and in this study, RGB, the basic color space used in camera sensors and computer displays, was applied as a standard. The linearity of the RGB values was used to determine the similarity between colors, thereby yielding the same values as the actual test values. Therefore, the same value can be presented in a constant environment, and the accuracy of the test can be improved by applying the semi-quantitative linearity. In addition, in the case of a variable environment, the machine-learning model was applied. Nevertheless, this study has a limitation: although artificial urine was produced and quantitative values for each concentration were determined, comparison and verification of results for the urine of patients with actual diseases will be of paramount importance in future studies.

5. Conclusions

In this study, an algorithm was developed to extract the color of a urine dipstick from a smartphone camera image and apply the optimized RGB specific color value through semi-quantitative analysis. By extracting the RGB linear coefficient for each urine concentration of seven urine dipstick analysis factors, we succeeded in deriving result values with the same pattern as existing test results. Therefore, both the accuracy of the test result extracted based on color analysis and the error of the color analysis quantitative value in the existing algorithm were improved. In addition, considering a variable measurement environment for each user, a confusion matrix-based learning model was applied to maintain the reproducibility of accuracy; consequently, an average accuracy of 98.74% was maintained. These findings contributed to increasing the accessibility of test results and may be applied in future medical platforms.

Author Contributions

Conceptualization, S.-C.K. and Y.-S.C.; methodology, Y.-S.C.; software, S.-C.K.; validation, S.-C.K. and Y.-S.C.; formal analysis, Y.-S.C.; investigation, Y.-S.C.; resources, S.-C.K.; data curation, Y.-S.C.; writing—original draft preparation, S.-C.K.; writing—review and editing, S.-C.K. and Y.-S.C.; visualization, S.-C.K.; supervision, Y.-S.C.; project administration, S.-C.K.; funding acquisition, S.-C.K. All authors have read and agreed to the published version of the manuscript.

Funding

The research was supported by the Research Institute R&DB Program through the Ministry of Science and ICT (2021-DG-RD-0138).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Prah, J.K.; Amoah, S.; Ocansey, D.W.; Arthur, R.; Walker, E.; Obiri-Yeboah, D. Evaluation of urinalysis parameters and antimicrobial susceptibility of uropathogens among out-patients at University of Cape Coast Hospital. Ghana Med. J. 2019, 53, 44–51. [Google Scholar] [CrossRef] [PubMed]
  2. Yang, C.J.; Chen, D.P.; Wen, Y.H.; Lai, N.C.; Ning, H.S. Evaluation the diagnostic accuracy of albuminuria detection in semi-quantitative urinalysis. Clin. Chim. Acta 2020, 510, 177–180. [Google Scholar] [CrossRef] [PubMed]
  3. Allison, B.C.; Tam, T.V. Revisiting approaches to and considerations for urinalysis and urine culture reflexive testing. Crit. Rev. Clin. Lab. Sci. 2022, 59, 112–124. [Google Scholar] [CrossRef]
  4. Stern, M.; Maldonado, U.; Usyk, M.; Granja, I.; Schoenfeld, D.; Kelvin, P.; Agalliu, I.; Asplin, J.; Burk, R.; Sylvia, O. Fecal transplant modifies urine chemistry risk factors for urinary stone disease. Physiol. Rep. 2019, 7, e14012. [Google Scholar] [CrossRef] [Green Version]
  5. Chaudhari, P.P.; Monuteaux, M.C.; Bachur, R.G. Microscopic Bacteriuria Detected by Automated Urinalysis for the Diagnosis of Urinary Tract Infection. J. Pediatr. 2018, 202, 238–244. [Google Scholar] [CrossRef]
  6. Sonali, D.A.; Christopher, R.P.; Mohamad, G.F. Deconstructing the urinalysis: A novel approach to diagnostic and antimicrobial stewardship. Antimicrob. Steward. Healthc. Epidemiol. 2021, 1, 1–5. [Google Scholar] [CrossRef]
  7. Kavuru, V.; Vu, T.; Karageorge, L.; Choudhury, D.; Senger, R.; Robertson, J. Dipstick analysis of urine chemistry: Benefits and limitations of dry chemistry-based assays. Postgrad. Med. 2019, 132, 225–233. [Google Scholar] [CrossRef]
  8. Chu, C.M.; Lowder, J.L. Diagnosis and treatment of urinary tract infections across age groups. Am. J. Obstet. Gynecol. 2018, 219, 40–51. [Google Scholar] [CrossRef]
  9. Lei, R.; Huo, R.; Mohan, C. Current and emerging trends in point-of-care urinalysis tests. Expert Rev. Mol. Diagn. 2019, 20, 69–84. [Google Scholar] [CrossRef]
  10. Young, P.E.; Diaz, G.J.; Kalariya, R.N.; Mann, P.A.; Benbrook, M.N.; Avandsalehi, K.R.; Pertersen, J.R. Comparison of the time required for manual (visually read) and semiautomated POCT urinalysis and pregnancy testing with associated electronic medical record (EMR) transcription errors. Clin. Chim. Acta 2020, 504, 60–63. [Google Scholar] [CrossRef]
  11. Rahmat, R.F.; Royananda, M.A.; Muchtar, R.; Taqiuddin, S.; Adnan, R.; Anugrahwaty, R.; Budiarto, R. Automated color classification of urine dipstick image in urine examination. J. Phys. Conf. Ser. 2018, 978, 1–8. [Google Scholar] [CrossRef]
  12. Silva, V.; Sacomboio, E.; Raimann, J.; Evans, R.; Sebastião, C.; Tchivango, A.; Kotanko, P.; Levin, N.; Filho, R. Diagnostic performance of salivary urea nitrogen dipstick to detect and monitor acute kidney disease in patients with malaria. Malar. J. 2018, 17, 1–8. [Google Scholar] [CrossRef]
  13. Luque, A.; Carrasco, A.; Martín, A.; de las Heras, A. The impact of class imbalance in classification performance metrics based on the binary confusion matrix. Pattern Recognit. 2019, 91, 216–231. [Google Scholar] [CrossRef]
  14. Nagle, M.; Gonçalves, R.; Brazolin, S.; Palma, A.S.S.; Pereira, R.G.F. Reliability of tomographic image to represent variation in stem wood properties assessed using confusion matrix metrics. Wood Sci. Technol. 2022, 56, 921–945. [Google Scholar] [CrossRef]
  15. Jiwen, X.; Yong, Z.; Ziliang, C.; Wanjun, W.; Caifeng, W. A 3D printed centrifugal microfluidic platform for automated colorimetric urinalysis. Microsyst. Technol. 2019, 26, 291–299. [Google Scholar] [CrossRef]
  16. Fu, Q.; Zhang, X.C.; Li, J.; Zhaohui, Q. Ambient light sensor based colorimetric dipstick reader for rapid monitoring organophosphate pesticides on a smart phone. Anal. Chim. Acta 2019, 1092, 126–131. [Google Scholar] [CrossRef]
  17. Daniel, M.; Daniel, K.S.; Judith, C.; Peter, C.; Adam, S.; Nina, H. The complete calibration of the color–redshift relation (C3R2) survey: Analysis and data release 2. Am. Astron. Soc. 2019, 877, 81. [Google Scholar] [CrossRef] [Green Version]
  18. Konnaiyan, K.; Cheemalapati, S.; Gubanov, M.; Pyayt, A. mHealth Dipstick Analyzer for Monitoring of Pregnancy Complications. IEEE Sens. J. 2017, 17, 7311–7316. [Google Scholar] [CrossRef]
  19. Woodburn, E.; Long, K.; Brian, T. Cunningham. Analysis of paper-based colorimetric assays with a smartphone spectrometer. IEEE Sens. J. 2018, 19, 508–514. [Google Scholar] [CrossRef]
  20. Adams, J.D.; Capitan-Jimenez, C.; Burchfield, J.M.; Jansen, L.T.; Kavouras, S.A. Smartphone-Based Analysis of Urine Reagent Strips Is Inaccurate for Assessing Underhydration. Telemed. e-Health 2019, 26, 683–686. [Google Scholar] [CrossRef]
  21. Kanako, I.; Masaharu, A.; Izumi, M.; Chikako, I.; Emi, A.; Miharu, U.; Kaoru, O.; Teruto, H. Comparison of dipstick and quantitative tests for proteinuria and hematuria in middle-aged, male Japanese employees: A single-center study. Health Sci. Rep. 2021, 4, e267. [Google Scholar] [CrossRef]
  22. Oyaert, M.; Himpe, J.; Speeckaert, M.; Stove, V.; Delanghe, J. Quantitative urine test strip reading for leukocyte esterase and hemoglobin peroxidase. Clin. Chem. Lab. Med. 2018, 56, 1126–1132. [Google Scholar] [CrossRef]
  23. Khan, L.B.; Read, H.M.; Titchie, S.R.; Proft, T. Artificial Urine for Teaching Urinalysis Concepts and Diagnosis of Urinary Tract Infection in the Medical Microbiology Laboratory. J. Microbiol. Biol. Educ. 2017, 18, 40. [Google Scholar] [CrossRef] [Green Version]
  24. Arnold, C.P.; Febus Reidj, G.C.; Leonardo, D.V.; Jesus Paolo, T.M.; Arnold, M.C.; Jerome, B.T.; Rachelle Geleen, S.T. Measurement of Specific Gravity, Urobilinogen, Blood, Protein and pH Level of Urine Samples Using Raspberry Pi based Portable Urine Test Strip Analyzer. In Proceedings of the 2020 10th International Conference on Biomedical Engineering and Technology (ICBET 2020), Tokyo, Japan, 15–18 September 2020; pp. 58–63. [Google Scholar] [CrossRef]
  25. Salmon, B.P.; Kleynhans, W.; Schwegmann, C.P.; Olivier, J.C. Proper comparison among methods using a confusion matrix. In Proceedings of the 2015 IEEE International Geoscience and Remote Sensing Symposium (IGARSS), Milan, Italy, 26–31 July 2015; pp. 3057–3060. [Google Scholar] [CrossRef]
  26. Jeyaraj, P.R.; Samuel Nadar, E.-R. Computer-assisted medical image classification for early diagnosis of oral cancer employing deep learning algorithm. J. Cancer Res. Clin. Oncol. 2019, 145, 829–837. [Google Scholar] [CrossRef]
  27. Hong, C.S. Confusion plot for the confusion matrix. J. Korean Phys. Soc. 2021, 32, 427–437. [Google Scholar] [CrossRef]
  28. Singh, O.; Teo, A. Real-time human respiration carbon dioxide measurement device for cardiorespiratory assessment. J. Breath Res. 2018, 15, 026003. [Google Scholar] [CrossRef] [Green Version]
  29. Ong, P.M.B.; Punzalan, E.R. Comparative Analysis of RGB and HSV Color Models in Extracting Color Features of Green Dye Solutions; Presented at the DLSU Research Congress; De La Salle University: Manila, Philippines, 2014; pp. 1–7. [Google Scholar]
  30. Daniel, R.M.; Brian, D.G. Using GraphPad prism’s heat maps for efficient, fine-grained analyses of single-case data. Behav. Anal. Pract. 2022, 15, 505–514. [Google Scholar] [CrossRef]
  31. Burke, A.E.; Thaler, K.M.; Geva, M.; Adiri, Y. Feasibility and acceptability of home use of a smartphone-based urine testing application among women in prenatal care. Am. J. Obstet. Gynecol. 2019, 221, 527–528. [Google Scholar] [CrossRef]
  32. Akraa, S.; Anh Pham, T.T.; Shen, H.; Tang, Y.; Tang, B.Z.; Li, J.; Walker, S. A smartphone-based point-of-care quantitative urinalysis device for chronic kidney disease patients. J. Netw. Comput. Appl. 2018, 115, 59–69. [Google Scholar] [CrossRef]
  33. Vaggers, S.; Puri, P.; Wagenlehner, F.; Somani, B.K. A Content Analysis of Mobile Phone Applications for the Diagnosis, Treatment, and Prevention of Urinary Tract Infections, and Their Compliance with European Association of Urology Guidelines on Urological Infections. Eur. Urol. Focus. 2020, 7, 198–204. [Google Scholar] [CrossRef]
  34. Johnson, S.; Stanford, J.; Warren, G.; Bench-Capon, S. Increased Likelihood of Pregnancy Using an App-Connected Ovulation Test System: A Randomized Controlled Trial. J. Women’s Health 2020, 29, 84–90. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  35. Ji, Y.H.; Kwak, Y.S.; Park, S.M.; Kim, Y.L. Compressive recovery of smartphone RGB spectral sensitivity functions. Opt. Express 2021, 29, 11947–11961. [Google Scholar] [CrossRef] [PubMed]
  36. Yang, R.; Cheng, W.; Chen, X.; Qian, Q.; Zhang, Q.; Pan, Y.; Duan, P.; Miao, P. Color Space Transformation-Based Smartphone Algorithm for Colorimetric Urinalysis. ACS Omega 2018, 3, 12141–12146. [Google Scholar] [CrossRef] [PubMed]
  37. Chung, W.-Y.; Ramezani, R.F.; Silverio, A.A.; Tsai, V.F. Development of a Portable Multi-Sensor Urine Test and Data Collection Platform for Risk Assessment of Kidney Stone Formation. Electronics 2020, 9, 2180. [Google Scholar] [CrossRef]
  38. Fechner, P.; Lockl, J.; Ruhland, N.; Zwede, T.; Zürl, T. A Model for Predicting the Amount of Urine in the Bladder Based on App-generated Tracking Data. In Proceedings of the IEEE International Conference on Bioinformatics and Biomedicine (BIBM), Seoul, Korea, 16–19 December 2020; pp. 2952–2954. [Google Scholar] [CrossRef]
  39. Guilin, H. Missing data filling method based on linear interpolation and lightGBM. In Proceedings of the 2020 3rd International Symposium on Power Electronics and Control Engineering (ISPECE 2020), Chongqing, China, 27–29 November 2021; pp. 1–6. [Google Scholar] [CrossRef]
  40. Fan, Y.; Li, J.; Guo, Y.; Xie, L.; Zhang, G. Digital image colorimetry on smartphone for chemical analysis: A review. Measurement 2021, 171, 108829. [Google Scholar] [CrossRef]
Figure 1. Urine dipstick color comparison test table.
Figure 1. Urine dipstick color comparison test table.
Sensors 22 05445 g001
Figure 2. RGB extraction process for the urine dipstick. (a) The step where a dipstick was dipped into an artificial urine sample containing analytes. (b) The step where a dipstick was taken with the smartphone. (c) The step of extracting RGB values from the color pad of the dipstick.
Figure 2. RGB extraction process for the urine dipstick. (a) The step where a dipstick was dipped into an artificial urine sample containing analytes. (b) The step where a dipstick was taken with the smartphone. (c) The step of extracting RGB values from the color pad of the dipstick.
Sensors 22 05445 g002
Figure 3. RGB change values for concentrations in the urine dipstick.
Figure 3. RGB change values for concentrations in the urine dipstick.
Sensors 22 05445 g003
Figure 4. Comparison of RGB and HSV values for Bilirubin, Hb, and pH. (The values were extracted and compared using GraphPad software; an iPhone 11 pro was used as the smartphone.)
Figure 4. Comparison of RGB and HSV values for Bilirubin, Hb, and pH. (The values were extracted and compared using GraphPad software; an iPhone 11 pro was used as the smartphone.)
Sensors 22 05445 g004
Figure 5. Urine dipstick test application. 1. Region of interest 2. Button for backward movement. 3. Button for taking a picture.
Figure 5. Urine dipstick test application. 1. Region of interest 2. Button for backward movement. 3. Button for taking a picture.
Sensors 22 05445 g005
Figure 6. Comparison for the analysis of urine dipstick test result agreement.
Figure 6. Comparison for the analysis of urine dipstick test result agreement.
Sensors 22 05445 g006
Table 1. RGB characteristic values of analysis factors by urine dipstick concentration.
Table 1. RGB characteristic values of analysis factors by urine dipstick concentration.
No.Urine AnalytesR/G/B
(Optimized)
FormulaSlopeR-SquaredLinearityReference
Range
1pHRY = −40.9 × X + 432.7−40.90.9442pH 5–94.8–7.4
2GlucoseBY = −0.3983 × X + 122.8−0.39830.910450–300 mg/dL<20 mg/dL
3KetonesGY = −69.92 × log X + 189.1−69.920.98725–100 mg/dL(log)<5 mg/dL
4HemoglobinRY = −141.1 × X + 217−141.10.94610.25–1.0 ug/mL-
5BilirubinGY = −22.36 × X + 195.2−22.360.90250.5–3.0 mg/dL<0.2 mg/dL
6Protein
(albumin)
RY = −48.88 × log X + 208.3−48.880.968210–1000 mg/dL(log)<2 mg/dL
7NitritesGY = −53 × log X + 131−530.9631–100 mg/dL(log)-
Table 2. Results of application of the urine dipstick confusion matrix model.
Table 2. Results of application of the urine dipstick confusion matrix model.
NewURiscan ProSmartphoneAccuracy
New 1New 2New 3New 4Test 1Test 2Test 3Test 4Train 1Train 2Train 3Train 498.56%
New 1New 2New 3New 4Test 1Test 2Test 3Test 4Train 1Train 2Train 3Train 497.67%
New 1New 2New 3New 4Test 1Test 2Test 3Test 4Train 1Train 2Train 3Train 499.85%
New 1New 2New 3New 4Test 1Test 2Test 3Test 4Train 1Train 2Train 3Train 498.88%
Average98.74%
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Kim, S.-C.; Cho, Y.-S. Predictive System Implementation to Improve the Accuracy of Urine Self-Diagnosis with Smartphones: Application of a Confusion Matrix-Based Learning Model through RGB Semiquantitative Analysis. Sensors 2022, 22, 5445. https://0-doi-org.brum.beds.ac.uk/10.3390/s22145445

AMA Style

Kim S-C, Cho Y-S. Predictive System Implementation to Improve the Accuracy of Urine Self-Diagnosis with Smartphones: Application of a Confusion Matrix-Based Learning Model through RGB Semiquantitative Analysis. Sensors. 2022; 22(14):5445. https://0-doi-org.brum.beds.ac.uk/10.3390/s22145445

Chicago/Turabian Style

Kim, Seon-Chil, and Young-Sik Cho. 2022. "Predictive System Implementation to Improve the Accuracy of Urine Self-Diagnosis with Smartphones: Application of a Confusion Matrix-Based Learning Model through RGB Semiquantitative Analysis" Sensors 22, no. 14: 5445. https://0-doi-org.brum.beds.ac.uk/10.3390/s22145445

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop