An apparatus and method of controlling the delivery of therapeutic gas delivered to a patient undergoing positive airway pressure therapy is described. The method includes providing a flow of gas to a patient's airway at a pressure, obtaining information from the range of 0 to 25 Hz of the frequency domain of the flow, and adjusting the pressure based on the information. The apparatus includes a blower for providing a flow of gas to a patient's airway at a pressure, a sensor to measure a characteristic of the flow, a controller to obtain information from the range of 0 to 25 Hz of the frequency domain of the characteristic, and a pressure regulator for adjusting the pressure based on the information.