Objective: Early and accurate identification of skin lesions—ranging from benign irregularities to life-threatening cancers—is crucial for improving clinical outcomes. However, existing skin lesion datasets suffer from severe class imbalance, and there is limited consensus on effective augmentation strategies. This study aims to develop a robust framework that mitigates these limitations while enhancing diagnostic accuracy and interpretability. Methods: We introduce a novel transfer learning-based framework termed
hierarchical attention stacked ensemble
(
HASE
) , which integrates multiple EfficientNetV1 backbones through three distinct stacking schemes: HASE: independent TA, HASE: serial stacked TA, and HASE: parallel stacked TA. Here, TA denotes the triplet-attention module encompassing soft attention, channel attention, and squeeze-excitation mechanisms. To address prediction fusion, we propose an advanced ensemble aggregation method—
Matthews-correlation-coefficient weighted averaging
(
MWA
) —further extended into a
multi-level MWA
(
ML-MWA
) formulation. Additionally, four augmentation strategies were systematically evaluated to identify the most effective ensemble configuration. Results: Experimental evaluations on the HAM10000 dataset demonstrated that the proposed framework achieved an outstanding accuracy of 93.96%, surpassing several state-of-the-art approaches. The use of Grad-CAM visualizations further enhanced model interpretability by effectively localizing lesion-relevant regions. Conclusion: The proposed HASE framework not only delivers superior diagnostic accuracy but also alleviates challenges associated with class imbalance, limited dataset diversity, and high computational cost. By combining hierarchical attention and multi-level ensemble weighting, it establishes a reliable and interpretable solution for early and precise skin lesion classification, offering significant potential for real-world dermatological applications and improved patient care.
Objective: Early recognition of skin lesions, including diverse abnormalities and life-threatening skin cancers, is critical for effective treatment and improved clinical outcomes. However, existing skin lesion datasets exhibit significant class imbalance, and there is no standardized guideline for optimal data augmentation strategies. This study aims to establish a robust and interpretable framework that addresses these limitations while enhancing diagnostic performance. Methods: We propose a novel transfer learning-based framework termed Tri-Path Attention Stacked Ensemble (TASE) , which integrates multiple EfficientNetV2 backbones through three distinct stacking strategies: TASE: Independent TA, TASE: Serial Stacked TA, and TASE: Parallel Stacked TA. Here, TA refers to the Triple-Attention mechanism, comprising soft attention integration, channel attention integration, and squeeze-excitation attention integration. To optimize ensemble prediction fusion, we introduce an advanced aggregation method— Cohen’s Kappa Proportioned Averaging (CKPA) —which is further extended into a Multi-Layer CKPA (ML-CKPA) framework to enhance weight distribution across hierarchical model outputs. Additionally, four augmentation strategies were systematically evaluated to determine the most effective ensemble configuration. Results: Experimental validation on the HAM10000 dataset demonstrated that the proposed framework achieved a superior accuracy of 94.44%, outperforming several state-of-the-art methods. Grad-CAM visualizations were employed to enhance interpretability by highlighting lesion-relevant regions, thereby improving model transparency and reliability. Conclusion: The proposed TASE framework delivers enhanced diagnostic accuracy while effectively mitigating challenges related to class imbalance, dataset variability, and computational efficiency. By combining hierarchical triple-attention mechanisms with multi-layer ensemble weighting, it offers a reliable and interpretable solution for early and precise skin lesion classification, supporting real-world dermatological applications and improved patient care.