The development of permafrost areas requires reliable and long-term projected estimates in a changing climate and man-made impacts. Dangerous natural and man-made factors, such as snowfall, infiltration of precipitation, ice, thermokarst, etc., interact with the ground and determine the stability of the territories of the cryolithozone. In this regard, the work is devoted to the development of new algorithms and software for identifying the boundary conditions on the surface of frozen soil, taking into account the actual process of freezing and thawing of the pore solution of the soil.