Method and system for constructing standard dataset and baseline model for astronomical light redshift

By constructing standard data sets and baseline models, and combining deep neural networks and Bayesian neural networks, we solve the problem of backward models in astronomical redshift estimation, achieve high accuracy and uncertainty estimation, and promote the progress of astronomical scientific research. .

CN118378091BActive Publication Date: 2024-09-24ZHEJIANG LAB
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing technology lacks standard astronomical image photometric redshift data sets and baseline models, resulting in machine learning methods lagging behind in astronomical redshift estimation and being unable to give uncertain results, limiting the progress of astronomical scientific research.

Method used

A complete system was established, including data sets, evaluation indicators and baseline model methods for model training and evaluation. A joint modeling method of deep neural network and Bayesian neural network was used to construct a method for measuring astronomical optical redshift. Standard data sets and baseline models that enable accurate redshift estimates and uncertainty estimates.

Benefits of technology

It provides standardized data sets and baseline models, which enhances the automated processing capabilities and practical usability of machine learning models in photometric redshift estimation. It can effectively assist astronomers in processing large-scale sky survey data and support astronomical scientific research and phenomena. Discover.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118378091B
    Figure CN118378091B
Patent Text Reader

Abstract

A method and system for constructing a standard data set and baseline model for astronomical photometric redshift, the method comprising: collecting astronomical image data related to the photometric redshift task and performing data preprocessing; calculating the true value of the redshift and performing normalization processing, and converting the redshift data into a triple; selecting a deep model, modifying the model head to a parallel classification head and regression head according to the number of classifications, and randomly initializing the network parameters; calculating the classification loss and regression loss for the input samples, and using the gradient descent algorithm to update the neural network model parameters until the loss of the model on the training set no longer decreases; jointly modeling a deep neural network and a Bayesian neural network to achieve uncertainty estimation of the redshift; and finally deploying the trained model to complete the redshift estimation task. The present invention establishes a complete machine learning data set and baseline model method for the photometric redshift estimation problem, and promotes the application of machine learning methods in the astronomical photometric redshift problem.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

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

[0002] Determining the redshift and distance of billions of galaxies imaged in cosmic surveys is crucial for studying large-scale structures, but it is obviously not feasible to perform high-precision spectroscopic redshift measurements for each galaxy. Therefore, the most important thing for a survey mission is photometric redshift estimation (Photo-z). The Photo-z model uses multi-band galaxy photometry and uses template matching methods, machine learning methods, or a hybrid of the two to automatically generate the z-redshift value of the galaxy and its probability density function. However, these methods usually rely on "hand-designed" feature extraction and require a large amount of labeled data, which limits their use in practical situations.

[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, the current deep learning models in the field of 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 standard data sets, evaluation indicators and baseline model methods related to photometric redshift. On the other hand, there are some works that use machine learning methods to solve the problem of astronomical photometric redshift. The usual practice is to transform the redshift estimation problem into a multi-classification problem. However, this type of method has not established a complete machine learning system for photometric redshift. In addition, astronomers are also concerned about the uncertainty of redshift prediction results, and the above-mentioned neural network models cannot estimate uncertainty. Summary of the invention

[0004] The present invention aims to overcome the above-mentioned deficiencies in the prior art, provide a method and system for constructing a standard data set and baseline model for measuring astronomical photometric redshift, provide a standard astronomical image photometric redshift data set and baseline model method for the field of astronomical science research, and solve the defects of the existing astronomical redshift estimation technology, that is, the backward model of the machine learning method model and the inability to provide uncertain results, thereby promoting the application of advanced machine learning methods in astronomical science research, and serving as a powerful tool to support the discovery of astronomical phenomena.

[0005] In order to address the deficiencies of current technologies and promote the iterative progress of machine learning methods in the problem of photometric redshift estimation, the present invention establishes a complete system for the problem of astronomical photometric redshift estimation, including data sets, evaluation indicators and baseline model methods for model training and evaluation. In order to achieve uncertainty estimation of photometric redshift, the present invention also establishes a method for joint modeling of deep neural networks and Bayesian neural networks. The data set established by the present invention contains a sufficient number of images for model training and evaluation. The baseline model method proposed in the present invention can accurately estimate redshift and can be easily adapted to a variety of uncertainty estimation methods.

[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 method for constructing a standard data set and a baseline model for astronomical light redshift measurement, comprising the following steps:

[0008] S1, Collect survey data: Collect survey data related to photometric redshift estimation, collect data from publicly available astronomical projects, such as the SDSS project, and obtain survey data from different telescopes;

[0009] S2, data preprocessing: the collected redshift data is used to calculate the true value to be predicted based on the spectral information, i.e., the learning target of the machine learning model; the redshift data is composed of multiple channels, and reddening is applied to each channel to maintain the invariance of the features at the galactic latitude; the redshift data is cropped with a maintained aspect ratio and randomly flipped and rotated; the preprocessed redshift data is randomly divided into a training set and a validation set, and each sample is in the form of a <multi-channel image data, redshift value> tuple;

[0010] S3, learning target normalization: The redshift values ​​between different samples vary greatly. In order to achieve the normalization of the learning target, the maximum value M and the minimum value m of the redshift in step S2 are counted, and the interval [m, M] is evenly divided into several small intervals. For each sample, the small interval in which its redshift value is located is recorded and recorded as its classification label; the divided small intervals are normalized using the length of the small interval;

[0011] S4, build a neural network model: select a mainstream convolutional neural network or Transformer neural network as the backbone, build the classification head and regression head of the neural network model according to the number of cells in step S3, and initialize the neural network parameters;

[0012] S5, model training: using the redshift image data processed in step S3 and the corresponding category labels and regression targets, the neural network model constructed in step S4 is trained using a supervised learning method until the loss of the model on the training data set in step S2 no longer decreases, and the training is stopped;

[0013] S6, model deployment: deploy the model trained in step S5 to the terminal device. The terminal device receives new astronomical data and inputs it into the trained model to obtain a redshift prediction for the input sample.

[0014] Furthermore, in step S3, the redshift true value of sample j is recorded as t, the number of divided intervals is n, then the length of the small interval is d=(Mm) / n, and the small interval index of each sample (i.e., rounded, t / / N) is recorded as its classification label q i , i=1,2,...,N; normalize the regression target to avoid the scale difference between the true values ​​of different samples, that is, the regression target t j is (t %N), belongs to the interval (0, 1), and the label of sample j is (q i , t j );

[0015] Furthermore, in step S4, the output dimension of the classification head of the neural network model is N, the output dimension of the regression head is 1, the classification head and the regression head are connected in parallel to the backbone of the neural network, and share the output features of the backbone of the neural network as input;

[0016] Furthermore, in step S5, the classification loss of the neural network model training is ,in They represent the predicted probability and category label of the model for the i-th input sample, respectively, and N is the number of training samples;

[0017] Furthermore, in step S5, the regression loss of the neural network model training is ,in They represent the model’s regression prediction value and regression true value for the i-th input sample, respectively. represents the smoothL1 loss, N is the number of training samples; the total loss of model training is ;

[0018] Furthermore, in step S5, the constructed neural network backbone is connected to the Bayesian neural network, the neural network backbone is used as a feature extractor, and the Bayesian neural network is used as a lightweight uncertainty estimation head, so as to achieve uncertainty estimation of redshift;

[0019] Furthermore, in step S6, the trained neural network model predicts the redshift category of the input sample as c and regresses to r, and the redshift estimation result is p=(c+r)*d.

[0020] A second aspect of the present invention relates to a system for constructing a standard data set and a baseline model for measuring astronomical redshift, comprising:

[0021] Survey data collection module: used by the server to collect survey data related to photometric redshift estimation, collect data from publicly available astronomical projects, such as the SDSS project, and also obtain survey data from different telescopes; Morphological classification problem setting module: based on the common problems of astronomical morphological classification, set up multiple morphological classification questions and corresponding answers;

[0022] Data preprocessing module: preprocess the collected redshift data appropriately and divide them into training set and validation set;

[0023] Learning target normalization module: normalizes the redshift values ​​between different samples into classification labels and regression labels;

[0024] Neural network model building module: select the mainstream neural network as the network model to be trained, modify the classification head and regression head of the network model, and randomly initialize the model parameters;

[0025] Model training module: calculates classification loss and regression loss, and updates network parameters through gradient descent method;

[0026] Model deployment module: deploys the trained model to the terminal device. The terminal device receives new astronomical data and inputs it into the trained model to obtain the redshift prediction for the input sample, thereby completing the redshift prediction task.

[0027] A third aspect of the present invention relates to a device for constructing a standard data set and a baseline model for astronomical light redshift, 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, the device is used to implement a method for constructing a standard data set and a baseline model for astronomical light redshift.

[0028] 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 method for constructing a standard data set and a baseline model for astronomical redshift according to the present invention.

[0029] 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 problem of astronomical photometric redshift estimation, and realizes uncertainty estimation, thereby enhancing the processing capability of the neural network model for the problem of astronomical redshift estimation, and can effectively assist astronomers in processing large-scale sky survey data.

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

[0031] ① We have established a standardized dataset that can be used to study the training and performance of machine learning models for the photometric redshift estimation problem;

[0032] ②Evaluation indexes for photometric redshift estimation were established;

[0033] ③ The baseline model method and redshift estimation uncertainty of photometric redshift estimation were established. The method of the present invention has the advantages of high accuracy and ease of use. Compared with existing methods, it greatly enhances the automated processing capability and practical applicability of machine learning models in the problem of photometric redshift estimation, and can effectively assist astronomical researchers in processing large-scale sky survey data and support astronomical scientific research and astronomical discoveries. BRIEF DESCRIPTION OF THE DRAWINGS

[0034] 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.

[0035] Figure 1 A schematic diagram of a process for constructing a standard data set and a baseline model for astronomical redshift measurement provided by an embodiment of the present invention;

[0036] Figure 2 A statistical histogram of redshift values ​​of a training set for astronomical light redshift provided in an embodiment of the present invention;

[0037] Figure 3 A distribution diagram of the result of the second norm of the weight vector of the baseline model classifier for astronomical light redshift provided in one embodiment of the present invention;

[0038] Figure 4 A graph showing the training loss curve of a baseline model for astronomical redshift measurement provided by an embodiment of the present invention;

[0039] Figure 5 A diagram of an uncertainty estimation framework for astronomical light redshift according to an embodiment of the present invention;

[0040] Figure 6 It is a structural schematic diagram of the system of the present invention;

[0041] Figure 7 Schematic diagram of the device of the present invention. DETAILED DESCRIPTION

[0042] 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.

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

[0044] Example 1

[0045] Taking the SDSS project in the field of astronomy as an example, the photometric redshift data of astronomical images is in a 5-channel data format. For a flowchart of the construction method of the standard data set and baseline model for astronomical photometric redshift, see Figure 1 , taking image classification to achieve accurate estimation of redshift value as an example, the following steps are included:

[0046] S1, Collect survey data: Collect survey data related to photometric redshift estimation, collect data from publicly available astronomical projects, such as the SDSS project, and obtain survey data from different telescopes;

[0047] S2, data preprocessing: The collected redshift data is used to calculate the true value to be predicted based on the spectral information, i.e., the learning target of the machine learning model; the redshift data consists of multiple channels, and reddening is applied to each channel to maintain the invariance of the features at the galactic latitude; the redshift data is cropped with a maintained aspect ratio and randomly flipped and rotated; the preprocessed redshift data is randomly divided into a training set and a validation set, each sample is in the form of a <multi-channel image data, redshift value> binary, for the statistical histogram of the redshift value, please refer to Figure 2 ;

[0048] S3, learning target normalization: The redshift values ​​between different samples vary greatly. In order to achieve the normalization of the learning target, the maximum value M and the minimum value m of the redshift in step S2 are counted, and the interval [m, M] is evenly divided into several small intervals. For each sample, the small interval in which its redshift value is located is recorded and recorded as its classification label; the divided small intervals are normalized using the length of the small interval;

[0049] S4, build a neural network model: select a mainstream convolutional neural network or Transformer neural network as the backbone, build the classification head and regression head of the neural network model according to the number of cells in step S3, and initialize the neural network parameters;

[0050] S5, model training: using the redshift image data processed in step S3 and the corresponding category labels and regression targets, the neural network model constructed in step S4 is trained using supervised learning until the loss of the model on the training data set in step S2 no longer decreases, and then the training is stopped; the binary norm of the difference between the classifier weight category vectors of the trained model is as follows Figure 3 As shown;

[0051] S6, model deployment: deploy the model trained in step S5 to the terminal device. The terminal device receives new astronomical data and inputs it into the trained model to obtain a redshift prediction for the input sample.

[0052] Furthermore, in step S3, the redshift true value of sample j is recorded as t, the number of divided intervals is n, then the length of the small interval is d=(Mm) / n, and the small interval index of each sample (i.e., rounded, t / / N) is recorded as its classification label q i , i=1,2,...,N; normalize the regression target to avoid the scale difference between the true values ​​of different samples, that is, the regression target t j is (t %N), belongs to the interval (0, 1), and the label of sample j is (q i , t j ); Taking the SDSS survey data as an example, the redshift value distribution range of all samples is [0, 0.4], and is divided into 180 small intervals, then the length of each interval is d=0.4 / 180=0.00222. Now assume that the redshift value of a training sample is 0.15, then the sample is in the qth small interval, q=0.15 / / 0.00222=67, which is the classification label of the sample, and the regression value of the sample is t=(0.15%0.00222)=0.56756, which means that the normalization of the regression value is achieved;

[0053] Furthermore, in step S5, only classification loss can be used to train the neural network, and the median of the small interval corresponding to the predicted category of the input sample by the model is used as the redshift prediction value. The present invention experiments the relationship between setting different numbers of categories (i.e., the number of divided small intervals) and the redshift prediction evaluation indicators (delta-z, mad, eta), as shown in the following table. The results show that the method of the present invention is robust to the setting of the number of categories.

[0054]

[0055] Example 2

[0056] Taking the joint image classification and regression to achieve accurate estimation of redshift value as an example, this embodiment relates to a method for constructing a standard data set and a baseline model for measuring astronomical light redshift, including the following steps:

[0057] S1, Collect survey data: Collect survey data related to photometric redshift estimation, collect data from publicly available astronomical projects, such as the SDSS project, and obtain survey data from different telescopes;

[0058] S2, data preprocessing: the collected redshift data is used to calculate the true value to be predicted based on the spectral information, i.e., the learning target of the machine learning model; the redshift data is composed of multiple channels, and reddening is applied to each channel to maintain the invariance of the features at the galactic latitude; the redshift data is cropped with a maintained aspect ratio and randomly flipped and rotated; the preprocessed redshift data is randomly divided into a training set and a validation set, and each sample is in the form of a <multi-channel image data, redshift value> tuple;

[0059] S3, learning target normalization: The redshift values ​​between different samples vary greatly. In order to achieve the normalization of the learning target, the maximum value M and the minimum value m of the redshift in step S2 are counted, and the interval [m, M] is evenly divided into several small intervals. For each sample, the small interval in which its redshift value is located is recorded and recorded as its classification label; the divided small intervals are normalized using the length of the small interval;

[0060] S4, build a neural network model: select a mainstream convolutional neural network or Transformer neural network as the backbone, build the classification head and regression head of the neural network model according to the number of cells in step S3, and initialize the neural network parameters;

[0061] S5, model training: using the redshift image data processed in step S3 and the corresponding category labels and regression targets, the neural network model constructed in step S4 is trained using a supervised learning method until the loss of the model on the training data set in step S2 no longer decreases, and the training is stopped;

[0062] S6, model deployment: deploy the model trained in step S5 to the terminal device. The terminal device receives new astronomical data and inputs it into the trained model to obtain a redshift prediction for the input sample.

[0063] Furthermore, in step S3, the redshift true value of sample j is recorded as t, the number of divided intervals is n, then the length of the small interval is d=(Mm) / n, and the small interval index of each sample (i.e., rounded, t / / N) is recorded as its classification label q i , i=1,2,...,N; normalize the regression target to avoid the scale difference between the true values ​​of different samples, that is, the regression target t j is (t %N), belongs to the interval (0, 1), and the label of sample j is (q i , t j );

[0064] Furthermore, in step S4, the output dimension of the classification head of the neural network model is N, the output dimension of the regression head is 1, the classification head and the regression head are connected in parallel to the backbone of the neural network, and share the output features of the backbone of the neural network as input;

[0065] Furthermore, in step S5, the classification loss of the neural network model training is ,in They represent the predicted probability and category label of the model for the i-th input sample, respectively, and N is the number of training samples;

[0066] Furthermore, in step S5, the regression loss of the neural network model training is ,in They represent the model’s regression prediction value and regression true value for the i-th input sample, respectively. represents the smoothL1 loss, N is the number of training samples; the total loss of model training is , the loss curve of model training can be found in Figure 4 ;

[0067] In this embodiment, the present invention tests the relationship between the number of set categories and the three evaluation indicators of redshift estimation, as shown in the following table, indicating that joint image classification and regression can achieve redshift estimation more accurately.

[0068]

[0069] Example 3

[0070] Taking the uncertainty estimation of redshift as an example, this embodiment involves a method for constructing a standard data set and a baseline model for measuring astronomical redshift, see Figure 5 , including the following steps:

[0071] S1, Collect survey data: Collect survey data related to photometric redshift estimation, collect data from publicly available astronomical projects, such as the SDSS project, and obtain survey data from different telescopes;

[0072] S2, data preprocessing: the collected redshift data is used to calculate the true value to be predicted based on the spectral information, i.e., the learning target of the machine learning model; the redshift data is composed of multiple channels, and reddening is applied to each channel to maintain the invariance of the features at the galactic latitude; the redshift data is cropped with a maintained aspect ratio and randomly flipped and rotated; the preprocessed redshift data is randomly divided into a training set and a validation set, and each sample is in the form of a <multi-channel image data, redshift value> tuple;

[0073] S3, learning target normalization: The redshift values ​​between different samples vary greatly. In order to achieve the normalization of the learning target, the maximum value M and the minimum value m of the redshift in step S2 are counted, and the interval [m, M] is evenly divided into several small intervals. For each sample, the small interval in which its redshift value is located is recorded and recorded as its classification label; the divided small intervals are normalized using the length of the small interval;

[0074] S4, build a neural network model: select a mainstream convolutional neural network or Transformer neural network as the backbone, build the classification head and regression head of the neural network model according to the number of cells in step S3, and initialize the neural network parameters;

[0075] S5, model training: using the redshift image data processed in step S3 and the corresponding category labels and regression targets, the neural network model constructed in step S4 is trained using supervised learning until the loss of the model on the training data set in step S2 no longer decreases, and then the training is stopped;

[0076] S6, model deployment: deploy the model trained in step S5 to the terminal device. The terminal device receives new astronomical data and inputs it into the trained model to obtain the redshift prediction for the input sample.

[0077] Furthermore, in step S5, the constructed neural network backbone can be connected to the Bayesian neural network, the neural network backbone serves as a feature extractor, and the Bayesian neural network serves as a lightweight uncertainty estimation head, thereby realizing uncertainty estimation of redshift.

[0078] Example 4

[0079] Reference Figure 6 This embodiment relates to a system for constructing a standard data set and a baseline model for measuring astronomical light redshift, including:

[0080] Survey data collection module: used by the server to collect survey data related to photometric redshift estimation. Data can be collected from publicly available astronomical projects, such as the SDSS project, or survey data can be obtained from different telescopes. Morphological classification problem setting module: based on the commonly used problems of astronomical morphological classification, multiple morphological classification questions and corresponding answers are set up;

[0081] Data preprocessing module: preprocess the collected redshift data appropriately and divide them into training set and validation set;

[0082] Learning target normalization module: normalizes the redshift values ​​between different samples into classification labels and regression labels;

[0083] Neural network model building module: select the mainstream neural network as the network model to be trained, modify the classification head and regression head of the network model, and randomly initialize the model parameters;

[0084] Model training module: calculates classification loss and regression loss, and updates network parameters through gradient descent method;

[0085] Model deployment module: deploys the trained model to the terminal device. The terminal device receives new astronomical data and inputs it into the trained model to obtain the redshift prediction for the input sample, thereby completing the redshift prediction task.

[0086] Example 5

[0087] The present embodiment relates to a computer-readable storage medium having a program stored thereon. When the program is executed by a processor, the method for constructing a standard data set and a baseline model for astronomical light redshift of the present invention is implemented.

[0088] Example 6

[0089] Reference Figure 7 This embodiment relates to a device for constructing a standard data set and a baseline model for measuring astronomical light redshift, 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 data set and a baseline model for measuring astronomical light redshift of Example 1.

[0090] The present invention also provides Figure 7 The one shown corresponds to Figure 1 The schematic diagram of the standard data set and baseline model construction device for astronomical light redshift. At the hardware level, the device includes a processor, an internal bus, a network interface, a memory, and a non-volatile memory, and of course 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 The standard data set and baseline model construction method for astronomical image photometry redshift. 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.

[0091] For the improvement of a technology, it can be clearly distinguished whether it is a hardware improvement (for example, improvement of the circuit structure of diodes, transistors, switches, etc.) or a software improvement (improvement of the method flow). However, with the development of technology, many improvements of the method flow today can be regarded as direct improvements of the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that the improvement of a method flow cannot be implemented with a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system on a PLD by programming themselves, without having to ask chip manufacturers to design and make dedicated integrated circuit chips. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one kind of HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0092] The controller may be implemented in any suitable manner, for example, the controller may take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (e.g., software or firmware) executable by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller, examples of which include but are not limited to the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320, and the memory controller may also be implemented as part of the control logic of the memory. It is also known to those skilled in the art that, in addition to implementing the controller in a purely computer-readable program code manner, the controller may be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, such a controller may be considered as a hardware component, and the devices for implementing various functions included therein may also be considered as structures within the hardware component. Or even, the devices for implementing various functions may be considered as both software modules for implementing the method and structures within the hardware component.

[0093] The systems, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0094] For the convenience of description, the above device is described as being divided into various units according to their functions. Of course, when implementing the present invention, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0095] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0096] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0097] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0098] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0099] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0100] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0101] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.

[0102] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0103] It should be understood by those skilled in the art that the embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware aspects. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0104] The present invention may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific tasks or implement specific abstract data types. The present invention may also be practiced in distributed computing environments where tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0105] Each embodiment of the present invention is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0106] 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. A method for constructing a standard data set and baseline model for astronomical light redshift, characterized in that: The following steps are involved: S1, Collect survey data: Collect survey data related to photometric redshift estimation, collect data from publicly available astronomical projects or obtain survey data from different telescopes; S2, data preprocessing: the collected redshift data is used to calculate the true value to be predicted based on the spectral information, i.e., the learning target of the machine learning model; the redshift data is composed of multiple channels, and reddening is applied to each channel to maintain the invariance of the features at the galactic latitude; the redshift data is cropped with a maintained aspect ratio and randomly flipped and rotated; the preprocessed redshift data is randomly divided into a training set and a validation set, and each sample is in the form of a <multi-channel image data, redshift value> tuple; S3, learning target normalization: The redshift values ​​between different samples vary greatly. In order to achieve the normalization of the learning target, the maximum value M and the minimum value m of the redshift in step S2 are counted, and the interval [m, M] is evenly divided into several small intervals. For each sample, the small interval in which its redshift value is located is recorded and recorded as its classification label; the divided small intervals are normalized using the length of the small interval; Let the redshift true value of sample j be t, the number of divided intervals be n, then the length of the small interval is d=(Mm) / n, and the small interval index of each sample is recorded as its classification label q i , i=1,2,..., n; Normalize the regression target to avoid the scale difference between the true values ​​of different samples, that is, the regression target t j is (t %d), belongs to the interval (0, 1), and the label of sample j is (q i , t j ); S4, build a neural network model: select a mainstream convolutional neural network or Transformer neural network as the backbone, build the classification head and regression head of the neural network model according to the number of cells in step S3, and initialize the neural network parameters; S5, model training: using the redshift image data processed in step S3 and the corresponding category labels and regression targets, the neural network model constructed in step S4 is trained using a supervised learning method until the loss of the model on the training data set in step S2 no longer decreases, and the training is stopped; S6, model deployment: deploy the neural network model trained in step S5 to the terminal device. The terminal device receives new astronomical data and inputs it into the trained neural network model to obtain a redshift prediction for the input sample.

2. The method for constructing a standard data set and baseline model for astronomical redshift according to claim 1, characterized in that: In step S4, the output dimension of the classification head of the neural network model is N, and the output dimension of the regression head is 1. The classification head and the regression head are connected in parallel to the backbone of the neural network and share the output features of the neural network backbone as input.

3. The method for constructing a standard data set and baseline model for astronomical redshift according to claim 1, characterized in that: In step S5, the classification loss of the neural network model training is ,in Respectively represent the model for i The predicted probability and category label of the input samples, N is the number of training samples.

4. The method for constructing a standard data set and baseline model for astronomical redshift according to claim 1, characterized in that: In step S5, the regression loss of the neural network model training is ,in Respectively represent the model for i The regression prediction value and the regression true value of the input sample, represents smooth L1 loss, N is the number of training samples; The total loss of model training is .

5. The method for constructing a standard data set and baseline model for astronomical redshift according to claim 1, characterized in that: In step S5, the constructed neural network backbone is connected to the Bayesian neural network, the neural network backbone serves as a feature extractor, and the Bayesian neural network serves as a lightweight uncertainty estimation head to achieve uncertainty estimation of redshift.

6. The method for constructing a standard data set and baseline model for astronomical redshift according to claim 1, characterized in that: In step S6, the trained neural network model predicts the redshift category of the input sample as c and regresses to r, and the redshift estimation result is p=(c+r)*d.

7. A system for constructing a standard data set and baseline model for astronomical light redshift, characterized in that: include: Survey data collection module: used by the server to collect survey data related to photometric redshift estimation, collect data from publicly available astronomical projects, or obtain survey data from different telescopes; Morphological classification question establishment module: according to the common problems of astronomical morphological classification, multiple morphological classification questions and corresponding answers are established; Data preprocessing module: preprocess the collected redshift data appropriately and divide them into training set and validation set; Learning target normalization module: normalizes the redshift values ​​between different samples into classification labels and regression labels; The maximum value M and the minimum value m of the redshift in the statistical data preprocessing module are obtained, and the interval [m, M] is evenly divided into several small intervals. For each sample, the small interval in which its redshift value is located is recorded and recorded as its classification label; the divided small intervals are normalized using the length of the small interval; Let the redshift true value of sample j be t, the number of divided intervals be n, then the length of the small interval is d=(Mm) / n, and the small interval index of each sample is recorded as its classification label q i , i=1,2,..., n; Normalize the regression target to avoid the scale difference between the true values ​​of different samples, that is, the regression target t j is (t %d), belongs to the interval (0, 1), and the label of sample j is (q i , t j ); Neural network model building module: select a mainstream neural network as the network model to be trained, modify the classification head and regression head of the network model, and randomly initialize the model parameters; the output dimension of the classification head of the neural network model is N, and the output dimension of the regression head is 1. The classification head and the regression head are connected in parallel to the backbone of the neural network and share the output features of the neural network backbone as input; Model training module: calculates classification loss and regression loss, and updates network parameters through gradient descent method; Model deployment module: deploys the trained model to the terminal device. The terminal device receives new astronomical data and inputs it into the trained model to obtain the redshift prediction for the input sample, thereby completing the redshift prediction task.

8. A device for constructing a standard data set and baseline model for astronomical light redshift, characterized in that: The invention comprises a memory and one or more processors, wherein the memory stores executable codes, and when the one or more processors execute the executable codes, the method for constructing a standard data set and a baseline model for astronomical light redshift according to any one of claims 1 to 6 is implemented.

9. A computer-readable storage medium, characterized in that: A program is stored thereon, and when the program is executed by a processor, the method for constructing a standard data set and a baseline model for astronomical light redshift according to any one of claims 1 to 6 is implemented.