arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2408.17337cs.CVcs.LG
收藏

评估医学深度神经网络中的可靠性:对基于特征与基于置信度的OOD检测的批判性分析

Evaluating Reliability in Medical DNNs: A Critical Analysis of Feature and Confidence-Based OOD Detection

University of Oxford(牛津大学);Imperial College London(伦敦帝国学院);University of Birmingham(伯明翰大学)

Harry Anthony, Konstantinos Kamnitsas

AI总结:

本文通过构建含伪影的医学OOD基准,发现OOD伪影可能提高模型置信度,解释了基于特征的方法在OOD检测上优于基于置信度的方法,并建议在DNN流程中结合两者以弥补各自不足。

摘要:

深度神经网络(DNNs)在医学图像分析中的可靠使用需要能够识别与训练数据显著不同的输入(称为分布外,OOD)的方法,以防止错误预测。OOD检测方法可分为基于置信度的方法(使用模型的输出层进行OOD检测)或基于特征的方法(不使用输出层)。我们通过将D7P(皮肤病学)和BreastMNIST(超声)数据集划分为包含或不包含伪影(分别为标尺或标注)的子集,创建了两个新的OOD基准。模型使用无伪影图像进行训练,带有伪影的图像被用作OOD测试集。对于每张OOD图像,我们通过图像处理手动移除伪影来创建反事实图像,以评估伪影对模型预测的影响。我们表明,由于训练数据中的相关性等因素,OOD伪影可以提高模型对其预测的softmax置信度。这与常见的假设相矛盾,即OOD伪影应导致更不确定的输出,而大多数基于置信度的方法都依赖这一假设。我们利用这一点来解释为什么基于特征的方法(例如Mahalanobis分数)通常比基于置信度的方法(例如MCP)具有更高的OOD检测性能。然而,我们也表明,基于特征的方法在区分导致正确和错误预测的输入方面通常表现较差(对于OOD和ID数据均是如此)。基于这些见解,我们认为应在DNN流程中结合使用基于特征和基于置信度的方法,以减轻它们各自的弱点。该项目的代码和OOD基准可在以下地址获取:https://github.com/HarryAnthony/Evaluating_OOD_detection。

英文摘要:

Reliable use of deep neural networks (DNNs) for medical image analysis requires methods to identify inputs that differ significantly from the training data, called out-of-distribution (OOD), to prevent erroneous predictions. OOD detection methods can be categorised as either confidence-based (using the model's output layer for OOD detection) or feature-based (not using the output layer). We created two new OOD benchmarks by dividing the D7P (dermatology) and BreastMNIST (ultrasound) datasets into subsets which either contain or don't contain an artefact (rulers or annotations respectively). Models were trained with artefact-free images, and images with the artefacts were used as OOD test sets. For each OOD image, we created a counterfactual by manually removing the artefact via image processing, to assess the artefact's impact on the model's predictions. We show that OOD artefacts can boost a model's softmax confidence in its predictions, due to correlations in training data among other factors. This contradicts the common assumption that OOD artefacts should lead to more uncertain outputs, an assumption on which most confidence-based methods rely. We use this to explain why feature-based methods (e.g. Mahalanobis score) typically have greater OOD detection performance than confidence-based methods (e.g. MCP). However, we also show that feature-based methods typically perform worse at distinguishing between inputs that lead to correct and incorrect predictions (for both OOD and ID data). Following from these insights, we argue that a combination of feature-based and confidence-based methods should be used within DNN pipelines to mitigate their respective weaknesses. These project's code and OOD benchmarks are available at: https://github.com/HarryAnthony/Evaluating_OOD_detection.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑