ConMatFormer: A multi-attention and transformer integrated ConvNext based deep learning model for enhanced diabetic foot ulcer classification
Diabetic foot ulcer (DFU) detection is a clinically significant yet challenging task due to the scarcity and variability of publicly available datasets. Limited annotated samples restrict the ability of conventional deep learning models to achieve robust generalization in real-world clinical scenarios. To solve these problems, we propose ConMatFormer, a new hybrid deep learning architecture that combines ConvNeXt blocks, multiple attention mechanisms convolutional block attention module (CBAM) and dual attention network (DANet), and transformer modules in a way that works together. This design facilitates the extraction of better local features and understanding of the global context, which allows us to model small skin patterns across different types of DFU very accurately. To address the class imbalance, we used data augmentation methods. A ConvNeXt block was used to obtain detailed local features in the initial stages. Subsequently, we compiled the model by adding a transformer module to enhance long-range dependency. This enabled us to pinpoint the DFU classes that were underrepresented or constituted minorities. Tests on the DS1 (DFUC2021) and DS2 (diabetic foot ulcer (DFU)) datasets showed that ConMatFormer outperformed state-of-the-art (SOTA) convolutional neural network (CNN) and Vision Transformer (ViT) models in terms of accuracy, reliability, and flexibility. The proposed method achieved an accuracy of 0.8961 and a precision of 0.9160 in a single experiment, which is a significant improvement over the current standards for classifying DFUs. In addition, by 4-fold cross-validation, the proposed model achieved an accuracy of 0.9755 with a standard deviation of only 0.0031. We further applied explainable artificial intelligence (XAI) methods, such as Grad-CAM, Grad-CAM++, and LIME, to consistently monitor the transparency and trustworthiness of the decision-making process. These human-readable tools enhance the comprehension of the explanations and can substantially increase the practical use of our methodology. Our findings set a new benchmark for DFU classification and provide a hybrid attention transformer framework for medical image analysis. • ConMatFormer integrates ConvNeXt, CBAM, DANet, and transformers for rich local and global features. • Balanced DFU class detection via augmentation, ConvNeXt blocks, and long-range transformers. • Outperforms SOTA models on DFU datasets, proving robustness, accuracy, and classification gains. • GradCAM, GradCAM++, and LIME bring explainability to ConMatFormer for clearer trust insights.
Authors
- Md. Kaviul Hossain (ORCID: https://orcid.org/0009-0004-8600-0710)
- Md Humaion Kabir Mehedi (ORCID: https://orcid.org/0000-0002-5759-022X)
- Md. Jakir Hossen (ORCID: https://orcid.org/0000-0002-9978-7987)
- M. F. Mridha (ORCID: https://orcid.org/0000-0001-5738-1631)
- Fuyad Hasan Bhoyan (ORCID: https://orcid.org/0009-0009-0629-4234)
- Raihan Ahamed Rifat
Institutions
- American International University-Bangladesh (BD)
- Multimedia University (MY)
- Charles Darwin University (AU)
- University of Liberal Arts Bangladesh (BD)
- BRAC University (BD)
Publication Details
- Journal
- Results in Engineering
- Published
- 2025-11-20
- DOI
- https://doi.org/10.1016/j.rineng.2025.108248
- Primary Topic
- Diabetic Foot Ulcer Assessment and Management
- Type
- article
- Field-Weighted Citation Impact
- 0.00