Thaki-RFUAV-PSD-ResNet1D

πŸ‡°πŸ‡· ν•œκ΅­μ–΄ μΉ΄λ“œ: MODEL_CARD.ko.md

A 3.3M-parameter 1D ResNet that reads one 0.1-second power spectrum (8192 bins, 2.43 GHz Β± 10 MHz) and identifies which of 14 UAV models is transmitting. 14-model identification is the primary function. Internally the output head has 28 joint classes = 14 UAV models Γ— 2 signal types (control_status = flight-control signal, telemetry = flight-status signal), because the dataset ships the two signal types as separate recordings. The 14-model probability of a UAV is the sum of its two joint-class softmax probabilities; predict_uav() returns that 14-way distribution, using the label list in config.json (not a hard-coded index order). This model does not recognise 28 kinds of UAV. A second head predicts the flight phase (arming, takeoff, hovering, moving, landing); it is near chance and should not be used.

Status: research preview, dev-only evaluation, no test-set number. On a recording site never seen in training, 14-model identification macro-F1 is 0.9295 (dev). A logistic-regression baseline trained directly on the 14 models scores 0.8309 on the same 60,480 dev captures: Ξ” observed +0.099, session-bootstrap mean +0.100, paired 95% CI [+0.079, +0.122]. The 28-class joint target (model Γ— signal type) is a different task and is not better than its baseline (0.483 vs 0.474, CI [βˆ’0.027, +0.040]), because the signal type is barely recoverable from one spectrum (2-way accuracy 0.587). The dev site was used for checkpoint selection, for the 14-model re-aggregation and for later model comparisons, so all dev numbers carry selection optimism; 0.9295 is not an independent test score. The held-out recording site 03 has not been evaluated and stays sealed.

pipeline_tag is the closest Hub category; the input is an RF power spectrum, not audio.

0. How to use

from huggingface_hub import snapshot_download
import sys, numpy as np
path = snapshot_download("ThakiCloud/Thaki-RFUAV-PSD-ResNet1D")
sys.path.insert(0, path)
from rfuav1d import RFUAV1D

model = RFUAV1D(path, device="cpu")          # "cuda" / "mps" also work
psd = np.load("my_capture.npy")               # LINEAR power, shape (8192,) or (N, 8192)
r = model.predict_uav(psd)                    # primary task: 14 UAV models
print(r["uav"])                               # ['uav05', ...]  argmax per capture
print(r["classes"], r["proba"].shape)         # 14 UAV ids, (N, 14) probabilities (rows sum to 1)

print(model.predict(psd))                     # per-capture dict incl. the auxiliary heads
# [{'uav': 'uav05', 'uav_p': 0.93, 'emitter': 'uav05|telemetry', 'emitter_p': 0.71, 'movement': 'hovering', 'movement_p': 0.38}]
# use 'uav'; the signal-type part of 'emitter' is close to a coin flip at a new site, and 'movement' is near chance

Input contract: linear power spectral density, 8192 bins spanning 2.42–2.44 GHz (β‰ˆ2.44 kHz/bin), one 0.1 s capture. The module applies log10(max(psd, 1e-20)) and per-bin standardisation with the training-split statistics stored in model.safetensors. A capture with a different centre frequency, span, bin count or receiver chain is out of distribution. python rfuav1d.py runs a demo on synthetic noise.

1. Results (dev = recording site 02, never used for training)

The data has three recording sites, each with one indoor and one outdoor environment. Site 01 was used for training, site 02 for every selection decision (dev), and site 03 is a sealed test. Spectra that appear byte-identical in more than one split were removed from all splits. 60,480 dev captures, 280 recording sessions.

Task This model Baseline Ξ” observed Β· bootstrap mean [95% CI]
UAV model, 14 classes, macro-F1 (probabilities summed per model = predict_uav) 0.9295 0.8309 (LogReg trained on 14 classes) +0.099 Β· +0.100 [+0.079, +0.122] β€” significant
UAV model, 14 classes, macro-F1 (argmax mapped to model) 0.9269 0.7896 (28-class LogReg, argmax mapped) +0.137 Β· +0.139 [+0.118, +0.163]
Signal type (control vs status), 2 classes, accuracy 0.587 0.637 (28-class LogReg) β€”
Model Γ— signal type, 28 classes, macro-F1 0.4827 0.4740 (28-class LogReg) +0.009 Β· +0.006 [βˆ’0.027, +0.040] β€” not significant
Model Γ— signal type, 28 classes, accuracy 0.5381 0.5111 β€”
Flight phase, 5 classes, macro-F1 0.2282 0.2169 +0.011 [βˆ’0.023, +0.044] β€” not significant

The first row is the headline. The 14-class LogReg uses the same features as the 28-class one (log PSD pooled to 256 bands, mean + max, plus 6 global statistics) and is fit on site 01 only. The bootstrap resamples the 280 dev recording sessions (B = 2000) with both models scored on the same captures. The 28-class rows describe the internal joint head, not the product task.

  • Versus a gradient-boosted-tree baseline on the same features (macro-F1 0.307) the model is clearly better: Ξ” +0.172 [+0.131, +0.211]. This says the GBM baseline is weak, not that the model is strong.
  • 14-model per-class recall (4,320 dev captures each), this model vs the 14-class LogReg: uav01 0.929 / 0.538, uav02 0.594 / 0.599, uav03 0.973 / 0.916, uav04 0.868 / 0.525, uav05 0.867 / 0.639, uav06 0.927 / 0.712, uav07 0.920 / 0.965, uav08 0.995 / 0.995, uav09 0.974 / 0.910, uav10 1.000 / 0.990, uav11 0.996 / 0.992, uav12 1.000 / 1.000, uav13 1.000 / 1.000, uav14 0.990 / 0.816. No model has zero recall. uav02 is the weakest for every model we trained, and the LogReg is slightly ahead on uav02 and uav07.
  • 28-class worst classes. Telemetry links of uav01 and uav10 get recall 0.00 at the new site; uav11 telemetry 0.004 and uav09 telemetry 0.029. These are signal-type confusions inside the right UAV, not UAV confusions. Full per-class numbers are in eval_summary.json.
  • Flight phase is near chance (5 classes, chance macro-F1 β‰ˆ 0.2). One 0.1 s spectrum carries almost no phase information. Do not use that head.
  • Latency, batch 1: 2.0 ms p50 on Apple M-series MPS, 4.1 ms p50 on CPU (same machine).
  • Reload check: the stored checkpoint reproduces the training-time dev logits exactly; this packaged file reproduces them to max |Ξ”| 6e-6 on 4,096 dev captures (argmax identical).

2. What was measured but is not claimed

  • A ConvNeXt-1D (2.8M parameters) trained under the same recipe reached dev macro-F1 0.4533 (Ξ” vs LogReg βˆ’0.022 [βˆ’0.054, +0.009]). It was not selected and is not released.
  • On held-back captures from the training site's own recording sessions, the baselines score 0.96 (LogReg) and 0.98 (GBM) macro-F1, against 0.47 and 0.31 at a new site. Same-session numbers measure session memorisation, so none is used on this card; the CNNs were not scored that way.
  • No site-03 test result. The test was pre-registered to open only if the selected model's 28-class lower CI bound versus LogReg was above zero. It was not, so the test stayed sealed; the later 14-model re-aggregation does not reopen it.
  • Two 14-class-trained successors (v2) were trained and not released. E1 (same ResNet1D trained directly on 14 classes) reached dev macro-F1 0.9266, and E2 (multi-resolution PSD input + Β±6 dB gain and Β±8-bin shift augmentation) 0.9159. Both beat the 14-class LogReg, but neither beat this model: E1 βˆ’ this model = βˆ’0.003 [βˆ’0.013, +0.005] (no evidence of a difference), E2 βˆ’ this model = βˆ’0.014 [βˆ’0.026, βˆ’0.001]. Neither raised uav02 above 0.60. The weights released here are unchanged.
  • The official AI Hub reference classifier (ConvNeXt V2 Tiny, 14 models) was not run by us, and its reported numbers are not compared here.

3. Limitations

  • Recording site 03 (the held-out test site) has not been evaluated. Dev is one site, and it was reused for every selection; even the session bootstrap CI does not cover variation between sites.
  • The signal type (control vs status) is close to chance at a new site, so 28-class performance is very uneven. uav02 is recognised only 59% of the time.
  • Single frame only. No temporal context, no multi-frame voting, no unknown-emitter rejection: a non-UAV signal is always assigned to one of the UAV classes.
  • One band (2.43 GHz Β± 10 MHz) and one receiver setup.
  • Not evaluated for adversarial, jammed or multi-emitter conditions. Not a certified detection or counter-UAV product.

4. Training

  • Data: γ€ŒUAV λΉ„ν–‰μ‹ ν˜Έ 데이터」 (UAV Flight Signal Data, descriptive translation; AI Hub dataset 71954, https://www.aihub.or.kr/aihubdata/data/view.do?dataSetSn=71954), PSD subset, source "AI ν—ˆλΈŒ". The dataset is not included here and cannot be redistributed; obtain it from AI Hub under its terms.
  • Train split: site 01 only, 60,480 captures. Augmentation: receiver gain Β±3 dB and a raised noise floor, both applied in linear power before the log.
  • Model: multi-scale stem (kernels 7/15/31) + 4 residual stages, mean+max pooling, two linear heads. Loss: cross-entropy for emitter + 0.3 Γ— cross-entropy for flight phase, label smoothing 0.05.
  • AdamW lr 2e-3, wd 0.05, batch 256, cosine schedule with 1 epoch warm-up, 30 epochs, seed 0. Checkpoint chosen by dev emitter macro-F1 (epoch 25).
  • Hardware: one Apple M-series GPU (MPS), about 5 minutes per epoch.

5. Files

File Content
model.safetensors weights + the two 8192-value standardisation vectors
config.json architecture, class lists, input contract, training hyper-parameters
rfuav1d.py model definition (copied verbatim from the training script) and inference; predict_uav() = 14-model probabilities from the 28-class head
eval_summary.json aggregate dev metrics, per-class recall, CIs, latency
LICENSE CC BY 4.0 + data attribution

No training, validation or test samples, raw recordings or prediction files are included.

6. License and attribution

Weights and code: CC BY 4.0. Built with data from γ€ŒUAV λΉ„ν–‰μ‹ ν˜Έ 데이터」, AI Hub dataset 71954 (source: "AI ν—ˆλΈŒ"). AI Hub permits publishing models and weights trained on its data; the data itself is not redistributed.

Downloads last month
89
Safetensors
Model size
3.31M params
Tensor type
F32
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Collection including ThakiCloud/Thaki-RFUAV-PSD-ResNet1D