Towards eco friendly cybersecurity: machine learning based anomaly detection with carbon and energy metrics
This study addresses a critical gap in cybersecurity research by incorporating energy consumption and carbon emissions into the evaluation of AI-based anomaly detection systems, an aspect largely overlooked in existing literature. The authors propose the first green framework that integrates environmental impact metrics into network intrusion detection assessment, introducing an "Eco-Efficiency Index" to jointly quantify model performance and ecological cost. Leveraging Logistic Regression, Random Forest, SVM, Isolation Forest, and XGBoost, the framework employs CodeCarbon for carbon tracking and principal component analysis for energy-efficiency optimization. Experimental results demonstrate that the optimized Random Forest and lightweight Logistic Regression models achieve high detection accuracy while reducing energy consumption by over 40% compared to XGBoost, thereby substantiating the feasibility of environmentally sustainable cybersecurity solutions.