A method for controlling the delivery of a breathing gas to a patient. The method comprises: delivering a flow of breathing gas to a patient, the breathing gas having a breathing gas flowrate and a fraction of inspired oxygen; measuring an oxygen saturation level of the patient; determining a respiratory rate of the patient; automatically adjusting the fraction of inspired oxygen of the breathing gas based on the measured oxygen saturation level of the patient and a breathing gas flowrate set-point; and automatically adjusting the breathing gas flowrate set-point based on the determined respiratory rate of the patient.L'invention concerne un procédé pour commander la distribution d'un gaz respiratoire à un patient. Le procédé consiste : à distribuer un flux de gaz respiratoire à un patient, le gaz respiratoire ayant un débit de gaz respiratoire et une fraction d'oxygène inspiré ; à mesurer un niveau de saturation en oxygène du patient ; à déterminer une fréquence respiratoire du patient ; à régler automatiquement la fraction d'oxygène inspiré du gaz respiratoire sur la base du niveau de saturation en oxygène mesuré du patient et d'un point de consigne de débit de gaz respiratoire ; et à régler automatiquement le point de consigne de débit de gaz respiratoire sur la base de la fréquence respiratoire déterminée du patient.