In the current technological development, convolutional neural networks have become an important tool for computer vision tasks, especially in mobile devices. However, executing related tasks using complex neural network models often leads to high energy consumption issues. Therefore, energy modeling for neural networks becomes crucial. Through energy modeling, we can better understand the energy consumption of neural networks, and subsequently carry out targeted energy optimization to reduce the energy consumption of devices when performing tasks. This experiment selected nine feature variables from three levels of convolutional neural networks, and used five machine learning algorithms to model the energy consumption of convolutional neural networks. The five machine learning methods are Support Vector Regression (SVR), Neural Network (NN), Decision Tree (DT), Random Forest (RF), and Adaptive Boosting (AdaBoost). To select the best modeling method, this paper introduces Mean Squared Error (MSE), Root Mean Squared Error (RMSE), and Mean Absolute Error (MAE) to evaluate the models. The experiment proves that Adaptive Boosting (AdaBoost) has the lowest MSE, RMSE, and MAE, therefore it is the optimal model in this experiment.