Certain cardiac arrhythmias can be prevented by appropriate electrical stimulation of autonomic nerves innervating the heart. An implantable cardiac rhythm management device is configured to deliver such stimulation when an autonomic imbalance is predicted to be present via an endovascular electrode. Autonomic imbalance may be predicted to be present based upon circadian rhythms, detected heart rates, or detected heart rate variability.