In recent years, dangerous gas leakage events occur frequently. Rapid and accurate location of gas leakage sources by mobile robots is the key to avoid the expansion of disasters. In order to solve the problem of discontinuous gas concentration gradient and sparse gas environment in three-dimensional space, particle filter, and whale swarm optimization algorithm are integrated to locate gas source. Firstly, the Z-shape search and comb search are used to locate the plume, and then, the particle filter algorithm is combined with the whale optimization method to guide the particle movement, and the random inertial disturbance term is designed to improve the convergence speed and search accuracy of the algorithm. Experimental results in three-dimensional environment show that the proposed information-driven particle filter whale optimization hybrid algorithm effectively guides the robot in localizing gas source within a certain range, significantly enhancing both the efficiency and accuracy of localization compared to other algorithms.