waterfall109 commited on
Commit
09924e9
·
1 Parent(s): 63c6ae0

Add model card (README)

Browse files
Files changed (1) hide show
  1. README.md +290 -3
README.md CHANGED
@@ -1,3 +1,290 @@
1
- ---
2
- license: apache-2.0
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ language:
3
+ - en
4
+ license: gpl-2.0
5
+ tags:
6
+ - astronomy
7
+ - fast-radio-bursts
8
+ - frb
9
+ - pulsar
10
+ - instance-segmentation
11
+ - mask-rcnn
12
+ - hrnet
13
+ - radio-astronomy
14
+ - signal-processing
15
+ library_name: pytorch
16
+ pipeline_tag: image-segmentation
17
+ datasets:
18
+ - CRAFTS-FRT
19
+ metrics:
20
+ - recall
21
+ - precision
22
+ ---
23
+
24
+ <div align="center">
25
+ <img src="https://raw.githubusercontent.com/BinZhang109/FRTSearch/main/logo2.svg" width="100%" alt="FRTSearch Banner">
26
+ </div>
27
+
28
+ # FRTSearch: Fast Radio Transient Detection Model
29
+
30
+ 🚀 **Unified Detection and Parameter Inference of Fast Radio Transients using Instance Segmentation** 🚀
31
+
32
+ [![Paper](https://img.shields.io/badge/Paper-AASTeX-blue.svg)](https://doi.org/10.57760/sciencedb.Fastro.00038)
33
+ [![Dataset](https://img.shields.io/badge/Dataset-CRAFTS--FRT-yellow.svg)](https://doi.org/10.57760/sciencedb.Fastro.00038)
34
+ [![GitHub](https://img.shields.io/badge/GitHub-FRTSearch-black.svg)](https://github.com/BinZhang109/FRTSearch)
35
+ [![Python](https://img.shields.io/badge/Python-3.10+-green.svg)](https://www.python.org/)
36
+ [![License](https://img.shields.io/badge/License-GPL--2.0-grey.svg)](https://github.com/BinZhang109/FRTSearch/blob/main/LICENSE)
37
+
38
+ ---
39
+
40
+ ## Model Description
41
+
42
+ **FRTSearch** is an end-to-end deep learning framework for detecting and characterizing Fast Radio Transients (FRTs), including:
43
+ - **Fast Radio Bursts (FRBs)**
44
+ - **Pulsars**
45
+ - **Rotating Radio Transients (RRATs)**
46
+
47
+ ### Architecture
48
+
49
+ - **Backbone**: HRNet-W32 (High-Resolution Network)
50
+ - **Detection Head**: Mask R-CNN
51
+ - **Training Epoch**: 36
52
+ - **Input Dimensions**: 256 (frequency channels) × 8192 (time samples)
53
+ - **Model Size**: 381.75 MB
54
+
55
+ ### Key Innovation
56
+
57
+ FRTSearch reframes FRT detection as a **pattern recognition problem** by exploiting the morphological universality of dispersive trajectories in time-frequency dynamic spectra ($t \propto \nu^{-2}$).
58
+
59
+ The model combines:
60
+ 1. **Mask R-CNN Detection**: Deep learning model trained on pixel-level annotated data for precise trajectory segmentation
61
+ 2. **IMPIC Algorithm**: Physics-driven Iterative Mask-based Parameter Inference and Calibration for direct DM (Dispersion Measure) and ToA (Time of Arrival) inference
62
+
63
+ ---
64
+
65
+ ## Training Data
66
+
67
+ **CRAFTS-FRT Dataset**: The first pixel-level annotated dataset for Fast Radio Transients
68
+
69
+ | Property | Value |
70
+ |----------|-------|
71
+ | **Total Instances** | 2,392 |
72
+ | **Pulsars** | 2,115 |
73
+ | **RRATs** | 15 |
74
+ | **FRBs** | 262 |
75
+ | **Source Telescope** | FAST 19-beam L-band receiver |
76
+ | **Frequency Range** | 1000-1500 MHz |
77
+ | **Dataset DOI** | [10.57760/sciencedb.Fastro.00038](https://doi.org/10.57760/sciencedb.Fastro.00038) |
78
+
79
+ The wide training range enables FRTSearch to handle both **drift scan short-term observations** and **tracking long-term observation data** processing.
80
+
81
+ ---
82
+
83
+ ## Model Performance
84
+
85
+ Benchmarked on **FAST-FREX** dataset (600 FRB bursts):
86
+
87
+ | Metric | Value |
88
+ |--------|-------|
89
+ | **Recall** | 98.0% |
90
+ | **False Positives Per Image (FPPI)** | 4.1 |
91
+ | **Speedup vs PRESTO** | 25.5× |
92
+ | **Cross-facility Generalization** | 100% (19/19 ASKAP FRBs detected) |
93
+
94
+ ### Key Advantages
95
+
96
+ - ✅ **High Sensitivity**: 98.0% recall on benchmark dataset
97
+ - ✅ **Low False Positives**: Reduces false positives by >99.9% vs traditional methods
98
+ - ✅ **Cross-Telescope Robustness**: Successfully generalizes to FAST, Parkes, and SKA without retraining
99
+ - ✅ **Efficiency**: Up to 25.5× faster than traditional pipelines
100
+ - ✅ **Unified Framework**: Eliminates redundant DM-width grid searches
101
+
102
+ ---
103
+
104
+ ## Supported Data Formats
105
+
106
+ - **PSRFITS** (`.fits`) - Standard format for pulsar data
107
+ - **Sigproc Filterbank** (`.fil`) - Legacy filterbank format
108
+
109
+ ### Supported Bit Depths
110
+
111
+ - 1-bit quantization
112
+ - 2-bit quantization
113
+ - 4-bit quantization
114
+ - 8-bit quantization
115
+
116
+ ---
117
+
118
+ ## Test Samples
119
+
120
+ This repository includes 7 test samples from 3 different telescopes to demonstrate cross-facility performance:
121
+
122
+ ### FAST Telescope (3 samples)
123
+ - FRB 20121102 (repeating FRB, DM=565.0 pc cm⁻³)
124
+ - FRB 20180301 (DM=420.0 pc cm⁻³)
125
+ - FRB 20201124 (repeating FRB, DM=525.0 pc cm⁻³)
126
+
127
+ ### Parkes Telescope (1 sample)
128
+ - FRB 110220 (low-frequency, DM=944.0 pc cm⁻³)
129
+
130
+ ### SKA/ASKAP (3 samples)
131
+ - FRB 20180119 (DM=400.0 pc cm⁻³)
132
+ - FRB 20180212 (DM=167.7 pc cm⁻³)
133
+ - FRB 20220610A (host galaxy localized, DM=1457.6 pc cm⁻³)
134
+
135
+ See [DATA_DESCRIPTION.md](DATA_DESCRIPTION.md) for detailed information about each test sample.
136
+
137
+ ---
138
+
139
+ ## Installation & Usage
140
+
141
+ ### Quick Start
142
+
143
+ ```bash
144
+ # Clone the repository
145
+ git clone https://github.com/BinZhang109/FRTSearch.git
146
+ cd FRTSearch
147
+
148
+ # Install MMDetection (required)
149
+ pip install -U openmim
150
+ mim install mmcv-full
151
+ pip install mmdet
152
+
153
+ # Install dependencies
154
+ pip install -r requirements.txt
155
+ ```
156
+
157
+ ### Download Model Weights
158
+
159
+ ```python
160
+ from huggingface_hub import hf_hub_download
161
+
162
+ # Download model weights
163
+ model_path = hf_hub_download(
164
+ repo_id="waterfall109/FRTSearch",
165
+ filename="models/hrnet_epoch_36.pth"
166
+ )
167
+ ```
168
+
169
+ Or download directly from [Files and versions](https://huggingface.co/waterfall109/FRTSearch/tree/main).
170
+
171
+ ### Run Detection
172
+
173
+ ```bash
174
+ python FRTSearch.py data.fits config.py --slide-size 128
175
+ ```
176
+
177
+ **Arguments:**
178
+ - `data.fits`: Observation data file (.fits or .fil format)
179
+ - `config.py`: Model configuration file (see `configs/` directory)
180
+ - `--slide-size`: Number of sub-integrations per batch (default: 128)
181
+
182
+ ### Example Configuration
183
+
184
+ ```python
185
+ # configs/detector_FAST.py
186
+ data_cfg = dict(
187
+ freq_range=[1000.0, 1500.0], # MHz
188
+ downsample_time=1,
189
+ downsample_freq=16
190
+ )
191
+
192
+ model_cfg = dict(
193
+ detector_cfg='path/to/detector_config.py',
194
+ score_thr=0.3,
195
+ detector_model='models/hrnet_epoch_36.pth'
196
+ )
197
+
198
+ aug_cfg = dict(
199
+ type='dm_filtering',
200
+ threshold=3.0 # Filter candidates with DM < 3.0
201
+ )
202
+ ```
203
+
204
+ ---
205
+
206
+ ## Hyperparameter Tuning
207
+
208
+ ### Model Input Constraint
209
+
210
+ The model is trained on input dimensions of **256 (freq) × 8192 (time)**. This wide training range enables FRTSearch to handle both drift scan short-term observations and tracking long-term observation data processing.
211
+
212
+ ### Tuning Guidelines
213
+
214
+ **Key Parameters:**
215
+ - `freq_range`: **CRITICAL** - Must match your observation frequency range
216
+ - `downsample_time`: Time downsampling factor
217
+ - `downsample_freq`: Frequency downsampling factor
218
+ - `--slide-size`: Batch size for processing long observations
219
+
220
+ **Critical Rules:**
221
+ 1. Time dimension after downsampling must be ≤ 8192
222
+ 2. Frequency dimension should target ≈ 256 bins (can be higher, avoid very low values)
223
+ 3. Always update `freq_range` to match your data
224
+
225
+ See [test_sample/README.md](test_sample/README.md) for telescope-specific tuning strategies.
226
+
227
+ ---
228
+
229
+ ## Telescope Coverage
230
+
231
+ Successfully tested on:
232
+
233
+ | Telescope | Frequency Range | Time Resolution | Channels | Samples |
234
+ |-----------|----------------|-----------------|----------|---------|
235
+ | **FAST** | 1000-1500 MHz | 49-98 μs | 4096 | 3 FRBs |
236
+ | **Parkes** | 190-240 MHz | 122 μs | 512 | 1 FRB |
237
+ | **SKA/ASKAP** | 1260-1870 MHz | 1266 μs | 336 | 3 FRBs |
238
+
239
+ **Total Coverage:**
240
+ - Time resolution range: 26× (49 μs to 1266 μs)
241
+ - Frequency coverage: 190 MHz to 1870 MHz
242
+ - DM range: 167.7 to 1457.6 pc cm⁻³
243
+ - Bit depths: 1-bit, 2-bit, 8-bit
244
+
245
+ ---
246
+
247
+ ## Citation
248
+
249
+ If you use FRTSearch or the CRAFTS-FRT dataset in your research, please cite:
250
+
251
+ ```bibtex
252
+ @article{zhang2025frtsearch,
253
+ title={FRTSearch: Unified Detection and Parameter Inference of Fast Radio Transients using Instance Segmentation},
254
+ author={Zhang, Bin and Wang, Yabiao and Xie, Xiaoyao and others},
255
+ journal={Draft version (AASTeX631)},
256
+ year={2025}
257
+ }
258
+ ```
259
+
260
+ ### Test Sample References
261
+
262
+ When using the test samples, please also cite the original observations:
263
+
264
+ - **FAST samples**: [Guo et al. (2025)](https://doi.org/10.3847/1538-4365/adf42d)
265
+ - **Parkes sample**: [Keane et al. (2015)](https://doi.org/10.1093/mnras/stu2650)
266
+ - **SKA samples**: [Shannon et al. (2018)](https://doi.org/10.1038/s41586-018-0588-y), [Ryder et al. (2022)](https://doi.org/10.1126/science.adf2678)
267
+
268
+ ---
269
+
270
+ ## License
271
+
272
+ This project is based on [PRESTO](https://github.com/scottransom/presto) and modified components are licensed under GNU General Public License v2.0.
273
+
274
+ See [LICENSE](https://github.com/BinZhang109/FRTSearch/blob/main/LICENSE) for details.
275
+
276
+ ---
277
+
278
+ ## Acknowledgments
279
+
280
+ - **Dataset**: CRAFTS-FRT from FAST telescope observations
281
+ - **Framework**: Built on [MMDetection](https://github.com/open-mmlab/mmdetection)
282
+ - **Base Code**: Modified from [PRESTO](https://github.com/scottransom/presto)
283
+
284
+ ---
285
+
286
+ <div align="center">
287
+ <sub>Exploring the dynamic universe with AI 🌌📡</sub>
288
+ <br>
289
+ <sub>For questions and issues: <a href="https://github.com/BinZhang109/FRTSearch/issues">GitHub Issues</a></sub>
290
+ </div>