If you're dealing with sleep deprivation or are already feeling the side effects, it's helpful to know the stages first.