The patients enter a three-week run-in phase in which they complete a sleep diary and a mood diary , are monitored for seven consecutive days with an actigraph and on two of these nights with polysomnography in addition before randomization to an eight-week treatment trial .