Securing Smart Electrical Systems through Comparative Analysis of Machine Learning Models for Classification