The former type is, for example, shift work sleep disorder, which affects people who work nights or rotating shifts. The intrinsic types include:
Advanced sleep phase disorder (ASPD) – A condition in which patients feel very sleepy and go to bed early in the evening and wake up very early in the morning
Delayed sleep phase disorder (DSPD) – Faulty timing of sleep, peak period of alertness, the core body temperature rhythm, hormonal and other daily cycles such that they occur a number of hours late compared to the norm, often misdiagnosed as insomnia
Non-24-hour sleep–wake disorder – A faulty body clock and sleep-wake cycle that usually is longer than (rarely shorter than) the normal 24-hour period causing complaints of insomnia and excessive sleepiness
Irregular sleep–wake rhythm – Numerous naps throughout the 24-hour period, no main nighttime sleep episode and irregularity from day to day

Physical illness
Sleepiness can also be a response to infection. Such somnolence is one of several sickness behaviors or reactions to infection that some theorize evolved to promote recovery by conserving energy while the body fights the infection using fever and other means.
Somnolence (alternatively sleepiness or drowsiness) is a state of strong desire for sleep, or sleeping for unusually long periods (compare hypersomnia). It has distinct meanings and causes. It can refer to the usual state preceding falling asleep, the condition of being in a drowsy state due to circadian rhythm disorders, or a symptom of other health problems. It can be accompanied by lethargy, weakness and lack of mental agility.Somnolence is often viewed as a symptom rather than a disorder by itself. However, the concept of somnolence recurring at certain times for certain reasons constitutes various disorders, such as excessive daytime sleepiness, shift work sleep disorder, and others; and there are medical codes for somnolence as viewed as a disorder. Sleepiness can be dangerous when performing tasks that require constant concentration, such as driving a vehicle. When a person is sufficiently fatigued, microsleeps may be experienced. In individuals deprived of sleep, somnolence may spontaneously dissipate for short periods of time; this phenomenon is the second wind, and results from the normal cycling of the circadian rhythm interfering with the processes the body carries out to prepare itself to rest. The word "somnolence" is derived from the Latin "somnus" meaning "sleep". Causes
Circadian rhythm disorders
Circadian rhythm ("biological clock") disorders are a common cause of drowsiness as are a number of other conditions such as sleep apnea, insomnia and narcolepsy. The body clock disorders are classified as extrinsic (externally caused) or intrinsic.