A computer-implemented method for determining physical movements of a body organ includes steps of calculating a preliminary average of a plurality of measured data from the body organ at a sampling frequency receiving an incoming data from the body organ calculating a signal frequency from the incoming data and the measured data calculating an average parameter taking the signal frequency and the sampling frequency into consideration checking if the average parameter is different from a stored parameter and calculating an average value of the physical movement of the body organ using the average parameter if the average parameter is different from the stored parameter.