A system and method for controlling the insertion of a medical tool, such as a needle, into a subject's body based on measurements of an interaction parameter associated with the interaction between the tool and a bodily tissue, such as the forces exerted on the tool during insertion. The system comprises an insertion device, at least one sensor configured to measure the interaction parameter and at least one processor configured to receive sensor measurements, detect one or more predefined patterns in the sensor measurements and control an operation of at least one of the insertion device and an imaging device, upon detecting the predefined patterns. The processor may be configured to compare the actual correlation between the sensor measurements and an insertion parameter, such as insertion depth, with an expected correlation, and determine if the medical tool is following its pre-planned trajectory based on the result of that comparison.