A machine learning pipeline for discriminant pathways identification