A respiratory device is provided with a display showing a respiration signal
related
to a breathing pattern of a patient. This signal is derived from the difference
between a sensed signal indicative of the respiration and airflow generated by
the device and a baseline signal. The parameter is adjusted so that the respiration
signal is restricted to a predetermined dynamic range. A short term average of
the respiration signal (taken over about 0.5 seconds) and a long term average of
respiration signals (taken over about 12 seconds) are calculated based on the CPAP
measure. These averages are used to monitor the dynamic change in the respiration
signal. If a large variation in either average is detected, the baseline is set
to a value selected to rapidly reduce the respiration signal to a lower offset.