Next Article in Journal
Design of Military Service Framework for Enabling Migration to Military SaaS Cloud Environment
Next Article in Special Issue
State-of-the-Art Optical Devices for Biomedical Sensing Applications—A Review
Previous Article in Journal
A Comparative Experimental Study of MIMO A&F and D&F Relay Nodes Using a Software-Defined Radio Platform
Previous Article in Special Issue
Multi-Channel Transfer Learning of Chest X-ray Images for Screening of COVID-19
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Algorithm for Automated Foot Detection in Thermal and Optical Images for Temperature Asymmetry Analysis

by
Jonas Guzaitis
1,
Agne Kadusauskiene
2,* and
Renaldas Raisutis
3
1
Diabetis, JSC, Mokslininku Street 2A, LT-08412 Vilnius, Lithuania
2
Department of Endocrinology, Lithuanian University of Health Sciences, LT-44307 Kaunas, Lithuania
3
Ultrasound Research Institute, Kaunas University of Technology, LT-44249 Kaunas, Lithuania
*
Author to whom correspondence should be addressed.
Electronics 2021, 10(5), 571; https://doi.org/10.3390/electronics10050571
Submission received: 2 February 2021 / Revised: 22 February 2021 / Accepted: 23 February 2021 / Published: 28 February 2021
(This article belongs to the Special Issue Optical Sensing for Biomedical Applications)

Abstract

:
Infrared thermography has been proven to be an effective non-invasive method in diabetic foot ulcer prevention, yet current image processing algorithms are inaccurate and impractical for clinical work. The aim of this study was to investigate the accuracy of our automated algorithm for feet outline detection and localization of potential inflammation regions in thermal images. Optical and thermal images were captured by a Flir OnePro camera connected with an Apple iPad Air tablet. Both thermal and optical images were merged into an edge image and used for the estimation of foot template transformations during the localization process. According to the feet template transformations, temperature maps were calculated and compared with each other to detect a set of regions exceeding the defined temperature threshold. Finally, a set of potential inflammation regions were filtered according to the blobs features to obtain the final list of inflammation regions. In this study, 168 thermal images were analyzed. The developed algorithm yielded 95.83% accuracy for foot outline detection and 94.28% accuracy for detection of the inflammation regions. The presented automated algorithm with enhanced detection accuracy can be used for developing a mobile thermal imaging system. Further studies with patients who have diabetes and are at risk of foot ulceration are needed to test the significance of our developed algorithm.

1. Introduction

Diabetes mellitus is one of the most prevalent chronic diseases. While diabetes itself is like the tip of an iceberg, diabetes-related complications, especially diabetic foot ulcers (DFUs), are the biggest concern. The DFUs are difficult to diagnose early and even more challenging to treat. Delayed diagnosis increases the need for surgical interventions and the risk of amputations [1]. Thus, a new diagnostic tool for early diagnosis of DFUs is fundamental to reduce adverse outcomes and economic cost [2,3].
Since Armstrong and colleagues determined that temperature changes in the foot can be an early indication of a DFU [4], researchers have been searching for a convenient and accurate way to identify these changes. It was discovered that temperatures of corresponding areas between feet do not usually differ by more than 1 °C, and a temperature difference of more than 2.2 °C is considered abnormal [4,5]. More importantly, the increased temperature may be presented even a week before a DFU appears [6], and frequent temperature assessment and treatment for these patients can prevent diabetic foot complications [7,8].
Infrared thermography (IRT) is a non-invasive and non-contact method for screening of human skin temperature that allows spatial temperature distributions to be visualized based on the emitted heat (thermal radiation). While previous research focused on early diagnosis and screening purposes, recent data shows that IRT could also be useful in follow-up as it can predict the healing status of the DFU [2]. Even more, according to J. Cwajda-Białasik et al., a prolonged temperature increase of at least 1.11 °C at the wound site, could indicate the existence of infections [9]. These findings suggest that the application of IRT could be expanded from screening to follow-up of patients with current ulcers and even suspected early infections.
IRT has been successfully used in many other medical fields. An extensive literature review, published by Lahiri, et al. covers other possible medical applications of IRT, including diagnosis of breast cancer and peripheral vascular disorders, detecting problems related to gynecology, kidney transplantation, dermatology, heart, neonatal physiology, fever screening and brain imaging [10]. A more recent review by John et al. covers IRT application of IRT in plastic surgery [11]. A new ongoing study of a systematic literature review and meta-analysis of IRT use for musculoskeletal injuries diagnosis is essential as current diagnosis techniques are often associated with radiation exposure [12].
Despite rising research interest, efforts and progress to use IRT for diabetic foot disease [13], a user-friendly device for DFU monitoring is yet to be established. The absence of an automated algorithm that is accurate and can effectively analyze thermal images of diabetic foot is one of the reasons. Recently proposed image processing algorithms have significant limitations in the segmentation of the feet from the background or being semi-automated [14]. In order to solve the segmentation problem, in several studies, some type of cloth or plastic panels were used to cover the background around feet to reduce the influence of thermal radiation from other objects around [15,16]. In some studies, an even more complicated thermally insulated boxes were designed for this purpose [6,17]. A novel concept of reconstructed 3D models of the diabetic foot and thermal images was introduced by Van Doremalen et al. [18]. However, such a system is quite complicated and not portable. In addition, Van Doremalen et al. represented the results of 32 participants with peripheral neuropathy and showed reliable validity of mobile phone or tablet-based thermal camera to be applied for assessment of the diabetic foot. Also, it requires segmentation of foot contour in the thermal images [15]. Manual segmentation of foot contours was also widely used in other studies [19,20].
The objective of our study was to develop a real-time screening technology that is able to analyze foot images and detect signs of inflammation that might be indicative of a DFU onset. In this article, we demonstrate how our automated algorithm with enhanced detection accuracy detects the outline of the feet from the background noise during processing optical images and localizes the inflammation regions after processing thermal images of both feet. This technology could be used for an AI-based (tele) medicine system and serve as a self-monitoring tool.

2. Materials and Methods

2.1. Study Design

With this experiment, we wanted to verify our algorithm’s accuracy to detect feet outline and localize the potential inflammation regions. Two data sets of images with and without phantom feet were used for this purpose, named accordingly: Phantom Feet and No Feet (Figure 1).
Silicone phantom feet were used to produce similar-looking images with ideally shaped feet and an irregular feet position inside the frame. Simulated inflammation zones were created manually by heating up randomly selected regions of the phantom soles with a heated metal spoon, in a way that is similar to previous research [21]. The edges of the soles were not heated in order not to compromise the automatic detection of the feet outline. Several images from the simulated inflammation regions are shown in Figure 2.
The surrounding items such as walls, furniture, electrical equipment, heating devices, and human body parts (excluding feet) were captured in images used in No Feet data set to replicate accidentally captured images. Such images were necessary to test the functionality of algorithm’s automatic function to exclusively detect the feet outline. All photos in Phantom Feet dataset had an uneven background without thermal artifacts. The experimental set-up is shown schematically in Figure 3.

2.2. Image Acquisition

The experiment took place in a controlled environment with a mean temperature of 22 ± 0.5 °C and relative humidity of 45 ± 5%. It was ensured that no direct lighting was pointing towards the lens of the camera.
Thermal and color optical images were captured by a Flir OnePro camera (FLIR Systems, Wilsonville, OR, USA) connected with an Apple iPad Air tablet (Apple, Cupertino, CA, USA). Images were taken by holding the tablet with the Flir OnePro camera (number of pixels for thermal image 160 × 120 and optical 1440 × 1080) in hands from a distance of 0.3 ± 0.05 m. Focus and exposure were estimated automatically by the embedded logic of the thermal imaging camera. The resolution of the temperature sensing was 0.1 °C.
Silicone phantom feet were heated in a special low-temperature oven to reach the natural feet temperature of +29 °C. This temperature was concluded from our early experiments and supported by other trials [22]. A digital temperature controlled thermostat connected to the oven heating control system was used to ensure the accuracy of the phantom’s temperature without deviations above ±0.1 °C. Both the thermal and visual images were stored in the tablet’s memory in a binary format. The thermogram was acquired in a raw format and stored as a 2D matrix consisting of 16 bit values per pixel. The visual image was acquired in an RGB format and stored as a 2D matrix of 24 bit values per pixel.

2.3. Study Methods

We started testing our algorithm from the detection of the feet outline in optical images. First of all, the estimation of Dense Edge Points (DEP) was added to the baseline algorithm, which was performed by doubling the key points of foot outline to increase the foot shape recognition. Then, Extended Foot Shape (EFS) was performed by using standard foot outlines to improve the quality of detection of the base foot location. Therefore, three algorithms, namely: (1) baseline algorithm; (2) baseline algorithm with DEP; and (3) baseline algorithm with DEP and EFS, were tested during the experiment. Later, we tested the ability of our algorithm to detect and evaluate the potential inflammation regions in thermal images. This work was performed with the Phantom Feet data set using pictures with and without simulated potential inflammation regions.

2.4. Overview of the Proposed Methodology

The proposed methodology for the analysis of thermal and optical images in order to perform an automatic detection of potential inflammation regions is presented in the block diagram in Figure 4 and schematically in Figure 5. The inspected foot is marked as (1), while the contralateral foot is marked as (2). After fine-tuning the inspected foot template, the inspected foot with a fitted template is created (3). The same procedure of fine-tuning of the foot template is performed on a contralateral foot, so the contralateral foot with a fitted template is created (4). The initial template with a grid (6) is applied for both the inspected and the contralateral feet. As a result, the inspected foot template with a grid (7) and the contralateral foot template with a grid (8) are obtained. Then, the temperature maps for both feet are estimated according to the appropriate set of points-of-interest. Temperature maps of the inspected and contralateral feet are shown in (9) and (10), respectively. The estimation of the temperature disparity map is performed by subtracting the temperature values in the reference foot temperature map from the appropriate temperature values in the inspected foot temperature map, creating the temperature difference map (11). The temperature difference map (11) shows the temperature differences between the inspected and the contralateral feet. The threshold for these temperature differences could be set for different values. If the temperature differences surpass the medically-based threshold value, this temperature asymmetry indicates a possible inflammation region.

2.5. Image Processing

Our image processing algorithm consists of several steps described in the following subsections. Special software for optical and thermal image processing was designed to be used with a tablet or a smartphone. The entire application was implemented in Java programming language while the image processing algorithm was completed in C++ programming language.

2.5.1. Estimation of Displacement in the Thermal and the Optical Images

Thermal image I T and optical image I O were captured simultaneously. Both cameras, thermal and optical, are placed on the board as close to each other as the device design allows; nevertheless, the remaining difference produces a notable displacement in both images caused by an offset of camera focus centers. Therefore, the optical image was shifted according to the thermal image’s position to align the outlines of the feet in both images. For this purpose, edge images E T and E O were estimated for I T and I O respectively. Sobel operator [23] was used for edges’ estimation. Thus, the pixels in edge images represent a magnitude of the edge slope in range 0–255. The higher value corresponds to the steeper slope.
The edge detecting functions are defined as:
E x = [ + 1 0 1 + 2 0 2 + 1 0 1 ] I
E y = [ + 1 + 2 + 1 0 0 0 1 2 1 ] I
E = E x 2 + E y 2
where denotes the 2-dimensional image convolution.
Optimal offset was achieved by solving the optimization problem with Descent Gradient method [24]. Zero-normalized cross-correlation (ZNCC) [25] was used as a cost function:
Z N C C ( n , m ) = 1 n ( x , y ) ( E T ( x + n , y + m ) μ T ) ( E O ( x , y ) μ O ) σ T σ O
where n is the number of pixels in images E T and E O , μ T and μ O are the mean values, and σ T and σ O are the variations of the covering part of images E T and E O respectively.
Finally, edge images E T and E O were combined into the one edge image E . The point values in this image were estimated as this:
E ( x , y ) = m a x ( E T ( x , y ) , E O ( x , y ) )

2.5.2. Localization of Inspected Foot Template

Foot outline was localized by applying the appropriate transformation to the base foot template T B . The base foot template represents a polyline composed of finite number of points T B ( i ) = { x i , y i } . It was obtained by averaging manually marked foot outlines in sample images. Foot template localization to the foot outline was performed by estimating rigid transformation R R capable to transform the base foot template T B to the inspected foot template T I which best fits the foot outline in the edge image E . Rigid transformation parameters (scale, rotation, translation, and mirror) were estimated by solving the optimization problem descent gradient method. Foot template compliancy was estimated as a line correspondence to the foot edge represented in image. Rigid transformation R R obtained during this step was defined as 4 × 4 transformation matrix.

2.5.3. Fine-Tuning of Inspected Foot Template

The inspected foot template T I obtained during the localization, corresponds to the foot outline inaccurately, because the rigid transformation is unable to fit the base foot template to a specific foot outline. In order to achieve pixel-wise accuracy, the connection points of the inspected foot template were additionally matched with the edges of the foot outline in edge image E during the fine-tuning process. Pixel-wise shifting of foot template connection points was performed by shifting them across the bisectors. Working in narrow bounds (usually 5–10 pixels), allowed us to adjust the foot template flexibly, while remaining shape distorted within tolerance. We used a simple maximum value function for accurate foot outline edge detection. This method is presented in Figure 6.
The transformation capable of transforming the foot template connection points coordinated to the fine-tuned positions may be represented as a matrix of the Thin Plate Spline transformation coefficients. Coefficients are estimated by relating the base foot template points and the inspected foot template points according to the following equation:
f ( x , y ) = a 1 + a 2 x + a 3 y + i = 1 n w i U ( | T B ( i ) ( x , y ) | )
where U is defined as U ( r ) = r 2 l o g ( r ) and | T B ( i ) ( x , y ) | is the distance between the control point T B ( i ) and modified point ( x , y ) . Unknowns a 1 , a 2 , a 3 and ω i forms the coefficients vector ( w | a 1 a 2 a 3 ) T . Coefficients vector is estimated according to the equation:
( w | a 1 a 2 a 3 ) T = L 1 v
where values vector v and computation matrix L are defined as follows:
v T = [ v 1 v 2 v n 0 0 0 ]
L = [ K P P T 0 ]
K = [ U ( r 11 ) U ( r 12 ) U ( r 21 ) U ( r 22 ) U ( r n n ) ]
P = [ 1 x 1 y 1 1 x 2 y 2 1 x n y n ]
This equation may be solved by finding the inverse L 1 . Two separate equations were used for x and y coordinates estimation for inspected foot template T I . Thus, two coefficients vectors ( w | a 1 a 2 a 3 ) x T and ( w | a 1 a 2 a 3 ) y T are used to represent the non-rigid transformation R N . Detailed fine-tuning process of a foot template and estimation of optimal points is demonstrated in Figure 6 and Figure 7.

2.5.4. Localization and Fine-Tuning of Contralateral Foot Template

Localization and fine-tuning of the contralateral foot template T c was performed in the same manner as the tuning of the inspected foot template T I . The only difference is that the initial template for contralateral foot T B m was obtained by applying a vertical reflection transformation (negating x axis) to the points of base foot template T B :
T B m ( i ) = R m ( T B ( i ) )
where T B ( i ) represents the base template point in homogeneous coordinates as T B ( i ) = ( x i y i 1 ) T , and reflection transformation R m is defined as:
R m = [ 1 0 0 0 1 0 0 0 1 ]

2.5.5. Estimation of Sets of Points-of-Interest

Fine-tuning of both the inspected foot template T I and the contralateral foot template T C to the appropriate feet outlines in thermal and optical images, allowed to estimate sets of points-of-interest. The base set of points-of-interest P B was represented as a grid of points over the base foot template T B . Modified positions of points-of-interest were estimated by applying the rigid transformation R R , followed by a non-rigid transformation R N in succession to the base set of points-of-interest P B . Those two sets of points-of-interest P I and P C were obtained for both inspected and contralateral feet by applying corresponding transformations:
P I ( i , j ) = R I N ( R I R ( P B ( i , j ) ) )
P C ( i , j ) = R C N ( R C R ( P B ( i , j ) ) )
Points inside of the inspected foot shape matched the paired points inside of the contralateral foot shape. This method ensures that even different shaped and sized feet can be evaluated by comparing temperature values in paired points of both feet templates.

2.5.6. Estimation of Temperature Maps

According to the values indicated by the sets of points-of-interest P I and P C , temperature maps M I and M C were estimated for both the inspected and contralateral feet respectively. Each value of temperature maps M ( i , j ) was estimated by generalizing temperature values situated near by the position of point–of-interest P i , j in the thermal image I T of the appropriate foot. We used the weighted mean method for temperature values estimation:
M ( i , j ) = 1 n ( x , y ) Q p i , j I T ( x , y )
Q p i , j represents the set of points in thermal image I T laying inside the foot template T and closer to P i , j than to the any other point from the set of points–of-interest P :
Q p i , j = F { q : d i s t ( q , p i , j ) < d i s t ( q , p P ) }
where d i s t ( q , p ) defines the Euclidian distance between the points q and p . F defines the set of points inside the foot outline defined by template T .
Assessment of temperature disparity map D was done by subtracting the temperature values of the temperature map of contralateral foot M C from the appropriate temperature values of inspected foot M I . Subtraction of temperature values was done one by one in a two-dimensional array:
D ( i , j ) = M I ( i , j ) M C ( i , j )

2.5.7. Composition of a Set of Inflammation

The composition of set of inflammation W was performed by analyzing the temperature disparity map D to find the local areas containing temperature disparity values higher than the medically based threshold. Potential inflammation regions ω consist of the nearby points of temperature disparity map exceeding the medically-based threshold. Those binary images B were obtained by setting their points as:
B ( i , j ) = { 1 , D ( i , j ) t 0 , o t h e r w i s e
where t is a medically approved threshold. We used t = 2.2 °C in all our experiments. Thus, the binary image B was obtained by containing 1 at points exceeding threshold and 0 elsewhere. Two-pass connected components labeling [26] was used to collect inflammation regions into the list of blobs H while analyzing the binary image B . A descriptive feature vector was created for each candidate inflammation region h , that consisted of generalized values of points interposition and temperatures or a combination of both.

2.5.8. Analysis of Inflammation Regions

Analysis of inflammation regions was performed by examining the feature vectors. During this process, non-confident inflammation regions were rejected in order to clear the list against accidentally marked non-inflammable regions (e.g., the area deemed too small, or having considerably small temperature excess, etc.). We used the Support Vector Machine (SVM) classifier [27] to perform this task. The positive sign of the disparity value was used for attribution of a particular foot possessing the inflammation region.
The final list of inflammation H contains the potential pathologies. An empty list indicates no inflammation was found and no action is needed, while the non-empty list indicates that the algorithm has found an inflammation region and suggests consulting with a healthcare specialist.

3. Results

The algorithm analyzed 168 thermal images in total: 70 in Phantom Feet and 98 in No Feet data sets. The results are demonstrated in Table 1 and Table 2. Modifications of a baseline algorithm improved the true-positive results by 22.86% and achieved 95.83% accuracy with 92.86% sensitivity and 98% specificity in detection of the feet outlines. During the phantom investigation, the inflammation localization algorithm achieved 94.28% accuracy, 90.00% sensitivity, and 100.00% specificity.

4. Discussion

The principal task for our developed automated algorithm was to determine foot outlines precisely, as this directly affects the accuracy of the final results. We found that blurred foot contour segments in one image can be compensated from another image (thermal or optical); therefore, merging the edges of both thermal and optical images enabled a better detection of the foot outline. Our results showed that background artifacts were the main reason for poor detection of the outline of the feet in the baseline algorithm. DEP and EFS modifications improved the baseline algorithm and achieved a notable 95.83% accuracy and 92.86% sensitivity. False-positive cases were mainly caused by the relatively hot objects in the background in No feet data set. The detection of possible inflammation zones achieved 94.28% accuracy and 90.00% sensitivity. Several reasons impaired the possible inflammation zone detection. The main reason for false-negative results was an uneven temperature over the soles of the feet, i.e. the feet were not symmetrical across the temperature map. Furthermore, false-negative results were related to the marginal temperature differences value, i.e. the temperature difference did not exceed the threshold value across the inflammation area. There were several limitations to this study. First of all, we used phantom feet instead of actual patients with diabetes because of the coronavirus SARS-Cov-2 (disease COVID-19) outbreak worldwide and in our country. However, we believe that the phantom feet image data is sufficient enough for the feet outline detection purposes, which was the main object in this study. Secondly, phantom feet are ideally shaped, and that may lead to better outline detection results. Certainly, future studies with people who have diabetes are needed to verify our results.
For possible inflammation zone detection, we used an asymmetric temperature analysis when the plantar temperature is compared between both feet. If the same inflammations exist in both feet, or if partial or entire foot amputation was performed, this method is unable to determine the possible inflammation areas over the soles of the foot.

5. Conclusions

The automated algorithm with an enhanced detection accuracy that is able to analyze the optical and thermal images of the foot and to detect feet outline from the background noise and localize inflammation regions was developed. Merging the edges of both thermal and optical images into an edge image and using it to estimate the foot template transformations during the localization process, instead of the widely used segmentation process by other algorithms developers, allowed us to achieve pixel-wise accuracy. Different from other publications, our algorithm is entirely automated and does not require the interference of an operator. Another superiority of our algorithm is that it is reliably suitable to perceive the shape of the foot instead of distinguishing the foot area from the background area.
We are currently testing our automated algorithm with healthy volunteers to validate these results. We are also preparing a study with patients with diabetes, and planning to verify other possible applications of our proposed method. This includes following up on the patients with current ulcers in order to evaluate of the healing process and suspected infections.
We believe that our algorithm could be used for the development of a new screening tool to enable patients to perform monitoring of the feet from the comfort of their home. Furthermore, such a device could be used in clinics to assist the physicians with decision support. The proposed portable screening system will be implemented using a specialized mobile application where the optical and thermal images will be acquired, processed, and analyzed for detection of signs of inflammation over the soles of the feet.

6. Patents

A patent application for the described system, method, and apparatus for temperature asymmetry measurement of body parts was filed with the International Bureau of the World Intellectual Property Organization (RO/IB) on 6 March 2020 with international application number: PCT/IB2020/051950.

Author Contributions

Conceptualization, A.K. and J.G.; methodology, J.G. and R.R.; software, J.G.; validation, J.G. and R.R.; formal analysis, J.G.; investigation, A.K. and J.G.; resources, J.G.; data curation, J.G.; writing—original draft preparation, J.G. and A.K.; writing—review and editing, R.R.; visualization, A.K.; supervision, R.R.; project administration, J.G.; funding acquisition, J.G. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by Diabetis, JSC.

Acknowledgments

The authors acknowledge Gintare Marine and Urte Steikuniene (Diabetis, JSC) for assistance during the conceptualisation of the study.

Conflicts of Interest

The authors have the following potential competing interests: J.G. is a paid employee of Diabetis, JSC; R.R. and A.K. are paid experts on image processing and medical field, and RR is also a shareholder of Diabetis, JSC.

References

  1. Nickinson, A.T.; Bridgwood, B.; Houghton, J.S.; Nduwayo, S.; Pepper, C.; Payne, T.; Bown, M.J.; Davies, R.S.; Sayers, R.D. A systematic review investigating the identification, causes, and outcomes of delays in the management of chronic limb-threatening ischemia and diabetic foot ulceration. J. Vasc. Surg. 2020, 71, 669–681. [Google Scholar] [CrossRef]
  2. Aliahmad, B.; Tint, A.N.; Arjunan, S.P.; Rani, P.; Kumar, D.K.; Miller, J.; Zajac, J.D.; Wang, G.; Ekinci, E.I. Is Thermal Imaging a Useful Predictor of the Healing Status of Diabetes-Related Foot Ulcers? A Pilot Study. J. Diabetes Sci. Technol. 2019, 13, 561–567. [Google Scholar] [CrossRef]
  3. Petrova, N.L.; Whittam, A.; Macdonald, A.; Ainarkar, S.; Donaldson, A.N.; Bevans, J.; Allen, J.; Plassmann, P.; Kluwe, B.; Ring, F.; et al. Reliability of a novel thermal imaging system for temperature assessment of healthy feet. J. Foot Ankle Res. 2018, 11, 1–6. [Google Scholar] [CrossRef]
  4. Armstrong, D.G.; A Lavery, L.; Liswood, P.J.; Todd, W.F.; A Tredwell, J. Infrared Dermal Thermometry for the High-Risk Diabetic Foot. Phys. Ther. 1997, 77, 169–175. [Google Scholar] [CrossRef] [PubMed]
  5. Armstrong, D.G.; Holtz-Neiderer, K.; Wendel, C.; Mohler, M.J.; Kimbriel, H.R.; Lavery, L.A. Skin Temperature Monitoring Reduces the Risk for Diabetic Foot Ulceration in High-risk Patients. Am. J. Med. 2007, 120, 1042–1046. [Google Scholar] [CrossRef] [PubMed]
  6. Van Netten, J.J.; Van Baal, J.G.; Liu, C.; Van Der Heijden, F.; Bus, S.A. Infrared Thermal Imaging for Automated Detection of Diabetic Foot Complications. J. Diabetes Sci. Technol. 2013, 7, 1122–1129. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  7. Lavery, L.A.; Higgins, K.R.; Lanctot, D.R.; Constantinides, G.P.; Zamorano, R.G.; Armstrong, D.G.; Athanasiou, K.A.; Agrawal, C.M. Home Monitoring of Foot Skin Temperatures to Prevent Ulceration. Diabetes Care 2004, 27, 2642–2647. [Google Scholar] [CrossRef] [Green Version]
  8. Lavery, L.A.; Higgins, K.R.; Lanctot, D.R.; Constantinides, G.P.; Zamorano, R.G.; Athanasiou, K.A.; Armstrong, D.G.; Agrawal, C.M. Preventing Diabetic Foot Ulcer Recurrence in High-Risk Patients: Use of temperature monitoring as a self-assessment tool. Diabetes Care 2006, 30, 14–20. [Google Scholar] [CrossRef] [Green Version]
  9. Cwajda-Białasik, J.; Mościcka, P.; Jawień, A.; Szewczyk, M.T. Infrared thermography to prognose the venous leg ulcer healing process—Preliminary results of a 12-week, prospective observational study. Wound Repair Regen. 2019, 28, 224–233. [Google Scholar] [CrossRef] [PubMed]
  10. Lahiri, B.; Bagavathiappan, S.; Jayakumar, T.; Philip, J. Medical applications of infrared thermography: A review. Infrared Phys. Technol. 2012, 55, 221–235. [Google Scholar] [CrossRef] [PubMed]
  11. John, H.E.; Niumsawatt, V.; Rozen, W.M.; Whitaker, I.S. Clinical applications of dynamic infrared thermography in plastic surgery: A systematic review. Gland. Surg. 2016, 5, 122–132. [Google Scholar]
  12. Li, X.; Zhang, Y.; Sun, H.; Jiang, Y.; Lou, J.; He, X.; Fang, J. Infrared thermography in the diagnosis of musculoskeletal injuries. Medicine (Baltimore) 2020, 99, e23529. [Google Scholar] [CrossRef]
  13. Salazar, C.A.; Díaz, M.L.Z. Thermography as a Diagnostic Tool for Early Detection of Diabetic Foot Ulceration Risk: A Review. XXVI Braz. Congr. Biomed. Eng. 2019, 1233–1252. [Google Scholar] [CrossRef]
  14. Adam, M.; Ng, E.Y.; Tan, J.H.; Heng, M.L.; Tong, J.W.; Acharya, U.R. Computer aided diagnosis of diabetic foot using infrared thermography: A review. Comput. Biol. Med. 2017, 91, 326–336. [Google Scholar] [CrossRef] [PubMed]
  15. Van Doremalen, R.; van Netten, J.; van Baal, J.; Vollenbroek-Hutten, M.; van der Heijden, F. Validation of low-cost smartphone-based thermal camera for diabetic foot assessment. Diabetes Res. Clin. Pract. 2019, 149, 132–139. [Google Scholar] [CrossRef] [PubMed]
  16. Astasio-Picado, A.; Martínez, E.E.; Nova, A.M.; Rodríguez, R.S.; Gómez–Martín, B. Thermal map of the diabetic foot using infrared thermography. Infrared Phys. Technol. 2018, 93, 59–62. [Google Scholar] [CrossRef]
  17. Silva, N.C.; Castro, H.A.; Carvalho, L.C.; Chaves, É.C.; Ruela, L.O.; Iunes, D.H. Reliability of Infrared Thermography Images in the Analysis of the Plantar Surface Temperature in Diabetes Mellitus. J. Chiropr. Med. 2018, 17, 30–35. [Google Scholar] [CrossRef] [PubMed]
  18. Van Doremalen, R.F.M.; Van Netten, J.J.; Van Baal, J.G.; Vollenbroek-Hutten, M.M.R.; Van Der Heijden, F. Infrared 3D Thermography for Inflammation Detection in Diabetic Foot Disease: A Proof of Concept. J. Diabetes Sci. Technol. 2019, 14, 46–54. [Google Scholar] [CrossRef]
  19. Adam, M.; Ng, E.Y.; Oh, S.L.; Heng, M.L.; Hagiwara, Y.; Tan, J.H.; Tong, J.W.; Acharya, U.R. Automated detection of diabetic foot with and without neuropathy using double density-dual tree-complex wavelet transform on foot thermograms. Infrared Phys. Technol. 2018, 92, 270–279. [Google Scholar] [CrossRef]
  20. Adam, M.; Ng, E.Y.; Oh, S.L.; Heng, M.L.; Hagiwara, Y.; Tan, J.H.; Tong, J.W.; Acharya, U.R. Automated characterization of diabetic foot using nonlinear features extracted from thermograms. Infrared Phys. Technol. 2018, 89, 325–337. [Google Scholar] [CrossRef]
  21. Fraiwan, L.; Alkhodari, M.; Ninan, J.; Mustafa, B.; Saleh, A.; Ghazal, M. Diabetic foot ulcer mobile detection system using smart phone thermal camera: A feasibility study. Biomed. Eng. Online 2017, 16, 1–19. [Google Scholar] [CrossRef] [Green Version]
  22. Ilo, A.; Romsi, P.; Mäkelä, J. Infrared Thermography and Vascular Disorders in Diabetic Feet. J. Diabetes Sci. Technol. 2020, 14, 28–36. [Google Scholar] [CrossRef] [PubMed]
  23. Gonzalez, R.C.; Woods, R.E. Digital Image Processing, 2nd ed.; Prentice Hall: Upper Saddle River, NJ, USA, 1992; pp. 414–428. Available online: www.prenhall.com/gonzalezwoods (accessed on 12 December 1992).
  24. Snyman, J.A.; Wilke, D.N. Practical Mathematical Optimization—Basic Optimization Theory and Gradient-Based Algorithms; Springer International Publishing: Cham, Switzerland, 2018. [Google Scholar] [CrossRef]
  25. Di Stefano, L.; Mattoccia, S. Fast Template Matching Using Bounded Partial Correlation. Mach. Vis. Appl. 2003, 13, 213–221. [Google Scholar] [CrossRef]
  26. Rosenfeld, A.; Pfaltz, J.L. Sequential Operations in Digital Picture Processing. J. ACM 1966, 13, 471–494. [Google Scholar] [CrossRef]
  27. Cortes, C.; Vapnik, V. Support-vector networks. Mach. Learn. 1995, 20, 273–297. [Google Scholar] [CrossRef]
Figure 1. Sample images (optical images are above the thermal images): (a) Phantom Feet; (b) No Feet.
Figure 1. Sample images (optical images are above the thermal images): (a) Phantom Feet; (b) No Feet.
Electronics 10 00571 g001
Figure 2. Images from Phantom Feet data set: (a) without inflammation (no regions of thermal difference between the left and right foot); (b) inflammation in toes’ area of left foot; (c,d) multiple inflammation regions.
Figure 2. Images from Phantom Feet data set: (a) without inflammation (no regions of thermal difference between the left and right foot); (b) inflammation in toes’ area of left foot; (c,d) multiple inflammation regions.
Electronics 10 00571 g002
Figure 3. The experimental set-up.
Figure 3. The experimental set-up.
Electronics 10 00571 g003
Figure 4. The block diagram of algorithm.
Figure 4. The block diagram of algorithm.
Electronics 10 00571 g004
Figure 5. Automatic detection of potential inflammation regions: (1) inspected foot; (2) contralateral foot; (3) inspected foot with fitted template; (4) contralateral foot with fitted template; (5) inflammation region; (6) base foot template with initial grid; (7, 8) inspected and contralateral feet templates with adjusted grids; (9, 10) inspected and contralateral feet temperature maps; (11) temperature difference map.
Figure 5. Automatic detection of potential inflammation regions: (1) inspected foot; (2) contralateral foot; (3) inspected foot with fitted template; (4) contralateral foot with fitted template; (5) inflammation region; (6) base foot template with initial grid; (7, 8) inspected and contralateral feet templates with adjusted grids; (9, 10) inspected and contralateral feet temperature maps; (11) temperature difference map.
Electronics 10 00571 g005
Figure 6. Localization of inspected foot template: (1) base foot template; (2) foot outline; (3) foot template transformed with rigid transformation; (4) accurate foot template transformed with non-rigid transformation.
Figure 6. Localization of inspected foot template: (1) base foot template; (2) foot outline; (3) foot template transformed with rigid transformation; (4) accurate foot template transformed with non-rigid transformation.
Electronics 10 00571 g006
Figure 7. Fine-tuning of inspected foot template: (1) foot outline; (2) foot template transformed with rigid transformation; (3) foot template transformed with non-rigid transformation; (4) bisection lines; (5) optimal foot template point.
Figure 7. Fine-tuning of inspected foot template: (1) foot outline; (2) foot template transformed with rigid transformation; (3) foot template transformed with non-rigid transformation; (4) bisection lines; (5) optimal foot template point.
Electronics 10 00571 g007
Table 1. Baseline algorithm with DEP and EFS experiment results for feet outline detection.
Table 1. Baseline algorithm with DEP and EFS experiment results for feet outline detection.
DatasetNumber of ImagesDetectedRatio
Phantom Feet
Baseline algorithm704970.00%
Baseline algorithm + DEP706390.00%
Baseline algorithm + DEP + EFS706592.86%
No Feet
Baseline algorithm9822.04%
Baseline algorithm + DEP9822.04%
Baseline algorithm + DEP + EFS9822.04%
Table 2. Testing of inflammation detection algorithm with phantoms
Table 2. Testing of inflammation detection algorithm with phantoms
DatasetNumber of ImagesDetectedRatio
Phantom with simulated regions of inflammation403690.00%
Phantom without simulated regions of inflammation300100%
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Guzaitis, J.; Kadusauskiene, A.; Raisutis, R. Algorithm for Automated Foot Detection in Thermal and Optical Images for Temperature Asymmetry Analysis. Electronics 2021, 10, 571. https://doi.org/10.3390/electronics10050571

AMA Style

Guzaitis J, Kadusauskiene A, Raisutis R. Algorithm for Automated Foot Detection in Thermal and Optical Images for Temperature Asymmetry Analysis. Electronics. 2021; 10(5):571. https://doi.org/10.3390/electronics10050571

Chicago/Turabian Style

Guzaitis, Jonas, Agne Kadusauskiene, and Renaldas Raisutis. 2021. "Algorithm for Automated Foot Detection in Thermal and Optical Images for Temperature Asymmetry Analysis" Electronics 10, no. 5: 571. https://doi.org/10.3390/electronics10050571

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop