A method of treating a patient, comprising: sensing a biological parameter indicative of respiration; analyzing the biological parameter to identify a respiratory cycle; identifying an inspiratory phase of the respiratory cycle; and delivering stimulation to a hypoglossal nerve of the patient, wherein stimulation is delivered if a duration of the inspiratory phase of the respiratory cycle is greater than a predetermined portion of a duration of the entire respiratory cycle.