Astronomical image morphology classification standard dataset and baseline model construction method and system

CN118365975BActive Publication Date: 2024-09-06ZHEJIANG LAB
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410799005.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-09-06
Estimated Expiration
2044-06-20

AI Technical Summary

Technical Problem

[0004]本发明要克服现有技术的上述缺点,提供天文图像形态分类标准数据集和基线模型构建方法与系统,为天文科学研究领域提供标准的形态学分类数据集和基线模型方法,解决了现有技术中机器学习模型训练方法落后、训练后的模型能够应用的形态分类问题少和现有模型无法应用于真实的形态分类问题

Benefits of technology

[0043] ① A standardized data set has been established, which can be used for training and performance evaluation of galaxy morphology classification models;

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118365975B
    Figure CN118365975B
Patent Text Reader

Abstract

A method and system for constructing a standard dataset and baseline model for morphological classification of astronomical images, the method comprising: collecting astronomical image data related to the morphological classification task, setting a morphological classification problem; roughly annotating the collected image data and the established morphological classification problem, designing a positive and negative sample threshold mechanism to screen high-quality annotated data and divide the training set and the validation set; selecting a deep model to be trained, modifying the model head to be multiple parallel full connections, realizing the correspondence between the fully connected network and the morphological classification problem, and randomly initializing network parameters; calculating the sum of the cross entropy between the predicted value and the true value of each fully connected neural network as the training loss, and updating the network parameters according to the gradient descent algorithm; finally deploying the trained model to complete the morphological classification task. The present invention establishes a standard dataset and evaluation index for morphological classification problems, which can be used for all morphological classification problems at the same time.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of astronomical image morphology classification, and in particular to a method and system for constructing a standard data set and a baseline model for astronomical image morphology classification. Background Art

[0002] Morphological classification of astronomical galaxy images based on visual features such as spiral arms, central bars or strange features is the key to studying the formation and evolution of galaxies. In the field of astronomical science, many research projects have been established to explore the morphological classification of galaxies. With the rapid increase in survey data, traditional classification methods have been unable to meet the astronomers' needs for processing massive data. In recent years, the use of computer vision technology to process large-scale survey data has shined in the field of astronomy. Its automated processing form and accurate prediction results have significantly accelerated the astronomical data processing process and supported major astronomical discoveries.

[0003] An important and basic problem in applying machine learning methods to the field of astronomical science research is to construct data sets and evaluation indicators for model training. However, deep learning models in the field of pre-astronomy are usually related to a specific research task of researchers. There is no unified data set for common problems. The proposed methods are similar, but it is not easy to compare the performance of the methods with each other. At present, the field of astronomy lacks data sets and evaluation indicators related to morphological classification. On the other hand, there are some works that use machine learning methods to solve the problem of astronomical galaxy morphological classification. The usual practice is to select one or two questions in the morphological classification for binary classification, and the training model can correctly predict the answer to the question. However, taking the GZ2 project as an example, the astronomical morphological classification includes 11 questions and 37 answers. It is obviously not possible to use only one or two questions for the model to learn in real situations. Summary of the invention

[0004] The present invention aims to overcome the above-mentioned shortcomings of the prior art, provide a standard data set for astronomical image morphological classification and a baseline model construction method and system, provide a standard morphological classification data set and baseline model method for the field of astronomical science research, and solve the problems in the prior art that the machine learning model training method is backward, the trained model can be applied to few morphological classification problems, and the existing model cannot be applied to real morphological classification problems.

[0005] In order to solve the shortcomings of current technology and promote the iterative progress of machine learning methods in galaxy morphology classification problems, the present invention establishes a complete system for astronomical morphology classification problems, including data sets, evaluation indicators and baseline model methods for model training and evaluation. The data set established by the present invention contains a sufficient number of images for model training and evaluation. The baseline model method proposed by the present invention can learn and predict all morphological classification problems, greatly enhancing the processing capabilities of existing methods (existing methods can only handle 1 or 2 problems).

[0006] In order to achieve the above object, the present invention provides the following technical solutions:

[0007] The first aspect of the present invention relates to a standard dataset for astronomical image morphology classification and a method for constructing a baseline model, comprising the following steps:

[0008] S1, Collect survey data: Collect survey data related to morphological classification, collect data from publicly available astronomical projects, such as the Galaxy Zoo project, and obtain survey data from different telescopes;

[0009] S2, set up morphological classification problems: according to the common problems of astronomical morphological classification, set up multiple morphological classification problems and corresponding answers. Assume that there are N questions in total, and each question has N i Taking the Galaxy Zoo 2 project as an example, there are 11 different questions, each with a different number of responses, for a total of 37 responses;

[0010] S3, rough data annotation: for each image data collected in step S1 and the N questions set in step S2, recruit volunteers to perform rough annotation: traverse each image collected in step S1, for all N questions, select and vote for the response that meets each question, accumulate all votes, and calculate the proportion of each response under each question as the score for each response;

[0011] S4, data fine labeling: In step S3, different labelers will vote for different responses to the same question, which will inevitably reduce the accuracy of data labeling. To this end, the present invention proposes a score threshold mechanism to screen out high-quality labeling data;

[0012] S5, establish evaluation indicators: the constructed machine learning model needs to accurately answer N questions about the input astronomical images, and each question contains a different number of responses. For each question, if the machine learning model answers correctly, the accuracy rate is +1, and if the answer is wrong, the accuracy rate is +0. The average accuracy rate of N questions is used as the accuracy indicator of the machine learning model;

[0013] S6, build a neural network model: select a mainstream convolutional neural network or transformer network as the neural network model to be trained, modify the task head of the neural network model to a parallel fully connected network with the same number of questions, the output dimension of each fully connected network matches the number of answer types of the corresponding question, all fully connected networks share input features, and randomly initialize model parameters;

[0014] S7, training model: using multi-classification cross entropy loss as the training loss of the neural network model in step S6, calculating the cross entropy loss for all parallel fully connected networks respectively, taking the sum of all losses as the model training loss, and updating the network parameters by the gradient descent method; when the training loss no longer decreases, stop training;

[0015] S8, model deployment: deploy the model trained in step S7 to the terminal device. The terminal device receives new astronomical data and inputs it into the trained neural network model to obtain the predicted probability vector and corresponding response for each question, thereby completing related downstream tasks.

[0016] Furthermore, the step S4 specifically includes: setting a positive sample threshold and a negative sample threshold; traversing each image and each question in step S1, if the score of a reply is higher than the positive sample threshold, then the reply is used as a positive sample annotation for the corresponding question; if the scores of all replies are lower than the negative sample threshold, then it is considered that the current image is irrelevant to the current question; if the scores of all replies are between the negative sample threshold and the positive sample threshold, then the current image is discarded to achieve fine annotation of the data in step S1; save a set of images with fine annotations, and divide them into a training set and a validation set.

[0017] Furthermore, in step S4, there are multiple combinations of the selection of the positive sample threshold and the negative sample threshold. A higher positive sample threshold and a lower negative sample threshold will filter out higher quality labeled data; conversely, a lower positive sample threshold and a higher negative sample threshold will not be able to filter out low quality labeled data; in practice, the positive sample threshold can be set to 0.7, and the negative sample threshold can be set to 0.3, or other values;

[0018] Furthermore, in step S6, when transformer is used as the neural network model, the number of layers of the model is m, and the input of the l+1th layer of the model is , where B, L, and D are the batch size of the input data, the length of the input sequence, and the dimension of the input sequence respectively; the N parallel fully connected networks share the output features of the last layer of transformer as input; the network forward propagation process is:

[0019]

[0020]

[0021]

[0022] in is the input image data, It is a transformer module, which consists of multi-head self-attention, feedforward network, multi-layer perceptron and residual connection; represents the i-th fully connected classification network, Represents the output result of the i-th fully connected classification network;

[0023] Alternatively, in step S6, when CNN is used as the neural network model, the number of layers of the model is still recorded as m, and the input of the l+1th layer of the model is , where B, C, h and w are the batch size of input data, the number of feature channels, feature width and height respectively; the N parallel fully connected networks share the output features of the last layer of CNN as input; the network forward propagation process is:

[0024]

[0025]

[0026]

[0027] in is the input image data, It is a CNN module, which consists of convolutional layers, batch normalization layers, non-linear activation functions and residual connections;

[0028] Furthermore, in step S7, the loss of model training is ,in Respectively represent the model's predicted probability and category label for the i-th input sample;

[0029] A second aspect of the present invention relates to a standard dataset for astronomical image morphology classification and a baseline model building system, comprising:

[0030] Survey data collection module: used by the server to collect image data related to astronomical morphology classification tasks. Data can be collected from publicly available astronomical projects, such as the Galaxy Zoo project, or survey data can be obtained from different telescopes.

[0031] Morphological classification question establishment module: according to the common problems of astronomical morphological classification, multiple morphological classification questions and corresponding answers are established;

[0032] Data rough annotation module: recruit volunteers to perform rough annotation based on the collected image data and the established morphological classification problems;

[0033] Data fine-labeling module: sets the positive sample threshold and negative sample threshold mechanism to filter out high-quality labeled data, saves the image set with fine labeling, and divides it into training set and validation set;

[0034] Establish an evaluation index module: For each question, if the machine learning model answers correctly, the accuracy rate is +1, and if the answer is wrong, the accuracy rate is +0. The average accuracy rate of all morphological classification questions is used as the accuracy index of the machine learning model;

[0035] Neural network model building module: Select mainstream convolutional neural network or transformer network as the network model to be trained, modify the task head of the network model to N parallel fully connected networks, the output dimension of each fully connected network matches the number of answer types of the corresponding question, all fully connected networks share input features, and randomly initialize model parameters;

[0036] Model training module: multi-classification cross entropy loss is used as the training loss of the neural network model, cross entropy loss is calculated for N parallel fully connected networks respectively, the sum of all losses is used as the model training loss, and the network parameters are updated by the gradient descent method;

[0037] Model deployment module: The trained model is deployed to the terminal device. The terminal device receives new astronomical data and inputs it into the trained model to obtain the predicted probability vector and corresponding response for each question, thereby completing related downstream tasks.

[0038] The third aspect of the present invention relates to a device for constructing a standard dataset and a baseline model for astronomical image morphology classification, comprising a memory and one or more processors, wherein the memory stores executable code, and when the one or more processors execute the executable code, they are used to implement the method for constructing a standard dataset and a baseline model for astronomical image morphology classification of the present invention.

[0039] A fourth aspect of the present invention relates to a computer-readable storage medium having a program stored thereon, which, when executed by a processor, implements the astronomical image morphology classification standard data set and baseline model construction method of the present invention.

[0040] The method of the present invention comprises: collecting astronomical image data related to the morphological classification task, setting the morphological classification problem; roughly annotating the collected image data and the established morphological classification problem, designing a positive and negative sample threshold mechanism to screen high-quality annotated data and divide the training set and the verification set; selecting a deep model to be trained, modifying the model head to be multiple parallel full connections, realizing the correspondence between the full connection network and the morphological classification problem, and randomly initializing the network parameters; calculating the sum of the cross entropy between the predicted value and the true value of each fully connected neural network as the training loss, and updating the network parameters according to the gradient descent algorithm; finally deploying the trained model to complete the morphological classification task. The present invention establishes a standard data set and evaluation index for morphological classification problems, which can be used for all morphological classification problems at the same time.

[0041] The innovation of the present invention is that the method of the present invention uses the mainstream neural network model to establish a strong baseline for the astronomical morphology classification problem, provides a comparison object for the iterative update of the algorithm, and establishes a data set and evaluation indicators for model training.

[0042] The beneficial effects of the present invention are:

[0043] ① A standardized dataset was established, which can be used for training and performance evaluation of galaxy morphology classification models;

[0044] ②Established evaluation indicators for morphological classification;

[0045] ③ A baseline model method for morphological classification was established. The method of the present invention can solve all problems of morphological classification at the same time. Compared with existing methods, it greatly enhances the processing capability and practical usability of the model. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative labor.

[0047] Figure 1 A schematic diagram of a process for constructing a standard dataset and a baseline model for astronomical image morphology classification according to an embodiment of the present invention;

[0048] Figure 2 A system structure diagram of a standard dataset and a baseline model for astronomical image morphology classification provided by an embodiment of the present invention;

[0049] Figure 3 A schematic diagram of a standard dataset for astronomical image morphology classification and a baseline model construction method provided in one embodiment of the present invention;

[0050] Figure 4 A schematic diagram of a standard dataset for astronomical image morphology classification and a baseline model construction method provided by another embodiment of the present invention;

[0051] Figure 5 A structural block diagram of a standard dataset for astronomical image morphology classification and a baseline model building device provided in one embodiment of the present invention; DETAILED DESCRIPTION

[0052] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0053] It should be noted that, in the absence of conflict, the features in the following embodiments and implementations may be combined with each other.

[0054] Example 1

[0055] Taking the Galaxy Zoo project in the astronomy field as an example, the astronomical image morphology classification includes 11 different questions, and each question has 2 to 7 responses. The flowchart of the astronomical image morphology classification standard dataset and baseline model construction method of the present invention can be found in Figure 1 , with the goal of being able to handle all morphological classification problems simultaneously, includes the following steps:

[0056] S1, Collect survey data: Collect survey data related to morphological classification, collect data from publicly available astronomical projects, such as the Galaxy Zoo project, and obtain survey data from different telescopes;

[0057] S2, set up morphological classification problems: according to the common problems of astronomical morphological classification, set up multiple morphological classification problems and corresponding answers. Assume that there are N questions in total, and each question has N i Taking the Galaxy Zoo 2 project as an example, there are 11 different questions, each with a different number of responses, for a total of 37 responses. Please refer to Table 1 for the 11 questions and their corresponding responses:

[0058] Table 1

[0059]

[0060] S3, data rough labeling: for each image data collected in step S1 and the N questions set in step S2, recruit a large number of volunteers to perform rough labeling: traverse each image, for all N questions, select and vote for the response that meets each question, accumulate all votes, calculate the proportion of each response under each question, and use it as the score for each response;

[0061] S4, detailed data annotation: In step S3, different annotators will vote different replies to the same question, which will inevitably reduce the accuracy of data annotation. To this end, the present invention proposes a score threshold mechanism to screen out high-quality annotation data. Specifically, a positive sample threshold and a negative sample threshold are set. Traverse each image and each question in step S1. According to the scoring result in step S3, if the score of a reply is higher than the positive sample threshold, then the reply is used as the positive sample annotation of the corresponding question; if the scores of all replies are lower than the negative sample threshold, it is considered that the current image is irrelevant to the current question; if the scores of all replies are between the negative sample threshold and the positive sample threshold, the current image is discarded. After this step, the detailed annotation of the data in S1 is achieved; save the image set with detailed annotations, and divide it into a training set and a validation set;

[0062] S5, establish evaluation indicators: the constructed machine learning model needs to accurately answer N questions about the input astronomical images, and each question contains a different number of responses. For each question, if the machine learning model answers correctly, the accuracy rate is +1, and if the answer is wrong, the accuracy rate is +0. The average accuracy rate of N questions is used as the accuracy indicator of the machine learning model;

[0063] S6, build a neural network model: select a mainstream convolutional neural network or transformer network as the network model to be trained, modify the task head of the network model to be N parallel fully connected networks, the output dimension of each fully connected network matches the number of answer types of the corresponding question, all fully connected networks share input features, and randomly initialize model parameters;

[0064] S7, training model: using multi-classification cross entropy loss as the training loss of the neural network model in step S6, calculating the cross entropy loss for N parallel fully connected networks respectively, taking the sum of all losses as the model training loss, and updating the network parameters by the gradient descent method; when the training loss no longer decreases, stop training;

[0065] S8, model deployment: deploy the model trained in step S7 to the terminal device. The terminal device receives new astronomical data and inputs it into the trained model to obtain the predicted probability vector and corresponding response for each question, thereby completing related downstream tasks.

[0066] In step S4, there are multiple combinations for selecting the positive sample threshold (denoted as PT) and the negative sample threshold (denoted as FT). A higher positive sample threshold and a lower negative sample threshold will filter out higher quality labeled data; conversely, a lower positive sample threshold and a higher negative sample threshold will not be able to filter out low-quality labeled data. In practice, the positive sample threshold can be set to 0.7, and the negative sample threshold can be set to 0.3, or to other values. Setting different positive and negative sample thresholds will result in different amounts of high-quality labeled data. The relationship between the set threshold and the number of retained images is shown in Table 2.

[0067] Table 2: Relationship between the set threshold and the number of retained images

[0068]

[0069] In step S7, the loss of model training is ,in Respectively represent the model's predicted probability and category label for the i-th input sample;

[0070] Example 2

[0071] Taking the transformer as a neural network model as an example, this embodiment provides a standard dataset for astronomical image morphology classification and a baseline model construction method, see Figure 3 , including the following steps:

[0072] S1, Collect survey data: Collect survey data related to morphological classification, collect data from publicly available astronomical projects, such as the Galaxy Zoo project, and obtain survey data from different telescopes;

[0073] S2, set up morphological classification problems: according to the common problems of astronomical morphological classification, set up multiple morphological classification problems and corresponding answers. Assume that there are N questions in total, and each question has N i Taking the Galaxy Zoo 2 project as an example, there are 11 different questions, each with a different number of responses, for a total of 37 responses;

[0074] S3, data rough labeling: for each image data collected in step S1 and the N questions set in step S2, recruit a large number of volunteers to perform rough labeling: traverse each image, for all N questions, select and vote for the response that meets each question, accumulate all votes, calculate the proportion of each response under each question, and use it as the score for each response;

[0075] S4, detailed data annotation: In step S3, different annotators will vote different replies to the same question, which will inevitably reduce the accuracy of data annotation. To this end, the present invention proposes a score threshold mechanism to screen out high-quality annotation data. Specifically, a positive sample threshold and a negative sample threshold are set. Traverse each image and each question in step S1. According to the scoring results in S3, if the score of a reply is higher than the positive sample threshold, then the reply is used as the positive sample annotation of the corresponding question; if the scores of all replies are lower than the negative sample threshold, it is considered that the current image is irrelevant to the current question; if the scores of all replies are between the negative sample threshold and the positive sample threshold, the current image is discarded. After this step, the detailed annotation of the data in step S1 is achieved; save the image set with detailed annotations, and divide it into a training set and a validation set;

[0076] S5, establish evaluation indicators: the constructed machine learning model needs to accurately answer N questions about the input astronomical images, and each question contains a different number of responses. For each question, if the machine learning model answers correctly, the accuracy rate is +1, and if the answer is wrong, the accuracy rate is +0. The average accuracy rate of N questions is used as the accuracy indicator of the machine learning model;

[0077] S6, build a neural network model: select a mainstream convolutional neural network or transformer network as the network model to be trained, modify the task head of the network model to be N parallel fully connected networks, the output dimension of each fully connected network matches the number of answer types of the corresponding question, all fully connected networks share input features, and randomly initialize model parameters;

[0078] S7, training model: using multi-classification cross entropy loss as the training loss of the neural network model in step S6, calculating the cross entropy loss for N parallel fully connected networks respectively, taking the sum of all losses as the model training loss, and updating the network parameters by the gradient descent method; when the training loss no longer decreases, stop training;

[0079] S8, model deployment: deploy the model trained in step S7 to the terminal device. The terminal device receives new astronomical data and inputs it into the trained model to obtain the predicted probability vector and corresponding response for each question, thereby completing related downstream tasks.

[0080] In step S4, there are multiple combinations of the selection of the positive sample threshold and the negative sample threshold. A higher positive sample threshold and a lower negative sample threshold will filter out higher quality labeled data; conversely, a lower positive sample threshold and a higher negative sample threshold will not be able to filter out low quality labeled data; in practice, the positive sample threshold can be set to 0.7, and the negative sample threshold can be set to 0.3, or other values;

[0081] In step S6, when the transformer is used as the neural network model, the number of layers of the model is m, and the input of the l+1th layer of the model is , where B, L, and D are the batch size of the input data, the length of the input sequence, and the dimension of the input sequence respectively; the N parallel fully connected networks share the output features of the last layer of transformer as input; the network forward propagation process is:

[0082]

[0083]

[0084]

[0085] in is the input image data, It is a transformer module, which consists of multi-head self-attention, feedforward network, multi-layer perceptron and residual connection; represents the i-th fully connected classification network, Represents the output result of the i-th fully connected classification network;

[0086] In step S7, the loss of model training is ,in Respectively represent the model's predicted probability and category label for the i-th input sample;

[0087] Example 3

[0088] Taking CNN as a neural network model as an example, this embodiment provides a standard dataset for astronomical image morphology classification and a baseline model construction method, see Figure 4 , including the following steps:

[0089] S1, Collect survey data: Collect survey data related to morphological classification, collect data from publicly available astronomical projects, such as the Galaxy Zoo project, and obtain survey data from different telescopes;

[0090] S2, set up morphological classification problems: according to the common problems of astronomical morphological classification, set up multiple morphological classification problems and corresponding answers. Assume that there are N questions in total, and each question has N i Taking the Galaxy Zoo 2 project as an example, there are 11 different questions, each with a different number of responses, for a total of 37 responses;

[0091] S3, data rough labeling: for each image data collected in step S1 and the N questions set in step S2, recruit a large number of volunteers to perform rough labeling: traverse each image, for all N questions, select and vote for the response that meets each question, accumulate all votes, calculate the proportion of each response under each question, and use it as the score for each response;

[0092] S4, detailed data annotation: In step S3, different annotators will vote different replies to the same question, which will inevitably reduce the accuracy of data annotation. To this end, the present invention proposes a score threshold mechanism to screen out high-quality annotation data. Specifically, a positive sample threshold and a negative sample threshold are set. Traverse each image and each question in step S1. According to the scoring result in step S3, if the score of a reply is higher than the positive sample threshold, then the reply is used as the positive sample annotation of the corresponding question; if the scores of all replies are lower than the negative sample threshold, it is considered that the current image is irrelevant to the current question; if the scores of all replies are between the negative sample threshold and the positive sample threshold, the current image is discarded. After this step, the detailed annotation of the data in step S1 is achieved; save the image set with detailed annotations, and divide it into a training set and a validation set;

[0093] S5, establish evaluation indicators: the constructed machine learning model needs to accurately answer N questions about the input astronomical images, and each question contains a different number of responses. For each question, if the machine learning model answers correctly, the accuracy rate is +1, and if the answer is wrong, the accuracy rate is +0. The average accuracy rate of N questions is used as the accuracy indicator of the machine learning model;

[0094] S6, build a neural network model: select a mainstream convolutional neural network or transformer network as the network model to be trained, modify the task head of the network model to be N parallel fully connected networks, the output dimension of each fully connected network matches the number of answer types of the corresponding question, all fully connected networks share input features, and randomly initialize model parameters;

[0095] S7, training model: using multi-classification cross entropy loss as the training loss of the neural network model in step S6, calculating the cross entropy loss for N parallel fully connected networks respectively, taking the sum of all losses as the model training loss, and updating the network parameters by the gradient descent method; when the training loss no longer decreases, stop training;

[0096] S8, model deployment: deploy the model trained in step S7 to the terminal device. The terminal device receives new astronomical data and inputs it into the trained model to obtain the predicted probability vector and corresponding response for each question, thereby completing related downstream tasks.

[0097] In step S4, there are multiple combinations of the selection of the positive sample threshold and the negative sample threshold. A higher positive sample threshold and a lower negative sample threshold will filter out higher quality labeled data; conversely, a lower positive sample threshold and a higher negative sample threshold will not be able to filter out low quality labeled data; in practice, the positive sample threshold can be set to 0.7, and the negative sample threshold can be set to 0.3, or other values;

[0098] In step S6, when CNN is used as the neural network model, the number of layers of the model is still recorded as m, and the input of the l+1th layer of the model is , where B, C, h and w are the batch size of input data, the number of feature channels, feature width and height respectively; the N parallel fully connected networks share the output features of the last layer of CNN as input; the network forward propagation process is:

[0099]

[0100]

[0101]

[0102] in is the input image data, It is a CNN module, which consists of convolutional layers, batch normalization layers, non-linear activation functions and residual connections;

[0103] In step S7, the loss of model training is ,in Respectively represent the model's predicted probability and category label for the i-th input sample;

[0104] Example 4

[0105] Reference Figure 2 The present embodiment provides a standard dataset for astronomical image morphology classification and a baseline model construction system, including:

[0106] Survey data collection module: used by the server to collect image data related to astronomical morphology classification tasks. Data can be collected from publicly available astronomical projects, such as the Galaxy Zoo project, or survey data can be obtained from different telescopes.

[0107] Morphological classification question establishment module: according to the common problems of astronomical morphological classification, multiple morphological classification questions and corresponding answers are established;

[0108] Data rough annotation module: Recruit a large number of volunteers to perform rough annotation for the collected image data and the established morphological classification problems;

[0109] Data fine-labeling module: sets the positive sample threshold and negative sample threshold mechanism to filter out high-quality labeled data, saves the image set with fine labeling, and divides it into training set and validation set;

[0110] Establish an evaluation index module: For each question, if the machine learning model answers correctly, the accuracy rate is +1, and if the answer is wrong, the accuracy rate is +0. The average accuracy rate of all morphological classification questions is used as the accuracy index of the machine learning model;

[0111] Neural network model building module: Select mainstream convolutional neural network or transformer network as the network model to be trained, modify the task head of the network model to N parallel fully connected networks, the output dimension of each fully connected network matches the number of answer types of the corresponding question, all fully connected networks share input features, and randomly initialize model parameters;

[0112] Model training module: multi-classification cross entropy loss is used as the training loss of the neural network model, cross entropy loss is calculated for N parallel fully connected networks respectively, the sum of all losses is used as the model training loss, and the network parameters are updated by the gradient descent method;

[0113] Model deployment module: The trained model is deployed to the terminal device. The terminal device receives new astronomical data and inputs it into the trained model to obtain the predicted probability vector and corresponding response for each question, thereby completing related downstream tasks.

[0114] Example 5

[0115] This embodiment relates to a computer-readable storage medium, which stores a computer program. The computer program can be used to execute the astronomical image morphology classification standard data set and baseline model method of Example 1.

[0116] Example 6

[0117] The present embodiment relates to a device for constructing a standard dataset for astronomical image morphology classification and a baseline model, including a memory and one or more processors, wherein the memory stores executable code, and when the one or more processors execute the executable code, they are used to implement the method for constructing a standard dataset for astronomical image morphology classification and a baseline model of embodiment 1.

[0118] The present invention also provides Figure 5 The one shown corresponds to Figure 1 Schematic diagram of the standard dataset for astronomical image morphology classification and the baseline model device. Figure 5As shown in FIG. 1 , at the hardware level, the standard data set and baseline model device for astronomical image morphology classification includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and may also include hardware required for other services. The processor reads the corresponding computer program from the non-volatile memory into the memory and then runs it to achieve the above Figure 1 Of course, in addition to the software implementation, the present invention does not exclude other implementations, such as logic devices or a combination of software and hardware, etc., that is, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0119] The above description is only an embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent substitution, improvement, etc. made within the spirit and principle of the present invention should be included in the scope of the claims of the present invention.

Claims

1. Standard dataset for astronomical image morphology classification and baseline model construction method, It is characterized in that The following steps are involved: S1, collect survey data related to morphological classification; S2, based on the common problems of astronomical morphology classification, set up multiple morphology classification questions and corresponding answers; S3, traverse each image collected in step S1, for all questions, select the response that meets each question in the vote, and calculate the proportion of each response under each question as the score of each response; S4, proposes a score threshold mechanism to filter out high-quality annotated data; S5, the constructed machine learning model responds to questions about the input astronomical images. If the machine learning model answers correctly, the accuracy is +1, and if the answer is wrong, the accuracy is +0. The average accuracy of all questions is used as the accuracy indicator of the machine learning model. S6, select a neural network model to be trained, modify the task head of the neural network model to be a parallel fully connected network with the same number of questions, the output dimension of each fully connected network matches the number of answer types of the corresponding question, all fully connected networks share input features, and randomly initialize model parameters; S7, using multi-classification cross entropy loss as the training loss of the neural network model, calculating the cross entropy loss for all parallel fully connected networks respectively, taking the sum of all losses as the model training loss, and updating the network parameters by the gradient descent method; when the training loss no longer decreases, stop training; S8, deploys the trained neural network model to the terminal device. The terminal device receives new astronomical data and inputs it into the trained model to obtain the predicted probability vector and corresponding response for each question.

2. The astronomical image morphology classification standard dataset and baseline model construction method according to claim 1, It is characterized in that The step S4 specifically includes: setting a positive sample threshold and a negative sample threshold; traversing each image and each question in step S1, and if the score of a reply is higher than the positive sample threshold, then the reply is used as a positive sample annotation for the corresponding question; if the scores of all replies are lower than the negative sample threshold, then it is considered that the current image is irrelevant to the current question; if the scores of all replies are between the negative sample threshold and the positive sample threshold, then the current image is discarded to achieve fine annotation of the data in step S1; save a set of images with fine annotations, and divide them into a training set and a validation set.

3. The astronomical image morphology classification standard dataset and baseline model construction method according to claim 1, It is characterized in that In step S4, there are multiple combinations for selecting the positive sample threshold and the negative sample threshold. A high positive sample threshold and a low negative sample threshold will filter out high-quality labeled data; conversely, a low positive sample threshold and a high negative sample threshold will not be able to filter out low-quality labeled data.

4. The astronomical image morphology classification standard dataset and baseline model construction method according to claim 3, It is characterized in that The positive sample threshold is set to 0.7 and the negative sample threshold is set to 0.

3.

5. The astronomical image morphology classification standard dataset and baseline model construction method according to claim 1, It is characterized in that In step S6, when transformer is used as the neural network model, the number of layers of the model is m , model l The input of layer +1 is , where B, L, and D are the batch size of the input data, the length of the input sequence, and the dimension of the input sequence respectively; N parallel fully connected networks share the output features of the last layer of transformer as input; The network forward propagation process is: in is the input image data, It is a transformer module, which consists of multi-head self-attention, feedforward network, multi-layer perceptron and residual connection; represents the i-th fully connected classification network, Represents the output result of the i-th fully connected classification network.

6. The astronomical image morphology classification standard dataset and baseline model construction method according to claim 1, It is characterized in that In step S6, when CNN is used as the neural network model, the number of layers of the model is still recorded as m , model l The input of layer +1 is , where B, C, h and w are the batch size, number of feature channels, feature width and height of the input data respectively; N parallel fully connected networks share the output features of the last layer of CNN as input; The network forward propagation process is: in is the input image data, It is a CNN module, which consists of convolutional layers, batch normalization layers, non-linear activation functions and residual connections.

7. The astronomical image morphology classification standard dataset and baseline model construction method according to claim 1, It is characterized in that In step S7, the loss of model training is ,in Respectively represent the model for i The predicted probabilities and class labels for the input samples.

8. Standard dataset and baseline model building system for astronomical image morphology classification, It is characterized in that include: Survey data collection module: used by the server to collect image data related to astronomical morphology classification tasks; Morphological classification question setting module: set up multiple morphological classification questions and corresponding answers; Data rough annotation module: Recruit volunteers to perform rough data annotation based on the collected image data and the established morphological classification problems; Data fine-labeling module: sets the positive sample threshold and negative sample threshold mechanism to filter out high-quality labeled data, saves the image set with fine labeling, and divides it into training set and validation set; Establish an evaluation index module: For each question, if the machine learning model answers correctly, the accuracy rate is +1, and if the answer is wrong, the accuracy rate is +0. The average accuracy rate of all morphological classification questions is used as the accuracy index of the machine learning model; Neural network model building module: select convolutional neural network or transformer network as the network model to be trained, modify the task head of the network model to N parallel fully connected networks, and randomly initialize the model parameters; Model training module: multi-classification cross entropy loss is used as the training loss of the neural network model, cross entropy loss is calculated for N parallel fully connected networks, and network parameters are updated by gradient descent method; Model deployment module: deploys the trained model to the terminal device. The terminal device inputs the received new astronomical data into the trained model to obtain the predicted probability vector and corresponding response for each question, and then completes the relevant downstream tasks.

9. Standard dataset for astronomical image morphology classification and baseline model construction device, It is characterized in that It comprises a memory and one or more processors, wherein the memory stores executable code, and when the one or more processors execute the executable code, it is used to implement the astronomical image morphology classification standard data set and baseline model construction method according to any one of claims 1 to 7.

10. A computer-readable storage medium, It is characterized in that A program is stored thereon, and when the program is executed by a processor, the standard data set and baseline model construction method for astronomical image morphology classification described in any one of claims 1-7 are implemented.