A method and system for detecting an ineffective effort of a patient being mechanically ventilated by a ventilator comprises (i) monitoring a respiratory flow of air of the patient after said ventilator has cycled (ii) creating a signal indicative of said flow (iii) removing artefact from said signal (iv) monitoring said signal for perturbations and (v) determining that an ineffective effort has occurred when said perturbation is significant.