Friction and energy waste pose significant challenges in various industrial processes. Lubrication plays a crucial role in reducing friction and optimizing energy consumption. This study focuses on analyzing, simulating and calculation the oil film thickness, friction levels, energy losses, and CO2 emissions. The objective is to optimize lubrication conditions to enhance performance, improve energy consumption, and maximize lubrication efficiency for rolling bearings in a centrifugal fan. The simulation utilizes ANSYS CFX software, MATLAB programming. The optimal oil viscosity grade is determined based on two objectives by using artificial bee colony algorithm (ABC): minimizing energy consumption (thus reducing CO2 emission) and achieving the optimal oil film thickness and viscosity ratio. The findings reveal that, under the current lubrication conditions and normal fan operation, energy losses due to oil friction amount to 36.3 MWh per year, with CO2 emissions resulting from power losses reaching 18,750 kilograms per year. By transitioning to the optimized oil grade, energy savings of 1.08 MWh per year and a corresponding reduction of 557 kilograms in CO2 emissions per year can be achieved.