LEVERAGING RANDOM FOREST ALGORITHM FOR PROACTIVE DETECTION OF INFORMATION BREACHES IN THE NIGERIAN OIL AND GAS SECTOR

Authors

  • C. Ebelogu University of Abuja, FCT-Abuja
  • R. Prasad Department of Computer Science, University of Abuja, Abuja, Nigeria
  • H. Bisallah Department of Computer Science, University of Abuja, Abuja, Nigeria
  • M. Sanusi Department of Computer Science, University of Abuja, Abuja, Nigeria
  • I. Musa Department of Computer Science, University of Abuja, Abuja, Nigeria

DOI:

https://doi.org/10.4314/njt.v44i3.10

Keywords:

Information Security, Machine Learning, Cyber Threat Detection, Nigerian Oil and Gas Sector, Random Forest Algorithm

Abstract

The Nigerian oil and gas sector's dependence on information and communication technologies makes it vulnerable to various cybersecurity threats, such as data breaches that can disrupt operations and cause significant financial losses. Despite implementing several security measures like firewalls, authentication systems, and intrusion detection systems, they struggle to keep up with the rapidly changing threat landscape. However, machine learning techniques offer potential for strengthening security in the oil and gas industry. Therefore, this study collected data on cyberattacks from relevant organizations, analyzed, cleaned, preprocessed, and split the dataset into training and testing sets using an 80/20 ratio with Python tools on Google Colab. The research identified common attack vectors, which were used to develop a machine learning model aimed at detecting and mitigating cyber incidents. The initial phase of model development faced challenges due to imbalanced datasets, leading to biased results. By applying data balancing techniques like SMOTE, the model's accuracy increased from 75% to 92%. Addressing the class imbalance also enhanced other evaluation metrics like recall, precision, and F1 score, demonstrating the model's potential for more accurate threat detection and prevention. The study concludes that integrating machine learning with cybersecurity can improve proactive security measures for infrastructure in the oil and gas sector through early warning systems with minimal false positives. This highlights the importance of advancing cybersecurity practices in Nigeria's oil and gas industry by leveraging machine learning to adapt to and counteract emerging threats effectively.

References

[1] Ngobe, E. K. (2020). Information technology: “A sustainable competitive advantage trend in Nigerian oil and gas industry”. International Journal of Business & Law Research, 8(3), 100-108.

[2] Pashchenko, O., Khomenko, V., Ratov, B., Koroviaka, Y., & Rastsvietaiev, V. (2024). “Main Security Threats to Oil and Gas Infrastructure”. In Critical Infrastructure Protection in Response to Terrorist Attacks (pp. 109-116). IOS Press.

[3] Idowu, O. A., & Madaki, M. (2021). “Cybercrimes and Challenges of Cyber-Security in Nigeria”. International Journal of Sociology and Development, 3(1).

[4] Stergiopoulos, G., Gritzalis, D. A., & Limnaios, E. “Counterattacks on the oil and gas sector: A survey on incident assessment and attack patterns”. IEEE Access, 8, 2020, pp. 128440-128475. https://doi.org/10.1109/ACCESS.2020.3007960

[5] Onuntuei, E. (2018). “Safety, Risk, and Reliability of Cyber Network in Oil and Gas Industry”. International Journal of Teaching, Education, and Learning, 2(2), 81–97. https://dx.doi.org/10.20319/pijtel.2018.22.8197.

[6] Microsoft InfoSec (2023). What is information security (InfoSec)? Microsoft. Retrieved December 13, 2022, from https://www.microsoft.com/enww/security/business/security-101/what-is-information-security-infosec.

[7] Ugwu, C. (2024, November 11). “Nigeria’s oil and gas firms grow revenue to N1.031 trillion in 9 months”. Nairametrics .https://nairametrics.com/2022/11/11/nigerias-leading-oil-and-gas-firms-grow-revenue-to-n1-031-trillion-in-9-months/

[8] Akpan, U. E. (2024). Cybersecurity in the Petroleum Industry: “A Comprehensive Review of Threats and Mitigation Strategies”. Journal of Engineering Research and Reports, 26(12), 261-270.

[9] Mallick, M. A. I., & Nath, R. (2024). Navigating the cybersecurity landscape: “A comprehensive review of cyber-attacks, emerging trends, and recent developments”. World Scientific News, 190(1), 1-69.

[10] Tariq, Z., Aljawad, M. S., Hasan, A., Murtaza, M., Mohammed, E., El-Husseiny, A., ... & Abdulraheem, A. (2021). “A systematic review of data science and machine learning applications to the oil and gas industry”. Journal of Petroleum Exploration and Production Technology, 1-36.

[11] Nwokonkwo, O. C., Samuel, N. U., Eze, U. F., John-Otumu, A. M. (2024). “Machine Learning Framework for Real-Time Pipeline Anomaly Detection and Maintenance Needs Forecast Using Random Forest and Prophet Model”. Automation, Control and Intelligent Systems, 12(2), 22-34.https://doi.org/10.11648/j.acis.20241202.11

[12] Jambol, D. D., Ukato, A., Ozowe, C., & Babayeju, O. A. (2024). “Leveraging machine learning to enhance instrumentation accuracy in oil and gas extraction”. Computer Science & IT Research Journal, 5(6), 1335-1357. https://doi.org/10.51594/csitrj.v5i6.1200

[13] Oyewole, O., Adeleye, O., & Akintoye, S. (2021). “Evaluating the cybersecurity risks and challenges in the Nigerian oil and gas sector. Journal of Information Security and Applications, p. 60, 102697.

[14] Adeyeye, O. A., & Omogbadegun, Z. O. (2019). Cybercrime and the Nigerian Oil and Gas Industry: “Threats, Impacts, and Mitigation Strategies”. Journal of Information Security, 10(4), 312-325.

[15] Hanga, K. M., & Kovalchuk, Y. (2019). “Machine learning and multi-agent systems in oil and gas industry applications”: A survey. Computer Science Review, 34, 100191. doi: 10.1016/j.cosrev.2019.100191.

[16] Sircar, A., Yadav, K., Rayavarapu, K., Bist, N., & Oza, H. (2021). “Application of machine learning and artificial intelligence in oil and gas industry”. Petroleum Research, 6(4), 379-391.

[17] Obite, C. P., Chukwu, A., Bartholomew, D. C., Nwosu, U. I., & Esiaba, G. E. (2021). “Classical and machine learning modeling of crude oil production in Nigeria”: Identification of an eminent model for application. Energy Reports, 7, 3497-3505.

[18] Gupta, A., & Shah, M. (2022). “A comprehensive study on artificial intelligence in the oil and gas sector”. Environmental Science and Pollution Research, 29(50), 50984–50997. https://doi.org/10.1007/s11356-021-15379-z

[19] Adebayo, O. S., & Adetunmbi, A. O. (2021). “Cybersecurity Risk Management Framework for the Nigerian oil and gas sector”. International Journal of Scientific and Technology Research, 10(7), 348-354.

[20] Umaru, S. B., Inuwa-Dutse, I., & Abdullahi, I. (2021). Artificial Intelligence: “A Paradigm Shift for Enhancing Cybersecurity in the Nigerian Oil and Gas Sector”. International Journal of Advanced Computer Science and Applications, 12(1), 324-333.

[21] Elijah, O., Ling, P. A., Rahim, S. K. A., Geok, T. K., Arsad, A., Kadir, E. A., & Abdulfatah, M. Y. (2021). “A survey on Industry 4.0 for the oil and gas industry: upstream sector”. IEEE Access, 9, 144438-144468.

[22] Elijah, O., Ling, P. A., Rahim, S. K. A., Geok, T. K., Arsad, A., Kadir, E. A., & Abdulfatah, M. Y. (2021). “A survey on Industry 4.0 for the oil and gas industry: upstream sector”. IEEE Access, 9, 144438-144468.

[23] Gupta, P. (2021). Practical Data Science with Jupyter: “Explore Data Cleaning, Pre-processing, Data Wrangling, Feature Engineering, and Machine Learning using Python and Jupyter (English Edition)”. BPB Publications, India.

[24] Gupta, P., Sehgal, N. K., & Acken, J. M. (2024). Machine learning algorithms. In Introduction to Machine Learning with Security: “Theory and Practice Using Python in the Cloud”. Springer International Publishing. pp. 45-176.

[25] Chan, J. Y. L., Leow, S. M. H., Bea, K. T., Cheng, W. K., Phoong, S. W., Hong, Z. W., & Chen, Y. L. (2022). “Mitigating the multicollinearity problem and its machine learning approach”: A Review: Mathematics, 10(8), 1283.

[26] Alduailij, M., Khan, Q. W., Tahir, M., Sardaraz, M., Alduailij, M., & Malik, F. (2022). “Machine-learning-based DDoS attack detection using mutual information and random forest feature importance method”. Symmetry, 14(6), 1095.

[27] Sayed, M. A., Sarker, M. S. U., Al Mamun, A., Nabi, N., Mahmud, F., Alam, M. K., ... & Choudhury, M. Z. M. E. (2024). “Comparative Analysis of Machine Learning Algorithms for Predicting Cybersecurity Attack Success: A Performance Evaluation”. The American Journal of Engineering and Technology, 6(09), 81-91.

[28] Omonayin, E., Akande, O. N., Muhammad, A., & Enemuo, S. (2025). “Evaluating Deep Learning Models for Real-Time Waste Classification in Smart IOT Environment”. Nigerian Journal of Technology, 44(2), 357-366.

[29] Bayode, O., Aiyelokun, O., Osanyinlokun, O., & Adanikin, A. (2025). "Enhancing Road Crash Prediction: A Comparative Study of Machine Learning Algorithms and Safety Performance Functions on The Lagos-Ibadan Expressway”. Nigerian Journal of Technology, 44(2), 215-221

Downloads

Published

2025-10-15

Issue

Section

Computer, Telecommunications, Software, Electrical & Electronics Engineering

How to Cite

LEVERAGING RANDOM FOREST ALGORITHM FOR PROACTIVE DETECTION OF INFORMATION BREACHES IN THE NIGERIAN OIL AND GAS SECTOR. (2025). Nigerian Journal of Technology, 44(3), 461-470. https://doi.org/10.4314/njt.v44i3.10