Similarity-based uncertainty scores for computer-aided diagnosis