Disclosed is a method for classifying sleep stages of a subject. A processor selects one of a plurality of signals to process relating to bodily movement or respiration movements of the subject. A wavelet transform is performed on the selected signal from which a mask is generated. Features are then extracted from the transformed signal in accordance with the mask and a sleep stage is classified based on the extracted features.