Keywords

1 Introduction

Medical infrared thermal imaging (MITI) is currently a rapid developing technique that can provide the images for monitoring and pre-clinical diagnostic of thermal abnormalities present in the body in real time. MITI technique is a non-contact, noninvasive, imaging procedure which offers the two-dimensional temperature spatial distribution measurement.

With modern technology, a single image may contain several thousands of temperature points recorded in a fraction of a second. It has been used to study number of diseases where the increased skin temperature can signal the presence of inflammation, or where blood flow is increased or decreased due to a clinical abnormality. MITI ware widely tested in the following areas of medical diagnostics, as: thermoregulation study [1], muscular pain [2], breast cancer [3], vascular disorder [4], rheumatoid diseases [5], osteoarthritis [6, 7], Raynaud’s phenomenon [8] etc. Various thermography studies have been performed during the last decade for the assessment of thermal symmetry in hand regions [9]. Recently the thermographic technology was successfully applied in animal models as a tool for the quick evaluation of inflammation after invasive intervention in reconstructive plastic surgery [10].

In medical IRT, the abnormalities can be diagnosed by visual and subjective analysis, but the human based diagnoses are more likely to errors due to visual exhaustion, negligence, mental workload, etc. The segmentation by Regions of Interesse (ROI) is often an initial step in thermographic medical analysis, where the automatic approaches could lead to fast and highly reproducible outcomes [11]. Due to different geometrical shapes and proportions of body parts, it’s not possible to capture the ROIs properly without background while data acquisition. Based on the procedure used to define these parameters, the segmentation process can be categorized as: (a) manual, where software is used to manually mark the ROI with pre-defined or user-defined shapes; (b) semiautomated, when the human intervention is required to reduce the search space for automatic segmentation or to inspect visually and modify the automatically obtained ROI; (c) fully-automated, where the different approaches, like thresholding, clustering, geometric and thermal features are used for automatic determination of parameters which define the ROI.

Thermography shows the exact location of thermal abnormalities related to physiological and metabolic processes; therefore, it has a great potential in medical use. However, MITI technology still has a limited use in diagnostic due to a lot of false negative and false positive rates. The problem is not connected to the equipment because the infrared (IR) cameras with a high thermal sensitivity, above the 0.06 °C, provide the high-quality images. One of the main problems is the wrong interpretation of the obtained results due to the lack of automated feature extraction on thermal images for specific diseases. Therefore, the main objective of this research work was to develop an algorithm for automated segmentation and extracted features on thermal images in order to support medical decision-making and help to specify feature that can be significant signs for disease classification.

2 Contribution to Life Improvement

The information extracted from the IR images after its proper analysis is the basis for identifying, monitoring or pre-diagnostic of different types of diseases. To automate this process, modern devices have enough capacity to provide superficial analysis using the special analytical tools. However, the huge amount of diseases and various individual anatomical thermal features of human body cause difficulties to implement one or few well-known algorithms for all cases.

The important contribution of the present work is development of a novel algorithm for the IR image segmentation and feature extraction for each cohort of patient with specific disease, related with the inflammation processes in the human body. Ankylosing spondylitis (AS), a common type of spondyloarthropathy, is a chronic inflammatory autoimmune disease that mainly affects spine joints, causing severe, chronic pain; additionally, in more advanced cases, it can cause spine fusion [12]. Early diagnosis is critical for establishing a proper therapy that halts the natural progression of the disease and clinical evaluation requires complementary radiological information through a combination of techniques (radiography, computed tomography and MRI) [13].

The algorithm suggested in this paper combined with IR thermal camera can offer a novel quick and non-invasive tool for diagnosing and monitoring some kinds of rheumatoid diseases. Another important task of this work is to improve protocol of thermal measurements and increase a database of thermal images of patients with specific diseases that may contribute to the use of medical thermography in hospitals in the future.

3 Materials and Methods

Present study was carried out in partnership with the Center for the Study of Chronic Diseases of the Faculty of Medical Sciences of the Nova University of Lisbon (CEDOC|FCM-UNL) in the research project: “MyoSpA: o papel do músculo nas espondiloartropatias, um novo paradigma”.

The participant’s cohort of 41 volunteers, 14 females and 27 males, between 18 to 50 years old, an average height 1.73 ± 0.1 (m) and weight 75.4 ± 12.6 (kg). The participants were divided into two groups: I group of 15 individuals with AS disease and II control group with 26 participants. The pain syndrome had more than 89.5% of participants with AS and 10.5% were without pain, thus signalizing that this disease has a big influence of daily lifestyle. On the other side, in the control group, without AS diagnosis, the 57.7% of participants had pain syndrome, which signalized that a lot of people are suffering from the back pain even without associated diagnosis.

The measurements were performed in the ambient temperature using a thermal camera FLIR® E6, with a thermal sensitivity of <0.06 °C. An IR resolution of 160 × 120 pixels was interpolated to 320 × 240 resolution within the camera electronics. The camera was switched on 15 min before acquisition. The emissivity parameter on the camera was set as that for the skin, ε = 0.98. The camera lens was placed in parallel to the frontal plane of the subject’s body at the distance of 1.5 m. The measurements have been carried out in the laboratory room with no access of solar radiation and/or any heaters, the room temperature was about 21 °C and humidity was maintained at approximately 50%. The black matte curtain was used as background to prevent any infrared reflections and to make the background uniform.

All volunteers were completed a questionnaire regarding the general information and agreement to participate in the project. The volunteers were asked not to smoke, abstain from alcohol or coffee, not to perform physical activity, use skin creams or spray on the research area 6 h before the examination. Before measurement, each participant had to stay undressed for 10 min for the purpose of accommodation to the ambient temperature. During the measurements each participant was in the same standing position, facing the wall, the feet were together, the head was looking straight ahead and the arms were down to the sides.

4 Methodology

The medical images edge detection (MIED) is an important step toward understanding image features. With the increasing numbers of medical images techniques, the use of computers for processing and analysis of images has become critical necessary. The MIED is extensively used in image segmentation when images are divided into areas of interest. This information has greatly increased the knowledge of normal and pathological anatomy and are the critical components in diagnostic and treatment planning [11,12,13,14, 16].

Ankylosing spondylitis (AS) primarily affects the spine and the sacroiliac joints that connect the lower spine to the pelvis, resulting in pain in the lower back, hips, and buttocks. So, our work was concentrated on the posterior side of the back, the target region was specified in the thermal abnormalities in lumbar region, as one of the possible feature of AS disease. The principal steps that were taking into consideration during this study are shown in the Fig. 1:

Fig. 1.
figure 1

Algorithm for automated segmentation and feature extraction of thermal image

Thermal images were obtained in pseudo colors and, as the first step, the infrared images were converted to a grayscale, using the formula:

$$ {\text{Gray = 0}} . 2 1 2 6 {\text{R + 0}} . 1 7 1 5 2 {\text{G + 0}} . 0 7 2 2 {\text{B}} $$
(1)

The linear Gauss filter was applied to blur images and remove the noise:

$$ g\left( {x,y} \right) = \frac{1}{{2\pi \sigma^{2} }}e^{{ - \frac{{x^{2} + y^{2} }}{{2\sigma^{2} }}}} $$
(2)

where x is the distance from the origin in the horizontal axis, y is the distance from the origin in the vertical axis, and σ is the standard deviation of the Gaussian distribution.

In our work the Sobel’s operator [14] (Fig. 4, a) was used to detect edge of human body in each thermal image. The Im defined as the source image, and Gx and Gy were two images which at each point contain the vertical and horizontal derivative approximations respectively, the computations were as follows:

$$ {\text{G}}_{\text{x}} { = }\left[ {\begin{array}{*{20}c} { - 1} & 0& 1\\ { - 2} & 0& 2\\ { - 1} & 0& 1\\ \end{array} } \right] * {\text{I}}_{\text{m}} \quad {\text{and}}\quad {\text{G}}_{\text{y}} { = }\left[ {\begin{array}{*{20}c} 1& 2& 1\\ 0& 0& 0\\ { - 1} & { - 2} & { - 1} \\ \end{array} } \right] * {\text{I}}_{\text{m}} $$
(3)

As example, in the Fig. 2 is shown a comparison between results from applying of different gradient operators into thermal image of patient with AS.

Fig. 2.
figure 2

Example of gradient operators: (a) Prewitt; (b) Canny; (c) Sobel

In the healthy persons the temperature distribution on the back is usually symmetrical relatively to the vertebral column (VC). Asymmetry on the region of temperature distribution relative to the VC is the main criteria on diagnosis of an inflammatory process or chronic disease. From the areas with an abnormally high or low temperature, the symptoms of many diseases can be recognized in the early stages of their occurrence.

Thus, after detecting the edges of the human body, the axes of vertical symmetry X and horizontal Y were found (Fig. 4, b) using the formulas:

$$ X_{S} = \frac{{\sum\nolimits_{i = 1}^{n - 1} {\frac{{\left| {L_{i} + R_{i} } \right|}}{2}} }}{n}\quad Y_{S} = \frac{{\sum\nolimits_{j = 1}^{m - 1} {\frac{{\left| {Lw_{j} + A_{j} } \right|}}{2}} }}{m} $$
(4)

where n and m are the numbers of pixels in Li columns and rows, respectively; Ri are the coordinates of left and right edge pixels of each row, Lwj, Aj – coordinates of lower and upper back edge pixels of each column.

Segmentation of medical images is an important challenging task in detecting the temperature abnormalities present in the body. Despite the huge effort in solving it, there is no single approach that can generally solve the problem of segmentation for the huge among of image varieties. In this study the K-means clustering algorithm was used for segmentation of infrared thermal images. This algorithm is based on minimization of the objective function using the formula:

$$ J(V) = \sum\limits_{i = 1}^{C} {\sum\limits_{j = 1}^{{C_{i} }} {(\left\| {x_{i} - v_{j} } \right\|)^{2} } } $$
(5)

where \( \left\| {x_{i} - v_{j} } \right\| \) is the Euclidean distance between xi and vj, ci – the number of data points in ith cluster and c – the number of cluster centers. The algorithm consists in choosing the number of cluster K, and then implying the K-means clustering to the image. In the Fig. 3 is shown an example of results obtained after applying the proposed k-mean clustering algorithm onto thermal images of the back of healthy person and one with AS disease. It could be clearly noticed from the cluster 5 that in healthy patient were not detected inflammatory zone, in opposite, as in patient that had AS disease. After ROI detection the targeted region was selected from vertical Ys axis of symmetry starting on the cervical part and ending on the sacral spine. This region was divided into two parts: left and right lower back. The areas of regions and horizontal Xs coordinates were calculates by using the formula (5).

Fig. 3.
figure 3

Results of k-mean clustering for IR images: (a) normal case; (b) patient with AS

In the Fig. 4 is shown results of automated segmentation and feature extraction of thermal image on one patient with AS disease.

Fig. 4.
figure 4

Image processing: (a) edge detection, (b) Xs and Ys axis of symmetry, (c) ROI-segmentation

5 Discussion Results

The deep and objective diagnostic information, like severity and type of a disease can only be obtained by statistical analysis of the ROI. The segmentation of ROI is often an initial step in thermographic analysis, where the automatic approaches lead to fast and highly reproducible outcomes [14, 15]. Due to different geometrical shapes and proportions of body parts, it is not possible to capture the ROIs properly without the background during the process of data acquisition. The human back thermal picture varies individually, and it is difficult to state the exact features for some disease. This requires a large amount of measurements of significant cohort of patients with one specific disease. As thermal asymmetry distribution is not good enough for manual analysis, which can be appropriate only when a significant strong difference in color on thermal images are observed for the feature extraction and segmentation, the ROI needs to be solved automatically. The most significant benefit of the developed algorithm is automated segmentation of ROI with analyzing the side of asymmetry based on the central axis of the spine. The proposed algorithm for automatic segmentation of body regions is consistent with the solutions provided by other research groups [14, 15]. During its developing the main question were considered:

  1. (i)

    entire region segmentation, where the edge detection and thresholding techniques are commonly used to extract the body region from background [16];

  2. (ii)

    anatomical region segmentation, geometric and local thermal features to locate the specific anatomical regions [17];

  3. (iii)

    diseased area segmentation, in order to locate the hottest or coldest regions [18].

The developed experimental protocol for IR thermal measurements turns to be appropriate for measurements in the hospitals, as well as it was well accepted by the participants. Analyzing features from the IR images of the patients with AS diseases we observe that for almost all patients with AS the significant feature was an abnormal temperature distribution among lumbar region or/and along all spine. The skin temperature distribution of those healthy as well as individuals with associate diagnosis represents the different pattern. Another important result observed in this study: the thermal images of the participants with the back pain complains clearly demonstrated the difference of temperature exactly in the places indicated by the participants. This allows to assume that thermography clearly shows the area of pain syndrome or thermal abnormalities. An additional information which can be obtained from thermal measurements: it was noticed that a lot of women has an area of higher temperature as a result of a bra strap that is too tight, that can cause poor posture, back and neck pain, shoulder grooves leading to numbness in the fingers and restrict circulation to muscle. It should be mentioned that the local temperature abnormalities and the asymmetry of the IR thermal image depends on the disease stage and severity, as well as the period of the disease treatment process.

6 Conclusions

The paper presents an algorithm for IR image segmentation as well as its features extraction. Its application to the cohort of patient with specific disease, ankylosing spondylitis (AS), shows that it can be used for automatic thermal image-processing, segmentation and feature. Proposed solution solves problem of ROI’s detection by automatic segmentation and the location of thermal abnormalities in the patients’ back.

The experimental protocol used in present for the IR thermal camera measurements shows a good correlation with a medical observation. However, the methodology needs to be validated in the further research study by increasing the database of IR images and statistical analysis. The developed algorithm and measurements protocol with combination of IR thermography can offer a novel quick and non-invasive tool for diagnosis and monitoring of rheumatoid diseases in real time for saving lives.