An implantable medical device includes an activity sensor, a pulse generator, and a control module. The control module is configured to determine an activity metric from the activity sensor signal over an activity metric interval and compare the activity metric to a loss of capture detection threshold. The control module may detect loss of capture in response to the activity metric being less than the loss of capture detection threshold and increase a pacing pulse output in response to detecting the loss of capture.