Software change-proneness prediction can help reduce software maintenance costs.Thus, it has drawn the attention of many researchers. In this paper, we propose a CNN (convolutional neural network)-based method for software change-proneness prediction, aiming to utilize the powerful prediction ability to make score of the performance measure higher than other baseline methods. Moreover, to alleviate the effect of the class imbalance problem, resampling methods are employed with the CNN. To validate the performance of the proposed CNN-based method, an empirical study was conducted. The experimental results show that the CNN-based method together with the resampling method performs better than the baseline methods, and the scores of performance measure of CNN with the ROS (random oversampling) method are higher than other method, especially the important performance measure.