An ambulatory medical device configured to analyze heart rates in different operating modes includes a plurality of ECG sensing electrodes, a plurality of therapy electrodes and at least one processor configured to in a default operating mode, perform a default heart rate calculation for determining a heart rate of the patient for use in detecting a cardiac arrhythmia condition of the patient. The at least one processor is configured to change a device operating mode from a default mode based on detecting patient activity to an activity operating mode, and in the activity operating mode, perform a different heart rate calculation from the default heart rate calculation for determining the heart rate for use in detecting the cardiac arrhythmia condition of the patient during the activity operating mode. The at least one processor is configured to deliver the treatment in response to detecting the cardiac arrhythmia condition.