Edge Intelligence in Cyber-Physical Systems: Foundations and Applications provides a comprehensive overview of best practices for building edge intelligence into cyber-physical systems. This book covers the foundations and applications of synergizing machine learning at the edge of CPS, leveraging an edge computing infrastructure. Divided into four parts, the first section of the book reviews the foundations, principles, and representative application domains of CPS. The second part covers machine learning, edge computing, and their needs in CPS, defining edge intelligence and its principles, challenges, and research directions. The third part presents tutorials and foundational research works on realizing edge intelligence in representative CPS. The fourth part explores the problem space of threats and countermeasures in building edge intelligence into CPS. Researchers, graduate students and professionals in computer science, data science, and electrical engineering will find this to be a valuable resource on the principles and applications of edge intelligence in cyber-physical systems as well as the development of interdisciplinary techniques to advance the field.