Described is a system for automatically tuning the sensor feedback of a prosthetic device. The system comprises an electrode or plurality of electrodes in contact with a peripheral nerve of a user wearing a prosthetic device for administering the sensory feedback and an additional stimulus that evokes a muscle response in the user. A sensor is used to measure the muscle response. One or more processors generate a current stimulation pattern that encodes a posture of the prosthetic device. The current stimulation pattern is used in a spinal cord simulation to produce predicted muscle activations. Using the muscle response and the predicted muscle activations, an adjusted stimulation pattern is determined.
Device and method to automatically tune the nerve stimulation pattern of a sensory-feedback capable prosthesis