This research implements the whale optimization algorithm (WOA) and spotted hyena optimizer (SHO) in inverse scattering to regenerate the conductor shape concealed in the half-space. TM waves are irradiated from the other half-space to a perfect conductor with an unknown shape buried in one half-space. The scattered field measured outside the conductor surface with the boundary condition is used to reconstruct the object using the WOA and SHO algorithms. Several scenarios of reconstruction accuracy were compared for the WOA and SHO. The numerical simulations prove that the WOA has a better reconstruction capability.