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

Institutions

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
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

ConMatFormer: A multi-attention and transformer integrated ConvNext based deep learning model for enhanced diabetic foot ulcer classification

Md. Kaviul Hossain, Md Humaion Kabir Mehedi, Md. Jakir Hossen, M. F. Mridha et al.
Results in Engineering
Diabetic Foot Ulcer Assessment and Management
article

ConMatFormer: A multi-attention and transformer integrated ConvNext based deep learning model for enhanced diabetic foot ulcer classification

Md. Kaviul Hossain, Md Humaion Kabir Mehedi, Md. Jakir Hossen, M. F. Mridha, Fuyad Hasan Bhoyan, Raihan Ahamed Rifat
article en

Abstract

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.

Results in EngineeringVol. 28
American International University-Bangladesh (BD), Multimedia University (MY), Charles Darwin University (AU), University of Liberal Arts Bangladesh (BD), BRAC University (BD)
Openalex Percentile: Top 53%
Diabetic Foot Ulcer Assessment and Management
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.