Machine learning: a breakthrough in the study of stellar nurseries