Steady state adjusting trends using a data-driven local polynomial regression