There are many problems in the development of urban space in China. Among them, urban tunnels generally pass through many sections with very complicated geological conditions, and the construction will encounter great difficulties, so the mechanical behavior of shield segments in different complex strata is worth discussing. In this paper, the axial force, bending moment and pore water pressure of shield tunnel segments in the soft and hard uneven stratum, clay stratum and fully weathered granite stratum of overlying buildings are studied by establishing a rectangular element mechanical model based on the field test method. The analysis shows that the mechanical properties of shield tunnels in different strata are quite different, but their mechanical properties change stages are the same. The earth pressure on the left and right sides of the test ring is asymmetric in the soft and hard uneven stratum, and the vault pressure is much greater than the vault bottom pressure. The distribution of earth pressure in each position of the segment ring in clay stratum is relatively balanced, and the earth pressure on both sides is relatively small; in the fully weathered granite layer of the overlying building, the segment ring of the test ring is subjected to greater additional stress, and the internal force of the segment is much greater than that without the overlying building. Exploring the similarities and differences of segment stress in these three complex strata can provide an important basis for the design and construction of shield segments in complex strata.