A general approach to identification problems and applications