A detection device for obstructive sleep apnea (OSA) is provided. The detection device includes a process, a storage medium, and a transceiver. The transceiver obtains a first ECG, wherein the first ECG includes a first data set corresponding to non-OSA and a second data set corresponding to the OSA. The processor accesses and executes a plurality of modules in the storage medium, wherein the plurality of modules include a training module and a detection module. The training module uses the first data set and the second data set as training data to train a machine learning model. The detection module obtains, via the transceiver, a second ECG of a subject, and determines, according to the machine learning model and the second ECG, whether the subject has the OSA.提供一種阻塞性睡眠呼吸暫停症狀的偵測裝置。偵測裝置包括處理器、儲存媒體以及收發器。收發器取得第一心電圖,其中第一心電圖包括對應於非阻塞性睡眠呼吸暫停症狀的第一資料集合以及對應於阻塞性睡眠呼吸暫停症狀的第二資料集合。處理器存取和執行儲存媒體中的多個模組,其中多個模組包括訓練模組和偵測模組。訓練模組將第一資料集合以及第二資料集合作為訓練資料以訓練機器學習模型。偵測模組通過收發器取得受試者的第二心電圖,並且根據機器學習模型以及第二心電圖判斷受試者是否罹患阻塞性睡眠呼吸暫停症狀。