Predicting the performance of a tunneling boring machine is vitally important to avoid any possible accidents during tunneling boring. The prediction is not straightforward due to the uncertain geological conditions and the complex rock-machine interactions. Based on the big data obtained from the 72.1 km long tunnel in the Yin-Song Diversion Project in China, this study developed a machine learning model to predict the TBM performance in a real-time manner. The total thrust and the cutterhead torque during a stable period in a boring cycle was predicted in advance by using the machine-returned parameters in the rising period. A long short-term memory model was developed and its accuracy was evaluated. The results show that the variation in the total thrust and cutterhead torque with various geological conditions can be well reflected by the proposed model. This real-time predication shows superior performance than the classical theoretical model in which only a single value can be obtained based on the single measurement of the rock properties. To improve the accuracy of the model a filtering process was proposed. Results indicate that filtering the unnecessary parameters can enhance both the accuracy and the computational efficiency. Finally, the data deficiency was discussed by assuming a parameter was missing. It is found that the missing of a key parameter can significantly reduce the accuracy of the model, while the supplement of a parameter that highly-correlated with the missing one can improve the prediction.