This book introduces machine learning and its applications in smart environments/cities. At this stage, a comprehensive understanding of smart environment/city applications is critical for supporting future research. This book includes chapters written by researchers from different countries across the globe and identifies critical threads in research and also gaps that open up new and challenging lines of research for the future. Recent advances are discussed, and thorough reviews introduce readers to critical domains. The discussion on key research topics presented in this book accelerates smart city and smart environment implementations based on IoT technologies. Consequently, this book supports future research activities aimed at developing future IoT architectures for smart environments/cities.