In the present invention a method, apparatus and computer program are presented, with which the amount of balls among ore material contained in a grinding mill is estimated as a percentage by volume of the total volume of the mill. Preferably, the invention relates to semi-autogenous mills. In the invention, an expanded Kalman filter is used to estimate …