Respiratory insufficiency is detected by classifying preliminary breaths identified through a capnogram as being valid or artifact. Individual breaths are classified as being valid or artifact by determining values of a plurality of breathing parameters for a given breath, inferring a value for a key parameter from the determined values for the plurality of breathing parameters, and comparing the inferred value for the key parameter to a predetermined threshold.