Compensated Synaptic Device for Improved Recognition Accuracy of Neuromorphic System