International Journal of Biomedical Imaging
Volume 2015 (2015), Article ID 267807, 7 pages
http://dx.doi.org/10.1155/2015/267807

Research Article

Statistical Analysis of Haralick Texture Features to Discriminate Lung Abnormalities

Nourhan Zayed and Heba A. Elnemr

Computer & Systems Department, Electronics Research Institute, Cairo 12611, Egypt

Received 23 May 2015; Revised 10 September 2015; Accepted 15 September 2015

Academic Editor: Tiange Zhuang

Copyright © 2015 Nourhan Zayed and Heba A. Elnemr. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.

Abstract.

The Haralick texture features are a well-known mathematical method to detect the lung abnormalities and give the opportunity to the physician to localize the abnormality tissue type, either lung tumor or pulmonary edema. In this paper, statistical evaluation of the different features will represent the reported performance of the proposed method. Thirty-seven patients CT datasets with either lung tumor or pulmonary edema were included in this study. The CT images are first preprocessed for noise reduction and image enhancement, followed by segmentation techniques to segment the lungs, and finally Haralick texture features to detect the type of the abnormality within the lungs. In spite of the presence of low contrast and high noise in images, the proposed algorithms introduce promising results in detecting the abnormality of lungs in most of the patients in comparison with the normal and suggest that some of the features are significantly recommended than others.

1. Introduction

The lung is an organ that performs a multitude of vital functions every second of our lives. This fact leads to considering lung abnormalities, life-sustained diseases that have high priority in detection, diagnosis, and treatment if possible. Our focus in this paper will be on two popular abnormalities within the lung, which are pulmonary edema and lung tumor. Pulmonary edema (water in the lungs) is caused by fluid building up in the air sacs of the lungs [1, 2]. On the other hand, lung cancer/tumor is a disease where uncontrolled cell growth in tissues of the lung occurred [3].

Computer-aided diagnosis (CAD) schemes for thoracic computed tomography (CT) are widely used to characterize, quantify, and detect numerous lung abnormalities, such as pulmonary edema and lung cancer [4, 5]. An accurate lung segmentation method is always a critical first step in these CAD schemes and can significantly improve the performance level of these schemes. Although manual or semiautomatic lung segmentation methods for CT images were used in some early CAD schemes [6–10], they are impractical for current CAD schemes because multidetector CT (MDCT) scanners can generate hundreds of CT slices for a patient. An automated method for lung segmentation is needed for MDCT. In addition, the eye identification/detection of the abnormality type (pulmonary edema or tumors) in computed tomography (CT) images is very difficult even for the experienced clinicians because of its variable shape along with low contrast and high noise associated with it. As the final stage of treating the lung cancer is surgical removal of the diseased lung, hence it is necessary to identify the cancer location, which can be useful before they plan for the surgery.

The aim of our work is to develop an automated novel texture analysis based method for the segmentation of the lungs and the detection of the abnormalities, whether pulmonary edema or lung tumor. Haralick’s features based on the gray level cooccurrence matrix (GLCM) are applied to capture textural patterns in lung images. The objective of this work is the selection of the most discriminating and finding out the significant texture features that can differentiate between these two types of abnormalities, in comparison to normal.

Haralick features are statistical features that are computed over the entire image. These measurements are utilized to describe the overall texture of the image using measures such as entropy and sum of variance. Chaddad et al. propose an approach, based on Haralick’s features, to detect and classify colon cancer cells. This work aimed to select the most discriminating parameters for cancer cells [11]. A study to investigate the feasibility of using Haralick features to discriminate between “cancer” and “normal” subimages within a patient is illustrated in [12].

In this paper, CT images are first preprocessed for noise reduction and image enhancement, followed by segmentation techniques, as the tools to segment the lungs, and finally Haralick texture features [13–15] are calculated. Statistical analysis is done to detect the most significant Haralick features that will characterize the type of the abnormality within the lungs. Despite the low contrast and high noise existence in the images, the proposed algorithms introduce promising results in detecting the abnormality of lungs in most of the patients in comparison with the normal.

2. Materials and Methods

This paper presents a new automatic lung cancer detection system based on Haralick texture features extracted from the slice of DICOM Lung CT images. The proposed system is accomplished in four stages: image preprocessing, lung image segmentation, feature extraction, and classification. Statistical analysis is used to obtain the best features for classification to differentiate between lung cancer patients, ordered edema patients, and control subjects. The following sections will describe in detail these stages. All image analyses were achieved without any knowledge of patient clinical characteristics or status.

2.1. Dataset

Patients with either a lung cancer tumor or pulmonary edema were encompassed in the study. This study included two datasets, the first dataset referred to the Radiology Department at New Elkasr ElAiny teaching hospital, University of Cairo. The other dataset was obtained from The Cancer Imaging Archive (TCIA) sponsored by the SPIE, NCI/NIH, AAPM, and the University of Chicago [16]. The two datasets of 532 CT images from 37 different patients were included. The images are 512 × 512 stored in DICOM format. For each lung CT image, we separate the left lung from the right lung automatically, and each separated lung is labeled as normal or edema/cancer based on the dataset information.

2.2. Preprocessing

The main goal of preprocessing is to improve the quality of an image as well as make it in a form suited for further processing by human or machine [17]. This is accomplished by enhancing the visual appearance of an image besides removing the irrelevant noise and unwanted parts in the background. The proposed enhancement process, which is based on combining filters and noise reduction techniques for pre- and postprocessing as well, is carried out applying histogram equalization (HE) [18–20] followed by Wiener filtering [21, 22].

Figure 1 presents the enhancement in the lung image contrast attained by applying the histogram equalization. However, the obtained gray scale image contains noises such as white noise and salt and pepper noise. Thus, Wiener filter is utilized to remove these noises from the enhanced lung image. Figure 1(c) shows the effect of applying Weiner filter on the contrast enhanced lung image.

(a)

(b)

(c)

Figure 1: (a) The lung CT image; (b) the histogram equalized image; (c) the Weiner filtered output image.

2.3. Lung Segmentation

Lung segmentation step aims to basically extract the voxels corresponding to the lung cavity in the axial CT scan slices from the surrounding lung anatomy. The segmentation technique proposed in [23] is utilized. This technique is based on the fact that there is a large density difference between air-filled lung tissues and surrounding tissues. Furthermore, both lungs are almost looking like mirror images of themselves in a human body. The segmentation of lung regions is achieved through the following steps. In the first step, the preprocessed CT image is converted into a binary image; a threshold of 128 was selected. Values greater than the threshold are mapped to white, while others less than that are marked as black. Consequently, the two lungs are marked and the area around them is cropped out. Second, an erosion morphological operation is employed in order to eliminate any white pixels within the two lungs. Afterward, the eroded and the original images are both divided into two equal regions. Black pixels for each region in the eroded image are counted; the region with the largest black area will be deemed as a lung mask. The attained lung mask is reflected in the opposite direction. As a result, right and left lung masks are obtained. These masks are multiplied with the corresponding original image regions; this will project the lung masks on the original two lungs images. Finally, update each black pixel in the obtained images by its original value; other pixels are set to 255. Figure 2 illustrates the lung extraction process.

(a)

(b)

(c)

(d)

(e)

Figure 2: (a) The threshold image; (b) the eroded image; (c) the lung mask mirror; (d) the mask projection of the corresponding lungs images; (e) the extracted lungs.

2.4. Feature Extraction

Feature extraction is the process of obtaining higher-level information of an image such as color, shape, and texture. Texture is a key component of human visual perception. Statistical texture methods analyze the spatial distribution of gray values, by computing local features at each point in the image and inferring a set of statistics from the distributions of the local features. Haralick et al. introduced Gray Level Cooccurrence Matrix (GLCM) and texture features back in 1973 [13]. This technique has been widely used in image analysis applications, especially in the biomedical field. It consists of two steps for feature extraction. The GLCM is computed in the first step, while the texture features based on the GLCM are calculated in the second step.

GLCM shows how often each gray level occurs at a pixel located at a fixed geometric position relative to each other pixel, as a function of the gray level [13]. The horizontal direction 00 with a range of 1 (nearest neighbor) was used in this work. The 9 texture descriptions used are presented in (4) to (13), where is the number of gray levels, is the normalized symmetric GLCM of dimension , and is the th element of the normalized GLCM [13].

Contrast (Moment 2 or standard deviation) is a measure of intensity or gray level variations between the reference pixel and its neighbor. Large contrast reflects large intensity differences in GLCM:

Homogeneity measures how close the distribution of elements in the GLCM is to the diagonal of GLCM. As homogeneity increases, the contrast, typically, decreases:

Entropy is the randomness or the degree of disorder present in the image. The value of entropy is the largest when all elements of the cooccurrence matrix are the same and small when elements are unequal:

Energy is derived from the Angular Second Moment (ASM). The ASM measures the local uniformity of the gray levels. When pixels are very similar, the ASM value will be large. Consider

Correlation feature shows the linear dependency of gray level values in the cooccurrence matrix:

where ; and ; are the means and standard deviations and are expressed as

The moments are the statistical expectation of certain power functions of a random variable and are characterized as follows.

Moment 1 () is the mean which is the average of pixel values in an image and it is represented as

Moment 2 () is the standard deviation that can be denoted as

Moment 3 () measures the degree of asymmetry in the distribution and it is defined as

And finally Moment 4 () measures the relative peak or flatness of a distribution and is also known as kurtosis:

Furthermore, difference statistics that are a subset of the cooccurrence matrix are also used. These features are based on the distribution of probability which is defined as follows:

where is the th element of the GLCM. The most basic difference statistic texture descriptions are the ASM, mean, and entropy:

When the values are very similar or close, ASM is small. ASM is large when certain values are high and others are low:

When values are concentrated near the origin, mean is small and mean is large when they are far from the origin:

Entropy is smallest when values are unequal and largest when values are equal.

The calculation of the Haralick texture features using the previous equations for the CT images volume sequences for every segmented lung (right and left) separately was performed. For each participant the gray level cooccurrence texture features: contrast, homogeneity, entropy, energy, correlation, and , , , and accompanied by the difference statistical features: ASM, contrast, mean, and entropy were obtained for each segmented lung (right and left).

2.5. Statistical Analysis

For the purpose of random lung assignment in healthy volunteers, the left lung represented the diseased lung in the same percentage of cases as the patient population. For the acute data, two single factor analyses of variance (ANOVA) tests were conducted for each Haralick texture feature measurement between affected (either left or right) and fellow lung (either left or right) for both categories cancer and edema patients. A single factor analysis of variance (ANOVA) was conducted as well between patients and controls. Other between-subject single factor analyses were conducted to find out the significant Haralick features that could differentiate cancer from edema.

3. Experimental Results

Two datasets of 532 CT images were included. For each lung CT preprocessed image, we separate the left lung from the right lung automatically as discussed before in Section 2.3, and each separated lung is labeled as normal or edema/cancer based on the dataset information. The Haralick texture features measurements for each lung separately are calculated (the gray level cooccurrence texture features: contrast, homogeneity, entropy, energy, correlation, and moments along with the difference statistical features: ASM, mean, and entropy). The mean and the standard deviation of the Haralick texture features measurements calculated as well as the ANOVA results are given for tumor patients affected lung versus fellow lung in Table 1 and for pulmonary edema patients in Table 2. The ANOVA summary of statistics for either pulmonary edema or tumor patients versus normal is given in Table 3. The significant Haralick texture features that can differentiate between pulmonary edema and tumor are found in Table 4.

Table 1: ANOVA (1 within-subject factor) results for cancer patients Haralick texture features (comparison between AL and FL). AL: affected lung; FL: fellow lung.

Feature name
AL (average ± SEM)
FL (average ± SEM)
AL versus FL

Homogeneity
0.511 ± 0.01
0.517 ± 0.01

Energy
0.372 ± 0.01
0.374 ± 0.01

Correlation
0.964 ± 0.001
0.965 ± 0.001

Contrast
231.98 ± 4.54
231.76 ± 4.54

Entropy
8.0 ± 0.19
7.94 ± 0.19

0.003 ± 0.02
0.007 ± 0.02

231.13 ± 4.54
231.75 ± 4.01

−164 ± 190.79
−683.99 ± 155.33

1784467 ± 83311
1654941 ± 56455

Diff_ASM
0.226963389 ± 0.006
0.229353096 ± 0.005

Diff_Mean
6.195 ± 0.08
6.28 ± 0.09

Diff_Entropy
3.159 ± 0.03
3.55 ± 0.03

Table 2: ANOVA (1 within-subject factor) results for edema patients Haralick texture features (comparison between AL and FL). AL: affected lung; FL: fellow lung.

Feature name
AL (average ± SEM)
FL (average ± SEM)
AL versus FL

Homogeneity
0.64 ± 0.013
0.60 ± 0.020

Energy
0.428 ± 0.01
0.429.01 ± 0.01

Correlation
0.006 ± 0.001
0.008 ± 0.001

Contrast
177.07 ± 5.89
188.58 ± 4.26

Entropy
2.10 ± 0.04
2.19 ± 0.067

0.52 ± 0.03
−0.47 ± 0.02

199.975 ± 9.658
218.583 ± 10.085

5219 ± 1436
−7539 ± 885

2854294 ± 208886
2382237 ± 263250

Diff_ASM
0.377 ± 0.01
0.288 ± 0.08

Diff_Mean
4.07 ± 0.4379
4.89 ± 0.48478

Diff_Entropy
2.96 ± 0.05
3.29 ± 0.05

Table 3: ANOVA (1 within-subject factor) results summary of statistics value for patients (either edema or cancer) Haralick texture features versus normal controls.

Feature name
Diseased versus normal controls ( value)
Feature name
Diseased versus normal controls ( value)

Homogeneity

Energy

Correlation

Contrast

Diff_ASM

Entropy

Diff_Mean

Diff_Entropy

Table 4: ANOVA (1 between-subject factor) results summary of statistics value for patients Haralick texture features cancer versus edema patients.

Feature name
Cancer versus edema patients ( value)
Feature name
Cancer versus edema patients ( value)

Homogeneity

Energy

Correlation

Contrast

ASM

Entropy

Mean

Entropy

From Table 1, we can conclude that Haralick texture features measurements (homogeneity, energy, correlation, and entropy) of the affected cancer lung were significantly different than that of the fellow lung. The homogeneity, energy, and correlation were significantly less than those of the normal fellow lung. While entropy of the cancerous lung is approaching being significantly more than that of the fellow lung, Moment 3 and the difference statistical feature ASM (diff_ASM) texture feature measurement of the cancerous lung is approaching being significantly less than that of the normal lung.

Table 2 showed that Haralick texture features measurements (homogeneity, entropy, and moments calculated from the cooccurrence matrix as well as mean and ASM computed from the difference statistics) of the pulmonary edema affected lung were also significantly different than those of the control subject lung; moreover contrast and entropy computed from the difference statistics were significantly more than those of the fellow lung.

Considering Tables 1 and 2, we can conclude from Table 3 that the homogeneity, energy, entropy, , , diff_ASM, diff_mean, and diff_entropy are good biomarkers to significantly differentiate between diseased and normal lungs without any disease specification. On the other hand, the results illustrated in Tables 1, 2, and 4 show that entropy and the entropy calculated from the difference statistics would be a good candidate to significantly differentiate between pulmonary edema and cancer.

4. Conclusion and Discussion

The texture features analyses are well known approaches to quantify and express the heterogeneity that may not be appreciated by clinical naked eyes, and it was presented before as good imaging biomarkers to differentiate between diseases. In this paper an evaluation of the Haralick texture features is done in order to identify the most significant features that can be used in order to detect and differentiate abnormalities within the lungs for cancer and edema versus normal. Our results indicate that entropy determined by gray level cooccurrence matrix and ASM is significantly different in edema patients versus normal while it is not in cancer patients versus normal. Since the entropy is the degree of randomness or the degree of disorder in the image, and the angular second moment represents the uniformity in the image, this may be interpreted as the cancer disease causing a localized heterogeneity in the diseased specified area in the lung while the edema causes heterogeneous disorder in the whole lung image. High entropy values calculated implies that the elevated level of disorder and disorganization occurred due to the edema diseased lung versus the cancer diseased lung. The energy feature that is derived from the angular second moment measures and representing the local uniformity of the gray levels is a good biomarker to differentiate between cancer and edema diseases. From Table 2, contrast is a good biomarker for the pulmonary edema disease and this agrees with the texture feature meaning which means high contrast values for heavy texture changes. Gray level cooccurrence matrix textural properties such as homogeneity, correlation, mean, and moments are good significant biomarkers for diseased lung versus normal ones in general without any specification for the disease type. Our results agree with other articles indicating that textural analysis has the potential to develop into a valuable clinical tool that improves the diagnosis, tumor staging, and therapy assessment.

While our results are promising, there is still further work that can be done in the detecting of the abnormality within the lungs to detect the type of that abnormality whether it will be a lung cancer or edema. A preliminary investigation has been done using statistical analysis to identify the most useful texture features that can be fed to any classification technique later. This statistical analysis is done using ANOVA. After selecting these features we can feed them for better localization and classification as further work.

Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.

Acknowledgments

The authors acknowledge the SPIE, the NCI, the AAPM, and The University of Chicago for providing public access to the lung cancer dataset.

References

L. B. Ware and M. A. Matthay, “Acute pulmonary edema,” The New England Journal of Medicine, vol. 353, no. 26, pp. 2788–2796, 2005.

J. Šedý, J. Zicha, J. Kuneš, P. Jendelová, and E. Syková, “Mechanisms of neurogenic pulmonary edema development,” Physiological Research, vol. 57, no. 4, pp. 499–506, 2008.

R. S. Herbst, J. V. Heymach, and S. M. Lippman, “Lung cancer,” The New England Journal of Medicine, vol. 359, no. 13, pp. 1367–1380, 2008.

N. Hollings and P. Shaw, “Diagnostic imaging of lung cancer,” European Respiratory Journal, vol. 19, no. 4, pp. 722–742, 2002.

T. Manikandan and N. Bharathi, “Lobar fissure extraction in isotropic CT lung images—an application to cancer identification,” International Journal of Computer Applications, vol. 33, no. 6, pp. 17–21, 2011.

J. Wang, F. Li, and Q. Li, “Automated segmentation of lungs with severe interstitial lung disease in CT,” Medical Physics, vol. 36, no. 10, pp. 4592–4599, 2009.

U. Baĝci, M. Bray, J. Caban, J. Yao, and D. J. Mollura, “Computer-assisted detection of infectious lung diseases: a review,” Computerized Medical Imaging and Graphics, vol. 36, no. 1, pp. 72–84, 2012.

D. Sharma and G. Jindal, “Computer aided diagnosis system for detection of lung cancer in CT scan images,” International Journal of Computer and Electrical Engineering, vol. 3, no. 5, pp. 714–718, 2011.

J. Wang, F. Li, K. Doi, and Q. Li, “Computerized detection of diffuse lung disease in MDCT: the usefulness of statistical texture features,” Physics in Medicine and Biology, vol. 54, no. 22, pp. 6881–6899, 2009.

J. Wang, F. Li, K. Doi, and Q. Li, “A novel scheme for detection of diffuse lung disease in MDCT by use of statistical texture features,” in Medical Imaging 2009: Computer-Aided Diagnosis, 726039, vol. 7260 of Proceedings of SPIE, Lake Buena Vista, Fla, USA, February 2009.

A. Chaddad, C. Tanougast, A. Dandache, and A. Bouridane, “Extraction of haralick features from segmented texture multispectral bio-images for detection of colon cancer cells,” in Proceedings of the 1st International Conference on Informatics and Computational Intelligence (ICI '11), pp. 55–59, Bandung, Indonesia, December 2011.

B. D. Fleet, J. Yan, D. B. Knoester, M. Yao, J. R. Deller Jr., and E. D. Goodman, “Breast cancer detection using haralick features of images reconstructed from ultra wideband microwave scans,” in Clinical Image-Based Procedures. Translational Research in Medical Imaging, vol. 8680 of Lecture Notes in Computer Science, pp. 9–16, Springer International, Cham, Switzerland, 2014.

R. M. Haralick, K. Shanmugam, and I. Dinstein, “Textural features for image classification,” IEEE Transactions on Systems, Man and Cybernetics, vol. 3, no. 6, pp. 610–621, 1973.

R. M. Haralick, “Statistical and structural approaches to texture,” Proceedings of the IEEE, vol. 67, no. 5, pp. 786–804, 1979.

J. M. H. du Buf, M. Kardan, and M. Spann, “Texture feature performance for image segmentation,” Pattern Recognition, vol. 23, no. 3-4, pp. 291–309, 1990.

S. G. Armato III, SPIE-AAPM-NCI Lung Nodule Classification Challenge Dataset, The Cancer Imaging Archive, 2015.

R. C. Gonzalez and R. E. Woods, Digital Image Processing, Addison-Wesley, 1992.

C. Wang and Z. Ye, “Brightness preserving histogram equalization with maximum entropy: a variational perspective,” IEEE Transactions on Consumer Electronics, vol. 51, no. 4, pp. 1326–1334, 2005.

I. Jafar and H. Ying, “Image contrast enhancement by constrained variational histogram equalization,” in Proceedings of the IEEE International Conference on Electro/Information Technology (EIT '07), pp. 120–125, IEEE, Chicago, Ill, USA, May 2007.

S.-D. Chen and A. R. Ramli, “Minimum mean brightness error bi-histogram equalization in contrast enhancement,” IEEE Transactions on Consumer Electronics, vol. 49, no. 4, pp. 1310–1319, 2003.

D. Sharma and G. Jindal, “Computer aided diagnosis system for detection of lung cancer in CT scan images,” International Journal of Computer and Electrical Engineering, vol. 3, no. 5, 2011.

S. V. Vaseghi, Advanced Digital Signal Processing and Noise Reduction, John Wiley & Sons, New York, NY, USA, 2nd edition, 2000.

H. A. Elnemr, “Statistical analysis of law's mask texture features for cancer and water lung detection,” International Journal of Computer Science Issues, vol. 10, no. 6, 2013.