During the construction of the tunnel, there may be water-bearing anomalous structures such as fault fracture zone. In order to ensure the safety of the tunnel, it is necessary to carry out advanced tunnel detection. The traditional linear inversion method is highly dependent on the initial model in the tunnel resistivity inversion, which makes the inversion results falling into the local optimal optimum rather than the global one. Therefore, an inversion method for tunnel resistivity advanced detection based on ant colony algorithm is proposed in this paper. In order to improve the accuracy of tunnel advanced detection of deep anomalous bodies, an ant colony optimization (ACO) inversion is used by integrating depth weighting into the inversion function. At the same time, in view of the high efficiency and low cost of one-dimension inversion and the advantages of L1 norm in boundary characterization, a one-dimensional ant colony algorithm is adopted in this paper. In order to evaluate the performance of the algorithm, two sets of numerical simulations were carried out. Finally, the application of the actual tunnel water-bearing anomalous structure was carried out in a real example to evaluate the application effect, and it was verified by excavation exposure.