Algorithm for classifying normal and abnormal waveband data of SDSS (Sodium Dodecyl Sulfonate Sulfonate
By using a supervised deep learning algorithm based on convolutional neural networks in astronomical image classification, combined with a spatial channel aggregation module and deep convolution, the problems of low classification accuracy and poor robustness in the existing technology are solved, and a higher level of accuracy is achieved. The classification accuracy and robustness are suitable for abnormal band data detection in astronomical images.
Patent Information
- Application Number
- CN202410891751.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-04
- Publication Date
- 2024-10-29
AI Technical Summary
The existing technology has low classification accuracy and poor robustness in astronomical image classification. Especially in the detection of abnormal band data in astronomical images, it is difficult to effectively distinguish between normal and abnormal data, and is affected by background noise and environmental interference.
A supervised deep learning algorithm based on convolutional neural network is used to extract features through four stages, reduce the resolution and deepen the network depth. It combines the spatial channel aggregation module with deep convolution (DWConv) and SELU activation function to improve classification accuracy and robustness.
The classification accuracy and robustness are significantly improved. Compared with other classification algorithms, it has higher accuracy and less calculation and parameter volume. It can effectively identify abnormal band data in astronomical images and improve the quality of image analysis.
Smart Images

Figure CN118864951A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the field of astronomical image classification, and in particular relates to a classification algorithm for normal and abnormal band data of SDSS survey images based on a convolutional network. Background Art
[0002] The Sloan Digital Sky Survey (SDSS) is a massive astronomical survey project that aims to provide three-dimensional celestial position and color information, covering about 1 / 4 of the sky. These projects typically use large telescopes and advanced imaging equipment to systematically scan large areas of the sky and collect large amounts of astronomical data. However, image anomalies are a common and worrying problem during data collection, transmission, and processing. Abnormal images usually refer to problems that occur during observation, data collection, or transmission, which affect image quality. These problems may include: serious dust on the filter and cooler windows, resulting in a large number of out-of-focus "donuts", and the data values generated by each window are lower than the average data value; sensor failure, the image sensor is the core component in the telescope, used to capture light from celestial bodies, if the sensor fails, it may cause abnormal brightness or noise in the image; Earth's atmospheric disturbance: factors such as atmospheric turbulence, humidity changes and atmospheric refraction may cause blur or distortion in the image; mechanical problems, mechanical problems of the telescope itself, such as drive system failure or optical component misalignment, may cause the stars in the image to be elongated or double images; data transmission errors, errors or interferences during data transmission may damage the image, which usually occurs when the telescope transmits data to the ground control center or data processing station, resulting in abnormal lines in the image or missing some information. Usually, the observation image of a sky area is synthesized by three bands. If any band data is damaged, the final result of the synthesis is not conducive to the analysis of astronomical images. In order to obtain effective data, it is first necessary to select the normal band data from the abnormal band data. With the development of deep learning, more and more classification methods have been proposed, and a large number of algorithms based on autoencoders have emerged. However, due to the complexity of astronomical images, this unsupervised method may result in low classification accuracy. Summary of the invention
[0003] The present invention aims to overcome the deficiencies in the prior art and proposes a supervised deep learning algorithm based on a convolutional neural network for detecting abnormal band data in photometric images. The algorithm improves the classification accuracy and robustness, and effectively solves the problems of low accuracy and poor robustness of existing classification algorithms. In abnormal images, the damaged part is the area that needs the most attention. However, the surrounding environment will have a certain impact on the classification results. To this end, the present invention uses four stages to extract features of interest, deepens the network depth while reducing the resolution, and uses a spatial channel aggregation module for classification prediction, thereby improving the accuracy and robustness of classification. Compared with other classification algorithms, the present invention has higher accuracy. In order to achieve the above technical objectives, the technical solution of the present invention is:
[0004] A deep learning algorithm for classifying normal and abnormal band data of SDSS survey images based on ConvNet and combined with spatial channel aggregation. Four stages are used in the network to extract features, and the resolution of the input feature map is reduced and the network depth is deepened to expand the receptive field. Since the photometric image processing will be affected by background noise, 5×5 and 7×7 convolution kernels are used to extract image features.
[0005] like Figure 1 The figure shows a flowchart for classifying normal and abnormal band data of SDSS survey images. First, the data is preprocessed, that is, labeled, and the data is divided into normal band data and abnormal band data, and a detailed abnormal image database is established for algorithm training and testing. After that, we train the image data through the proposed network, and obtain the final BDMogaNet classification model by continuously adjusting the parameters. The trained weights are used to classify the images to be processed, thereby obtaining the final classification results.
[0006] The data used in this paper are the unpublished part of SDSS-II. The original size of each image is 2048×1489. In the experiment, we reduced the image size to 384×384, because a larger image size will lead to a decrease in model training and inference speed, while a smaller image size cannot extract more image features.
[0007] like Figure 2The figure shows the network block diagram proposed in the present invention. First, an image of size H×W×3 is input into the network. The network contains four stages in total. Each stage contains PatchEmbedding and spatial channel aggregation modules. The spatial channel aggregation module is composed of a four-branch spatial aggregation module and a channel attention module. At the beginning of each stage, the PatchEmbedding module is first used to divide the image data into multiple small blocks of equal size and convert them into an embedding representation suitable for network input for preliminary feature extraction. The embedding dimension is set to [32, 64, 128, 256] in the present invention. Then it is input into the spatial channel aggregation module to extract features. This module first passes through the four-branch spatial aggregation module. Its structure is as shown below: Figure 3 As shown in Figure 2, a multi-order feature module with a dilated convolution kernel is implemented. in It is divided into two branches. One branch divides the input channel into four parts with a ratio of 1:7:3:5, and applies deep convolution with different expansion rates to each part to extract features, which are 1×1, 5×5, 5×5 and 7×7 respectively. Then, the information of different branches is fused with point convolution with a convolution kernel size of 1×1, achieving better feature fusion at a lower computational cost. After passing through 1×1 convolution and SELU activation function with another branch, it is fused using element-by-element addition. The four-branch spatial aggregation module effectively captures subtle features and large-scale structures in the image by processing information of different spatial scales in parallel. This multi-scale feature fusion method not only improves the network's sensitivity to different types of anomalies, but also enhances its robustness to background noise and bright source pollution. Then it passes through the channel attention module, whose structure is as follows: Figure 4 As shown in the figure, the traditional channel attention is improved. After 1×1 convolution, 3×3 DW convolution, and SELU activation function, the first step of shallow feature extraction is performed, and then the average pooling layer is used to obtain more important features; the previous features are integrated through two fully connected layers and two activation function layers to obtain an output probability for various categories; the result is multiplied by the original feature map to assign different weights to each channel. This module enables the network to focus on important features more accurately and ignore irrelevant or interfering information by dynamically adjusting the weights of different channels. The specific steps are as follows:
[0008] x out_1 =SELU(DWConv(Conv(x in )))
[0009]
[0010]
[0011] Adding DW convolution and SELU activation function enhances the network's ability to capture channel features. DW convolution can make each convolution kernel responsible for only one channel. SELU activation function is expressed as follows:
[0012]
[0013] Among them, λ=1.0507, α=1.67326, and the SELU activation function effectively avoids the gradient explosion and gradient vanishing problems of the network due to its self-normalization characteristics. After the four-stage PatchEmbedding and spatial channel aggregation modules, a multi-layer perceptron is used to divide the image into two categories: normal band data and abnormal band data.
[0014] The present invention also discloses a classification algorithm for normal and abnormal band data of SDSS survey images, comprising the following steps:
[0015] S1: Train the classification network: Use the labeled samples for training to obtain the trained model weight parameters;
[0016] S2: Load the trained model parameters, and then input the test set to obtain the classification probability of each SDSS survey image in the test set. You can also draw the confusion matrix and receiver operating curve by loading the model.
[0017] S3: The classification effect can be roughly seen through the confusion matrix and receiver operating curve.
[0018] Beneficial effects: Compared with the prior art, the present invention uses a four-branch spatial aggregation module for the first time in the feature extraction part and introduces a channel attention module with DW convolution and SELU activation functions. Compared with traditional neural networks, the present invention has less calculation and parameter volume and can achieve higher classification accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 It is a basic flow chart of the present invention;
[0020] Figure 2 It is a network block diagram proposed by the present invention;
[0021] Figure 3 It is a structural diagram of a four-branch spatial aggregation module in the network proposed by the present invention;
[0022] Figure 4 It is a structural diagram of the channel attention module in the network proposed in the present invention. DETAILED DESCRIPTION
[0023] The content of the present invention is further described below in conjunction with the accompanying drawings.
[0024] like Figure 1 The overall process of classifying normal and abnormal band data in SDSS survey images shown in FIG. 1 includes the following steps:
[0025] S1: Training of the classification network for normal and abnormal band data in SDSS survey images: First, the input data size is reduced to 384×384 to allow the network to achieve better performance, and the four-branch spatial aggregation module and channel attention module in the classification model are used to extract features from the image. In addition, the four stages of the network reduce the resolution while increasing the network depth to expand the receptive field, improving the classifier's ability to extract features.
[0026] S2: Classification of normal and abnormal band data in SDSS survey images: The ratio of training set and validation set of the entire data set is 8:2.
[0027] type Training set Validation set Normal band data 21713 5429 Abnormal band data 18517 4643
[0028] S3: Figure 2 The figure shows the classification network structure of the normal and abnormal band data in the SDSS sky survey image proposed by the present invention. First, the image of size 384×384×3 is input into the network, and the image is cut into small blocks through the PatchEmbedding module and converted into an embedding representation suitable for network input. The embedding dimension is set to [32, 64, 128, 256]. Then it is input into the spatial channel aggregation module, first through the four-branch spatial aggregation module, such as Figure 3 As shown, this module converts x in It is divided into two branches. One branch divides the input channel into four parts with a ratio of 1:7:3:5, and applies deep convolution with different expansion rates to each part to extract features. Here, convolution kernel sizes of 1×1, 5×5, 5×5 and 7×7 are used. Then, point convolution with a convolution kernel size of 1×1 is used to fuse the information of different branches. After passing through 1×1 convolution and SELU activation function with the other branch, element-by-element addition is used to fuse and extract spatial features. Then input as follows Figure 4 The channel attention module shown in the figure performs the first step of shallow feature extraction through 1×1 convolution, 3×3 DW convolution, and SELU activation function; then the average pooling layer, two fully connected layers, SELU activation function, and Sigmoid activation function are used to integrate the previous features, and an output probability is obtained for various categories. The result is multiplied by the original feature map, and different weights are assigned to each channel. The specific steps are expressed as follows:
[0029] x out_1 =SELU(DWConv(Conv(x in )))
[0030]
[0031]
[0032] The SELU activation function and the Sigmoid activation function can be expressed as follows:
[0033]
[0034]
[0035] After completing one stage, enter the next stage, downsample to reduce the resolution, double the number of channels, and increase the depth of the feature map. The feature map of the next stage passes through the same spatial channel aggregation module, and the depth of each stage is 3, 3, 3, and 2 respectively. Finally, the multi-layer perceptron outputs the two classified results. The multi-layer perceptron includes two fully connected layers and a SELU activation function. First, the input feature dimension is halved through a fully connected layer, and nonlinearity is introduced through the SELU activation function. Finally, the feature vector is mapped to the classification category through another fully connected layer to achieve the final classification of normal and abnormal band data. The present invention uses the AdamW optimizer to optimize the parameters.
[0036] In order to verify the effectiveness of the network of the present invention, precision, recall, accuracy, specificity and F1-Score are selected as evaluation indicators. The formulas of each evaluation indicator are as follows:
[0037]
[0038]
[0039]
[0040]
[0041]
[0042] Among them, TP is a true positive example, FN is a false negative example, FP is a false positive example, and TN is a true negative example.
[0043] The experimental results are shown in Table 1, which are two types of results: normal band data and abnormal band data.
[0044] Table 1 Classification results of normal and abnormal band data in the present invention
[0045] type Accuracy / % Recall / % Specificity / % F1-Score / % Accuracy / % Normal band data 97.9 98.0 98.0 97.9 98.1 Abnormal band data 97.6 97.8 97.8 97.7 97.9
[0046] Table 2 compares the experimental results of the network of the present invention with other neural networks. The classification networks include VGG16, GoogleNet, ResNeXt, EfficientNet and ConvNeXtV2. The comparison indicators include classification accuracy, calculation amount and parameter amount.
[0047] Table 2 Comparison of experimental results of the present invention with other neural networks
[0048] Classification Network Accuracy Calculation Amount Parameter quantity VGG16 95.36% 45458.89M 333.50M GoogleNet 93.78% 4657.74M 5.98M ResNeXt 96.55% 12511.35M 22.98M EfficientNet 97.72% 8436.02M 20.18M ConvNeXtV2 95.07% 13099.52M 27.80M Classification network of the present invention 98.00% 1349.71M 2.25M
[0049] In summary, the present invention has a high classification accuracy rate, and the classification accuracy rate for normal band data can reach 98.1%, and the classification accuracy rate for abnormal band data can reach 97.7%, which is beneficial to the subsequent research of SDSS survey images.
Claims
1. A classification algorithm for normal and abnormal band data of SDSS survey images, Features: A method for detecting abnormal band data of SDSS survey images is provided. It consists of four stages, each of which includes a PatchEmbedding module and a spatial channel aggregation module. The PatchEmbedding module is used to convert the original input data into an embedded representation suitable for subsequent model processing; The spatial channel aggregation module combines a four-branch spatial aggregation module and a channel attention module for feature extraction.
2. According to claim 1, a classification algorithm for normal and abnormal band data of SDSS survey images consists of four stages, each of which increases the number of channels while reducing the resolution to extract more detailed features. The input feature map resolution of each stage is The number of channels is C, 2C, 4C, and 8C, respectively. The receptive field is expanded and the computational complexity is reduced by successively reducing the resolution of the input feature map.
3. According to claim 1, a classification algorithm for normal and abnormal band data of SDSS survey images, a four-branch spatial aggregation module is used in the backbone network; x in It is divided into two branches. One branch divides the input channel into four parts with a ratio of 1:7:3:5, and applies deep convolution with different dilation rates to each part to extract features. The convolution kernel sizes are 1×1, 5×5, 5×5, and 7×7, respectively. Then, point convolution with a convolution kernel size of 1×1 is used to fuse the information of different branches. By processing information of different spatial scales in parallel, better feature fusion is achieved at a lower computational cost, effectively capturing subtle features and large-scale structures in the image.
4. According to claim 1, a normal and abnormal band data classification algorithm for SDSS survey images, a channel attention module is used in the backbone network; The channel attention module extracts the most discriminative channel position by improving the network's ability to capture channel features. First, shallow features are extracted through 1×1 convolution and 3×3 depthwise separable convolution; nonlinearity is introduced using SELU activation function; and the previous features are integrated using average pooling layer, two fully connected layers and two activation function layers to obtain an output probability for various categories, which can be expressed as follows: x out_1 =SELU(DWConv(Conv(x in ))) The SELU activation function used here can effectively avoid the gradient explosion and gradient disappearance problems.
5. According to claim 2, a normal and abnormal band data classification algorithm for SDSS survey images combines a four-branch spatial aggregation module and a channel attention module in each stage. By using two modules and setting the depth of each stage to 3, 3, 3, and 2 respectively, the abnormal area can be effectively paid attention to, thereby using a multi-layer perceptron to divide the image into two categories.
6. According to claim 5, an algorithm for classifying normal and abnormal band data of SDSS survey images, Features: After the images are divided into two categories, the precision, recall, specificity, F1-Score and accuracy are used as evaluation indicators to judge the classification performance. It is concluded that the network of the present invention can classify normal and abnormal band data of SDSS survey images with high accuracy.
