Machine Learning Based Effective Clustering Scheme for Wireless Sensor Networks