A medical instrument may comprise a flexible shaft and a sensing coil extending within the flexible shaft. The sensing coil may include an electrical conductor wound around a flexible core. The flexible core may comprise adjacent flexible pieces of magnetically permeable material that are configured to slide relative to each other in response to a bending of the flexible core.