We present two novel classes of fully discrete energy-preserving algorithms for the sine-Gordon equation subject to Neumann boundary 条件.The cosine pseudo-spectral method is firstly used to develop structure-preserving spatial discretizations under two different meshes, which result in two finite-dimensional Hamiltonian ODE (ordinary differential equation) systems. Then we combine the prediction-correction Crank-Nicolson 格式 with the projection approach to arrive at fully discrete energy-preserving methods. Alternatively, we introduce a S variable to transform the initial model into a relaxation system, which allowsus to develop structure-preserving algorithms more easily. We then discretize the relaxation system directly by using the cosine pseudo-spectral method in space and the prediction-correction Crank-Nicolson 格式 in time to derive a new class of energy-preserving schemes. The proposed methods can be solved efficiently by the discrete cosine transform. Some benchmark examples and numerical comparisons are presented to demonstrate the accuracy, efficiency and superiority of the proposed schemes.