A feature extraction method, device, storage medium and electronic equipment

By using convolutional neural networks and region feature extractors to perform regional processing and multiple feature fusions on 3D astronomical images, the problem of insufficient global and local feature extraction in existing technologies is solved, thus improving the accuracy of astronomical target recognition.

CN117911712BActive Publication Date: 2026-11-24ZHEJIANG LAB
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410056442.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-01-15
Publication Date
2026-11-24
Estimated Expiration
2044-01-15

AI Technical Summary

Technical Problem

Existing technologies struggle to simultaneously extract global and hidden local features from large-size 3D astronomical images, resulting in low accuracy in astronomical target identification.

Method used

After initial feature extraction using a convolutional neural network, the feature map is divided into non-overlapping regions. Feature extraction and fusion are performed using a region feature extractor. This process is repeated until a preset number of times is reached. Feature extraction is then performed using an adaptive Fourier neural operator layer with a staggered window.

Benefits of technology

It improves the accuracy of astronomical target identification, and can extract both global and local features simultaneously, thus enhancing the ability to identify astronomical targets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117911712B_ABST
    Figure CN117911712B_ABST
Patent Text Reader

Abstract

The specification discloses a feature extraction method and device, a storage medium and an electronic device. A convolutional neural network in a feature extraction model can obtain first extracted features, i.e., a first feature map, of large-size spatio-temporal data. The first feature map is taken as a feature map to be extracted, the feature map to be extracted is divided into regions, and a regional feature extraction model is used to independently extract features of different regions to obtain local features, i.e., regional features. All regional features are fused to obtain a second feature map. The second feature map is taken as a new feature map to be extracted, and the above regional feature extraction and fusion process is repeated until a preset number of times is reached. By re-dividing regions and re-extracting features of the fused feature map, feature information of adjacent regions can be transmitted between different spatio-temporal positions, so that global features and hidden local features of the spatio-temporal data can be extracted, thereby improving the accuracy of astronomical target recognition.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This specification relates to the field of computers, and in particular to a feature extraction method, apparatus, storage medium, and electronic device. Background Technology

[0002] With the development of artificial intelligence (AI) technology, various models trained using AI are being applied across various fields, especially astronomy. Data related to time and space, such as planetary motion data and spectral data, can be termed spatiotemporal data. Spatiotemporal data can be acquired through various devices to identify astronomical targets. For example, a telescope collects and focuses light emitted or reflected by celestial bodies, and then a spectrometer connected to the telescope decomposes this light into spectral data of different wavelengths. This spectral data is processed to obtain a data cube, or three-dimensional image, formed in three-dimensional space with right ascension, declination, and frequency as coordinate axes. Each point in the data cube, or a volume element within the cube, corresponds to spectral data of a specific frequency at a specific location in the sky. This three-dimensional image is then input into a feature extraction model to obtain features related to the composition, motion, and physical properties of celestial bodies. Based on these features, the distribution of galaxies can be determined, and targets within galaxies can be identified, among other things.

[0003] Astronomical spatiotemporal data typically spans a large temporal and spatial range and has high dimensionality. This means the spatiotemporal data involves numerous data types and large numerical values, resulting in large data cubes and thus large 3D images. For large 3D images, existing feature extraction models struggle to simultaneously extract both global and hidden local features, leading to low accuracy in identifying targets in astronomical fields. For example, while Fourier transform-based global convolution can effectively extract global features from large 3D images, its ability to extract hidden local features is insufficient.

[0004] Based on this, this specification provides a feature extraction method. Summary of the Invention

[0005] This specification provides a feature extraction method, apparatus, storage medium, and electronic device to partially solve the aforementioned problems existing in the prior art.

[0006] The following technical solution is adopted in this specification:

[0007] This specification provides a feature extraction method, the method comprising:

[0008] Acquire three-dimensional images of spatiotemporal data;

[0009] The three-dimensional image is input into a convolutional neural network in a pre-trained feature extraction model to obtain the first feature map of the three-dimensional image output by the convolutional neural network.

[0010] The first feature map is used as the feature map to be extracted. According to the preset division rules, the feature map to be extracted is divided into several non-overlapping regions to obtain the first region.

[0011] The feature map to be extracted is input into the region feature extractor in the feature extraction model, and the region feature extractor outputs the region features of each first region in the feature map to be extracted.

[0012] The regional features of all the first regions are fused to obtain the second feature map, and the second feature map is used as the new feature map to be extracted. The feature extraction and fusion are continued until the preset number of fusions is reached to obtain the final feature. The final feature includes the local features and global features of the three-dimensional image.

[0013] Optionally, the method further includes:

[0014] Based on the final characteristics, astronomical target identification is performed.

[0015] Optionally, all regional features of the first region are integrated, specifically including:

[0016] The arrangement order of all first regions is determined according to the preset division rules;

[0017] According to the arrangement order, the regional features of all first regions are merged.

[0018] Optionally, the second feature map is used as a new feature map to be extracted, and features are extracted and fused again until a preset number of fusions is reached to obtain the final features, specifically including:

[0019] According to the preset division rules, the new feature map to be extracted is divided into several regions to obtain several second regions. The division point of each second region is different from the division point of the first region corresponding to the second region. The division point refers to the starting position of each region when dividing the feature map to be extracted into regions.

[0020] The new feature map to be extracted is input into the region feature extractor in the feature extraction model, and the region feature extractor outputs the region features of each second region in the new feature map to be extracted.

[0021] The features of all second regions are merged until a preset number of fusions is reached to obtain the final features.

[0022] Optionally, according to the preset partitioning rules, the new feature map to be extracted is divided into several regions to obtain several second regions, specifically including:

[0023] Determine the division points of each first region in the first feature map;

[0024] For each first region, according to the preset movement rules, the division point of the first region is moved to obtain the moved division point;

[0025] Based on the moved division points, the new feature map to be extracted is divided into several second regions.

[0026] Optionally, the region feature extractor includes a misaligned window adaptive Fourier neural operator layer, which includes a normalization layer, a spatial mixing layer, and a channel mixing layer.

[0027] Optionally, training the feature extraction model specifically includes:

[0028] Acquire several sample 3D images of the spatiotemporal data of the sample, and use them as the first sample 3D image;

[0029] A preset number of the first sample 3D images are labeled to obtain labels for the labeled first sample 3D images, wherein the labels include target recognition results, and the first sample 3D images corresponding to the labels are used as second sample 3D images.

[0030] The feature extraction model is pre-trained based on the three-dimensional image of the first sample to obtain the pre-trained feature extraction model.

[0031] The second sample 3D image is input into the pre-trained feature extraction model to obtain the predicted features of the second sample 3D image output by the pre-trained feature extraction model.

[0032] The predicted features are input into a target recognition network connected to the pre-trained feature extraction model to obtain the predicted recognition result of the predicted features output by the target recognition network.

[0033] The pre-trained feature extraction model and the target recognition network connected to the pre-trained feature extraction model are used as the model to be adjusted. The model to be adjusted is trained according to the predicted recognition results and the labels.

[0034] Optionally, the feature extraction model is pre-trained based on the three-dimensional image of the first sample to obtain a pre-trained feature extraction model, specifically including:

[0035] For each first sample 3D image, determine the image size of that first sample 3D image;

[0036] Based on the image size, several preset masking areas are determined in the first sample three-dimensional image and masked to obtain a third sample three-dimensional image, wherein the size of the masking areas is different and the feature value of the masked areas after masking is zero.

[0037] The third sample 3D image is input into the feature extraction model to obtain the predicted 3D image of the third sample 3D image output by the feature extraction model. The predicted 3D image includes the predicted feature value of the occluded region.

[0038] The feature extraction model is pre-trained based on the first sample 3D image and the predicted 3D image.

[0039] Optionally, the feature extraction model is pre-trained based on the first sample 3D image and the predicted 3D image, specifically including:

[0040] The loss is determined based on the feature values ​​of the occluded region in the first sample 3D image and the feature values ​​of the occluded region in the predicted 3D image;

[0041] The feature extraction model is pre-trained with the goal of minimizing the loss.

[0042] This specification provides a feature extraction apparatus, the apparatus comprising:

[0043] The 3D image acquisition module is used to acquire 3D images of spatiotemporal data;

[0044] The first feature map determination module is used to input the three-dimensional image into a convolutional neural network in a pre-trained feature extraction model to obtain the first feature map of the three-dimensional image output by the convolutional neural network.

[0045] The region segmentation module is used to take the first feature map as the feature map to be extracted, and divide the feature map to be extracted into several non-overlapping regions according to a preset segmentation rule to obtain the first region;

[0046] The feature extraction module is used to input the feature map to be extracted into the region feature extractor in the feature extraction model, and output the region features of each first region in the feature map to be extracted through the region feature extractor;

[0047] The fusion module is used to fuse the regional features of all the first regions to obtain a second feature map, and use the second feature map as a new feature map to be extracted, and continue to extract and fuse features until a preset number of fusions is reached to obtain the final features. The final features include the local features and global features of the three-dimensional image.

[0048] Optionally, the device further includes:

[0049] The identification module is used to identify astronomical targets based on the final features.

[0050] Optionally, the fusion module is specifically used to: determine the arrangement order of all first regions according to the preset division rules; and fuse the regional features of all first regions according to the arrangement order.

[0051] Optionally, the fusion module is specifically used to: divide the new feature map to be extracted into several regions according to the preset division rules to obtain several second regions, wherein the division point of each second region is different from the division point of the corresponding first region, and the division point refers to the starting position of each region when dividing the feature map to be extracted into regions; input the new feature map to be extracted into the region feature extractor in the feature extraction model, and output the region features of each second region in the new feature map to be extracted through the region feature extractor; fuse the region features of all second regions until a preset number of fusions is reached to obtain the final features.

[0052] Optionally, the fusion module is specifically used to: determine the division point of each first region in the first feature map; for each first region, move the division point of the first region according to a preset movement rule to obtain the moved division point; and divide the new feature map to be extracted according to the moved division point to obtain several second regions.

[0053] Optionally, the region feature extractor includes a misaligned window adaptive Fourier neural operator layer, which includes a normalization layer, a spatial mixing layer, and a channel mixing layer.

[0054] Optionally, the device further includes:

[0055] The training module is used to acquire several sample 3D images of the spatiotemporal data as first sample 3D images; to label a preset number of the first sample 3D images to obtain labels for the labeled first sample 3D images, wherein the labels include target recognition results; and to use the first sample 3D images corresponding to the labels as second sample 3D images; to pre-train a feature extraction model based on the first sample 3D images to obtain a pre-trained feature extraction model; to input the second sample 3D images into the pre-trained feature extraction model to obtain predicted features of the second sample 3D images output by the pre-trained feature extraction model; to input the predicted features into a target recognition network connected to the pre-trained feature extraction model to obtain the predicted recognition result of the predicted features output by the target recognition network; and to use the pre-trained feature extraction model and the target recognition network connected to the pre-trained feature extraction model as a model to be adjusted, and to adjust and train the model to be adjusted based on the predicted recognition result and the labels.

[0056] Optionally, the training module is specifically used to: determine the image size of each first sample 3D image; determine several preset occlusion regions in the first sample 3D image according to the image size, and occlude them to obtain a third sample 3D image, wherein the sizes of the occlusion regions are different, and the feature value of the occluded regions is zero; input the third sample 3D image into a feature extraction model to obtain a predicted 3D image of the third sample 3D image output by the feature extraction model, wherein the predicted 3D image includes the predicted feature values ​​of the occlusion regions; and pre-train the feature extraction model based on the first sample 3D image and the predicted 3D image.

[0057] Optionally, the training module is specifically used to determine a loss based on the feature values ​​of the occluded region in the first sample 3D image and the feature values ​​of the occluded region in the predicted 3D image; and to pre-train the feature extraction model with minimizing the loss as the training objective.

[0058] This specification provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described feature extraction method.

[0059] This specification provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the above-described feature extraction method.

[0060] The above-mentioned technical solutions adopted in this specification can achieve the following beneficial effects:

[0061] As can be seen from the feature extraction method provided in this specification, the convolutional neural network in the feature extraction model can obtain the initial features of large-scale spatiotemporal data, i.e., the first feature map. Using the first feature map as the feature map to be extracted, the feature map is divided into regions, and a regional feature extraction model is used to independently extract features from different regions, obtaining local features, i.e., regional features. All regional features are then fused to obtain the second feature map. The second feature map is used as the new feature map to be extracted, and the above regional feature extraction and fusion process is repeated until a preset number of iterations are reached. By re-dividing the fused feature map into regions and re-extracting features, the feature information of adjacent regions can propagate between different spatiotemporal locations, thereby extracting global features and hidden local features of the spatiotemporal data, improving the accuracy of astronomical target identification. Attached Figure Description

[0062] The accompanying drawings, which are included to provide a further understanding of this specification and form part of this specification, illustrate exemplary embodiments and are used to explain this specification, but do not constitute an undue limitation thereof. In the drawings:

[0063] Figure 1 This is a flowchart illustrating a feature extraction method provided in this specification;

[0064] Figure 2 This is a schematic diagram of the feature extraction model structure provided in this specification;

[0065] Figure 3 This is a diagram illustrating the area division provided in this manual;

[0066] Figure 4 This is a schematic diagram of the region feature extractor provided in this specification;

[0067] Figure 5 This is a structural schematic diagram of the spatial mixing layer provided in this specification;

[0068] Figure 6 This is a schematic diagram of a feature extraction device provided in this specification;

[0069] Figure 7 This specification provides a corresponding Figure 1 A schematic diagram of the structure of an electronic device. Detailed Implementation

[0070] To make the objectives, technical solutions, and advantages of this specification clearer, the technical solutions of this specification will be clearly and completely described below in conjunction with specific embodiments and corresponding drawings. Obviously, the described embodiments are only a part of the embodiments of this specification, and not all of them. Based on the embodiments in this specification, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this specification.

[0071] The technical solutions provided in the various embodiments of this specification are described in detail below with reference to the accompanying drawings.

[0072] Figure 1 This is a flowchart illustrating a feature extraction method provided in this specification, including the following steps:

[0073] S100: Acquire a three-dimensional image of the spatiotemporal data.

[0074] Target identification in the astronomical field is often referred to as astronomical source search or astronomical target identification. This process requires acquiring spatiotemporal data related to the object being identified, such as electromagnetic waves and light of different frequencies, using astronomical instruments like telescopes and spectrometers. Examples include optical telescopes, ultraviolet telescopes, and infrared telescopes. Optical telescopes are used to acquire the spectra of celestial objects, such as analyzing absorption and emission lines to understand their internal chemical composition, temperature, and density. Ultraviolet telescopes are used to study young stars and the interstellar medium in galaxies, while ultraviolet spectrometers can be used to explore star formation and evolution processes within galaxies.

[0075] Spatiotemporal data can be used to record observations or measurements at different spatial locations and points in time. For example, sky surveys collect vast amounts of temporal and spatial information, providing data for ground-based and space-based telescope surveys used to discover new celestial bodies, supernovae, and other objects. Stellar motion data describes the positions, orbits, and movements of planets in the solar system; this data is crucial for astronomers to predict astronomical events and calculate planetary positions. In astronomy, spatiotemporal data involves a wide variety of data types and a large number of channels, meaning it has high dimensionality. For example, an RGB (Red, Green, Blue, RGB) image has three channels: red, green, and blue, so the RGB image has three channels. Furthermore, spatiotemporal data has a large temporal and spatial span. To facilitate subsequent astronomical target identification based on spatiotemporal data, it can be first converted into an easily analyzable three-dimensional image. This involves creating a data cube in three-dimensional space using right ascension, declination, and frequency as coordinate axes. Based on this three-dimensional image, the characteristics of the spatiotemporal data are determined, and astronomical target identification is then performed based on these characteristics.

[0076] However, due to the high dimensionality and large temporal and spatial span of spatiotemporal data, the resulting 3D images are large in size. Extracting only the global features of this 3D image while ignoring local features, or vice versa, will reduce the accuracy of astronomical target recognition. Currently, it is difficult to simultaneously obtain both highly accurate global and local features. Therefore, this specification provides a feature extraction method. The execution entity of this specification can be a server that trains the feature extraction model, a server that has deployed the feature extraction model, or other electronic devices. This specification does not impose any restrictions; for ease of explanation, this specification uses a server as the execution entity.

[0077] To identify astronomical targets, it is necessary to first obtain the features of spatiotemporal data. Therefore, the server needs to first obtain a three-dimensional image of the spatiotemporal data. There are many methods for converting spatiotemporal data into a three-dimensional image, and they are relatively mature. This manual will not elaborate on them further.

[0078] S102: Input the three-dimensional image into the convolutional neural network in the pre-trained feature extraction model to obtain the first feature map of the three-dimensional image output by the convolutional neural network.

[0079] Figure 2 This is a schematic diagram of the feature extraction model structure provided in this specification, such as... Figure 2 As shown.

[0080] The feature extraction model includes a convolutional neural network and a region feature extractor. The server uses convolutional kernels to divide the 3D image obtained from spatiotemporal data into non-overlapping regions, and then applies the same linear mapping to the data in each region to achieve preliminary feature extraction of the 3D image. This 3D image is then input into the pre-trained convolutional neural network of the feature extraction model to obtain the first feature map of the 3D image output by the convolutional neural network.

[0081] This convolutional neural network can be used to increase or decrease the number of features, enabling subsequent astronomical target identification based on these features. If the number of features at each point in a 3D image is small, then the convolutional neural network is needed to increase the dimensionality of the features, allowing the feature extraction model to capture complex variable relationships. If the number of features at each point in a 3D image is large, then the convolutional neural network can be used to reduce the dimensionality of the features, extracting only the essential features of the 3D image, thereby reducing the computational complexity of the feature extraction model.

[0082] Furthermore, this convolutional neural network can reduce the length of the spatial and temporal dimensions. Specifically, each region of the segmented 3D image contains multiple points in space and time. After processing by this convolutional neural network, each region is mapped to a single point in space and time, thus reducing the length of the spatial and temporal dimensions. Reducing the length of the space-time dimension allows the feature extraction model to ignore local features that are not highly relevant to astronomical target identification, enabling the feature extraction model to operate more efficiently.

[0083] S104: Using the first feature map as the feature map to be extracted, the feature map to be extracted is divided into several non-overlapping regions according to a preset division rule to obtain the first region.

[0084] To obtain the global features and more subtle local features of the 3D image, the server uses the first feature map as the feature map to be extracted. According to a preset partitioning rule, the feature map to be extracted is divided into several non-overlapping regions, resulting in the first region. This preset partitioning rule can be based on the size of the feature map to be extracted, dividing it into several regions of equal size, with no overlap between regions. For example, a 4x4 two-dimensional feature map to be extracted can be divided into four 1x1 regions. Alternatively, several partitioning points can be determined in the feature map to be extracted, and partitioning can be performed based on these points. These partitioning points can be randomly determined or determined according to the size of the feature map to be extracted; this specification does not impose any restrictions on this. The preset partitioning rule can be set as needed; this specification does not impose any restrictions on this.

[0085] For example, Figure 3 This is a diagram illustrating the area division provided in this manual, such as... Figure 3 As shown.

[0086] The feature map to be extracted is a 10*10 feature map. The selected division points are (0,0), (3,0), (5,0), (7,0), (0,5), (3,5), (5,5), and (7,5). Therefore, the feature map to be extracted is divided into eight regions, and the region numbers are 1, 2, 3, 4, 5, 6, 7, and 8.

[0087] S106: Input the feature map to be extracted into the region feature extractor in the feature extraction model, and output the region features of each first region in the feature map to be extracted through the region feature extractor.

[0088] In one or more embodiments of this specification, the region feature extractor in the feature extraction model can be applied serially to each first region for region feature extraction, or it can be applied in parallel to all first regions for region feature extraction, thereby improving feature extraction efficiency.

[0089] S108: Fuse all regional features of the first region to obtain a second feature map, and use the second feature map as a new feature map to be extracted. Continue to extract and fuse features until a preset number of fusions is reached to obtain the final feature. The final feature includes the local features and global features of the three-dimensional image.

[0090] Because both global and local features are required, the server can fuse the regional features of all first regions to obtain a second feature map. Each feature extraction is performed within a local region, ensuring the extraction of fine local features and computational efficiency, but it cannot effectively capture global features. Therefore, this second feature map is used as a new feature map to be extracted, and the new feature map is re-divided. The re-divided region is different from the previously obtained region. Features from the re-divided new feature map are extracted and fused, repeating this process until a preset number of fusions is reached, resulting in the final feature map. The final feature map is the feature map of the spatiotemporal data obtained from the last fusion. For example, if the preset number of fusions is 300, the final feature map is the feature map obtained after the 300th fusion of regional features. Because the region division is different each time, the feature extractor can extract features from long distances and even globally; therefore, the final feature includes both local and global features of the 3D image.

[0091] During fusion, the server determines the arrangement order of all first regions according to a preset partitioning rule, and then fuses the regional features of all first regions based on this arrangement order. This arrangement order can be represented by region labels. Therefore, the region labels of all first regions are determined according to the preset partitioning rule, and the arrangement order of all first regions is determined based on these region labels. For example, if the feature map is two-dimensional, and the partitioning rule is to divide the feature map to be extracted into four equal parts, then the feature map to be extracted has four first regions, labeled 1, 2, 3, and 4. The order of these region labels is the arrangement order of all first regions, and the regional features of the corresponding regions are fused based on this order.

[0092] The requirement to fuse features in the correct order is crucial because during feature extraction, the region feature extractor extracts features independently for each region. The resulting region features only represent the features of that specific region. If the features are not fused in order, the fused feature map cannot be used to reconstruct the 3D image. For example, region 1 represents the cat's left eye, region 2 its right eye, region 3 its left leg, and region 4 its right leg. Without fusing according to these region labels, it may be impossible to reconstruct the cat in the 3D image from the fused feature map. Furthermore, 3D images also include the object's pose features. Without fusing in the correct order, even if the cat is reconstructed, its pose may not be accurately represented.

[0093] based on Figure 1 The feature extraction method shown uses a convolutional neural network in the feature extraction model to obtain the initial features of large-scale spatiotemporal data, i.e., the first feature map. The first feature map is used as the feature map to be extracted. The feature map is divided into regions, and a region feature extraction model is used to independently extract features from different regions, obtaining local features, i.e., region features. All region features are then fused to obtain the second feature map. The second feature map is used as the new feature map to be extracted, and the above region feature extraction and fusion process is repeated until a preset number of iterations are reached. By re-dividing the fused feature map into regions and re-extracting features, feature information from adjacent regions can propagate between different spatiotemporal locations, thereby extracting global features and hidden local features of the spatiotemporal data, improving the accuracy of astronomical target identification.

[0094] Once the final feature is obtained, the server can perform astronomical target identification based on it. This includes searching for features matching the final feature in a stored feature library, and then identifying the astronomical target based on the matching features and a preset correspondence. Alternatively, the feature extraction model can be connected to a target recognition network, and the final feature can be input into the target recognition network to obtain the recognition result of the final feature output by the target recognition network. This specification does not limit the method of astronomical target identification based on the final feature.

[0095] Regarding step S108, for the determined new feature map to be extracted, it needs to be divided. The server divides the new feature map into several regions according to a preset division rule, resulting in several second regions. The division point of each second region is different from the division point of the corresponding first region. This division point refers to the starting position of each region when dividing the feature map into regions. For example, if the division point of the first region with region number 1 is (0,0,0), then the first region with region number 1 is divided starting from (0,0,0).

[0096] When dividing the new feature map to be extracted, the server determines the division point of each first region in the first feature map. For each first region, the division point of the first region is moved according to a preset moving rule to obtain the moved division point. Based on the moved division point, the new feature map to be extracted is divided to obtain several second regions.

[0097] For example, assuming the first region is a two-dimensional region with size (m, n), the coordinates of the top-left vertex of the first region are (x, y), and the moving length of the dividing point is (Δx, Δy), then the position of the top-left vertex of the first region after the movement is (x + Δx, y + Δy), where...

[0098] Assuming the region is three-dimensional, the size of the first region is (m, n, k), the coordinates of the top-left vertex of the first region are (x, y, z), and the moving length of the dividing point is (Δx, Δy, Δz), then the position of the top-left corner of the first region after the movement is (x+Δx, y+Δy, z+Δz), where... The other dimensions are similar.

[0099] After re-dividing, the new feature map to be extracted is input into the region feature extractor in the feature extraction model. The region feature extractor outputs the region features of each second region in the new feature map to be extracted. The region features of all second regions are fused until the preset number of fusions is reached to obtain the final feature.

[0100] Since the dividing points of the first region are different before and after the movement, and there are other regions between the dividing points before and after the movement, to avoid missing features, the region between the dividing points before and after the movement is also defined as the second region, and the dividing point of the region between the dividing points before and after the movement is the dividing point before the movement. Because this region between the dividing points before and after the movement is the region obtained by moving the dividing point, this second region does not have a corresponding first region.

[0101] Figure 4 This is a schematic diagram of the region feature extractor provided in this specification, such as... Figure 4 As shown.

[0102] The region feature extractor includes a shifted-window adaptive fourier neural operator (SW-AFNO) layer, which allows the server to extract features from each region. The SW-AFNO layer comprises a normalization layer, a spatial mixing layer, and a channel mixing layer. A residual connection is added between the input of the region feature extractor and the output of the spatial mixing layer. The first normalization layer is connected to the spatial mixing layer, and a residual connection is added between the input of the second normalization layer and the output of the channel mixing layer. The normalization layer can be selected from instance normalization (IN), layer normalization (LN), group normalization (GN), etc. The normalization layer keeps the output within a certain range, making training more stable.

[0103] Figure 4 The simulation employs layer normalization as the normalization layer and an MLP as the channel mixing layer module. The MLP maps the features of each spatiotemporal location, and the feature vector of each spatiotemporal location can be considered as being composed of features from different channels. Therefore, this simulation realizes the combination of features from different channels, hence the name channel mixing layer.

[0104] Figure 5 This is a structural diagram of the spatial mixing layer provided in this specification, such as... Figure 5 As shown.

[0105] The spatial blending layer includes a Fast Fourier Transform (FFT), a Complex Multilayer Perceptron (MLP), a Softshrink activation function, and an Inverse Fast Fourier Transform (IFFT). The input and output of the spatial blending layer share a residual connection. The complex MLP has the same network architecture as the real MLP, except that all network parameters in this layer are complex numbers. Matrix multiplication and addition are therefore complex operations. There are two different implementation schemes for calculating complex softshrink: the first is to perform real-number softshrink calculations on the real and imaginary parts of the complex number independently; the second is to perform softshrink calculations on the modulus of the complex number while keeping the argument unchanged. The spatial blending layer can, for a given point in space, fuse features from surrounding points to infer the features of the next layer for that point, improving the accuracy of global features.

[0106] The Channel Mixing layer consists of an MLP that can independently map features to the feature vectors at each spatiotemporal point and fuse features from different channels.

[0107] Feature extraction for each region is performed using a staggered-window adaptive Fourier neural operator layer. The computational complexity of this layer is O(nlogn), where n is the region size, defined as the product of all its side lengths. This low computational complexity allows for larger regions, enabling the feature extraction model to better capture global features from a distance. For example, if the region is three-dimensional, setting its size to 8*8*8 results in an unfolded sequence length of 512. This is already the maximum length set by default for many models. For high-resolution images in astronomical fields, an 8*8*8 region is very localized.

[0108] Furthermore, this specification also demonstrates how stacking multiple network layers allows information between adjacent layers to propagate across different spatiotemporal locations, thereby extracting global features from 3D images. By partitioning the feature map, the local features of large 3D images are broken down into smaller blocks for processing, significantly reducing the computational memory requirements and enabling the feature extraction model to handle large 3D images.

[0109] This specification also provides a method for training a feature extraction model, with the server that trains the feature extraction model serving as the execution entity.

[0110] First, the server acquires several sample 3D images of the spatiotemporal data, which are designated as the first sample 3D images. Then, a predetermined number of these first sample 3D images are labeled to obtain labels for the labeled first sample 3D images. These labels include the target recognition result, and the first sample 3D images corresponding to these labels are designated as the second sample 3D images. Next, the feature extraction model is pre-trained based on these first sample 3D images to obtain a pre-trained feature extraction model. Finally, the second sample 3D image is input into the pre-trained feature extraction model to obtain the predicted features of the second sample 3D image output by the pre-trained feature extraction model.

[0111] Since features cannot be used as training targets, when adjusting and training the feature extraction model, it is necessary to combine it with actual business operations, namely astronomical target recognition, so as to adjust and train the feature extraction model according to the difference between the predicted recognition results and the labels. The server can input the predicted feature into the target recognition network connected to the pre-trained feature extraction model to obtain the predicted recognition result of the predicted feature output by the target recognition network. The pre-trained feature extraction model and the target recognition network connected to it are used as the model to be adjusted. Based on the predicted recognition result and the label, the model to be adjusted is trained. Adjusting and training the model to be adjusted simultaneously completes the adjustment and training of the feature extraction model and the training of the target recognition network.

[0112] In order for the feature extraction model to have the ability to extract features, the server pre-trains the feature extraction model.

[0113] Specifically, the server first determines the image size of each first sample 3D image. Then, based on the image size, it determines several preset occlusion regions within the first sample 3D image and performs occlusion to obtain a third sample 3D image. The sizes of these occlusion regions vary, and the feature value of the occluded regions is zero. Of course, the features of the occluded regions can also be set to other non-original feature values; this specification does not impose any restrictions on this. Feature values ​​are only one form of image data in the first sample 3D image. Image data is data used to express image features; therefore, the image data of the first sample 3D image can also be processed into other forms, such as feature vectors; this specification does not impose any restrictions on this.

[0114] Next, the third sample 3D image is input into the feature extraction model to obtain a predicted 3D image of the third sample 3D image output by the feature extraction model. This predicted 3D image includes the predicted feature values ​​of the occluded region. Finally, the feature extraction model is pre-trained based on the first sample 3D image and the predicted 3D image. The server can determine the loss based on the feature values ​​of the occluded region in the first sample 3D image and the feature values ​​of the occluded region in the predicted 3D image. The feature extraction model is pre-trained with minimizing this loss as the training objective.

[0115] The above describes one or more implementations of the methods described in this specification, based on Figure 1 The flowchart of the feature extraction method shown is illustrated. This manual also provides a corresponding feature extraction device, such as... Figure 6 As shown.

[0116] Figure 6 A schematic diagram of a feature extraction device provided in this specification includes:

[0117] The 3D image acquisition module 500 is used to acquire 3D images of spatiotemporal data.

[0118] The first feature map determination module 502 is used to input the three-dimensional image into a convolutional neural network in a pre-trained feature extraction model to obtain the first feature map of the three-dimensional image output by the convolutional neural network.

[0119] The region segmentation module 504 is used to take the first feature map as the feature map to be extracted, and divide the feature map to be extracted into several non-overlapping regions according to a preset segmentation rule to obtain the first region;

[0120] Feature extraction module 506 is used to input the feature map to be extracted into the region feature extractor in the feature extraction model, and output the region features of each first region in the feature map to be extracted through the region feature extractor;

[0121] The fusion module 508 is used to fuse the regional features of all the first regions to obtain a second feature map, and use the second feature map as a new feature map to be extracted, and continue to extract and fuse features until a preset number of fusions is reached to obtain the final features. The final features include the local features and global features of the three-dimensional image.

[0122] Optionally, the device further includes:

[0123] The identification module 510 is used to identify astronomical targets based on the final features.

[0124] Optionally, the fusion module 508 is specifically used to: determine the arrangement order of all first regions according to the preset division rules; and fuse the regional features of all first regions according to the arrangement order.

[0125] Optionally, the fusion module 508 is specifically used to: divide the new feature map to be extracted into several regions according to the preset division rules to obtain several second regions, wherein the division point of each second region is different from the division point of the corresponding first region, and the division point refers to the starting position of each region when dividing the feature map to be extracted into regions; input the new feature map to be extracted into the region feature extractor in the feature extraction model, and output the region features of each second region in the new feature map to be extracted through the region feature extractor; fuse the region features of all second regions until a preset number of fusions is reached to obtain the final feature.

[0126] Optionally, the fusion module 508 is specifically used to: determine the division point of each first region in the first feature map; for each first region, move the division point of the first region according to a preset movement rule to obtain the moved division point; and divide the new feature map to be extracted according to the moved division point to obtain several second regions.

[0127] Optionally, the region feature extractor includes a misaligned window adaptive Fourier neural operator layer, which includes a normalization layer, a spatial mixing layer, and a channel mixing layer.

[0128] Optionally, the device further includes:

[0129] The training module 512 is used to acquire several sample 3D images of the sample spatiotemporal data as first sample 3D images; to label a preset number of the first sample 3D images to obtain labels for the labeled first sample 3D images, wherein the labels include target recognition results; to use the first sample 3D images corresponding to the labels as second sample 3D images; to pre-train a feature extraction model based on the first sample 3D images to obtain a pre-trained feature extraction model; to input the second sample 3D images into the pre-trained feature extraction model to obtain predicted features of the second sample 3D images output by the pre-trained feature extraction model; to input the predicted features into a target recognition network connected to the pre-trained feature extraction model to obtain the predicted recognition result of the predicted features output by the target recognition network; and to use the pre-trained feature extraction model and the target recognition network connected to the pre-trained feature extraction model as a model to be adjusted, and to adjust and train the model to be adjusted based on the predicted recognition result and the labels.

[0130] Optionally, the training module 512 is specifically configured to: determine the image size of each first sample 3D image; determine several preset occlusion regions in the first sample 3D image according to the image size, and occlude them to obtain a third sample 3D image, wherein the sizes of the occlusion regions are different, and the feature value of the occluded regions is zero; input the third sample 3D image into a feature extraction model to obtain a predicted 3D image of the third sample 3D image output by the feature extraction model, wherein the predicted 3D image includes the predicted feature values ​​of the occlusion regions; and pre-train the feature extraction model based on the first sample 3D image and the predicted 3D image.

[0131] Optionally, the training module 512 is specifically used to determine a loss based on the feature values ​​of the occluded region in the first sample 3D image and the feature values ​​of the occluded region in the predicted 3D image; and to pre-train the feature extraction model with minimizing the loss as the training objective.

[0132] This specification provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described feature extraction method.

[0133] This specification also provides a computer-readable storage medium storing a computer program that can be used to execute the above-described... Figure 1 This provides a feature extraction method.

[0134] This instruction manual also provides Figure 7 One of the corresponding Figure 1 A schematic diagram of the structure of an electronic device. (e.g.) Figure 7 As shown, at the hardware level, this electronic device includes a processor, internal bus, network interface, memory, and non-volatile memory, and may also include other hardware required for business operations. The processor reads the corresponding computer program from the non-volatile memory into memory and then runs it to achieve the above. Figure 1 The feature extraction method described above.

[0135] Of course, in addition to software implementation, this specification does not exclude other implementation methods, such as logic devices or a combination of hardware and software. In other words, the execution subject of the following processing flow is not limited to each logic unit, but can also be hardware or logic devices.

[0136] In the 1990s, improvements to a technology could be clearly distinguished as either hardware improvements (e.g., improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the methodology). However, with technological advancements, many methodological improvements today can be considered direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved methodology into the hardware circuit. Therefore, it cannot be said that a methodological improvement cannot be implemented using hardware physical modules. For example, a Programmable Logic Device (PLD) (such as a Field Programmable Gate Array (FPGA)) is such an integrated circuit whose logic function is determined by the user programming the device. Designers can program and "integrate" a digital system onto a PLD themselves, without needing chip manufacturers to design and manufacture dedicated integrated circuit chips. Furthermore, nowadays, instead of manually manufacturing integrated circuit chips, this programming is mostly implemented using "logic compiler" software. Similar to the software compiler used in program development, the original code before compilation must be written in a specific programming language, called a Hardware Description Language (HDL). There are many HDLs, 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, and RHDL (Ruby Hardware Description Language). Currently, the most commonly used are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should understand that by simply performing some logic programming on the method flow using one of these hardware description languages ​​and programming it into an integrated circuit, the hardware circuit implementing the logical method flow can be easily obtained.

[0137] The controller can be implemented in any suitable manner. For example, it can take the form of a microprocessor or processor and a computer-readable medium storing computer-readable program code (e.g., software or firmware) executable by the (micro)processor, logic gates, switches, application-specific integrated circuits (ASICs), programmable logic controllers, and embedded microcontrollers. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicon Labs C8051F320. A memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art will also recognize that, in addition to implementing the controller in purely computer-readable program code form, the same functionality can be achieved by logically programming the method steps to make the controller take the form of logic gates, switches, application-specific integrated circuits, programmable logic controllers, and embedded microcontrollers. Therefore, such a controller can be considered a hardware component, and the means included therein for implementing various functions can also be considered as structures within the hardware component. Alternatively, the means for implementing various functions can be considered as both software modules implementing the method and structures within the hardware component.

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

[0139] For ease of description, the above devices are described in terms of function, divided into various units. Of course, in implementing this specification, the functions of each unit can be implemented in one or more software and / or hardware components.

[0140] Those skilled in the art will understand that embodiments of this specification can be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this specification may take the form of a computer program product embodied 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.

[0141] This specification is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this specification. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a machine for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0142] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0143] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

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

[0145] Memory may include non-persistent storage in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.

[0146] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, 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 technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0147] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0148] Those skilled in the art will understand that the embodiments of this specification can be provided as methods, systems, or computer program products. Therefore, this specification may take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this specification may take the form of a computer program product embodied 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.

[0149] This specification can be described in the general context of computer-executable instructions that are executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc., that perform a specific task or implement a specific abstract data type. This specification can also be practiced in distributed computing environments, where tasks are performed by remote processing devices connected via a communication network. In distributed computing environments, program modules can reside in local and remote computer storage media, including storage devices.

[0150] The various embodiments in this specification are described in a progressive manner. Similar or identical parts between embodiments can be referred to interchangeably. Each embodiment focuses on describing the differences from other embodiments. In particular, the system embodiments are basically similar to the method embodiments, so the description is relatively simple; relevant parts can be referred to the descriptions in the method embodiments.

[0151] The above description is merely an embodiment of this specification and is not intended to limit this specification. Various modifications and variations can be made to this specification by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this specification should be included within the scope of the claims of this specification.

Claims

1. A feature extraction method characterized by, The method includes: Acquire three-dimensional images of spatiotemporal data; The three-dimensional image is input into a convolutional neural network in a pre-trained feature extraction model to obtain the first feature map of the three-dimensional image output by the convolutional neural network. The first feature map is used as the feature map to be extracted. According to the preset division rules, the feature map to be extracted is divided into several non-overlapping regions to obtain the first region. The feature map to be extracted is input into the region feature extractor in the feature extraction model, and the region feature extractor outputs the region features of each first region in the feature map to be extracted. The features of all regions in the first region are fused to obtain a second feature map. The second feature map is then used as a new feature map to be extracted. The new feature map to be extracted is re-divided, and the features of the re-divided new feature map to be extracted are extracted and fused again until a preset number of fusions is reached to obtain the final features. The final features include the local features and global features of the three-dimensional image. The re-divided region has a different division point than the corresponding first region.

2. The method of claim 1, wherein, The method further includes: Based on the final characteristics, astronomical target identification is performed.

3. The method of claim 1, wherein, Integrating all regional characteristics of the first region, specifically including: The arrangement order of all first regions is determined according to the preset division rules; According to the arrangement order, the regional features of all first regions are merged.

4. The method of claim 1, wherein, The second feature map is used as a new feature map to be extracted. The new feature map is re-divided, and the features of the re-divided feature map are extracted and fused until a preset number of fusions is reached to obtain the final features. Specifically, this includes: According to the preset division rules, the new feature map to be extracted is divided into several regions to obtain several second regions. The division point of each second region is different from the division point of the first region corresponding to the second region. The division point refers to the starting position of each region when dividing the feature map to be extracted into regions. The new feature map to be extracted is input into the region feature extractor in the feature extraction model, and the region feature extractor outputs the region features of each second region in the new feature map to be extracted. The features of all second regions are merged until a preset number of fusions is reached to obtain the final features.

5. The method of claim 4, wherein, According to the preset partitioning rules, the new feature map to be extracted is divided into several regions, resulting in several second regions, specifically including: Determine the division points of each first region in the first feature map; For each first region, according to the preset movement rules, the division point of the first region is moved to obtain the moved division point; Based on the moved division points, the new feature map to be extracted is divided into several second regions.

6. The method of claim 1, wherein, The region feature extractor includes a misaligned window adaptive Fourier neural operator layer, which includes a normalization layer, a spatial mixing layer, and a channel mixing layer.

7. The method of claim 1, wherein, Training the feature extraction model specifically includes: Acquire several sample 3D images of the spatiotemporal data of the sample, and use them as the first sample 3D image; A preset number of the first sample 3D images are labeled to obtain labels for the labeled first sample 3D images, wherein the labels include target recognition results, and the first sample 3D images corresponding to the labels are used as second sample 3D images. The feature extraction model is pre-trained based on the three-dimensional image of the first sample to obtain the pre-trained feature extraction model. The second sample 3D image is input into the pre-trained feature extraction model to obtain the predicted features of the second sample 3D image output by the pre-trained feature extraction model. The predicted features are input into a target recognition network connected to the pre-trained feature extraction model to obtain the predicted recognition result of the predicted features output by the target recognition network. The pre-trained feature extraction model and the target recognition network connected to the pre-trained feature extraction model are used as the model to be adjusted. The model to be adjusted is trained according to the predicted recognition results and the labels.

8. The method of claim 7, wherein, The feature extraction model is pre-trained based on the first sample 3D image to obtain the pre-trained feature extraction model, which specifically includes: For each first sample 3D image, determine the image size of that first sample 3D image; Based on the image size, several preset masking areas are determined in the first sample three-dimensional image and masked to obtain a third sample three-dimensional image, wherein the size of the masking areas is different and the feature value of the masked areas after masking is zero. The third sample 3D image is input into the feature extraction model to obtain the predicted 3D image of the third sample 3D image output by the feature extraction model. The predicted 3D image includes the predicted feature value of the occluded region. The feature extraction model is pre-trained based on the first sample 3D image and the predicted 3D image.

9. A computer-readable storage medium, characterized in that, The storage medium stores a computer program, which, when executed by a processor, implements the method described in any one of claims 1 to 8.

10. An electronic device comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the method described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Crack automatic delineation method based on multi-scale feature fusion deep learning

    CN108710919A

  • Image processing method and device, computer equipment and storage medium

    CN112257728A