In a method and system for use with a ventilator for mechanical ventilation of a patient, a sensor arrangement registers at least one signal related to muscular activity of at least one muscle in the laryngopharyngeal region of the patient. This signal is provide to a computer, which controls the operation of the ventilator based thereon, and/or causes display of information related to the signal in order monitor the patient and/or operation of the ventilator.