Image feature recognition method and system, electronic equipment and storage medium

The dome features are extracted through the effective squeeze stimulation attention module and the receptive field enhancement module in the deep learning model, which solves the problems of difficulty and low efficiency in dome identification in the existing technology, and achieves accurate detection and efficient identification of lunar domes.

CN118736345APending Publication Date: 2024-10-01田雲翔 +2

Patent Information

Application Number
CN202410724748.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

Existing dome detection algorithms mainly rely on manual or semi-automatic algorithms based on edge detection and area segmentation, which makes dome identification difficult, low in detection efficiency and requires a large amount of prior knowledge, making it difficult to accurately identify the special morphological characteristics of the lunar dome.

Method used

By obtaining the original data set related to the lunar dome for preprocessing, a training set and a test set are formed, and the effective squeeze incentive attention module and receptive field enhancement module in the deep learning model are used for feature extraction, dome feature map extraction, and training Deep learning model is used to improve its expression ability and robustness to achieve accurate detection of domes.

Benefits of technology

It achieves accurate determination of dome position, improves detection efficiency, reduces the number of model parameters without sacrificing performance, extracts rich dome features, and enhances the generalization ability and robustness of the model.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118736345A_ABST
    Figure CN118736345A_ABST
Patent Text Reader

Abstract

The invention discloses an image feature recognition method and system, electronic equipment and a storage medium, and the method comprises the steps: obtaining an original data set which is a data set related to moon dome; preprocessing the original data set to obtain a training set and a test set; inputting the training set into a preset deep learning model so as to perform feature extraction on the training set through an effective extrusion incentive attention module and a receptive field enhancement module in the deep learning model to obtain a dome feature map; training a deep learning model according to the dome feature map to obtain a pre-trained deep learning model; and inputting the test set into the trained deep learning model for dome recognition, and outputting target dome information. According to the embodiment of the invention, the method can accurately determine the position of the dome, achieves the precise detection of the dome, and improves the detection efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and more particularly to an image feature recognition method, system, electronic device and storage medium. Background Art

[0002] Domes are one of the important volcanic geological features on the lunar surface. Studying lunar volcanic geological features is of great scientific significance for in-depth understanding of the geological evolution history of the moon. It not only helps to understand the formation and evolution of lunar landforms, but also helps to analyze the age and mineral element content of lunar soil. Domes usually appear on the lunar surface, showing irregular circular protrusions with morphological characteristics such as low slope and low height. In recent years, deep learning technology has developed rapidly and has been applied to various fields, such as the identification of lunar impact craters. However, due to the special morphological characteristics of lunar domes, they are still mainly determined by manual observation and analysis. In related technologies, domes are usually identified by using contours in dome images to form a closed curve, and then the impact craters and irregular closed curves are removed to identify the dome.

[0003] Although the research on dome recognition has achieved certain results, the currently known dome detection algorithms are all manual or semi-automatic algorithms based on edge detection and region segmentation. Since the lunar dome usually has special morphological characteristics such as small diameter, low height, and small slope, it is difficult to identify the dome, the detection efficiency is low, the recognition process is complicated, and a lot of prior knowledge is required. Summary of the invention

[0004] The embodiments of the present application provide an image feature recognition method, system, electronic device and storage medium, which can accurately determine the position of the dome, achieve precise detection of the dome, and improve detection efficiency.

[0005] In a first aspect, an embodiment of the present application provides an image feature recognition method, the method comprising:

[0006] Acquire an original data set, wherein the original data set is a data set related to the lunar dome;

[0007] Performing preprocessing operations on the original data set to obtain a training set and a test set;

[0008] Inputting the training set into a preset deep learning model, so as to extract features of the training set through an effective squeeze-stimulated attention module and a receptive field enhancement module in the deep learning model, and obtain a dome feature map;

[0009] Training the deep learning model according to the dome feature map to obtain a pre-trained deep learning model;

[0010] The test set is input into the trained deep learning model for dome recognition, and the target dome information is output.

[0011] The image feature recognition method provided by the embodiment of the present application has at least the following beneficial effects: first, an original data set related to the lunar dome is obtained, and then a preprocessing operation is performed on the original data set to mark and enhance the dome position in the original data set to obtain a training set and a test set, which is convenient for the subsequent training of the deep learning model. Then, the training set is input into a preset deep learning model, so that the effective squeezing and stimulating attention module and the receptive field enhancement module in the deep learning model cooperate with each other to extract features from the training set, and the feature expression in the training set is enhanced by the effective squeezing and stimulating attention module, and the multi-scale features of the image in the training set are captured by the receptive field enhancement module, so that the number of parameters of the model can be reduced without sacrificing performance, and rich dome features are extracted to achieve accurate extraction of dome features. Then, the deep learning model is trained according to the dome feature map to obtain a pre-trained deep learning model, thereby improving the expression ability of the deep learning model, so that the deep learning model has good robustness and generalization. Finally, the test set is input into the trained deep learning model for dome recognition, and the target dome information is output, so that the dome position can be accurately determined, the dome can be accurately detected, and the dome detection efficiency can be improved.

[0012] In some embodiments, the original data set is obtained by the following steps:

[0013] Acquire digital elevation model data and dome longitude and latitude coordinates, wherein the dome longitude and latitude coordinates are used to characterize the spatial range of the dome on the moon;

[0014] The digital elevation model data is clipped according to the dome longitude and latitude coordinates to obtain an original data set.

[0015] In some embodiments, the preprocessing operation on the original data set to obtain a training set and a test set includes:

[0016] Rendering the original data set by using a preset geographic information system software;

[0017] Performing object recognition on the rendered original data set to obtain an original dome position, and marking the original dome position to obtain a dome identifier;

[0018] The original data set after position annotation is subjected to data augmentation to obtain training set and test set.

[0019] In some embodiments, the inputting the training set into a preset deep learning model to extract features from the training set through an effective squeeze-stimulated attention module and a receptive field enhancement module in the deep learning model to obtain a dome feature map includes:

[0020] Inputting the training set into a preset deep learning model so that the high-efficiency layer aggregation network layer in the deep learning model performs preliminary feature extraction on the images in the training set and outputs an original feature map;

[0021] Inputting the original feature map into the effective squeeze incentive attention module for feature fusion, and outputting a feature fusion map;

[0022] The feature fusion map is characterized by the receptive field enhancement module to obtain a dome feature map.

[0023] In some embodiments, the step of inputting the original feature map into the effective squeeze incentive attention module for feature fusion and outputting a feature fusion map comprises:

[0024] Inputting the original feature map into the global average pooling layer in the effective squeeze incentive attention module, so as to compress the spatial dimension information of the original feature map through the global average pooling layer to obtain a channel descriptor, wherein the channel descriptor is used to characterize the global importance of each channel;

[0025] Performing convolution calculation on the original feature map to obtain a convolution feature map;

[0026] Obtaining a connection weight of a fully connected layer in the effective squeeze incentive attention module, and determining an importance weight of each channel in the effective squeeze incentive attention module according to the channel descriptor, the convolutional feature map, and the connection weight;

[0027] Dynamically adjusting the original feature map according to the importance weight to obtain a refined feature map;

[0028] The refined feature map and the original feature map are connected to obtain a feature fusion map.

[0029] In some embodiments, the receptive field enhancement module includes a first branch, a second branch, a third branch, a fourth branch and a multi-branch average pooling layer; the feature expression of the feature fusion map by the receptive field enhancement module to obtain the dome feature map includes:

[0030] Inputting the feature fusion map into the first branch, and outputting first feature information;

[0031] Inputting the feature fusion map into the second branch, so that the second branch performs convolution on the feature fusion map according to a preset first dilation rate and outputs second feature information;

[0032] Inputting the feature fusion map into the third branch, so that the third branch performs convolution on the feature fusion map according to a preset second dilation rate and outputs third feature information;

[0033] Inputting the feature fusion map into the fourth branch, so that the fourth branch performs convolution on the feature fusion map according to a preset third dilation rate and outputs fourth feature information;

[0034] Performing a weighted operation on the first feature information, the second feature information, the third feature information, and the fourth feature information through the multi-branch average pooling layer to obtain a dome feature map;

[0035] Among them, the first expansion rate, the second expansion rate, and the third expansion rate increase successively.

[0036] In some embodiments, training the deep learning model according to the dome feature map to obtain a pre-trained deep learning model includes:

[0037] Determine a prediction box according to the dome feature map, and determine a closed box set and a true box according to the dome identifier in the original data set, wherein the closed box set is used to represent a set of bounding boxes surrounding the dome identifier;

[0038] Determine the predicted coordinates of the center point of the predicted frame according to the predicted frame, and determine the real coordinates of the center point of the real frame according to the real frame;

[0039] Determine a minimum enclosing frame in the enclosing frame set, and determine an intersection-over-union ratio of an overlapping area between the predicted frame and the true frame;

[0040] Determine a bounding box loss function according to the predicted coordinates, the true coordinates, the size of the minimum enclosing box, and the intersection-over-union ratio;

[0041] Determining a gradient gain value according to a preset hyperparameter of a bounding box outlier, a preset hyperparameter of a bounding box size weight, and a preset hyperparameter of a bounding box offset weight, wherein the hyperparameter of the bounding box outlier is used to control the focusing degree of the intersection-over-union weight, the hyperparameter of the bounding box size weight is used to control the focusing degree of the bounding box size weight, and the hyperparameter of the bounding box offset weight is used to control the focusing degree of the bounding box offset weight;

[0042] Adjust the bounding box loss function according to the gradient gain value to obtain a target loss function;

[0043] The deep learning model is trained based on the target loss function to obtain a pre-trained deep learning model.

[0044] In a second aspect, an embodiment of the present application further provides an image feature recognition system, the system comprising:

[0045] A data acquisition module, used to acquire an original data set, wherein the original data set is a data set related to the lunar dome;

[0046] A preprocessing module is used to perform preprocessing operations on the original data set to obtain a training set and a test set;

[0047] A feature extraction module, used for inputting the training set into a preset deep learning model, so as to extract features from the training set through an effective squeeze-stimulated attention module and a receptive field enhancement module in the deep learning model, and obtain a dome feature map;

[0048] A model training module, used for training the deep learning model according to the dome feature map to obtain a pre-trained deep learning model;

[0049] The dome recognition module is used to input the test set into the trained deep learning model for dome recognition and output the target dome information.

[0050] In a third aspect, an embodiment of the present application further provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the image feature recognition method as described in the first aspect is implemented.

[0051] In a fourth aspect, an embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the image feature recognition method as described in the first aspect.

[0052] Other features and advantages of the present application will be described in the following description, and partly become apparent from the description, or understood by practicing the present application. The purpose and other advantages of the present application can be realized and obtained through the structures particularly pointed out in the description and the drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] The accompanying drawings are used to provide further understanding of the technical solution of the present application and constitute a part of the specification. Together with the examples of the present application, they are used to explain the technical solution of the present application and do not constitute a limitation on the technical solution of the present application.

[0054] Figure 1 is a flowchart of a specific method of the image feature recognition method provided by an embodiment of the present application;

[0055] Figure 2 This is a specific flow chart for obtaining an original data set provided in an embodiment of the present application;

[0056] Figure 3 is a specific flow chart of step S102 provided in an embodiment of the present application;

[0057] Figure 4 is a specific flow chart of step S103 provided in an embodiment of the present application;

[0058] Figure 5 is a specific flow chart of step S402 provided in an embodiment of the present application;

[0059] Figure 6 is a specific flow chart of step S403 provided in an embodiment of the present application;

[0060] Figure 7 is a specific flow chart of step S104 provided in an embodiment of the present application;

[0061] Figure 8 is a structural schematic diagram of an image feature recognition system provided in an embodiment of the present application;

[0062] Fig. 9 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0063] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0064] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0065] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0066] An image feature recognition method provided in an embodiment of the present application can be applied to a terminal, can be applied to a server, and can also be software running in a terminal or a server. In some embodiments, the terminal can be a smart phone, a tablet computer, a laptop computer, a desktop computer, or a smart watch, etc.; the server can be configured as an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDNs), and big data and artificial intelligence platforms; the software can be an application that implements the above method, etc., but is not limited to the above forms.

[0067] Embodiments of the present application can be used in numerous general or special computer system environments or configurations. For example: personal computers, server computers, handheld or portable devices, tablet devices, multiprocessor systems, microprocessor-based systems, set-top boxes, programmable consumer computer devices, network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices, etc. The present application can 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 application can also be practiced in distributed computing environments, in which tasks are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules can be located in local and remote computer storage media including storage devices.

[0068] Domes are one of the important volcanic geological features on the lunar surface. Studying lunar volcanic geological features is of great scientific significance for in-depth understanding of the geological evolution history of the moon. It not only helps to understand the formation and evolution of lunar landforms, but also helps to analyze the age and mineral element content of lunar soil. Domes usually appear on the lunar surface, showing irregular circular protrusions with morphological characteristics such as low slope and low height. In recent years, deep learning technology has developed rapidly and has been applied to various fields, such as the identification of lunar impact craters. However, due to the special morphological characteristics of lunar domes, they are still mainly determined by manual observation and analysis. In related technologies, domes are usually identified by using contours in dome images to form a closed curve, and then the impact craters and irregular closed curves are removed to identify the dome.

[0069] Although the research on dome recognition has achieved certain results, the currently known dome detection algorithms are all manual or semi-automatic algorithms based on edge detection and region segmentation. Since the lunar dome usually has special morphological characteristics such as small diameter, low height, and small slope, it is difficult to identify the dome, the detection efficiency is low, the recognition process is complicated, and a lot of prior knowledge is required.

[0070] In order to solve the above problems, the embodiments of the present application provide an image feature recognition method, system, electronic device and storage medium. First, an original data set related to the lunar dome is obtained, and then a preprocessing operation is performed on the original data set to mark and enhance the dome position in the original data set to obtain a training set and a test set, which is convenient for subsequent training of a deep learning model. After that, the training set is input into a preset deep learning model, so that the effective squeezing and stimulating attention module and the receptive field enhancement module in the deep learning model cooperate with each other to extract features from the training set, and the feature expression in the training set is enhanced by the effective squeezing and stimulating attention module. The multi-scale features of the images in the training set are captured through the receptive field enhancement module, so that the number of model parameters can be reduced without sacrificing performance, and rich dome features can be extracted to achieve accurate extraction of dome features. Afterwards, the deep learning model is trained according to the dome feature map to obtain a pre-trained deep learning model, thereby improving the expressive power of the deep learning model and making the deep learning model have better robustness and generalization. Finally, the test set is input into the trained deep learning model for dome recognition, and the target dome information is output, so that the dome position can be accurately determined, the dome can be accurately detected, and the detection efficiency of the dome can be improved.

[0071] Reference Figure 1 , Figure 1 1 is a flowchart of a specific method of the image feature recognition method provided in an embodiment of the present application. In some embodiments, the image feature recognition method includes but is not limited to steps S101 to S105.

[0072] Step S101, obtaining an original data set.

[0073] It should be noted that the original dataset is related to the lunar dome.

[0074] In some embodiments, a dataset related to the lunar dome is obtained from a professional Geographic Information System (GIS) data provider, a geographic survey agency, or a public dataset, and the dataset is cropped to obtain an original dataset to facilitate subsequent analysis of the dome based on the original dataset.

[0075] Step S102, preprocessing the original data set to obtain a training set and a test set.

[0076] In some embodiments, the original data set is rendered and annotated to obtain a training set and a test set, so that the original data set can be displayed more intuitively, and the precise annotation of the dome position can be achieved. The position and range of the dome can be accurately located, providing basic data for subsequent analysis and research.

[0077] Step S103: input the training set into a preset deep learning model to extract features of the training set through the effective squeeze-stimulated attention module and the receptive field enhancement module in the deep learning model to obtain a dome feature map.

[0078] In some embodiments, in the embodiments of the present application, an effective squeeze-and-excitation attention module (ESE) is introduced into the backbone network of the deep learning model, and a receptive field enhancement module (RFE) is introduced into the SPP (Spatial Pyramid Pooling) CSP (Cross Stage Partial Network) layer. Specifically, the training set is input into a preset deep learning model, so that the training set is feature extracted by the effective squeeze-and-excitation attention module and the receptive field enhancement module in the deep learning model, so that the features of the images in the training set can be accurately extracted, and the local details and global context information of the image can be captured simultaneously by the effective squeeze-and-excitation attention module to obtain a dome feature map.

[0079] It should be noted that the deep learning model in the embodiment of the present application is a model related to the YOLOv7 network.

[0080] Step S104: training a deep learning model according to the dome feature map to obtain a pre-trained deep learning model.

[0081] In some embodiments, a deep learning model is trained based on the dome feature map so that the deep learning model can adaptively focus on key information in the image, thereby improving the model's generalization ability for different types of inputs, and can reduce the overfitting of the model while improving the model's ability to handle complex scenes, thereby obtaining a pre-trained deep learning model.

[0082] Step S105: input the test set into the trained deep learning model for dome recognition, and output the target dome information.

[0083] In some embodiments, the test set is input into the trained deep learning model for dome recognition, so that the trained deep learning model can accurately extract the dome features in the test set image, output the target dome information, improve the accuracy of feature extraction, achieve accurate detection of the dome, and improve the detection efficiency of the dome.

[0084] Reference Figure 2 , Figure 2 is a specific flow chart for obtaining an original data set provided in an embodiment of the present application. In some embodiments, the method includes but is not limited to step S201 and step S202.

[0085] Step S201, obtaining digital elevation model data and dome longitude and latitude coordinates.

[0086] It should be noted that the dome latitude and longitude coordinates are used to characterize the spatial extent of the dome on the moon.

[0087] Step S202, clipping the digital elevation model data according to the dome longitude and latitude coordinates to obtain an original data set.

[0088] In steps S201 to S202 of some embodiments, the embodiments of the present application can obtain digital elevation model (DEM) data and dome longitude and latitude coordinates, that is, the spatial range of the dome on the lunar surface, from a professional Geographic Information System (GIS) data provider, a geographic survey agency or a public data set, and then determine the required dome range based on the dome longitude and latitude coordinates, where the range can be confirmed by GIS software or an online map tool. Thereafter, the digital elevation model data is clipped according to the required dome range to obtain the original data set, so that the original data set of the dome data can be successfully segmented based on the DEM data, which facilitates the subsequent analysis of the dome based on the original data set.

[0089] It should be noted that after acquiring the digital elevation model data, the digital elevation model data can also be calibrated, noise removed, and other operations performed to ensure data quality and accuracy.

[0090] Reference Figure 3 , Figure 3 1 is a specific flow chart of step S102 provided in an embodiment of the present application. In some embodiments, step S102 specifically includes but is not limited to step S301 and step S303.

[0091] Step S301, rendering the original data set by using preset geographic information system software.

[0092] Step S302: performing object recognition on the rendered original data set to obtain the original dome position, and marking the original dome position to obtain the dome identifier.

[0093] Step S303, performing data enhancement operation on the original data set after position annotation to obtain a training set and a test set.

[0094] In steps S301 to S303 of some embodiments, during the process of preprocessing the original data set, it is necessary to render and annotate the original data set. The specific preprocessing process is described below.

[0095] In some embodiments, first, the original data set obtained by segmentation is rendered by a preset geographic information system software, so as to improve the visualization effect of the original data set. The rendered data can intuitively display information such as terrain undulations and landform features, which is helpful for preliminary observation and analysis of the terrain and can more intuitively display the original data set. Then, the rendered original data set is subjected to object recognition to determine the original dome position in the original data set and the exact position of the dome on the image in the data set, so as to facilitate the subsequent accurate identification of the dome position. The original dome position is marked to obtain the dome identifier, so as to achieve accurate marking of the dome position, and the position and range of the dome can be accurately located, providing basic data for subsequent analysis and research. Finally, the original data set after position marking is subjected to data enhancement operation. Specifically, the embodiment of the present application enhances the data set by operations such as rotation, cropping, scaling, translation and color conversion, so as to increase the diversity and richness of the data set. Then, the image format in the enhanced data set is converted into the required format, for example, a TIFF (Tag Image File Format) format image is converted into a JPEG (Joint Photographic Experts Group, image file format), convert the data label Json format of the dome logo into YOLO (You Only Look Once) format, etc., to obtain the training set and test set, which improves the generalization ability and robustness of the model, and the training set and test set can be used to train and evaluate the performance of the deep learning model, further improving the accuracy and reliability of the model.

[0096] Reference Figure 4 , Figure 4 401 and 403. FIG. 402 is a specific flow chart of step S103 provided in an embodiment of the present application. In some embodiments, step S103 specifically includes but is not limited to step S401 and step S403.

[0097] Step S401, input the training set into a preset deep learning model, so that the high-efficiency layer aggregation network layer in the deep learning model performs preliminary feature extraction on the images in the training set and outputs the original feature map.

[0098] In some embodiments, the deep learning model includes a backbone network, a neck network and a head prediction network. In the process of extracting features from a training set, the images of the training set are first input into the backbone network of the deep learning model. The backbone network in the embodiment of the present application includes multiple ELAN (Efficient Layer-wise Adaptive Network) layers, and preliminary feature extraction is performed on the images in the training set through the efficient layer aggregation network layer.

[0099] Step S402, input the original feature map into the effective squeeze incentive attention module for feature fusion, and output the feature fusion map.

[0100] In some embodiments, the original feature map is input into the effective squeezing incentive attention module for feature fusion. Specifically, the information of the spatial dimension is compressed into a channel descriptor through a global average pooling layer, so that the global importance of each channel can be displayed. The fully connected layer is then used to learn the dependencies between channels, and an activation function is applied to obtain the importance weight of each channel. After that, the original feature map is dynamically adjusted by assigning different importance weights to different features, and a feature fusion map is output, so that the rich features in the original feature map can be extracted, providing a more comprehensive image identification, which is convenient for the subsequent training of the deep learning model.

[0101] Step S403: The feature fusion map is expressed by a receptive field enhancement module to obtain a dome feature map.

[0102] In some embodiments, the receptive field enhancement module includes multiple branches, and different branches use different expansion rates. Classification and positioning results are obtained through different convolutional layers of the receptive field enhancement module, and finally a dome feature map is output. This can reduce the number of parameters while obtaining features, thereby reducing the potential risk of overfitting, and can fully obtain image features and improve the model's expression capabilities.

[0103] Reference Figure 5 , Figure 5 It is a specific flow chart of step S402 provided in an embodiment of the present application. In some embodiments, step S402 specifically includes but is not limited to step S501 and step S505.

[0104] Step S501, input the original feature map into the global average pooling layer in the effective squeeze incentive attention module to compress the spatial dimension information of the original feature map through the global average pooling layer to obtain a channel descriptor.

[0105] It should be noted that the channel descriptor is used to characterize the global importance of each channel.

[0106] Step S502, performing convolution calculation on the original feature map to obtain a convolution feature map.

[0107] Step S503, obtain the connection weight of the fully connected layer in the effective squeeze incentive attention module, and determine the importance weight of each channel in the effective squeeze incentive attention module according to the channel descriptor, the convolution feature map and the connection weight.

[0108] Step S504: dynamically adjust the original feature map according to the importance weight to obtain a refined feature map.

[0109] Step S505, connecting the refined feature map and the original feature map to obtain a feature fusion map.

[0110] In steps S501 to S505 of some embodiments, in the process of inputting the original feature map into the effective squeeze incentive attention module for feature fusion, first, the original feature map is input into the global average pooling layer in the effective squeeze incentive attention module, so that the information of the spatial dimension is compressed into a channel descriptor through the global average pooling layer, so as to display the global importance of each channel, and then the original feature map is convolved. In the embodiment of the present application, a 1*1 convolution is performed on the original feature map to obtain a convolution feature map. After that, a fully connected layer is used to learn the dependency between channels, and an activation function is applied to obtain the importance weight of each channel. Specifically, First, the connection weights of the fully connected layer in the effective squeeze-excited attention module are obtained, and the importance weight of each channel is determined according to the channel descriptor, convolutional feature map and connection weight obtained in step S501. Finally, the importance weight is multiplied by the original feature map to realize dynamic adjustment of the original feature map. By assigning different importance weights to different features, the model can pay more attention to the features that are more important to the current task and obtain a refined feature map. The refined feature map and the original feature map are then refined through residual connection to obtain a feature fusion map, thereby being able to extract rich features in the original feature map, providing a more comprehensive image identification, and facilitating the subsequent training of the deep learning model.

[0111] It is worth noting that an effective squeeze incentive attention module is added behind each efficient layer aggregation network layer in the embodiment of the present application.

[0112] The following specifically describes steps S501 to S505 in conjunction with the formula.

[0113] First, the spatial dimension information is compressed into a channel descriptor through the global average pooling layer, so that the global importance of each channel can be displayed. The specific process can be referred to the following formula:

[0114]

[0115] Among them, X i,j It is the global average pooling of a channel, W represents the number of rows of the original input feature map, and H represents the number of columns of the original input feature map.

[0116] After that, the fully connected layer is used to learn the dependencies between channels, and the activation function is applied to obtain the importance weight of each channel. The specific process can be referred to the following formula:

[0117] A ESE (X div )=σ(W C (F gap (X div ));

[0118] Among them, σ represents the sigmoid activation function, W C is the connection weight of the fully connected layer, X div Convolutional feature map computed by 1×1 convolution.

[0119] The calculated importance weight is multiplied by the original input feature map to achieve dynamic adjustment of the feature map. The specific process can be referred to the following formula:

[0120]

[0121] Among them, X refine is the refined feature map, represents element-wise multiplication, A ESE is the importance weight.

[0122] Finally, the refined feature map is connected to the original feature map using residual connection to obtain the feature fusion map.

[0123] Reference Figure 6 , Figure 6 It is a specific flow chart of step S403 provided in the embodiment of the present application. In some embodiments, step S403 specifically includes but is not limited to step S601 and step S605.

[0124] It should be noted that the receptive field enhancement module includes a first branch, a second branch, a third branch, a fourth branch and a multi-branch average pooling layer. Different branches of the receptive field enhancement module in the embodiment of the present application use different dilated convolution rates to obtain multi-scale information, obtain features while reducing the number of parameters, thereby reducing the potential risk of overfitting.

[0125] It can be understood that the first branch, the second branch, the third branch and the fourth branch in the embodiment of the present application are all provided with three layers, and step S403 is specifically described below.

[0126] Step S601, input the feature fusion map into the first branch, and output the first feature information.

[0127] Step S602: input the feature fusion map into the second branch, so that the second branch convolves the feature fusion map according to a preset first dilation rate and outputs second feature information.

[0128] Step S603: input the feature fusion map into the third branch, so that the third branch performs convolution on the feature fusion map according to a preset second dilation rate and outputs third feature information.

[0129] Step S604: input the feature fusion map into the fourth branch, so that the fourth branch convolves the feature fusion map according to a preset third dilation rate and outputs fourth feature information.

[0130] Step S605, performing a weighted operation on the first feature information, the second feature information, the third feature information and the fourth feature information through a multi-branch average pooling layer to obtain a dome feature map.

[0131] It should be noted that the first expansion rate, the second expansion rate, and the third expansion rate increase in sequence.

[0132] In steps S601 to S605 of some embodiments, in the process of expressing the features of the feature fusion map through the receptive field enhancement module, the first branch is directly connected to the multi-branch average pooling layer, so the feature fusion map is input into the first branch, and then output to the multi-branch average pooling layer, and the feature fusion map is input into the second branch, so that the second branch performs convolution on the feature fusion map according to the preset first expansion rate. Specifically, the feature fusion map input into the second branch first undergoes 1*1 convolution, then uses 3*3 convolution with the first expansion rate in the second layer, and then uses 1*1 convolution through residual connection in the third layer, and then outputs the second feature information. Similarly, the feature fusion map is input into the third branch, and the feature fusion map input into the third branch first undergoes 1*1 convolution, then uses 3*3 convolution with the second expansion rate in the second layer, and then uses 1*1 convolution through residual connection in the third layer, and then outputs the third feature information. The feature fusion map is input into the fourth branch. The feature fusion map input into the fourth branch first undergoes 1*1 convolution, then uses 3*3 convolution with the third dilation rate in the second layer, and uses residual connection 1*1 convolution in the third layer to output the fourth feature information. After inputting the above four branches, the multi-branch average pooling layer collects information from different branches, and performs weighted operations on the first feature information, the second feature information, the third feature information, and the fourth feature information, that is, the feature information of each branch is weighted to obtain the dome feature map, so that the proportion of different branches can be balanced, and the classification and positioning results can be obtained through different convolution layers. Finally, the dome feature map is output, which can reduce the number of parameters while obtaining features, thereby reducing the potential risk of overfitting.

[0133] It can be understood that in the embodiment of the present application, the first expansion rate is 1, the second expansion rate is 2, and the third expansion rate is 3.

[0134] Reference Figure 7 , Figure 7 1 is a specific flow chart of step S104 provided in an embodiment of the present application. In some embodiments, step S104 specifically includes but is not limited to step S701 and step S707.

[0135] Step S701, determining a predicted box according to the dome feature map, and determining a closed box set and a true box according to the dome identifier in the original data set.

[0136] It should be noted that the closed box set is used to represent a set of bounding boxes surrounding the dome logo.

[0137] Step S702, determining the predicted coordinates of the center point of the predicted box according to the predicted box, and determining the real coordinates of the center point of the real box according to the real box.

[0138] Step S703, determining the minimum enclosing box in the enclosing box set, and determining the intersection-over-union ratio of the overlapping area between the predicted box and the real box.

[0139] Step S704, determining a bounding box loss function according to the predicted coordinates, the true coordinates, the size of the minimum enclosing box, and the intersection-over-union ratio.

[0140] In steps S701 to S704 of some embodiments, in the process of training the deep learning model according to the dome feature map, first, a prediction box is determined according to the dome feature map, that is, a bounding box corresponding to the dome feature in the prediction result, and a set of bounding boxes surrounding the dome identifier is determined according to the dome identifier in the original data set, that is, a closed box set, and at the same time, a real box is selected from the bounding box set of the original data set, and then the predicted coordinates of the center point of the prediction box are determined according to the prediction box, and the real coordinates of the center point of the real box are determined according to the real box. After that, a minimum closed box with the smallest size is determined in the closed box set, and the intersection and union ratio of the overlapping area of ​​the prediction box and the real box is calculated, so as to determine the degree of overlap between the prediction box and the real box, and then the bounding box loss function is determined according to the predicted coordinates of the center point of the prediction box, the real coordinates of the center point of the real box, the size of the minimum closed box, and the intersection and union ratio, so as to facilitate the subsequent adjustment of the bounding box of the target to more accurately match the real position and size of the target.

[0141] Specifically, the bounding box loss function can be obtained by the following formula:

[0142]

[0143] Among them, exp is the exponential function, x and y are the predicted coordinates of the center point of the prediction box, x gt and gt is the real coordinate of the center point of the real box, W g and H g are the width and height of the smallest enclosing box, is the intersection-over-union ratio of the overlapped area between the predicted box and the true box. The above parameters can be used to determine the R that significantly reduces the high-quality bounding box. WIoU ,When the bounding box and the target box overlap well, it pays more attention to the distance between the center points, thus improving the accuracy of predicting the dome location.

[0144] Step S705 , determining a gradient gain value according to a preset hyperparameter of a bounding box outlier, a preset hyperparameter of a bounding box size weight, and a preset hyperparameter of a bounding box offset weight.

[0145] Step S706, adjusting the bounding box loss function according to the gradient gain value to obtain a target loss function.

[0146] Step S707: train the deep learning model based on the target loss function to obtain a pre-trained deep learning model.

[0147] In steps S705 to S707 of some embodiments, after determining the bounding box loss function, the embodiments of the present application also need to construct a gradient gain. Specifically, the gradient gain value is determined according to a preset bounding box outlier hyperparameter, a preset bounding box size weight hyperparameter, and a preset bounding box offset weight hyperparameter, so that the influence of outliers on the deep learning model training can be reduced by setting appropriate outlier hyperparameters, and the deep learning model can pay more attention to the accuracy of the size during training by adjusting the size weight, and the model can pay more attention to the position accuracy of the bounding box by appropriately increasing the offset weight. Finally, the deep learning model is trained based on the target loss function to obtain a trained deep learning model. The above three hyperparameters can improve the prediction accuracy of the deep learning model, so that the deep learning model can make the gradient gain allocation strategy that best suits the current situation at every moment, thereby improving the accuracy and reliability of the detection results.

[0148] It should be noted that the hyperparameters of the bounding box outliers in the embodiments of the present application are used to determine how to handle outliers in the loss function. Outliers refer to abnormal values ​​that are significantly different from most data points. In bounding box regression, outliers may be due to incorrect annotations or target sizes in extreme cases. The hyperparameters of the bounding box size weight are used to adjust the weight of the size error in the loss function, which determines the degree of emphasis the model places on the accuracy of the bounding box size prediction during the optimization process. The hyperparameters of the bounding box offset weight are used to adjust the weight of the position offset error in the loss function, which affects the degree of emphasis the model places on the bounding box position prediction during the training process.

[0149] Specifically, the gradient gain r can be obtained by the following formula:

[0150]

[0151] Among them, β is the hyperparameter of the bounding box outlier, which is used to control the focus of the intersection-over-union weight. δ is the hyperparameter of the bounding box size weight, which is used to control the focus of the bounding box size weight. α is the hyperparameter of the bounding box offset weight, which is used to control the focus of the bounding box offset weight.

[0152] The target loss function can be obtained by the following formula:

[0153]

[0154] Where r is the gradient gain, is the bounding box loss function.

[0155] See also Figure 8 The present application also provides an image feature recognition system that can implement the above-mentioned image feature recognition method. The system includes:

[0156] A data acquisition module 801 is used to acquire an original data set, wherein the original data set is a data set related to the lunar dome;

[0157] A preprocessing module 802 is used to perform preprocessing operations on the original data set to obtain a training set and a test set;

[0158] The feature extraction module 803 is used to input the training set into a preset deep learning model, so as to extract features from the training set through the effective squeeze incentive attention module and the receptive field enhancement module in the deep learning model to obtain a dome feature map;

[0159] A model training module 804 is used to train a deep learning model according to the dome feature map to obtain a pre-trained deep learning model;

[0160] The dome recognition module 805 is used to input the test set into the trained deep learning model for dome recognition and output the target dome information.

[0161] The image feature recognition system of the embodiment of the present application is used to execute the image feature recognition method in the above embodiment. Its specific processing process is the same as the image feature recognition method in the above embodiment, and will not be repeated here.

[0162] An embodiment of the present application further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the processor is used to execute the image feature recognition method in the above embodiment of the present application.

[0163] See also Fig. 9 , Fig. 9 The hardware structure of the electronic device provided in the embodiment of the present application is illustrated, and the electronic device includes:

[0164] The processor 901 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0165] The memory 902 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 902 can store an operating system and other application programs. When the technical solution provided in the embodiment of this specification is implemented by software or firmware, the relevant program code is stored in the memory 902, and the processor 901 calls and executes the image feature recognition method of the embodiment of this application;

[0166] Input / output interface 903, used to implement information input and output;

[0167] Communication interface 904, used to realize communication interaction between the device and other devices, which can be realized by wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);

[0168] A bus 905 that transmits information between various components of the device (e.g., the processor 901, the memory 902, the input / output interface 903, and the communication interface 904);

[0169] The processor 901 , the memory 902 , the input / output interface 903 and the communication interface 904 are connected to each other in communication within the device via a bus 905 .

[0170] An embodiment of the present application also provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the above-mentioned image feature recognition method is implemented.

[0171] The memory, as a non-transient computer-readable storage medium, can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0172] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0173] It can be understood by those skilled in the art that Figure 1-9 The technical solutions shown in the figure do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than those shown in the figure, or a combination of certain steps, or different steps.

[0174] The system embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.

[0175] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0176] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0177] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0178] In the several embodiments provided in the present application, it should be understood that the disclosed systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of systems or units, which can be electrical, mechanical or other forms.

[0179] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0180] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0181] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0182] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. A method for image feature recognition, characterized in that: The method comprises: Acquire an original data set, wherein the original data set is a data set related to the lunar dome; Performing preprocessing operations on the original data set to obtain a training set and a test set; Inputting the training set into a preset deep learning model, so as to extract features of the training set through an effective squeeze-stimulated attention module and a receptive field enhancement module in the deep learning model, and obtain a dome feature map; Training the deep learning model according to the dome feature map to obtain a pre-trained deep learning model; The test set is input into the trained deep learning model for dome recognition, and the target dome information is output.

2. The image feature recognition method according to claim 1, characterized in that: The original data set is obtained by the following steps: Acquire digital elevation model data and dome longitude and latitude coordinates, wherein the dome longitude and latitude coordinates are used to characterize the spatial range of the dome on the moon; The digital elevation model data is clipped according to the dome longitude and latitude coordinates to obtain an original data set.

3. The image feature recognition method according to claim 1, characterized in that: The preprocessing operation is performed on the original data set to obtain a training set and a test set, including: Rendering the original data set by using a preset geographic information system software; Performing object recognition on the rendered original data set to obtain an original dome position, and marking the original dome position to obtain a dome identifier; The original data set after position annotation is subjected to data augmentation to obtain training set and test set.

4. The image feature recognition method according to claim 1, characterized in that: The step of inputting the training set into a preset deep learning model to extract features from the training set through an effective squeeze-stimulated attention module and a receptive field enhancement module in the deep learning model to obtain a dome feature map includes: Inputting the training set into a preset deep learning model so that the high-efficiency layer aggregation network layer in the deep learning model performs preliminary feature extraction on the images in the training set and outputs an original feature map; Inputting the original feature map into the effective squeeze incentive attention module for feature fusion, and outputting a feature fusion map; The feature fusion map is characterized by the receptive field enhancement module to obtain a dome feature map.

5. The image feature recognition method according to claim 4, characterized in that: The step of inputting the original feature map into the effective squeeze incentive attention module for feature fusion and outputting a feature fusion map comprises: Inputting the original feature map into the global average pooling layer in the effective squeeze incentive attention module, so as to compress the spatial dimension information of the original feature map through the global average pooling layer to obtain a channel descriptor, wherein the channel descriptor is used to characterize the global importance of each channel; Performing convolution calculation on the original feature map to obtain a convolution feature map; Obtaining a connection weight of a fully connected layer in the effective squeeze incentive attention module, and determining an importance weight of each channel in the effective squeeze incentive attention module according to the channel descriptor, the convolutional feature map, and the connection weight; Dynamically adjusting the original feature map according to the importance weight to obtain a refined feature map; The refined feature map and the original feature map are connected to obtain a feature fusion map.

6. The image feature recognition method according to claim 4, characterized in that: The receptive field enhancement module includes a first branch, a second branch, a third branch, a fourth branch and a multi-branch average pooling layer; the feature fusion map is expressed by the receptive field enhancement module to obtain a dome feature map, including: Inputting the feature fusion map into the first branch, and outputting first feature information; Inputting the feature fusion map into the second branch, so that the second branch performs convolution on the feature fusion map according to a preset first dilation rate and outputs second feature information; Inputting the feature fusion map into the third branch, so that the third branch performs convolution on the feature fusion map according to a preset second dilation rate and outputs third feature information; Inputting the feature fusion map into the fourth branch, so that the fourth branch performs convolution on the feature fusion map according to a preset third dilation rate and outputs fourth feature information; Performing a weighted operation on the first feature information, the second feature information, the third feature information, and the fourth feature information through the multi-branch average pooling layer to obtain a dome feature map; Among them, the first expansion rate, the second expansion rate, and the third expansion rate increase successively.

7. The image feature recognition method according to claim 3, characterized in that: The step of training the deep learning model according to the dome feature map to obtain a pre-trained deep learning model includes: Determine a prediction box according to the dome feature map, and determine a closed box set and a true box according to the dome identifier in the original data set, wherein the closed box set is used to represent a set of bounding boxes surrounding the dome identifier; Determine the predicted coordinates of the center point of the predicted frame according to the predicted frame, and determine the real coordinates of the center point of the real frame according to the real frame; Determine a minimum enclosing frame in the enclosing frame set, and determine an intersection-over-union ratio of an overlapping area between the predicted frame and the true frame; Determine a bounding box loss function according to the predicted coordinates, the true coordinates, the size of the minimum enclosing box, and the intersection-over-union ratio; Determining a gradient gain value according to a preset hyperparameter of a bounding box outlier, a preset hyperparameter of a bounding box size weight, and a preset hyperparameter of a bounding box offset weight, wherein the hyperparameter of the bounding box outlier is used to control the focusing degree of the intersection-over-union weight, the hyperparameter of the bounding box size weight is used to control the focusing degree of the bounding box size weight, and the hyperparameter of the bounding box offset weight is used to control the focusing degree of the bounding box offset weight; Adjust the bounding box loss function according to the gradient gain value to obtain a target loss function; The deep learning model is trained based on the target loss function to obtain a pre-trained deep learning model.

8. An image feature recognition system, characterized in that: The system comprises: A data acquisition module, used to acquire an original data set, wherein the original data set is a data set related to the lunar dome; A preprocessing module is used to perform preprocessing operations on the original data set to obtain a training set and a test set; A feature extraction module, used for inputting the training set into a preset deep learning model, so as to extract features from the training set through an effective squeeze-stimulated attention module and a receptive field enhancement module in the deep learning model, and obtain a dome feature map; A model training module, used for training the deep learning model according to the dome feature map to obtain a pre-trained deep learning model; The dome recognition module is used to input the test set into the trained deep learning model for dome recognition and output the target dome information.

9. An electronic device, characterized in that: The electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the image feature recognition method according to any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to enable a computer to execute the image feature recognition method as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Dam crack detection method based on U-net network and SC-SAM attention mechanism

    CN112232391A

  • Smoke and fire detection method based on super-resolution reconstruction and adaptive extrusion excitation

    CN115719463A

  • PCB element detection method and system based on deep learning, and storage medium

    CN116168017A

  • Method and device for detecting forbidden articles in complex environment based on multi-scale feature fusion

    CN117765378A

Cited By

  • Bo-white peony root identification method, system and equipment based on deep learning model and medium

    CN120164036A