Signal processing and pattern recognition for nocturnal polysomnography sleep studies