Shedding light on dark matter at the LHC with machine learning