Estimating Constitutive Law of a Filament From its Deformed Shapes Using Input Reconstruction