Techniques are provided for controlling spinal cord stimulation (SCS) or other forms of neurostimulation. In one example, SCS treatment is delivered to a patient and nerve impulse firing signals are sensed along the spinal cord following the SCS treatment. The nerve impulse signals are analyzed to determine whether the signals are associated with effective SCS and then the delivery of additional SCS is controlled to improve SCS efficacy. For example, the nerve impulse signals can be analyzed to determine whether the signals are consistent with a positive patient mood associated with pain mitigation and, if not, SCS control parameters are adjusted to improve the efficacy of the SCS in reducing pain. In other examples, heart rate variability (HPV) is also used to control SCS. Still further, adjustments may be made to SCS control parameters to improve antiarrhythmic or sympatholytic effects associated with SCS. Techniques employing baseline/target calibration procedures are also described.