Methods and circuitry for determining an implanted-neurostimulator patient's position, and adjusting a situation program delivered by the neurostimulator based on the determined position, is disclosed. Impedance measurements of the patient's tissue are taken at the neurostimulator's electrodes, which measurements can comprise complex impedance measurements (magnitude and phase) taken at different frequencies. Such impedance measurements, which can be taken interleaved with stimulation therapy, are used to determine an “impedance fingerprint.” This fingerprint can be compared to other known fingerprints stored in the IPG, which known fingerprints are associated with particular stimulation programs. When a measured fingerprint matches one stored in the IPG, the stimulation program associated with the stored fingerprint is automatically used for patient therapy. As different measured fingerprints are encountered, the IPG can learn and store a new stimulation program for such fingerprint by remembering stimulation parameters selected by the patient when such fingerprint is encountered.