Next Article in Journal / Special Issue
Brain Age Prediction Using 2D Projections Based on Higher-Order Statistical Moments and Eigenslices from 3D Magnetic Resonance Imaging Volumes
Previous Article in Journal
The Influence of Substrate on the Optical Properties of Gold Nanoslits
Previous Article in Special Issue
Lesion Detection in Optical Coherence Tomography with Transformer-Enhanced Detector
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Brief Report

WindowNet: Learnable Windows for Chest X-ray Classification

1
Munich Institute of Biomedical Engineering, TUM School of Computation, Information, and Technology, Technical University of Munich, 80333 Munich, Germany
2
Department of Radiology, University Hospital Ludwig-Maximilians-University, 81377 Munich, Germany
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
J. Imaging 2023, 9(12), 270; https://doi.org/10.3390/jimaging9120270
Submission received: 5 September 2023 / Revised: 20 November 2023 / Accepted: 4 December 2023 / Published: 6 December 2023

Abstract

:
Public chest X-ray (CXR) data sets are commonly compressed to a lower bit depth to reduce their size, potentially hiding subtle diagnostic features. In contrast, radiologists apply a windowing operation to the uncompressed image to enhance such subtle features. While it has been shown that windowing improves classification performance on computed tomography (CT) images, the impact of such an operation on CXR classification performance remains unclear. In this study, we show that windowing strongly improves the CXR classification performance of machine learning models and propose WindowNet, a model that learns multiple optimal window settings. Our model achieved an average AUC score of 0.812 compared with the 0.759 score of a commonly used architecture without windowing capabilities on the MIMIC data set.

1. Introduction

To better differentiate subtle pathologies, chest X-rays (CXRs) are commonly acquired with a high bit depth. For example, the images in the MIMIC data set provide 12-bit gray values; see [1]. However, to reduce the file size and save bandwidth, these images are often compressed to a lower bit depth. The Chest X-ray 14 data set, for example, was reduced to 8-bit depth before publication [2].
Under optimal conditions, the human eye can differentiate between 700 and 900 shades of gray, or 9- to 10-bit depth [3]. Hence, radiologists cannot differentiate all 12-bit gray values when inspecting a chest X-ray. To better identify subtle contrasts, a windowing operation is applied to the image [4,5]: contrast is increased by limiting the range of gray tones (see Figure 1). These windowing operations can be specified by their center (level) and width.
In contrast to chest radiographs, gray values in computed tomography (CT) images are calibrated to represent a specific Hounsfield Unit (HU) [6]. For example, an HU value of −1000 corresponds to air, and 0 HU, to distilled water at standard pressure and temperature; bones range from 400 HU to 3000 HU [6]. To highlight the lung in a chest CT image, one could apply a window with a level of −600 HU and width of 1500 HU [7]. In other words, everything below −1350 HU is displayed as black, and everything above 150 HU, as white. Consequently, more distinct gray tone values can be used for the specified range, resulting in higher contrast.
For CT images, several studies showed that windowing improves the classification performance of deep neural networks [8,9,10,11]. For CXRs, no quantitative scale like Hounsfield Unit exists. Nevertheless, radiologists window CXRs for enhanced contrast during inspection. Furthermore, depending on the region of interest, they use different window settings. This observation leads to the following research questions: does windowing affect chest X-ray classification performance, and if so, can windowing improve it? To the best of our knowledge, so far, chest X-rays are commonly processed using a deep learning model without applying any windowing operation (for example, [12,13]). This study investigates the effect of windowing on chest X-ray classification and proposes a model, WindowNet, that learns optimal windowing settings.
Our contributions are as follows:
  • We show that a higher bit depth (8-bit vs. 12-bit depth) improves chest X-ray classification performance.
  • We demonstrate that applying a window to chest radiographs as a pre-processing step increases classification performance.
  • We propose WindowNet, a chest X-ray classification model that learns optimal windowing settings.

2. Materials and Methods

2.1. Data Set

To investigate the importance of windowing in chest X-ray classification, we selected the MIMIC data set, as it is the only publicly available, large-scale chest X-ray data set with full bit depth [1]. The MIMIC data set provides chest radiographs in the original Digital Imaging and Communications in Medicine (DICOM) format with 12-bit-depth gray values, containing 377,110 frontal and lateral images from 65,379 patients. The images have been labeled according to the 14 CheXpert classes: atelectasis, cardiomegaly, consolidation, edema, enlarged cardiomediastinum, fracture, lung lesion, lung opacity, no finding, pleural effusion, pleural other, pneumonia, pneumothorax, and support devices [14]. In our experiments, we used the provided training, validation, and test splits. During pre-processing, the images were resized to 224 × 224 pixels.

2.2. Architectures

2.2.1. Baseline

As a baseline model (baseline) for all experiments, we used DenseNet-121 [15] pre-trained on ImageNet [16], which is commonly used for chest X-ray classification [12,17,18]. For fine tuning, we replaced the classification layer with a 14-dimensional fully connected layer.

2.2.2. WindowNet

To incorporate windowing into the model architecture, we extended the baseline architecture by prepending a windowing layer, as illustrated in Figure 2. In the following, we refer to this model as WindowNet.
We implemented the windowing operation as a 1 × 1 convolution operation with clamping, similar to [10]. This implementation of windowing utilizing convolutional kernels enables the model to learn and use multiple windows in parallel. As the pre-trained DenseNet-121 expects three input channels, we added an additional 1 × 1 convolution operation with three output channels after the windowing operation. Following the windowing layer, the images are scaled to the floating point range ( 0.0 , 255.0 ) and then normalized according to the ImageNet mean and standard deviation.

2.2.3. Training

Both models were trained with binary cross-entropy loss, AdamW optimization with a learning rate of 1 × 10−4 [19], and a batch size of 32. During training, the learning rate was divided by a factor of 10 if the validation loss did not improve in three consecutive epochs. The training was stopped if the validation loss did not improve after 5 consecutive epochs. The final models were selected based on the checkpoint with the highest mean validation area under the receiver operating characteristic curve (AUC). Due to the exploratory nature of our research and the necessity for multiple comparisons, we refrain from providing p-values. Instead, we provide 95 % confidence intervals, which were computed using the non-parametric bootstrap method involving 10,000-fold resampling at the image level.

2.3. Experiments

2.3.1. Eight-Bit vs. Twelve-Bit Depth

As applying a windowing operation in our experiments required a higher initial bit depth than that conventionally used for chest X-ray image classification, we first tested the effect of bit depth on classification performance. We trained the baseline model with 8-bit and 12-bit depth and compared mean and class-wise AUC scores. In both settings, no windowing operation was applied. However, the 12-bit images were still scaled to the floating point range ( 0.0 , 255.0 ) . In both settings, the images were normalized according to the ImageNet mean and standard deviation.

2.3.2. Single Fixed Window

To investigate whether windowing has an effect on classification performance, we trained the baseline model with a single fixed windowing operation applied to the 12-bit CXRs. After windowing, the images were scaled to have a maximum value of 255 and normalized according to the ImageNet mean and standard deviation.
For windowing, we used a fixed window level of 100 and levels ranging from 250 to 3500 in steps of 250. All levels were combined with fixed window widths of 500, 1000, 1500, 2000, and 3000. For evaluation, we compared the mean and class-wise AUCs of each model to the baseline with no windowing, i.e., a window level of 2048 and width of 4096.

2.3.3. Trainable Multi-Windowing

To test if end-to-end optimized windows improve chest X-ray classification performance, we compared our proposed WindowNet to the baseline and a modified WindowNet without clamping in the windowing layer (No Windowing), i.e., a conventional 1 × 1 convolutional layer. Furthermore, we trained the “No Windowing” model with random contrast and brightness augmentations (Augmentations).
In our experiments, we used 14 windows based on the set of class-wise top 3 windows found during the single-window experiment and the additional full-range “window”. The selection was based on the validation results. We initialized the learnable windows with the resulting windows (level, width): (100, 3000), (1250, 1000), (1500, 3000), (1750, 2000), (1750, 3000), (2000, 2000), (2250, 2000), (2250, 3000), (2500, 2000), (2500, 3000), (2750, 3000), (3250, 1000), (750, 3000), and (2048, 4096). The comparison models, “No Windowing” and “Augmentations”, having a conventional 1 × 1 convolution operation, were default-initialized using Kaiming initialization [20].

2.4. Windowing

A windowing operation can be described by its center (window level) and width (window width). Formally, the windowing operation applied to a pixel value p x can be defined as
window ( p x ) = min ( max ( p x , L ) , U ) ,
U = W L + W W 2 ,
L = W L W W 2 .
where U is the upper limit and L is the lower limit of the window defined by window level WL and window width WW.
For efficient training, the windowing operation can be re-written using a clamped 1 × 1 convolution operation between 0.0 and 255. The weight matrix is initialized as W = U W W , and the bias term, as b = U W W L , similar to [10]. More specifically, weights are initialized with 255 W W , and the bias, with 255 W W · W L W W 2 , where W W and W L correspond to a channel’s initial windowing range.
min max W x + b , 0 , U = min max U W W x U W W L , 0 , U
= min max U W W x L , 0 , U
= min max ( x L , 0 ) , U
= min ( max ( x , L ) , U ) .
To recover the window level and width after training, we compute
W W = U W ,
W L = b W + W W 2 .

3. Results

3.1. Eight-Bit vs. Twelve-Bit Depth

The classification AUCs, when trained with 8-bit or 12-bit depth, are shown in Table 1. Training with 12-bit images improved the average classification performance compared with 8-bit images (0.772 vs. 0.759 AUC). Also, most (12/14) class-wise AUCs increased when training was conducted with a higher bit depth. The only exceptions were atelectasis and pleural effusion, where training with 8-bit images resulted in slightly higher AUCs, with 0.751 vs. 0.749 and 0.883 vs. 0.879, respectively.

3.2. Single Fixed Window

The results of training with fixed window chest X-rays are reported in Table 2. They demonstrate that windowing improved chest X-ray classification AUCs for most classes (12/14), except for fracture and pneumonia, with AUCs of 0.710 vs. 0.706 and 0.698 vs. 0.690, respectively. On average, the window with a level of 2500 and width of 3000 performed slightly better than the full-range one, with AUCs of 0.775 vs. 0.772. Across all windows, a window width of 3000 performed best with varying window levels.
A comparison of the four best-performing windows to the baseline is shown in Table 3. All five settings achieved similar average AUC scores. No single window performed consistently better across all classes, suggesting that multiple windows could overall improve the classification performance.

3.3. Trainable Multi-Windowing

The effect of learning multiple optimal windows using our proposed WindowNet is reported in Table 4, where it is compared to the baseline, and the WindowNet architecture without windowing (“No Windowing”) and random contrast and brightness augmentations (“Augmentations”). Overall, WindowNet performed considerably better, with an average AUC of 0.812 compared with 0.750 of the eight-bit baseline. When compared with a conventional 1 × 1 convolution operation in the WindowNet architecture (“No Windowing”), the results demonstrate the improvement of windowing, with average AUCs of 0.812 vs. 0.790. Training the WindowNet architecture with random contrast and brightness (“Augmentations”) improved the average AUC from 0.790 to 0.804. Training with random contrast and brightness augmentations improved the “No Windowing” results for some classes, similarly to learning multiple windows. For other classes, for example, pneumonia or pneumothorax, learning multiple windows further improved the classification AUC results from 0.727 to 0.750 and from 0.856 to 0.886, respectively.
For nearly all classes (12/14), our proposed WindowNet model achieved a higher AUC than the baseline trained with eight-bit images. For example, pneumothorax classification AUC improved from 0.802 to 0.886 with windowing. Only for the fracture and pleural other classes, the baseline model performed better, with AUCs of 0.664 vs. 0.615 and 0.823 vs. 0.793, respectively.
The windows learned after training are shown in Figure 3. The model learned a diverse set of windows, with levels from 90 to 3450 and widths from 850 to 4120.

4. Discussion

In this study, we investigated the importance of windowing, inspired by radiologists. Our results show that our proposed multi-windowing model, WindowNet, considerably outperformed a popular baseline architecture, with a mean AUC of 0.812 compared with 0.759 (see Table 4). As a necessary pre-condition, we also demonstrated that the common bit-depth reduction negatively affected classification performance (0.759 vs. 0.772 AUCs), as seen in Table 1. Based on these results, we recommend refraining from reducing image depth when storing or releasing data sets.
Similarly to related work in the CT domain [8,10,11], our results show that windowing is a useful pre-processing step for neural networks operating on chest X-rays. These findings are also in line with the observed manual windowing performed by radiologists in their daily practice. In addition, like radiologists apply multiple windows when inspecting a single image, no single window was better across classes, including not windowing at all (see Table 2).
When comparing our proposed WindowNet with the same architecture but without windowing, in other words, a conventional 1 × 1 convolution operation, our results show that the windowing operation is an important aspect of the architecture (see Table 4), even when accounting for training with random contrast and brightness augmentations. When inspecting the learned windows (see Figure 3), the windows converged to 14 different settings. This provides further evidence that multiple windows are important for classification performance.
While our study’s results are promising, limitations include the exploratory nature of the study and the evaluation on a data set from a single institution, due to the lack of other high-bit-depth public data sets. Further research is needed to show generalization to other data sets and institutions. Another limitation is that the model learns general windowing settings. In contrast, radiologists adapt the windowing settings based on the specific image. Future work could investigate an image-based window-setting prediction layer.
In conclusion, we believe our work offers an important contribution to the field of computer vision and radiology by demonstrating that multi-windowing strongly improves chest X-ray classification performance, as shown by our proposed model, WindowNet (https://gitlab.lrz.de/IP/windownet, accessed on 1 December 2023).

Author Contributions

Conceptualization, A.W., S.H., B.S., M.I., and T.L.; methodology, A.W. and S.H.; software, A.W.; validation, A.W.; writing—original draft preparation, A.W.; writing—review and editing, S.H., B.S., M.I., and T.L. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported in part by the German Federal Ministry of Health’s program for digital innovations for the improvement of patient-centered care in healthcare (grant agreement No. 2520DAT920).

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The MIMIC data set used in this study is available at https://physionet.org/content/mimic-cxr/2.0.0/, last accessed on 1 December 2023.

Conflicts of Interest

The authors declare no conflict of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript; or in the decision to publish the results.

References

  1. Johnson, A.E.; Pollard, T.J.; Berkowitz, S.J.; Greenbaum, N.R.; Lungren, M.P.; Deng, C.Y.; Mark, R.G.; Horng, S. MIMIC-CXR, a de-Identified Publicly Available Database of Chest Radiographs with Free-Text Reports. Sci. Data 2019, 6, 317. [Google Scholar] [CrossRef] [PubMed]
  2. Wang, X.; Peng, Y.; Lu, L.; Lu, Z.; Bagheri, M.; Summers, R.M. ChestX-ray8: Hospital-scale Chest X-ray Database and Benchmarks on Weakly-Supervised Classification and Localization of Common Thorax Diseases. In Proceedings of the 2017 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Honolulu, HI, USA, 21–26 July 2017; pp. 3462–3471. [Google Scholar] [CrossRef]
  3. Kimpe, T.; Tuytschaever, T. Increasing the Number of Gray Shades in Medical Display Systems—How Much Is Enough? J. Digit. Imaging 2007, 20, 422–432. [Google Scholar] [CrossRef] [PubMed]
  4. Siela, D. Chest Radiograph Evaluation and Interpretation. AACN Adv. Crit. Care 2008, 19, 444–473; quiz 474–475. [Google Scholar] [CrossRef] [PubMed]
  5. Bae, K.T.; Mody, G.N.; Balfe, D.M.; Bhalla, S.; Gierada, D.S.; Gutierrez, F.R.; Menias, C.O.; Woodard, P.K.; Goo, J.M.; Hildebolt, C.F. CT Depiction of Pulmonary Emboli: Display Window Settings. Radiology 2005, 236, 677–684. [Google Scholar] [CrossRef] [PubMed]
  6. Maier, A.; Steidl, S.; Christlein, V.; Hornegger, J. (Eds.) Medical Imaging Systems: An Introductory Guide; Lecture Notes in Computer Science; Springer International Publishing: Cham, Switzerland, 2018; Volume 11111. [Google Scholar] [CrossRef]
  7. Kazerooni, E.A.; Gross, B.H. Cardiopulmonary Imaging; Lippincott Williams & Wilkins: Philadelphia, PA, USA, 2004. [Google Scholar]
  8. Karki, M.; Cho, J.; Lee, E.; Hahm, M.H.; Yoon, S.Y.; Kim, M.; Ahn, J.Y.; Son, J.; Park, S.H.; Kim, K.H.; et al. CT Window Trainable Neural Network for Improving Intracranial Hemorrhage Detection by Combining Multiple Settings. Artif. Intell. Med. 2020, 106, 101850. [Google Scholar] [CrossRef] [PubMed]
  9. Huo, Y.; Tang, Y.; Chen, Y.; Gao, D.; Han, S.; Bao, S.; De, S.; Terry, J.G.; Carr, J.J.; Abramson, R.G.; et al. Stochastic Tissue Window Normalization of Deep Learning on Computed Tomography. J. Med. Imaging 2019, 6, 044005. [Google Scholar] [CrossRef] [PubMed]
  10. Lee, H.; Kim, M.; Do, S. Practical Window Setting Optimization for Medical Image Deep Learning. arXiv 2018, arXiv:1812.00572. [Google Scholar]
  11. Kwon, J.; Choi, K. Trainable Multi-contrast Windowing for Liver CT Segmentation. In Proceedings of the 2020 IEEE International Conference on Big Data and Smart Computing (BigComp), Busan, Republic of Korea, 19–22 February 2020; pp. 169–172. [Google Scholar] [CrossRef]
  12. Rajpurkar, P.; Irvin, J.; Zhu, K.; Yang, B.; Mehta, H.; Duan, T.; Ding, D.; Bagul, A.; Langlotz, C.; Shpanskaya, K. Chexnet: Radiologist-level Pneumonia Detection on Chest X-rays with Deep Learning. arXiv 2017, arXiv:1711.05225. [Google Scholar] [CrossRef]
  13. Wollek, A.; Graf, R.; Čečatka, S.; Fink, N.; Willem, T.; Sabel, B.O.; Lasser, T. Attention-Based Saliency Maps Improve Interpretability of Pneumothorax Classification. Radiol. Artif. Intell. 2023, 5, e220187. [Google Scholar] [CrossRef] [PubMed]
  14. Irvin, J.; Rajpurkar, P.; Ko, M.; Yu, Y.; Ciurea-Ilcus, S.; Chute, C.; Marklund, H.; Haghgoo, B.; Ball, R.; Shpanskaya, K. Chexpert: A Large Chest Radiograph Dataset with Uncertainty Labels and Expert Comparison. In Proceedings of the AAAI Conference on Artificial Intelligence, Honolulu, HI, USA, 27 January–1 February 2019; Volume 33, pp. 590–597. [Google Scholar]
  15. Huang, G.; Liu, Z.; Van Der Maaten, L.; Weinberger, K.Q. Densely Connected Convolutional Networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA, 21–26 July 2017; pp. 4700–4708. [Google Scholar]
  16. Deng, J.; Dong, W.; Socher, R.; Li, L.J.; Li, K.; Fei-Fei, L. ImageNet: A Large-Scale Hierarchical Image Database. In Proceedings of the 2009 IEEE Conference on Computer Vision and Pattern Recognition, Miami, FL, USA, 20–25 June 2009; pp. 248–255. [Google Scholar] [CrossRef]
  17. Wollek, A.; Willem, T.; Ingrisch, M.; Sabel, B.; Lasser, T. Out-of-distribution detection with in-distribution voting using the medical example of chest x-ray classification. Med. Phys. 2023, 1–12. [Google Scholar] [CrossRef] [PubMed]
  18. Xiao, J.; Bai, Y.; Yuille, A.; Zhou, Z. Delving into Masked Autoencoders for Multi-Label Thorax Disease Classification. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, Waikoloa, HI, USA, 3–7 January 2023; pp. 3588–3600. [Google Scholar]
  19. Loshchilov, I.; Hutter, F. Decoupled Weight Decay Regularization. arXiv 2019, arXiv:1711.05101. [Google Scholar] [CrossRef]
  20. He, K.; Zhang, X.; Ren, S.; Sun, J. Delving Deep into Rectifiers: Surpassing Human-Level Performance on ImageNet Classification. In Proceedings of the 2015 IEEE International Conference on Computer Vision (ICCV), Santiago, Chile, 7–13 December 2015; pp. 1026–1034. [Google Scholar] [CrossRef]
Figure 1. Applying a windowing operation enhances the contrast of particular structures of an image. For example, the depicted windowing operation improves cardiomegaly classification performance on the MIMIC data set.
Figure 1. Applying a windowing operation enhances the contrast of particular structures of an image. For example, the depicted windowing operation improves cardiomegaly classification performance on the MIMIC data set.
Jimaging 09 00270 g001
Figure 2. Optimal multi-window chest X-ray classification. Our proposed WindowNet architecture learns to optimize multiple windows for improved classification. The windowing operation is implemented as 1 × 1 convolution with clamping in the range (0, 255). The convolution weights are initialized with 255 width , and the bias, with 255 width · level width 2 , where width and level correspond to a channel’s initial windowing range.
Figure 2. Optimal multi-window chest X-ray classification. Our proposed WindowNet architecture learns to optimize multiple windows for improved classification. The windowing operation is implemented as 1 × 1 convolution with clamping in the range (0, 255). The convolution weights are initialized with 255 width , and the bias, with 255 width · level width 2 , where width and level correspond to a channel’s initial windowing range.
Jimaging 09 00270 g002
Figure 3. Windows learned during the training of WindowNet. For window initialization, the following window levels (L) and widths (W) were used (level, width): (100, 3000), (1250, 1000), (1500, 3000), (1750, 2000), (1750, 3000), (2000, 2000), (2250, 2000), (2250, 3000), (2500, 2000), (2500, 3000), (2750, 3000), (3250, 1000), (750, 3000), and no window (2048, 4096).
Figure 3. Windows learned during the training of WindowNet. For window initialization, the following window levels (L) and widths (W) were used (level, width): (100, 3000), (1250, 1000), (1500, 3000), (1750, 2000), (1750, 3000), (2000, 2000), (2250, 2000), (2250, 3000), (2500, 2000), (2500, 3000), (2750, 3000), (3250, 1000), (750, 3000), and no window (2048, 4096).
Jimaging 09 00270 g003
Table 1. Effect of bit depth on chest X-ray classification performance. A higher bit depth improved AUC values for most (12/14) classes. Higher values are highlighted in bold. All AUC values with respective 95 % confidence intervals.
Table 1. Effect of bit depth on chest X-ray classification performance. A higher bit depth improved AUC values for most (12/14) classes. Higher values are highlighted in bold. All AUC values with respective 95 % confidence intervals.
Finding8-Bit Depth12-Bit Depth
Atelectasis0.751 [0.736–0.767]0.749 [0.733–0.764]
Cardiomegaly0.770 [0.757–0.784]0.774 [0.760–0.788]
Consolidation0.740 [0.715–0.765]0.742 [0.716–0.766]
Edema0.831 [0.818–0.844]0.833 [0.820–0.846]
Enlarged cardiomediastinum0.691 [0.656–0.726]0.701 [0.663–0.737]
Fracture0.664 [0.624–0.705]0.710 [0.671–0.748]
Lung lesion0.680 [0.644–0.716]0.682 [0.644–0.719]
Lung opacity0.680 [0.665–0.695]0.690 [0.674–0.705]
No finding0.789 [0.774–0.805]0.797 [0.781–0.811]
Pleural effusion0.883 [0.873–0.892]0.879 [0.869–0.889]
Pleural other0.823 [0.789–0.854]0.831 [0.799–0.860]
Pneumonia0.659 [0.634–0.684]0.698 [0.674–0.721]
Pneumothorax0.802 [0.766–0.836]0.828 [0.790–0.863]
Support devices0.868 [0.857–0.879]0.888 [0.878–0.898]
Mean0.7590.772
Table 2. Effect of fixed windowing on chest X-ray classification AUCs. For each finding, the best-performing window and the baseline without windowing are reported. Higher AUCs values are highlighted in bold. Enlarged cardiom. = enlarged cardiomediastinum.
Table 2. Effect of fixed windowing on chest X-ray classification AUCs. For each finding, the best-performing window and the baseline without windowing are reported. Higher AUCs values are highlighted in bold. Enlarged cardiom. = enlarged cardiomediastinum.
FindingNo WindowBest Fixed Window
Atelectasis0.749 (2048, 4096)0.757 (2750, 3000)
Cardiomegaly0.774 (2048, 4096)0.786 (1750, 3000)
Consolidation0.742 (2048, 4096)0.744 (2500, 3000)
Edema0.833 (2048, 4096)0.841 (1750, 3000)
Enlarged cardiom.0.701 (2048, 4096)0.734 (2250, 3000)
Fracture0.710 (2048, 4096)0.706 (1000, 3000)
Lung lesion0.682 (2048, 4096)0.720 (2500, 3000)
Lung opacity0.690 (2048, 4096)0.690 (2250, 3000)
No finding0.797 (2048, 4096)0.804 (2500, 3000)
Pleural effusion0.879 (2048, 4096)0.888 (2500, 3000)
Pleural other0.831 (2048, 4096)0.850 (2750, 3000)
Pneumonia0.698 (2048, 4096)0.690 (1750, 3000)
Pneumothorax0.828 (2048, 4096)0.832 (1750, 3000)
Support devices0.888 (2048, 4096)0.889 (2750, 3000)
Mean0.772 (2048, 4096)0.775 (2500, 3000)
Table 3. Best fixed single-window settings for chest X-ray classification found during grid search. The class-wise AUCs of the four best-performing windows (Windows 1–4) and the baseline without windowing are reported. Additionally, mean validation AUCs are provided. The highest AUC values are highlighted in bold. Enlarged cardiom. = enlarged cardiomediastinum.
Table 3. Best fixed single-window settings for chest X-ray classification found during grid search. The class-wise AUCs of the four best-performing windows (Windows 1–4) and the baseline without windowing are reported. Additionally, mean validation AUCs are provided. The highest AUC values are highlighted in bold. Enlarged cardiom. = enlarged cardiomediastinum.
WindowNone (Baseline)#1#2#3#4
Level20482500175027502250
Width40963000300030003000
Finding
Atelectasis0.7490.7560.7530.7490.757
Cardiomegaly0.7740.7830.7860.7740.777
Consolidation0.7420.7440.7430.7420.740
Edema0.8330.8300.8410.8330.831
Enlarged cardiom.0.7010.7100.7000.7010.686
Fracture0.7100.6950.6700.7100.669
Lung lesion0.6820.7200.7100.6820.700
Lung opacity0.6900.6830.6860.6900.684
No finding0.7970.8040.8000.7970.798
Pleural effusion0.8790.8880.8830.8790.885
Pleural other0.8310.8410.8200.8310.850
Pneumonia0.6980.6860.6900.6980.683
Pneumothorax0.8280.8220.8320.8280.809
Support devices0.8880.8870.8870.8880.889
Mean (validation)0.8040.8070.8020.8050.803
Mean (test)0.7720.7750.7720.7720.768
Table 4. Comparison of baseline (8-bit), WindowNet without windowing (“No Windowing”) and with random contrast and brightness (“Augmentations”), and WindowNet AUCs for chest X-ray classification with 95 % confidence intervals. Higher values are highlighted in bold. Enlarged cardiom. = enlarged cardiomediastinum.
Table 4. Comparison of baseline (8-bit), WindowNet without windowing (“No Windowing”) and with random contrast and brightness (“Augmentations”), and WindowNet AUCs for chest X-ray classification with 95 % confidence intervals. Higher values are highlighted in bold. Enlarged cardiom. = enlarged cardiomediastinum.
Finding8-BitNo WindowingAugmentationsWindowNet
Atelectasis0.751 [0.736–0.767]0.812 [0.794–0.830]0.824 [0.806–0.841]0.829 [0.811–0.846]
Cardiomegaly0.770 [0.757–0.784]0.814 [0.797–0.831]0.826 [0.809–0.842]0.827 [0.810–0.843]
Consolidation0.740 [0.715–0.765]0.808 [0.773–0.841]0.828 [0.796–0.859]0.823 [0.789–0.855]
Edema0.831 [0.818–0.844]0.891 [0.875–0.907]0.892 [0.876–0.908]0.897 [0.880–0.912]
Enlarged cardiom.0.691 [0.656–0.726]0.745 [0.698–0.790]0.746 [0.698–0.792]0.764 [0.715–0.812]
Fracture0.664 [0.624–0.705]0.619 [0.525–0.711]0.563 [0.469–0.658]0.615 [0.517–0.709]
Lung lesion0.680 [0.644–0.716]0.701 [0.652–0.749]0.761 [0.711–0.808]0.744 [0.691–0.793]
Lung opacity0.680 [0.665–0.695]0.726 [0.704–0.748]0.746 [0.724–0.768]0.745 [0.724–0.766]
No finding0.789 [0.774–0.805]0.855 [0.841–0.869]0.858 [0.844–0.872]0.859 [0.845–0.873]
Pleural effusion0.883 [0.873–0.892]0.909 [0.898–0.920]0.915 [0.903–0.926]0.918 [0.907–0.928]
Pleural other0.823 [0.789–0.854]0.721 [0.631–0.806]0.803 [0.725–0.875]0.793 [0.721–0.856]
Pneumonia0.659 [0.634–0.684]0.731 [0.694–0.765]0.727 [0.691–0.762]0.750 [0.716–0.782]
Pneumothorax0.802 [0.766–0.836]0.830 [0.793–0.864]0.856 [0.819–0.888]0.886 [0.856–0.913]
Support devices0.868 [0.857–0.879]0.897 [0.884–0.910]0.909 [0.896–0.922]0.918 [0.906–0.930]
Mean0.7590.7900.8040.812
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Wollek, A.; Hyska, S.; Sabel, B.; Ingrisch, M.; Lasser, T. WindowNet: Learnable Windows for Chest X-ray Classification. J. Imaging 2023, 9, 270. https://doi.org/10.3390/jimaging9120270

AMA Style

Wollek A, Hyska S, Sabel B, Ingrisch M, Lasser T. WindowNet: Learnable Windows for Chest X-ray Classification. Journal of Imaging. 2023; 9(12):270. https://doi.org/10.3390/jimaging9120270

Chicago/Turabian Style

Wollek, Alessandro, Sardi Hyska, Bastian Sabel, Michael Ingrisch, and Tobias Lasser. 2023. "WindowNet: Learnable Windows for Chest X-ray Classification" Journal of Imaging 9, no. 12: 270. https://doi.org/10.3390/jimaging9120270

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