High-speed visible light positioning image processing method, system and medium based on BN-CNN

Through the high-speed visible light positioning image processing method based on BN-CNN, the positioning delay and blur problems of the VLP system under high-speed motion are solved, the recognition accuracy and speed are improved, and high-precision positioning is achieved, which is suitable for a variety of scenarios.

CN115100279BActive Publication Date: 2024-09-13JINAN UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210654874.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-10
Publication Date
2024-09-13
Estimated Expiration
2042-06-10

AI Technical Summary

Technical Problem

The IS-based VLP system has high positioning delay and image blur problems under high-speed motion, resulting in poor positioning accuracy and real-time performance.

Method used

A high-speed visible light positioning image processing method based on BN-CNN is used to extract the regional features of the stripe image by training a batch normalized layer convolutional neural network, overcome the interference of blurred pixels on motion blur and defocus blur, and improve the recognition accuracy and speed.

Benefits of technology

It achieves high-precision positioning under high-speed motion, reduces the positioning delay of the VLP system, supports high-speed motion of the image sensor, has robustness and anti-blur capabilities, and is suitable for scenarios such as indoor positioning and automatic guidance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115100279B
    Figure CN115100279B
Patent Text Reader

Abstract

The present invention discloses a high-speed visible light positioning image processing method, system and medium based on BN-CNN, the method is as follows: obtaining the unique identifier of the LED lamp at the signal transmitting end and encoding it into a cross 2-5 code, modulating the LED lamp by using on-off keying through a modulator, driving the LED lamp to emit light signals of different frequencies; using a CMOS image sensor to capture the light signal image at the signal receiving end, and dividing it into a training set and a test set; importing the stripe image training set into a designed batch normalized convolutional neural network for training, using a continuous gradient descent method to optimize the loss, and obtaining a stripe image classification model; importing the stripe image test set into the stripe image classification model for recognition, judging the category to which the stripe image belongs and the unique identifier of the LED lamp corresponding to the category, and determining the position of the signal receiving end. The present invention uses a batch normalized convolutional neural network for deep learning, improves the recognition speed and accuracy of blurred images captured under high-speed motion, and has good robustness.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of visible light positioning and image decoding, and specifically relates to a high-speed visible light positioning image processing method, system and medium based on BN-CNN. Background Art

[0002] Visible light positioning (VLP) technology based on light emitting diode (LED) lighting source has the advantages of high positioning accuracy, dual-purpose support for lighting and positioning, and anti-electromagnetic interference. It is considered to be a promising technology in the field of indoor positioning. According to the different light signals received by the device, VLP can be divided into two types: VLP based on image sensor (IS) and VLP based on photodiode (PD). VLP based on IS has two major advantages: 1) VLP based on IS uses complementary metal oxide semiconductor (CMOS) image sensor to receive visible light communication signals and form stripe images, and then processes the stripe images to extract the transmitted location identification information. This positioning scheme is insensitive to the direction of light, and the movement of the device will not be restricted, so it is more suitable for mobile application scenarios; 2) CMOS image sensors can be widely used in mobile terminals and mobile devices, so VLP based on IS is easier to integrate into current mobile terminals and mobile devices.

[0003] However, in the IS-based VLP scheme, the speed and accuracy of stripe image information extraction directly affect the real-time positioning and positioning accuracy of the image-based visible light positioning system. At present, the real-time performance of the IS-based VLP system is poor and it is difficult to support real-time positioning under high-speed motion. There are two main reasons: 1) In order to improve the positioning accuracy, high-definition image sensors are generally used, which increases the time consumption of image processing and positioning; 2) Image sensors have practical problems such as motion blur and defocus blur under high-speed motion. Motion blur and defocus blur will reduce the image quality, thereby affecting the accuracy of stripe image information extraction, and further reducing the positioning accuracy. Summary of the invention

[0004] The main purpose of the present invention is to overcome the shortcomings and deficiencies of the prior art. Aiming at the high positioning delay and image blurring problems of the existing IS-based VLP system under high-speed motion of the image sensor, a high-speed visible light positioning image processing method, system and medium based on BN-CNN are provided. The method obtains a stripe image classification model by training a batch normalization layer convolutional neural network, which is used for deep learning of blurred stripe images captured under high-speed motion to improve the recognition rate and accuracy; the batch normalization layer in the model can accelerate the neural network training and improve the generalization ability of the neural network; the dropout layer can prevent the model from overfitting; the model obtained by the method has the advantages of supporting high-speed motion of the image sensor, small positioning delay, strong robustness, accurate recognition of motion blurred and defocused blurred stripe images, and dual-purpose lighting and positioning, and can be used for indoor positioning, smart factory AGV automatic guidance, machine navigation in underground spaces and tunnels and other scenarios.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions:

[0006] The first object of the present invention is to provide a high-speed visible light positioning image processing method based on BN-CNN, comprising the following steps:

[0007] The unique identifier of the LED lamp at the signal transmitting end is obtained and encoded into a cross 2-5 code, and then the LED lamp is modulated by the modulator using on-off keying to drive the LED lamp to emit light signals of different frequencies;

[0008] Use CMOS image sensor to capture light signal images emitted by different LED lights at the signal receiving end, and divide them into stripe image training set and stripe image test set;

[0009] The stripe image training set is imported into the designed batch normalized convolutional neural network for training, and the loss is optimized using the continuous gradient descent method to obtain the stripe image classification model;

[0010] The stripe image test set is imported into the stripe image classification model for recognition, the category to which the stripe image belongs and the unique identifier of the LED light corresponding to the category are determined, and the location of the signal receiving end is determined.

[0011] As a preferred technical solution, the stripe image training set and the stripe image test set are obtained by:

[0012] Use CMOS image sensors to capture light signals of multiple LED lights from different angles at different moving speeds, save the captured stripe images, and record the LED light unique identifier UID corresponding to the stripe image, the moving speed during shooting, and the shooting angle as tag values;

[0013] The captured stripe image is preprocessed: the stripe image is converted into a grayscale image; a threshold is set by checking the row and column pixel sums, the row and column boundaries of the complete stripe image are determined, and the boundary is extended outwards to crop the complete stripe image;

[0014] The preprocessed stripe image is randomly divided to obtain a stripe image training set and a stripe image test set.

[0015] As a preferred technical solution, the designed batch normalized convolutional neural network BN-CNN includes an input layer, a Conv1 layer, a Conv2 layer, an M1 layer, a FC1 layer, an M2 layer, a FC2 layer and an output layer;

[0016] The Conv1 layer includes a convolution layer, a batch normalization layer, a ReLU activation layer and a maximum pooling layer, which are used to extract features to obtain a feature map;

[0017] The Conv2 layer includes a convolution layer, a batch normalization layer, a ReLU activation layer and a maximum pooling layer, which are used to extract high-dimensional features to obtain a high-dimensional feature map;

[0018] The M1 layer includes a dropout layer and a flatten layer, which are used to convert the high-dimensional feature map into a feature array;

[0019] The FC1 layer includes a fully connected layer, a batch normalization layer, and a ReLU activation layer, which are used to add nonlinear factors;

[0020] The M2 layer includes a dropout layer for reducing the co-adaptation relationship between neurons in the neural network;

[0021] The FC2 layer includes a fully connected layer and a batch normalization layer, which is used to output the classification result;

[0022] The output layer includes a Softmax classifier, which is used to calculate the probability distribution corresponding to the classification result and output the classification information with the maximum probability.

[0023] As a preferred technical solution, the convolution layer in the Conv1 layer uses 32 3×3 convolution kernels with a step size of (1,1) to extract features from the stripe image training set input by the input layer, generating 32 feature maps. The formula for obtaining the feature map by the convolution layer is:

[0024]

[0025] Among them, X i is the i-th stripe image in the stripe image training set, Y i is the feature map corresponding to the i-th stripe image, b i is the bias of the neuron, w jiis the weight of the neuron, * is the convolution operation;

[0026] Use zero padding to fill the edge pixels of the feature map to obtain 32 feature maps of size 800×800;

[0027] Use the batch normalization layer to normalize the feature map after the convolution layer is padded, and limit the mean and variance of the feature map to the range of [0,1];

[0028] The output of the batch normalization layer is nonlinearly mapped to the maximum pooling layer in the Conv1 layer using the activation function of the ReLU activation layer.

[0029] The maximum pooling layer uses the maximum pooling with a stride of (2,2) to calculate and output the maximum value of the data corresponding to the sliding process of the polling window, and outputs a feature map with a size of 400×400 pixels.

[0030] As a preferred technical solution, the convolution layer in the Conv2 layer uses 64 3×3 convolution kernels to obtain 32 400×400 pixel feature maps from the Conv1 layer to perform high-dimensional feature extraction, thereby generating 64 high-dimensional feature maps;

[0031] The high-dimensional feature map is then passed through the batch normalization layer, ReLU activation layer, and maximum pooling layer in the Conv2 layer to output 64 high-dimensional feature maps of size 200×200 pixels.

[0032] As a preferred technical solution, the dropout layer in the M1 layer randomly discards 50% of the hidden neurons during the forward propagation process; the flatten layer in the M1 layer transforms the 64 high-dimensional feature maps of 200×200 pixels output by the Conv2 layer into 64 one-dimensional feature arrays of 200×200 pixels;

[0033] The fully connected layer in the FC1 layer uses 512 connection nodes to convert the input one-dimensional feature array into 512 feature values, and outputs them to the batch normalization layer in the FC1 layer; the batch normalization layer in the FC1 layer adjusts the feature values ​​to a standard normal distribution, and the output values ​​are input into the ReLU activation layer in the FC1 layer to add nonlinear factors;

[0034] The last fully connected layer of the FC2 layer with N connection points outputs N classification results corresponding to N unique identifiers.

[0035] As a preferred technical solution, the output layer uses a Softmax classifier to convert the N classification results output by the FC2 layer into classification percentages that add up to 1. The conversion formula is:

[0036]

[0037] Among them, V i The i-th classification result of the output layer input;

[0038] Analyze the classification percentage and output the unique identifier UID corresponding to the classification with the highest probability;

[0039] The loss value L of BN-CNN is calculated using the probability distribution and loss function output by the Softmax classifier i , the loss function is:

[0040] L i = -logP(Y = y i |X=x i )

[0041] Use the continuous gradient descent method to back-propagate the convolution kernel of the convolution layer to optimize the loss value L i Continuously reduce and obtain the stripe image classification model.

[0042] As a preferred technical solution, the determining the position of the signal receiving end is specifically:

[0043] Import the stripe image test set into the stripe image classification model for recognition, and decode to obtain the unique identifier UID corresponding to the LED light;

[0044] Look up the "UID-coordinate" mapping table to retrieve the spatial coordinates of the LED light corresponding to the UID;

[0045] If the output of the image classification model is a unique identifier of an LED light, the position of the signal receiving end is determined according to the retrieved spatial coordinates of the corresponding LED light;

[0046] If the image classification model outputs unique identifiers of two or more LED lights, the position of the signal receiving end is determined by analyzing the spatial coordinates of the retrieved multiple corresponding LED lights and the pixel coordinates in the stripe image plane.

[0047] The second object of the present invention is to provide a high-speed visible light positioning image processing system based on BN-CNN, which is applied to the above-mentioned high-speed visible light positioning image processing method based on BN-CNN, including a modulation module, a shooting module, a training module and a positioning module;

[0048] The modulation module is used to obtain the unique identifier of the LED lamp at the signal transmitting end and encode it into a cross 2-5 code, and then modulate the LED lamp using on-off keying through the modulator to drive the LED lamp to emit light signals of different frequencies;

[0049] The shooting module is used to use a CMOS image sensor to shoot light signal images emitted by different LED lights at the signal receiving end, and divide them into a fringe image training set and a fringe image test set;

[0050] The training module is used to import the stripe image training set into the designed batch normalized convolutional neural network for training, and use the continuous gradient descent method to optimize the loss to obtain the stripe image classification model;

[0051] The positioning module is used to import the stripe image test set into the stripe image classification model for recognition, determine the category to which the stripe image belongs and the unique identifier of the LED light corresponding to the category, and determine the position of the signal receiving end.

[0052] Another object of the present invention is to provide a computer-readable storage medium storing a program, which, when executed by a processor, implements the above-mentioned high-speed visible light positioning image processing method based on BN-CNN.

[0053] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0054] (1) In view of the problem that traditional decoding algorithms cannot effectively process blurred images, the present invention proposes a high-speed visible light positioning image processing method based on BN-CNN. BN-CNN uses multi-layer convolution to expand the perception domain of feature data, thereby extracting regional features of stripe images, overcoming the interference of blurred pixels on motion blurred and defocused stripe image information pixels, and improving the recognition accuracy of the IS-based VLP positioning scheme for the blurred stripe image UID, so that the IS-based VLP system can support high-precision positioning under high-speed motion; in addition, the trained stripe image classification model is a lightweight image processing algorithm, which can effectively reduce the positioning delay of the VLP system.

[0055] (2) The present invention designs an eight-layer BN-CNN deep learning framework and adds multiple batch normalization layers. On the one hand, the batch normalization layer is equivalent to adding random noise during the training process of the convolutional neural network, which can prevent the model from overfitting. On the other hand, the batch normalization layer adjusts the input of the neurons of the neural network to a standard normal distribution with a mean of 0 and a variance of 1, so that the input value of the activation layer falls in a nonlinear region that is more sensitive to the input, avoiding the gradient vanishing problem and accelerating the convergence speed of the neural network.

[0056] (3) The present invention adopts an IS-based VLP positioning system, which is insensitive to the direction of light and is not easily affected by multipath reflection and ambient light. The IS-based VLP positioning system uses a CMOS image sensor for shooting, which is simple, easy to obtain and easy to integrate. In addition, the IS-based VLP positioning system uses an LED as the lighting source, which can support both lighting and positioning, and has a wide range of application scenarios and strong applicability. BRIEF DESCRIPTION OF THE DRAWINGS

[0057] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0058] Figure 1 Flow chart of a high-speed visible light positioning image processing method based on BN-CNN in an embodiment of the present invention;

[0059] Figure 2 It is a structural diagram of a high-speed visible light positioning image processing method based on BN-CNN in an embodiment of the present invention;

[0060] Figure 3 A fringe image taken by a CMOS image sensor in an embodiment of the present invention;

[0061] Figure 4 The fringe image after image preprocessing in the embodiment of the present invention;

[0062] Figure 5 It is a structural diagram of a batch normalized convolutional neural network and a stripe image classification model in an embodiment of the present invention;

[0063] Figure 6 A data dimension diagram of a stripe image classification model in an embodiment of the present invention;

[0064] Figure 7 This is a schematic diagram of positioning a dual LED lamp in an embodiment of the present invention;

[0065] Figure 8 : is a structural diagram of a high-speed visible light positioning image processing system based on BN-CNN in an embodiment of the present invention;

[0066] Fig. 9 Schematic diagram of the structure of a computer-readable storage medium in an embodiment of the present invention. DETAILED DESCRIPTION

[0067] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application.

[0068] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described in this application may be combined with other embodiments.

[0069] The core idea of ​​the present invention is: in the IS-based VLP technology, each LED light source is given a unique identifier (User Identification, UID) when it is put into use. The identifier corresponds to the location of the LED light source. After the signal processing unit encodes and modulates the identifier into a binary digital signal, the signal is transmitted through the brightness change of the LED light source. The LED light source is photographed by a CMOS image sensor based on a rolling shutter mechanism to obtain a stripe image, and an eight-layer batch normalized convolutional neural network (Batch-normalized Convolutional Neural Network, BN-CNN) is trained to classify and identify the stripe image to obtain its corresponding unique identifier, namely UID, so as to determine the location of the LED light source corresponding to the captured stripe image, and then realize the positioning of the signal receiving end.

[0070] To realize the above core ideas, Figure 1 , Figure 2 As shown, this embodiment proposes a high-speed visible light positioning image processing method based on BN-CNN, comprising the following steps:

[0071] S1. Obtain the unique identifier UID of the LED lamp at the signal transmitting end and encode it into an interleaved two of five (ITF) code, and then modulate the LED lamp using on-off keying (OOK) through a modulator to drive the LED lamp to emit light signals of different frequencies; since the modulation frequency of the ON / OFF signal is high enough, it will not cause flicker that can be perceived by the human eye;

[0072] S2, using a CMOS image sensor to capture light signal images emitted by different LED lights at the signal receiving end, and dividing them into a fringe image training set and a fringe image test set;

[0073] S3, importing the stripe image training set into the designed batch normalized convolutional neural network for training, using the continuous gradient descent method to optimize the loss, and obtaining the stripe image classification model;

[0074] S4. Import the stripe image test set into the stripe image classification model for recognition, determine the category to which the stripe image belongs and the unique identifier of the LED light corresponding to the category, and determine the position of the signal receiving end.

[0075] More specifically, in step S2, a stripe image training set and a stripe image test set are obtained, specifically:

[0076] Use CMOS image sensors to capture light signals of multiple LED lights from different angles at different moving speeds, save the captured stripe images, and record the unique identifier UID of the LED light corresponding to the stripe image, the moving speed during shooting, and the shooting angle as the tag value;

[0077] like Figure 3 As shown, the captured stripe image is preprocessed: first, the stripe image is converted into a grayscale image; then, by checking the row and column pixel sum, a threshold is set to determine the row and column boundaries of the complete stripe image, and the boundary is extended outward for cropping to ensure that a valid complete stripe image is obtained, specifically:

[0078] After converting the fringe image into a grayscale image, the captured image is first scanned from left to right with an initial step length la to detect whether the scanned column contains a sufficient number of pixels whose brightness exceeds the threshold;

[0079] Starting from the detected column containing a sufficient number of bright pixels, the image is scanned back and forth with a smaller step size lb to accurately determine the left and right edges of the stripe image area;

[0080] Then, the row pixel sum is checked in the same way to accurately determine the upper and lower edges of the stripe image area;

[0081] Finally, the edge of the obtained stripe image is extended outward, and the stripe image is cropped using the extended boundary to obtain a complete single stripe image, such as Figure 4 As shown;

[0082] The preprocessed stripe image is randomly divided to obtain a stripe image training set and a stripe image test set.

[0083] More specifically, in step S3, the designed batch normalized convolutional neural network uses multi-layer convolution to expand the receptive domain of feature data, thereby extracting regional features of the stripe image, overcoming the interference of blurred pixels on motion blurred and defocused stripe image information pixels, and improving the recognition accuracy of the IS-based VLP positioning scheme for blurred images; the batch normalized convolutional neural network structure is designed as follows:

[0084] like Figure 5 , Figure 6As shown in the figure, the batch normalized convolutional neural network BN-CNN consists of eight layers: input layer, Conv1 layer, Conv2 layer, M1 layer, FC1 layer, M2 layer, FC2 layer and output layer; among them:

[0085] The input layer is the first layer of the convolutional neural network, and its input image size is 800×800 pixels;

[0086] The Conv1 layer includes a convolutional layer, a batch normalization layer, a ReLU activation layer, and a maximum pooling layer, which are used to extract features and obtain feature maps;

[0087] The Conv2 layer includes a convolutional layer, a batch normalization layer, a ReLU activation layer, and a maximum pooling layer, which are used to extract high-dimensional features to obtain high-dimensional feature maps;

[0088] The M1 layer includes a dropout layer and a flatten layer, which are used to convert high-dimensional feature maps into feature arrays;

[0089] The FC1 layer includes a fully connected layer, a batch normalization layer, and a ReLU activation layer, which is used to add nonlinear factors;

[0090] The M2 layer includes a dropout layer, which is used to reduce the co-adaptation relationship between neurons in the neural network;

[0091] The FC2 layer includes a fully connected layer and a batch normalization layer, which is used to output the classification results;

[0092] The output layer includes a Softmax classifier, which is used to calculate the probability distribution corresponding to the classification result and output the classification information with the highest probability.

[0093] When training a batch normalized convolutional neural network:

[0094] The convolution layer in the Conv1 layer uses 32 3×3 convolution kernels with a step size of (1,1) to extract features from the stripe image training set input by the input layer and generate 32 feature maps. The formula for obtaining the feature map by the convolution layer is:

[0095]

[0096] Among them, X i is the i-th stripe image in the stripe image training set, Y i is the feature map corresponding to the output ith fringe image, b i is the bias of the neuron, w ji is the weight of the neuron, * is the convolution operation;

[0097] After the convolution layer performs feature extraction, the edge pixels of the feature map are filled with zeros to obtain 32 feature maps of 800×800 size. The batch normalization layer is then used to normalize the feature map after the convolution layer is filled, and the mean and variance of the feature map are limited to the range of [0,1], which helps to accelerate the convergence speed of the BN-CNN model proposed in the present invention and improve the generalization ability of the model. The output of the batch normalization layer is nonlinearly mapped to the maximum pooling layer in the Conv1 layer using the excitation function of the ReLU activation layer. The maximum pooling layer uses a maximum pooling with a step size of (2,2) to calculate and output the maximum value of the data corresponding to the sliding process of the polling window, and outputs a feature map of 400×400 pixels. The maximum pooling layer performs separate dimensionality reduction on each feature map to reduce the connection between layers and the amount of data calculated and stored, and also reduces the risk of overfitting of the model.

[0098] The Conv2 layer has a similar structure to the Conv1 layer, but the convolution layer of the Conv2 layer uses 64 3×3 convolution kernels to obtain 32 400×400 pixel feature maps from the Conv1 layer for further high-dimensional feature extraction, generating 64 high-dimensional feature maps; the high-dimensional feature maps are then passed through the batch normalization layer, ReLU activation layer, and maximum pooling layer in the Conv2 layer, outputting 64 high-dimensional feature maps of 200×200 pixels for the next step of processing.

[0099] The M1 layer introduces the dropout layer, which randomly discards 50% of the hidden neurons during the forward propagation process to reduce the complex co-adaptation relationship between neurons and avoid relying on the connection relationship between neurons. Therefore, the dropout layer can alleviate the occurrence of overfitting and improve the robustness of CNN training. In addition, randomly discarding some neurons in the network is equivalent to taking the average of many different neural networks, which can significantly improve the generalization ability of the CNN model. After the dropout layer, the flatten layer transforms the 64 200×200 pixel high-dimensional feature maps output by the Conv2 layer into 64 200×200 one-dimensional feature arrays.

[0100] The fully connected layer of the FC1 layer uses 512 connection nodes to convert the input one-dimensional feature array into 512 eigenvalues ​​and outputs them to the batch normalization layer in the FC1 layer; the batch normalization layer in the FC1 layer adjusts the eigenvalues ​​to a standard normal distribution, which can speed up network training and prevent the gradient vanishing problem; the output value of the batch normalization layer in the FC1 layer is input into the ReLU activation layer in the FC1 layer, adding nonlinear factors to the neural network so that the neural network can adapt to more complex problems.

[0101] The M2 layer only contains the dropout layer, which is used to further reduce the co-adaptation relationship between the neurons in the neural network.

[0102] The FC2 layer uses a fully connected layer and a batch normalization layer, similar to the FC1 layer; the last fully connected layer of the FC2 layer with N connected nodes outputs N classification results, corresponding to N unique identifiers UID.

[0103] The input of the output layer is the N classification outputs of the FC2 layer; in order to obtain the accurate results of the N classification outputs of back propagation, the softmax classifier is used for calculation in the output layer; the output layer uses the softmax classifier to convert the N classification outputs into classification percentages that add up to 1, specifically:

[0104] The i-th input signal of the output layer is V i , the exponential sum of the j output signals of the output layer is The output of the i-th neuron is f(V i ), use the softmax classifier to calculate the probability distribution of the N categories of the original input image data after the convolutional neural network feature extraction, and finally output the unique identifier UID corresponding to the category with the largest probability. The calculation equation of the softmax classifier is:

[0105]

[0106] Then use the probability distribution corresponding to the N classifications output by the softmax classifier and the loss function to calculate the loss value L of the current network i , back-propagate the convolution kernel (weight matrix) of the optimized convolution layer to make the loss value L i Continuously decreasing, the loss function is as follows:

[0107] L i = -logP(Y = y i |X=x i )

[0108] After the continuous gradient descent training process, a stripe image classification model based on batch normalization convolutional neural network BN-CNN is obtained; the trained stripe image classification model can quickly and accurately classify stripe images and output their corresponding UIDs.

[0109] More specifically, in step S4, the stripe image test set is imported into the stripe image classification model for identification, and the unique identifier UID corresponding to the LED light is obtained by decoding;

[0110] Then, the spatial coordinates of the LED light corresponding to the UID are retrieved by searching the "UID-coordinate" mapping table;

[0111] According to the output results of the stripe image classification model, the calculation can be divided into two cases:

[0112] 1. If the image classification model outputs a unique identifier of an LED light, the location of the signal receiving end is determined based on the retrieved spatial coordinates of the corresponding LED light;

[0113] 2. If the image classification model outputs unique identifiers of two or more LED lights, the location of the signal receiving end is determined by analyzing the spatial coordinates of the retrieved multiple corresponding LED lights and the pixel coordinates in the stripe image plane.

[0114] like Figure 7 As shown, assuming that the captured image contains stripe images of two LED lights, the stripe images are preprocessed to crop two stripe images of a single LED light, which are then input into the stripe image classification model in sequence to obtain the UIDs corresponding to the two LED lights;

[0115] According to the "UID-coordinate" mapping table, the spatial coordinates of the two LED lights are retrieved;

[0116] Assume that the spatial position coordinates of the two LED lights are represented as (X1, Y1) and (X2, Y2) respectively, and the central pixel coordinates of the two stripe patterns on the captured stripe image are represented as (X 1f ,Y 1f ) and (X 2f ,Y 2f );

[0117] (X mid ,Y mid ) is the center coordinate of the captured fringe image, and the origin (0,0) of the image coordinate system is located at the upper left corner of the image; S1 is the spatial distance between the two VLP lamps, and S2 is the pixel distance between the two fringe patterns in the fringe image. The calculation formula for the signal receiving end position is as follows:

[0118]

[0119] The stripe image classification model in this embodiment uses a batch normalization layer to introduce the mean and variance of each batch into the convolutional neural network, and the mean and variance of different batches are usually different; on the one hand, the batch normalization layer is equivalent to adding random noise during the training process of the convolutional neural network, which can prevent the model from overfitting; on the other hand, the batch normalization layer adjusts the input of the neurons of the neural network to a standard normal distribution with a mean of 0 and a variance of 1, so that the input value of the activation layer falls in a nonlinear region that is more sensitive to the input, that is, a smaller input change causes a larger gradient change, which avoids the gradient vanishing problem and speeds up the convergence of the neural network.

[0120] It should be noted that, for the sake of convenience, the aforementioned method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present invention is not limited to the described order of actions, because according to the present invention, certain steps can be performed in other orders or simultaneously.

[0121] Based on the same idea as the high-speed visible light positioning image processing method based on BN-CNN in the above-mentioned embodiment, the present invention also provides a high-speed visible light positioning image processing system based on BN-CNN, which can be used to execute the above-mentioned high-speed visible light positioning image processing method based on BN-CNN. For ease of explanation, the structural schematic diagram of the embodiment of the high-speed visible light positioning image processing system based on BN-CNN only shows the parts related to the embodiment of the present invention. Those skilled in the art can understand that the illustrated structure does not constitute a limitation on the device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0122] like Figure 8 As shown, another embodiment of the present invention provides a high-speed visible light positioning image processing system based on BN-CNN, including a modulation module, a shooting module, a training module and a positioning module;

[0123] The modulation module is used to obtain the unique identifier of the LED lamp at the signal transmitting end and encode it into a cross 2-5 code, and then modulate the LED lamp using on-off keying through the modulator to drive the LED lamp to emit light signals of different frequencies;

[0124] The shooting module is used to use a CMOS image sensor to shoot light signal images emitted by different LED lights at the signal receiving end, and divide them into a stripe image training set and a stripe image test set;

[0125] The training module is used to import the stripe image training set into the designed batch normalized convolutional neural network for training, and use the continuous gradient descent method to optimize the loss to obtain the stripe image classification model;

[0126] The positioning module is used to import the stripe image test set into the stripe image classification model for recognition, determine the category to which the stripe image belongs and the unique identifier of the LED light corresponding to the category, and determine the location of the signal receiving end.

[0127] It should be noted that the high-speed visible light positioning image processing system based on BN-CNN of the present invention corresponds one to one with the high-speed visible light positioning image processing method based on BN-CNN of the present invention. The technical features and beneficial effects described in the embodiment of the high-speed visible light positioning image processing method based on BN-CNN are applicable to the embodiment of the high-speed visible light positioning image processing system based on BN-CNN. For specific contents, please refer to the description in the embodiment of the method of the present invention, which will not be repeated here. This is hereby declared.

[0128] In addition, in the implementation of the BN-CNN-based high-speed visible light positioning image processing system in the above-mentioned embodiment, the logical division of each program module is only an example. In actual applications, the above-mentioned functions can be assigned to different program modules as needed, for example, for the convenience of corresponding hardware configuration requirements or software implementation. That is, the internal structure of the BN-CNN-based high-speed visible light positioning image processing system is divided into different program modules to complete all or part of the functions described above.

[0129] like Fig. 9 As shown, in one embodiment, a computer-readable storage medium is provided, in which a program is stored in a memory, and when the program is executed by a processor, the high-speed visible light positioning image processing method based on BN-CNN is implemented, specifically:

[0130] The unique identifier of the LED lamp at the signal transmitting end is obtained and encoded into a cross 2-5 code, and then the LED lamp is modulated by the modulator using on-off keying to drive the LED lamp to emit light signals of different frequencies;

[0131] Use CMOS image sensor to capture light signal images emitted by different LED lights at the signal receiving end, and divide them into stripe image training set and stripe image test set;

[0132] The stripe image training set is imported into the designed batch normalized convolutional neural network for training, and the loss is optimized using the continuous gradient descent method to obtain the stripe image classification model;

[0133] The stripe image test set is imported into the stripe image classification model for recognition, the category to which the stripe image belongs and the unique identifier of the LED light corresponding to the category are determined, and the location of the signal receiving end is determined.

[0134] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0135] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0136] The above embodiments are preferred implementation modes of the present invention, but the implementation modes of the present invention are not limited to the above embodiments. Any other changes, modifications, substitutions, combinations, and simplifications that do not deviate from the spirit and principles of the present invention should be equivalent replacement methods and are included in the protection scope of the present invention.

Claims

1. A high-speed visible light positioning image processing method based on BN-CNN, characterized in that: The steps include: The unique identifier of the LED lamp at the signal transmitting end is obtained and encoded into a cross 2-5 code, and then the LED lamp is modulated by the modulator using on-off keying to drive the LED lamp to emit light signals of different frequencies; Use CMOS image sensor to capture light signal images emitted by different LED lights at the signal receiving end, and divide them into stripe image training set and stripe image test set; The step of obtaining the stripe image training set and the stripe image test set is as follows: Use CMOS image sensors to capture light signals of multiple LED lights from different angles at different moving speeds, save the captured stripe images, and record the LED light unique identifier UID corresponding to the stripe image, the moving speed during shooting, and the shooting angle as tag values; The captured stripe image is preprocessed: the stripe image is converted into a grayscale image; a threshold is set by checking the row and column pixel sums, the row and column boundaries of the complete stripe image are determined, and the boundary is extended outwards to crop the complete stripe image; The preprocessed stripe image is randomly divided to obtain a stripe image training set and a stripe image test set; The stripe image training set is imported into the designed batch normalized convolutional neural network for training, and the loss is optimized using the continuous gradient descent method to obtain the stripe image classification model; The stripe image test set is imported into the stripe image classification model for recognition, the category to which the stripe image belongs and the unique identifier of the LED light corresponding to the category are determined, and the location of the signal receiving end is determined.

2. The high-speed visible light positioning image processing method based on BN-CNN according to claim 1 is characterized in that: The designed batch normalized convolutional neural network BN-CNN includes an input layer, a Conv1 layer, a Conv2 layer, an M1 layer, a FC1 layer, an M2 layer, a FC2 layer and an output layer; The Conv1 layer includes a convolution layer, a batch normalization layer, a ReLU activation layer and a maximum pooling layer, which are used to extract features to obtain a feature map; The Conv2 layer includes a convolution layer, a batch normalization layer, a ReLU activation layer and a maximum pooling layer, which are used to extract high-dimensional features to obtain a high-dimensional feature map; The M1 layer includes a dropout layer and a flatten layer, which are used to convert the high-dimensional feature map into a feature array; The FC1 layer includes a fully connected layer, a batch normalization layer, and a ReLU activation layer, which are used to add nonlinear factors; The M2 layer includes a dropout layer for reducing the co-adaptation relationship between neurons in the neural network; The FC2 layer includes a fully connected layer and a batch normalization layer, which is used to output the classification results; The output layer includes a Softmax classifier, which is used to calculate the probability distribution corresponding to the classification result and output the classification information with the maximum probability.

3. The high-speed visible light positioning image processing method based on BN-CNN according to claim 2 is characterized in that: The convolution layer in the Conv1 layer uses 32 3×3 convolution kernels with a step size of (1,1) to extract features from the stripe image training set input by the input layer, generating 32 feature maps. The formula for obtaining the feature map by the convolution layer is: Among them, X i is the i-th stripe image in the stripe image training set, Y i is the feature map corresponding to the i-th stripe image, b i is the bias of the neuron, w ji is the weight of the neuron, * is the convolution operation; Use zero padding to fill the edge pixels of the feature map to obtain 32 feature maps of size 800×800; Use the batch normalization layer to normalize the feature map after the convolution layer is padded, and limit the mean and variance of the feature map to the range of [0,1]; The output of the batch normalization layer is nonlinearly mapped to the maximum pooling layer in the Conv1 layer using the activation function of the ReLU activation layer. The maximum pooling layer uses the maximum pooling with a stride of (2,2) to calculate and output the maximum value of the data corresponding to the sliding process of the polling window, and outputs a feature map with a size of 400×400 pixels.

4. The high-speed visible light positioning image processing method based on BN-CNN according to claim 3 is characterized in that: The convolution layer in the Conv2 layer uses 64 3×3 convolution kernels to obtain 32 feature maps of 400×400 pixels from the Conv1 layer to perform high-dimensional feature extraction, thereby generating 64 high-dimensional feature maps; The high-dimensional feature map is then passed through the batch normalization layer, ReLU activation layer, and maximum pooling layer in the Conv2 layer to output 64 high-dimensional feature maps of size 200×200 pixels.

5. The high-speed visible light positioning image processing method based on BN-CNN according to claim 4 is characterized in that: The dropout layer in the M1 layer randomly discards 50% of the hidden neurons during the forward propagation process; the flatten layer in the M1 layer transforms the 64 high-dimensional feature maps of 200×200 pixels output by the Conv2 layer into 64 one-dimensional feature arrays of 200×200 pixels; The fully connected layer in the FC1 layer uses 512 connection nodes to convert the input one-dimensional feature array into 512 feature values, and outputs them to the batch normalization layer in the FC1 layer; the batch normalization layer in the FC1 layer adjusts the feature values ​​to a standard normal distribution, and the output values ​​are input into the ReLU activation layer in the FC1 layer to add nonlinear factors; The last fully connected layer of the FC2 layer with N connection points outputs N classification results corresponding to N unique identifiers.

6. The high-speed visible light positioning image processing method based on BN-CNN according to claim 5 is characterized in that: The output layer uses a Softmax classifier to convert the N classification results output by the FC2 layer into classification percentages that add up to 1. The conversion formula is: Among them, V i The i-th classification result of the output layer input; Analyze the classification percentage and output the unique identifier UID corresponding to the classification with the highest probability; The loss value L of BN-CNN is calculated using the probability distribution and loss function output by the Softmax classifier i , the loss function is: L i =-log P (Y=y i |X=x i ) Use the continuous gradient descent method to back-propagate the convolution kernel of the convolution layer to optimize the loss value L i Continuously reduce and obtain the stripe image classification model.

7. The high-speed visible light positioning image processing method based on BN-CNN according to claim 6 is characterized in that: The determining of the position of the signal receiving end is specifically: Import the stripe image test set into the stripe image classification model for recognition, and decode to obtain the unique identifier UID corresponding to the LED light; Look up the "UID-coordinate" mapping table to retrieve the spatial coordinates of the LED light corresponding to the UID; If the output of the image classification model is a unique identifier of an LED light, the position of the signal receiving end is determined according to the retrieved spatial coordinates of the corresponding LED light; If the image classification model outputs unique identifiers of two or more LED lights, the position of the signal receiving end is determined by analyzing the spatial coordinates of the retrieved multiple corresponding LED lights and the pixel coordinates in the stripe image plane.

8. High-speed visible light positioning image processing system based on BN-CNN, characterized by: A high-speed visible light positioning image processing method based on BN-CNN applied to any one of claims 1 to 7, comprising a modulation module, a shooting module, a training module and a positioning module; The modulation module is used to obtain the unique identifier of the LED lamp at the signal transmitting end and encode it into a cross 2-5 code, and then modulate the LED lamp using on-off keying through the modulator to drive the LED lamp to emit light signals of different frequencies; The shooting module is used to use a CMOS image sensor to shoot light signal images emitted by different LED lights at the signal receiving end, and divide them into a fringe image training set and a fringe image test set; The training module is used to import the stripe image training set into the designed batch normalized convolutional neural network for training, and use the continuous gradient descent method to optimize the loss to obtain the stripe image classification model; The positioning module is used to import the stripe image test set into the stripe image classification model for recognition, determine the category to which the stripe image belongs and the unique identifier of the LED light corresponding to the category, and determine the position of the signal receiving end.

9. A computer-readable storage medium storing a program, characterized in that: When the program is executed by a processor, the high-speed visible light positioning image processing method based on BN-CNN described in any one of claims 1 to 7 is implemented.