Long-distance obstacle identification method under complex illumination condition in unstructured lunar environment

By constructing a lunar surface obstacle detection network, the problems of detection error and computational resource consumption of traditional methods under complex lunar lighting conditions are solved, achieving efficient and rapid obstacle identification and improving the safety of the lunar rover.

CN118629014AInactive Publication Date: 2024-09-10NORTHWESTERN POLYTECHNICAL UNIV
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411088475.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2024-09-10
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Traditional image target recognition methods are affected by complex lighting conditions in the unstructured environment of the lunar surface, resulting in large detection errors, high computational resource consumption, and long detection time. They cannot effectively process high-level image features, increasing the security threat to lunar rover.

Method used

A lunar obstacle detection network was constructed, consisting of 7 convolutional units, 1 ECA attention mechanism unit, 1 SPPF spatial pyramid pooling layer, 2 upsampling layers, 4 Concat feature fusion layers, 2 C3-2 units, 2 CBS class-balanced sampling units, 6 C3-1 units, and 3 target detection heads. The network was trained using a lunar obstacle image sample dataset to achieve lightweight obstacle detection.

Benefits of technology

It enables efficient and rapid obstacle identification in the unstructured environment of the lunar surface, reduces computational complexity, improves detection accuracy, reduces detection time, and enhances the safety of the lunar rover.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118629014A
    Figure CN118629014A
Patent Text Reader

Abstract

The invention discloses a long-distance obstacle identification method under a lunar unstructured environment complex illumination condition. The method comprises the following steps: firstly, constructing a lunar obstacle target detection network; then constructing a lunar surface obstacle image sample data set, and training the lunar surface obstacle target detection network by using the lunar surface obstacle image sample data set to obtain a lunar surface obstacle target detection model; and collecting a lunar surface obstacle image, and sending the lunar surface obstacle image into the lunar surface obstacle target detection model to finally complete lunar surface obstacle detection. Compared with a traditional image feature extraction method, the method provided by the invention has the advantages of less parameter quantity, higher calculation speed and lighter weight.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of target detection, and in particular relates to a method for identifying long-distance obstacles under complex lighting conditions in an unstructured lunar environment. Background Art

[0002] With the continuous advancement of aerospace technology, planetary surface roaming and patrol missions are becoming more diversified, and the scope of exploration missions is gradually expanding. Among them, traditional image recognition solutions, as a relatively mature target detection technology, have been used in lunar patrol vehicles.

[0003] Traditional image target recognition methods are based on manual feature extraction. The detector uses a sliding window to check whether the target exists in the window of the area that may contain the object, and extracts and classifies the features under the window to produce detection results.

[0004] However, since there is no atmospheric scattering on the lunar surface, the changes in illumination from the sun tend to be unstable, and at the same time, the obstacles on the lunar surface produce a certain degree of shadow pixels through the illumination of sunlight. Such influences cause the traditional image target recognition algorithm to produce a certain degree of detection error in the detection of lunar obstacles. At the same time, since the traditional image target recognition method consumes a lot of computing resources in the analysis of image color, spatial structure and texture information, the detection time is increased and the target cannot be detected based on the high-level features of the image. The single camera sensor is greatly affected by the environment, and the image data cannot guarantee the recognition accuracy. The above influences further increase the security threat of the lunar rover. Summary of the invention

[0005] In order to overcome the shortcomings of the prior art, the present invention provides a long-distance obstacle recognition method under complex lighting conditions in an unstructured lunar environment. First, a lunar obstacle target detection network is constructed; then a lunar obstacle image sample data set is constructed, and the lunar obstacle target detection network is trained using the lunar obstacle image sample data set to obtain a lunar obstacle target detection model; then the lunar obstacle image is collected, and the lunar obstacle image is sent to the lunar obstacle target detection model to finally complete the lunar obstacle detection. Compared with the traditional image feature extraction method, the method of the present invention has fewer parameters, faster calculation speed, and is more lightweight.

[0006] The technical solution adopted by the present invention to solve the technical problem is as follows:

[0007] Step 1: Build a lunar obstacle detection network;

[0008] The lunar obstacle target detection network consists of 7 convolution units, 1 ECA attention mechanism unit, 1 SPPF spatial pyramid pooling layer, 2 upsampling layers, 4 Concat feature fusion layers, 2 C3-2 units, 2 CBS category balanced sampling units, 6 C3-1 units and 3 target detection heads;

[0009] The input of the first convolution unit forms the input of the lunar obstacle detection network, the output of the first convolution unit is connected to the input of the second convolution unit, the output of the second convolution unit is connected to the input of the first C3-1 unit, the output of the first C3-1 unit is connected to the input of the third convolution unit, the output of the third convolution unit is connected to the input of the first C3-2 unit, the output of the first C3-2 unit is connected to the input of the fourth convolution unit, the output of the fourth convolution unit is connected to the input of the second C3-2 unit, the output of the second C3-2 unit is connected to the input of the fifth convolution unit, the output of the fifth convolution unit is connected to the input of the second C3-1 unit, the output of the second C3-1 unit is connected to the input of the first ECA attention mechanism unit, and the output of the first ECA attention mechanism unit is connected to the input of the SPPF spatial pyramid pooling layer;

[0010] The output of the SPPF spatial pyramid pooling layer is connected to the input of the first CBS category balanced sampling unit, the output of the first CBS category balanced sampling unit is connected to the input of the first upsampling layer, the output of the first upsampling layer and the output of the second C3-2 unit are respectively connected to the two inputs of the first Concat feature fusion layer, the output of the first Concat feature fusion layer is connected to the input of the third C3-1 unit, the output of the third C3-1 unit is connected to the input of the second CBS category balanced sampling unit, the output of the second CBS category balanced sampling unit is connected to the input of the second upsampling layer, the output of the second upsampling layer and the output of the first C3-2 unit are respectively connected to the two inputs of the second Concat feature fusion layer. The output of the second Concat feature fusion layer is connected to the input of the fourth C3-1 unit, the output of the fourth C3-1 unit is connected to the input of the sixth convolution unit, the output of the sixth convolution unit and the output of the second CBS category balanced sampling unit are connected to the two inputs of the third Concat feature fusion layer respectively, the output of the third Concat feature fusion layer is connected to the input of the fifth C3-1 unit, the output of the fifth C3-1 unit is connected to the input of the seventh convolution unit, the output of the seventh convolution unit and the output of the first CBS category balanced sampling unit are connected to the two inputs of the fourth Concat feature fusion layer respectively, and the output of the fourth Concat feature fusion layer is connected to the input of the sixth C3-1 unit;

[0011] The input of the first target detection head is connected to the output of the fourth C3-1 unit, the input of the second target detection head is connected to the output of the fifth C3-1 unit, the input of the third target detection head is connected to the output of the sixth C3-1 unit, and the output of the first target detection head, the output of the second target detection head and the output of the third target detection head together form the output of the lunar obstacle target detection network;

[0012] Step 2: Construct a lunar obstacle image sample dataset, and use the lunar obstacle image sample dataset to train the lunar obstacle target detection network constructed in step 1 to obtain a lunar obstacle target detection model;

[0013] Step 3: Collect the lunar surface obstacle image and send the lunar surface obstacle image to the lunar surface obstacle target detection model obtained in step 2 to complete the lunar surface obstacle detection.

[0014] Furthermore, the C3-1 unit is composed of 3 convolution modules, 1 Concat feature fusion layer, and 1 residual unit NxBottleneck-True; in the C3-1 unit, the input of the first convolution module forms the input of the C3-1 unit, one of the two outputs of the first convolution module is connected to the input of the residual unit Nx Bottleneck-True, and the other output is connected to the input of the second convolution module, the output of the residual unit Nx Bottleneck-True and the output of the second convolution module are respectively connected to the two inputs of the Concat feature fusion layer, the output of the Concat feature fusion layer is connected to the input of the third convolution module, and the output of the third convolution module forms the output of the C3-1 unit.

[0015] Furthermore, the C3-2 unit is composed of a residual unit Nx Bottleneck-False; the input of the residual unit Nx Bottleneck-False forms the input of the C3-2 unit, and the output of the residual unit Nx Bottleneck-False forms the output of the C3-2 unit.

[0016] Furthermore, the residual unit Nx Bottleneck-True is composed of two convolution modules and one sum module; the input of the residual unit Nx Bottleneck-True is simultaneously used as the input of the first convolution module and the input of the sum module, the output of the first convolution module is connected to the input of the second convolution module, the output of the second convolution module is used as another input of the sum module, and the output of the sum module forms the output of the residual unit Nx Bottleneck-True.

[0017] Furthermore, the residual unit Nx Bottleneck-False is composed of two convolution modules; the input of the first convolution module constitutes the input of the residual unit Nx Bottleneck-False, the output of the first convolution module is connected to the input of the second convolution module, and the output of the second convolution module forms the output of the residual unit (Nx Bottleneck-False).

[0018] Furthermore, the CBS category balanced sampling unit is composed of a convolution module, a normalization layer, and an activation function; in the CBS category balanced sampling unit, the input of the convolution module forms the input of the CBS category balanced sampling unit, the output of the convolution module is connected to the input of the normalization layer, the output of the normalization layer is connected to the input of the activation function, and the output of the activation function forms the output of the CBS category balanced sampling unit.

[0019] Furthermore, the ECA attention mechanism unit is composed of a global average pooling layer, a self-adaptive convolution kernel size module, an activation function, and a scale module; the input of the global average pooling layer forms the input of the ECA attention mechanism unit, the output of the global average pooling layer is connected to the self-adaptive convolution kernel size module, the output of the self-adaptive convolution kernel size module is connected to the input of the activation function, the output of the activation function and the input of the ECA attention mechanism unit are simultaneously connected to the scale module, and the output of the scale module forms the output of the ECA attention mechanism unit.

[0020] Furthermore, the activation function is a Sigmoid function.

[0021] The beneficial effects of the present invention are as follows:

[0022] Compared with the prior art, the present invention proposes a lightweight lunar obstacle target detection network based on an efficient channel attention mechanism for lunar obstacle target detection. The lunar obstacle target detection network introduces a convolution module for feature extraction during the initial image feature extraction. Compared with the traditional image feature extraction method, it has fewer parameters, faster calculation speed, and is more lightweight. At the same time, a lightweight and efficient channel attention mechanism is introduced. This mechanism is a plug-and-play attention mechanism that can reduce the computational complexity while maintaining the model performance. In the multi-dimensional feature fusion network, a pyramid structure is used to fuse feature maps of the same dimension, and convolution is introduced to adjust the feature map dimension, thereby enhancing the feature information of the lunar obstacles. BRIEF DESCRIPTION OF THE DRAWINGS

[0023] Figure 1 It is a structural diagram of the lunar surface obstacle target detection network of the present invention;

[0024] Figure 2 This is a structural diagram of the C3-1 unit of the present invention;

[0025] Figure 3 This is a structural diagram of the C3-2 unit of the present invention;

[0026] Figure 4 It is a structure diagram of the residual unit Nx Bottleneck-True of the present invention;

[0027] Figure 5 This is a diagram of the residual unit Nx Bottleneck-False structure of the present invention;

[0028] Figure 6 This is a structural diagram of the CBS class balanced sampling unit of the present invention;

[0029] Figure 7 This is a structural diagram of the ECA attention mechanism unit of the present invention. DETAILED DESCRIPTION

[0030] The present invention is further described below in conjunction with the accompanying drawings and embodiments.

[0031] The purpose of the present invention is to solve the problem that the traditional target recognition method in the existing lunar rover is time-consuming, has low accuracy and cannot process high-level image features, which leads to further increase in the security threat of the lunar rover during its movement on the lunar surface.

[0032] A method for long-distance obstacle recognition under complex lighting conditions in an unstructured lunar environment, the specific steps are as follows:

[0033] Step 1: Build a lunar obstacle detection network;

[0034] See also Figure 1 The lunar obstacle detection network consists of 7 convolution units, 1 ECA attention mechanism unit, 1 SPPF spatial pyramid pooling layer, 2 upsampling layers, 4 Concat feature fusion layers, 2 C3-2 units, 2 CBS category balanced sampling units, 6 C3-1 units and 3 target detection heads;

[0035] The input of the convolution unit forms the input of the lunar obstacle detection network, the output of the first convolution unit is connected to the input of the second convolution unit, the output of the second convolution unit is connected to the input of the first C3-1 unit, the output of the first C3-1 unit is connected to the input of the third convolution unit, the output of the third convolution unit is connected to the input of the first C3-2 unit, the output of the first C3-2 unit is connected to the input of the fourth convolution unit, the output of the fourth convolution unit is connected to the input of the second C3-2 unit, the output of the second C3-2 unit is connected to the input of the fifth convolution unit, the output of the fifth convolution unit is connected to the input of the second C3-1 unit, the output of the second C3-1 unit is connected to the input of the first ECA attention mechanism unit, and the output of the first ECA attention mechanism unit is connected to the input of the SPPF spatial pyramid pooling layer;

[0036] The output of the SPPF spatial pyramid pooling layer is connected to the input of the first CBS category balanced sampling unit, the output of the first CBS category balanced sampling unit is connected to the input of the first upsampling layer, the output of the first upsampling layer and the output of the second C3-2 unit are respectively connected to the two inputs of the first Concat feature fusion layer, the output of the first Concat feature fusion layer is connected to the input of the third C3-1 unit, the output of the third C3-1 unit is connected to the input of the second CBS category balanced sampling unit, the output of the second CBS category balanced sampling unit is connected to the input of the second upsampling layer, the output of the second upsampling layer and the output of the first C3-2 unit are respectively connected to the two inputs of the second Concat feature fusion layer. The output of the second Concat feature fusion layer is connected to the input of the fourth C3-1 unit, the output of the fourth C3-1 unit is connected to the input of the sixth convolution unit, the output of the sixth convolution unit and the output of the second CBS category balanced sampling unit are connected to the two inputs of the third Concat feature fusion layer respectively, the output of the third Concat feature fusion layer is connected to the input of the fifth C3-1 unit, the output of the fifth C3-1 unit is connected to the input of the seventh convolution unit, the output of the seventh convolution unit and the output of the first CBS category balanced sampling unit are connected to the two inputs of the fourth Concat feature fusion layer respectively, and the output of the fourth Concat feature fusion layer is connected to the input of the sixth C3-1 unit;

[0037] The input of the first target detection head is connected to the output of the fourth C3-1 unit, the input of the second target detection head is connected to the output of the fifth C3-1 unit, the input of the third target detection head is connected to the output of the sixth C3-1 unit, and the output of the first target detection head, the output of the second target detection head and the output of the third target detection head together form the output of the lunar obstacle target detection network;

[0038] See also Figure 2 , the C3-1 unit consists of 3 convolution modules, 1 Concat feature fusion layer, and 1 residual unit NxBottleneck-True; in the C3-1 unit, the input of the first convolution module forms the input of the C3-1 unit, one of the two outputs of the first convolution module is connected to the input of the residual unit Nx Bottleneck-True, and the other output is connected to the input of the second convolution module, the output of the residual unit Nx Bottleneck-True and the output of the second convolution module are respectively connected to the two inputs of the Concat feature fusion layer, the output of the Concat feature fusion layer is connected to the input of the third convolution module, and the output of the third convolution module forms the output of the C3-1 unit.

[0039] See also Figure 3 , the C3-2 unit is composed of a residual unit Nx Bottleneck-False; the input of the residual unit Nx Bottleneck-False forms the input of the C3-2 unit, and the output of the residual unit Nx Bottleneck-False forms the output of the C3-2 unit.

[0040] See also Figure 4 , the residual unit Nx Bottleneck-True consists of two convolution modules and one sum module; the input of the residual unit Nx Bottleneck-True is used as the input of the first convolution module and the input of the sum module at the same time, the output of the first convolution module is connected to the input of the second convolution module, the output of the second convolution module is used as another input of the sum module, and the output of the sum module forms the output of the residual unit Nx Bottleneck-True. .

[0041] See also Figure 5 , the residual unit Nx Bottleneck-False consists of two convolutional modules; the input of the first convolutional module constitutes the input of the residual unit Nx Bottleneck-False, the output of the first convolutional module is connected to the input of the second convolutional module, and the output of the second convolutional module forms the output of the residual unit Nx Bottleneck-False.

[0042] See also Figure 6 The CBS category balanced sampling unit consists of a convolution module, a normalization layer, and an activation function; in the CBS category balanced sampling unit, the input of the convolution module forms the input of the CBS category balanced sampling unit, the output of the convolution module is connected to the input of the normalization layer, the output of the normalization layer is connected to the input of the activation function, and the output of the activation function forms the output of the CBS category balanced sampling unit.

[0043] See also Figure 7 The ECA attention mechanism unit consists of a global average pooling layer, an adaptive convolution kernel size module, an activation function, and a scale module; the input of the global average pooling layer forms the input of the ECA attention mechanism unit, the output of the global average pooling layer is connected to the adaptive convolution kernel size module, the output of the adaptive convolution kernel size module is connected to the input of the activation function, the output of the activation function and the input of the ECA attention mechanism unit are connected to the scale module at the same time, and the output of the scale module forms the output of the ECA attention mechanism unit.

[0044] Step 2: construct a lunar surface obstacle image sample dataset, and use the lunar surface obstacle image sample dataset to train the lunar surface obstacle target detection network constructed in step 1 to obtain a lunar surface obstacle target detection model;

[0045] Step 3: Collect the lunar surface obstacle image and send the lunar surface obstacle image to the lunar surface obstacle target detection model obtained in step 2 to complete the lunar surface obstacle detection.

[0046] Example:

[0047] The present invention introduces an efficient channel attention mechanism to improve YOLOv5, and proposes an improved deep learning network, namely, a lunar obstacle target detection network. The network is divided into three parts, namely, an initial image feature extraction backbone network (Backbone), a multi-dimensional feature fusion network (Neck) and a target detection head (Head).

[0048] (1) The image feature extraction backbone network is based on the CSPDarknet53 used by YOLOv5, and an efficient attention mechanism is introduced into the backbone network. The image feature extraction backbone network includes 5 convolutional modules (Conv), 2 C3-1 units (C3-1), 2 C3-2 units (C3-2), 1 attention mechanism unit (ECA), and a spatial pyramid pooling layer (SPPF). The image feature extraction backbone network extracts features from the input image.

[0049] S1. The input lunar obstacle image first passes through the convolution unit to complete the preliminary feature extraction. The image with a size of 640×640×3 is used as the input image, and the three dimensions are image height, image width and number of channels. The input image will first pass through a convolution layer with a convolution kernel size of 6×6, a stride of 2, a padding of 2, a batch normalization (BN) and an activation function SiLU. The output feature matrix depth channel is 32, and the output feature map is obtained, whose size is 320×320×32;

[0050] S2, through a convolution unit, input 320×320×32 feature map, the input image will first pass through a convolution layer with a convolution kernel size of 3×3, a stride of 2, a padding of 1, a batch normalization (BN) and an activation function SiLU, and the resulting feature map is 160×160×64;

[0051] S3, through a C3-1 unit, input 160×160×64 feature map, the input image will first pass through a convolution module with a convolution kernel size of 1×1 and a stride of 1, then pass through a convolution module with a convolution kernel size of 1×1 and a stride of 1, then pass through a convolution module with a convolution kernel size of 1×1 and a stride of 1, then pass through a convolution module with a convolution kernel size of 1×1 and a stride of 1, then pass through a convolution module with a convolution kernel size of 1×1 and a stride of 1, then pass through a convolution module with a convolution kernel size of 3×3 and a stride of 1, and then pass through a convolution module with a convolution kernel size of 1×1, a stride of 1 and a padding of 1, and the resulting feature map is 160×160×64;

[0052] S4, through a convolution unit, input 160×160×64 feature map, the input image will first pass through a convolution module with a convolution kernel size of 3×3, a stride of 2, and a padding of 1, and through the activation function SiLU, the resulting feature map is 160×160×64;

[0053] S5. Through a C3-2 unit, input a 160×160×64 feature map. The input image will first pass through a convolution module with a convolution kernel size of 1×1 and a stride of 1; then pass through a convolution module with a convolution kernel size of 1×1 and a stride of 1; then pass through a convolution module with a convolution kernel size of 1×1 and a stride of 1; then pass through a convolution module with a convolution kernel size of 1×1 and a stride of 1; then pass through a convolution module with a convolution kernel size of 1×1 and a stride of 1; then pass through a convolution module with a convolution kernel size of 3×3 and a stride of 1; then pass through a convolution module with a convolution kernel size of 1×1 and a stride of 1; then pass through a convolution module with a convolution kernel size of 1×1, a stride of 1 and a padding of 1; the resulting feature map is 40×40×128;

[0054] S6. Through a convolution unit, input the feature map of 40×40×128. The input image will first pass through a convolution module with a convolution kernel size of 3×3, a stride of 2, and a padding of 1 to obtain a feature map of 40×40×256.

[0055] S7, through a C3-2 unit, input 40×40×256 feature map, the input image will first pass through a convolution module with a convolution kernel size of 1×1 and a stride of 1; then pass through a convolution module with a convolution kernel size of 1×1 and a stride of 1; then pass through a convolution module with a convolution kernel size of 1×1 and a stride of 1; then pass through a convolution module with a convolution kernel size of 1×1 and a stride of 1; then pass through a convolution module with a convolution kernel size of 1×1 and a stride of 1; then pass through a convolution module with a convolution kernel size of 3×3, a stride of 1, and a padding of 1; then pass through a convolution module with a convolution kernel size of 1×1 and a stride of 1; then pass through a convolution module with a convolution kernel size of 1×1, a stride of 1, and a padding of 1; then pass through a convolution module with a convolution kernel size of 1×1, a stride of 1, and a padding of 1; then pass through a convolution module with a convolution kernel size of 1×1, a stride of 1, and a padding of 1; the resulting feature map is 20×20×256;

[0056] S8, through a convolution unit, input 20×20×256 feature map, the input image will first pass through a convolution module with a convolution kernel size of 3×3, a stride of 2, and a padding of 1 to obtain a feature map of 20×20×512;

[0057] S9, through a C3-1 unit, input 20×20×512 feature map, the input image will first pass through a convolution module with a convolution kernel size of 1×1 and a stride of 1; then pass through a convolution module with a convolution kernel size of 1×1 and a stride of 1; then pass through a convolution module with a convolution kernel size of 1×1 and a stride of 1; then pass through a convolution module with a convolution kernel size of 1×1 and a stride of 1; then pass through a convolution module with a convolution kernel size of 1×1 and a stride of 1; then pass through a convolution module with a convolution kernel size of 1×1, a stride of 1, and a padding of 1, and the resulting feature map is 20×20×512;

[0058] S10, through an attention mechanism unit (ECA), input 20×20×512 feature map, the input image will first pass through an adaptive average pooling unit, and then pass through a convolution kernel size of 3×3, a stride of 1, a padding of 1, and an activation function Sigmoid to obtain a feature map of 20×20×512;

[0059] S11, through an SPPF spatial pyramid pooling layer, input a 20×20×512 feature map, and the resulting feature map is 20×20×512;

[0060] (2) The multi-dimensional feature fusion network is composed of a pyramid feature module, including 2 upsampling layers (Upsample), 4 Concat feature fusion layers (Concat), 4 C3-1 units, 2 class balanced sampling units (CBS), and 2 convolution modules (Conv). The multi-dimensional feature fusion network back-propagates the convolutional feature map through upsampling to obtain features of multiple different dimensions, and fuses these features with the features of the same dimension in the backbone to obtain feature detection maps of three different dimensions for the final multi-dimensional detection.

[0061] S12, input the feature map of size 20×20×512 into a binary residual convolution module, whose convolution kernel size is 1×1 and stride is 1, and the obtained feature map is 20×20×256;

[0062] S13, the feature map with size of 20×20×256 passes through the upsampling layer and outputs a feature map of 40×40×256;

[0063] S14, Concat feature fusion layer fuses the feature map output by S10 with the feature map output by S7 to obtain a feature map with richer features. The 40×40×512 feature map is input into the next layer;

[0064] S15, through a C3-1 unit, increase the depth and receptive field of the network, improve the feature extraction effect, enhance the generalization ability of the model, and output feature maps of 40×40×256;

[0065] S16, input the feature map of size 40×40×256 into a binary residual convolution module, whose convolution kernel size is 1×1 and stride is 1. The obtained feature map remains unchanged and the output is 40×40×128;

[0066] S17, the feature map of size 40×40×128 passes through the upsampling layer and outputs a feature map of size 80×80×128;

[0067] S18, Concat feature fusion layer fuses the feature map output by S17 with the feature map output by S5 to obtain a feature map with richer features. The 80×80×256 feature map is input into the next layer.

[0068] S19, through a C3-1 unit, increase the depth and receptive field of the network, improve the feature extraction effect, and enhance the generalization ability of the model. This layer does not change the size of the feature layer, and the output is 80×80×256;

[0069] S20, pass the feature map of size 80×80×256 output by S19 through a convolution module, whose convolution kernel size is 3×3, stride is 1, padding is 1, and the resulting feature map size is 40×40×128;

[0070] S21, Concat feature fusion layer fuses the feature map output by S17 with the feature map output by S20 to obtain a feature map with richer features. The 40×40×256 feature map is input into the next layer.

[0071] S22, through a C3-1 unit, increase the depth and receptive field of the network, improve the feature extraction effect, and enhance the generalization ability of the model. This layer does not change the size of the feature layer, and the output is 40×40×256;

[0072] S23, pass the feature map of size 40×40×256 output by S22 through a convolution module, whose convolution kernel size is 3×3, stride is 2, padding is 1, and the obtained feature map size is 20×20×256;

[0073] S24, Concat feature fusion layer fuses the feature map output by S12 with the feature map output by S23 to obtain a feature map with richer features. The 20×20×512 feature map is input into the next layer;

[0074] S25, through a C3-1 unit, increase the depth and receptive field of the network, improve the feature extraction effect, and enhance the generalization ability of the model. This layer does not change the size of the feature layer, and the output is 20×20×256;

[0075] (3) The object detection head includes three object detection heads (Detect). The three object detection heads detect feature detection images of three different dimensions respectively.

[0076] The 80×80×256 feature maps output by S26 and S16, the 40×40×256 feature maps output by S19, and the 20×20×256 feature maps output by S25 are respectively sent to three target detection heads. Through a 1×1 convolution, the features are input into the last three target detection heads for target detection. The obtained data are fused to obtain the final result of lunar obstacle target detection.

Claims

1. A method for long-distance obstacle recognition under complex lighting conditions in an unstructured lunar environment, characterized in that: The steps include: Step 1: Build a lunar obstacle detection network; The lunar obstacle target detection network consists of 7 convolution units, 1 ECA attention mechanism unit, 1 SPPF spatial pyramid pooling layer, 2 upsampling layers, 4 Concat feature fusion layers, 2 C3-2 units, 2 CBS category balanced sampling units, 6 C3-1 units and 3 target detection heads; The input of the first convolution unit forms the input of the lunar obstacle detection network, the output of the first convolution unit is connected to the input of the second convolution unit, the output of the second convolution unit is connected to the input of the first C3-1 unit, the output of the first C3-1 unit is connected to the input of the third convolution unit, the output of the third convolution unit is connected to the input of the first C3-2 unit, the output of the first C3-2 unit is connected to the input of the fourth convolution unit, the output of the fourth convolution unit is connected to the input of the second C3-2 unit, the output of the second C3-2 unit is connected to the input of the fifth convolution unit, the output of the fifth convolution unit is connected to the input of the second C3-1 unit, the output of the second C3-1 unit is connected to the input of the first ECA attention mechanism unit, and the output of the first ECA attention mechanism unit is connected to the input of the SPPF spatial pyramid pooling layer; The output of the SPPF spatial pyramid pooling layer is connected to the input of the first CBS category balanced sampling unit, the output of the first CBS category balanced sampling unit is connected to the input of the first upsampling layer, the output of the first upsampling layer and the output of the second C3-2 unit are respectively connected to the two inputs of the first Concat feature fusion layer, the output of the first Concat feature fusion layer is connected to the input of the third C3-1 unit, the output of the third C3-1 unit is connected to the input of the second CBS category balanced sampling unit, the output of the second CBS category balanced sampling unit is connected to the input of the second upsampling layer, the output of the second upsampling layer and the output of the first C3-2 unit are respectively connected to the two inputs of the second Concat feature fusion layer. The output of the second Concat feature fusion layer is connected to the input of the fourth C3-1 unit, the output of the fourth C3-1 unit is connected to the input of the sixth convolution unit, the output of the sixth convolution unit and the output of the second CBS category balanced sampling unit are connected to the two inputs of the third Concat feature fusion layer respectively, the output of the third Concat feature fusion layer is connected to the input of the fifth C3-1 unit, the output of the fifth C3-1 unit is connected to the input of the seventh convolution unit, the output of the seventh convolution unit and the output of the first CBS category balanced sampling unit are connected to the two inputs of the fourth Concat feature fusion layer respectively, and the output of the fourth Concat feature fusion layer is connected to the input of the sixth C3-1 unit; The input of the first target detection head is connected to the output of the fourth C3-1 unit, the input of the second target detection head is connected to the output of the fifth C3-1 unit, the input of the third target detection head is connected to the output of the sixth C3-1 unit, and the output of the first target detection head, the output of the second target detection head and the output of the third target detection head together form the output of the lunar obstacle target detection network; Step 2: Construct a lunar obstacle image sample dataset, and use the lunar obstacle image sample dataset to train the lunar obstacle target detection network constructed in step 1 to obtain a lunar obstacle target detection model; Step 3: Collect the lunar surface obstacle image and send the lunar surface obstacle image to the lunar surface obstacle target detection model obtained in step 2 to complete the lunar surface obstacle detection.

2. The method for long-distance obstacle recognition under complex lighting conditions in an unstructured lunar environment according to claim 1, characterized in that: The C3-1 unit consists of three convolution modules, one Concat feature fusion layer, and one residual unit NxBottleneck-True; in the C3-1 unit, the input of the first convolution module forms the input of the C3-1 unit, one of the two outputs of the first convolution module is connected to the input of the residual unit Nx Bottleneck-True, and the other output is connected to the input of the second convolution module, the output of the residual unit Nx Bottleneck-True and the output of the second convolution module are respectively connected to the two inputs of the Concat feature fusion layer, the output of the Concat feature fusion layer is connected to the input of the third convolution module, and the output of the third convolution module forms the output of the C3-1 unit.

3. The method for long-distance obstacle recognition under complex lighting conditions in an unstructured lunar environment according to claim 1, characterized in that: The C3-2 unit is composed of a residual unit Nx Bottleneck-False; the input of the residual unit Nx Bottleneck-False forms the input of the C3-2 unit, and the output of the residual unit Nx Bottleneck-False forms the output of the C3-2 unit.

4. The method for long-distance obstacle recognition under complex lighting conditions in an unstructured lunar environment according to claim 2, characterized in that: The residual unit Nx Bottleneck-True consists of two convolution modules and one sum module; the input of the residual unit Nx Bottleneck-True is simultaneously used as the input of the first convolution module and the input of the sum module, the output of the first convolution module is connected to the input of the second convolution module, the output of the second convolution module is used as another input of the sum module, and the output of the sum module forms the output of the residual unit Nx Bottleneck-True.

5. The method for long-distance obstacle recognition under complex lighting conditions in an unstructured lunar environment according to claim 3, characterized in that: The residual unit Nx Bottleneck-False is composed of two convolution modules; the input of the first convolution module constitutes the input of the residual unit Nx Bottleneck-False, the output of the first convolution module is connected to the input of the second convolution module, and the output of the second convolution module forms the output of the residual unit Nx Bottleneck-False.

6. The method for long-distance obstacle recognition under complex lighting conditions in an unstructured lunar environment according to claim 1, characterized in that: The CBS category balanced sampling unit consists of a convolution module, a normalization layer, and an activation function; in the CBS category balanced sampling unit, the input of the convolution module forms the input of the CBS category balanced sampling unit, the output of the convolution module is connected to the input of the normalization layer, the output of the normalization layer is connected to the input of the activation function, and the output of the activation function forms the output of the CBS category balanced sampling unit.

7. The method for long-distance obstacle recognition under complex lighting conditions in an unstructured lunar environment according to claim 1, characterized in that: The ECA attention mechanism unit consists of a global average pooling layer, an adaptive convolution kernel size module, an activation function, and a scale module; the input of the global average pooling layer forms the input of the ECA attention mechanism unit, the output of the global average pooling layer is connected to the adaptive convolution kernel size module, the output of the adaptive convolution kernel size module is connected to the input of the activation function, the output of the activation function and the input of the ECA attention mechanism unit are simultaneously connected to the scale module, and the output of the scale module forms the output of the ECA attention mechanism unit.

8. The method for identifying long-distance obstacles under complex lighting conditions in an unstructured lunar environment according to claim 6 or 7, characterized in that: The activation function is a Sigmoid function.

Citation Information

Patent Citations

  • Visual inspection method for corrosion of inner surface of cabin section of long and narrow closed space

    CN118446987A

  • Objective evaluation of neurological movement disorders from medical imaging

    US20220369999A1