Disclosed is a method of detecting a respiratory effort-related arousal in a respiratory airflow signal of a patient. The method includes computing a measure of consistency of inspiratory flow limitation over a plurality of recent breaths from the signal and computing a measure of step change in ventilation indicating a sudden big breath. From these measurements, a measure of the presence of respiratory effort-related arousal is computed.