Robust Modeling Through Causal Priors And Data Purification In Machine Learning