When a convolutional neural network (CNN) model was built, the size and resolution of its input data were fixed. However, Raman spectra collected by different Raman spectrometers usually had different length, intensity range, and wavenumber interval between two adjacent data points, which made the existing CNN model difficult to be applied to a new Raman spectral data set. Therefore, this paper proposed a polynomial reconstruction algorithm as pretreatment method to obtain reconstructed spectra that would be imported into CNN model with consistent length, intensity range, and wavenumber interval. To test the effectiveness of this method, a big data set with 2563 Raman spectra of 831 minerals and synthetic organic pigments samples was constructed from the RRUFF and SOP database to pretrain a one‐dimensional CNN (1D‐CNN) model. The pretraining results showed that polynomial reconstruction algorithm used as pretreatment method was better than SG smoothing combined spline interpolation algorithm. Then two data sets were collected by different Raman spectrometers for evaluating the transfer learning performance of the trained 1D‐CNN model. Both data sets contained 390 Raman spectra from the same 39 samples of inorganic salts, organic compounds, and amino acids. One was used as calibration data to retrain the 1D‐CNN model, while the other was used as test. Based on data augmentation and 75% calibration data for retraining, the transfer learning performances of 1D‐CNN model were clearly shown in the excellent identification accuracies of 99.58%, 99.32%, and 97.69% for training, validation, and test sets, respectively, which were better than those of K‐nearest neighbor classifier. This paper provides a significant way for the wide application of CNN model in Raman spectroscopy with much more advantages in simplicity and rapidity.