An Intelligent alarm system that determines wake-up timing based on movement detection