The complexity and interconnection of smart cities provide huge political, technical, and socioeconomic challenges for the designers, integrators, and organisations who are responsible for the administration of these new entities. A growing number of studies are concentrating their attention on the safety, privacy, and potential dangers that exist within smart cities. These studies are drawing attention to the dangers that are associated with information security as well as the challenges that smart city infrastructure faces in the management and processing of personal data. This state of the art review of the literature analyses a number of issues pertaining to smart homes, offers a helpful synthesis of the important information found in the primary research, and creates a model for the interaction between smart cities. An overview of smart home research incorporating machine learning, including everything from definition to current research state. The state of art begins with a smart home definition, followed by descriptions of smart home elements, typical research projects, smart home network research status, smart home appliances, and difficulties. The term "smart home" refers to a subcategory of "everyday computing" that includes "smart technology" in order to improve a person's level of convenience, health, safety, and security while also reducing their When controlled by artificial intelligence, the applications for the smart home provide users with context-aware settings, services, and remote control, which significantly increases the level of user satisfaction.