Automated acne image classification using Convolutional Neural Networks (CNN) holds significant potential in dermatological diagnosis but faces a fundamental challenge of class imbalance. This phenomenon causes standard models to be biased towards majority classes and fail to recognize clinically important minority classes. This study aims to address this bias by applying a Weighted Loss Function to the EfficientNetB1 architecture. The research method employs a comparative experimental approach between two scenarios: the Baseline model (Standard Cross-Entropy) and the Proposed model (Weighted Cross-Entropy). The dataset consists of 5 acne classes with an imbalanced distribution. The results show that the Weighted Loss model significantly outperforms the Baseline model. Overall accuracy increased from 80% to 86%. The most significant improvement occurred in the minority class 'Papules', where the F1-Score surged by 0.10 points (from 0.71 to 0.81). It is concluded that the application of Weighted Loss Function effectively overcomes bias due to imbalanced data without the need for synthetic data augmentation, resulting in a fairer and more reliable model for clinical implementation.
Copyrights © 2026