A method for detecting radio frequency interference of pulsar data
Through a deep learning model based on the encoder-decoder structure, combined with multi-scale feature extraction and coordinate attention mechanism, the problem of false detection and missed detection in radio frequency interference detection is solved, and more efficient and accurate radio frequency interference detection is achieved to meet the needs of meet the needs of radio astronomy data processing.
Patent Information
- Application Number
- CN202410755555.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2044-06-12
AI Technical Summary
Existing radio frequency interference detection methods often cause false detections and missed detections in actual observation data, and the data processing efficiency and quality are insufficient. Especially as radio astronomy data continues to grow, a faster and more accurate detection model is needed.
Using the pulsar data radio frequency interference detection model based on the encoder-decoder structure, through the multi-scale feature extraction module and coordinate attention mechanism, a deep learning model that can perform feature extraction and reconstruction in the encoder and decoder stages is constructed using Binary cross-entropy loss function is trained and verified to achieve accurate detection of radio frequency interference.
In real data, the accuracy and efficiency of radio frequency interference detection are significantly improved, errors and useful signal losses are reduced, radio frequency interference can be detected more comprehensively and accurately without further manual inspection, and detection efficiency and effect are well balanced.
Smart Images

Figure CN118332443B
Abstract
Description
Technical Field
[0001] The invention relates to a method for detecting radio frequency interference of pulsar data, and belongs to the fields of image segmentation technology and radio astronomy. Background Art
[0002] Radio observation is an important means of studying the universe. It can observe celestial bodies and phenomena that cannot be seen by optical telescopes when visible light cannot penetrate. However, with the continuous advancement of astronomical research and technology, although the sensitivity of radio astronomy equipment has been significantly improved, allowing researchers to observe in a wider frequency range. But at the same time, due to the rapid development of human communication technology, the signals and noise generated by human activities occupy more and more frequency bands, and these frequency bands are also increasingly subject to interference, which seriously affects the quality of radio astronomy observation data. Therefore, in order to ensure the accuracy and effectiveness of radio astronomy research, it is crucial to accurately detect radio frequency interference (RFI) from complex radio observation data.
[0003] RFI detection methods are mainly divided into two categories: traditional methods and deep learning methods. Traditional RFI detection methods are mainly based on threshold methods, but the selection of thresholds is largely affected by human experience factors, which increases the need for manual intervention and greatly reduces the efficiency of data processing. In order to overcome the limitations of traditional methods, the use of deep learning technology based on computer vision to detect RFI has also been gradually explored. The existing deep learning detection methods are mainly based on convolutional neural networks. They extract the features of RFI by using convolution operations on time-frequency images, thereby detecting RFI in time-frequency images. However, when these existing deep learning models are applied to the detection of RFI in the actual observation data of radio telescopes, false detection and missed detection often occur, requiring further manual inspection. In addition, with the continuous growth of radio astronomy data, in order to improve the efficiency and quality of data processing, a model that runs faster and detects more accurately is also urgently needed. Summary of the invention
[0004] The present invention provides a pulsar data radio frequency interference detection method, which realizes interference detection of real pulsar data and achieves a good balance between data processing efficiency and detection effect.
[0005] The technical solution of the present invention is:
[0006] According to a first aspect of the present invention, a method for detecting radio frequency interference using pulsar data is provided, comprising: acquiring multiple pulsar data; converting each acquired pulsar data into a pulsar time-frequency image and making a label, and dividing the labeled pulsar time-frequency image into a training set, a verification set, and a test set; constructing a pulsar data radio frequency interference detection model based on an encoder-decoder structure; training and verifying the pulsar data radio frequency interference detection model according to the training set and the verification set to obtain a trained pulsar data radio frequency interference detection model; detecting the pulsar time-frequency image to be detected according to the trained pulsar data radio frequency interference detection model to obtain a classification result of the pulsar time-frequency image; wherein the classification includes: interference and non-interference.
[0007] After data augmentation and resizing operations are performed on the training set, the training set is used as the input of the pulsar data radio frequency interference detection model for training; after resizing operations, the validation set and the test set are used as the input of the pulsar data radio frequency interference detection model for verification and testing.
[0008] The pulsar data radio frequency interference detection model is constructed based on the encoder-decoder structure, specifically: the encoder stage includes two convolutional layers and 5 stacked MSFE modules + CA modules, and a downsampling operation is introduced after the first 4 stacked "MSFE modules + CA modules"; the decoder stage includes 5 convolutional layers, an upsampling operation is introduced before the first 4 convolutional layers, and a Sigmoid activation function is used after the 5th convolutional layer to map the output results of all pixels to a probability range between 0 and 1.
[0009] The downsampling operation in the encoding stage uses 2×2 convolution, and the upsampling operation in the decoding stage uses 2×2 transposed convolution.
[0010] The MSFE module is specifically as follows: first, a copy of the input feature map is made, and then the feature map is divided into four branches, the first branch uses a 3×3 depthwise separable convolution to extract features, the second branch first uses a 1×7 depthwise separable convolution to extract features, and then uses a 7×1 depthwise separable convolution to extract features, the third branch first uses a 1×11 depthwise separable convolution to extract features, and then uses a 11×1 depthwise separable convolution to extract features, and the fourth branch uses a 5×5 depthwise separable convolution to extract features; then, the results obtained from these four branches are spliced, batch normalized after splicing, and finally, the batch normalization and the previously copied feature map are element-wise added to obtain the output features.
[0011] The pulsar data radio frequency interference detection model adopts a binary cross entropy loss function to measure the difference between the model output and the true label.
[0012] According to a second aspect of the present invention, a pulsar data radio frequency interference detection device is provided, comprising: an acquisition module for acquiring multiple pulsar data; a division module for converting each acquired pulsar data into a pulsar time-frequency image and making a label, and dividing the labeled pulsar time-frequency image into a training set, a verification set and a test set; a construction module for constructing a pulsar data radio frequency interference detection model based on an encoder-decoder structure; an acquisition module for training and verifying the pulsar data radio frequency interference detection model according to the training set and the verification set, and obtaining a trained pulsar data radio frequency interference detection model; a detection module for detecting the pulsar time-frequency image to be detected according to the trained pulsar data radio frequency interference detection model, and obtaining a classification result of the pulsar time-frequency image; wherein the classification includes: interference and non-interference.
[0013] According to a third aspect of the present invention, a processor is provided, wherein the processor is used to run a program, wherein the program executes any one of the above-mentioned pulsar data radio frequency interference detection methods when running.
[0014] According to a fourth aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is run, the device where the computer-readable storage medium is located is controlled to execute any one of the above-mentioned pulsar data radio frequency interference detection methods.
[0015] The beneficial effects of the present invention are as follows: in view of the problem that the interference in real observation data is usually complex and the detection effect is not ideal, the present invention proposes a pulsar data radio frequency interference detection method. Compared with the prior art, the present invention has better radio frequency interference detection performance in real data, can detect radio frequency interference more comprehensively and accurately, reduce errors, improve edge details, reduce useful signal loss, and does not require further manual inspection. In addition, the present invention achieves a good balance between detection efficiency and detection effect, and can meet the needs of large-scale data processing. Specifically, the pulsar data radio frequency interference detection model of the present invention uses convolution kernels of multiple scales to extract multi-scale features and local information of radio frequency interference in real data at the encoder stage, and then uses the attention mechanism to allow the model to pay attention to global information and focus more on those features that are more helpful for radio frequency interference detection; at the decoder stage, the model uses 3×3 convolution operations to reconstruct and upsample the feature map, and finally obtains the detection result of radio frequency interference. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] Figure 1 This is a structural diagram of the pulsar data radio frequency interference detection model proposed by the present invention;
[0017] Figure 2 It is the structural diagram of the multi-scale feature extraction module (MSFE);
[0018] Figure 3 This is the structural diagram of the coordinate attention mechanism (CA);
[0019] Figure 4 This is a loss function diagram of the pulsar data radio frequency interference detection model proposed in the present invention during training;
[0020] Figure 5 This is a time-frequency image of real data observed by the Yunnan Observatory's 40-meter radio telescope;
[0021] Figure 6 for Figure 5 The true label corresponding to the time-frequency image;
[0022] Figure 7 The pulsar data radio frequency interference detection model proposed in this invention is Figure 5 Detection result diagram of
[0023] Figure 8 For the R-Net model Figure 5 Detection result diagram of
[0024] Fig. 9 For the U-Net model Figure 5 Detection result diagram of
[0025] Fig.10 For the RFI-Net model Figure 5 Detection result diagram. DETAILED DESCRIPTION
[0026] The invention will be further described below in conjunction with the accompanying drawings and embodiments, but the content of the invention is not limited to the scope of the embodiments.
[0027] Example 1: Figure 1-10 As shown, according to the first aspect of an embodiment of the present invention, a pulsar data radio frequency interference detection method is provided, including: obtaining multiple pulsar data; converting each pulsar data obtained into a pulsar time-frequency image and making a label, and dividing the labeled pulsar time-frequency image into a training set, a verification set and a test set; constructing a pulsar data radio frequency interference detection model based on an encoder-decoder structure; training and verifying the pulsar data radio frequency interference detection model according to the training set and the verification set to obtain a trained pulsar data radio frequency interference detection model; detecting the pulsar time-frequency image to be tested according to the trained pulsar data radio frequency interference detection model to obtain a classification result of the pulsar time-frequency image; wherein the classification includes: interference and non-interference. The pulsar time-frequency image to be tested comes from the test set, or the pulsar time-frequency image obtained is not from the test set.
[0028] Furthermore, the training set is subjected to data augmentation and resizing operations and then used as input for training the pulsar data radio frequency interference detection model; the validation set and the test set are subjected to resizing operations and then used as input for verification and testing of the pulsar data radio frequency interference detection model.
[0029] Furthermore, based on the encoder-decoder structure, a pulsar data radio frequency interference detection model is constructed, specifically: the encoder stage includes two convolutional layers and 5 stacked MSFE modules + CA modules, and a downsampling operation is introduced after the first 4 stacked "MSFE modules + CA modules"; the decoder stage includes 5 convolutional layers, an upsampling operation is introduced before the first 4 convolutional layers, and a Sigmoid activation function is used after the 5th convolutional layer to map the output results of all pixels to a probability range between 0 and 1.
[0030] Furthermore, the downsampling operation in the encoding stage uses 2×2 convolution, and the upsampling operation in the decoding stage uses 2x2 transposed convolution.
[0031] Furthermore, the MSFE module is specifically as follows: first, a copy of the input feature map is made, and then the feature map is divided into four branches, the first branch uses a 3×3 depth-separable convolution to extract features, the second branch first uses a 1×7 depth-separable convolution to extract features, and then uses a 7×1 depth-separable convolution to extract features, the third branch first uses a 1×11 depth-separable convolution to extract features, and then uses a 11×1 depth-separable convolution to extract features, and the fourth branch uses a 5×5 depth-separable convolution to extract features; then the results obtained from these four branches are spliced, batch normalized after splicing, and finally the batch normalization and the previously copied feature map are element-wise added to obtain the output features.
[0032] Furthermore, the pulsar data radio frequency interference detection model uses a binary cross entropy loss function to measure the difference between the model output and the true label.
[0033] According to the second aspect of an embodiment of the present invention, a pulsar data radio frequency interference detection device is provided, including: an acquisition module for acquiring multiple pulsar data; a division module for converting each acquired pulsar data into a pulsar time-frequency image and making a label, and dividing the labeled pulsar time-frequency image into a training set, a verification set and a test set; a construction module for constructing a pulsar data radio frequency interference detection model based on an encoder-decoder structure; an acquisition module for training and verifying the pulsar data radio frequency interference detection model according to the training set and the verification set to obtain a trained pulsar data radio frequency interference detection model; a detection module for detecting the pulsar time-frequency image to be detected according to the trained pulsar data radio frequency interference detection model to obtain a classification result of the pulsar time-frequency image; wherein the classification includes: interference and non-interference. For the parts not described in detail for each module in the above, please refer to the relevant description of the embodiment.
[0034] According to a third aspect of an embodiment of the present invention, a processor is provided, wherein the processor is used to run a program, wherein the program executes any one of the above-mentioned pulsar data radio frequency interference detection methods when running.
[0035] According to a fourth aspect of an embodiment of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is running, the device where the computer-readable storage medium is located is controlled to execute any one of the above-mentioned pulsar data radio frequency interference detection methods.
[0036] Furthermore, the present application provides the following optional specific implementation process:
[0037] Step 1: Select the psrfits files from three different pulsar data observed by the Yunnan Observatory 40-meter radio telescope (the three pulsars are PSR J0332+5434, J00358+5413, and J0437−4715), a total of 1384 psrfits files; and convert them into pulsar time-frequency images (select the four-dimensional array (nsub, npol, nchan, nbin), and then average the nbin dimension to obtain a time-frequency image of (nsub, nchan) dimension; where nsub is the number of sub-integrals, representing the time dimension; npol is the number of polarization channels; nchan is the number of frequency channels, representing the frequency dimension; and nbin is the number of phase points); the 1384 pulsar time-frequency images and the corresponding labels are randomly divided into training set, validation set and test set according to the ratio of 70%, 15% and 15%. Finally, 968 pulsar time-frequency images and the corresponding labels are used for model training, 207 pulsar time-frequency images and the corresponding labels are used for model verification, and 208 pulsar time-frequency images and the corresponding labels are used for model performance evaluation. In the above, the label production is described as follows: The present invention produces the real labels corresponding to the 1384 pulsar time-frequency images based on the aoflagger algorithm: aoflagger has multiple labeling strategies to choose from, and the 1384 pulsar time-frequency images are labeled by selecting different aoflagger strategies, and then the labeling results are manually checked and the ones with good labeling effects are selected for model training and evaluation. In the label, the white area indicates interference, and the black area indicates no interference.
[0038] In order to enhance the generalization ability of the model, data augmentation and resizing operations are performed on the training set. The data augmentation operations mainly include random horizontal flipping and random vertical flipping. Only resizing operations are performed on the validation set and the test set. After all data sets are processed, the time-frequency image size when used as the input of the network model is 256×256.
[0039] Step 2: Construct a pulsar data radio frequency interference detection model. The detailed structure is as follows: Figure 1 As shown; the pulsar data radio frequency interference detection model includes two convolutional layers connected in sequence, 5 stacked MSFE modules + CA modules, and 5 convolutional layers.
[0040] The model is described as follows:
[0041] The present invention is based on an encoder-decoder structure. In the encoder stage, two 3×3 convolutions are first used to perform preliminary extraction of radio frequency interference features for subsequent use. Then, the radio frequency interference feature map that has been initially extracted is sent to the multi-scale feature extraction (MSFE) module to extract the multi-scale information of radio frequency interference and obtain the corresponding feature map. These feature maps are then sent to the coordinate attention mechanism (CA) to strengthen the model's understanding of the spatial structure of the input data. By introducing coordinate information, the model can better understand the relationship between different positions. This attention mechanism can help the model better focus on important areas in the input data, thereby better capturing the spatial structure of the input data. The encoder is formed by stacking five such multi-scale feature extraction (MSFE) modules and coordinate attention mechanisms (CA). Downsampling in the encoding process uses 2×2 convolutions, which can reduce the computational burden while reducing the loss of spatial and semantic information. Each downsampling using a 2×2 convolution halves the height (H) and width (W) of the time-frequency image feature map, while doubling the number of channels of the feature map.
[0042] In the decoder stage, four 3×3 convolutions are stacked to further extract features and transposed convolution is used to upsample and gradually restore the resolution of the image, doubling the height (H) and width (W) of the feature map while halving the number of channels. In the final output layer, a 1×1 convolution layer is used to reduce the number of channels to 1. Then, the Sigmoid activation function is used to map the output results of all pixels to a probability range between 0 and 1. The output binary segmentation mask is obtained by setting the threshold to 0.5: pixels with values greater than 0.5 are set to 1 to indicate interference, and pixels with values less than 0.5 are set to 0 to indicate no interference.
[0043] Furthermore, the MSFE module, such as Figure 2As shown in the figure, it is composed of a series of depth-wise separable convolutions (d) with different convolution kernel sizes; using depth-wise separable convolutions can save more computing resources than ordinary convolutions. When the input data feature map passes through the multi-scale feature extraction module, the specific operation is as follows: first, a copy of the input feature map is made, and then the feature map is divided into four branches. The first branch uses a 3×3 depth-wise separable convolution to extract features. The second branch first uses a 1×7 depth-wise separable convolution to extract features, and then uses a 7×1 depth-wise separable convolution to extract features. The third branch first uses a 1×11 depth-wise separable convolution to extract features, and then uses a 11×1 depth-wise separable convolution to extract features. The fourth branch uses a 5×5 depth-wise separable convolution to extract features. Then, the results obtained from these four branches are spliced, batch normalized, and finally, the batch normalization and the previously copied feature map are added element-wise to obtain the output features. All operations performed in the multi-scale feature extraction module will not change the size of the number of feature map channels. It should be noted that in this module, a pair of 1×n1 and n1×1 strip convolutions are used to simulate the n1×n1 convolution kernel and a pair of 1×n2 and n2×1 strip convolutions are used to simulate the n2×n2 convolution kernel. The purpose of using two pairs of strip convolutions of different sizes to extract features is to reduce memory overhead and better detect strip interference in the data, because there are many interference shapes in the data that appear as strips.
[0044] Further, the CA module has a specific structure as shown in Figure 3 The CA module is designed to enhance the expressiveness of learning features of the network model. It can transform any intermediate feature tensor in the network and output a tensor of the same size.
[0045] When the feature map of the data passes through the CA module, in order to obtain the attention on the width and height of the image and encode the precise position information, the input feature map is first divided into two directions of width and height for global average pooling, and the feature maps in the width and height directions are obtained respectively; then the feature maps in the width and height directions of the global receptive field are spliced together, and then they are sent to a shared 1×1 convolution to reduce their dimension to the original C / r, and then the feature map after batch normalization is sent to the nonlinear activation function (relu) to obtain a feature map of the shape of 1×(W+H)×C / r (W is the width of the feature map, H is the height of the feature map, C is the number of channels, and r is the reduction factor); then the feature map According to the original height and width, two more convolution transformations with 1×1 convolution kernels are performed respectively ( and ) to obtain feature maps with the same number of channels as the original ones, and then pass the feature maps obtained here through the Sigmoid activation function ( ) and then get the attention weights of the feature maps at the height and the attention weight in the width direction The formula is as follows:
[0046] ;
[0047] ;
[0048] In the formula, is the attention weight in the height direction, is the attention weight in the width direction, is the Sigmoid activation function, and They are all 1×1 convolution transformations. and They are feature maps Decomposed into two tensors along the two spatial dimensions of height and width.
[0049] The attention weight in the height direction calculated above and the attention weight in the width direction , through multiplication weighted calculation on the original feature map, the final feature map with attention weights in the width and height directions is obtained.
[0050] The training process of the model is further explained as follows:
[0051] The detection of radio frequency interference is to determine whether a pixel is interference at the pixel level. It is essentially a pixel-by-pixel binary classification problem. Therefore, the binary cross entropy loss function (BCEloss) can be used to measure the difference between the model output and the true label, and help the model learn the correct classification boundary. By minimizing the binary cross entropy loss function, the model can better predict the classification of samples and improve the performance of the model in binary classification tasks. BCEloss can be expressed by the following formula:
[0052] ;
[0053] in, is the total number of samples, It is The binary label value of each sample is 0 or 1. The model is The predicted value of a sample.
[0054] The adam optimizer is used to update the model parameters, the learning rate is set to 0.001, and the number of training epochs is set to 500.
[0055] The loss function image of the pulsar data radio frequency interference detection model proposed in the present invention is as follows: Figure 4 As shown in the figure, the loss function is close to convergence after the model has been trained for about 250 rounds.
[0056] About model hyperparameter optimization and model selection:
[0057] Use the training set to train the model, then optimize the hyperparameters based on the performance of the validation set model and save the model with the best performance on the validation set.
[0058] Model evaluation about the model:
[0059] After the model is saved, the test set is used to evaluate the performance of the model. Four commonly used evaluation indicators for RF interference detection, namely precision, recall, F1 score, and intersection-over-union (IOU), are selected to evaluate the model, and the training duration results under different models are further given.
[0060] The scores of various evaluation indicators of the four models are shown in Table 1:
[0061] Table 1
[0062]
[0063] The above table lists the various index scores of the present invention and the U-Net, RFI-Net, and R-Net models. It can be seen from the above table that the pulsar data radio frequency interference detection model proposed by the present invention has the values of 84.12%, 81.24%, 82.66% and 71.63% respectively on the four commonly used evaluation indicators of radio frequency interference detection, namely, precision, recall, F1 score and intersection-over-union ratio (iou). The performance of the four evaluation indicators of the present invention is better than other models, especially compared with R-Net, which has a significant improvement. In addition, in terms of training time, although the training time of R-Net is the shortest, its evaluation index performance is the worst. The training time of the model proposed by the present invention is slightly slower than that of R-Net by about 20 minutes, but it is shorter than the training time of U-Net and RFI-Net by more than one hour and more than two hours respectively, and the model proposed by the present invention has a higher score than U-Net and RFI-Net, indicating that the present invention has achieved a good balance between detection efficiency and detection effect.
[0064] like Figure 5Shown is an example of a time-frequency image from a test set, where the horizontal axis is the number of frequency channels representing the frequency axis, and the vertical axis is the number of sub-integrals representing the time axis. Figure 6 yes Figure 5 The true label corresponding to the time-frequency image, Figure 7 The pulsar data radio frequency interference detection model proposed in the present invention is shown to be effective Figure 5 The test results, and Figure 8 , 9 , 10 are R-Net, U-Net and RFI-Net pairs respectively Figure 5 By comparing these figures, we can see that the detection results of the present invention are very close to the true labels, while other models have a large degree of false detection and missed detection.
[0065] Therefore, from the visualization results, the deep learning model proposed in the present invention achieves better detection effect on the radio frequency interference in the real pulsar data of the Yunnan Observatory's 40-meter radio telescope, and achieves a good balance between detection effect and detection efficiency, which can meet the needs of high-speed data processing when the amount of data increases in the future.
[0066] The specific implementation modes of the present invention have been described in detail above in conjunction with the accompanying drawings, but the present invention is not limited to the above implementation modes, and various changes can be made within the knowledge scope of ordinary technicians in this field without departing from the purpose of the present invention.
Claims
1. A method for detecting radio frequency interference of pulsar data, characterized in that: include: Acquire multiple pulsar data; The acquired pulsar data are converted into pulsar time-frequency images and labeled, and the labeled pulsar time-frequency images are divided into a training set, a validation set, and a test set; Based on the encoder-decoder structure, a pulsar data radio frequency interference detection model is constructed; The pulsar data radio frequency interference detection model is trained and verified based on the training set and the verification set to obtain a trained pulsar data radio frequency interference detection model; The pulsar time-frequency image to be tested is detected according to the trained pulsar data radio frequency interference detection model to obtain the classification result of the pulsar time-frequency image; The categories include: interference, non-interference; The pulsar data radio frequency interference detection model is constructed based on the encoder-decoder structure, specifically: in the encoder stage, two convolutional layers and five stacked MSFE modules + CA modules are included, and a downsampling operation is introduced after the first four stacked "MSFE modules + CA modules"; in the decoder stage, five convolutional layers are included, an upsampling operation is introduced before the first four convolutional layers, and a Sigmoid activation function is used after the fifth convolutional layer to map the output results of all pixels to a probability range between 0 and 1; the stacked "MSFE module + CA module" is an MSFE module and a CA module connected in sequence, and the output of the MSFE module is used as the input of the CA module; The MSFE module is specifically as follows: first, a copy of the input feature map is made, and then the feature map is divided into four branches, the first branch uses a 3×3 depth-separable convolution to extract features, the second branch first uses a 1×7 depth-separable convolution to extract features, and then uses a 7×1 depth-separable convolution to extract features, the third branch first uses a 1×11 depth-separable convolution to extract features, and then uses a 11×1 depth-separable convolution to extract features, and the fourth branch uses a 5×5 depth-separable convolution to extract features; Then the results obtained from these four branches are concatenated, batch normalized, and finally the batch normalization and the previously copied feature map are added element-wise to obtain the output features.
2. The pulsar data radio frequency interference detection method according to claim 1, characterized in that: After data augmentation and resizing operations are performed on the training set, the training set is used as the input of the pulsar data radio frequency interference detection model for training; after resizing operations, the validation set and the test set are used as the input of the pulsar data radio frequency interference detection model for verification and testing.
3. The pulsar data radio frequency interference detection method according to claim 1, characterized in that: The downsampling operation in the encoding stage uses 2×2 convolution, and the upsampling operation in the decoding stage uses 2×2 transposed convolution.
4. The pulsar data radio frequency interference detection method according to claim 1, characterized in that: The pulsar data radio frequency interference detection model adopts a binary cross entropy loss function to measure the difference between the model output and the true label.
5. A pulsar data radio frequency interference detection device, characterized in that: include: An acquisition module, used to acquire multiple pulsar data; A partitioning module is used to convert the acquired pulsar data into pulsar time-frequency images and create labels, and to partition the labeled pulsar time-frequency images into a training set, a validation set, and a test set; A building block for constructing a pulsar data radio frequency interference detection model based on an encoder-decoder structure; An acquisition module is used to train and verify the pulsar data radio frequency interference detection model based on the training set and the verification set to obtain the trained pulsar data radio frequency interference detection model; A detection module is used to detect the time-frequency image of the pulsar to be tested according to the trained pulsar data radio frequency interference detection model to obtain the classification result of the pulsar time-frequency image; The categories include: interference, non-interference; The pulsar data radio frequency interference detection model is constructed based on the encoder-decoder structure, specifically: in the encoder stage, two convolutional layers and five stacked MSFE modules + CA modules are included, and a downsampling operation is introduced after the first four stacked "MSFE modules + CA modules"; in the decoder stage, five convolutional layers are included, an upsampling operation is introduced before the first four convolutional layers, and a Sigmoid activation function is used after the fifth convolutional layer to map the output results of all pixels to a probability range between 0 and 1; the stacked "MSFE module + CA module" is an MSFE module and a CA module connected in sequence, and the output of the MSFE module is used as the input of the CA module; The MSFE module is specifically as follows: first, a copy of the input feature map is made, and then the feature map is divided into four branches, the first branch uses a 3×3 depth-separable convolution to extract features, the second branch first uses a 1×7 depth-separable convolution to extract features, and then uses a 7×1 depth-separable convolution to extract features, the third branch first uses a 1×11 depth-separable convolution to extract features, and then uses a 11×1 depth-separable convolution to extract features, and the fourth branch uses a 5×5 depth-separable convolution to extract features; Then the results obtained from these four branches are concatenated, batch normalized, and finally the batch normalization and the previously copied feature map are added element-wise to obtain the output features.
6. A processor, characterized in that: The processor is used to run a program, wherein the program, when running, executes the pulsar data radio frequency interference detection method described in any one of claims 1-4.
7. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the pulsar data radio frequency interference detection method according to any one of claims 1 to 4.
