A positionally sensitive spinal cord stimulation apparatus and method using near-infrared (NIR) reflectometry are provided for automatic adjustments of spinal cord stimulation. The system comprises an electrode assembly with an integrated optical fiber sensor for sensing spinal cord position. The integrated optical fiber sensor, comprising a pair of optical elements for emitting light from an IR emitter and for collecting reflected light into a photodetector, determines a set of measured photocurrents. As the spinal cord changes position, the angles of incidence for light from the IR emitter and the measured optical intensities change. Electrode pulse characteristics are adjusted in real time, based on the set of measured optical intensities, to minimize changes in stimulation perceived by the patient during motion. The system includes automatic calibration of the optical fiber sensor when the patient is at rest, and a patient orientation detection.