A middle aged man wears polysomnography equipment to measure brain activity, breathing and movement during sleep.