Submitted:
28 October 2024
Posted:
30 October 2024
You are already at the latest version
Abstract
Keywords:
1. Introduction
2. Previous Work
3. NAILS Algorithm

- Search for, and processes, reference Black and White regions in order to normalize the image pixels () and therefore the color values of the nails. The algorithm then normalizes the R(ed), G(reen) and B(lue) values at pixel x according to the equation:where x can be R, G or B region displayed on the left video.
- The referential Black value is evaluated taking into account the minimum value inside the small squared regions located at the four corners of the input video. The referential White value is evaluated taking into account the maximum value inside the small squared regions located at the three central areas of the input video.
- Then the CNN is fed by the acquired image in order to get the nails regions. CNN use the convolution layers (or layers that use specialized linear operations instead of the matrix multiplications) to extract features from the target objects. In our case the CNN from [5] has been adapted to run under Ubuntu O.S. This network performs better than alternative solutions because it is based on the segmentation concept. The segmentation is the process of dividing a digital image into different parts, in which each part consisting of homogeneous pixels, distinguishes the object or other information contained in the image. The network has been trained over the default data set and the trained weights are applied to real images with reasonable good results.
- The mask evaluated by the CNN network provides regions where nails are present.
- The mask is post-processed by thresholding and morphological filters to improve the previous detection to get sharp contours around the nails.
- Finally the system gets the RGB values from the nails regions (based on pixels values inside contours), normalizes the RGB values and stores the RGB normalized values.
- As illustrated in Figure 1, the RGB normalized values of the respective R,G,B curves for each fingernail identified by the algorithm are plotted in the bottom region of the GUI, where the RGB history is displayed.
4. Fingernails Color Detection via NAILS
5. Discussion
6. Conclusion
7. NAILS Binaries
Conflicts of Interest
References
- Folle U.; Fenzl P.; Fagni F. DeepNAPSI multi-reader nail psoriasis prediction using deep learning Scientific Reports 2023, 13, 5329. doi: 10.1038/s41598-023-32440-8.
- Sharma V.; Ramaiya M. Nail Color and Texture Analysis for Disease Detection. Int. J. Bio-Sci. and Bio-Tech. 2015, 7, 351–358. doi: 10.14257/ijbsbt.2015.7.5.34.
- Abdulhadi J.; Al-Dujaili A.; Humaidi A.J.; Fadhel M.A-R. Human Nail Diseases Classification Based on Transfer Learning. ICIC Express Letters 2021, 15, 1271–1282. doi: 0.24507/icicel.15.12.1271.
- Kumar D.S.; Sherly, J.D.; Priyadharshini, S.I. Disease Detection Based on Nail Color Analysis Using Image Processing. 1st Inter. Conf. Comp. Sci. and Tech. (ICCST), Chennai, India, 2022, 1–5. doi: 10.1109/ICCST55948.2022.10040425.
- nails_segmentation: Nails segmentation using deep learning models. Sources available online: https://github.com/ademakdogan/nails_segmentation (accessed on 20 Oct 2024).
- nailtracking: Real-time Nail-Detection using Neural Networks (SSD) on Tensorflow. Sources available online: https://github.com/toddwyl/nailtracking (accessed on 20 Oct 2024).
- Kaggle dataset for nails segmentation. Sources available online: https://www.kaggle.com/datasets/vpapenko/nails-segmentation (accessed on 20 Oct 2024).
- Small dataset for nails segmentation. Sources available online: https://github.com/vpapenko/nails-segmentation-dataset (accessed on 20 Oct 2024).
- Chen LC.; Zhu Y.; Papandreou G. et al. Encoder-Decoder with Atrous Separable Convolution for Semantic Image Segmentation. Lecture Notes in Comp. Sci. 2018 11211. Springer, Cham. Available online: https://doi.org/10.1007/978-3-030-01234-2_49 (accessed on 20 Oct 2024).
- Rasminsky A. What These 8 Fingernail Signs Say About Your Health. Healthline Newsletter July 31, 2024. https://www.healthline.com/health/beauty-skin-care/healthy-nails (accessed on 20 Oct 2024).
- Klonoff D.C. What Do Your Fingernails Say About You? Can They Indicate That You Have Diabetes? J. Diabetes Sci. and Tech. 2015, 9, 1167 –1169. doi: 10.1177/1932296815608980.
- Alghamdi M.; Angelov P.; Lopez Pellicer A. Person identification from fingernails and knuckles images using deep learning features and the Bray-Curtis similarity measure. Neurocomputing 2022, 513, 83–93. doi: 10.1016/j.neucom.2022.09.123.
- Nugroho B.; Mumpuni R.; Munir M.S. Performance of the CNN Method for Identifying Health Conditions Based on Nail Images. Nusantara Sci. and Tech. Proceed. 2023, 23, 658–664. doi: 10.11594/nstp.2023.33106.







| Nail color | (RGB) | Examples of possible diseases |
|---|---|---|
| Yellow | (255,255,0) | diabetes or psoriasis, lung disease |
| Green | (0,255,0) | Allergies to cleaning agents, localized fungal infection |
| Brown | (165,42,42) | Arsenic or copper poisoning, nicotine |
| Red | (255,0,0) | Injury, splinter hemorrhage, high blood pressure |
| White | (255,255,255) | protein deficiency, anemia |
| Purple | (128,0,128) | Oxygen deprivation, circulatory problems |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2024 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).