Artificial Intelligence in Cyber-Physical Systems (Principles and Applications)