Single-pixel target image fast recognition method in weak light environment

By optimizing the convolution kernel weights through a fully convolutional residual network model and Kronecker product operation, the problem of insufficient recognition accuracy of single-pixel detection in low-light environments is solved, achieving efficient target recognition, especially significantly improving the recognition accuracy at low sampling rates.

CN118135320BActive Publication Date: 2026-11-24BEIJING INST OF TECH
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410312831.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-19
Publication Date
2026-11-24
Estimated Expiration
2044-03-19

AI Technical Summary

Technical Problem

Existing single-pixel target detection and recognition algorithms have insufficient recognition accuracy in low-light environments, suffer from data redundancy, and have slow recognition speed.

Method used

By employing a fully convolutional residual network model combined with Kronecker product and convolution kernel weight matrix, and optimizing the convolution kernel weight through preprocessing and loss function constraints, an integrated detection and recognition network model is established. This model incorporates spatial information, reduces data redundancy, and improves recognition accuracy.

Benefits of technology

It improves target recognition accuracy and speed in low-light environments, reduces data redundancy, and enhances recognition accuracy, especially significantly improving recognition performance at low sampling rates.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118135320B_ABST
    Figure CN118135320B_ABST
Patent Text Reader

Abstract

This invention belongs to the field of image data processing, specifically relating to a method for rapid recognition of single-pixel target images in low-light environments. The method includes: S1, preprocessing the initial single-pixel target image; S2, acquiring the target image using a single-pixel detector and obtaining the target image detection result using the Kronecker product algorithm; S3, establishing a fully convolutional residual network model and combining it with convolutional layers to obtain an integrated detection and recognition network model for recognizing the target image encoding matrix; and S4, using the integrated detection and recognition network model to complete the detection and recognition of the target image. This invention effectively achieves deep learning of target features, reduces data redundancy, and improves recognition accuracy. The designed fully convolutional residual network can achieve rapid target classification without a deep and complex network model. The introduction of spatial information enables higher classification and recognition accuracy at the same sampling rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of image data processing, and specifically relates to a method for rapid recognition of single-pixel target images in low-light environments. Background Technology

[0002] Single-pixel imaging is an image data processing technique that uses a series of modulation masks to modulate the target scene and uses single-pixel detectors to acquire the total intensity of the filtered light field. After acquiring a small number of single-pixel measurements, a reconstruction algorithm is used to reconstruct the target scene image. In the non-visible light band, which is difficult to detect with array-based detectors, single-pixel imaging has the characteristics of strong robustness, high sensitivity, and strong anti-interference ability, and is suitable for low-light and long-distance scene perception. Based on the unique mechanism of single-pixel detection, single-pixel detector values ​​containing only target location information are obtained by modulating speckle. Target recognition can be performed directly, omitting the image association and reconstruction process. This reduces the acquisition of target features and background information, which are often redundant, and enables fast target recognition without an image at low sampling rates.

[0003] In fast target recognition using single-pixel detection, two key factors affecting recognition speed are the number of single-pixel samples (i.e., the number of speckles) and the target recognition algorithm. Numerous researchers have proposed a series of methods, including Hadamard matrices with different sorting methods, Fourier speckle matrices, and deep learning-based convolutional speckle, to optimize measurement illumination speckle. In the intelligent algorithm for single-pixel detection target recognition, convolutional networks and fully connected networks are used to directly train and classify single-pixel detections. Classification of Fashion MNIST at low sampling rates has been achieved, but the algorithm still suffers from significant data redundancy, and accuracy can be further improved. Summary of the Invention

[0004] To address the shortcomings of existing technologies, this invention provides a method for rapid recognition of single-pixel target images in low-light environments. This method effectively performs deep learning of target features, reduces data redundancy, and improves recognition accuracy. The designed fully convolutional residual network can perform rapid target classification without requiring a deep and complex network model. The introduction of spatial information enables it to achieve higher classification and recognition accuracy at the same sampling rate.

[0005] To achieve the above objectives, the present invention discloses the following technical solution:

[0006] A method for fast recognition of single-pixel target images in low-light environments, comprising:

[0007] S1: Preprocess the initial single-pixel target image;

[0008] Acquire the initial single-pixel target image, perform preprocessing operations, and obtain target images in low-light and long-distance environments;

[0009] S2: Obtain target image information through a single-pixel detector, and use the Kronecker integration algorithm to obtain the target image detection result;

[0010] S21: Generate convolutional kernel weights using a random number seed. During network training, use a loss function to binarize the convolutional kernel weights. Use the convolutional kernel weight matrix as the required small-sized convolutional speckle. Perform an inner product between the convolutional kernel weight matrix and the initial single-pixel target image to obtain the single-pixel detection value matrix, as follows:

[0011]

[0012] Among them, B (a,b) This represents the value in row a and column b of the single-pixel detection value matrix; where a is the row number of the single-pixel detection value matrix and b is the column number of the single-pixel detection value matrix. Size is the size of the target image; N is the size of the small-size convolutional speckle. The weights at the corresponding positions of the convolution kernel; T (a,b) (x,y) represents the pixels in the (a,b) region of the target image scene, where matrix T (a,b) With matrix They are of equal size; x is the position value of the row of the initial single-pixel target image; y is the position value of the column of the initial single-pixel target image;

[0013] S22: The target image encoding matrix is ​​obtained by performing a Kronecker product operation between the convolution kernel weight matrix and the single-pixel detection value matrix, and is used as the detection result of the target image; the target image encoding matrix is:

[0014]

[0015] Among them, S i S is the encoding matrix for the i-th target image; i is the index of the target image encoding matrix, i = 1, 2, ..., m; m is the number of convolution kernels; S = [S1, S2, ..., S...]. m ] represents the target image encoding matrix sequence; B i 'This is the matrix of the i-th single-pixel detection values ​​carrying noise; Let be the weight matrix of the i-th convolutional kernel;

[0016] S3: Establish a fully convolutional residual network model and combine it with convolutional layers to obtain an integrated detection and recognition network model, which is used to recognize the target image coding matrix;

[0017] The accuracy of target image recognition in low-light and long-distance environments is improved by designing a fully convolutional residual network model. The fully convolutional residual network model consists of a large-scale feature extraction module, a feature extraction downsampling module, and a classification module. The convolutional layer in step S21 is combined with the fully convolutional residual network model to form an integrated detection and recognition network model. The detection result of the target image in step S22 is used as the input to the fully convolutional residual network model. The loss function constraint formula of the integrated detection and recognition network model is:

[0018]

[0019] Where Loss is the total loss function of the fully convolutional residual network model; L NLL y is the cross-entropy loss for a batch dataset; Loss_1 is the binarization constraint function for convolutional speckle; μ is the regularization parameter controlling the relationship between the loss function and the binary regularizer; n is the number of samples in a batch; C is the number of classes; y lc Let y′ be the actual class distribution of the l-th sample; lc c represents the predicted class probability distribution for the l-th sample; l is the sample number; c is the class number. The measurement matrix has m rows, where the i-th row represents different values. The convolution kernel weight matrix, Φ i,j The value in the i-th row and j-th column;

[0020] S4: Use an integrated detection and recognition network model to complete the detection and recognition of target images;

[0021] Obtain the integrated detection and recognition network model from step S3, train it, optimize the SGD optimizer parameters, dynamic parameters, L2 regularization coefficient and learning rate hyperparameter, save the network model structure and training weights, and use the integrated detection and recognition network model for the detection and recognition of target images.

[0022] Preferably, the preprocessing operation in step S1 is as follows:

[0023] For the initial single-pixel target image, the pixel value of the target image is reduced to simulate the target image in a low-light environment. Then, it is uniformly expanded to a standard set size. Finally, the target image is horizontally flipped and the mean is normalized. This is the target image enhancement step to conform to the low-pixel target image in the case of long distance.

[0024] The step of reducing the pixel value of the target image is as follows:

[0025] T = T′ * factor;

[0026] Where factor is the reduction factor; T is the grayscale image matrix after the reduction operation; T′ is the grayscale image matrix before the reduction operation;

[0027] The horizontal flipping step is as follows:

[0028]

[0029] Where, x * y represents the position value of the row after the target image is horizontally flipped; * G represents the column position value after the target image is horizontally flipped; G is the row number of the target image.

[0030] The mean-normalized target image step is as follows:

[0031] T = (T / 255 - mean) / std;

[0032] Where mean is the target image mean; std is the target image standard deviation.

[0033] Preferably, the single-pixel detection value matrix in step S21 needs to have random Gaussian noise added to improve the anti-interference capability during the actual detection process. Specifically:

[0034]

[0035] Where μ1 is the mean of the Gaussian noise; σ 2 The variance of the Gaussian noise; k ij B is an element in the noise matrix K; i Let K be the matrix of the detection values ​​of the i-th single pixel; K is the matrix of the detection values ​​of the i-th single i Noise matrices with the same dimensions.

[0036] Preferably, in step S22, the convolution kernel weight matrix and the single-pixel detection value matrix are subjected to Kronecker product operation to obtain the target image encoding matrix, which is used as the detection result of the target image. At the same time, the encoding matrix sequence S needs to be used as the input of the recognition network.

[0037] Preferably, the large-scale feature extraction module in the fully convolutional residual network model in step S3 uses a large-size convolutional kernel with a size of BigSize=N+1, so as to obtain more information values ​​through a larger receptive field.

[0038] Preferably, the feature extraction downsampling module in the fully convolutional residual network model in step S3 consists of two parallel two-layer convolutional layers. The 1×1 convolutional layer fuses features with the 3×3 convolutional layer by changing the number of channels and downsampling. At the same time, by increasing the network width and reducing the network depth, gradient vanishing is prevented and semantic feature extraction is guaranteed. The number of input channels, the number of output channels, and the convolutional kernel stride of each feature extraction downsampling module need to be set in advance.

[0039] Preferably, the classification module in the fully convolutional residual network model in step S3 includes an average pooling layer, a fully connected layer, and a softmax function; the average pooling layer converts the final spatial information into global information of the image, the fully connected layer fuses the global information for image classification, and improves the generalization of recognition; the softmax function converts the original scores into probabilities, making the model results easier to interpret and compare.

[0040] Preferably, the training process of the fully convolutional residual network model in step S3 is as follows: the image dataset is divided into a training set and a validation set; the training optimizer and loss function of the deep learning-based fully convolutional neural network model are determined; the training optimizer adopts a stochastic gradient descent optimizer, and the initial learning rate, initial momentum parameter and L2 regularization coefficient are set; the loss function adopts the negative log-likelihood loss function, and a loss function with the first convolutional kernel as a binary constraint is designed.

[0041] Compared with the prior art, the present invention has the following beneficial effects:

[0042] (1) This invention utilizes the advantages of single-pixel imaging to achieve target recognition in low-light environments. First, preprocessing is performed on the dataset images to simulate low-light environments and data augmentation. Small-sized speckles are introduced based on existing deep learning convolutional speckle patterns. Simultaneously, the encoding matrix is ​​obtained using convolutional speckle information, replacing the traditional method of reshaping a pseudo-image of the same size as the image using fully connected layers. The direction propagation of the loss function gradient is used to constrain the speckle to binary. The detection process of a single pixel completely destroys the spatial information of the target, while this method can effectively introduce spatial location information, reduce data redundancy, and improve recognition accuracy and speed. Compared with existing algorithms, this invention can improve its recognition accuracy at a set sampling rate, making up for the shortcomings of existing technologies.

[0043] (2) This invention first utilizes large-scale convolutional layers to extract and fuse encoding matrix information, which helps to fuse features from information at different spatial locations, effectively reducing network depth and improving accuracy. By leveraging the idea of ​​wide residual networks, the width of the network is increased and the depth of the network is reduced. Through multiple training sessions, feature information is effectively extracted. Convolution is used to extract target information from the encoding matrix to improve recognition accuracy. During training, the SGD optimizer is used to accelerate network convergence based on the initial momentum of the parameters. Attached Figure Description

[0044] Figure 1 This is a flowchart of the method for rapid recognition of single-pixel target images in low-light environments according to the present invention;

[0045] Figure 2 The speckle pattern generated during the experimental process of this invention;

[0046] Figure 3 This is a schematic diagram of the fully convolutional residual network structure of the present invention;

[0047] Figure 4 This is a schematic diagram of the large-size feature extraction module of the present invention;

[0048] Figure 5 This is a schematic diagram of the feature descent extraction module of the present invention;

[0049] Figure 6 This is a schematic diagram of the classification module of the present invention;

[0050] Figure 7 This is a schematic diagram of the integrated detection and recognition neural network model of the present invention;

[0051] Figure 8 This is a schematic diagram illustrating the test accuracy of different algorithms at a 5% sampling rate according to the present invention;

[0052] Figure 9 This is a schematic diagram illustrating the test accuracy of different algorithms at a sampling rate of 9.77% according to the present invention;

[0053] Figure 10 This is a schematic diagram illustrating the test accuracy of different algorithms at a 25% sampling rate according to the present invention;

[0054] Figure 11 This is a schematic diagram illustrating the test accuracy of the algorithm for different categories under different sampling rates according to the present invention;

[0055] Figure 12 This is a schematic diagram illustrating the test accuracy of each category of different factor factors at a sampling rate of 9.77% according to the present invention. Detailed Implementation

[0056] Exemplary embodiments, features, and aspects of the present invention will now be described in detail with reference to the accompanying drawings. The same reference numerals in the drawings denote elements that have the same or similar functions. Although various aspects of the embodiments are shown in the drawings, they are not necessarily drawn to scale unless specifically indicated otherwise.

[0057] This invention provides a method for fast recognition of single-pixel target images in low-light environments, such as... Figure 1 The flowchart shown is a fast single-pixel target image recognition method for low-light environments according to the present invention. It includes: preprocessing an initial single-pixel target image; acquiring the target image using a single-pixel detector; obtaining the target image detection result using the Kronecker integrator algorithm; establishing a fully convolutional residual network model; and combining it with convolutional layers to obtain an integrated detection and recognition network model for recognizing the target image encoding matrix. The integrated detection and recognition network model is then used to complete the detection and recognition of the target image. The method includes:

[0058] Step S1: Preprocess the initial single-pixel target image.

[0059] An initial single-pixel target image is acquired and preprocessed to obtain target images under low-light and long-distance environments. In this embodiment, 70,000 images from the Fashion MNIST dataset are preprocessed. For grayscale images, the pixel values ​​are reduced to simulate targets in low-light environments. Then, the images are uniformly expanded to 32*32 grayscale images, horizontally flipped, and normalized to the mean. The Size is set to no more than 32 to suit low-pixel images at long distances.

[0060] For the initial single-pixel target image, the pixel value of the target image is reduced to simulate the target image in a low-light environment. Then, it is uniformly expanded to a standard set size. Finally, the target image is horizontally flipped and the mean is normalized. This is the target image enhancement step to conform to the low-pixel target image in the case of long distance.

[0061] The steps to reduce the pixel values ​​of the target image are as follows:

[0062] T = T′ * factor;

[0063] Where factor is the reduction factor; T is the grayscale image matrix after the reduction operation; and T′ is the grayscale image matrix before the reduction operation.

[0064] The steps for horizontal flipping are as follows:

[0065]

[0066] Where, x * y represents the position value of the row after the target image is horizontally flipped; *G represents the column position value after the target image is horizontally flipped; G is the row number of the target image.

[0067] The steps for normalizing the target image by mean are as follows:

[0068] T = (T / 255 - mean) / std;

[0069] Wherein, mean is the mean of the target image, which is 0.5 in this example; std is the standard deviation of the target image, which is 0.5 in this example.

[0070] Step S2: Acquire the target image using a single-pixel detector, and obtain the target image detection result using the Kronecker integration algorithm.

[0071] Step S21: Generate convolution kernel weights using a random number seed. During network training, use a loss function to binarize the convolution kernel weights. Use the convolution kernel weight matrix as the required small-size convolutional speckle. Perform an inner product between the convolution kernel weight matrix and the target image to obtain the single-pixel detection value matrix:

[0072]

[0073] Among them, B (a,b) This represents the value in row a and column b of the single-pixel detection value matrix; where a is the row number of the single-pixel detection value matrix and b is the column number of the single-pixel detection value matrix. Size is the size of the target image; N is the size of the small-size convolutional speckle. The weights at the corresponding positions of the convolution kernel; T (a,b) (x,y) represents the pixels in the (a,b) region of the target image scene, where matrix T (a,b) With matrix They are of equal size; x is the position value of the row of the initial single-pixel target image; y is the position value of the column of the initial single-pixel target image.

[0074] The experimental process of this invention embodiment: First, the binarized m convolutional kernel weight matrices are... Multiplying by matrix E' yields m new matrices W. i Where E' = 255*E represents white speckle, and E is the identity matrix of size Size. W i Negative values ​​are set to 0. For example... Figure 2 The image shown is a speckle pattern generated during the experimental process of this invention; W iGenerate (m+1) groups of a×b matrices of size E'. Each group of matrices simulates the interaction between the convolution kernel and the image, setting the parts that do not interact with the image to 0, and simultaneously generating a size-sized, completely black speckle pattern. Since the spatial light modulator's pixel size is 1024×768, each pixel of the matrix needs to be represented by a pixel matrix with dimensions 768 / size, and the remaining parts set to 0. Finally, save N×N×(m+1)+1 speckle patterns of size 1024×768 as a .bm file. The p file is used to import the speckle map into the spatial light modulator. The single-pixel detector obtains a×b×(m+1)+1 single-pixel detection values. Simultaneously, the detection values ​​of the corresponding E' speckle and a single-pixel detection value of a completely black speckle are subtracted from the detection values ​​of the non-white speckle modulation by twice, resulting in a new a×b×m single-pixel detection sequence value. The new single-pixel detection sequence value is arranged into m a×b matrices in sequence and then Kronecker product is performed with the convolution kernel weight matrix to obtain the single-pixel encoding matrix, which is used as the input of the fully convolutional residual network to finally obtain the recognition result.

[0075]

[0076] The first convolutional layer is set to a kernel size of 16, a stride of 16, and m channels, i = 1, 2, ..., m, to simulate a single-pixel detection process. Single-pixel detection value matrices are obtained at sampling rates of 5%, 9.77%, and 25%, and m-channel 2×2 feature maps are output, where m belongs to [13, 25, 64]. Gaussian noise is added to the single-pixel detection value matrix.

[0077] Random Gaussian noise needs to be added to the single-pixel detection value matrix to improve the anti-interference ability during the actual detection process. Specifically:

[0078]

[0079] Where μ1 is the mean of the Gaussian noise, set to 0.1; σ 2 Let k be the variance of the Gaussian noise, set to 0.1; ij B is an element in the noise matrix K; i Let K be the matrix of the detection values ​​of the i-th single pixel; K is the matrix of the detection values ​​of the i-th single i Noise matrices with the same dimensions.

[0080] Step S22: Perform a Kronecker product operation between the convolution kernel weight matrix and the single-pixel detection value matrix to obtain m new 32×32 target image encoding matrices, which serve as the detection results of the target image. Simultaneously, S needs to be used as the input to the recognition network. The target image encoding matrix is:

[0081]

[0082] Among them, S i S is the encoding matrix for the i-th target image; i is the index of the target image encoding matrix, i = 1, 2, ..., m; m is the number of convolution kernels; S = [S1, S2, ..., S...]. m ] represents the target image encoding matrix sequence; B i 'This is the matrix of the i-th single-pixel detection values ​​carrying noise; Let be the weight matrix of the i-th convolutional kernel.

[0083] Step S3: Establish a fully convolutional residual network model and combine it with convolutional layers to obtain an integrated detection and recognition network model, which is used to identify the target image coding matrix.

[0084] like Figure 3 The diagram shows the fully convolutional residual network structure of the present invention. The fully convolutional residual network model improves the target image recognition accuracy in low light and long distance environments. The structure of the fully convolutional residual network model consists of a large-scale feature extraction module, a feature extraction downsampling module, and a classification module.

[0085] like Figure 4 The diagram shows the large-scale feature extraction module of the present invention. The large-scale feature extraction module uses a large-size convolutional kernel with a size of BigSize = N+1 to obtain more information values ​​through a larger receptive field.

[0086] like Figure 5 The diagram shows a schematic of the feature descent extraction module of the present invention. The feature extraction downsampling module consists of two parallel two-layer convolutional layers. The 1×1 convolutional layer fuses features with the 3×3 convolutional layer by changing the number of channels and downsampling. At the same time, by increasing the network width and reducing the network depth, gradient vanishing is prevented, ensuring the extraction of semantic features. The number of input channels, the number of output channels, and the convolutional kernel stride of each feature extraction downsampling module need to be set in advance. The number of input channels and the number of output channels of each feature extraction downsampling module are [32, 16, 32] and [16, 32, 64], respectively, and the convolutional kernel stride is [1, 2, 2].

[0087] like Figure 6 The diagram shows the classification module of the present invention. The classification module consists of an average pooling layer, a fully connected layer, and a softmax function. The average pooling layer converts the final spatial information into global information of the image, and the fully connected layer fuses the global information for image classification, thereby improving the generalization of recognition. The softmax function converts the original scores into probabilities, making the model results easier to interpret and compare.

[0088] The convolutional layer in step S21 is combined with the fully convolutional residual network model to form an integrated detection and recognition network model. The detection result of the target image in step S22 is used as the input of the fully convolutional residual network model; for example... Figure 7 The diagram shown is a schematic of the integrated detection and recognition neural network model of the present invention; the loss function constraint formula of the integrated detection and recognition network model is:

[0089]

[0090] Where Loss is the total loss function of the fully convolutional residual network model; L NLL y is the cross-entropy loss for a batch dataset; Loss_1 is the binarization constraint function for convolutional speckle; μ is the regularization parameter controlling the relationship between the loss function and the binary regularizer; n is the number of samples in a batch; C is the number of classes; y lc Let y′ be the actual class distribution of the l-th sample; lc c represents the predicted class probability distribution for the l-th sample; l is the sample number; c is the class number. The measurement matrix has m rows, where the i-th row represents different values. The convolution kernel weight matrix, Φ i,j The value in the i-th row and j-th column;

[0091] The training process of the fully convolutional residual network model is as follows: The image dataset is divided into training and validation sets; the training optimizer and loss function for the deep learning-based fully convolutional neural network model are determined; the training optimizer uses a stochastic gradient descent optimizer, with an initial learning rate (lr) of 0.01, an initial momentum parameter (momentum) of 0.8, and an L2 regularization coefficient (weight_decay) of 0.001. For the loss function, a negative log-likelihood loss function is used, and a loss function with binary constraints on the first convolutional kernel is designed. The number of training iterations is set to 50, with the optimizer learning rate decreasing by 0.1 every ten iterations starting from the 20th iteration.

[0092] Step S4: Use the integrated detection and recognition network model to complete the detection and recognition of the target image.

[0093] Obtain the integrated detection and recognition network model from step S3, train it, optimize the SGD optimizer parameters, dynamic parameters, L2 regularization coefficient, and learning rate hyperparameter, save the network model structure and training weights, and use the integrated detection and recognition network model for target image detection and recognition. In this embodiment, the training optimizer uses SGD, the initial learning rate is set to 0.01, the loss function uses the negative logarithmic function and the binarization constraint function, and the model is trained for 50 rounds.

[0094] Comparing it with single-pixel classification algorithms using fully connected convolutional networks, encoding fully connected convolutional networks, and traditional algorithms that use fully connected layers to create pseudo-images followed by fully convolutional residual networks, the results show that, with factor=1 and sampling rates of 5%, 9.77%, and 25%, introducing an encoding matrix and a fully convolutional residual neural network can improve recognition accuracy. The accuracy improvement is shown in the figure. Figure 8 This is a schematic diagram of the test accuracy of different algorithms at a 5% sampling rate of the present invention. At a 5% sampling rate, that is, when only 52 single-pixel detection values ​​are collected, an accuracy of 88% can be achieved, which reduces the collection time in practical applications. Figure 9 This is a schematic diagram showing the test accuracy of different algorithms at a sampling rate of 9.77% according to the present invention, for comparison. Figure 8 This improved accuracy to some extent, increasing it by 1.06% with double the number of data acquisitions. Figure 10 This is a schematic diagram showing the test accuracy of different algorithms at a 25% sampling rate, for comparison. Figure 8 and Figure 9 The results show that accuracy increases with the sampling rate, exceeding 90%, indicating that in practical applications, increasing the number of sampling attempts can improve recognition accuracy without exceeding the sampling and recognition time. Overall, the recognition accuracy reaches approximately 89%, and even at a sampling rate of 25%, it surpasses 90%. Figures 8-10 It can be concluded that, at the same sampling rate, introducing both the encoding matrix and the fully convolutional residual network is beneficial to improving recognition accuracy. Accuracy improves with increasing sampling rate; in practical applications, the optimal sampling rate should be selected by comprehensively considering both acquisition time and accuracy. Figure 11 The diagram illustrates the test accuracy of the algorithm for different categories under different sampling rates. It shows the test accuracy for each category at different sampling rates, demonstrating that images with significant contour differences (pants, dresses, sandals, sneakers, bags, and ankle boots) exhibit high recognition accuracy, even reaching 97%. Simultaneously, the recognition performance of this patent was tested at a 9.77% sampling rate with different factor settings, as shown... Figure 12This diagram illustrates the test accuracy of different factor categories at a sampling rate of 9.77% according to the present invention. The recognition accuracy remains around 89% even with a factor above 0.3, and is still around 80% even at a factor of 0.1. Traditional methods use a fully connected layer to reshape the single-pixel detection sequence into a pseudo-image of the same size as the original image at sampling rates of 5%, 9.77%, and 25%. The present invention uses a single-pixel detection value matrix and a convolutional speckle matrix to interact spatially, obtaining a new encoding matrix. Simultaneously, a new fully convolutional residual neural network is constructed for decoding and classification. Classification tests were conducted on ten clothing categories from Fashion MNIST under different brightness levels. Its fully convolutional neural network, based on the interaction of single-pixel detection values ​​and spatial information of small-sized speckles, is easier to train and has higher accuracy.

[0095] The present invention has the following beneficial effects: The embodiments of the present invention leverage the advantages of single-pixel imaging to achieve target recognition in low-light, long-distance environments. First, preprocessing operations are performed on the dataset images to simulate low-light environments and perform data augmentation. Then, based on existing deep learning convolutional speckle patterns, small-sized speckles are introduced, and the encoding matrix is ​​obtained using convolutional speckle information, replacing the traditional method of reshaping a pseudo-image of the same size as the original image using fully connected layers. Binarization constraints on speckles are applied using the direction propagation of the loss function gradient. While the single-pixel detection process completely destroys the spatial information of the target image, this method effectively introduces spatial location information, reduces data redundancy, and improves recognition accuracy and speed. Compared to existing algorithms, this method can improve recognition accuracy at a certain sampling rate, overcoming the shortcomings of existing technologies. This invention first utilizes large-scale convolutional layers to extract and fuse encoding matrix information, which facilitates feature extraction from different spatial locations and effectively reduces network depth while improving accuracy. By employing the concept of wide residual networks, the network width is increased while reducing its depth. Through multiple training iterations, feature information extraction is effectively achieved, and target information extracted from the encoding matrix via convolution is used to improve recognition accuracy. During training, an SGD optimizer is used, based on initial parameter momentum, to accelerate network convergence. In practical applications, single-pixel imaging for image-less target recognition is suitable for rapid recognition in low-light environments at long distances. This method introduces a new encoding matrix approach and a deep learning recognition algorithm, improving recognition accuracy in real-world applications. Simulation comparisons with accompanying figures verify that this scheme improves accuracy compared to previous recognition algorithms at the same sampling rate, and also validates recognition accuracy under different light intensities.

[0096] The embodiments described above are merely preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Various modifications and improvements made by those skilled in the art to the technical solutions of the present invention without departing from the spirit of the present invention should fall within the protection scope defined by the claims of the present invention.

Claims

1. A method for rapid recognition of single-pixel target images in low-light environments, characterized in that, It includes: S1: Preprocess the initial single-pixel target image; Acquire the initial single-pixel target image, perform preprocessing, and obtain the initial single-pixel target image under low light conditions; S2: Obtain target image information through a single-pixel detector, and use Kronecker product operation to obtain the target image detection result; S21: Generate convolutional kernel weights using a random number seed. During network training, use a loss function to binarize the convolutional kernel weights. Use the convolutional kernel weight matrix as the required small-sized convolutional speckle. Take the inner product of the convolutional kernel weight matrix and the initial single-pixel target image to obtain the single-pixel detection value matrix: Among them, B (a,b) This represents the value in row a and column b of the single-pixel detection value matrix; where a is the row number of the single-pixel detection value matrix and b is the column number of the single-pixel detection value matrix. Size is the size of the target image; N is the size of the small-size convolutional speckle. The weights at the corresponding positions of the convolution kernel; T (a,b) (x,y) represents the pixels in the (a,b) region of the target image scene, where matrix T (a,b) With matrix They are of equal size; x is the position value of the row of the initial single-pixel target image; y is the position value of the column of the initial single-pixel target image; S22: The target image encoding matrix is ​​obtained by performing a Kronecker product operation between the convolution kernel weight matrix and the single-pixel detection value matrix, and is used as the detection result of the target image; the target image encoding matrix is: Among them, S i S is the encoding matrix for the i-th target image; i is the index of the target image encoding matrix, i = 1, 2, ..., m; m is the number of convolution kernels; S = [S1, S2, ..., S...]. m ] represents the target image encoding matrix sequence; B i ' is the matrix of the i-th single-pixel detection values ​​carrying noise; Let be the weight matrix of the i-th convolutional kernel; S3: Establish a fully convolutional residual network model and combine it with convolutional layers to obtain an integrated detection and recognition network model, which is used to recognize the target image coding matrix; The structure of the fully convolutional residual network model includes a large-scale feature extraction module, a feature extraction downsampling module, and a classification module. The convolutional layer in step S21 is combined with the fully convolutional residual network model to form an integrated detection and recognition network model. The detection result of the target image in step S22 is used as the input to the fully convolutional residual network model. The loss function constraint formula for the integrated detection and recognition network model is: Where Loss is the total loss function of the fully convolutional residual network model; L NLL y is the cross-entropy loss for a batch dataset; Loss_1 is the binarization constraint function for convolutional speckle; μ is the regularization parameter controlling the relationship between the loss function and the binary regularizer; n is the number of samples in a batch; C is the number of classes; y lc Let y be the actual class distribution of the l-th sample; l ′ c c represents the predicted class probability distribution for the l-th sample; l is the sample number; c is the class number. The measurement matrix has m rows, where the i-th row represents different values. The convolution kernel weight matrix, Φ i,j The value in the i-th row and j-th column; S4: Use an integrated detection and recognition network model to complete the detection and recognition of target images; Obtain the integrated detection and recognition network model from step S3, train it, optimize the SGD optimizer parameters, dynamic parameters, L2 regularization coefficient and learning rate hyperparameter, save the network model structure and training weights, and use the integrated detection and recognition network model for the detection and recognition of target images.

2. The method for rapid recognition of single-pixel target images in low-light environments according to claim 1, characterized in that: The preprocessing operation in step S1 is as follows: For the initial single-pixel target image, the pixel value of the target image is reduced to simulate the target image in a low-light environment. It is then uniformly expanded to a standard size. Finally, the target image is horizontally flipped and normalized by mean. This is the target image enhancement step to conform to the low-pixel target image in the case of long distance. The step of reducing the pixel value of the target image is as follows: T = T′ * factor; Where factor is the reduction factor; T is the grayscale image matrix after the reduction operation; T′ is the grayscale image matrix before the reduction operation; The horizontal flipping step is as follows: Where, x * y represents the position value of the row after the target image is horizontally flipped; * G represents the column position value after the target image is horizontally flipped; G is the row number of the target image. The steps for normalizing the target image by mean are as follows: T = (T / 255 - mean) / std; Where mean is the target image mean; std is the target image standard deviation.

3. The method for rapid recognition of single-pixel target images in low-light environments according to claim 1, characterized in that: In step S21, random Gaussian noise is added to the single-pixel detection value matrix to improve the anti-interference capability during the actual detection process. Specifically: Where μ1 is the mean of the Gaussian noise; σ 2 The variance of the Gaussian noise; k ij B is an element in the noise matrix K; i Let K be the matrix of the detection values ​​of the i-th single pixel; K is the matrix of the detection values ​​of the i-th single i Noise matrices with the same dimensions.

4. The method for rapid recognition of single-pixel target images in low-light environments according to claim 1, characterized in that: In step S22, the convolution kernel weight matrix and the single-pixel detection value matrix are subjected to Kronecker product operation to obtain the target image encoding matrix, which is used as the detection result of the target image. At the same time, the encoding matrix sequence S is used as the input of the recognition network.

5. The method for rapid recognition of single-pixel target images in low-light environments according to claim 1, characterized in that: The large-scale feature extraction module in the fully convolutional residual network model in step S3 uses a large-size convolutional kernel with a size of BigSize = N+1.

6. The method for fast recognition of single-pixel target images in low-light environments according to claim 1, characterized in that: The feature extraction downsampling module in the fully convolutional residual network model in step S3 consists of two parallel double-layer convolutional layers. The 1×1 convolutional layer fuses features with the 3×3 convolutional layer by changing the number of channels and downsampling. The number of input and output channels, as well as the stride of the convolution kernel, are pre-set for each feature extraction downsampling module.

7. The method for rapid recognition of single-pixel target images in low-light environments according to claim 1, characterized in that: The classification module in the fully convolutional residual network model in step S3 includes an average pooling layer, a fully connected layer, and a softmax function; the average pooling layer converts the final spatial information into global information of the image, and the fully connected layer fuses the global information.

8. The method for rapid recognition of single-pixel target images in low-light environments according to claim 1, characterized in that: The training process of the fully convolutional residual network model in step S3 is as follows: the image dataset is divided into a training set and a validation set; the training optimizer and loss function of the deep learning-based fully convolutional neural network model are determined; the training optimizer adopts the stochastic gradient descent optimizer, and the initial learning rate, initial momentum parameter and L2 regularization coefficient are set; the loss function adopts the negative log-likelihood loss function, and at the same time, a loss function with the first convolutional kernel as a binary constraint is designed.

Citation Information

Patent Citations

  • Light intensity measurement iterative imaging method based on single pixel detection

    CN112468791A

  • Imaging-free license plate content recognition method and system

    CN112560578A