A method and apparatus for facilitating breathing using a mechanical breathing gas ventilator is presented. The patient effort is deduced from a measured flow signal and analyzed with respect to the energy in the breathing system comprising the mechanical ventilator and the patient. When a predetermined energy threshold has been reached the ventilator responds to the breathing pattern change.