Social network analysis with machine learning