Dimensionality Reduction and Nearest Neighbors for Improving Out-of-Distribution Detection in Medical Image Segmentation

McKell Woodland1,2Orcid, Nihil Patel1Orcid, Austin Castelo1Orcid, Mais Al Taie1Orcid, Mohamed Eltaher1Orcid, Joshua P. Yung1Orcid, Tucker J. Netherton1Orcid, Tiffany L. Calderone1Orcid, Jessica I. Sanchez1Orcid, Darrel W. Cleere3, Ahmed Elsaiey3, Nakul Gupta3Orcid, David Victor3, Laura Beretta1Orcid, Ankit B. Patel4,2Orcid, Kristy K. Brock1Orcid
1: The University of Texas MD Anderson Cancer Center, Houston, TX, USA, 2: Rice University, Houston, TX, USA, 3: Houston Methodist Hospital, Houston, TX, USA, 4: Baylor College of Medicine, Houston, TX, USA
Publication date: 2024/10/23
https://doi.org/10.59275/j.melba.2024-g93a
PDF · Code · Video · arXiv

Abstract

Clinically deployed deep learning-based segmentation models are known to fail on data outside of their training distributions. While clinicians review the segmentations, these models tend to perform well in most instances, which could exacerbate automation bias. Therefore, detecting out-of-distribution images at inference is critical to warn the clinicians that the model likely failed. This work applied the Mahalanobis distance (MD) post hoc to the bottleneck features of four Swin UNETR and nnU-net models that segmented the liver on T1-weighted magnetic resonance imaging and computed tomography. By reducing the dimensions of the bottleneck features with either principal component analysis or uniform manifold approximation and projection, images the models failed on were detected with high performance and minimal computational load. In addition, this work explored a non-parametric alternative to the MD, a k-th nearest neighbors distance (KNN). KNN drastically improved scalability and performance over MD when both were applied to raw and average-pooled bottleneck features. Our code is available at https://github.com/mckellwoodland/dimen_reduce_mahal

Keywords

Out-of-distribution detection · Mahalanobis distance · Nearest Neighbors · Principal component analysis · Uniform manifold approximation and projection

Bibtex @article{melba:2024:020:woodland, title = "Dimensionality Reduction and Nearest Neighbors for Improving Out-of-Distribution Detection in Medical Image Segmentation", author = "Woodland, McKell and Patel, Nihil and Castelo, Austin and Al Taie, Mais and Eltaher, Mohamed and Yung, Joshua P. and Netherton, Tucker J. and Calderone, Tiffany L. and Sanchez, Jessica I. and Cleere, Darrel W. and Elsaiey, Ahmed and Gupta, Nakul and Victor, David and Beretta, Laura and Patel, Ankit B. and Brock, Kristy K.", journal = "Machine Learning for Biomedical Imaging", volume = "2", issue = "UNSURE2023 special issue", year = "2024", pages = "2006--2052", issn = "2766-905X", doi = "https://doi.org/10.59275/j.melba.2024-g93a", url = "https://melba-journal.org/2024:020" }
RISTY - JOUR AU - Woodland, McKell AU - Patel, Nihil AU - Castelo, Austin AU - Al Taie, Mais AU - Eltaher, Mohamed AU - Yung, Joshua P. AU - Netherton, Tucker J. AU - Calderone, Tiffany L. AU - Sanchez, Jessica I. AU - Cleere, Darrel W. AU - Elsaiey, Ahmed AU - Gupta, Nakul AU - Victor, David AU - Beretta, Laura AU - Patel, Ankit B. AU - Brock, Kristy K. PY - 2024 TI - Dimensionality Reduction and Nearest Neighbors for Improving Out-of-Distribution Detection in Medical Image Segmentation T2 - Machine Learning for Biomedical Imaging VL - 2 IS - UNSURE2023 special issue SP - 2006 EP - 2052 SN - 2766-905X DO - https://doi.org/10.59275/j.melba.2024-g93a UR - https://melba-journal.org/2024:020 ER -

2024:020 cover