Abstract The fatigue life of complex service structures is predicted in real-time according to dynamic random loads. Real-time monitoring of stress/strain in structure key parts is important for practical engineering. Based on the deep learning theory, this paper proposes a long and short-term memory convolutional neural network (CNN- LSTM) prediction model with attention mechanism by using the actual workload data set of key components in major equipment. Firstly, convolutional neural networks (CNN) is used to extract the high-dimensional abstract representation from the preprocessed data, and attention mechanism is added to give each channel different attention scores. Then, long and short-term memory (LSTM) is used to process the time series data and output the final prediction results. In this study, data points in the future are predicted, and the final predicted results are root mean square error (RMSE) of 33.2626 and mean absolute percentage error (MAPE) of 15.3768, which can well fit the future load change trend. At the same time, the multi-condition identification module is added to the code, which can better adapt to the changing load of mechanical equipment in the actual service process. Finally, this paper also designed an ablation experiment, which proved the effectiveness of the overall structure of the prediction model designed in this study and the necessity of the three parts of CNN, ECA-Net and LSTM. It provides theoretical support and practical engineering application for real-time monitoring and predicting the fatigue life of important equipment.