There has been a lot of research recently in a subfield of Machine Learning called Causal Modeling. I think this has started to gain traction more broadly in industry precisely because of this issue. For those that are interested in how to build models that do attempt to take causality into account, I’d refer to the TWIML Podcast episode on the subject and the follow up Causal Modeling in Machine Learning course.