Applied Sciences (Oct 2018)

Improving Convolutional Neural Networks’ Accuracy in Noisy Environments Using k-Nearest Neighbors

  • Antonio-Javier Gallego,
  • Antonio Pertusa,
  • Jorge Calvo-Zaragoza

DOI
https://doi.org/10.3390/app8112086
Journal volume & issue
Vol. 8, no. 11
p. 2086

Abstract

Read online

We present a hybrid approach to improve the accuracy of Convolutional Neural Networks (CNN) without retraining the model. The proposed architecture replaces the softmax layer by a k-Nearest Neighbor (kNN) algorithm for inference. Although this is a common technique in transfer learning, we apply it to the same domain for which the network was trained. Previous works show that neural codes (neuron activations of the last hidden layers) can benefit from the inclusion of classifiers such as support vector machines or random forests. In this work, our proposed hybrid CNN + kNN architecture is evaluated using several image datasets, network topologies and label noise levels. The results show significant accuracy improvements in the inference stage with respect to the standard CNN with noisy labels, especially with relatively large datasets such as CIFAR100. We also verify that applying the ℓ 2 norm on neural codes is statistically beneficial for this approach.

Keywords