Update dataset card to v2 (7 classes, 800 samples, 96.9% accuracy)
Browse files
README.md
CHANGED
|
@@ -13,44 +13,68 @@ tags:
|
|
| 13 |
- machine-learning
|
| 14 |
- telecommunications
|
| 15 |
- software-defined-radio
|
| 16 |
-
pretty_name: RTL-ML RF Signal Classification Dataset
|
| 17 |
size_categories:
|
| 18 |
- 100K<n<1M
|
| 19 |
---
|
| 20 |
|
| 21 |
-
# RTL-ML Dataset
|
| 22 |
-
|
| 23 |
-
> ⚠️ **v1.0 Dataset Notice**: Community feedback identified that several signal classes have suboptimal SNR due to antenna/gain configuration during capture. The classifier achieves stated accuracy but is partially learning frequency-specific noise characteristics rather than pure signal features. v2.0 with improved captures is in progress.
|
| 24 |
|
| 25 |
## Dataset Summary
|
| 26 |
|
| 27 |
-
This dataset contains
|
| 28 |
|
| 29 |
-
**
|
| 30 |
-
**
|
| 31 |
-
**
|
| 32 |
-
**Sample
|
| 33 |
-
**
|
| 34 |
|
| 35 |
## Signal Classes
|
| 36 |
|
| 37 |
| Class | Frequency | Count | Description |
|
| 38 |
|-------|-----------|-------|-------------|
|
| 39 |
-
|
|
| 40 |
-
|
|
| 41 |
-
|
|
| 42 |
-
|
|
| 43 |
-
|
|
| 44 |
-
|
|
| 45 |
-
| noise |
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
- **
|
| 51 |
-
- **
|
| 52 |
-
- **
|
| 53 |
-
- **
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 54 |
|
| 55 |
## Usage
|
| 56 |
|
|
@@ -65,8 +89,8 @@ dataset_path = snapshot_download(
|
|
| 65 |
)
|
| 66 |
|
| 67 |
# Load a sample
|
| 68 |
-
|
| 69 |
-
print(f"Signal
|
| 70 |
```
|
| 71 |
|
| 72 |
## Dataset Structure
|
|
@@ -74,40 +98,27 @@ print(f"Signal shape: {sample.shape}") # (1048576,) complex64
|
|
| 74 |
```
|
| 75 |
rtl-ml-dataset/
|
| 76 |
└── datasets_validated/
|
| 77 |
-
├──
|
| 78 |
-
├──
|
| 79 |
-
├──
|
| 80 |
-
├──
|
| 81 |
-
├──
|
| 82 |
-
├──
|
| 83 |
-
|
| 84 |
-
└─��� pager_0.npy ... pager_29.npy (30 files)
|
| 85 |
```
|
| 86 |
|
| 87 |
-
Each `.npy` file contains:
|
| 88 |
-
- **Shape:** (1048576,) - 1 second @ 1.024 MSPS
|
| 89 |
-
- **Dtype:** `complex64` (I/Q samples)
|
| 90 |
-
- **Size:** ~8.4 MB per file
|
| 91 |
-
|
| 92 |
## Hardware
|
| 93 |
|
| 94 |
-
- **SDR:** RTL-SDR Blog V4 ($39.95)
|
| 95 |
-
- **Computer:** Indiedroid Nova 16GB
|
| 96 |
-
- **Antenna:** Telescopic dipole (included)
|
| 97 |
-
|
| 98 |
-
## Model Performance
|
| 99 |
-
|
| 100 |
-
When trained with Random Forest (100 trees):
|
| 101 |
-
- **Overall Accuracy:** 87.5%
|
| 102 |
-
- **Perfect Classes:** ADS-B, FM, ISM, NOAA APT, Weather, Pager (100%)
|
| 103 |
-
- **Challenging:** APRS ↔ Noise confusion (sparse packets)
|
| 104 |
|
| 105 |
## Citation
|
| 106 |
|
| 107 |
```bibtex
|
| 108 |
-
@misc{rtl-ml-dataset,
|
| 109 |
author = {TrevTron},
|
| 110 |
-
title = {RTL-ML Dataset: Validated RF Signal Captures},
|
| 111 |
year = {2026},
|
| 112 |
publisher = {Hugging Face},
|
| 113 |
howpublished = {\url{https://huggingface.co/datasets/TrevTron/rtl-ml-dataset}}
|
|
@@ -116,19 +127,9 @@ When trained with Random Forest (100 trees):
|
|
| 116 |
|
| 117 |
## License
|
| 118 |
|
| 119 |
-
MIT License
|
| 120 |
|
| 121 |
## Related
|
| 122 |
|
| 123 |
- **Code:** [github.com/TrevTron/rtl-ml](https://github.com/TrevTron/rtl-ml)
|
| 124 |
- **Blog:** [unland.dev/blog/building-ai-radio-scanner-rtl-sdr-machine-learning](https://unland.dev/blog/building-ai-radio-scanner-rtl-sdr-machine-learning)
|
| 125 |
-
- **Hardware Guide:** [Indiedroid Nova Setup](https://github.com/TrevTron/rtl-ml/blob/main/docs/HARDWARE_SETUP.md)
|
| 126 |
-
|
| 127 |
-
## Contributions
|
| 128 |
-
|
| 129 |
-
Captured in Temecula, CA (Southern California) using:
|
| 130 |
-
- Clear line of sight to multiple signal sources
|
| 131 |
-
- Validated with spectral analysis and manual inspection
|
| 132 |
-
- All samples meet minimum SNR requirements (>10 dB for modulated signals)
|
| 133 |
-
|
| 134 |
-
For questions or improvements, see the [GitHub repository](https://github.com/TrevTron/rtl-ml).
|
|
|
|
| 13 |
- machine-learning
|
| 14 |
- telecommunications
|
| 15 |
- software-defined-radio
|
| 16 |
+
pretty_name: RTL-ML RF Signal Classification Dataset v2
|
| 17 |
size_categories:
|
| 18 |
- 100K<n<1M
|
| 19 |
---
|
| 20 |
|
| 21 |
+
# RTL-ML Dataset v2
|
|
|
|
|
|
|
| 22 |
|
| 23 |
## Dataset Summary
|
| 24 |
|
| 25 |
+
This dataset contains **800 validated RF signal samples** captured using an RTL-SDR Blog V4 dongle on an Indiedroid Nova (RK3588S). Designed for training machine learning models to classify common RF signals.
|
| 26 |
|
| 27 |
+
**Samples:** 800 (7 classes)
|
| 28 |
+
**Format:** NumPy arrays (.npy files) — each file is a dict with IQ data + metadata
|
| 29 |
+
**Sample Rate:** 1.024 MSPS
|
| 30 |
+
**Sample Duration:** 0.5 seconds per capture
|
| 31 |
+
**Quality Gates:** DC removal, auto-gain, 6 dB minimum SNR, per-class validation
|
| 32 |
|
| 33 |
## Signal Classes
|
| 34 |
|
| 35 |
| Class | Frequency | Count | Description |
|
| 36 |
|-------|-----------|-------|-------------|
|
| 37 |
+
| FM_broadcast | 88.5, 93.3, 98.7, 101.1, 105.7 MHz | 200 | Commercial FM radio (5 stations) |
|
| 38 |
+
| NOAA_weather | 162.4 MHz | 100 | Weather radio broadcasts |
|
| 39 |
+
| APRS | 144.39 MHz | 100 | Amateur radio position reporting |
|
| 40 |
+
| pager | 152.84 MHz | 100 | POCSAG pager transmissions |
|
| 41 |
+
| ISM_sensors | 433.92 MHz | 100 | Wireless sensors & remote controls |
|
| 42 |
+
| FRS_GMRS | 462.5625 MHz | 100 | Family/general mobile radio |
|
| 43 |
+
| noise | 145.0 MHz | 100 | Background RF noise baseline |
|
| 44 |
+
|
| 45 |
+
## What Changed from v1
|
| 46 |
+
|
| 47 |
+
- **7 classes** (removed ADS-B — 1090 MHz out of R828D tuner range; removed NOAA APT — decommissioned Aug 2025; added FRS/GMRS)
|
| 48 |
+
- **800 samples** (up from 240) with 100+ per class
|
| 49 |
+
- **DC offset removal** on every capture
|
| 50 |
+
- **Auto-gain calibration** per frequency
|
| 51 |
+
- **6 dB SNR gate** — rejects weak/empty captures
|
| 52 |
+
- **Per-class quality validators** (bandwidth, burst ratio, packet detection)
|
| 53 |
+
- **Temporal train/test split** — first 80% train, last 20% test (no data leakage)
|
| 54 |
+
- **Multi-frequency FM** — trained on 5 stations for frequency-invariant classification
|
| 55 |
+
- **Metadata in every file** — center_freq, sample_rate, timestamp, label, snr_db, version
|
| 56 |
+
|
| 57 |
+
## Model Performance
|
| 58 |
+
|
| 59 |
+
- **Random Forest:** 96.9% accuracy (155/160 test samples correct)
|
| 60 |
+
- **Temporal split:** No data leakage between train and test
|
| 61 |
+
- **Cross-frequency FM:** Generalizes to unseen FM stations
|
| 62 |
+
|
| 63 |
+
## Sample Format
|
| 64 |
+
|
| 65 |
+
Each .npy file contains a dict:
|
| 66 |
+
```python
|
| 67 |
+
{
|
| 68 |
+
'samples': np.array([...], dtype=complex64), # IQ data
|
| 69 |
+
'center_freq': 98700000.0,
|
| 70 |
+
'sample_rate': 1024000.0,
|
| 71 |
+
'timestamp': '2026-01-15T14:23:01',
|
| 72 |
+
'label': 'FM_broadcast',
|
| 73 |
+
'duration': 0.5,
|
| 74 |
+
'snr_db': 17.5,
|
| 75 |
+
'version': 'v2'
|
| 76 |
+
}
|
| 77 |
+
```
|
| 78 |
|
| 79 |
## Usage
|
| 80 |
|
|
|
|
| 89 |
)
|
| 90 |
|
| 91 |
# Load a sample
|
| 92 |
+
data = np.load(f"{dataset_path}/datasets_validated/FM_broadcast/FM_broadcast_0.npy", allow_pickle=True).item()
|
| 93 |
+
print(f"Signal: {data['label']}, SNR: {data['snr_db']:.1f} dB, Freq: {data['center_freq']/1e6:.1f} MHz")
|
| 94 |
```
|
| 95 |
|
| 96 |
## Dataset Structure
|
|
|
|
| 98 |
```
|
| 99 |
rtl-ml-dataset/
|
| 100 |
└── datasets_validated/
|
| 101 |
+
├── FM_broadcast/ (200 files from 5 frequencies)
|
| 102 |
+
├── NOAA_weather/ (100 files)
|
| 103 |
+
├── APRS/ (100 files)
|
| 104 |
+
├── pager/ (100 files)
|
| 105 |
+
├── ISM_sensors/ (100 files)
|
| 106 |
+
├── FRS_GMRS/ (100 files)
|
| 107 |
+
└── noise/ (100 files)
|
|
|
|
| 108 |
```
|
| 109 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 110 |
## Hardware
|
| 111 |
|
| 112 |
+
- **SDR:** RTL-SDR Blog V4 ($39.95) — **requires [RTL-SDR Blog driver fork](https://github.com/rtlsdrblog/rtl-sdr-blog)** for R828D tuner support
|
| 113 |
+
- **Computer:** Indiedroid Nova 16GB ($179.95)
|
| 114 |
+
- **Antenna:** Telescopic dipole (included with V4)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 115 |
|
| 116 |
## Citation
|
| 117 |
|
| 118 |
```bibtex
|
| 119 |
+
@misc{rtl-ml-dataset-v2,
|
| 120 |
author = {TrevTron},
|
| 121 |
+
title = {RTL-ML Dataset v2: Validated RF Signal Captures},
|
| 122 |
year = {2026},
|
| 123 |
publisher = {Hugging Face},
|
| 124 |
howpublished = {\url{https://huggingface.co/datasets/TrevTron/rtl-ml-dataset}}
|
|
|
|
| 127 |
|
| 128 |
## License
|
| 129 |
|
| 130 |
+
MIT License — Free for commercial and non-commercial use.
|
| 131 |
|
| 132 |
## Related
|
| 133 |
|
| 134 |
- **Code:** [github.com/TrevTron/rtl-ml](https://github.com/TrevTron/rtl-ml)
|
| 135 |
- **Blog:** [unland.dev/blog/building-ai-radio-scanner-rtl-sdr-machine-learning](https://unland.dev/blog/building-ai-radio-scanner-rtl-sdr-machine-learning)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|