McDonald's is turning to AI and edge computing to improve efficiency, enhance customer experience, and reduce stress on employees.