Accurate segmentation of fingernail images is essential for biomedical applications like dermatological diagnostics and nail disease assessments. This study compares traditional methods (Sobel and Canny edge detectors) with an improved method using adaptive thresholding and morphological closing for fingernail image segmentation. The methodology includes data collection, preprocessing, edge detection, segmentation, and evaluation. A dataset of 500 fingernail images (free of nail polish) was captured using a digital camera. Preprocessing involves grayscale conversion to simplify analysis and Gaussian smoothing to reduce noise while preserving key features. For segmentation, thresholding and K-means clustering isolate the fingernail from the background. Evaluation combines qualitative and quantitative analyses. Qualitative results demonstrate that the improved method consistently outperforms traditional techniques under diverse conditions. Quantitative evaluation, based on accuracy, recall, F1 score, and Intersection over Union (IoU), further supports these findings. The Sobel method achieves 0.80 accuracy, 0.77 recall, 0.87 F1 score, and 0.77 IoU. The Canny method achieves 0.82 accuracy, 0.78 recall, 0.88 F1 score, and 0.78 IoU. In contrast, the improved method achieves 0.97 accuracy, 0.98 recall, 0.99 F1 score, and 0.98 IoU. The results clearly show that the improved method, using adaptive thresholding and morphological closing, provides superior segmentation performance. Additionally, the approach remains computationally efficient, making it suitable for real-time applications in medical diagnostics.
Read full abstract