Insights into dendritic growth mechanisms in batteries: A combined machine learning and computational study