Skip to main navigation Skip to search Skip to main content

Advancing cybersecurity: AI-driven computer vision and machine learning models for real-time threat detection and prevention

  • Mohammed K. Alzaylaee
  • , Fahdah A. Almarshad
  • , Ghada Abdalaziz Gashgari
  • , Danah Algawiaz
  • , Abdullah I.A. Alzahrani
  • Umm Al-Qura University
  • University of Jeddah
  • Shaqra University

Research output: Contribution to journal › Article › peer-review

Abstract

The increasing sophistication of cyber threats, including phishing, malware, and network anomalies, necessitates detection mechanisms that extend beyond traditional rule-based security systems. In this study, real-time detection is defined as low-latency inference suitable for continuous monitoring in edge or cloud environments, enabling per-sample or per-flow predictions without offline batch processing. Within this operational framework, lightweight artificial intelligence models MobileNetV2, Random Forest, and CNN-LSTM are evaluated using the UNSW-NB15 and CICIDS2017 network traffic datasets, together with a publicly available phishing image dataset containing more than 5000 labeled samples. The inclusion of heterogeneous datasets ensures exposure to diverse attack patterns and realistic deployment conditions. To address resource constraints commonly encountered in IoT and small-scale environments, the analysis emphasizes scalability, interpretability, and computational efficiency alongside detection performance. MobileNetV2, comprising approximately 2.3 million parameters and 300 million floating-point operations (FLOPs), achieved 85.4 % accuracy with Precision 0.84, Recall 0.82, F1-Score 0.83, and AUC 0.87, supporting its role as a first-stage phishing filter in low-resource settings. In contrast, the Random Forest model initially exhibited reduced sensitivity to minority attack classes; however, the application of SMOTE and cost-sensitive learning improved Recall to 83.2 %, F1-Score to 0.81, and AUC to 0.88, yielding balanced anomaly detection. Furthermore, the optimized CNN-LSTM model demonstrated improved generalization, achieving Precision 0.80, Recall 0.77, F1-Score 0.79, and AUC 0.84 following regularization and early stopping. To enhance transparency, SHapley Additive exPlanations (SHAP) identified Packet Header Length, Domain Entropy, and Connection Duration as dominant predictive features. The study contributes a comparative evaluation of lightweight detection models, consistent emphasis on security-critical metrics, and interpretable insights supporting practical cybersecurity deployment.

Original languageEnglish
Pages (from-to)1627-1638
Number of pages12
JournalJournal of Engineering Research (Kuwait)
Volume14
Issue number2
DOIs
StatePublished - Jun 2026

Keywords

  • Adversarial robustness
  • Cybersecurity
  • Explainable AI
  • IoT security
  • Network intrusion detection
  • Phishing detection
  • Real-time threat detection

Fingerprint

Dive into the research topics of 'Advancing cybersecurity: AI-driven computer vision and machine learning models for real-time threat detection and prevention'. Together they form a unique fingerprint.

Cite this