File size: 3,830 Bytes
57750be
 
 
 
05c2e96
 
b17b2be
64e20da
 
05c2e96
 
64e20da
 
 
 
 
 
05c2e96
 
79ddb82
0a80ba3
 
 
 
 
05c2e96
 
 
79ddb82
5770ed9
9297d47
3446a3c
 
5e7b349
5cc6fb2
3446a3c
032501b
 
 
05c2e96
 
 
 
d2f0fbf
 
05c2e96
009fd71
05c2e96
3602f1c
 
009fd71
05c2e96
 
 
 
 
 
 
 
 
d2f0fbf
05c2e96
 
 
d2f0fbf
05c2e96
d2f0fbf
05c2e96
d2f0fbf
 
 
 
 
 
 
 
 
 
 
 
 
 
 
05c2e96
 
 
 
 
 
032501b
 
05c2e96
 
d2f0fbf
05c2e96
032501b
05c2e96
 
 
032501b
05c2e96
d2f0fbf
032501b
 
 
 
d2f0fbf
05c2e96
032501b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fb5eb4a
a84d51d
d2f0fbf
 
 
 
cd73b64
d2f0fbf
f8124d4
d2f0fbf
cd73b64
dc9880e
64e20da
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
---
license: mit
language:
- en
task_categories:
- image-classification
- tabular-classification
- tabular-regression
- time-series-forecasting
multilinguality:
- monolingual
tags:
- multimodal
- jamming-detection
- spectrograms
- time-series
- federated-learning
---

## FedJam Dataset

The FedJam dataset is a **multimodal dataset** for jamming detection and classification in wireless networks, combining time–frequency spectrogram images with
cross-layer network KPI time series. Each sample includes aligned **vision and time-series modalities**, allowing joint analysis of physical-layer signal behavior
and network-layer performance. The data are collected from a real over-the-air experimental testbed, under a variety of operating conditions, including multiple
adversarial jamming scenarios as well as normal operation without any jammer present, reflecting realistic wireless environments.

---

## Code

The dataset was used in the following paper “FedJam: A Multi-Modal Federated Learning Framework for Jamming Detection”, which has been accepted for
publication at the IEEE International Conference on Computer Communications (INFOCOM) 2026. 

The implementation and supporting code are publicly available here: https://github.com/panitsasi/fedJam

The research paper can be found here: https://arxiv.org/pdf/2508.09369

---

## Dataset Overview

- **Modality 1 (Vision)**: Spectrogram images  
  - Format: PNG  
  - Resolution: **224 × 224 × 3**  
  - One spectrogram image per sample

- **Modality 2 (Time Series)**: Network KPIs (WiFi)  
  - Format: CSV / structured sequences  
  - Fixed-length normalized multivariate time series
  - 256 measurements per KPI feature, per sample
  - Features:
    - `Time`
    - `Latency`
    - `Jitter`
    - `Packet Loss Count`
    - `Noise`
    - `SNR`

- **Labels**: Benign traffic and multiple jamming attack types

Each spectrogram image and KPI time series correspond to the **same time window**.

---

## Dataset Schema

Each dataset sample contains:

- **`spectrogram`** *(Image)*  
  Spectrogram image of shape **224 × 224 × 3**.

- **`kpis`** *(sequence / array)*  
  Multivariate time series of shape **[256, F]**, where:
  - `256` is the number of temporal measurements
  - `F` is the number of KPI features  
    (`Time`, `Latency`, `Jitter`, `Packet Loss Count`, `Noise`, `SNR`)

- **`label`** *(integer)*  
  Encoded class label:
  - `0`: Benign  
  - `1`: Jamming type A  
  - `2`: Jamming type B  
  - `3`: Jamming type C  
---

## Loading the Dataset

```python
from datasets import load_dataset
import matplotlib.pyplot as plt
import numpy as np

# Load the FedJam dataset
dataset = load_dataset("panitsasi/FedJam")

# Access train / test splits
train_data = dataset["train"]
test_data  = dataset["test"]

# Select one sample
sample = train_data[0]

# Extract modalities
image = sample["image"]          
timeseries = sample["timeseries"]  
label = sample["label"]          

print(sample.keys())
print("Timeseries shape:", len(timeseries), "x", len(timeseries[0]))
print("Label:", label)

ts = np.array(timeseries)
kpi_names = ["Latency", "Jitter", "Packet Loss", "Noise", "SNR"]

# Plot spectrogram and all KPIs
fig, axes = plt.subplots(1, 1 + ts.shape[1], figsize=(18, 3))

# Spectrogram
axes[0].imshow(image)
axes[0].set_title("Spectrogram")
axes[0].axis("off")

# KPI time series
for i in range(ts.shape[1]):
    axes[i + 1].plot(ts[:, i])
    axes[i + 1].set_title(kpi_names[i])
    axes[i + 1].set_xlabel("Time")
    axes[i + 1].set_ylabel("Value")

plt.tight_layout()
plt.show()

```
---

## Citation

If you use this dataset, please cite:
```python
I. Panitsas, I. Ofeidis, and L. Tassiulas,
“FedJam: Multimodal Federated Learning Framework for Jamming Detection”
arXiv:2508.09369 [cs.NI], 2025. doi:10.48550/arXiv.2508.09369.
```

---