Method of and apparatus for automatic defibrillation of the cardiac ventricles of a heart wherein both the mechanical and electrical activities of the ventricles are sensed and used as operating inputs to the controls. Electrical activity is detected and measured with a pair of electrodes, and the waves of an electrocardiogram (ECG) are analyzed. When such electrical analysis indicates that ventricular fibrillation is present and persists, an electrical circuit is actuated for detecting mechanical pumping activity of the heart. Mechanical pumping activity is measured by the change in impedance between the pair of electrodes in one of the ventricles. The change of ventricular impedance is caused by the varying volume of blood contained within the ventricle and depends upon whether the ventricle is in a contracted or a relaxed state. The defibrillator is actuated only when both the mechanical and electrical activity of the ventricle indicates a need for defibrillation. Because some conditions may be encountered which closely resemble ventricular fibrillation, the defibrillator quantitatively preprograms and weighs the relative importance of the electrical and mechanical signals from the heart.