Animals kept from sleeping die within a couple of weeks, but the exact function of sleep is still unknown.
Reptiles have been subjected to electrophysiological studies of sleep. That is to say that electrical activity in the brain has been registered when the animals have been asleep. However, the EEG pattern in reptilian sleep differs from what is seen in mammals and other higher animals. In reptiles, sleep time increases following sleep deprivation, and stronger stimuli are needed to awaken the animals when they have been deprived of sleep as compared to when they have slept normally. This suggests that the sleep which follows deprivation is compensatorily deeper.
There are significant similarities between sleep in birds and sleep in mammals, which is one of the reasons for the idea that sleep in higher animals with its division into REM and non-REM sleep has evolved together with warm-bloodedness. Birds compensate for sleep loss in a manner similar to mammals, by deeper or more intense SWS.
Birds have both REM and non-REM sleep, and the EEG patterns of both have similarities to those of mammals. Different birds sleep different amounts, but the associations seen in mammals between sleep and variables such as body mass, brain mass, relative brain mass, basal metabolism and other factors (see below) are not found in birds. The only clear explanatory factor for the variations in sleep amounts for birds of different species is that birds who sleep in environments where they are exposed to predators have less deep sleep than birds sleeping in more protected environments.
A peculiarity that birds share with aquatic mammals, and possibly also with certain species of lizards (opinions differ about that last point), is the ability for unihemispheric sleep. That is the ability to sleep with one cerebral hemisphere at a time, while the other hemisphere is awake. When only one hemisphere is sleeping, only the contralateral eye will be shut; that is, when the right hemisphere is asleep the left eye will be shut, and vice versa. The distribution of sleep between the two hemispheres and the amount of unihemispheric sleep are determined both by which part of the brain has been the most active during the previous period of wake – that part will sleep the deepest – and it is also determined by the risk of attacks from predators. Ducks near the perimeter of the flock are likely to be the ones that first will detect predator attacks. These ducks have significantly more unihemispheric sleep than those who sleep in the middle of the flock, and they react to threatening stimuli seen by the open eye.
Opinions partly differ about sleep in migratory birds. The controversy is mainly about whether they can sleep while flying or not. Theoretically, certain types of sleep could be possible while flying, but technical difficulties preclude the recording of brain activity in birds while they are flying.
As for birds, the main rule for mammals (with certain exceptions, see below) is that they have two essentially different stages of sleep – REM and non-REM sleep (see above). An animal's feeding habits are associated with its sleep length. The daily need for sleep is highest in carnivores, lower in omnivores and lowest in herbivores. Humans do not sleep unusually much or unusually little compared to other animals, but we sleep less than many other omnivores. Many herbivores, like Ruminantia (such as cattle), spend much of their wake time in a state of drowsiness, which perhaps could partly explain their relatively low need for sleep. In herbivores, an inverse correlation is apparent between body mass and sleep length; big animals sleep more than smaller ones. This correlation is thought to explain about 25% of the difference in sleep amount between different animals. Also, the length of a particular sleep cycle is associated with the size of the animal; on average, bigger animals will have sleep cycles of longer durations than smaller animals. Sleep amount is also coupled to factors like basal metabolism, brain mass and relative brain mass.
Mammals born with well-developed regulatory systems, such as the horse and giraffe, tend to have less REM-sleep than the species which are less developed at birth, such as cats and rats. This appears to echo the greater need for REM-sleep among newborns than among adults in most mammal species.
Among others, seals and whales belong to the aquatic mammals. Seals are grouped in earless seals and eared seals, which have solved the problem of sleeping in water differently. Eared seals, like whales, show unihemispheric sleep. The sleeping half of the brain does not awaken when they surface to breathe. When one half of a seal's brain shows slow wave sleep, the flippers and whiskers on its opposite side are immobile. While in the water, these seals have almost no REM sleep and may go a week or two without it. As soon as they move onto land they switch to bilateral REM and NREM sleep comparable to land mammals, surprising researchers with their lack of "recovery sleep" after missing so much REM.
Earless seals sleep bihemispherically like most mammals, under water, hanging at the water surface or on land. They hold their breath while sleeping under water, and wake up regularly to surface and breathe. They can also hang with their nostrils above water and in that position have REM sleep, but they do not have REM sleep underwater.
The only whale in which REM sleep has been observed is the pilot whale. Other whales do not seem to have REM sleep, nor do they seem to have any problems because of this. One reason REM sleep might be difficult in marine settings is the fact that REM sleep causes muscular atony; that is to say, a functional paralysis of skeletal muscles that can be difficult to combine with the need to breathe regularly.
The neurobiological background for unihemispheric sleep is still unclear. In experiments on cats, where the connection between the left and the right halves of the brain stem is severed, the brain hemispheres show a desynchronized EEG where the two hemispheres can sleep independently of each other. In these cats, the state where one hemisphere slept non-REM and the other was awake, as well as one hemisphere sleeping non-REM with the other state sleeping REM were observed. Interestingly, the cats were never seen to sleep REM sleep with one hemisphere while the other hemisphere was awake. This is in accordance with the fact that REM sleep, as far as is currently known, does not occur unihemispherically. (See also Unihemispheric slow-wave sleep.)