This study summarizes major literature reviews on machine learning systems for network analysis and intrusion detection. Furthermore, it provides a brief lesson description of each machine learning approach. Because data is so important in machine learning methods, this study The primary tools for assessing network traffic and spotting anomalies are machine learning approaches, and the study focuses on the datasets utilized in these techniques. This research examine the multiple advantages (reasonable use) that machine learning has made possible, particularly for security and cyber-physical systems, including enhanced intrusion detection techniques and judgment accuracy. Additionally, this study discusses the difficulties of utilizing machine learning for cybersecurity and offers suggestions for further study.