Farmland pest type identification method based on NEQR algorithm and deep learning
By combining the NEQR algorithm and deep learning, it solves the problems of low efficiency and insufficient adaptability of traditional pest monitoring methods, achieves fast, accurate and efficient farmland pest detection, adapts to complex environments and diverse pest types, and reduces hardware resource consumption.
Patent Information
- Application Number
- CN202410723689.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-05
- Publication Date
- 2024-09-24
AI Technical Summary
Traditional pest monitoring methods are inefficient, rely on experience, cannot effectively adapt to complex farmland environments and diverse pest species, and have insufficient big data processing and pattern recognition capabilities, resulting in lag in monitoring and adverse effects on agricultural production.
A farmland pest species identification method based on the NEQR algorithm and deep learning is used to achieve fast and accurate pest detection through image preprocessing, quantum state conversion, SqueezeNet neural network model training and back-propagation algorithm.
It improves the speed and accuracy of pest detection, optimizes the data processing process, reduces hardware resource consumption, and improves the adaptability and flexibility of detection.
Smart Images

Figure CN118692102A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of agricultural pest detection, and in particular to a method for identifying farmland pest species based on NEQR algorithm and deep learning. Background Art
[0002] In today's agricultural field, pests pose a serious threat to the growth and yield of crops. Traditional pest monitoring methods usually rely on manual patrols and simple insect catching equipment, which have the disadvantages of low efficiency, reliance on experience, and inability to cover large areas of farmland. At the same time, pest detection systems based on traditional computer algorithms are often slow and face accuracy challenges when processing large-scale data. The shortcomings of existing technologies include insufficient adaptability to complex farmland environments and diverse pest species, as well as limitations in big data processing and pattern recognition. This has led to a lag in pest monitoring and adverse effects on agricultural production. Although some advanced agricultural technologies have been introduced, problems in pest monitoring still exist, and an innovative solution is urgently needed to improve the efficiency, accuracy and intelligence of farmland pest detection.
[0003] In recent years, quantum computing has attracted widespread attention due to its potential advantages in dealing with large-scale computing problems. In particular, quantum image processing, as an application direction of quantum computing, can efficiently store and process images by utilizing the superposition and entanglement states of quantum bits. As a new quantum image representation method, the NEQR quantum algorithm provides higher spatial resolution and grayscale levels. However, how to combine these advantages of quantum computing with existing neural network technology to solve complex data processing problems remains a challenge. Summary of the invention
[0004] In order to overcome the above problems existing in the prior art, the present invention proposes a method for identifying farmland pest species based on NEQR algorithm and deep learning.
[0005] The technical solution adopted by the present invention to solve the technical problem is: a method for identifying farmland pest species based on NEQR algorithm and deep learning, comprising:
[0006] Step 1, image preprocessing: collect farmland pest image data and preprocess the images using standardized processing methods;
[0007] Step 2, convert the image obtained in step 1 into a quantum state using the NEQR model;
[0008] Step 3, build a SqueezeNet neural network model, divide the images obtained in step 2 into a training set and a test set, use the training set to train the SqueezeNet neural network model, use the back propagation algorithm to update the parameters, and adjust the model parameters according to the training results;
[0009] Step 4: Use the test set to verify the accuracy of the results, evaluate the performance of the SqueezeNet neural network model obtained in step 3, and output the optimal SqueezeNet neural network model;
[0010] Step 5, collect images of farmland with pests, and repeat steps 1-2 to process the images;
[0011] Step 6: Input the image obtained in step 5 into the SqueezeNet neural network model obtained in step 4 to identify the pest species.
[0012] In the above-mentioned method for identifying farmland pest species based on NEQR algorithm and deep learning, step 2 specifically includes:
[0013] Step 2.1, the specific calculation formula for quantum state initialization is:
[0014]
[0015] Where (x, y) represents the position of the pixel, f(x, g) represents the grayscale value of the pixel at that position, |xy> and |f(x, g)> are the quantum state representations of the position and grayscale value respectively; n represents a quantum bit, which is used to encode the position information of the pixel; |I> represents the initialization result of the quantum state;
[0016] Step 2.2, realization of quantum gate: use two Hadamard gates to operate the two quantum bits representing the coordinate information, and use several controlled NOT gates to entangle the position information and color information, and set the corresponding color value to obtain a grayscale image;
[0017] Step 2.3, binarization: binarize the grayscale image obtained in step 2.2, and slice the binarized image;
[0018] Step 2.4, NEQR quantum image representation:
[0019]
[0020] Where N is the number of bits of the image size, C(x,y) is the quantum representation of the pixel value at the (x,y) coordinate, and (x,y) is the coordinate of the pixel.
[0021] In the above-mentioned method for identifying farmland pest species based on NEQR algorithm and deep learning, step 2.3 specifically includes:
[0022]
[0023] Where t(x,y) represents the pixel value of the original image at (x,y), b(r,j) represents the binarization result of the block at the rth row and jth column; xstart and ystart represent the horizontal and vertical coordinates of the upper left corner of the image block, xend and yend represent the horizontal and vertical coordinates of the lower right corner of the image block; p represents the number of pixels; if the number of white pixels in the block is greater than or equal to half of the total number of blocks, it is regarded as the foreground, otherwise it is regarded as the background;
[0024] Arrange the pixels of each block into a row vector, and expand the row vector into a vector x of length (N×N+1); set the first bit in the vector to the checksum, arrange the indexes corresponding to all non-zero positions in order, and encode the vector:
[0025]
[0026] Where y represents the encoded vector, and m represents the number of non-zero values in x;
[0027] Write the entire encoding as a binary string.
[0028] The above-mentioned method for identifying farmland pest species based on NEQR algorithm and deep learning, the SqueezeNet neural network model in step 3 includes an input layer, a convolution layer, an activation function layer, a Fire module, and an output layer in sequence, the Fire module is provided with several layers, and a pooling layer is interspersed between the several layers of Fire modules. The Fire module includes two layers of convolution operations, one is a compression layer using a convolution kernel; the other is an expansion layer using a mixed use and convolution kernel.
[0029] In the above-mentioned method for identifying farmland pest species based on NEQR algorithm and deep learning, the updating formula of the back propagation algorithm in step 3 to update the network parameters is specifically:
[0030] Among them, represents the learning rate, which controls the step size of parameter update; Represents the partial derivative of the loss function with respect to the parameter; W: represents the weight parameter of the SqueezeNet model, which is a matrix in which each element represents the weight value connecting two neurons.
[0031] The beneficial effects of the present invention are: (1) Improving the speed of pest detection: This patent proposes to take advantage of quantum computing to speed up image processing and analysis through the NEQR quantum algorithm to achieve rapid pest detection;
[0032] (2) Improve the accuracy of image processing and pest identification: This patent improves the accuracy of image processing through quantum image representation and convolutional neural network design, and can more effectively identify pests from complex backgrounds;
[0033] (3) Optimizing data processing flow: This patent reduces information loss and improves the overall efficiency of data processing by optimizing the quantum image representation method and quantum computing process;
[0034] (4) Reduce hardware resource consumption: This patent uses the high efficiency of quantum computing to reduce hardware resource consumption in the pest detection process and achieve an environmentally friendly and cost-effective pest detection solution;
[0035] (5) Improved adaptability and flexibility: The quantum neural network model proposed in this patent has good adaptability and flexibility, and can quickly adapt to new pest detection needs through simple adjustments and training. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0037] Figure 1 It is a schematic diagram of the process of the present invention;
[0038] Figure 2 Schematic diagram of the SqueezeNet neural network model of the present invention;
[0039] Figure 3 Schematic diagram of the Fire module in the SqueezeNet neural network model of the present invention;
[0040] Figure 4 Preparing a circuit for quantum image of an embodiment of the present invention;
[0041] Figure 5 A quantum state representation of the grayscale value of an embodiment of the present invention;
[0042] Figure 6 It is a simple NEQR image in the embodiment of the present invention. DETAILED DESCRIPTION
[0043] In order to enable those skilled in the art to better understand the technical solution of the present invention, the present invention is described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0044] This embodiment discloses a method for identifying farmland pest species based on NEQR algorithm and deep learning. The specific process is as follows: Figure 1As shown. This embodiment uses Python to initialize the quantum state and implement the quantum gate, and uses MATLAB to simulate the training of the SqueezeNet model through transfer learning. The data set used in this embodiment is an image of size (277, 277, 3). Since the color and position of each image pixel are represented by classical numbers, this embodiment uses the NEQR encoding method to use quantum states and their coefficients to represent the pixel position and color information in the image.
[0045] In this embodiment, the quantum state is initialized and the quantum gate is realized in Qiskit. The quantum image preparation circuit of the present invention is as follows: Figure 4 As shown, the quantum state of the gray value is represented as Figure 5 As shown, the quantum image processing stages are as follows:
[0046] 1. Image preprocessing: In the image data preprocessing stage, the image is first standardized. The standardization formula is:
[0047]
[0048] Among them, x is the original image data, μ is the mean of the data, σ is the standard deviation, and x′ is the standardized data.
[0049] Resizing does not usually involve complex mathematical formulas. However, grayscaling is represented by the following formula, where (R, G, B) represents the values of the red, green, and blue channels respectively:
[0050] Gray=0.299R+0.587G+0.114B
[0051] The noise filtering process uses a Gaussian filter, and its formula is:
[0052]
[0053] Where (x,y) is the pixel location and σ is the standard deviation, which controls the width of the filter.
[0054] The present invention makes a cumulative distribution function mapping for the histogram of the original image. The cumulative distribution function is a function with gray levels from 0 to 255, which reflects the cumulative percentage of the number of pixels at the gray level to the total number of pixels in the image. For pixels with a gray level of k, the value of the CDF function represents the ratio of the number of pixels less than or equal to k to the total number of pixels. The formula is:
[0055]
[0056] Where i is gray level 0 to k, n(i) represents the number of pixels with gray value i in the image, and N is the total number of pixels in the image. By calculating the cumulative distribution function of each gray level, the image histogram can be equalized, thereby enhancing the image contrast and improving the visual effect.
[0057] 2. Initialization of quantum state: In the NEQR model, each pixel value of the image is directly encoded into the quantum state. The pixel value range of the image used in the present invention is (0, 2 q -1), the image size is 2 n ×2 n , using n+q quantum bits to represent this image, where n quantum bits are used to encode the position information of the pixel and q quantum bits are used to encode the grayscale value of the pixel. The initialization of the quantum state can be expressed as:
[0058]
[0059] Among them, (x, y) represents the position of the pixel, f(x, y) represents the grayscale value of the pixel at that position, and |xy> and |f(x, y)> are the quantum state representations of the position and grayscale value respectively.
[0060] 3. Implementation of quantum gate: The present invention uses two Hadamard gates to operate the two quantum bits representing the coordinate information, so that they become a superposition state with equal probability of |0> and |1>. Specifically, if the initial state is |Ψ0>=|00>, then after the H gate operation, the system state becomes:
[0061]
[0062] Then, by using several controlled NOT gates (2-CNOT gates), the position information and color information are entangled and the corresponding color value is set. ik , if c ik =0, no operation is required, because the initial state of the quantum bit is |0>. ik =1, then a 2-CNOT gate is needed to change the |0> state to the |1> state. The specific color setting operation can be expressed as:
[0063] |ψ2>=U 2-CNOT (|ψ1>)
[0064] Among them, U 2-CNOT According to the color value c ik Decide whether to apply the 2-CNOT gate operation. Figure 4 The image preparation circuit is given.
[0065] The grayscale value of each pixel can be represented by q bits. Then, the quantum state of a pixel can be represented as:
[0066]
[0067] Where (x, y) are the row and column coordinates of the pixel, respectively, f(x, y) is the grayscale value of the pixel with coordinates (x, y), and N represents the size of the blocks into which the image is divided. Figure 5 It is the quantum state representation of the gray value.
[0068] 4. NEQR quantum image representation: First, the grayscale image is binarized to obtain a binary image containing only 0 and 1. The binary image is divided into several blocks of size N×N. This process can be regarded as a slicing operation on the original image. After slicing, the size of each block is N×N, and a two-dimensional array can be used to store the pixel values of each block.
[0069] Assume that the width of the original image is W and the height is H. After dividing the image into blocks of size N×N, the horizontal direction can be divided into blocks, which can be divided vertically into blocks, a total of For the block at row r and column j (numbered from the upper left corner), the pixel range it contains is:
[0070] (x start , g start )=((r-1)×N+1,(j-1)×N+1)
[0071] (x end , g end )=(r×N,j×N)
[0072] The number of pixels in this block is:
[0073] p=N×N
[0074] The binarization result of this block is:
[0075]
[0076] Among them, t(x, g) represents the pixel value (0 or 1) of the original image at (x, g), and b(r, j) represents the binarization result (0 or 1) of the block at the rth row and jth column. If the number of white pixels (pixel value 1) in the block is greater than or equal to half of the total number of blocks, it is considered as the foreground (white), otherwise it is considered as the background (black).
[0077] It should be noted that each block should contain complete pixels. The last block may be smaller, but it should also be counted.
[0078] Then the pixels of each block are arranged into a row vector, and the row vector is expanded into a vector of length (N×N+1)
[0079] Let the row vector composed of all pixel values in the bth block be x b , then the feature vector of each block is:
[0080] f(x b )=[x b1 , x b2 , …, x b(N×N) , 1]
[0081] Among them, "1" is added to the end of the feature vector to implement the bias term.
[0082] If there are p blocks in the image, then by connecting the feature vectors of all blocks in the row direction, we can get a matrix of size p×(N×N+1), that is:
[0083]
[0084] This matrix F is the feature data set of all blocks. In machine learning and computer vision, the input of the problem is usually converted into a set of numerical features, which are then used to train or test the model. The above formula describes how to divide the binary image into several blocks, then arrange the pixels of each block into a row vector, and expand the row vector into a vector of length (N×N+1).
[0085] Then set the first bit in the vector to the checksum, and arrange the indexes corresponding to all non-zero positions in order as the main part of the encoding.
[0086] Before arranging the indexes corresponding to the non-zero positions of the vector in order, it is necessary to calculate the checksum of the vector. The method of calculating the checksum of the present invention is to obtain it by adding each element in the vector. The specific method is as follows:
[0087] Let vector x = [x1, x2, ..., x p ], then its checksum value can be calculated as:
[0088]
[0089] Assign the calculated checksum to the first element of vector x, that is:
[0090] x=[checksum,x2,···,x p ]
[0091] Next, arrange the subscripts of all non-zero elements in x in ascending order as the main part of the encoding. If the subscript starts from 0, the subscript of the dth non-zero element is k. d -1 where k d is the subscript of the d-th non-zero value in x (starting from 1).
[0092] Finally, the main part of the code is represented as an ordered vector idx containing non-zero valued indices {k1-1, k2-1, ..., k m -1}, where m is the number of non-zero values in x. The entire encoding process can be written as follows:
[0093]
[0094] Where y is the encoded vector.
[0095] Finally, the entire code is written as a binary string, with each 8 bits forming a byte, and finally the NEQR code vector is obtained in the form of a byte array.
[0096] First, the checksum is expressed in binary form and padded to 32 bits. Then, the non-zero subscripts are converted to binary strings from small to large, each subscript occupies log2(c) bits (where c represents the vector length), and all binary strings are concatenated in order. Then the two binary strings mentioned above are concatenated to form a total binary string. The binary string is then divided into groups of 8 bits each, and each group is converted into a byte. If the last group is less than 8 bits, zeros are added to the end until 8 bits are made up. The bytes finally obtained are the byte array representation of the NEQR encoded vector. The representation formula of the NEQR model is:
[0097]
[0098] Where N is the number of bits of the image size, C(x, g) is the quantum representation of the pixel value at the (x, y) coordinate, and (x, y) are the coordinates of the pixel.
[0099] In the NEQR model, in order to represent the grayscale value, a superposition of quantum states is required, and its formula can be refined as follows:
[0100]
[0101] Among them, f g (x, g) is the g-th bit in the binary representation of the grayscale value of the pixel with coordinates (x, g).
[0102] In the NEQR model, if we consider a 2 N ×2 N The image of pixels can be represented as:
[0103]
[0104] |r>=|y>|x>=|y n-1 y n-2 …y0>|x n-1 x n-2 …x0>,|y r >|x r >∈{0,1}.
[0105] If N = 1, the image can be obtained by Figure 6 express.
[0106] The specific training process of the SqueezeNet model is as follows:
[0107] 1. Model establishment: The pre-trained SqueezeNet model is transferred through learning. The height and width of the filter of the last learnable layer, that is, the last convolutional layer, are changed to (1, 1). The learning rate factors of the weight and bias are changed to 10. The training cycle is set to 75 rounds, the maximum number of iterations is set to 300, and other parameters are not changed for the time being. On the pre-processed data, the original input is processed through a series of layers such as convolution, pooling, and activation functions, and a certain number of feature maps are output. Feature screening and selection are performed on these feature maps.
[0108] (1) Input layer: For this model, the size of the input layer is (227, 227, 3), where the three values represent the height, width, and number of channels, respectively.
[0109] (2) Convolution operation: used to extract local features in an image. Each convolution layer consists of multiple convolution kernels. The feature map of the image can be obtained through the convolution operation. The formula for the convolution operation is:
[0110]
[0111] in, is the value of the feature map at position (h, j) in layer (1), is the weight of the convolution kernel, X (h+e)(j+f) is the pixel value of the input image at position (h+e, j+f), b (l) is the bias term and σ is the activation function.
[0112] (3) Pooling operation: Pooling refers to sampling the input feature map to reduce the size of the feature map while retaining important features. Because the feature contrast between normal road images and pothole road images is more obvious and the pothole images are more complex, showing more features, this model uses large pooling. The maximum pooling operation will retain the most obvious feature information and can reduce the size of the feature map. Its calculation method is as follows:
[0113]
[0114] Where S o and S j represents the position of the pooling window, and (e, f) is the relative position inside the window.
[0115] (4) Activation function: The activation function layer of this model uses the ReLU function, which is a piecewise linear function that selects the maximum value. Its formula is:
[0116] σ(z)=max(0,z)
[0117] Where z represents the input, and ReLU can make the output of some neurons become 0, thereby improving the sparsity of the neural network, avoiding overfitting, and accelerating the training speed.
[0118] (5) Output layer: The output layer is the last layer in the SqueezeNet model structure. In the classification task, the number of neurons in this layer corresponds to the classification category, and is followed by a softmax activation function to calculate the classification discrimination probability distribution of the input image in each category. After the softmax activation function is processed, the score of the network model for the input data is mapped to the interval (0, 1). The output of the softmax activation function is the classification discrimination probability of the network model for each category of the input sample. The expression of the softmax activation function is:
[0119]
[0120] Among them, Z w is the score of the network model for category W, a w is the predicted probability value of the input on category W. The maximum probability value of a w Determines the category of the prediction result and all a wThe sum is 1. During the training process, the network model can calculate the loss value of this training through the output probability distribution and the true label of the input sample. The loss value will be transmitted to each neuron node by the back propagation algorithm and the weight of each neuron node will be automatically adjusted. The process of network model training or learning is the process of iteratively updating the value of neuron weight by the forward propagation algorithm and the back propagation algorithm, so that the output of the network model is close to the one-hot encoding of the true label, that is, the loss value is as small as possible.
[0121] 3. Optimize parameters: adjust model parameters through training results to optimize the model. The present invention optimizes parameters through L2 regularization.
[0122] L2 regularization works by adding a term proportional to the sum of the squares of the weights to the loss function. Its purpose is to encourage the weights to be smaller and prevent the weight values from becoming too large, thereby preventing the model from overfitting. For the weight matrix W, the mathematical expression of the L2 regularization term is:
[0123]
[0124] λ is the regularization strength. Finally, the model performs best on this task when the initial learning rate is 0.001, the L2 regularization weight factor is 1, and the L2 regularization factor is 0.0001.
[0125] 4. Result measurement and analysis: When training the SqueezeNet model, the present invention uses the accuracy of the training set and the validation set and the cross entropy loss function value as indicators to decide whether to retain the model trained this time, so the training effect of the model is judged by accuracy. Let B be the total number of images, a be the number of images that the model can correctly classify, and use to represent accuracy. The accuracy is defined as follows:
[0126]
[0127] In the experiment, the present invention showed high accuracy, high precision and high recall in the detection tasks of multiple pest species, proving its effectiveness and accuracy in practical applications. In particular, the high value of the F1 score shows the excellent performance of the present invention in processing unbalanced data sets, which can maintain a high precision while ensuring the recall rate, further confirming the application value and practicality of the present invention in the field of farmland pest detection. In the specific experiment, we used a farmland insect database and information management system, which included a variety of common farmland pests such as aphids, borers, locusts, etc. When the method of the present invention was applied, these pest species were detected, and the final accuracy was as high as 98.6%, the precision reached 97.2%, the recall rate was 98.5%, and the F1 score was 98.3%. Based on the same database, using the ordinary method, that is, simply using the SqueezeNet model without combining the NEQR quantum algorithm, the accuracy was only 91.4%, the precision was 92.2%, the recall rate was 89.9%, and the F1 score was 91.2%. Through sharp data comparison, the outstanding advantages and great improvement of the present invention in farmland pest detection are more intuitively demonstrated.
[0128] The above embodiments are only exemplary embodiments of the present invention and are not intended to limit the present invention. Those skilled in the art may make various modifications or equivalent substitutions to the present invention within the essence and protection scope of the present invention, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present invention.
Claims
1. A method for identifying farmland pest species based on NEQR algorithm and deep learning, characterized in that: include: Step 1, image preprocessing: collect farmland pest image data and preprocess the images using standardized processing methods; Step 2, convert the image obtained in step 1 into a quantum state using the NEQR model; Step 3, build a SqueezeNet neural network model, divide the images obtained in step 2 into a training set and a test set, use the training set to train the SqueezeNet neural network model, use the back propagation algorithm to update the parameters, and adjust the model parameters according to the training results; Step 4: Use the test set to verify the accuracy of the results, evaluate the performance of the SqueezeNet neural network model obtained in step 3, and output the optimal SqueezeNet neural network model; Step 5, collect images of farmland with pests, and repeat steps 1-2 to process the images; Step 6: Input the image obtained in step 5 into the SqueezeNet neural network model obtained in step 4 to identify the pest species.
2. The method for identifying farmland pest species based on NEQR algorithm and deep learning according to claim 1, characterized in that: The step 2 specifically includes: Step 2.1, the specific calculation formula for quantum state initialization is: Where (x, y) represents the position of the pixel, f(x, y) represents the grayscale value of the pixel at that position, |xy> and |f(x, g)> are the quantum state representations of the position and grayscale value respectively; n represents a quantum bit, which is used to encode the position information of the pixel; |l> represents the initialization result of the quantum state; Step 2.2, realization of quantum gate: use two Hadamard gates to operate the two quantum bits representing the coordinate information, and use several controlled NOT gates to entangle the position information and color information, and set the corresponding color value to obtain a grayscale image; Step 2.3, binarization: binarize the grayscale image obtained in step 2.2, and slice the binarized image; Step 2.4, NEQR quantum image representation: Where N is the number of bits of the image size, C(x,y) is the quantum representation of the pixel value at the (x,y) coordinate, and (x,y) is the coordinate of the pixel.
3. The method for identifying farmland pest species based on NEQR algorithm and deep learning according to claim 2, characterized in that: The step 2.3 specifically includes: Where t(x,y) represents the pixel value of the original image at (x,y), b(r,j) represents the binarization result of the block at the rth row and jth column; start and start Indicates the horizontal and vertical coordinates of the upper left corner of the image block, x end and end represents the horizontal and vertical coordinates of the lower right corner of the image block; p represents the number of pixels; if the number of white pixels in the block is greater than or equal to half of the total number of blocks, it is considered as the foreground, otherwise it is considered as the background; Arrange the pixels of each block into a row vector, and expand the row vector into a vector x of length (N×N+1); set the first bit in the vector to the checksum, arrange the indexes corresponding to all non-zero positions in order, and encode the vector: Where y represents the encoded vector, and m represents the number of non-zero values in x; Write the entire encoding as a binary string.
4. The method for identifying farmland pest species based on NEQR algorithm and deep learning according to claim 1, characterized in that: The SqueezeNet neural network model in step 3 includes an input layer, a convolution layer, an activation function layer, a Fire module, and an output layer in sequence. The Fire module is provided with several layers, and a pooling layer is interspersed between the several layers of Fire modules. The Fire module includes two layers of convolution operations, one is a compression layer using a 1×1 convolution kernel; the other is an expansion layer using a mixture of 1×1 and 3×3 convolution kernels.
5. The method for identifying farmland pest species based on NEQR algorithm and deep learning according to claim 1, characterized in that: The update formula of the back propagation algorithm in step 3 to update the network parameters is specifically: Among them, α represents the learning rate, which controls the step size of parameter update; Represents the partial derivative of the loss function L with respect to the parameter W; W: represents the weight parameter of the SqueezeNet model, W: is a matrix in which each element represents the weight value connecting two neurons.
Citation Information
Patent Citations
Quantum image shearing method based on NEQR expression
CN106683041A
Digital image refinement method and device, equipment and storage medium
CN114820680A
Pest identification method based on deep learning, storage medium and electronic equipment
CN114926864A
Quantum image segmentation method based on gray morphology
CN116205931A
Cited By
Peony flower variety detection method based on improved NEQR quantum image recognition algorithm
CN122821374A
