Literature DB >> 31364328

Classification of radiographic lung pattern based on texture analysis and machine learning.

Youngmin Yoon1, Taesung Hwang1, Hojung Choi2, Heechun Lee3.   

Abstract

This study evaluated the feasibility of using texture analysis and machine learning to distinguish radiographic lung patterns. A total of 1200 regions of interest (ROIs) including four specific lung patterns (normal, alveolar, bronchial, and unstructured interstitial) were obtained from 512 thoracic radiographs of 252 dogs and 65 cats. Forty-four texture parameters based on eight methods of texture analysis (first-order statistics, spatial gray-level-dependence matrices, gray-level-difference statistics, gray-level run length image statistics, neighborhood gray-tone difference matrices, fractal dimension texture analysis, Fourier power spectrum, and Law's texture energy measures) were used to extract textural features from the ROIs. The texture parameters of each lung pattern were compared and used for training and testing of artificial neural networks. Classification performance was evaluated by calculating accuracy and the area under the receiver operating characteristic curve (AUC). Forty texture parameters showed significant differences between the lung patterns. The accuracy of lung pattern classification was 99.1% in the training dataset and 91.9% in the testing dataset. The AUCs were above 0.98 in the training set and above 0.92 in the testing dataset. Texture analysis and machine learning algorithms may potentially facilitate the evaluation of medical images.
© 2019 The Korean Society of Veterinary Science.

Entities:  

Keywords:  Neural network model; thoracic radiography; visual pattern recognition

Mesh:

Year:  2019        PMID: 31364328      PMCID: PMC6669202          DOI: 10.4142/jvs.2019.20.e44

Source DB:  PubMed          Journal:  J Vet Sci        ISSN: 1229-845X            Impact factor:   1.672


INTRODUCTION

Lung disease pathologically alters lung tissue and usually changes the opacity of the lungs in radiographs. Depending on the tissue affected, a characteristic lung pattern is obtained. Accordingly, classification of the observed lung pattern is very important for the differentiation of lung diseases in thoracic radiography. Texture or pattern is the intuitive quality of an image area. Computer-based texture analysis can be used to numerically quantify the characteristic features of a texture such as smooth, heterogeneous, coarse, and so on [1]. Texture analyses are categorized as structural, model-based, transformational, and statistical methods. Structural methods that represent texture using well-defined primitive features provide a decent symbolic description of the image [2]. Sophisticated mathematical models such as fractal or stochastic methods have also been used to analyze texture [34]. Fourier and wavelet transform procedures facilitate the analysis of texture in a different space [56]. The statistical approaches represent texture based on properties governing the distribution and relationships of intensities [2]. Texture analysis has been utilized in a variety of applications including automated inspection, document processing, and remote sensing [78910]. It was also applied in a series of studies of medical images [1112131415]. Machine learning, a subfield of computer science and artificial intelligence, involves study in which algorithms are constructed based on data learning and predictions [16]. Unlike statistical modeling, machine learning does not require prior assumptions about the underlying relationships between the variables [17]. Artificial neural networks, inspired by the biological neural networks that constitute the brain, are a set of well-established machine learning algorithms [1819]. Each connection between neuron-like nodes transmits numbers from one network to another, and the networks alter the binding strength of the neurons. Based on their ability for classification or regression, artificial neural networks have been used in a wide range of disciplines including movement control [20], finance [21], pattern recognition [22], and medical diagnosis [23]. Computer-aided detection is an interdisciplinary technology combining machine learning and computer vision with medical imaging [32425262728]. It facilitates disease diagnosis and provides a second opinion for clinicians. While conventional computer-aided detection uses numerical features as a parameter, recent computer-aided detection uses a medical image as a parameter [252729]. Most studies of computer-aided detection include the following steps: cropping the region of interest (ROI) from medical images, extracting features from the ROIs, training an algorithm using the features, and prediction using the trained algorithm [18243031]. This approach suggests that lung patterns could be automatically classified. Lung patterns can be represented by an ROI, quantified by texture analysis, and that quantified data could be used for machine learning. In this study, the goal was to determine useful texture parameters for discrimination of the four specific lung patterns and develop a predictive model that distinguishes the lung patterns based on the selected parameters.

MATERIALS AND METHODS

Radiographs over the period 2010 to 2016 were collected from a database at the Veterinary Medical Teaching Hospital of Gyeongsang National University because a large number of radiographs could be acquired and clients had agreed to use the radiographs in research. The REGIUS Model 190 (Konica Minolta, Japan) direct digitizer was used for computed radiography (50–70 kVp, 300 mA, and 0.02 sec). Thoracic radiographs with lateromedial and ventrodorsal projections were used. Follow-up images of the same patient were included to increase the number data images. Up to three follow-up images were used. WIZPACS (version 1.027, Medien, Korea) was used for interpretation. Three veterinary radiologists (Y Yoon, T Hwang, and H Lee) made decisions regarding subject inclusion or exclusion. Each radiologist evaluated six lung regions (right cranial lobe, right middle lobe, right caudal lobe, cranial segment of left cranial lobe, caudal segment of left cranial lobe, and left caudal lobe) on ventrodorsal projection and two lung fields (cranioventral lung field and caudodorsal lung field) on lateromedial projection. They then classified the lung regions into one of the following four patterns: normal lung pattern (P1), alveolar pattern (P2), bronchial pattern (P3), or unstructured interstitial pattern (P4). The lung lobes were excluded if they presented a mixed pattern or were inconsistent among individual interpretations in order to minimize the false-negative rate. The algorithms for ROI selection, texture analysis, and machine learning were coded in MATLAB (R2016b, MathWorks, USA). The toolboxes used in MATLAB included computer vision system, curve fitting, data acquisition, global optimization, image acquisition, image processing, neural network, optimization, parallel computing, and statistics and machine learning tools. A computer with Microsoft Windows 10 (64 bit), an Intel Core i7 4.9 gigahertz central processing unit, 32-gigabyte random-access memory, and an NVIDIA Quadro M4000 graphics card was used for this study. ROI selection was performed by one (Y Yoon) of the evaluators and was based on the following criteria: 1) a maximum rectangular area that did not overlap with ribs, major vessels, diaphragm, or mediastinum, 2) at least 30 pixels in width and height, and 3) three or fewer ROIs selected from a single lobe. The number of ROIs used was the same as the minimum of the obtained lung patterns; this was done to avoid problems arising from imbalanced data, such as that associated with a false trained model that highly favors the over-represented class [32]. A total of 1200 ROIs, 300 for each pattern were obtained from 252 dogs and 65 cats. The numbers of males and females were 162 and 155. The mean age and its standard deviation were 8.3 and 4.0 years. The number of pixels in an ROI ranged from 1,225 to 10,710 (mean 1,914.7 and standard deviation 1,129.0). The texture analysis was based on 8-bit converted radiographs. A total of 44 texture parameters (Tables 1, 2, and 3) were selected from those previously used in eight methods of texture analysis [4678111315]: method 1) first-order statistics: mean value (parameter 1), medial value (parameter 2), standard deviation (parameter 3), skewness (parameter 4), and kurtosis (parameter 5) were derived; method 2) spatial gray-level-dependence matrices: angular second moment (parameter 6), contrast (parameter 7), correlation (parameter 8), sum of squares (parameter 9), inverse difference moment (parameter 10), sum of average (parameter 11), sum of variance (parameter 12), sum of entropy (parameter 13), entropy (parameter 14), difference variance (parameter 15), and difference entropy (parameter 16) were computed; method 3) gray-level-difference statistics: contrast (parameter 17), angular second moment (parameter 18), entropy (parameter 19), and mean (parameter 20) were calculated; method 4) gray-level run length image statistics: short run emphasis (parameter 21), long run emphasis (parameter 22), gray-level nonuniformity (parameter 23), run percentage (parameter 24), run length nonuniformity (parameter 25), low gray-level run emphasis (parameter 26), and high gray-level run emphasis (parameter 27) were derived; method 5) neighborhood gray-tone difference matrices: coarseness (parameter 28), contrast (parameter 29), business (parameter 30), complexity (parameter 31), and strength (parameter 32) are calculated; method 6) fractal dimension texture analysis: the Hurst coefficients for dimension 4 (parameter 33), 3 (parameter 34), 2 (parameter 35), and 1 (parameter 36) were computed; method 7) Fourier power spectrum: radial sum (parameter 37) and angular sum (parameter 38) were derived; method 8) Law's texture energy measures: LL-texture energy from LL kernel (parameter 39), EE-texture energy from EE-kernel (parameter 40), SS-texture energy from SS-kernel (parameter 41), LE-average texture energy from LE and EL kernels (parameter 42), ES-average texture energy from ES and SE kernels (parameter 43), and LS-average texture energy from LS and SL kernels (parameter 44) were derived. These parameters were used to extract texture features from ROIs using the algorithm coded in MATLAB. One-way analysis of variance with Tukey's post-hoc test was used to compare the parameters (SPSS version 19.0, SPSS Inc., USA). A p value of less than 0.05 indicated statistical significance of the comparison.
Table 1

Mean and standard deviation values for texture analysis parameters used for distinguishing radiographic lung patterns

ParametersP1P2P3P4
Five parameters of first-order statistics method
1*46.82 ± 18.71117.07 ± 36.1894.09 ± 28.8772.4 ± 19.63
2*45.54 ± 18.81117.4 ± 36.1793.51 ± 29.2971.6 ± 19.82
3*6.16 ± 3.7211.09 ± 4.811.73 ± 4.468.34 ± 2.27
4*0.89 ± 0.78-0.02 ± 0.380.21 ± 0.450.54 ± 0.53
5*5.27 ± 6.682.63 ± 0.552.83 ± 0.833.68 ± 1.82
Eleven parameters of spatial gray-level-dependence matrix method
60.096 ± 0.8070.006 ± 0.0100.004 ± 0.0060.007 ± 0.011
7*7.48 ± 4.3315.83 ± 7.4022.2 ± 9.3515.94 ± 5.36
80.95 ± 1.200.89 ± 0.080.89 ± 0.050.84 ± 0.07
9*50.05 ± 69.00145.82 ± 136.78156.48 ± 130.3574.19 ± 43.13
101.08 ± 7.670.30 ± 0.080.26 ± 0.060.30 ± 0.07
11*95.23 ± 37.57236.08 ± 72.34190.11 ± 57.76146.61 ± 39.25
12*192.7 ± 273.6567.5 ± 544.9603.7 ± 515.3280.8 ± 171.4
13*3.43 ± 0.694.16 ± 0.514.24 ± 0.383.88 ± 0.35
14*4.66 ± 1.095.82 ± 0.776.00 ± 0.615.53 ± 0.67
15*3.38 ± 1.796.25 ± 2.808.85 ± 3.786.52 ± 2.17
16*1.72 ± 0.772.05 ± 0.292.23 ± 0.242.04 ± 0.27

P1, normal lung; P2, alveolar pattern; P3, bronchial pattern; P4, unstructured interstitial pattern.

*p-value < 0.001; †p-value < 0.05.

Table 2

Mean and standard deviation values for texture analysis parameters used for distinguishing radiographic lung patterns

ParametersP1P2P3P4
Four parameters of gray-level-difference statistics method
17*7.47 ± 4.3315.79 ± 7.3922.14 ± 9.3215.91 ± 5.34
18*0.25 ± 0.180.15 ± 0.050.12 ± 0.040.15 ± 0.06
19*1.68 ± 0.382.06 ± 0.292.24 ± 0.242.05 ± 0.27
20*1.90 ± 0.682.96 ± 0.743.52 ± 0.722.96 ± 0.57
Seven parameters of gray-level run length image statistics method
21*0.64 ± 0.170.66 ± 0.080.69 ± 0.050.68 ± 0.07
22*10.80 ± 34.614.53 ± 2.183.62 ± 1.013.94 ± 1.78
23*607.0 ± 289.0424.9 ± 220.7361.1 ± 176.7556.9 ± 306.1
2417.55 ± 188.722.30 ± 0.342.44 ± 0.242.40 ± 0.33
25*1795.0 ± 937.21790.8 ± 897.01687.2 ± 816.62225.6 ± 1166.7
26*44.93 ± 34.6674.13 ± 17.9768.66 ± 18.0753.79 ± 19.41
27*23.99 ± 5.6020.10 ± 4.5918.63 ± 3.7522.96 ± 5.48
Five parameters of neighborhood gray-tone difference matrix method
28*11.78 ± 5.1417.84 ± 8.6315.97 ± 5.4112.65 ± 4.63
290.18 ± 0.380.19 ± 0.180.25 ± 0.40.22 ± 0.35
302.2E+00 ± 2.7E+011.8E-05 ± 2.2E-052.3E-05 ± 3.5E-053.8E-05 ± 4.7E-05
31*903.8 ± 1,158.92,624.0 ± 2,024.03,280.2 ± 3,087.11,784.7 ± 1,112.9
32*10,946.1 ± 18,069.930,058.0 ± 41,868.728,759.5 ± 31,153.714,667.1 ± 13,414.7

P1, normal lung; P2, alveolar pattern; P3, bronchial pattern; P4, unstructured interstitial pattern.

*p-value < 0.001; †p-value < 0.05.

Table 3

Mean and standard deviation values for texture analysis parameters used for distinguishing radiographic lung patterns

ParametersP1P2P3P4
Four parameters of fractal dimension texture analysis method
33*0.21 ± 0.040.23 ± 0.070.30 ± 0.060.25 ± 0.05
34*0.31 ± 0.050.36 ± 0.070.39 ± 0.050.32 ± 0.05
35*0.33 ± 0.090.39 ± 0.070.31 ± 0.070.30 ± 0.07
3611.56 ± 138.150.27 ± 0.130.15 ± 0.110.21 ± 0.12
Two parameters of the Fourier power spectrum method
37*2,112.7 ± 931.74,893.7 ± 1,863.63,624.7 ± 1,418.03,156.7 ± 1,024.0
38296.9 ± 862.3408.5 ± 276.4336.4 ± 157.6291.3 ± 133.7
Six parameters of Law's texture energy measures method
39*19,970.2 ± 13,453.339,054.6 ± 19,385.439,921.5 ± 16,661.127,429.1 ± 9,010.2
40*257.6 ± 78.7392.4 ± 110.6553.8 ± 150.2431.3 ± 82.2
41*67.45 ± 130.0281.49 ± 20.8495.44 ± 19.5085.00 ± 17.53
42*1,405.6 ± 428.42,441.3 ± 784.63,776.8 ± 1,169.42,573.1 ± 452.7
43*117.5 ± 51.2165.1 ± 42.5208.7 ± 48.6177.7 ± 35.0
44*482.4 ± 147.1725.7 ± 205.61,027.4 ± 281.6796.3 ± 149.3

P1, normal lung; P2, alveolar pattern; P3, bronchial pattern; P4, unstructured interstitial pattern.

*p-value < 0.001; †p-value < 0.05.

P1, normal lung; P2, alveolar pattern; P3, bronchial pattern; P4, unstructured interstitial pattern. *p-value < 0.001; †p-value < 0.05. P1, normal lung; P2, alveolar pattern; P3, bronchial pattern; P4, unstructured interstitial pattern. *p-value < 0.001; †p-value < 0.05. P1, normal lung; P2, alveolar pattern; P3, bronchial pattern; P4, unstructured interstitial pattern. *p-value < 0.001; †p-value < 0.05. All of the parameters from ROIs were used for artificial neural networks. All of the selected data samples were divided such that 70% were used to train the algorithms and 30% for testing the models (261 training samples and 139 testing samples for each lung pattern). The detailed settings of the algorithm were determined at the highest performance level through trial and error in a pilot study (Fig. 1). Other configurations were used according to the default settings of MATLAB. The performance of the classifier was evaluated by determining accuracy ([correct predictions]/[number of samples]) and the area under the receiver operating characteristic curve (AUC).
Figure 1

Schematic diagram of detailed configuration and processing of artificial neural networks. Artificial neural networks consisted of one input layer with 44 nodes, two hidden layers with 15 nodes each, and one output layer with 4 nodes. Cross entropy tried to find minima or maxima by iteration. Bayesian regularization was used to calculate a gradient that was needed in the calculation of the weights to be used in the network.

RESULTS

The one-way analysis of variance showed significant differences between lung patterns in 40 texture parameters. Parameter 6, 10, 29, and 38 showed p values less than 0.05. Parameter 1, 2, 3, 4, 5, 7, 9, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 25, 26, 27, 28, 31, 32, 33, 34, 35, 37, 39, 40, 41, 42, 43, and 44 showed p values less than 0.001. In the post-hoc test, the parameters for which there were significant differences between all lung patterns (P1-P2, P1-P3, P1-P4, P2-P3, P2-P4, and P3-P4) were 1, 3, 4, 11, 14, 26, 31, 33, 34, 37, 40, 43, and 44. The accuracy of the artificial neural networks was 99.1% in the training set and 91.9% in the testing set. In addition, the AUCs were above 0.98 in the training set and above 0.92 in the testing set (Table 4).
Table 4

Performance of the artificial neural networks for lung pattern classification

DatasetAccuracy (%)AUC
P1P2P3P4
Training dataset99.11.001.000.980.99
Testing dataset91.90.990.930.920.94

AUC, Area under the receiver operating characteristic curve; P1, normal lung; P2, alveolar pattern; P3, bronchial pattern; P4, unstructured interstitial pattern.

AUC, Area under the receiver operating characteristic curve; P1, normal lung; P2, alveolar pattern; P3, bronchial pattern; P4, unstructured interstitial pattern.

DISCUSSION

Previous studies of computer-aided detection focused on disease detection by using a small-sized ROI [19253033]. Diagnosis based on a small-sized ROI may lead to misdiagnosis because it does not include a global impression or multiple findings. In addition, non-radiological information such as signalment or clinical sign, which may be important in detecting a disease, cannot be expressed by an ROI. Accordingly, using a single ROI may be more appropriate for detecting radiological findings rather than for disease differentiation. Therefore, we attempted to use ROIs to classify the specific lung pattern. Lung patterns are broadly divided into normal, alveolar, interstitial (including unstructured and nodular pattern), bronchial, and vascular patterns [34]. In this study, the nodular interstitial and vascular patterns were excluded because of the ROI selection criteria there were used. Ribs in an ROI can affect texture parameters. Thus, the ROI had to be obtained in the intercostal space and the size of the ROI had to be small. A small-sized ROI would have obtained square-shaped ROI filled with soft tissue opacity rather than an ROI containing nodules. It would also be limited in the comparison of arteries and veins or in the expression of vascular branching. In addition, mixed patterns were excluded from this study. If all the mixed patterns were classified into one class, it would be difficult to obtain consistent texture characteristics. In the case of classifying mixed patterns according to the prominent pattern, the criteria for selecting the prominent patterns would be ambiguous. Also, even if the lobes were classified into a mixed pattern, it would be highly likely that only a single pattern might be included in a small-sized ROI. Therefore, nodular, vascular, and mixed patterns were excluded. A texture parameter commonly used in diagnostic imaging such as computed tomography is the average Hounsfield unit value for an ROI. However, other features such as fineness or coarseness, homogeneous or heterogeneous enhancement, and well-delineated or ill-defined topology depend on subjective evaluation. Even if differentiation of these textures is based on a consensus between radiologists, it is difficult to agree on the extent. In this case, texture analysis can be used because it can be quantified. Although the texture parameters may vary in value even in the same region of the same patient depending on the image acquisition equipment or post-processing kernel used, texture analysis can still be used to compare ROIs obtained from the same equipment. Therefore, this study used texture analysis for ROIs acquired from the same equipment, and 40 of the 44 texture parameters showed significant differences between lung patterns. The results suggest that such parameters can be used for lung pattern classification. Furthermore, texture analysis may be used to evaluate clinically important patterns and to determine the quality of the image acquisition equipment. The number of parameters to be included is one of the important factors in constructing a predictive model. Multiple parameters may reduce the performance of the model by causing unnecessary fluctuation [35]. In this study, the 44 parameters were used to train the artificial neural networks resulting in an accuracy of 91.9% in the testing dataset. In a pilot study, models trained using the parameters from each analysis showed substantially lower performance than the study model in the testing set. Pilot study model accuracies were: first-order statistic (5 parameters), 63.8% accuracy; spatial gray-level-dependence matrix (11 parameters), 70.5%; gray-level-difference statistics (4 parameters), 54.4%; gray-level run length image statistics (7 parameters), 60.7%; neighborhood gray-tone difference matrix (5 parameters), 55.6%; fractal dimension analysis (4 parameters), 57.6%; Fourier power spectrum (2 parameters), 47.0%; and Law's texture energy measures (6 parameters), 68.6% accuracy. These results indicated that all of the selected parameters can positively influence the performance of lung pattern artificial neural networks. Parameters 11, 14, 31, 40, 43, and 44 produced p value less than 0.001 in one-way analysis of variance, and they showed significant differences between all of the lung patterns in the post-hoc test results. Thus, parameters 11, 14, 31, 40, 43, and 44 were the more important parameters for use in lung pattern classification. The accuracy obtained from the training data is generally higher or similar to that of the test data because, during machine learning, the model is fitted to the training data in order to obtain reliable predictions with general untrained data. If the model is overfitted to the training data, it yields poor performance as it overreacts to minor fluctuations in the training data. In the performance evaluation of the artificial neural networks developed in this study, small gaps were present between the training and testing datasets, thereby resulting in high accuracy. The results demonstrate successful learning by the model of generalized trends in the textures of the lung patterns studied. We are aware of several limitations of this study. All of the radiographs were generated by a single machine. It is difficult to judge how many texture parameters may be altered in images acquired from other equipment. In order to objectively validate the results of this study, data from other computed or digital radiographs should be assessed. In this study, texture analysis was applied to 8-bit converted radiographs for computation in MATLAB, whereas the actual computed radiographs were 12-bit images. Intensity information may be partially missing or integrated during the conversion. Further research is needed to assess whether such conversion has a positive or negative effect on accuracy. In this study, lung lobes disputed by the evaluators were excluded in order to minimize the false-negative rate associated with the radiologists. Therefore, the data in this study might only be composed of obvious patterns. An adequate number of unclear lung patterns should be included in further validation studies. In the present study, a reproducibility evaluation of each radiologist was not undertaken, and ROI selection was performed by a single evaluator. Even if all the evaluators agreed on the pattern classification of the lobes, the artificial neural networks might have been influenced by the subjective judgment of the evaluator who selected the ROIs. This study attempted to evaluate the utility of texture analysis and machine learning to discriminate four specific lung patterns. A number of texture parameters showed significant differences between the patterns. The developed artificial neural networks demonstrated high performance in discriminating the patterns. Texture analysis and machine learning algorithms may have potential for application in the evaluation of medical images.
  1 in total

1.  Comparison of a Deep Learning Algorithm vs. Humans for Vertebral Heart Scale Measurements in Cats and Dogs Shows a High Degree of Agreement Among Readers.

Authors:  Emilie Boissady; Alois De La Comble; Xiajuan Zhu; Jonathan Abbott; Hespel Adrien-Maxence
Journal:  Front Vet Sci       Date:  2021-12-09
  1 in total

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