Learning-based estimation of cattle weight gain and its influencing factors