Tag Design optimization using machine learning