Skip to content

Conversation

@romanziske
Copy link
Contributor

@romanziske romanziske commented Jul 22, 2025

Draft: Experimental SigMF Recording Import

This PR adds experimental support for importing SigMF recordings into TorchSig. It is intentionally a draft to illustrate how TorchSig could support SigMF datasets.

Wideband conversion creates overlapping time-domain chunks from continuous SigMF data where each sample can contain multiple concurrent signals.
wideband-example

Narrowband conversion extracts individual signal annotations as separate samples, applies frequency filtering to isolate each signal, and adds them to a generated noise floor with controlled SNR.
narrowband-example

@MattCarrickPL
Copy link
Collaborator

Thank you! Discussing this internally.

@MattCarrickPL MattCarrickPL added this to the v2.0.0 milestone Jul 23, 2025
- Introduced a new method `_load_label_mapping` to load label mappings from the dataset YAML file.
- Added a `label_mapping` attribute to store the mapping of class indices to class names.
- Updated the `prepare_data` method to call `_load_label_mapping` after initializing the dataset.
- Enhanced type hints by importing `Dict` for better clarity on the label mapping structure.
@MattCarrickPL
Copy link
Collaborator

@romanziske Thanks for writing this up but we've got an internal solution for SigMF coming up for our 2.0 release. It handles some of the changes to NB/WB (and other things) that we've made as part of this new release. You'll see a notebook in the new release that describes how to read from SigMF files and other data types for importing data into torchsig. I've made a note to credit you as part of the 2.0 release for helping seed us for the SigMF development. We're quite close, expect a release in terms of weeks or days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants