In this study, we conducted a comparative analysis of deep convolutional neural network (CNN) models in predicting Obstructive Sleep Apnea (OSA) using electrocardiograms. Unlike other studies in the literature, this study automatically extracts time-frequency features by using CNNs instead of manual feature extraction from ECG recordings. For this purpose, the proposed model generates scalogram and spectrogram representations by transforming preprocessed 30-sec ECG segments from time domain to the frequency domain using Continuous Wavelet Transform (CWT) and Short Time Fourier transform (STFT), respectively. We examined AlexNet, GoogleNet and ResNet18 models in predicting OSA events. The effect of transfer learning on success is also investigated. Based on the observed results, we proposed a new model that is found more effective in estimation. In total, 152 ECG recordings were included in the study for training and evaluation of the models. The prediction using scalograms immediately 30 seconds before potential OSA onsets gave the best performance with 82.30% accuracy, 83.22% sensitivity, 82.27% specificity and 82.95% positive predictive value. On the other hand, the prediction using spectrograms also provided up to 80.13% accuracy and 81.99% sensitivity on prediction. The results show that the proposed CNN model can be used as a good indicator to accurately predict OSA events using ECG signals.