Automated analysis of the blood oxygen saturation (SpO2) signal from nocturnal oximetry has shown usefulness to simplify the diagnosis of obstructive sleep apnea (OSA), including the detection of respiratory events. However, the few preceding studies using SpO2 recordings have focused on the automated detection of respiratory events versus normal respiration, without making any distinction between apneas and hypopneas. In this sense, the characteristics of oxygen desaturations differ between obstructive apnea and hypopnea episodes. In this chapter, we use the SpO2 signal along with a convolutional neural network (CNN)-based deep-learning architecture for the automatic identification of apnea and hypopnea events. A total of 398 SpO2 signals from adult OSA patients were used for this purpose. A CNN architecture was trained using 30-s epochs from the SpO2 signal for the automatic classification of three classes: normal respiration, apnea, and hypopnea. Then, the apnea index (AI), the hypopnea index (HI), and the apnea-hypopnea index (AHI) were obtained by aggregating the outputs of the CNN for each subject (AICNN, HICNN, and AHICNN). This model showed a promising diagnostic performance in an independent test set, with 80.3% 3-class accuracy and 0.539 3-class Cohen's kappa for the classification of respiratory events. Furthermore, AICNN, HICNN, and AHICNN showed a high agreement with the values obtained from the standard PSG: 0.8023, 0.6774, and 0.8466 intra-class correlation coefficients (ICCs), respectively. This suggests that CNN can be used to analyze SpO2 recordings for the automated diagnosis of OSA in at-home oximetry tests.