A method and device for treating sleep apneaand sleep hypopnea by monitoring respiratory-relatedactivity from the internal branch of the superior laryngealnerve, interpreting these internal signals to detect andclassify apnea events, and stimulating nerves or muscles toelicit appropriate corrective responses to adverse respiratoryevents.