A device for the pressure-supported or pressure-controlled ventilation of a patient, especially a patient with reduced spontaneous breathing, is described. The device has a ventilator unit, by which the patient can be supplied with a breathing air flow composed of cyclical ventilation strokes; a control unit, which generates a ventilator unit control signal and transmits it to the ventilator unit, so that a pressure and/or a volume flow of the breathing air flow is set as a function of the ventilator unit control signal; and an EMG unit, which generates an EMG signal, which is used at least at times as the basis for generating the ventilator unit control signal in the control unit, as a function of a breath of the patient.The technical solution described isa unit for analyzing an EMG signal is. provided, which analyzes at least one EMG signal recorded during an already concluded breath of the patient and that the control unit is configured such that the ventilator unit control signal can be generated, at least at times, by taking into account the analysis of the EMG signal recorded during an already concluded breath of the patient.(Figure 1)