A method that builds on random forests and addresses the task by modelling the instrument as an articulated object by relating the movement of the instrument to the induced changes on the image intensities and can outperform current state-of-the art in real-time tracking.