SAFE-DNN: A deep neural network with spike assisted feature extraction for noise robust inference