A ventilation device for non-invasive positive pressure ventilation (NIPPV) or continuous positive airway pressure (CPAP) treatment of a patient has a gas flow generator, a gas delivery circuit optionally including a humidifier, a controller and sensors monitoring values of operational parameters of the device. The device further includes one or more relationships stored in data storage of the controller relating combinations of parameter values as being indicative of fault conditions of the device operation, the sensors and/or the fault detection process.