Chapter I: Principles and Foundations of IoT and AIChapter II: Data Access and Distributed Processing for IoTChapter III: Machine Learning for IoTChapter IV: Reinforcement Learning for IoT IntroductionChapter V: Distributed AI for IoTChapter VI: Personal and Home IoTChapter VII: AI for the Industrial IoTChapter VIII: AI for Smart Cities IoT