Interface states can be induced through the design of heterostructures comprised of structures or materials with different physical properties. Compared with the traditional method of the manual experience adjustment, the topology optimization method is more systematic and scientific in designing heterostructures to achieve the desired performance of interface states. We combine the multiple population genetic algorithm (MPGA) with the finite element method, and consider the transmission spectrum characteristic of interface states as a fitness function forming a topology optimization method to find optimal designs for acoustic heterostructures. The frequency of the interface state induced by acoustic heterostructures after topology optimization is highly consistent with the objective frequency. The characteristic analyses of the sound field and transmission spectrum show that interface states possess high transmission and localization. Such a topology optimization method opens up design solutions in various engineering fields, which include wavefront manipulation, sound detection, and acoustic topological materials.