Coastal grounding electrodes are currently an important means to alleviate land grounding electrode land constraints. In order to better invert the terrestrial geodesic resistivity in the coastal region, this paper proposes a complete set of inversion technology schemes. First, this paper proposes a layered land model for the coastal region, and a composite geodetic model is modeled by the fold junction of the land model and the ocean. Based on this, an adaptive subdivision boundary element method is proposed for solving the composite soil grounding calculation problem, and the accuracy and advantages of the method are demonstrated by examples. Finally, the paper uses the differential evolutionary algorithm to invert the exploration data of the four-point method in the coastal area, and obtains the parameters of the terrestrial layered geodetic model that meet the engineering requirements. The comparison with the grounding software CDEGS illustrates the effectiveness of the method. This paper carries out the research on the modeling and inversion methods of composite layered soil model, combining advanced numerical calculation methods and artificial intelligence algorithms to provide the support of computational tools for coastal resistivity inversion.