Some mild cases of sleep apnea can be managed with lifestyle changes (like weight loss, smoking cessation, and exercise). But many cases require further treatment, the mainstay of which is continuous positive airway pressure, or CPAP, breathing machines you wear while you sleep.