Ahmed Ramzi Bahlali

Ahmed Ramzi Bahlali

Auto-generated profile, based on publicly available information

Ahmed Ramzi Bahlali

IMATH Laboratory, University of Toulon, La Garde, France

Research Focus & Metrics

Academic Career Length

2Years (2025-Present)

(Calculated once Scilit publication data is synced: current year − year of first publication + 1)

Representative Publications

View All Publications
5 August 2025 in IEEE Access
Verified
Journal Article
Open access
ABA. Ramzi Bahlali
A. Ramzi Bahlali
ABAbdelmalik Bachir
Abdelmalik Bachir
ALAbdeldjalil Labed
Abdeldjalil Labed
The widespread adoption of encryption in computer networks has made detecting malicious traffic, especially at network perimeters, increasingly challenging. As packet contents are concealed, traditional monitoring techniques such as Deep Packet Inspection (DPI) become ineffective. Consequently, researchers have started employing data-driven methods based on Machine and Deep Learning (ML & DL) to identify malicious behavior even from encrypted traffic, typically within Anomaly-based Network Intrusion Detection Systems (A-NIDS). Existing approaches rely heavily on supervised learning, which requires large volumes of labeled benign and malicious traffic. However, generating these labels is time-consuming, error-prone, and often requires expert knowledge. In this paper, we propose a semi-supervised learning framework that leverages Self-Supervised Learning (SSL) to learn discriminative representations from unlabeled network traffic. We design a novel pretext task that predicts important masked features, enabling the model to capture meaningful structure in the data. These learned representations are fine-tuned with minimal labeled data using a Custom-Autoencoder (Custom-AE) classifier. Experimental results show that the representation learned from our proposed pretext task outperforms the best competing method by 3.41% on UNSW-NB15 (NB15) and 1.53% on CSE-CIC-IDS2018 (CSE18) when evaluated using linear probing. When fine-tuned on the Custom-AE with only 100 benign and 10 malicious samples, it achieves 83.51% (NB15) and 87.43% (CSE18) accuracy, representing gains of 4.55% and 5.08% over the initial features, respectively. This demonstrates stronger suitability for label-scarce real-world scenarios compared to existing approaches.

19 March 2025 in TechRxiv
Verified
Preprint
Open access
ABA. Ramzi Bahlali
A. Ramzi Bahlali
ABAbdelmalik Bachir
Abdelmalik Bachir
ALAbdeldjalil Labed
Abdeldjalil Labed
The widespread adoption of encryption in computer networks has made detecting malicious traffic, particularly at network perimeters, increasingly challenging. Encryption obscures traffic content, limiting traditional monitoring tools like Deep Packet Inspection (DPI) and complicating malicious traffic detection. To address this, researchers have turned to data-driven approaches using Machine and Deep Learning (ML & DL) to detect malicious traffic directly from encrypted data, often implemented in Anomaly-based Network Intrusion Detection Systems (A-NIDS). However, existing solutions rely heavily on fully-supervised learning, requiring large volumes of labeled benign and malicious traffic—a process that is time-consuming, resource-intensive, and error-prone. In this paper, we propose a semi-supervised learning framework based on Self-Supervised Learning (SSL) to learn meaningful representations of network traffic from fully-unlabeled data. Our approach introduces a novel pretext task that involves predicting semantically important masked features in the network traffic, encouraging the model to capture intrinsic patterns and relationships within the data. The learned representations are subsequently fine-tuned using a small amount of labeled data through a custom Autoencoder (AE) classifier. Experimental results demonstrate that our SSL-based framework effectively learns discriminative representations of network traffic, significantly enhancing the detection of malicious activities in downstream tasks and reducing the reliance on labeled data while achieving competitive performance compared to fully-supervised settings, showcasing its potential for real-world deployment in scenarios where labeled data is scarce.

2 July 2026
Verified
Thesis
Closed access
ABAhmed Ramzi Bahlali
Ahmed Ramzi Bahlali
Une approche par apprentissage automatique pour la détection des intrusions dans le trafic réseau: La sécurité à la périphérie du réseau joue un rôle clé dans la protection des infrastructures informatiques modernes. Les systèmes de détection d’intrusion basés sur les signatures et les pare-feux de nouvelle génération, encore principalement utilisés, reposent sur des règles prédéfinies et sur l’inspection approfondie des paquets pour identifier les menaces. S'ils restent efficaces contre les attaques connues, ils nécessitent toutefois des mises à jour fréquentes et peinent à détecter les nouvelles attaques. La généralisation du chiffrement réduit d'autant plus leur efficacité en masquant le contenu des paquets, rendant plus difficile la détection du trafic malveillant. Ces dernières années, de nouvelles méthodes, reposant sur la détection d'anomalies, ont émergé afin de renforcer la détection d’intrusions. Elles s’appuient sur les techniques d'apprentissage automatique et profond afin de distinguer, à partir uniquement des métadonnées, le trafic bénin du trafic malveillant. Dans cette thèse, nous proposons une évaluation approfondie de ces approches. Nous présentons ensuite une nouvelle approche, basée sur l'utilisation d'un Autoencodeur, permettant d'améliorer leur précision. Enfin, nous proposons une méthode d'apprentissage semi-supervisé basée sur l'apprentissage auto-supervisé des représentations afin de réduire la dépendance aux données annotées.