FS3: Few-Shot and Self-Supervised Framework for Efficient Intrusion Detection in Internet of Things Networks

Research output: Chapter in Book/Report/Conference proceedingConference contributionpeer-review


Securing the Internet of Things is critical for its successful deployment in various industries. While Machine Learning techniques have shown promise for intrusion detection in the Internet of Things, existing methods require large amounts of labeled training data; moreover, they encounter challenges with the presence of extreme class imbalance, i.e., some classes are underrepresented in the datasets used. Supervised methods rely on extensive labeled data, which can be costly and time-consuming to obtain. Class imbalance in datasets further exacerbates the challenge by skewing the model's learning process toward the majority classes, leading to poor detection of attacks belonging to minority classes. This issue is particularly pronounced in the Internet of Things environments due to diverse devices and the varying frequency of intrusions targeting them. To overcome these challenges, we present a Few-Shot and Self-Supervised framework, called , for detecting intrusions in IoT networks. works in three phases. The first phase employs self-supervised learning to learn latent patterns and robust representations from unlabeled data. The second phase introduces Few-shot learning with contrastive training. Few-shot learning enables the model to learn from a few labeled examples, thereby eliminating the dependency on a large amount of labeled data. Contrastive Training addresses the class imbalance issue by improving the discriminative power of the model. The third phase introduces a novel K-Nearest neighbor algorithm that sub-samples the majority class instances to further reduce imbalance and improve overall performance. Experimental results based on three publicly available benchmark datasets demonstrate the efficacy of in addressing the challenges posed by the limited availability of labeled data as well as class imbalance in datasets. Our proposed framework , utilizing only of labeled data, outperforms fully supervised state-of-the-art models by up to and with respect to the metrics precision and F1 score, respectively.

Original languageEnglish
Title of host publicationProceedings - 39th Annual Computer Security Applications Conference, ACSAC 2023
Number of pages12
ISBN (Electronic)9798400708862
StatePublished - Dec 4 2023
Event39th Annual Computer Security Applications Conference, ACSAC 2023 - Austin, United States
Duration: Dec 4 2023Dec 8 2023

Publication series

NameACM International Conference Proceeding Series


Conference39th Annual Computer Security Applications Conference, ACSAC 2023
Country/TerritoryUnited States

Bibliographical note

Publisher Copyright:
© 2023 Owner/Author.


  • Few-Shot Learning
  • Internet of Things.
  • Intrusion detection

ASJC Scopus subject areas

  • Human-Computer Interaction
  • Computer Networks and Communications
  • Computer Vision and Pattern Recognition
  • Software


Dive into the research topics of 'FS3: Few-Shot and Self-Supervised Framework for Efficient Intrusion Detection in Internet of Things Networks'. Together they form a unique fingerprint.

Cite this