Various device embodiments may comprise an implantable medical device for implantation in a body and for applying neural stimulation to a neural target in the body. The device may comprise a neural stimulation electrode configured for use in stimulating the neural target, a neural stimulator configured to deliver neural stimulation through the electrode to the neural target, a sensor configured to sense a physiological response to stimulation of motor fibers at the neural target, and a controller operatively connected to the neural stimulator to control the neural stimulation and operatively connected to the sensor to receive a signal indicative of the physiological response. The controller may be configured to detect a potential neural injury and perform an action in response to the detected potential neural injury.