Cognitive neural prosthetics