Literature DB >> 35270938

Thermal Change Index-Based Diabetic Foot Thermogram Image Classification Using Machine Learning Techniques.

Amith Khandakar1,2, Muhammad E H Chowdhury1, Mamun Bin Ibne Reaz2, Sawal Hamid Md Ali2, Tariq O Abbas3, Tanvir Alam4, Mohamed Arselene Ayari5, Zaid B Mahbub6, Rumana Habib7, Tawsifur Rahman1, Anas M Tahir1, Ahmad Ashrif A Bakar2, Rayaz A Malik8.   

Abstract

Diabetes mellitus (DM) can lead to plantar ulcers, amputation and death. Plantar foot thermogram images acquired using an infrared camera have been shown to detect changes in temperature distribution associated with a higher risk of foot ulceration. Machine learning approaches applied to such infrared images may have utility in the early diagnosis of diabetic foot complications. In this work, a publicly available dataset was categorized into different classes, which were corroborated by domain experts, based on a temperature distribution parameter-the thermal change index (TCI). We then explored different machine-learning approaches for classifying thermograms of the TCI-labeled dataset. Classical machine learning algorithms with feature engineering and the convolutional neural network (CNN) with image enhancement techniques were extensively investigated to identify the best performing network for classifying thermograms. The multilayer perceptron (MLP) classifier along with the features extracted from thermogram images showed an accuracy of 90.1% in multi-class classification, which outperformed the literature-reported performance metrics on this dataset.

Entities:  

Keywords:  deep learning; diabetic foot; machine learning; thermal change index; thermogram

Mesh:

Year:  2022        PMID: 35270938      PMCID: PMC8915003          DOI: 10.3390/s22051793

Source DB:  PubMed          Journal:  Sensors (Basel)        ISSN: 1424-8220            Impact factor:   3.576


1. Introduction

Diabetes mellitus (DM) is characterized by hyperglycemia which can lead to pathology in the brain, heart, eyes, kidney’s and lower limbs [1]. DM leads to diabetic foot ulceration (DFU), which may not heal adequately due to poor microvascular and macrovascular tissue perfusion and infection and may eventually lead to lower limb amputation [2,3]. Early detection and better classification of foot complications may enable timely intervention and effective treatment to either heal foot ulcers or prevent progression to amputation. Early monitoring by self-diagnosis at home could be useful in preventing the development and progression of DFU. However, the easiest monitoring technique, visual inspection, has its limitations, for example, people with obesity or visual impairment cannot adequately detect early changes. According to recent studies, a home temperature monitoring system could detect 97% of diabetic foot ulcers (DFUs) well in advance [4,5,6,7]. Patients undergoing continuous temperature monitoring of their feet have a lower risk of foot complications [8]. Non-invasive thermographic imaging using an infrared (IR) camera are popular techniques to examine for thermal changes in images [9] and have been used to detect thermal changes in the diabetic foot [10]. The analysis is based on the intensity of the infrared light emitted or reflected by the tissue based on the controllable excitation used during the imaging of infrared rays. Thermal infrared imaging-based machine vision (IRMV) can be categorized into passive thermography and active thermography [9]. Passive thermography is used for the human body, which is self-heating unlike active thermography, which is used in non-self-heating objects. Several studies have proposed thermogram-based techniques for the study of the diabetic foot, where they reported that the control group showed a specific butterfly pattern, while the DM group showed a large variety of spatial patterns [11]. One can calculate and estimate thermal changes comparing the contralateral foot as a reference comparison for temperature [12,13,14,15]. However, if both feet have temperature changes, but none have the butterfly pattern, one foot cannot act as a reference [16,17,18]. Thus, self-diagnosis at home will require a medical experts’ opinion. Machine learning (ML) techniques are gaining popularity in biomedical applications to assist the medical expert in early diagnosis [19,20,21]. Several studies [17,22,23,24] have attempted to extract features that can be used to identify the hot region in the plantar thermogram, which could be a sign of tissue damage or inflammation (details are provided later). We have previously trained an AdaBoost classifier, which achieved an F1-score of 97% in classifying diabetic and healthy patients using thermogram images [23]. The features used in our previous study [23] are provided in detail in a later section of this paper. Hernandez et al. [17] proposed a quantitative index called the thermal change index (TCI) for measuring the thermal change in the plantar region of diabetic patients in comparison to the reference control group and then use the TCI to automatically classify the patients. Hernandez et al. [17,22] shared a public database called the “Plantar Thermogram Database” of foot thermogram images from control and diabetic patients and used the TCI to classify the subjects into five classes (Class 1 to Class 5) depending on the spatial temperature distribution and the range of temperatures. Cruz-Vega et al. [24] proposed a deep learning technique to classify the images of that database in a non-conventional classification scheme, where the results were shown by taking two classes at a time and then averaging the results after ten-fold cross-validation of a different combination of 2 set classes. A new diabetic foot thermogram network (DFTNet) was proposed for the classification of Class 3 and Class 4 with a sensitivity and accuracy of 0.9167 and 0.853, respectively [24]. Despite this earlier work, there is still a need to improve the level of machine learning performance for the early detection of diabetic foot ulceration. This has motivated this detailed investigation. The manuscript is organized into five sections: Section 1 is the introduction and related works; Section 2 discusses the research significance and highlights the key contributions; Section 3 discusses the detailed methodology, and Section 4 and Section 5 present the results and discussion. Finally, Section 6 presents the conclusions.

2. Research Significance

The importance of the early detection of diabetic foot problems and the gaps in terms of machine learning performance accuracy were the major research questions of this paper. The non-conventional classification scheme used in recent work [23] and the moderate performance of existing machine-learning models [24] motivated us to investigate and propose a generic framework for the multi-class (n = 5) classification of thermogram images while enhancing the classification performance further. We investigated classical ML techniques with feature engineering and convolutional neural network (CNN)-based models with image enhancement techniques to identify the best performing classification model. To the best of our knowledge, this is the best reported performance for the classification of foot thermograms into different classes (based on TCI). The major contributions of this paper are highlighted below: Extraction and ranking of the relevant features from the temperature pixels for classifying the thermogram images into TCI-based classes. Explores the effect of various image enhancement techniques on thermogram images in improving the performance of 2D CNN models in TCI-based classes. Investigation of different ML classifiers with feature engineering for enhanced classification performance. Proposes a machine-learning framework that outperforms the DFTNet by a significant margin in classifying thermograms into TCI-based classes.

3. Methodology

Figure 1 summarizes the overall methodology adopted for this study, where the thermogram is applied as input to the different 2D CNN models using different image enhancement techniques [25] and classical ML algorithms on the extracted features from the thermograms [23]. The section below discusses in detail the dataset used for the study and the details of the investigation done using (i) thermogram images by the 2D CNN models along with different image enhancement techniques and (ii) classical ML algorithms with feature engineering (feature extraction, and feature reduction). This section also provides details of the performance metrics used for identifying the best-performing machine-learning algorithm.
Figure 1

Illustration of the computational workflow for this study.

3.1. Dataset Description

In this study, 122 foot-pair thermograms of DM patients obtained from a public thermogram database [22] were used. The dataset contained demographic information such as age, gender, height, and weight of the patients/participants. The dataset was grouped into five different classes (Class 1, Class 2, Class 3, Class 4, and Class 5) based on the thermal change index (TCI) which is defined as where CG and DM are the temperature values of the angiosome for the control and subjects with diabetes, respectively. The TCI values for different classes can be seen in Table 1. Examples of thermogram images classified into five classes are shown in Figure 2a.
Table 1

Details of the dataset used for training (with and without augmentation), validation, and testing.

DatasetCount of Diabetic Thermograms/Cluster Identified in the PaperTraining Dataset Details
Training (60% of the Data) Thermogram/FoldAugmented Train Thermogram/FoldValidation (20% of the Data) Thermogram/FoldTest (20% of the Data) Image/Fold
Contreras et al. [22]Class 1 (TCI < 2)3410201111
Class 2 (2 < TCI < 3)2211000707
Class 3 (3 < TCI < 4)1710200506
Class 4 (4 < TCI < 5)2211000708
Class 5 (5 < TCI)5210441718
Figure 2

(a) Sample of thermograms from different classes [22] and (b) sample of MPA, LPA, MCA, and LCA angiosomes of the foot for the control and diabetic Group [23].

The dataset also provided the segmented thermograms of four angiosomes: the medial plantar artery (MPA), lateral plantar artery (LPA), medial calcaneal artery (MCA), and lateral calcaneal artery (LCA) (Figure 2b). The concept of four angiosomes was proposed by Taylor and Palmer [26] and they provide valuable information related to the damage generated by DM in arteries as well as the associated ulceration risk since it is used to compute the local temperature distribution. The dataset provided the pixelated temperature readings for the full foot and the four angiosomes for both feet. The emissivity settings in the acquiring camera were set to 0.98, which is the emissivity of human skin [27]; objects with emissivities higher than 0.5 do not usually suffer from inaccurate temperature measurements when using an IR camera [28].

3.2. Image Pre-Processing

Image enhancement techniques such as adaptive histogram equalization (AHE) [29] and Gamma correction [25] may help improve the classification of thermograms [23]. Thus, for the original images, we also generated AHE and Gamma-enhanced thermogram images. Some examples of the image enhancement on the thermograms can be seen in Figure 3.
Figure 3

Original thermogram versus enhanced thermogram using AHE and Gamma correction for diabetic patient’s thermogram [23].

D CNN-Based Classification

The application of 2D CNN in biomedical image-domain applications is very popular for automatic and early detection of abnormalities such as COVID-19 pneumonia [25,30,31], tuberculosis [32], community-acquired pneumonia [33], and many others [34]. A labeled dataset can be divided into training and testing datasets, where the training dataset is used to train the network and its performance is verified by the unseen test set. A part of the training dataset is used for validation during the training process, which is used to avoid overfitting [25,30,31,32,33]. In this study, five-fold cross-validation was used, i.e., the dataset was divided into five-folds, and the confusion matrices for the test set of each fold were combined to calculate the performance metrics of the entire dataset. The overall accuracy and weighted metrics such as the precision, recall, specificity, and F1-score were calculated. As a large dataset is required to train a deep learning model to avoid a model over-fitting problem, popular augmentation techniques (i.e., rotation and translation) were used to increase the training data size [25,30,31,32,33]. The details of the training, validation, and testing sets for the 5-class image dataset labeled using TCI [22], are shown in Table 1. As we had a limited number of images in the dataset (Table 1), we used pre-trained models that were already pre-trained on a large ImageNet database [35]. These pre-trained networks have a good performance on the ImageNet database and can be further trained for our problem by fine-tuning the deep learning models using our dataset. Based on an extensive literature review and previous performances [25,30,31,32,33], in this study, six well-known pre-trained deep CNN models were used for the thermograms’ classification: ResNet18, ResNet50 [36], DenseNet201 [36], InceptionV3 [37], VGG19 [38] and MobileNetV2 [39]. All the above-mentioned six CNN-based models were trained, validated, and tested on the original, AHE, and Gamma-enhanced thermogram images and performance metrics were calculated after five-fold cross-validation to identify the best network and image enhancement technique combination.

3.3. Classical Machine Learning Approach

This section discusses the features extracted from the thermograms, feature reduction techniques, feature ranking techniques, classical ML models, and details of our extensive investigations.

3.3.1. Feature Extraction and Reduction:

We carefully reviewed the literature to summarize the features that have been used in clinical practice and ML approaches to analyze foot thermograms for the diagnosis of the diabetic foot. The details of the final list of features identified can be found in our previous work [23] and are discussed briefly below: The term C and a denote the classmark temperature and the corresponding percentage of pixels in that region, respectively. The values a and a are the percentage of pixels in the neighboring classmark temperatures, C and C, respectively. To equate the parameters in Equations (2)–(4), a histogram was generated for the percentage of pixels in the thermogram (either full foot or angiosomes) for the different classmark temperatures (C0 = 26.5 °C, C1 = 28.5 °C, C2 = 29.5 °C, C3 = 30.5 °C, C4 = 31 °C, C5 = 32.5 °C, C6 = 33.5 °C, C7 = 34.5 °C). Statistical parameters such as the mean, standard deviation, and median are very important features in various ML approaches for biomedical applications [40,41,42,43]; these were calculated as well. In addition to these parameters, we formulated several parameters that are visually very important to distinguish the variation in the plantar temperature distribution, such as the normalized range temperature for class j (NRTclass j), which were also reported in our previous work [23]. The variable NRTclass j is the number of pixels in class j temperature range over the total number of non-zero pixels, where class j can be class 1 to 5. For the temperature ranges in the class, we have used the same temperature range as reported in [22]. Finally, we summarized a total of 39 features that can be used for the early detection of the diabetic foot, which are Age, Gender, TCI, Highest Temperature value, NRT (Class 1–5), HSE, ET, ETD, Mean, Median, SD of temperature for the different angiosomes LPA, LCA, MPA, MCA and for Full Foot. We have previously reported the statistics for the data along with the source code [22] in our previous work [23]. The final list of features was optimized by removing redundant features based on the correlation between different features. Features with more than a 95% correlation were removed, which improves the overall performance by reducing the number of redundant features by avoiding overfitting [41,42,43,44].

3.3.2. Feature Ranking

Providing the ML classifier with a large number of features could lead to overfitting and lower performance as the excess information might provide contradictory details and confuse the classifier [23,45,46,47,48]. With the help of feature ranking techniques, the classifiers can be provided with the important features and their performance can be checked accordingly. This process can help to finalize the features to be used as input to the ML classifiers. In this paper, we used state-of-the-art and popular feature ranking techniques based on ML algorithms—XGBoost [49], Random Forest [50], and Extra Tree [51]. These feature ranking techniques have proven to be very useful for different biomedical applications [47,48,52,53].

3.3.3. Classical Machine Learning Models

After the feature extraction, feature reduction, and feature ranking, different classical ML models were investigated to compare the performances. Data in different classes were imbalanced, and therefore, to avoid imbalanced training datasets and biased results, the popular synthetic minority oversampling technique (SMOTE) [54] was used to make them balance. The ten popular ML classifiers used in the study were multilayer perceptron (MLP) [55], Support Vector Machine(SVM) [56], Random Forest [50], Extra Tree [51], GradientBoost [57], Logistic regression [58], K Nearest Neighbor (KNN) [59], XGBoost [49], AdaBoost [60], and Linear Discriminant Analysis (LDA) [61]. Amongst the state of the art and popular machine learning models, the XGBoost, Random Forest, and Extra Tree machine learning networks have been popular in recent clinical applications. Multi-Tree Extreme Gradient Boosting (XGBoost) has been frequently applied for feature selection because of its speed, efficiency, and scalability [62]. The importance of each feature in XGBoost is determined by its accumulated use in each decision step in trees. This computes a metric that characterizes the relative importance of each feature, which is particularly valuable to estimate features that are the most discriminative of model outcomes, especially when they are related to meaningful clinical parameters. Random Forests are often used for feature selection in machine learning because the tree-based strategies used by random forests naturally rank by how well they improve the purity of the node. Nodes with the greatest decrease in impurity happen at the start of the trees, while nodes with the least decrease in impurity occur at the end of trees. Thus, by pruning trees below a particular node, we can create a subset of the most important features [50]. Moreover, Extra Tree is a model-based approach for selecting the features using the tree-based supervised models to make decisions on the importance of the features. The Extra Tree classifier or the Extremely Random Tree Classifier is an ensemble algorithm that seeds multiple tree models constructed randomly from the training dataset and sorts out the features that have been most voted for. It fits each decision tree on the whole dataset rather than a bootstrap replica and picks out a split point at random to split the nodes. The splitting of nodes that occurs at every level of the constituent decision trees is based on the measure of randomness or entropy in the sub-nodes. The nodes are split on all variables available in the dataset, and the split that results in the most homogenous sub-child is selected in the constituent tree models. This lowers the variance and makes the model less prone to overfitting [51].

3.4. Performance Evaluation

In all of our experiments, we reported the sensitivity, specificity, precision, accuracy, F1-score, and area under the curve (AUC) for five-folds as our evaluation metrics. It is well known that in multi-class classification applications, sensitivity and specificity are relevant metrics to evaluate a classifier’s performance [63]: where . Here, TP, FP, TN, and FN are true positive, false positive, true negative, and false negative, respectively. Here, TP is the number of correctly identified thermograms in a particular classi, TN is the number of correctly identified thermograms of the other classes, FP is the number of thermograms misclassified to classi and FN is the number of thermograms of classi incorrectly classified to other classes. The weighted performance metrics, with a 95% confidence interval, for sensitivity, specificity, precision, and F1-score, were reported and for the accuracy, the overall accuracy, with a 95% confidence interval, was reported. All the experiments were done with a computer with Intel i7–10750H @2.6 GHz CPU, NVIDIA GeForce RTX 2070 Super GPU, 32 GB RAM. Python, Matlab, and Stata/MP 13.0 software were used for the study.

4. Experimental Results

This section provides the results of the various experiments in this study.

4.1. D CNN-Based Classification

As discussed earlier, the authors investigated six pre-trained networks (ResNet18, ResNet50, VGG19, DenseNet201, InceptionV3, and MobileNetV2), along with popular image enhancement techniques. AHE did not improve the performance for different networks compared to the original whereas GAMMA correction helped in sharpening the distinguishing features. Independent foot images were used to check if the different pre-trained networks could classify them into different classes or not. Table 2 reports the five best performing combinations of network and enhancement type and it shows that the performance was not that promising after an extensive investigation using popular 2D CNN networks and popular image enhancement techniques. The results can be further analyzed using the AUCs for the original, AHE, and GAMMA correction thermogram as shown in Figure 4.
Table 2

Performance metrics and inference time for five-fold cross-validation using 2D CNNs.

EnhancementNetwork 95% Confidence Interval Results
ClassAccuracyPrecisionSensitivityF1-ScoreSpecificityInference Time
OriginalResNet50Class 192.62 ± 06.8581.67 ± 10.1387.50 ± 08.6684.48 ± 09.4894.15 ± 06.156.247
Class 288.93 ± 10.2560.98 ± 15.9369.44 ± 15.0564.40 ± 15.6492.31 ± 08.70
Class 390.98 ± 10.6166.67 ± 17.4642.86 ± 18.3352.18 ± 18.5097.22 ± 06.09
Class 486.89 ± 10.8855.56 ± 16.0167.57 ± 15.0860.98 ± 15.7290.34 ± 09.52
Class 593.85 ± 05.0595.00 ± 04.5887.36 ± 06.9891.02 ± 06.0197.45 ± 03.31
Overall91.46 ± 03.5177.69 ± 05.2276.64 ± 05.3176.66 ± 05.3194.83 ± 02.78
AHEMobileNetv2Class 194.26 ± 6.0988.89 ± 08.2385.71 ± 09.1787.27 ± 08.7396.81 ± 04.605.412
Class 291.39 ± 09.1670.27 ± 14.9372.22 ± 14.6371.23 ± 14.7994.71 ± 07.31
Class 388.11 ± 11.9947.06 ± 18.4928.57 ± 16.7335.55 ± 17.7395.83 ± 07.40
Class 484.43 ± 11.6848.94 ± 16.1162.16 ± 15.6354.76 ± 16.0488.41 ± 10.31
Class 594.26 ± 04.8991.01 ± 06.0193.10 ± 05.3392.04 ± 05.6994.90 ± 04.62
Overall91.64 ± 03.4776.04 ± 05.3676.23 ± 05.3475.74 ± 05.3894.43 ± 02.88
OriginalResNet18Class 192.21 ± 07.0283.64 ± 09.6982.14 ± 10.0382.88 ± 09.8795.21 ± 05.592.536
Class 288.11 ± 10.5758.14 ± 16.1269.44 ± 15.0563.29 ± 15.7591.35 ± 09.18
Class 390.98 ± 10.6163.64 ± 17.8250.00 ± 18.5256.00 ± 18.3996.30 ± 06.99
Class 486.89 ± 10.8856.10 ± 15.9962.16 ± 15.6358.97 ± 15.8591.30 ± 09.08
Class 592.62 ± 05.4991.57 ± 05.8487.36 ± 06.9889.42 ± 06.4695.54 ± 04.34
Overall90.80 ± 03.6376.23 ± 05.3475.41 ± 05.4075.61 ± 05.3994.29 ± 02.91
Gamma CorrectionResNet18Class 193.03 ± 06.6788.24 ± 08.4480.36 ± 10.4184.12 ± 09.5796.81 ± 04.603.347
Class 289.75 ± 09.9163.41 ± 15.7372.22 ± 14.6367.53 ± 15.3092.79 ± 08.45
Class 390.16 ± 11.0359.09 ± 18.2146.43 ± 18.4752.00 ± 18.5195.83 ± 07.40
Class 482.79 ± 12.1644.90 ± 16.0359.46 ± 15.8251.16 ± 16.1186.96 ± 10.85
Class 591.80 ± 05.7791.36 ± 05.9085.06 ± 07.4988.10 ± 06.8095.54 ± 04.34
Overall90.23 ± 03.7375.77 ± 05.3873.77 ± 05.5274.41 ± 05.4894.16 ± 02.94
Gamma CorrectionResNet50Class 192.21 ± 07.0280.33 ± 10.4187.50 ± 08.6683.76 ± 09.6693.62 ± 06.407.764
Class 288.93 ± 10.2563.64 ± 15.7158.33 ± 16.1160.87 ± 15.9494.23 ± 07.62
Class 387.30 ± 12.3344.00 ± 18.3939.29 ± 18.0941.51 ± 18.2593.52 ± 09.12
Class 487.70 ± 10.5859.46 ± 15.8259.46 ± 15.8259.46 ± 15.8292.75 ± 08.36
Class 593.03 ± 05.3589.77 ± 06.3790.80 ± 06.0790.28 ± 06.2294.27 ± 04.88
Overall90.77 ± 03.6373.90 ± 05.5174.59 ± 05.4674.17 ± 05.4993.80 ± 03.03
Figure 4

AUC for the (A) original, (B) AHE-enhanced, and (C) Gamma-enhanced thermograms in TCI-based classification.

4.2. Classical Machine Learning-Based Classification

Since the above investigation showed that the different 2D CNN models and image enhancement techniques did not adequately distinguish different image classes, particularly Classes 2–4, the authors investigated the classical ML models using feature engineering to assess their performance. Thirty-eight features were extracted as discussed earlier from the thermograms images from different classes. These 38 features were optimized to remove redundant features by finding the correlation between the different features. Features with more than 95% correlation were removed, resulting in 28 features. The heat maps of the correlation matrix with all features and after removing the highly correlated features are shown in Supplementary Materials, Figure S1. The resultant 28 features were Gender; Age; NRT (Class 1); NRT (Class 2); NRT (Class 3); NRT (Class 4); NRT (Class 5); Highest Temperature; HSE, ETD, and STD of MPA; HSE, ET, ETD, Mean, STD of LPA; HSE, ET, ETD, Mean, STD of LCA; HSE, ET, ETD, STD of MCA; HSE, ETD, STD of Full foot. In this experiment, three feature selection techniques (Extra Tree, XGBoost, and Random Forest) with 10 machine-learning models were investigated with 28 optimized features to identify the best combination using 810 different investigations. The top-ranked 10 features using the three different feature-ranking techniques can be seen in Figure 5.
Figure 5

Top ranked 10 features from the reduced 28 features using feature selection techniques (A) XGBoost, (B) Random Forest, and (C) Extra Tree.

The overall performance for the top-performing combination (feature ranking and features) using ten classical ML classifiers and the detailed class-wise summary of the top-performing combination amongst them is presented in Table 3 and Table 4, respectively. It can be seen that the MLP classifier with the XGboost feature selection technique and the top two features (mean of LPA and LCA) shows the best performance of 91.18% (weighted F1-score) in the stratification of the thermogram into different classes (1 to 5) using the TCI.
Table 3

Performance metrics for the best-performing combinations (feature selection technique and number of features) for the 10 ML Classifiers.

ClassifierFeature Selection# of Feature95% Confidence Interval ResultsInference Time (ms)
AccuracyPrecisionSensitivityF1-ScoreSpecificity
MLPXGBoost20.91 ± 01.190.91 ± 01.190.91 ± 01.190.91 ± 01.190.91 ± 01.190.592
Extra TreeRandom Forest50.88 ± 01.170.88 ± 01.170.88 ± 01.170.88 ± 01.170.88 ± 01.170.406
Random ForestXGBoost20.87 ± 01.170.87 ± 01.170.87 ± 01.170.87 ± 01.170.87 ± 01.170.412
KNNXGBoost20.87 ± 01.170.87 ± 01.170.87 ± 01.170.87 ± 01.170.87 ± 01.170.464
SVMXGBoost20.86 ± 01.160.86 ± 01.160.86 ± 01.160.86 ± 01.160.86 ± 01.160.456
Gradient BoostXGBoost20.84 ± 01.150.84 ± 01.150.84 ± 01.150.85 ± 01.150.84 ± 01.150.492
XGBoostRandom Forest50.84 ± 01.150.84 ± 01.150.84 ± 01.150.84 ± 01.150.84 ± 01.150.426
Logistic RegressionRandom Forest20.81 ± 01.130.81 ± 01.130.81 ± 01.130.81 ± 01.130.81 ± 01.130.532
LDARandom Forest90.78 ± 01.110.78 ± 01.110.78 ± 01.110.78 ± 01.110.78 ± 01.110.406
AdaBoostRandom Forest30.68 ± 01.030.68 ± 01.030.68 ± 01.030.70 ± 01.050.68 ± 01.030.492
Table 4

A detailed summary of the performance metric for the best performing combination.

Top Combination of Classifier,Feature Selection,# of Feature ClassAccuracyPrecisionSensitivityF1-ScoreSpecificityInference time (ms)
MLP ClassifierXGBoost Feature Selection TechniqueTop 2 FeaturesClass 10.91 ± 02.490.96 ± 02.560.95 ± 02.540.95 ± 02.550.90 ± 02.470.592
Class 20.91 ± 03.100.86 ± 03.020.89 ± 03.070.88 ± 03.050.91 ± 03.11
Class 30.91 ± 03.520.83 ± 03.360.86 ± 03.410.84 ± 03.380.92 ± 03.53
Class 40.91 ± 03.060.80 ± 02.870.86 ± 02.980.83 ± 02.930.92 ± 03.07
Class 50.91 ± 01.990.98 ± 02.070.93 ± 02.020.95 ± 02.040.90 ± 01.98
Overall0.91 ± 01.190.91 ± 01.190.91 ± 01.190.91 ± 1.190.91 ± 01.19

5. Discussion

To the best of our knowledge, no previous study has investigated TCI-based diabetic foot classification for five-class stratification using 2D CNNs and using the original and enhanced thermogram images. Different pre-trained networks were investigated and we found that the image enhancement techniques did not help much in the classification performance. The ROC curves in Figure 5 confirm that the vanilla CNN architecture (such as VGG-19) performed worse in the classification, even with the image enhancement techniques. Other complex networks such as networks with residual connections (ResNet18, ResNet50), networks with concatenations (DenseNet201), networks with inception blocks (InceptionV3), and networks with inverted residual and linear bottleneck layers (MobileNetV2) performed relatively better than VGG 19, but the individual class-wise performance was not acceptable. Image enhancement techniques such as AHE degraded the performance but Gamma correction provided a performance similar to the original thermograms. Gamma correction helped in making the distinguishable features more evident, which was also evident in similar other studies [23]. A better understanding of the machine-learning performance can be analyzed using the F1-score, which is calculated using precision and sensitivity, especially for multiclass problems [64]. The best performing combination was the ResNet50 network using the original thermogram images with a weighted F1-score of 76.66%, followed by the MobileNetv2 network (75.74%) using the AHE-enhanced thermogram, ResNet18 using the original thermogram (75.61%), and ResNet18 and ResNet50 using the Gamma-enhanced thermogram provided scores of 74.41%, and 74.17%, respectively. It can be further seen in Table 2 that the weighted F1-score for the top-performing combination, ResNet50 using original thermogram was reasonable for extreme classes (84.48% and 91.02% for the extreme Class 1 and Class 5 categories, respectively, but it was poor for the remaining classes (64.40%, 52.18%, and 60.98% for Class 2, Class 3, and Class 4, respectively). It can be assumed that the middle categories are very similar and thus cannot be easily distinguished by 2D CNN models from the thermogram images. This prompted further investigation using the classical ML approach. Interestingly, the novel features extracted by the authors helped to produce better image class stratification compared to the 2D CNN-based deep learning models. The top ten features were identified from the reduced features (28 features after reduction) using different feature selection techniques (XGBoost, Random Forest, and Extra Tree) and are shown in Figure 5. The best-performing feature selection techniques were XGBoost and Random Forest (Table 3) and they identified almost the same top eight features (Mean, ET of LPA, LCA, and ET of MCA, Highest Temperature, NRT (Class 1), and NRT (Class 5). The demographic features are not included in the top 10 features, which means the user demography is independent and the decisions are based only on the temperature information from the foot thermograms. The top 10 features also confirm the importance of LPA and the statistical information (ET, HSE, and Mean) in the classification of diabetic thermograms. The feature proposed by the authors, i.e., NRT, which was developed to find the normalized number of pixels in the distinguishable temperature range of the different classes, can also be useful for classification by the classical ML models. As can be seen in Table 4, the MLP classifier achieved around 88%, 84%, and 83% of F1-score for Class 2, Class 3, and Class 4, respectively, in addition to providing an F1-score of more than 95% for the extreme classes (Class 1 and Class 5). Figure 6 shows the ROC curves for the top-performing combination of features and feature-ranking techniques for 10 classifiers, where the MLP outperformed the other ML classifiers. The ROC plot for the individual top 10 features using the MLP classifier can be seen in Figure 7 and the combination of the top two features (mean of LPA and LCA) provided the best results. It seems that they are enough to distinguish the temperature range in the thermogram, which is what the TCI-based classification is based on (Equation (1)). The LPA and LCA are very important angiosomes and have also helped to distinguish control and diabetic patients previously [23].
Figure 6

ROC plot for the top-performing feature combination from 10 classical ML classifiers.

Figure 7

ROC plot for 10 individual features using MLP classifier (best performing model).

To the best of the authors’ knowledge, the proposed machine-learning framework is the best performing solution compared to the studies reported in the literature, as summarized in Table 5.
Table 5

Comparison with similar studies.

StudiesReported Approach Approach Results
Cruz et al. in [24]A shallow CNN model named DFTNet was developed to classify using thermogram images94.57% F1-score for 10 folds with an unconventional approach of taking 2 different classes in each fold and reporting the average of the 10 foldsThe authors have computed the 5-fold cross-validation results using DFTNet for the original thermogram (68.96% F1-score), Gamma-enhanced thermogram (68.57% F1-score), AHE-enhanced thermogram (67.69% F1-score)
Khandakar et al. [23]Transfer learning using MobileNetV2 and image enhancement to classify thermograms into control and diabeticA comparatively shallow CNN model, MobilenetV2 achieved an F1 score of ∼95% for a two-feet thermogram image-based classification, and the AdaBoost Classifier used 10 features and achieved an F1 score of 97%
This studyMLP classifier using 2 features extracted from the thermogram91.18% F1-score for 5-fold cross-validation for 5 class-classification

6. Conclusions

Diabetic foot is a critical health issue with major ramifications in relation to amputation and mortality. Thus, early detection and severity classification may help to prevent such complications. The deployment of the proposed ML model can help in preparing easy-to-use solutions for early detection; thus, saving the time of medical experts and providing solutions that could be useful for patients in their home settings. Patients can use it at home especially during pandemic situations, when visits to the hospital are limited, avoiding stress on the healthcare system. The conclusions drawn from the results in this paper are as follows: The relevant features were extracted and ranked from the temperature pixels to classify the thermogram images into TCI-based classes. This is the best reported performance for a machine learning-based foot thermogram classification into different TCI-based classes. We explored the effect of various image enhancement techniques on thermogram images to improve the performance of 2D CNN models in TCI-based classes. It was found that the image enhancement techniques did not help to improve the performance, even for the state-of-the-art DFTNet proposed in [24]. The classical ML classifier’s performance with carefully selected and refined features was exceptionally good compared to the performance of the 2D CNN models with/without image enhancement. The proposed machine-learning framework outperforms the DFTNet by a significant margin in classifying thermograms into TCI-based classes. The trained classical ML models can help in the classification using foot thermograms, which can be captured using infrared cameras. In conclusion, such a system could be easily deployed, and patients could get the benefits of remote healthcare just by using an infrared camera and a mobile application, a future direction of our research. Though the results are promising, it is important to acknowledge some limitations: The performance reported uses a publicly available dataset, which has to be further validated for robustness with the help of a new dataset. The authors have already applied to the IRB to collect a new dataset. The dataset was collected using two different IR cameras (FLIR E60 and FLIR E6) with different resolutions [22]. However, the trained network is still able to find the distinguishing pattern, which confirms the robustness of different IR cameras, but this needs to be further validated with other IR cameras along with low-resolution IR cameras that are usable with mobile phones. Nonetheless, the results of this study may facilitate remote health monitoring of diabetic patients from the convenience of their homes.
  21 in total

1.  'Angiosome theory'.

Authors:  G I Taylor; J H Palmer
Journal:  Br J Plast Surg       Date:  1992 May-Jun

2.  Wearable Real-Time Heart Attack Detection and Warning System to Reduce Road Accidents.

Authors:  Muhammad E H Chowdhury; Khawla Alzoubi; Amith Khandakar; Ridab Khallifa; Rayaan Abouhasera; Sirine Koubaa; Rashid Ahmed; Md Anwarul Hasan
Journal:  Sensors (Basel)       Date:  2019-06-20       Impact factor: 3.576

3.  An evaluation of the effectiveness of adaptive histogram equalization for contrast enhancement.

Authors:  J B Zimmerman; S M Pizer; E V Staab; J R Perry; W McCartney; B C Brenton
Journal:  IEEE Trans Med Imaging       Date:  1988       Impact factor: 10.048

4.  Feasibility and Efficacy of a Smart Mat Technology to Predict Development of Diabetic Plantar Ulcers.

Authors:  Robert G Frykberg; Ian L Gordon; Alexander M Reyzelman; Shawn M Cazzell; Ryan H Fitzgerald; Gary M Rothenberg; Jonathan D Bloom; Brian J Petersen; David R Linders; Aksone Nouvong; Bijan Najafi
Journal:  Diabetes Care       Date:  2017-05-02       Impact factor: 19.112

Review 5.  A reappraisal of the use of infrared thermal image analysis in medicine.

Authors:  B F Jones
Journal:  IEEE Trans Med Imaging       Date:  1998-12       Impact factor: 10.048

6.  Contact thermography of painful diabetic neuropathic foot.

Authors:  A W Chan; I A MacFarlane; D R Bowsher
Journal:  Diabetes Care       Date:  1991-10       Impact factor: 19.112

7.  Continuous Temperature-Monitoring Socks for Home Use in Patients With Diabetes: Observational Study.

Authors:  Alexander M Reyzelman; Kristopher Koelewyn; Maryam Murphy; Xuening Shen; E Yu; Raji Pillai; Jie Fu; Henk Jan Scholten; Ran Ma
Journal:  J Med Internet Res       Date:  2018-12-17       Impact factor: 5.428

8.  Infrared 3D Thermography for Inflammation Detection in Diabetic Foot Disease: A Proof of Concept.

Authors:  Rob F M van Doremalen; Jaap J van Netten; Jeff G van Baal; Miriam M R Vollenbroek-Hutten; Ferdinand van der Heijden
Journal:  J Diabetes Sci Technol       Date:  2019-06-14

9.  History of foot ulcer increases mortality among individuals with diabetes: ten-year follow-up of the Nord-Trøndelag Health Study, Norway.

Authors:  Marjolein M Iversen; Grethe S Tell; Trond Riise; Berit R Hanestad; Truls Østbye; Marit Graue; Kristian Midthjell
Journal:  Diabetes Care       Date:  2009-09-03       Impact factor: 17.152

10.  Deep Learning Classification for Diabetic Foot Thermograms.

Authors:  Israel Cruz-Vega; Daniel Hernandez-Contreras; Hayde Peregrina-Barreto; Jose de Jesus Rangel-Magdaleno; Juan Manuel Ramirez-Cortes
Journal:  Sensors (Basel)       Date:  2020-03-22       Impact factor: 3.576

View more
  2 in total

1.  Pedabarography May Play a Role in Foot Plantar Scanning in Acromegaly.

Authors:  Tulay Omma; Azize Reda Tunc; Sevde Nur Fırat; Isılay Taskaldıran; Cavit Culha; Nese Ersoz Gulcelik
Journal:  Int J Clin Pract       Date:  2022-05-17       Impact factor: 3.149

2.  Design and Implementation of a Smart Insole System to Measure Plantar Pressure and Temperature.

Authors:  Amith Khandakar; Sakib Mahmud; Muhammad E H Chowdhury; Mamun Bin Ibne Reaz; Serkan Kiranyaz; Zaid Bin Mahbub; Sawal Hamid Md Ali; Ahmad Ashrif A Bakar; Mohamed Arselene Ayari; Mohammed Alhatou; Mohammed Abdul-Moniem; Md Ahasan Atick Faisal
Journal:  Sensors (Basel)       Date:  2022-10-07       Impact factor: 3.847

  2 in total

北京卡尤迪生物科技股份有限公司 © 2022-2023.