Using deep convolutional neural network (CNN), the nature of the QCD transition can be identified from the final-state pion spectra from hybrid model simulations of heavy-ion collisions that combines a viscous hydrodynamic model with a hadronic cascade "after-burner". Two different types of equations of state (EoS) of the medium are used in the hydrodynamic evolution. The resulting spectra in transverse momentum and azimuthal angle are used as the input data to train the neural network to distinguish different EoS. Different scenarios for the input data are studied and compared in a systematic way. A clear hierarchy is observed in the prediction accuracy when using the event-by-event, cascade-coarse-grained and event-fine-averaged spectra as input for the network, which are about 80%, 90% and 99%, respectively. A comparison with the prediction performance by deep neural network (DNN) with only the normalized pion transverse momentum spectra is also made. High-level features of pion spectra captured by a carefully-trained neural network were found to be able to distinguish the nature of the QCD transition even in a simulation scenario which is close to the experiments. trations of the usage of iEBE-VISHNU package and Volodymyr Vovchenko for helpful discussions. This work is supported by the Helmholtz Graduate School HIRe for FAIR (Y. D. and A. M.) , by the F&E Programme of GSI Helmholtz Zentrum für Schwerionenforschung GmbH, Darmstadt (Y. D.), by the Giersch Science Center (Y. D.), by the Walter Greiner Gesellschaft zur Förderung der physikalischen Grundlagenforschung e.V., Frankfurt (Y. D.), by the AI grant of SAMSON AG,