#$%^&*AU2015238920B220160908.pdf#####86 ABSTRACT Disclosed is an apparatus for treating a respiratory disorder, configured to compute a measure of typical recent ventilation such that a rate of adjustment of the measure of typical recent ventilation is reduced as a measure of recent uncompensated leak increases. Also disclosed is an apparatus for treating a respiratory disorder, configured to compute a target ventilation from a product of a measure of typical recent ventilation and a target fraction, wherein the target fraction is dependent on the recent pressure support.8/36 4300 4310 Preprocessing compensaion Vent flow Leak flow 4312 4314 Respiratory Jamming 4316 4312 ~flowJamn 4318 4319 4320 4321 _ _'_4322 Therapy engine 4323 Phase Waveform Ventilation determination determination determination Flow limitation Apnea / Snore determination deternation determination determination 4325 4326 4324 EPAP Therapy Target determination parameter Ventilation determination determination 4327 4329 4328 4340 Therapy control Fault condition detection 4330 Fig. 4d