This paper focuses on the evolution of geotechnical behavior of building foundations during underground engineering construction. Combined with the actual underground engineering construction situation and civil engineering professional knowledge, it defines several common geotechnical behavior parameters and characteristics during construction. Using high-precision automatic sensors to collect real-time dynamic data in the construction project, combining genetic algorithm and support vector mechanism to build real-time early warning and monitoring model, and analyzing the application of this method in the regulation of underground construction project and the change of geotechnical behaviors through examples.The distribution of displacement changes in geotechnical behaviors from June to November ranges from 0 to 13/mm, and the maximum relative error of prediction reaches 0.083, with the overall displacement prediction error is 0.084%. In addition, as the discount factor increases, it leads to a larger increment of displacement and deformation in the geotechnical behavior, which reveals that the peripheral rock destabilized parts of the underground construction should be strengthened to be monitored during the construction process. The analysis of geotechnical behavior makes the construction and long-term use of the building safety is guaranteed, and promotes the sustainable development of economic and social effects.