Many things regulate alertness. Can be increased cortisol levels at the wrong time due to artificial light exposure, irregular schedule and in this case you would be displaying fatigue during the day. Otherwise alertness gets up-regulated if you are intensely learning something or are excited about something upcoming.