Estimating Classification Confidence Using Kernel Densities