How machine learning transforms credit balance management