Towards eco friendly cybersecurity: machine learning based anomaly detection with carbon and energy metrics

KC Aashish, Md Zakir Hossain Zamil, Md Shafiqul Islam Mridul, Lamia Akter, Farmina Sharmin +5 more
12/31/2025
cs.CRcs.CYcs.LG

No confident code implementation found for this paper.

Abstract

The rising energy footprint of artificial intelligence has become a measurable component of US data center emissions, yet cybersecurity research seldom considers its environmental cost. This study introduces an eco aware anomaly detection framework that unifies machine learning based network monitoring with real time carbon and energy tracking. Using the publicly available Carbon Aware Cybersecurity Traffic Dataset comprising 2300 flow level observations, we benchmark Logistic Regression, Random Forest, Support Vector Machine, Isolation Forest, and XGBoost models across energy, carbon, and performance dimensions. Each experiment is executed in a controlled Colab environment instrumented with the CodeCarbon toolkit to quantify power draw and equivalent CO2 output during both training and inference. We construct an Eco Efficiency Index that expresses F1 score per kilowatt hour to capture the trade off between detection quality and environmental impact. Results reveal that optimized Random Forest and lightweight Logistic Regression models achieve the highest eco efficiency, reducing energy consumption by more than forty percent compared to XGBoost while sustaining competitive detection accuracy. Principal Component Analysis further decreases computational load with negligible loss in recall. Collectively, these findings establish that integrating carbon and energy metrics into cybersecurity workflows enables environmentally responsible machine learning without compromising operational protection. The proposed framework offers a reproducible path toward sustainable carbon accountable cybersecurity aligned with emerging US green computing and federal energy efficiency initiatives.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{aashish2025towards,
  title  = {Towards eco friendly cybersecurity: machine learning based anomaly detection with carbon and energy metrics},
  author = {KC Aashish and Md Zakir Hossain Zamil and Md Shafiqul Islam Mridul and Lamia Akter and Farmina Sharmin and Eftekhar Hossain Ayon and Md Maruf Bin Reza and Ali Hassan and Abdur Rahim and Sirapa Malla},
  year   = {2025},
  eprint = {2601.00893},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2601.00893v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2601.00893.svg)](https://codeofpaper.com/paper/2601.00893)

Discussion