The rapid advancement of machine learning (ML) and its extensive application across various fields have led to numerous innovative uses. However, large-scale ML systems require significant computational resources, energy usage, and result in associated carbon emissions, which have raised some concerns. ML can combat climate change with smart decision-making, but energy-intensive models like deep learning also impact the environment. In this paper, we applied the CodeCarbon, an open-source tool for estimating energy consumed and carbon dioxide (CO₂) emissions during the runs of ML models (Linear Regression, k-Nearest Neighbors Regressor, and Decision Tree Regressor). Both default and optimized models show low CO₂ emissions, with optimization resulting in slightly higher values. The impact of geographical locations related to the carbon intensity of electricity generation on emissions is also examined, along with the effects of utilizing the complimentary cloud service GoogleColab. Due to low emissions, applied ML algorithms are suitable for education, research, and practice. The increasing use of artificial intelligence (AI) highlights tracking of carbon emissions, even in lightweight ML algorithms, to introduce sustainable AI practices. The aim of this paper is to raise awareness of the energy and environmental cost of AI at all levels of research.
Sustainable AI, carbon footprint, machine learning models, CodeCarbon, GoogleColab
This paper is supported by the Ministry of Science, Technological Development and Innovation of the Republic of Serbia pursuant to agreement № 451-03-137/2025-03/200148, goal 13
© 2023 Faculty of Occupational Safety - Multimedia