Torque-on-bit (TOB) prediction and optimization using machine learning algorithms