Real-time prediction of flashover in a compartment fire is of great significance for rescue. This paper investigated a CNN-LSTM neural network to predict the flashover based on the temperature and radiative heat flux in 24 compartment fire cases simulated with FDS. Multiple conditions affecting compartment fires have been taken into account, like room size, room height, fire source location, opening size, number of vents, and fire load. Radiative heat flux meters and thermocouples were positioned at specific heights, to simulate sensors worn by firefighters entering a fire scene. The proposed model consisted of a convolutional layer and three LSTM layers. After training, the deep learning model effectively identified the flashover in compartment fires, with an average relative error of 4.1 % for temperature prediction and 11.2 % for radiative heat flux prediction. In addition, the model was validated on other simulated fire cases and full-scale experimental data, and the results showed good performance. In this paper, the sensitivity of the model to lead time was analyzed, and the application range of the model was determined. The model performed well within the lead time of 25s. In view of the strong performance of the proposed deep learning model in predicting flashover based on wearable sensors (temperature and radiative heat flux), it is believed that this model holds potential for application in a broader range of fire scenarios. This demonstrates the feasibility of using deep learning artificial intelligence models to predict compartment fire development, providing scientific guidance for smart firefighting technology.