Invasive Detection Optimization in Smart Grid using Enhanced CNN and Advanced Machine Learning Algorithms