Reconstruction of the lattice Hamiltonian models from the observations of microscopic degrees of freedom in the presence of competing interactions