From the beginning of creation, human beings have realized the importance of energy for survival. They have always devoted a significant part of their energy to provide the required energy. Moreover, it can be said that energy resources have an essential role in the life and evolvement of societies. On the contrary, with the depletion of energy resources, severe environmental pollution caused by the consumption of petroleum products, and high cost of energy in the production cycle, allocating these resources must be carried out carefully. This paper aims to look at the connection between energy consumption and sustainable economic welfare in OPEC countries (Iran, Kuwait, Saudi Arabia, UAE, Ecuador, and Venezuela) during 2019–2009, utilizing the panel data method. Finally, we presented a CNN architecture for forecasting welfare levels in the case study countries. As a result, the relationship between energy consumption and economic growth among selected countries from energy-producing countries was compared in this analysis, which used the standard Granger causality test and the Granger causality test in several domains. The findings suggest that economic growth and inflation positively impact energy consumption in the countries studied. In addition, energy consumption positively impacts these countries’ sustainable economic welfare, while inflation has a negative effect. In addition, the findings of the standard Granger causality test indicate a one-way causal association between energy consumption and economic development in Iran and Venezuela, as well as one-way causality from GDP to energy consumption in Ecuador, the United Arab Emirates, Saudi Arabia, and Kuwait. Also, based on the results of the CNN method, the RMSE are 1.75, 3.81, 1.39, 0.52, 0.69, and 1.72 for Ecuador, Emirates, Iran, Saudi Arabia, Kuwait, and Venezuela, respectively.