Exploring QCD matter in extreme conditions with Machine Learning