Sleepwalking and sleep talking both occur during stage 4 of sleep. The last two stages of sleep is classified as deep sleep or delta sleep. It is a stage where it would be difficult to wake up someone. This stage is the most restorative sleep of all the stages.