Early fire and smoke detection based on colour features and motion analysis