Based on a capnometry signal, one or more breathing parameters of a subject are determined that require valid breaths by the subject to be distinguished from anatomical events that cause the CO2 content of gas at or near the airway of the subject to fluctuate. To improve the accuracy of one or more of these determinations, gas at or near the airway of the subject is diluted.