A convolutional neural network model design space McaNetX and its optimization method
By designing the convolutional neural network model McaNetX and its optimization method, analyzing the structure parameter rules and optimizing the network structure, the problem of manual design complexity and high cost in SAR image recognition is solved, and SAR image recognition with high performance and generalization ability is achieved. Model collection.
Patent Information
- Application Number
- CN202210176263.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-25
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-02-25
AI Technical Summary
Existing SAR image target recognition methods rely on manually designed feature extraction algorithms and classifiers, which are susceptible to noise and angle factors, and the neural network design is complex and costly. Manual design and NAS design have limitations, making it difficult to promote and optimize.
Design the convolutional neural network model McaNetX and its optimization method. By analyzing the structure parameter rules, the network structure is optimized, using a multi-branch cross-channel attention network, combining fixed and variable structures, and using design space sample analysis tools to automate network design and reduce manpower. Cost and design complexity.
It realizes a high-performance model collection in SAR image recognition tasks, avoids the complexity of manual design, improves the recognition accuracy and model generalization ability, and reduces the calculation amount and training cost.
Smart Images

Figure CN114492766B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of image target recognition, and in particular to a convolutional neural network model design space McaNetX and an optimization method thereof. Background Art
[0002] Traditional methods for SAR image recognition rely on the design of feature extraction algorithms and the selection of classifiers. At present, the main SAR image target recognition algorithms include methods based on template matching, boosting, and sparse matrix representation. The accuracy of these methods depends on whether the manually designed algorithms are suitable, and they are easily affected by factors such as coherent speckle noise, azimuth, and elevation angles. The feature extraction algorithm often needs to be redesigned for different SAR image features. At present, the mainstream method of selecting classifiers is to use classifiers designed for optical images such as support vector machines (SVMs), and manually select classifiers with better classification effects to adapt to the features extracted from SAR images. The correlation between classifiers and features is low.
[0003] The deep learning method for SAR image target recognition can improve the ability to recognize SAR images by designing a neural network structure, thereby avoiding the design of complex feature extractors. Currently, most neural networks for SAR image target recognition are manually designed, which requires high labor costs.
[0004] The design rules of neural network structures can be extended to other application directions to a certain extent. The structural characteristics of deep convolutional neural networks are an indispensable part of neural networks. The convolution kernel, parameter size, depth and residual structure of convolutional neural networks all affect the performance level of neural networks. The introduction of creative neural network structures such as LeNet, AlexNet, and ResNet has significantly influenced the rules for subsequent researchers to design networks. Therefore, the neural network structure that has been proven to have good results is not only a specific network instance, but also a design rule that can be extended and applied to other networks.
[0005] Both manual design and NAS (Neural Architecture Search) network design have certain limitations. In the process of designing convolutional neural networks, the way neural networks extract and fuse features is different for different data sets. Therefore, the challenge of manually designing networks is that the process of designing networks is complex and tests professional ability. In the process of network design, NAS can automatically search for network structures with good performance from the search space. Its automation significantly reduces the design cost and labor cost of neural networks, but the search results are a single network tuned to a specific setting, and the design rules of the network will not be displayed during the network search process. Summary of the invention
[0006] In order to solve the problems raised in the above background technology, the present invention provides a convolutional neural network model design space McaNetX and an optimization method thereof, wherein the optimization method comprises the following steps: 1) designing a basic structure of a feature extraction network according to the characteristics of SAR images and representing the basic structure using structural parameters; 2) using a design space sample analysis tool to analyze the structural parameter rules in step 1); 3) comprehensively evaluating the performance of the design space sample model and comparing the changes in performance; 4) optimizing the design space set McaNetX according to the structural parameter change rules in step 2).
[0007] The structural parameter law analyzed here is the process of obtaining the structural parameter law of a batch of models through statistical and generalized means. The design space is a collection of a large number of models, and the structural parameter law of the design space regulates the structure of each model from a macro perspective. Taking Depth (the number of blocks in each stage, which can be approximately understood as the network depth) as an example, if the design space sample analysis tool is used to analyze the average Depth value of each stage as 1, 3, 2, 1; then the structural parameter law can be summarized as "rise, fall, rise". It can be considered that McaNetX is the union of all design spaces in this article (actually the McaNetXA design space, see Figure 5 ), the design rules play the role of limiting conditions, and each structural parameter has its corresponding design rule.
[0008] "Design space" is the set of all models that exist in theory under the constraints of structural parameter rules, and "model" is the smallest unit of training, that is, the neural network model (network structure + effective weight) of deep learning based on gradient descent training. "Sample model" refers to a set of models randomly sampled from the design space to represent the performance of the design space, but it is not equal to the design space. "Design space set" is the union of all design spaces proposed in this paper, that is, the set of all models that exist in theory.
[0009] Preferably, in step 1), the basic structure is an McaNet multi-branch cross-channel attention network, the McaNet multi-branch cross-channel attention network includes a fixed structure and a variable structure, and the structural parameters include a structural parameter Depth, a structural parameter Width, a structural parameter Bot_mul, and a structural parameter Groups;
[0010] The fixed structure includes a Stem network stem and a Head network head. The Stem network stem is responsible for preprocessing the image input to the network. The Head network head consists of a simple pooling layer and a fully connected layer, and plays the role of a classifier in the network.
[0011] The variable structure includes a Body network body, and the Body network body part includes 4 Stage network stages. Each of the Stage network stages consists of 1 Block-A network block and several Block-B network blocks. The number of Blocks included in each Stage network stage is the structural parameter Depth.
[0012] Preferably, the backbone convolutions of the Block-A network block and the Block-B network block each include a plurality of branches and a cross-channel attention module, each branch is the minimum variable unit of the design space variable structure, and each branch includes two 1×1 convolution layers and one 3×3 convolution layer;
[0013] The number of output channels of the 3×3 convolution layer is the structural parameter Width, and the size of the structural parameter Width is positively correlated with the amount of information extracted. The 3×3 convolution layer uses dilated convolution, and the dilated convolution rate is controlled by the variable Rs. The number of branches in the Block is controlled by the variable Rn. The output feature maps of several branches are weighted by the cross-channel attention module to extract features. "Information" can be considered as the image information carried by the image itself, such as "whether the tank has a gun barrel", "the shadow of the tank", etc.
[0014] Preferably, the variable structure also includes a bottleneck structure. The bottleneck structure makes the structure of the network similar to the "bottleneck" structure by controlling the size of the convolution kernels at the front and back of the network. The structural parameter Bot_mul adjusts the number of channels of some convolution kernels. In the grouped convolution mechanism of McaNet, the structural parameter Groups controls the number of groups of grouped convolution. A suitable grouped convolution mechanism can reduce the number of parameters and improve the model training speed. Bot_mul controls the "bottleneck structure" of the entire network by adjusting the size of the number of convolution kernel channels. Assuming Bot_mul is 2, the number of channels of some convolution kernels needs to be set to width / 2 to achieve the purpose of controlling the bottleneck structure.
[0015] Preferably, the variable structure further includes a bypass convolution structure,
[0016] For the Block-A network block, the bypass convolution structure is to convert the current input into the same number of channels as the structural parameter Width through a 1×1 convolution kernel of the right bypass convolution in each Stage Block-A, and then add the output tensor to the left trunk convolution output by matrix elements; in each part of the neural network model, the "input" is the feature map, that is, the image after the original image is convolved or otherwise operated.
[0017] For the Block-B network block, the bypass convolution structure adds the input and the trunk output by matrix elements.
[0018] Preferably, the method for analyzing the regularity of the structural parameters in step 2) is to obtain the MSTAR test set accuracy of the current model. j and structural parameters, with MSTAR test set accuracy j The optimal structural parameters of the current Stage network stage are estimated as the design rules of an excellent model, where the weighted average method formula is:
[0019]
[0020] Among them C i is the optimal structural parameter, n is the number of models in the sample model, C j is the structural parameter of the current model;
[0021] The optimal structural parameter mean of each stage network stage of the sample model is obtained by weighted average method. i , index them in units of Stage network stages, and generalize the parameter size relationship between every two d. into three cases: rising, falling, and flat as the design rule.
[0022] Preferably, in step 3), the performance of the entire design space is judged by the sample distribution function, first by the formula
[0023]
[0024] Calculate the sample distribution function F(e), where e i is the error value of a certain model, that is, the difference between the accuracy of the MSTAR dataset test set and 100%, n is the number of sample models, and e is the error limit set manually; then the weights are introduced through the NEDF function for normalization operation to eliminate the fairness evaluation bias caused by other factors of the model. The NEDF function formula is
[0025]
[0026] where w i is the weight of a single sample model; weight w i The introduction process divides the complexity interval set on demand into k equal subintervals, and the m that fall into the same subinterval j' j’ The models have the same weights:
[0027]
[0028] Finally, the formula
[0029] The estimated sample model performance value, where P is the sample model performance value estimated by NEDF, ∈ is the set upper limit of the integral error value, is the NEDF function value of the curve.
[0030] Preferably, in step 4), the design space set McaNetX includes McaNetXA., McaNetXB., McaNetXC., McaNetXD., McaNetXE., and McaNetXF., wherein McaNetXA. serves as the parent set of all subsequent design spaces;
[0031] For McaNetXB: Let b. of each Stage of McaNet be the same. After fixing b. of each Stage, the performance of McaNetXB design space is close to that of McaNetXA design space.
[0032] For McaNetXC., based on McaNetXB, the g. of each Stage of McaNet is made the same, and the fixed Groups have little impact on the performance of the network;
[0033] For McaNetXD., the design space sample analysis tool was used to analyze the structural parameter w. from the batch model trained by McaNetXC to obtain the design rule. The design rule was then applied to the design of McaNetXC, that is, the random sampling method was manually set to constrain the structural parameter w. to ensure its design rule; the constraint on the structural parameter w. slightly increased the proportion of high-performance models in the sample model;
[0034] For McaNetXE., we constrain the structural parameter d., and continue to use the same method as the analysis of w. to obtain the design rule, apply the rule to McaNetXD and randomly sample the model for training, thus obtaining the sample model of McaNetXE;
[0035] For McaNetXF., we constrain the structural parameters Rs and Rn, randomly sample McaNetXE and analyze Rs and Rn, and apply the obtained design rules to McaNetXF, which again yields results that are better than the previous design space.
[0036] The beneficial effect of the present invention is that the semi-automatic network design process of this paper designs a SAR image feature extraction network based on the advantages of manual and NAS design networks, so as to avoid manually designing complex feature extraction algorithms and classifiers. In this design process, the design of the network no longer depends on modifying the instance of a single network, nor is it limited to the search space of a certain network. Instead, the structure of the network is first parameterized, and the entire set is tested and optimized by adjusting the design rules of the structural parameters to obtain a model set with excellent performance for SAR image recognition tasks. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] Figure 1 It is a schematic diagram of the McaNet structure of the present invention;
[0038] Figure 2 is a schematic diagram of the structure of the i-th Stage network of the present invention;
[0039] Figure 3 It is a schematic diagram of the BLOCK-A structure of the present invention;
[0040] Figure 4 It is a schematic diagram of the BLOCK-B structure of the present invention;
[0041] Figure 5 It is the McaNetX design space inclusion relationship diagram of the present invention;
[0042] Figure 6 is the NEDF image of the McaNetXA and McaNetXB sample models of the present invention;
[0043] Figure 7 is the NEDF image of the McaNetXB and McaNetXC sample models of the present invention;
[0044] Figure 8 is the NEDF image of the McaNetXC and McaNetXD sample models of the present invention;
[0045] Fig. 9 is the NEDF image of the McaNetXD and McaNetXE sample models of the present invention;
[0046] Fig.10 is the NEDF image of the McaNetXE and McaNetXF sample models of the present invention;
[0047] Fig.11 Schematic diagram of confusion matrix of SOC operating conditions of RdiNet-0.79M of the present invention;
[0048] Fig.12It is a schematic diagram of the confusion matrix of the EOC-1 operating conditions of the RdiNet-0.79M of the present invention;
[0049] Fig.13 Schematic diagram of the confusion matrix of EOC-2 operating conditions of RdiNet-0.79M of the present invention. DETAILED DESCRIPTION
[0050] The specific implementation of the present invention is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described here is only used to illustrate and explain the present invention, and is not used to limit the present invention.
[0051] McaNet (Multi-branch Cross-channel Attention Network) is the convolutional neural network structure of all design space models in this paper. McaNet consists of two parts: fixed structure and variable structure. The network performance is mainly related to the variable structure responsible for feature extraction. Therefore, the design of the fixed structure in the network needs to be as simple as possible. Figure 1 As shown in the figure, the input r represents the image resolution, and 1 represents the number of image channels, and the same applies below. In the fixed structure, the Stem (network stem) structure is responsible for preprocessing the image input to the network, and the Head (network head) structure consists of a simple pooling layer and a fully connected layer, which plays the role of a classifier in the network.
[0052] The variable structure responsible for feature extraction in McaNet is called Body. Its structural design directly affects the feature extraction ability of the network, and its variability is controlled by the structural parameters shown in Table 1. Figure 1 As shown, the Body part contains 4 Stages (network stages). Figure 2 Each Stage consists of one Block-A (network block) and several Block-Bs. The number of Blocks contained in a single Stage is the structural parameter Depth (hereinafter referred to as d.).
[0053] like Figure 3 and Figure 4As shown in the figure, the difference between Block-A and Block-B lies in whether the resolution of the input image is modified by controlling the convolution kernel step size. The main convolution of both blocks is composed of several branches, each of which is the smallest variable unit of the design space variable structure. Its main structure is 2 1×1 convolution layers and 1 3×3 convolution layer. The number of output channels of the 3×3 convolution layer is the structural parameter Width (hereinafter referred to as w.). The size of w. is positively correlated with the amount of information extracted, and the convolution layer uses dilated convolution. The dilated convolution expands the receptive field of the convolution kernel without increasing the number of convolution kernel parameters. The dilated rate of the dilated convolution is controlled by Rs. The number of branches in the Block is controlled by the variable Rn, and the output feature map of the multi-branch is weighted by the cross-channel attention module to extract features. The large-scale receptive field of the multi-branch receptive field of the convolution kernel can extract the large texture features of the SAR image, while the small-scale receptive field can simultaneously extract the local details of the small texture features and the coherent speckle noise. The local details are then weighted through the cross-channel attention module, which alleviates the interference of the coherent speckle noise to a certain extent.
[0054] McaNet has a bottleneck structure. Bot_mul (hereinafter referred to as b.) is a structural parameter that controls the bottleneck ratio. Its role is reflected in adjusting the number of channels of some convolution kernels. The existence of the bottleneck structure can flexibly design the network and reduce the amount of calculation. It can functionally remove high-frequency noise, but it will also cause the feature map to lose some information. In the grouped convolution mechanism of McaNet, the structural parameter Groups (hereinafter referred to as g.) controls the number of groups of grouped convolution. A suitable grouped convolution mechanism can reduce the number of parameters and improve the model training speed. Table 1 shows several structural parameters and their value ranges.
[0055] McaNet joins Figure 3 , Figure 4 The bypass convolution structure design shown in the figure is that in Block-A of each Stage, the current input is converted to the same number of channels as w through a 1×1 convolution kernel of the bypass convolution on the right, and then the output tensor is added to the matrix element of the left trunk convolution output, while in Block-B, the input and the trunk output are added in a matrix element-by-matrix mapping manner. This structure can alleviate the gradient vanishing problem that is prone to occur in deep neural network training.
[0056] Table 1 Several structural parameters and their value ranges:
[0057]
[0058] The core idea of optimizing the design space is to analyze the quality of the design space by sampling a set of models from the design space and describing the resulting model accuracy distribution, and finally using the analyzed structural parameter rules as design rules. The analysis of the design space includes: (1) Using the design space sample analysis tool to analyze the structural parameter rules of the design space sample model. (2) Using the NEDF drawing tool to comprehensively evaluate the performance of the design space sample model and compare the performance changes. The design space sample analysis tool is a statistical tool used in the analysis process. It screens and analyzes the sample models of the design space. The design space principles presented are richer than those of NAS search for the best model or manual network design. The NEDF drawing tool introduces a method of dividing the intervals with complexity as weights, which can reduce the deviation of the overall evaluation of the design space. In the process of analyzing and optimizing the design space, the models randomly sampled from the design space will gradually improve their performance.
[0059] The design space can be used as a design rule by statistically analyzing the combination rules of structural parameters in the network structure. In the random sampling samples of the design space, the distribution of model performance composed of different structural parameters can be regarded as a normal distribution, and excellent structural design rules can be derived statistically. The principle of the design space sample analysis tool is to extract some excellent models from the sample models of the design space, and then perform a weighted average operation on a certain parameter of the extracted model set and generalize the result. The obtained design rule can be used as the design rule for optimizing the design space. In this paper, the optimal accuracy of the test set of the model is set as the weight for normalization by weighted averaging, as shown in Formula 1. Taking the structural parameter d as an example, where accuracy j With d j They represent the MSTAR test set accuracy and structural parameter d. of the current model respectively. The test set accuracy is used as the weight to estimate the optimal d. of the current Stage. As the design rule of an excellent model, generalization is performed after obtaining the average d. of the four Stages.
[0060] n is the number of models in the sample model.
[0061] The generalization process is the process of abstracting the results obtained by the design space sample analysis tool into design rules. The design of the generalization process is the key to the performance enhancement of the design space. In order to allow the subset of the design space to inherit the design rules while retaining a certain random optimization space, the design of the generalization process cannot be too loose or tight. After comprehensive consideration of the characteristics of SAR images, in order to maintain the low parameter characteristics of the model, the generalization process is determined to be a simple fitting based on local linear and piecewise functions. Taking d. as an example, after obtaining the mean d. of each stage of the sample model through the aforementioned weighted average method, it is indexed and arranged in units of Stage, and the parameter size relationship between each two d. is generalized as the design rule in three cases of rising, falling, and flat.
[0062] Evaluating the overall performance of the design space is to evaluate the comprehensive performance of all models. The statistical Empirical Distribution Function (sample distribution function) can analyze the performance of the entire design space. Its principle formula is shown in Formula 2, where e i is the error value of a certain model, that is, the difference between the accuracy of the MSTAR dataset test set and 100%, n is the number of sample models, e is the artificially set error limit, and F(e) is the proportion of models with an error value less than e.
[0063]
[0064] The function graph of the EDF function reflects the cumulative relationship between the model accuracy in the sample model error value and the parameter distribution. The NEDF function introduces weights to perform normalization operations when calculating the EDF function value to eliminate the fairness evaluation bias caused by other factors in the model. The NEDF function formula is shown in Formula 3, where w i is the weight of a single sample model, and the meanings of other variables are consistent with Formula 2.
[0065]
[0066] The weight of the sample model is obtained by dividing the complexity interval. Taking the design space with different sample model complexities as an example, the weight introduction process divides the complexity interval set on demand into k equal subintervals, and then the m that fall into the same subinterval (denoted as subinterval j) j The models have the same weights: This method ensures the correctness of normalization using weights.
[0067] In the NEDF function graph, the performance of the sample model when a certain error value is statistically calculated can be represented by the area of the graph surrounded by the NEDF function curve and the horizontal axis, as shown in Formula 4, where P is the performance value of the sample model estimated by NEDF, ∈ is the set upper limit of the integral error value, is the NEDF function value of the curve.
[0068]
[0069] The NEDF graph covers the performance comparison of sample models. Fig. 9 Taking the NEDF function graph shown in the figure as an example, the projection of any point on the function curve on the horizontal and vertical coordinates represents the proportion of the number of models in the design space that are less than or equal to a certain error value in the sample models of the corresponding design space. If the horizontal coordinate is set to a certain error value, the McaNetXE curve in the figure is always above the McaNetXD curve, which indicates that in the McaNetXE sample model, more models are counted into the interval with smaller error values; if the vertical coordinate is set to a certain ratio value, the McaNetXE curve in the figure is always on the left side of the McaNetXD curve, which indicates that after the models in the two sample model sets are arranged in ascending order by error value, the same proportion of models are taken from the model with the smallest error value. The maximum error of the sample model of McaNetXE is smaller than that of McaNetXD, so it can be considered that the sample model performance of McaNetXE is better than that of McaNetXD as a whole.
[0070] McaNetX is a collection of all design spaces in this paper. Its optimization operations can be simply summarized as design, sampling (training), and evaluation. Evaluation and design are the processes of using the statistical structure parameter laws of the design space tool as design laws and applying the design laws to the next design space, respectively. Sampling and training are the processes of randomly sampling quantitative models from the design space and training them with low time and low computational effort.
[0071] McaNetXA. According to the McaNet structural parameters and their value ranges, it can be estimated that there are (6*75*3*5*3*6) in McaNetXA 4 ≈2.18*10 20 This model structure does not contain any structural parameter constraint rules in this design space, so McaNetXA is the parent set of all subsequent design spaces.
[0072] McaNetXB. In this design space, the b. of each stage of McaNet is set to be the same. The purpose of this operation is to optimize the design space and simplify the design rules of the network. 1500 models are randomly sampled and trained from McaNetXA, using the same neural network settings, but the b. of each stage of the network is limited to be consistent. Figure 6 It can be seen that after fixing b of each Stage, the performance of the McaNetXB design space is close to that of the McaNetXA design space.
[0073] McaNetXC., based on McaNetXB, makes the g. of each Stage of McaNet the same. Appropriate g. can reduce the number of network parameters, reduce the cost of network training, and improve parallelization efficiency. Figure 7 It shows that fixed Groups have little impact on network performance.
[0074] The McaNetXD.XD design space optimizes the design of the variable structure of McaNet. We apply the design space sample analysis tool in 3.2.1 to analyze the structural parameter w. from the batch model trained by McaNetXC to obtain the design rules. Then the design rules are applied to the design of McaNetXC, that is, manually set the random sampling method to constrain w. to ensure its design rules. Figure 8 It can be seen that the proportion of high-accuracy models in design space XD is slightly higher than that in design space XC, but it is slightly behind XC in the middle of the curve and comparable in the low section. This result shows that applying the constraints of design rules on w. slightly increases the proportion of high-performance models in the sample models.
[0075] Next, we constrain the structural parameter d. We continue to use the same method as in analyzing w. to obtain the design rule, apply the rule to McaNetXD and randomly sample the model for training, thus obtaining the sample model of McaNetXE. Fig. 9 From the curve trend, we can see that the overall performance of the design space is improved in the high, medium and low segments, which shows that the constraint on d. effectively improves the performance of the model.
[0076] McaNetXF. This design space is the last design space of the McaNetX design space. The structural parameters that need to be fixed are Rs and Rn. The design of dilated convolution is added to the 3×3 convolution kernel of McaNet. The size and number of the receptive field of the convolution layer are controlled by Rn and Rs respectively, so Rs and Rn are fixed at the same time in McaNetXF. Consistent with the above, randomly sample McaNetXE and analyze Rs and Rn, and apply the obtained design rules to McaNetXF. Fig.10 As shown in Figure 3, we obtain results that are better than the previous design space again, which proves the effectiveness of McaNet's unique multi-branch hole convolution structure in the field of SAR image recognition.
[0077] In the previous article, we gradually discussed the design methods and principles from McaNetXA to McaNetXF (referred to as RdiNet in the following sections). By applying a series of design rules obtained from the design space analysis, we gradually sampled the McaNetX design space while improving the performance of the sample model and confirmed the effectiveness of statistical laws in guiding network design.
[0078] Among them, RdiNet-2.4M is one of the excellent models extracted from RdiNet, and its structural parameter data are shown in Table 2. In the MSTAR dataset experiment, the performance of the model is shown in Table 4, Table 5, and Table 6 respectively.
[0079] Table 2 RdiNet-2.4M structural parameters:
[0080] Model RdiNet-0.24M Parameter quantity 247925 Depth [3,3,2,1] Width [152,80,344,416] Bot_mul [1,1,1,1] Groups [8,8,8,8] R [1,3,1,3] Rs [1,11,1,9]
[0081] In order to verify the effectiveness of the proposed algorithm for SAR image target recognition, we use the MSTAR dataset to test the model. The pixel size of each image in the MSTAR dataset is 128×128, and the sample set is divided into standard operating conditions (SOC) and extended operating conditions (EOC). The sample set is generated under SAR acquisition conditions such as changing the imaging side angle, target posture, target model, etc., which poses great challenges to the target recognition algorithm.
[0082] The SOC condition contains 7 types of targets in 3 categories. The azimuth angles of the training set and the test set data are 17° and 15° respectively. The sample information of this data set includes 10 categories of targets. The total number of samples in the training set and the test set are 2747 and 3203 respectively.
[0083] The EOC condition includes two subsets, EOC-1 and EOC-2. The EOC-1 data set contains 4 types of ground targets, and the azimuth angles and sample numbers of the training set and the test set are 17°, 1195 and 30°, 1151 respectively. The large difference in azimuth between the test set and the training set leads to obvious image representation differences of the same posture of the same target in the training set and the test set, which is a small sample learning problem and requires a high generalization ability of the model. In the EOC-2 data set, the training set contains 996 images of 4 types of ground targets including T72, with an azimuth condition of 15°. The test set uses T72 targets of different serial number versions, with a total of 2710 images under the azimuth conditions of 15° or 17°. There are subtle feature differences between T72 targets of different serial number versions, and the T72 target type of the test set does not exist in the training set, which greatly increases the recognition difficulty. In summary, SOC, EOC-1, and EOC-2 require a high generalization ability of the model, and the recognition difficulty gradually increases. In this experiment, RdiNet was used to identify targets in the MSTAR dataset and a control group was set up. Each control group created sub-experiments based on SOC, EOC-1, and EOC-2 conditions. The PC hardware used in the experiment was based on Intel Xeno Gold 6240CPU and Tesla V100S GPU.
[0084] All experiments do not use data augmentation. Data augmentation is a method of expanding the number of data set samples by translation, rotation, noise addition, occlusion, etc. The experiment of the MSTAR data set is a small sample learning problem. Not using data augmentation is convenient for demonstrating the generalization ability and robustness of RdiNet for SAR target recognition problems.
[0085] RdiNet-0.79M is selected for the experiment, and its structural parameter data are shown in Table 3. The confusion matrix is a visualization tool for evaluating the target classification performance. Its rows correspond to the correct categories of the targets, while its columns correspond to the predicted category labels of the targets, and each element is the number of the corresponding target. Fig.11 , Fig.12 , Fig.13 The classification capabilities of the test set of RdiNet-0.79M under SOC, EOC-1, and EOC-2 conditions are shown in the form of confusion matrix. In order to compare the ability of RdiNet-0.79M and the optical convolutional neural network to perform SAR image recognition tasks, we compared them with the optical convolutional neural network under three types of operating conditions under the same training environment and conditions. As shown in Tables 4 and 5.
[0086] Table 3 Structural parameters of the model used in the experiment:
[0087] Structural parameters value Depth [2,3,2,1] Width [128,64,200,256] Bot_muls [1,1,1,1] Groups [8,8,8,8] R [1,2,1,2] Rs [1,5,1,6]
[0088] Table 4 SOC condition performance comparison table:
[0089] Network Type Parameter quantity / million Training time / second Test time / second Optimal accuracy / % ResNet-18 11.18 339.70 0.15 99.26 ResNext-50 23.00 922.04 0.44 98.92 DenseNet-121 6.96 803.35 0.65 99.38 VGG-11 128.78 610.84 0.05 95.46 SENet 1.23 289.55 0.15 92.82 SKNet 10.44 4338.52 0.47 96.70 A-CONVNet 0.30 165.88 0.05 98.73 RdiNet-0.79M 0.79 901.46 0.43 99.75 RdiNet-2.40M 2.40 1449.19 0.52 99.67
[0090] Table 5 EOC-1 condition performance comparison table:
[0091] Network Type Parameter quantity / million Training time / second Test time / second Optimal accuracy / % ResNet-18 11.18 223.75 0.08 99.22 ResNext-50 23.00 454.82 0.16 98.70 DenseNet-121 6.96 421.67 0.25 91.75 VGG-11 128.78 322.26 0.02 98.87 SENet 1.23 215.13 0.07 95.83 SKNet 10.44 1929.05 0.17 98.87 A-CONVNet 0.30 132.15 0.04 96.18 RdiNet-0.79M 0.79 530.04 0.22 99.48 RdiNet-2.40M 2.40 828.47 0.24 95.91
[0092] As shown in Tables 4 and 5, RdiNet-0.79M surpasses mainstream convolutional neural networks in target recognition tasks under the SOC and EOC-1 conditions with lower difficulty in the MSTAR dataset, with recognition accuracy rates of 99.75% and 99.48%. In the EOC-2 condition, which has higher requirements for model generalization ability, RdiNet-0.79M has improved its accuracy by 8.19% compared to ResNet, which has the most similar structural characteristics, with 3.16% of the parameters. RdiNet-0.79M also overfitted on EOC-2, and finally achieved the test set accuracy shown in Table 6 under the premise of applying Early-Stop. Table 6 EOC-2 condition performance comparison table:
[0093] Network Type Parameter quantity / million Training time / second Test time / second Optimal accuracy / % ResNet-18 11.18 225.30 0.14 87.13 ResNext-50 23.00 538.95 0.41 82.15 DenseNet-121 6.96 453.60 0.73 78.47 VGG-11 128.78 368.13 0.05 91.59 SENet 1.23 205.90 0.18 83.11 SKNet 10.44 2255.71 0.43 94.36 A-CONVNet 0.30 152.68 0.10 93.81 RdiNet-0.79M 0.79 591.29 0.48 95.32 RdiNet-2.40M 2.40 876.40 0.55 94.21
[0094] It will be understood by those skilled in the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as those generally understood by those skilled in the art in the art to which the present invention belongs. It should also be understood that terms such as those defined in common dictionaries should be understood to have meanings consistent with the meanings in the context of the prior art, and will not be interpreted with idealized or overly formal meanings unless defined as herein.
[0095] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.
Claims
1. A method for optimizing a convolutional neural network model design space McaNetX, characterized in that: The optimization method comprises the following steps: 1) Designing a basic structure of a feature extraction network according to the characteristics of SAR images and representing the basic structure using structural parameters; 2) using the design space sample analysis tool to analyze the structural parameter rules in step 2) as design rules; 3) Overall evaluate the performance of the sample models composed of models obtained by randomly sampling and training from the design space McaNetX, and compare the changes in performance; 4) Optimizing the design space McaNetX by the variation rules of the structural parameters in step 2); In the step 1), the basic structure is an McaNet multi-branch cross-channel attention network, wherein the McaNet multi-branch cross-channel attention network includes a fixed structure and a variable structure, and the structural parameters include structural parameters Depth, Width, Bot_mul and structural parameters Groups; The fixed structure includes a Stem network stem and a Head network head. The Stem network stem is responsible for preprocessing the image input into the McaNet multi-branch cross-channel attention network. The Head network head consists of a global pooling layer and a fully connected layer. The variable structure includes a Body network body, the Body network body includes 4 Stage network stages, each of the Stage network stages consists of 1 Block-A network block and several Block-B network blocks, and the number of Block blocks included in each Stage network stage is the structural parameter Depth; The backbone convolutions of the Block-A network block and the Block-B network block each include several branches and cross-channel attention modules, each branch is the smallest variable unit of the variable structure in the McaNet multi-branch cross-channel attention network, and each branch includes 2 1×1 convolutional layers and 1 3×3 convolutional layer; The number of output channels of the 3×3 convolution layer is the structural parameter Width, the size of the structural parameter Width is positively correlated with the amount of image feature information extracted by the neural network from the input image, and the 3×3 convolution layer adopts dilated convolution, the dilated convolution rate is controlled by the variable Rs, the number of branches in the Block-A network block and the Block-B network block is controlled by the variable Rn, and the output feature maps of several branches are weighted by the cross-channel attention module to extract features; The variable structure also includes a bottleneck structure. The structural parameter Bot_mul is a structural parameter for controlling the bottleneck ratio. The structural parameter Bot_mul adjusts the number of channels of some convolution kernels to achieve the purpose of controlling the bottleneck structure of the Body part of the network. In the group convolution mechanism of McaNet, the number of groups of group convolution is controlled by the structural parameter Groups. The variable structure also includes a bypass convolution structure, For the Block-A network block, the bypass convolution structure is to convert the current feature map input into the same number of channels as the structural parameter Width through a 1×1 convolution kernel of the right bypass convolution in each Stage Block-A, and then add the matrix elements of the left trunk convolution output of the output feature map; For the Block-B network block, the bypass convolution structure is to add the input and the trunk output by matrix elements; The method for analyzing the regularity of structural parameters in step 2) is: 2.1) Sort the sample models according to the test set accuracy, extract the top 10% of the total number of sorted sample models; obtain the MSTAR test set accuracy of the model with sequence number j in the sample model j and structural parameters, with MSTAR test set accuracy j The weighted average method is used to obtain the mean value of the structural parameters of the current Stage network stage, where the weighted average method formula is: Among them C i is the optimal structural parameter, C j is the structural parameter of the current model, n is the number of models in the sample model, and j is the sequence number of the model in the sample model; 2.2) The mean value C of the structural parameters of each stage network stage of the sample model is obtained by weighted average method i Then, the mean values of the structural parameters C i Arranged by the Stage network stage as the index, and summarized the mean C of each two optimal structural parameters in three cases: rising, falling, and flat i The relationship between the parameters is used as the design rule; In step 3), the performance of the entire design space is judged by the sample distribution function. First, the formula Calculate the sample distribution function F(e), where e i is the error value of a certain model, that is, the difference between the accuracy of the MSTAR dataset test set and 100%, n is the number of sample models, and e is the error limit set manually; then the weights are introduced through the NEDF function for normalization operation to eliminate the fairness evaluation bias caused by other factors of the model. The NEDF function formula is where w i is the weight of a single sample model; weight w i The introduction process divides the complexity interval set on demand into k equal subintervals, and the m that fall into the same subinterval numbered j' j’ The models have the same weights: Finally, the formula Estimate the performance value of the sample model. The larger the performance value P, the better the performance. P is the performance value of the sample model estimated by NEDF, and ∈ is the upper limit of the integral error value. is the NEDF function value of the curve, j' is the serial number of each interval in the k equal subintervals, and m is the number of sample models that fall into this complexity interval; In step 4), the design space set McaNetX includes McaNetXA, McaNetXB, McaNetXC, McaNetXD, McaNetXE, and McaNetXF, wherein McaNetXA is the parent set of all subsequent design spaces; For McaNetXB: Let the structural parameter Bot_mul of each Stage of the design space McaNet be the same. After fixing the structural parameter Bot_mul of each Stage, the performance of the McaNetXB design space is close to that of the McaNetXA design space. For McaNetXC: Based on McaNetXB, the structural parameter Groups of each Stage of the design space McaNet is made the same. Fixed Groups has little effect on the performance of the McaNet multi-branch cross-channel attention network. For McaNetXD: According to step 2), the structural parameter Width is analyzed to obtain the design rule, and then the design rule is applied to the design of McaNetXC, thereby obtaining the sample model of McaNetXD; For McaNetXE: According to step 2), the structural parameter Depth is constrained and analyzed to obtain the design rule, and then the rule is applied to McaNetXD and the model is randomly sampled for training, so as to obtain the sample model of McaNetXE; For McaNetXF: According to step 2), the structural parameters Rs and Rn are constrained and analyzed to obtain the design rules, and then the rules are applied to McaNetXE and the model is randomly sampled for training, so as to obtain the sample model of McaNetXF.
Citation Information
Patent Citations
Intelligent steel SLAG detection method and system based on convolutional neural network
AU2020102091A4
Space target ISAR range alignment method based on range migration trajectory
CN105676224A
