A pressure support system includes a pressure generator, a pressure sensor, a flow sensor, and a controller cooperating with the pressure sensor and the flow sensor to control operation of the pressure generator. The controller is structured to automatically identify a patient interface device in use with the pressure support system by detecting a change of exhaust flow of up to a predetermined amount across a predetermined pressure gradient of a pressure range of the pressure support system.