Determination of the body weight of livestock