The rapid development of subway construction inevitably leads to the subway lines traversing through or adjoining the buildings. However, current research primarily focuses on the train-induced ground-borne or building with shallow foundation vibrations, with a relatively limited investigation into the vibration pertaining to the building with pile foundation. A vibration analysis model of a building with pile foundation adjacent to a subway is established in this study using the finite element method, and the effects of various factors on the vibration of the building are analyzed, then the prediction of building vibration characteristics is also carried out by combining artificial intelligence methods. The results show that the building floor has an amplifying effect on the vibration acceleration level and Z-vibration level in the high frequency range, and the vibration energy attenuation at high frequencies is faster in the building with pile foundation compared to the building with shallow foundation. In the meantime, it shows that the GA-BP model is capable of effectively capturing the vibration characteristics of the building with pile foundation within the dominant frequency range. and the vibration of the building with pile foundation can be predicted not only by parameters such as train speed, soil and structure parameters but also by train-induced ground-borne vibration, which provides the possibility of simplifying the process of vibration prediction process and enhancing the practical application.