An air delivery system includes a controllable flow generator operable to generate a supply of pressurized breathable gas to be provided to a patient for treatment and a pulse oximeter configured to determine a measure of patient effort during a treatment period and provide a patient effort signal for input to control operation of the flow generator.