and the average HEMG
of the whole sleep period in subject #1. (a) Bold lines indicate the HEMGm of each epoch, and the dashed line indicates the average HEMGm. In the case of subject #1, the average HEMGm was five. (b) Sleep/wake estimation using HEMGm and the average of HEMGm. In the mth epoch, if the HEMGm exceeded the average of HEMGm, a wake state was concluded; otherwise, it was estimated as sleep.