Generic uniqueness and stability in some inverse parabolic problem