Gathering image form classification method based on dynamic large convolution kernel and multi-scale feed-forward connection
By using a dynamic large convolution kernel and a network structure of multi-scale feedforward connections in astronomical galaxy image classification, the problems of large computational complexity and low accuracy in traditional methods are solved, and efficient and accurate automatic classification of galaxy morphology is achieved, with good performance Robustness and automation features.
Patent Information
- Application Number
- CN202410741642.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-10-01
AI Technical Summary
Traditional astronomical galaxy image classification methods require large amounts of calculations, high hardware performance requirements, difficulty in selecting morphological features, slow classification speed, and insufficient accuracy, making it difficult to efficiently process and analyze a large number of galaxy images in real time.
A galaxy image morphology classification network based on dynamic large convolution kernel and multi-scale feedforward connection is adopted, including ResNet_LK Block module and classification head Head Block module. Through dynamic large kernel convolution, multi-scale feedforward network, attention feature fusion module and The multi-head attention pooling module extracts high-dimensional features and performs classification to improve the model's expression ability and classification accuracy.
It has achieved efficient and accurate automatic classification of galaxy morphology, with higher accuracy and robustness, greatly saving labor costs, being able to automatically perform high-precision classification, and significantly improving classification speed and accuracy.
Smart Images

Figure CN118736276A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of astronomical image processing, and in particular relates to a galaxy image morphology classification method based on a dynamic large convolution kernel and multi-scale feedforward connection. Background Art
[0002] A galaxy, also known as an "island universe", refers to a system of stars and interstellar dust that is composed of a huge number of stars. It is the basic unit of the universe. The morphology of a galaxy is closely related to its formation and evolution, and is an important parameter for exploring galaxy physics. Therefore, the classification of galaxy morphology is an important part of astronomical research. With the advancement of observation technology, galaxy research has entered the era of big data, and it is expected that hundreds of millions of galaxy images will be generated. Traditional data processing methods have made it difficult to process and analyze these galaxy images efficiently and in real time.
[0003] For galaxy classification tasks, the automatic classification methods of galaxy morphology have developed rapidly. The literature (Lin JYY, Liao SM, Huang HJ, et al. Galaxy Morphological Classification with Efficient Vision Transformer [M]. arXiv, 2022.) applied Vision Transformer to the classification task of galaxy morphology and achieved classification results similar to those of traditional CNN classifiers. The literature (Wei S, Lu W, Dai W, et al. Galaxy Morphological Classification of the Legacy Surveys with Deformable Convolutional Neural Networks [J]. The Astronomical Journal, 2023, 167 (1): 29.) designed a galaxy image classification model based on the ResNet architecture using deformable convolution and LAM feature fusion modules.
[0004] The astronomical galaxy image morphology classification algorithms based on machine learning proposed above have achieved success to a certain extent, but these methods also have problems such as limited usage scenarios of astronomical image categories, difficulty in algorithm feature selection, and low accuracy. It is crucial to reasonably build an astronomical image classification network model to optimize classification speed and classification accuracy. Summary of the invention
[0005] In order to overcome the problems of large amount of calculation, high hardware performance requirements, difficult morphological feature selection, slow classification speed and limited accuracy in astronomical image classification, the present invention proposes an automatic classification method for astronomical images. Experiments have shown that the network proposed in this paper can efficiently and accurately classify galaxy morphology. To solve the above technical problems, the technical solution of the present invention is as follows:
[0006] A galaxy image morphology classification network based on dynamic large convolution kernels and multi-scale feedforward connections, including a feature extraction ResNet_LK Block module and a classification head Head Block module;
[0007] The ResNet_LK Block module is the basic unit for building a deep learning model. It extracts higher-level and more refined multi-scale information from the input features to improve the expressiveness and performance of the model. It includes 3×3 convolution, dynamic large kernel convolution DLK, multi-scale feedforward network MS-FFN, and attention feature fusion module AFF.
[0008] The Head module integrates the high-dimensional features extracted from the ResNet_LK Block and classifies them, including 3×3 convolution, layer normalization, multi-head attention pooling module, ReLU activation function, and fully connected layer.
[0009] The DLK module uses two cascaded large-kernel deep convolutions to obtain a larger and deeper receptive field through increasing kernel size and dilation rate. A larger and deeper receptive field can more effectively extract high-dimensional features from input features, and then use the selection characteristics of Sigmoid to adaptively learn the importance of different feature representations extracted from the two deep convolutions. Finally, a residual connection is applied to alleviate the gradient vanishing problem and enhance the network learning ability. The formula of the sigmoid function is as follows:
[0010]
[0011] The MS-FFN module uses four parallel deep convolutions. The input is integrated through a 1×1 deep convolution, and the input features are divided into four parts according to the number of channels, and sent to the four parallel deep convolution branches. The sizes of the convolution kernels are 1×1, 3×3, 5×5, and 7×7, respectively, so that information of different scales can be learned. The final output is concatenated and residually connected, and then a 1×1 deep convolution is used to learn the scaling factor of the channel to better integrate multi-scale information and improve the representation ability of the model.
[0012] The AFF attention feature fusion module can better fuse features of different semantics and scales. For the two input features X and Y, the feature fusion is first performed using the add method, followed by local and global channel attention, and then the add feature fusion is performed again. The fused features are passed through the sigmoid function to perform weighted average on the input features X and Y to obtain the final fused features.
[0013] The function of the multi-head attention pooling module is to generate a vector representation with global information through position embedding, attention processing and convolution operation of the input feature map. Attention pooling can extract important semantic information from the input features.
[0014] The present invention also discloses a galaxy image morphology classification network based on a dynamic large convolution kernel and a multi-scale feedforward connection, comprising the following steps:
[0015] S1: Use a public dataset for training. The data source is the DECaLS galaxy images on the Galaxy Zoo official website. Train the classification network: Use the prepared dataset for training to obtain the trained model weights.
[0016] S2: Load the trained model, input the test set data after loading, obtain the test set confusion matrix and the precision, recall, specificity, F1-Score value, and accuracy of each category, which are used to evaluate the classification performance of the panduan network.
[0017] S3: Using the model parameters and classification indicators determined by S2, the classification effect and generalization performance of the network can be judged.
[0018] Beneficial effects: Compared with the prior art, the present invention simultaneously adds dynamic large kernel convolution DLK, multi-scale feedforward network MS-FFN, and AFF residual connection for the first time in the feature extraction process. Compared with the traditional classification algorithm based on convolutional neural network, the present invention has higher accuracy and better robustness, greatly saves labor costs, and can automatically classify galaxy morphology with high accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 This is a schematic diagram of the network structure of galaxy image morphology classification based on dynamic large convolution kernel and multi-scale feed-forward connection used in the present invention;
[0020] Figure 2 It is a basic flow chart of the present invention;
[0021] Figure 3 It is a structural diagram of the feature extraction network ResNet_LK Block proposed in the present invention;
[0022] Figure 4This is a structural diagram of the classification head Head Block 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 figure shows a schematic diagram of the network structure for galaxy image morphology classification using dynamic large convolution kernels and multi-scale feedforward connections. First, the morphological features of the galaxy image are initially extracted through a 3×3 convolution kernel, a BN layer, and a ReLU activation layer. Then, multi-scale information is extracted through a 3×3 convolution, a BN layer, a ReLU activation layer, a DLK layer, and an MS-FFN layer, and more attention is paid to global features and local details. Finally, the AFF attention feature fusion module is used for residual connection to obtain feature output. After that, the feature extraction process is repeated, and the depth and width of feature extraction can be flexibly modified to meet different task requirements. The last part is to sort the features obtained by the feature extraction module through a 3×3 convolution, layer normalization, and multi-scale attention pooling module to obtain the final feature representation, and the final output category probability is obtained through a fully connected layer and Softmax.
[0025] like Figure 2 The basic flow chart of the present invention shown includes the following steps:
[0026] S1: Preliminary data preprocessing: First, download the DECaLS galaxy images and the star catalog of volunteers’ descriptions of galaxy classification from the Galaxy Zoo official website, select qualified data sets based on the selection of the star catalog, and divide the entire data set into training set, validation set, and test set in a ratio of 8:1:1, as shown in Table 1:
[0027] Table 1 Statistics of the number of various images in the present invention
[0028] type Training set Validation set Test Set edgeOn 2591 323 323 Cigar 2789 348 348 InBetween 3248 406 406 Round 2648 331 331 Spiral 3696 462 462 Irregular 3913 489 489
[0029] S2: Training of the galaxy image morphology classification network with dynamic large convolution kernels and multi-scale feedforward connections: Using the ResNet_LK Block in the classification model for feature extraction, DLK can extract features of different receptive fields and adaptively weight the importance in the spatial dimension to obtain the most discriminative spatial features. The multi-scale feedforward network can make full use of multi-scale information, and at the same time can learn the scaling factor of the channel dimension, perform weighted scaling on the channel, and better integrate multi-scale information, thereby improving the classifier's ability to understand the image content. Classification weights can be obtained after training;
[0030] S3: Input the test set images into the trained classification network. After testing, the confusion matrix can be drawn, and the accuracy, recall rate, F1-Score and other indicators of each type of galaxy image in the test set can be obtained to compare the performance differences between different categories.
[0031] like Figure 3 The figure shows the structure of the feature extraction network ResNet_LK Block proposed in the present invention. This structure is the basic component unit in the model, responsible for feature extraction, feature transformation and feature enhancement. DLK obtains adaptive spatial attention features, and the multi-scale feedforward network obtains channel attention features. Finally, residual connection is performed through the attention fusion module. By connecting multiple ResNet_LK Block modules, deeper features can be obtained, improving the expression ability of the model.
[0032] like Figure 4 The figure shows the structure of the classification head proposed in the present invention. This structure is the classifier part of the model. First, a 1×1 convolution is used to integrate the input features and unify the input feature channels to a fixed size. Then, a multi-scale attention pooling layer module is used to extract important semantic information from the fixed features. Finally, the features are classified through a fully connected layer and Softmax. The Softmax function can be expressed as follows:
[0033]
[0034] This implementation case classifies galaxy images through dynamic large convolution kernels and multi-scale feedforward networks. The model fully extracts the galaxy morphological features from the image, improving the classification accuracy. The present invention does not require manual complex feature engineering. It only needs to input the galaxy image into the trained classification model to obtain the classification result, which has good robustness. Experimental results show that the present invention is more conducive to the study of galaxy images than the classic image classification model.
[0035] Table 2 shows the classification indicators of various galaxies in this invention, including precision, recall, specificity and F1-score value:
[0036] Table 2 shows the classification indexes of various galaxies in this invention.
[0037] type Accuracy Recall Specificity F1-Score edgeOn 96.9% 96.8% 99.4% 96.8% Cigar 97.1% 97.4% 99.5% 97.2% InBetween 95.4% 92.6% 99.1% 94.0% Round 95.7% 93.4% 99.3% 94.5% Spiral 97.9% 98.9% 99.5% 98.4% Irregular 98.0% 98.8% 99.5% 98.4%
[0038] Table 3 compares the experimental results of the present invention with other image classification neural network algorithms. The classification networks include Crossvit, Maxvit, Transnext, Transxnet, Han_dcn and Moganet. The comparison indicators include classification accuracy, parameter quantity and FLOPS.
[0039] Table 3 Comparison of experimental results of the present invention and other classification neural network algorithms
[0040] Classification Network Accuracy Parameter quantity FLOPS(G) Crossvit 94.4% 26128524 5.0 Maxvit 96.9% 58606662 21 Transnext 96.3% 27632940 7.2 Transxnet 94.6% 25980872 5.9 Han_dcn 96.3% 7633896 4.0 Moganet 94.6% 24786073 6.4 Classification network of the present invention 97.0% 9463658 4.8
[0041] In summary, compared with other networks, the present invention has higher accuracy, good robustness and strong generalization ability, which is of great significance for subsequent data analysis and extraction of effective information.
Claims
1. A galaxy image morphology classification method based on dynamic large convolution kernel and multi-scale feedforward connection, characterized by: ResNet_LK Block module and classification head Head Block module; The ResNet_LK Block module extracts higher-level and more refined multi-scale information from the input features, including convolution, DLK module, MS-FFN, and AFF; The Head module integrates the high-dimensional features extracted from the ResNet_LK Block and classifies them, including convolution, layer normalization, multi-head attention pooling module, ReLU activation function, and fully connected layer.
2. According to claim 1, a galaxy image morphology classification method based on dynamic large convolution kernel and multi-scale feed-forward connection, using DLK module in ResNet_LK Block; The DLK module uses two cascaded large-kernel deep convolutions to obtain a larger and deeper receptive field with increasing kernel size and dilation rate. A larger and deeper receptive field can more effectively extract high-dimensional features from input features, and then use the selection characteristics of Sigmoid to adaptively learn the importance of different feature representations extracted from the two deep convolutions. Finally, a residual connection is applied to alleviate the gradient vanishing problem and enhance the network learning ability.
3. According to claim 1, a galaxy image morphology classification method based on dynamic large convolution kernel and multi-scale feed-forward connection, using MS-FFN module in ResNet_LK Block; The MS-FFN module uses four parallel deep convolutions. The input is integrated through a 1×1 deep convolution, and the input features are divided into four parts according to the number of channels, and sent to the four parallel deep convolution branches. The sizes of the convolution kernels are 1×1, 3×3, 5×5, and 7×7, respectively, so that information of different scales can be learned. The final output is concatenated and residually connected, and then a 1×1 deep convolution is used to learn the scaling factor of the channel to better integrate multi-scale information and improve the representation ability of the model.
4. According to claim 1, a galaxy image morphology classification method based on dynamic large convolution kernel and multi-scale feed-forward connection, using AFF attention feature fusion module in ResNet_LK Block; The AFF attention feature fusion module can better fuse features of different semantics and scales. For the two input features X and Y, the feature fusion is first performed using the add method, followed by local and global channel attention, and then the add feature fusion is performed again. The fused features are passed through the sigmoid function to perform weighted average on the input features X and Y to obtain the final fused features.
5. According to claim 1, a galaxy image morphology classification method based on dynamic large convolution kernel and multi-scale feedforward connection uses a multi-head attention pooling module in the classification head module Head Block; The function of the multi-head attention pooling module is to generate a vector representation with global information through position embedding, attention processing and convolution operation of the input feature map. Attention pooling can extract important semantic information from the input features.
6. According to claim 1, a galaxy image morphology classification method based on dynamic large convolution kernel and multi-scale feedforward connection, after feature extraction of ResNet_LK Block, and multi-head attention pooling layer, a fully connected layer is used and normalized using Softmax function, which can be expressed as follows: where z i Represents the i-th element in z, and finally outputs the category probabilities of the six categories after classification.
Citation Information
Cited By
Government affair hall service distribution system based on big data analysis
CN120181495A
Image classification method, related device, equipment and storage medium
CN120976658A
Physical prior and depth visual feature-based galaxy form identification method and device
CN122336444A
