This disclosure describes systems and methods for monitoring the ventilation of a patient being ventilated by a medical ventilator. The disclosure describes a novel approach for triggering the delivery of a breath to account for cardiogenic artifacts. The disclosure further describes a novel approach for calculating exhaled spirometry to eliminate the effect of cardiogenic artifacts.