1. A system comprising: a multicontact electrode assembly configured to record voltage activity from a peripheral nerve, wherein each contact of the multicontact electrode assembly is associated with a weight representing a presence of an ideal point source at a location associated with the respective contact, wherein a set of the weights are concentrating into a transformation matrix representing a spatial sensitivity of the peripheral nerve; a processing component comprising: a sensor mapping component configured to map the voltage activity detected at the multicontact electrode onto a spatial distribution representing the peripheral nerve based on the transformation matrix to determine a relative voltage activity of each ideal point source; an evaluation component configured to classify the relative voltage activity into an event class associated with a respective command for medical device based on at least one of the ideal point sources; and a controller component configured to provide a control signal to the medical device, wherein the control signal is determined based on the event class associated with the respective command for the medical device, wherein the medical device changes a function based by adjusting at least one physical parameter based on the control signal.