The term "Internet of Things" (IoT) refers to a group of gadgets that are capable of connecting to the Internet in order to gather and share data. The growth of Internet connections and the arrival of new technologies like the Internet of Things (IoT) have increased the privacy and security threats associated with the introduction of various gadgets. In order to increase the detection of cyber-attacks, industries are increasing their research spending. Institutions choose wise testing and verification techniques by comparing the highest rates of accuracy. IoT use has been accelerating recently across a variety of industries, including health care, smart homes, intelligent transportation, smart cities, and smart grids. where technology researchers and developers started to take notice of the IoT possibilities. Unfortunately, the privacy and security concerns imposed on by energy restrictions and the scalability of IoT devices present the most significant challenge to IoT. Therefore, how to address the IoT's security and privacy challenges remains an essential issue in the field of information security. With a decentralized design, edge computing plays a vital role in enabling IoT devices to compute, make decisions, take actions, and push only pertinent information to the cloud. Since sensitive data is more readily available and can be used right away, the IDS performs better when employing machine learning (ML) and deep learning (DL) algorithms to identify and prevent various threats. In terms of technical limitations, this study classifies the current, recent research in IoT intrusion detection systems employing machine learning, deep learning, and edge computing architecture.