Seven healthy subjects and five patients (2 obstructive sleep apnea, 3 periodic limb movement disorder) participated in this study. Night time polysomnography (PSG) recordings were conducted, and electrooculogram, EMG, electroencephalogram, electrocardiogram, and respiration data were collected. Time domain analysis and frequency domain analysis were applied to estimate the sleep/wake patterns. Each method was based on changes in amplitude or spectrum (total power) of anterior tibialis electromyography signals during the transition from the sleep state to the wake state. To obtain the results, leave-one-out-cross-validation technique was adopted.Total sleep time of the each group was about 8 hours. For healthy subjects, the mean epoch-by-epoch results between time domain analysis and PSG data were 99%, 71%, 80% and 0.64 (sensitivity, specificity, accuracy and kappa value), respectively. For frequency domain analysis, the corresponding values were 99%, 73%, 81% and 0.67, respectively. Absolute and relative differences between sleep efficiency index from PSG and our methods were 0.8 and 0.8% (for frequency domain analysis). In patients with sleep-related disorder, our proposed methods revealed the substantial agreement (kappa？>？0.61) for OSA patients and moderate or fair agreement for PLMD patients.The results of our proposed methods were comparable to those of PSG. The time and frequency domain analyses showed the similar sleep/wake estimation performance.