An apparatus for capturing the electrical behavior of the human body during respiration and/or ventilation, the apparatus comprising ventilation elements, elements for capturing the impedance of the patient and at least one control unit. The impedance is captured using at least two electrically conductive electrodes, which capture the electrical behavior of the human body. The elements for capturing the impedance are configured to capture the change in the impedance of the human body over time during respiration and/or ventilation.