Breaths of a subject are identified based on the concentration of carbon dioxide at or near the airway of the subject. Troughs corresponding to inhalation are identified and plateaus corresponding to exhalation are identified. A breath is identified responsive to a trough being followed by a plateau.