Detection of Skin Cancer Using Random Forest Algorithm in Python

Melanoma is a severe and aggressive form of skin cancer that develops in the melanocytes, the pigment-producing cells of the skin. The total percentage of skin cancer cases in the dataset is 58.60%. Random Forest effectively classifies skin cancer by building multiple decision trees. This algorithm analyzes various features from dermoscopic images, such as colour, texture, and asymmetry, to accurately distinguish between benign and malignant lesions. Its robust nature helps improve diagnostic precision in dermatology. The dataset consisted of 3,297 images, with 1,800 benign and 1,497 malignant lesions. To facilitate classification, a watershed segmentation technique was applied to isolate lesion regions, from which significant features were extracted. These features included ABCD rule descriptors (Asymmetry, Border, Colour, Diameter), Grey Level Co-occurrence Matrix (GLCM) for texture, and various shape descriptors. Approximately 80% of the dataset was used for training the Random Forest model, while the remaining 20% was allocated for testing. The testing involved 10-fold cross-validation on 1,000 ISIC images. While SVM showed superior performance in some comparisons, the Random Forest classifier achieved a notable accuracy of 76.87%, sensitivity of 78.43%, and specificity of 75.31% when using ABCD features . Furthermore, Random Forest achieved the highest accuracy (87.7%) and F-score (0.739) among several other classifiers for skin detection using raw colour features, confirming its robustness and effectiveness. The evaluated model, trained on high-quality annotated datasets, achieved an overall accuracy of 0.98, demonstrating the algorithm's robustness and reliability. Keywords: Melanoma, Skin cancer, Random Forest , Dermoscopic image, Benign lesions, Malignant lesions , accuracy.

Authors

Publication Details

Journal
International Scientific Journal of Engineering and Management
Published
2025-07-21
DOI
https://doi.org/10.55041/isjem04831
Primary Topic
Smart Systems and Machine Learning
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Detection of Skin Cancer Using Random Forest Algorithm in Python

S. Vasuki, R. Subashini, S Sowndharya, S Vaishnavi
International Scientific Journal of Engineering and Management
Smart Systems and Machine Learning
article

Detection of Skin Cancer Using Random Forest Algorithm in Python

S. Vasuki, R. Subashini, S Sowndharya, S Vaishnavi
article en

Abstract

Melanoma is a severe and aggressive form of skin cancer that develops in the melanocytes, the pigment-producing cells of the skin. The total percentage of skin cancer cases in the dataset is 58.60%. Random Forest effectively classifies skin cancer by building multiple decision trees. This algorithm analyzes various features from dermoscopic images, such as colour, texture, and asymmetry, to accurately distinguish between benign and malignant lesions. Its robust nature helps improve diagnostic precision in dermatology. The dataset consisted of 3,297 images, with 1,800 benign and 1,497 malignant lesions. To facilitate classification, a watershed segmentation technique was applied to isolate lesion regions, from which significant features were extracted. These features included ABCD rule descriptors (Asymmetry, Border, Colour, Diameter), Grey Level Co-occurrence Matrix (GLCM) for texture, and various shape descriptors. Approximately 80% of the dataset was used for training the Random Forest model, while the remaining 20% was allocated for testing. The testing involved 10-fold cross-validation on 1,000 ISIC images. While SVM showed superior performance in some comparisons, the Random Forest classifier achieved a notable accuracy of 76.87%, sensitivity of 78.43%, and specificity of 75.31% when using ABCD features . Furthermore, Random Forest achieved the highest accuracy (87.7%) and F-score (0.739) among several other classifiers for skin detection using raw colour features, confirming its robustness and effectiveness. The evaluated model, trained on high-quality annotated datasets, achieved an overall accuracy of 0.98, demonstrating the algorithm's robustness and reliability. Keywords: Melanoma, Skin cancer, Random Forest , Dermoscopic image, Benign lesions, Malignant lesions , accuracy.

International Scientific Journal of Engineering and ManagementVol. 04(07)
Openalex Percentile: Top 81%
Smart Systems and Machine Learning
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.