Analysis of Machine Learning Models Based on Predictive Performance, Energy Consumption, and Carbon Emissions
Abstract
This study aims to evaluate intrusion detection models by jointly considering predictive performance and computational sustainability. The main problem addressed is that many intrusion detection studies emphasize classification accuracy while providing limited evidence about execution time, energy use, and carbon dioxide-equivalent emissions, even though these factors affect repeated training and practical deployment. The contribution of this work is a comparative assessment of four supervised learning models, Random Forest, Histogram-based Gradient Boosting, Support Vector Machine, and Extreme Gradient Boosting, under a unified experimental workflow. The methodology uses the Wednesday working-hours subset of the Canadian Institute for Cybersecurity intrusion detection dataset released in 2017, which contains benign traffic and several denial-of-service attack classes. The procedure includes dataset selection, data cleaning, preprocessing, stratified training and testing, model fitting, predictive evaluation, sustainability measurement, and comparative interpretation. The evaluation is supported by one workflow figure, tables describing predictive results and sustainability measurements, and comparative visualizations of classification and resource-efficiency outcomes. The results show that Extreme Gradient Boosting achieved the strongest overall classification performance, with an accuracy of 0.9994, macro recall of 0.9966, macro F1-score of 0.9956, macro precision of 0.9946, and one-versus-rest area under the curve of 0.9999, while requiring 0.002559 kilowatt-hours of energy and 11.83 seconds of execution time. Random Forest produced highly comparable predictive results with similarly low resource consumption. Histogram-based Gradient Boosting was the most efficient model in terms of time, energy use, and emissions, but its macro-level performance was substantially lower. Support Vector Machine produced acceptable predictive results but required substantially higher computational resources. These findings imply that sustainable intrusion detection should select models through a balanced evaluation of detection capability and computational cost rather than accuracy alone.
Keywords
Full Text:
PDFReferences
R. Schwartz, J. Dodge, N. A. Smith, and O. Etzioni, “Green AI,” arXiv (Cornell University), 2022, doi: 10.48550/arxiv.1907.10597.
“Intrusion detection evaluation dataset (CIC-IDS2017).” Accessed: Apr. 02, 2026. [Online]. Available: https://www.unb.ca/cic/datasets/ids-2017.html
P. V. Chavan and N. V. Alone, “Optimizing Intrusion Detection with Random Forest: A High-Accuracy Approach Using CIC-IDS 2017,” Int. J. Comput. Appl., vol. 187, no. 3, pp. 17–22, May 2025, doi: 10.5120/ijca2025924816.
M. Nassef, “Boosting Intrusion Detection Against DDoS Attacks Using a Feature Engineering-Based Fine-Tuned XGBoost Model,” Int. J. Semant. Web Inf. Syst., vol. 21, no. 1, pp. 1–39, Jul. 2025, doi: 10.4018/IJSWIS.383062.
H. GÜNEY, “Preprocessing Impact Analysis for Machine Learning-Based Network Intrusion Detection,” Sakarya University Journal of Computer and Information Sciences, vol. 6, no. 1, pp. 67–79, Apr. 2023, doi: 10.35377/saucis...1223054.
Md. A. Talukder, M. Khalid, and N. Sultana, “A hybrid machine learning model for intrusion detection in wireless sensor networks leveraging data balancing and dimensionality reduction,” Sci. Rep., vol. 15, no. 1, p. 4617, Feb. 2025, doi: 10.1038/s41598-025-87028-1.
R. Verdecchia, J. Sallou, and L. Cruz, “A Systematic Review of Green AI.”, Accessed: Mar. 20, 2026. [Online]. Available: https://robertoverdecchia.github.io/papers/WIRE_2023.pdf
A. Dey, “Advanced Threat Recognition: Harnessing Machine Learning for Intrusion Detection,” Int. J. Res. Appl. Sci. Eng. Technol., vol. 12, no. 8, pp. 1248–1259, Aug. 2024, doi: 10.22214/ijraset.2024.64096.
H. A. Salman, A. Kalakech, and A. Steiti, “Random Forest Algorithm Overview,” Babylonian Journal of Machine Learning, vol. 2024, pp. 69–79, Jun. 2024, doi: 10.58496/BJML/2024/007.
mina ibrahim, H. AbdelRaouf, K. Amin, and N. Semary, “Keystroke dynamics based user authentication using Histogram Gradient Boosting,” IJCI. International Journal of Computers and Information, vol. 0, no. 0, pp. 0–0, Sep. 2022, doi: 10.21608/ijci.2022.155605.1081.
L. Iosipoi and A. Vakhrushev, “SketchBoost: Fast Gradient Boosted Decision Tree for Multioutput Problems,” ArXiv, Nov. 2023.
H. Noor, A. Dastranj, M. R. Khalaj, and S. H. Rajae, “Efficiency assessment of some machine learning algorithms for predicting the Qanat’s discharge,” Water Supply, vol. 25, no. 10, pp. 1391–1410, Oct. 2025, doi: 10.2166/ws.2025.078.
C. Garcia et al., “Predicting the impact of adding metakaolin on the splitting strength of concrete using ensemble ML classification and symbolic regression techniques –a comparative study,” Front. Built Environ., vol. 10, May 2024, doi: 10.3389/fbuil.2024.1395448.
G. Divya, M. N. SravanKumar, T. JayaDharani, B. Pavan, and K. Praveen, “Deciphering Cardiac Destiny: Unveiling Future Risks Through Cutting-Edge Machine Learning Approac,” Sep. 2024.
S. Zarbakhsh, A. R. Shahsavar, and M. Soltani, “Optimizing PGRs for in vitro shoot proliferation of pomegranate with bayesian-tuned ensemble stacking regression and NSGA-II: a comparative evaluation of machine learning models,” Plant Methods, vol. 20, no. 1, p. 82, May 2024, doi: 10.1186/s13007-024-01211-5.
W. Su et al., “An XGBoost-Based Knowledge Tracing Model,” International Journal of Computational Intelligence Systems, vol. 16, no. 1, p. 13, Feb. 2023, doi: 10.1007/s44196-023-00192-y.
W. Chimphlee and S. Chimphlee, “Hyperparameters optimization XGBoost for network intrusion detection using CSE-CIC-IDS 2018 dataset,” IAES International Journal of Artificial Intelligence (IJ-AI), vol. 13, no. 1, p. 817, Mar. 2024, doi: 10.11591/ijai.v13.i1.pp817-826.
K. W. N. and A. H. B. N. S. Abd, “The importance of the clustering model to detect new types of intrusion in data traffic,” Nov. 2024.
N. Kumar and U. Kumar, “Diverse Analysis of Data Mining and Machine Learning Algorithms to Secure Computer Network,” Mar. 17, 2021. doi: 10.21203/rs.3.rs-305354/v1.
B. Almaslukh, “Deep Learning and Entity Embedding-Based Intrusion Detection Model for Wireless Sensor Networks,” Computers, Materials & Continua, vol. 69, no. 1, pp. 1343–1360, 2021, doi: 10.32604/cmc.2021.017914.
M. Rapp, J. Fürnkranz, and E. Hüllermeier, “On the efficient implementation of classification rule learning,” Adv. Data Anal. Classif., vol. 18, no. 4, pp. 851–892, Dec. 2024, doi: 10.1007/s11634-023-00553-7.
DOI: https://doi.org/10.47738/jads.v7i3.1482
Refbacks
- There are currently no refbacks.

Journal of Applied Data Sciences
| ISSN | : | 2723-6471 (Online) |
| Publisher | : | Bright Publisher |
| Website | : | http://bright-journal.org/JADS |
| : | taqwa@amikompurwokerto.ac.id (principal contact) | |
| support@bright-journal.org (technical issues) |
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0




.png)