How Edge AI and Cloud AI Complement Each Other in Data Processing