Machine Learning has become a method of analyzing data that automates analytical model building. It is a branch of artificial intelligence that is based on the idea that systems can learn from data, identify patterns and make decisions with minimal human intervention.
See definitions from Mathworks
This link will give you examples of using machine learning in Clusterhead formation in WSN. https://se.mathworks.com/products/demos/machine-learning/swiss_roll/swiss_roll.html
Source