A garbage image classification method based on transfer learning

By adding the compression excitation network and LeakyReLU activation function to the ShuffleNet V2 network, and using ImageNet weights for pre-training, the problem of low classification accuracy of the ShuffleNet V2 network is solved, achieving higher accuracy and faster inference speed.

CN114463578BActive Publication Date: 2024-10-01XIDIAN UNIV
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111681650.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-30
Publication Date
2024-10-01
Estimated Expiration
2041-12-30

AI Technical Summary

Technical Problem

In the existing technology, the accuracy of garbage image classification of the ShuffleNet V2 network is low, and there are few methods that are difficult to achieve fast inference speed while maintaining high accuracy.

Method used

On the basis of the ShuffleNet V2 network, the compression excitation network and LeakyReLU activation function are added to establish a garbage classification network model, and pre-training is carried out through the weight parameters of the ImageNet image data set, and the Flatten layer and the fully connected layer are added to improve the learning ability and operation of the network. speed.

Benefits of technology

The accuracy of garbage image classification is increased by 6.3%, and the total time-consuming is reduced by 35.4%, improving the network's performance in garbage image classification tasks.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114463578B_ABST
    Figure CN114463578B_ABST
Patent Text Reader

Abstract

The present invention discloses a garbage image classification method based on transfer learning, which improves the problem of low classification accuracy of ShuffleNet V2 network. The invention distributes the pre-processed garbage image data set into a training set and a validation set according to the ratio of N:M; according to the network model, a compression excitation network and a Leaky ReLU activation function are added, and a Flatten layer and a three-layer fully connected layer are added at the end to establish a garbage classification network model to obtain an initial classification neural network; the weight parameters in the ImageNet image data set are imported into the initial classification neural network, and the network is trained again; the garbage images are input into the trained classification neural network to obtain the garbage classification results. The technology adds a compression activation network, obtains the important features of each feature channel by learning, suppresses the features that are not important to the current task, enhances the ability of information exchange between channels, and improves the accuracy of the classification task.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of machine vision, and in particular to a garbage image classification method based on transfer learning. Background Art

[0002] With the continuous development of society and the improvement of human living standards, the amount of various types of domestic waste in residents' lives has increased dramatically. In order to improve the utilization rate of resources, it is particularly important to classify various types of waste in daily life.

[0003] In recent years, with the further development of image processing technology, image processing methods based on deep learning have been widely used in the field of image classification. Compared with traditional image processing methods, the application of deep learning networks in the field of image classification has strong generalization and higher classification accuracy. Therefore, deep learning technology is used for the task of classifying junk images.

[0004] However, deep learning models are complex, have many parameters, and require a lot of computation, which requires high computing power for the device. In order to ensure that the deep learning model can run normally on the mobile terminal and complete the task of junk image classification within an acceptable accuracy loss range, a lightweight network with fast reasoning speed and high classification accuracy is essential. In 2016, Forrest N. Iandola et al. proposed a lightweight network SqueezeNet, which uses a different convolution method from the traditional one to greatly reduce the number of parameters in the network structure, but its computational complexity is much higher than that of the AlexNet network, so the network time consumption increases. Google proposed the MobileNet series of lightweight networks, which not only reduces the number of network parameters, but also has a certain improvement in running speed. Although the ShuffleNet series of networks proposed by Megvii Technology has a faster running speed, its accuracy is insufficient. At present, there are relatively few methods that can meet the requirements of fast reasoning speed for junk image classification while achieving a high accuracy rate for junk image classification. Summary of the invention

[0005] In view of the deficiencies in the prior art, the present invention provides a junk image classification method based on transfer learning, which improves the low classification accuracy of the ShuffleNet V2 network in the prior art.

[0006] The technical solution of the present invention is to provide a garbage image classification method based on transfer learning with the following steps:

[0007] Step 1: Collect classified garbage images to obtain an initial garbage image dataset;

[0008] Step 2: Randomly crop the initial garbage image dataset to obtain an image of size 224×224, then randomly rotate it horizontally with a probability of 0.5, convert the image into a Tensor, and then normalize it;

[0009] Step 3: Distribute the preprocessed garbage image dataset into a training set and a validation set in a ratio of N:M;

[0010] Step 4. According to the ShuffleNet V2 network model, the compressed excitation network and the LeakyReLU activation function are added to establish a garbage classification network model, and a Flatten layer and three fully connected layers are added at the end to establish a garbage classification network model. From front to back, they are convolutional layer, BN layer, Leaky ReLU activation function, maximum pooling layer, stage2, compressed activation network, stage3, compressed activation network, stage4, compressed activation network, convolutional layer, BN layer, Leaky ReLU activation function, global pooling layer, Flatten layer, first fully connected layer, BN layer, second fully connected layer, BN layer and third fully connected layer to obtain the initial classification neural network;

[0011] Step 5: Import the weight parameters in the ImageNet image data set into the initial classification neural network, and then train the network to obtain a trained classification neural network;

[0012] Step 6: Input the garbage image into the trained classification neural network to obtain the garbage classification result.

[0013] Preferably, in step 2, the transforms.Resize() function in torchvision is called to change the input image size to 256×256, and then the transforms.CenterCrop() function is called to randomly crop the image to an image of 224×224 size, and then the transforms.ToTensor() function is called to convert the cropped image into a Tensor, and finally the transforms.Normalize() function is called to normalize the image.

[0014] Preferably, the convolution layer in step 4 is composed of a convolution kernel of size 3×3×112, whose padding depth is 0 and stride value is 2; in step 4, the nn.BatchNorm2d() function or nn.BatchNorm1d() function in torch is called to generate a BN layer to implement batch normalization; in step 4, the nn.LeakyReLU() function in torch is called to obtain the activation function Leaky ReLU, and the negative slope value is 0.001; the pooling window size of the maximum pooling layer in step 4 is 3×3, its padding depth is 1, and the stride value is 2.

[0015] Preferably, stage2, stage3 and stage4 in step 4 are all composed of shufflenet units, specifically including basic units and downsampling units, stage2 is composed of 1 downsampling unit and 3 basic units, stage3 is composed of 1 downsampling unit and 7 basic units, and stage4 is composed of 1 downsampling unit and 1 basic unit.

[0016] The downsampling unit contains the following steps:

[0017] 4.1.1. The image obtained in step 2 is input into the convolution operation of two branches. One branch performs 2 convolution operations, which are, from front to back, a DW convolution layer with a convolution kernel size of 3×3 and a stride of 2, a BN layer, a convolution layer with a convolution kernel size of 1×1, a BN layer, and a Leaky ReLU activation function; the other branch performs 3 convolution operations, which are, from front to back, a convolution layer with a convolution kernel size of 1×1, a BN layer, a Leaky ReLU activation function, a DW convolution layer with a convolution kernel size of 3×3 and a stride of 2, a BN layer, a convolution layer with a convolution kernel size of 1×1, a BN layer, and a Leaky ReLU activation function;

[0018] 4.1.2. Perform concat operation on the two branches to rearrange the channels to ensure the exchange of information between channels;

[0019] 4.1.3. Get the output result after channel shuffle;

[0020] The basic unit contains the following steps:

[0021] 4.2.1. Split the input channel into two branches by channel splitting;

[0022] 4.2.2. For the two branches, one of them remains unchanged and performs the same mapping, while the other branch performs three convolution operations, from front to back: a convolution layer with a kernel size of 1×1, a BN layer, a Leaky ReLU activation function, a DW convolution layer with a kernel size of 3×3 and a stride of 1, a BN layer, a convolution layer with a kernel size of 1×1, a BN layer, and a Leaky ReLU activation function;

[0023] 4.2.3. Perform concat operation on the two branches to rearrange the channels to ensure the exchange of information between channels;

[0024] 4.2.4. Get the output result after channel shuffle.

[0025] Preferably, the compression excitation network in step 4 includes a Squeeze operation, an Excitation operation and a Scale operation.

[0026] Step 4.3.1. X∈R W '×H' ×C ' is the input width, first through the convolution mapping transformation F tr We get U∈R W×H×C ;

[0027] Step 4.3.2: Execute Squeeze operation F sq (·), and the global compression amount of the current feature map is obtained through GlobalAveragePooling, that is:

[0028]

[0029] Step 4.3.3. Execute Excitation operation F ex (·,W) obtains the weights of different channels in the feature map, namely:

[0030] s=F ex (z,W)=σ(g(z,W))=σ(W2δ(W1z))

[0031] Step 4.3.4: After Scale operation F scale (·,·) weighted to get the final feature The calculation process of the elements is as follows:

[0032]

[0033] Preferably, the pooling window size of the global pooling layer in step 4 is 7×7; the first fully connected layer and the second fully connected layer in step 4 both use ReLU as the activation function, call the nn.Linear() function in torch to implement it, and the output dimension is 1024; the third fully connected layer in step 4 uses Softmax as the activation function, and the output dimension is 40, representing 40 types of junk images.

[0034] Preferably, said step 5 comprises the following steps:

[0035] Step 5.1, import the weight parameters in the ImageNet image dataset into the initial classification neural network, and freeze the weight parameter values ​​of each layer except the fully connected layer;

[0036] Step 5.2: Train the initial classification neural network using the training set and the validation set, using the SGD optimizer with a momentum value of 0.9 and a weight_decay value of 0.0001 to iterate the weight parameters of each layer of the network;

[0037] Step 5.3, until the output accuracy of the classification neural network no longer improves, a trained classification neural network is obtained.

[0038] Compared with the prior art, the junk image classification method based on transfer learning of the present invention has the following advantages: on the basis of the existing ShuffleNet V2 neural network, a compression activation network (Squeeze and Excitation network) is added, and the important features of each feature channel are obtained by learning, and the features that are not important to the current task are suppressed, and the ability of information exchange between channels is enhanced, thereby improving the accuracy of the classification task. At the same time, the Leaky ReLU activation function is adopted to retain negative value information and solve the problem of neuron necrosis in the ReLU function. In addition, the Flatten layer is added to perform dimensionality reduction processing on the data, so as to speed up the operation speed. The first fully connected layer and the second fully connected layer are added to calculate 1024 intermediate features, and the third fully connected layer is added to output 40 lighter categories, so as to enhance the learning ability of the classification network for features. And the classification network is pre-trained using the model weights provided by ImageNet, so as to improve the training speed and enhance the learning ability of the network model in the classification task; compared with the prior art, this technology can improve the effect of image classification, and finally the classification accuracy is improved by 6.3% compared with the original ShuffleNet V2, and the total time consumption is reduced by 35.4%. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] Figure 1 It is a specific flow chart of the present invention;

[0040] Figure 2It is a schematic diagram of the comparison results of the accuracy of the present invention under different network classifications;

[0041] Figure 3 This is a schematic diagram of the comparison results of various types of junk image classification indicators. DETAILED DESCRIPTION

[0042] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0043] The following is a further description of the garbage image classification method based on transfer learning of the present invention in conjunction with the accompanying drawings and specific implementation methods: As shown in the figure, the specific steps in this embodiment are as follows:

[0044] S1, collect the classified garbage images to obtain the initial garbage image dataset;

[0045] S2. Call the transforms.Resize() function in torchvision to change the input image size to 256×256. For the initial garbage image dataset, call the transforms.CenterCrop() function to randomly crop it to get an image of size 224×224. Then perform a random horizontal rotation with a probability of 0.5. Call the transforms.ToTensor() function to convert the image to Tensor, and then call the transforms.Normalize() function for normalization.

[0046] S3, the preprocessed garbage image dataset is divided into a training set and a validation set according to the ratio of N:M, where N is 90% and M is 10%;

[0047] S4. According to the ShuffleNet V2 network model, a squeeze and excitation network and a leaky ReLU activation function are added to establish a garbage classification network model. From front to back, they are convolution layer, BN layer (Batch Normalization), leaky ReLU activation function, maximum pooling layer, stage2, squeeze activation network, stage3, squeeze activation network, stage4, squeeze activation network, convolution layer, BN layer (Batch Normalization), leaky ReLU activation function, global pooling layer, Flatten layer, first fully connected layer, BN layer, second fully connected layer, BN layer and third fully connected layer to obtain the initial classification neural network.

[0048] S5, import the weight parameters in the ImageNet image data set into the initial classification neural network to freeze the weight parameter values ​​of each layer except the fully connected layer; train the initial classification neural network through the training set and the validation set, wherein the SGD optimizer with a momentum value of 0.9 and a weight_decay value of 0.0001 is used to iterate the weight parameters of each layer of the network; until the output accuracy of the classification neural network no longer improves, a trained classification neural network is obtained;

[0049] S6. Input the garbage image into the trained classification neural network to obtain the garbage classification result.

[0050] The convolution layer in step S4 is composed of a convolution kernel of size 3×3×112, with a padding depth of 0 and a stride value of 2. Call the nn.BatchNorm2d() function or nn.BatchNorm1d() function in torch to generate a BN layer to implement batch normalization and prevent gradient disappearance or explosion. Call the nn.Leaky ReLU() function in torch to obtain the activation function Leaky ReLU, and the negative slope value is 0.001. The pooling window size of the maximum pooling layer is 3×3, with a padding depth of 1 and a stride value of 2. stage2, stage3 and stage4 are all composed of shufflenet units, specifically including basic units and downsampling units. stage2 is composed of 1 downsampling unit and 3 basic units, stage3 is composed of 1 downsampling unit and 7 basic units, and stage4 is composed of 1 downsampling unit and 1 basic unit.

[0051] The downsampling unit contains the following steps:

[0052] S4.1.1. The image obtained in step 2 is input into the convolution operation of two branches. One branch performs 2 convolution operations, which are, from front to back, a DW convolution layer with a convolution kernel size of 3×3 and a stride of 2, a BN layer, a convolution layer with a convolution kernel size of 1×1, a BN layer, and a Leaky ReLU activation function. The other branch performs 3 convolution operations, which are, from front to back, a convolution layer with a convolution kernel size of 1×1, a BN layer, a Leaky ReLU activation function, a DW convolution layer with a convolution kernel size of 3×3 and a stride of 2, a BN layer, a convolution layer with a convolution kernel size of 1×1, a BN layer, and a Leaky ReLU activation function;

[0053] S4.1.2. Perform concat operation on the two branches to rearrange the channels to ensure the exchange of information between channels;

[0054] S4.1.3. Get the output result after channel shuffle.

[0055] The basic unit contains the following steps:

[0056] S4.2.1, split the input channel into two branches by channel split;

[0057] S4.2.2. For two branches, one of them remains unchanged and performs the same mapping, while the other branch performs three convolution operations, from front to back: a convolution layer with a kernel size of 1×1, a BN layer, a Leaky ReLU activation function, a DW convolution layer with a kernel size of 3×3 and a stride of 1, a BN layer, a convolution layer with a kernel size of 1×1, a BN layer, and a Leaky ReLU activation function;

[0058] S4.2.3, perform concat operation on the two branches to rearrange the channels to ensure the exchange of information between channels;

[0059] S4.2.4. The output result is obtained after channel shuffle.

[0060] The compression excitation network in step S4 includes a Squeeze operation, an Excitation operation and a Scale operation.

[0061] Step 4.3.1. X∈R W '×H' ×C ' is the input width, first through the convolution mapping transformation F tr We get U∈R W×H×C ;

[0062] Step 4.3.2: Execute Squeeze operation F sq(·), and the global compression amount of the current feature map is obtained through GlobalAveragePooling, that is:

[0063]

[0064] Step 4.3.3. Execute Excitation operation F ex (·,W) obtains the weights of different channels in the feature map, namely:

[0065] s=F ex (z,W)=σ(g(z,W))=σ(W2δ(W1z))

[0066] Step 4.3.4: After Scale operation F scale (·,·) weighted to get the final feature The calculation process of the elements is as follows:

[0067] The pooling window size of the global pooling layer in step S4 is 7 × 7. The first fully connected layer and the second fully connected layer both use ReLU as the activation function and call the nn.Linear() function in torch to implement them, and the output dimension is 1024. The third fully connected layer uses Softmax as the activation function and the output dimension is 40, representing 40 types of junk images.

[0068] Experimental results and analysis:

[0069] 1. The experimental development environment is shown in the following table:

[0070] Configuration name CPU Intel(R)Core(TM)i5-7500 clock speed 3.40GHz Memory 8GB operating system Windows 10 64 bit Development Environment Python 3.6 Deep Learning Frameworks PyTorch Integrated Development Tools Pycharm2020.2.5

[0071] 2. Experimental Dataset

[0072] This paper uses a dataset from the Huawei Cloud Artificial Intelligence Competition Garbage Classification Challenge Cup Public Dataset. The garbage classification dataset in this paper contains a total of 14,683 garbage images, which are divided into 4 categories and include 40 categories. The dataset contains common garbage categories in daily life, such as: kitchen waste such as vegetable leaves and roots, eggshells and leftovers, recyclable garbage such as glass cups, power banks, wine bottles and plastic toys, other garbage such as toothpicks, bamboo chopsticks and disposable fast food boxes, and hazardous waste such as dry batteries, expired medicines and ointments. In addition, in order to improve the generalization ability of the model, the image data is preprocessed.

[0073] 3. Experimental results and analysis

[0074] like Figure 2As shown in the figure, the classification accuracy of different networks is compared by designing experiments. It can be seen that when the method of the present invention is used, the classification accuracy of the classification network is higher and the garbage classification task can be better completed. Figure 3 As shown in the figure, the diamond points represent the precision, which are all greater than 0.6 and concentrated in the range of 0.8 to 1.0. The triangle points represent the recall, which is concentrated in the range of 0.7 to 1.0. It can be seen that the model comprehensively considers the two indicators of precision and recall, and its performance is good.

[0075] The present invention adds a squeeze and excitation network on the basis of the existing ShuffleNet V2 neural network, obtains the important features of each feature channel by learning, suppresses the features that are not important to the current task, enhances the ability of information exchange between channels, and thus improves the accuracy of the classification task. At the same time, the Leaky ReLU activation function is adopted to retain negative information and solve the problem of neuron necrosis in the ReLU function. In addition, the Flatten layer is added to perform dimensionality reduction processing on the data, so as to speed up the operation. The first fully connected layer and the second fully connected layer are added to calculate 1024 intermediate features, and the third fully connected layer is added to output 40 lighter categories, so as to enhance the learning ability of the classification network for features. The classification network is pre-trained using the model weights provided by ImageNet, so as to improve the training speed; it can be seen from the experimental results that compared with the ShuffleNet V2 network, the improved network model can improve the effect of image classification, and the classification accuracy is finally improved by 6.3% compared with the original ShuffleNet V2, and the total time consumption is reduced by 35.4%.

[0076] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A garbage image classification method based on transfer learning, characterized by: Contains the following steps: Step 1: Collect classified garbage images to obtain an initial garbage image dataset; Step 2: Randomly crop the initial garbage image dataset to obtain an image of size 224×224, then randomly rotate it horizontally with a probability of 0.5, convert the image into a Tensor, and then normalize it; Step 3: Distribute the preprocessed garbage image dataset into a training set and a validation set in a ratio of N:M; Step 4. According to the ShuffleNet V2 network model, the compressed excitation network and the LeakyReLU activation function are added to establish a garbage classification network model, and a Flatten layer and three fully connected layers are added at the end to establish a garbage classification network model. From front to back, they are convolutional layer, BN layer, Leaky ReLU activation function, maximum pooling layer, stage2, compressed activation network, stage3, compressed activation network, stage4, compressed activation network, convolutional layer, BN layer, Leaky ReLU activation function, global pooling layer, Flatten layer, first fully connected layer, BN layer, second fully connected layer, BN layer and third fully connected layer to obtain the initial classification neural network; Among them, stage2, stage3 and stage4 are all composed of shufflenet units, including basic units and downsampling units. Stage2 consists of 1 downsampling unit and 3 basic units, stage3 consists of 1 downsampling unit and 7 basic units, and stage4 consists of 1 downsampling unit and 1 basic unit. The downsampling unit contains the following steps: 4.1.

1. The image obtained in step 2 is input into the convolution operation of two branches. One branch performs 2 convolution operations, which are, from front to back, a DW convolution layer with a convolution kernel size of 3×3 and a stride of 2, a BN layer, a convolution layer with a convolution kernel size of 1×1, a BN layer, and a Leaky ReLU activation function; the other branch performs 3 convolution operations, which are, from front to back, a convolution layer with a convolution kernel size of 1×1, a BN layer, a Leaky ReLU activation function, a DW convolution layer with a convolution kernel size of 3×3 and a stride of 2, a BN layer, a convolution layer with a convolution kernel size of 1×1, a BN layer, and a Leaky ReLU activation function; 4.1.

2. Perform concat operation on the two branches to rearrange the channels to ensure the exchange of information between channels; 4.1.

3. Get the output result after channel shuffle; The basic unit contains the following steps: 4.2.

1. Split the input channel into two branches by channel splitting; 4.2.

2. For the two branches, one of them remains unchanged and performs the same mapping, while the other branch performs three convolution operations, from front to back: a convolution layer with a kernel size of 1×1, a BN layer, a Leaky ReLU activation function, a DW convolution layer with a kernel size of 3×3 and a stride of 1, a BN layer, a convolution layer with a kernel size of 1×1, a BN layer, and a Leaky ReLU activation function; 4.2.

3. Perform concat operation on the two branches to rearrange the channels to ensure the exchange of information between channels; 4.2.

4. Get the output result after channel shuffle; Step 5: Import the weight parameters in the ImageNet image data set into the initial classification neural network, and then train the network to obtain a trained classification neural network; Step 6: Input the garbage image into the trained classification neural network to obtain the garbage classification result.

2. The garbage image classification method based on transfer learning according to claim 1 is characterized in that: In step 2, the transforms.Resize() function in torchvision is called to change the input image size to 256×256, and then the transforms.CenterCrop() function is called to randomly crop the image to an image of 224×224 size, and then the transforms.ToTensor() function is called to convert the cropped image to Tensor, and finally the transforms.Normalize() function is called to normalize the image.

3. The garbage image classification method based on transfer learning according to claim 1, characterized in that: The convolution layer in step 4 is composed of a convolution kernel of size 3×3×112, with a padding depth of 0 and a stride value of 2; in step 4, the nn.BatchNorm2d() function or the nn.BatchNorm1d() function in torch is called to generate a BN layer to implement batch normalization; in step 4, the nn.Leaky ReLU() function in torch is called to obtain the activation function Leaky ReLU, and the negative slope value is 0.001; the pooling window size of the maximum pooling layer in step 4 is 3×3, with a padding depth of 1 and a stride value of 2.

4. The garbage image classification method based on transfer learning according to claim 1 is characterized in that: The compression excitation network in step 4 includes a Squeeze operation, an Excitation operation, and a Scale operation. Step 4.3.

1. X∈R W'×H'×C' is the input width, first through the convolution mapping transformation F tr We get U∈R W×H×C ; Step 4.3.2: Execute Squeeze operation F sq (·), and the global compression amount of the current feature map is obtained through GlobalAveragePooling, that is: Step 4.3.

3. Execute Excitation operation F ex (·,W) obtains the weights of different channels in the feature map, namely: s=F ex (z,W)=σ(g(z,W))=σ(W2δ(W1z)) Step 4.3.4: After Scale operation F scale (·,·) weighted to get the final feature The calculation process of the elements is as follows:

5. The garbage image classification method based on transfer learning according to claim 1, characterized in that: The pooling window size of the global pooling layer in step 4 is 7×7; the first fully connected layer and the second fully connected layer in step 4 both use ReLU as the activation function, call the nn.Linear() function in torch to implement, and the output dimension is 1024; the third fully connected layer in step 4 uses Softmax as the activation function, and the output dimension is 40, representing 40 types of junk images.

6. The garbage image classification method based on transfer learning according to claim 1, characterized in that: The step 5 comprises the following steps: Step 5.1, import the weight parameters in the ImageNet image dataset into the initial classification neural network, and freeze the weight parameter values ​​of each layer except the fully connected layer; Step 5.2: Train the initial classification neural network using the training set and the validation set, using the SGD optimizer with a momentum value of 0.9 and a weight_decay value of 0.0001 to iterate the weight parameters of each layer of the network; Step 5.3, until the output accuracy of the classification neural network no longer improves, a trained classification neural network is obtained.