Internal image geometry helps neural networks flag doubtful medical scans
Medical algorithms often issue confident diagnoses on unusual patient cases, but inspecting the spatial neighbourhood of internal representations can identify borderline scans for physician review.

Medical imaging algorithms are frequently trained to classify complex patient scans into definitive diagnostic categories. Yet when confronted with an ambiguous brain scan or an unusual case, standard deep learning models typically return a firm prediction anyway, without signalling any doubt. In clinical neurology, where misclassifying a scan can alter patient management, an automated system that never admits uncertainty can mislead clinicians.
To address that problem, computer scientists study the reject option, a mechanism where an algorithm assesses its own reliability and declines to make a prediction when confidence is low.1 By flagging questionable outputs, such systems allow human radiologists to focus their attention on the difficult cases where automated analysis is prone to error.
In a study published on September 21, 2026, in the Journal of Imaging Informatics in Medicine, lead author Andrea Arcangeli and colleagues from the Bioengineering Unit at Fondazione Monasterio (Pisa, Italy) tested a reject option framework that evaluates prediction reliability by analysing the local neighbourhood around a scan in a model's internal representation space.
Before calculating a reliability score, the system traces a clear sequence of steps. First, a scanner produces a patient brain image, which enters a convolutional neural network. Second, the network compresses the high-dimensional image into an internal mathematical map known as a latent space, where scans with similar features cluster together.1 Third, the framework plots the new scan on those coordinates and identifies its closest neighbours.1 Fourth, it checks whether those neighbouring scans share the same clinical diagnosis.1 Fifth, if the neighbours show conflicting labels or sit far away, a secondary classifier flags the prediction as uncertain and refers the scan for manual evaluation.1
How can an algorithm recognise its own uncertainty?
Andrea Arcangeli and colleagues evaluated a framework that measures prediction reliability by examining the immediate neighbourhood of a brain scan inside a convolutional neural network.1
The method relies on three specific measurements of that internal geometric space.1 The first metric, Simple Data Point Target Density, calculates the proportion of neighbouring scans that share the sample's predicted label.1 The second metric is a distance-weighted extension of that density score, granting greater weight to closer neighbours.1 The third metric is the k* value, which reflects local label agreement and intra-class consistency without relying on explicit parametric assumptions.1
Addressing the mechanics of that third measure, Andrea Arcangeli told Primary, "Strictly speaking, we did not introduce the k* metric itself; we incorporated it into our framework as one of the descriptors of local latent-space structure." Arcangeli observed that "On the ADNI dataset, k* alone was highly informative for identifying unreliable predictions, whereas on PPMI its performance was substantially lower and the distance-weighted DPTD metric was more informative." Arcangeli added that "Different datasets and learned representations can exhibit different local structures, supporting the use of complementary neighbourhood descriptors rather than relying on a single metric."

To convert those measurements into a decision, the researchers trained a logistic regression rejector post hoc, meaning it was fitted on latent representations after the base convolutional neural network was already trained.1 This post-hoc design allows the uncertainty filter to integrate into existing diagnostic pipelines without altering the underlying neural network.1
Operating boundaries for such a filter remain adaptable to clinical context rather than fixed at an arbitrary cutoff. Arcangeli told Primary, "We deliberately did not define a single optimal operating threshold." Arcangeli explained that the chosen threshold governs the trade-off between how many scans the system classifies and the overall accuracy of those retained predictions. Arcangeli stated, "The appropriate operating point would therefore depend on the specific application and on the relative cost of an incorrect prediction versus referring a case for further evaluation." Arcangeli also noted, "We did not specifically evaluate threshold stability across patient subgroups in this study, so we cannot draw conclusions about how robust that boundary would be across demographic or clinical subpopulations."
How did the neighbourhood framework perform on clinical scans?
The reject option framework attained an area under the receiver operating characteristic curve of 0.843 on Alzheimer's disease scans and 0.884 on Parkinson's disease scans when using all three neighbourhood metrics.1
Arcangeli and colleagues tested their framework on two public neuroimaging archives: the Alzheimer's Disease Neuroimaging Initiative, using fluorodeoxyglucose positron emission tomography scans, and the Parkinson's Progression Markers Initiative, using dopamine transporter single-photon emission computed tomography scans.1
On the Alzheimer's dataset, the three-feature rejector achieved an area under the receiver operating characteristic curve of 0.843, with a 95% confidence interval of 0.809 to 0.874, and an excess area under the risk-coverage curve of 0.0278, with a 95% confidence interval of 0.0193 to 0.0370, according to the study.1 On the Parkinson's dataset, the framework reached an area under the receiver operating characteristic curve of 0.884, with a 95% confidence interval of 0.867 to 0.900, alongside an excess area under the risk-coverage curve of 0.0169, with a 95% confidence interval of 0.0133 to 0.0209, the authors reported.1
However, the neighbourhood analysis did not outperform maximum softmax probability, a standard baseline that derives uncertainty from the model's final output layer.1 On the Alzheimer's cohort, the authors detected no statistically significant difference between the two approaches for either metric.1 On the Parkinson's cohort, maximum softmax probability performed significantly better than the neighbourhood framework for both area under the curve and excess area under the risk-coverage curve.1
Why did standard output probabilities outperform internal geometry?
Maximum softmax probability derived from a neural network's final layer delivered stronger reliability signals on Parkinson's scans than internal latent measurements.1

Addressing that performance gap, Arcangeli told Primary, "Our results show that maximum softmax probability provided a stronger reliability signal on PPMI, but they do not allow us to establish why this occurred." In the Parkinson's evaluations, Arcangeli noted that "the distance-weighted DPTD alone achieved an AUC-ROC of 0.887, compared with 0.918 for MSP."
Arcangeli proposed that the final classification layer might have converted representations into confidence scores that were exceptionally well tuned to prediction accuracy for that dataset. Arcangeli observed that "on ADNI, the neighbourhood-based approach performed comparably to MSP, whereas on PPMI MSP was clearly superior." Arcangeli added that "This suggests that the relative value of output confidence and latent-space geometry may depend on the model and on the structure of the learned representation."
Investigating internal geometry provides diagnostic benefits that raw confidence scores cannot supply. Arcangeli told Primary that "analysing latent-space neighbourhood features may also help us investigate why a model rejects a sample, whereas maximum softmax probability provides a confidence score without directly describing the local structure surrounding that case."
What are the boundaries of the proposed framework?
The findings reflect a retrospective benchmark on two curated research datasets, without testing in an active clinical workflow.1 The analysis was limited to brain scans for Alzheimer's disease and Parkinson's disease, leaving performance on other imaging modalities untested.1 Because maximum softmax probability matched or exceeded the framework across both datasets, the neighbourhood approach does not provide an accuracy advantage over standard methods.1 The technique also depends on the assumption that the underlying convolutional neural network has organized its latent space into meaningful diagnostic clusters.1
That assumption regarding diagnostic clustering faces scrutiny from the authors themselves. Arcangeli told Primary, "I would be cautious about assuming that the latent space necessarily forms clinically meaningful diagnostic clusters." Arcangeli explained, "What the convolutional network learns is a representation of image features that are useful for its classification task, and these features are not necessarily equivalent to clinically or diagnostically meaningful characteristics." For the framework to work, Arcangeli noted, the requirement is simply that local neighbourhoods preserve distinctions between correct and incorrect classifications.
Vincenzo Positano, a co-author of the study, told Primary that "the proposed neighbourhood-based approach is, in principle, agnostic to the specific imaging modality or disease." Positano explained that the core premise rests on geometry, noting that "its main assumptions concern the presence of meaningful local spatial relationships rather than the underlying pathology." Nevertheless, Positano cautioned that "its robustness to substantially different image characteristics, acquisition protocols, anatomical regions, or data distributions has not yet been established and will require dedicated validation in future studies."
Access to the computational pipeline also presents practical hurdles for outside validation. Arcangeli told Primary, "The extracted latent-space embeddings and the rejector implementation are not currently available in a public repository." Arcangeli added, "We are considering releasing the implementation to facilitate independent reproduction and application of the framework to other models and datasets."
Even without surpassing standard output probabilities, the study demonstrates that a model's internal representations provide a viable mechanism for gauging uncertainty.1 Because the framework operates post hoc, developers could test neighbourhood checks in biomedical imaging systems without retraining core models.1 The next challenge is determining whether combining latent-space metrics with output probabilities can catch borderline clinical cases that either method misses alone.
The record
44 sentences trace to 1 source and 2 contributors.
- 1 Reject Option for Medical Image Classification Using CNN-Derived Latent-Space Neighbourhood Analysis See the source
- 2 Contribution — Andrea Arcangeli 22 statements added to this article
- 3 Contribution — Vincenzo Positano 1 statement added to this article
Other consulted pages2 pages
adni.loni.usc.edu3 pages
ppmi-info.org2 pages
stai.stanford.edu1 page
Article history
-
Published 27 Nov 2026, 15:31Assembled by the Primary desk from 1 source · 2 contributors · 44 cited sentences
-
Vincenzo Positano, a co-author of the study
-
Andrea Arcangeli, lead author
- Go to the sentence: Addressing the mechanics of that third measure, Andrea Arcangeli told Primary, "Strictly speaking, we did not introduce the k* metric itself; we incorporated it into our framework as one of the descriptors of local latent-space structure."
- Go to the sentence: Arcangeli observed that "On the ADNI dataset, k* alone was highly informative for identifying unreliable predictions, whereas on PPMI its performance was substantially lower and the distance-weighted DPTD metric was more informative."
- Go to the sentence: Arcangeli added that "Different datasets and learned representations can exhibit different local structures, supporting the use of complementary neighbourhood descriptors rather than relying on a single metric."
- Go to the sentence: Arcangeli told Primary, "We deliberately did not define a single optimal operating threshold."
- Go to the sentence: Arcangeli explained that the chosen threshold governs the trade-off between how many scans the system classifies and the overall accuracy of those retained predictions.
- Go to the sentence: Arcangeli stated, "The appropriate operating point would therefore depend on the specific application and on the relative cost of an incorrect prediction versus referring a case for further evaluation."
- Go to the sentence: Arcangeli also noted, "We did not specifically evaluate threshold stability across patient subgroups in this study, so we cannot draw conclusions about how robust that boundary would be across demographic or clinical subpopulations."
- Go to the sentence: Arcangeli and colleagues tested their framework on two public neuroimaging archives: the Alzheimer's Disease Neuroimaging Initiative, using fluorodeoxyglucose positron emission tomography scans, and the Parkinson's Progression Markers Initiative, using dopamine transporter single-photon emission computed tomography scans.
- Go to the sentence: On the Parkinson's cohort, maximum softmax probability performed significantly better than the neighbourhood framework for both area under the curve and excess area under the risk-coverage curve.
- Go to the sentence: Maximum softmax probability derived from a neural network's final layer delivered stronger reliability signals on Parkinson's scans than internal latent measurements.
- Go to the sentence: Addressing that performance gap, Arcangeli told Primary, "Our results show that maximum softmax probability provided a stronger reliability signal on PPMI, but they do not allow us to establish why this occurred."
- Go to the sentence: In the Parkinson's evaluations, Arcangeli noted that "the distance-weighted DPTD alone achieved an AUC-ROC of 0.887, compared with 0.918 for MSP."
- Go to the sentence: Arcangeli proposed that the final classification layer might have converted representations into confidence scores that were exceptionally well tuned to prediction accuracy for that dataset.
- Go to the sentence: Arcangeli observed that "on ADNI, the neighbourhood-based approach performed comparably to MSP, whereas on PPMI MSP was clearly superior."
- Go to the sentence: Arcangeli added that "This suggests that the relative value of output confidence and latent-space geometry may depend on the model and on the structure of the learned representation."
- Go to the sentence: Arcangeli told Primary that "analysing latent-space neighbourhood features may also help us investigate why a model rejects a sample, whereas maximum softmax probability provides a confidence score without directly describing the local structure surrounding that case."
- Go to the sentence: The technique also depends on the assumption that the underlying convolutional neural network has organized its latent space into meaningful diagnostic clusters.
- Go to the sentence: Arcangeli told Primary, "I would be cautious about assuming that the latent space necessarily forms clinically meaningful diagnostic clusters."
- Go to the sentence: Arcangeli explained, "What the convolutional network learns is a representation of image features that are useful for its classification task, and these features are not necessarily equivalent to clinically or diagnostically meaningful characteristics."
- Go to the sentence: For the framework to work, Arcangeli noted, the requirement is simply that local neighbourhoods preserve distinctions between correct and incorrect classifications.
- Go to the sentence: Arcangeli told Primary, "The extracted latent-space embeddings and the rejector implementation are not currently available in a public repository."
- Go to the sentence: Arcangeli added, "We are considering releasing the implementation to facilitate independent reproduction and application of the framework to other models and datasets."
