Method of pacing a patient's heart at a variable rate adaptive to physical exercise by the patient, comprising the steps of detecting movements of the patient and distinguishing between said detected movements of a first type associated with physical exercise and said detected movements of a second type associated with factors other than physical exercise, and selectively producing transistions be