A method for estimating a number of labels using a convolutional neural network
By constructing a CNN model and training the number of tags using the tag start frame (SOF) collision waveform, the sensitivity of the initial Q value selection in the DFSA algorithm is solved, thereby improving the tag inventory efficiency and recognition speed of the high-frequency RFID system.
Patent Information
- Application Number
- CN202311257522.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-27
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2043-09-27
AI Technical Summary
In multi-tag recognition scenarios, improper setting of the initial Q value in the existing DFSA algorithm leads to high tag inventory time complexity and requires multiple rounds of adjustment, affecting recognition efficiency.
The number of labels is estimated by using a convolutional neural network (CNN). By constructing a CNN model, the collision waveform of the first response (SOF) of the label is used for training. The mapping relationship between the number of labels and the waveform is established, the number of unknown labels is estimated, and the optimal Q value is calculated.
It effectively improves the tag inventory efficiency of high-frequency RFID systems, reduces estimation errors and identification delays, and lowers time complexity.
Smart Images

Figure CN117313758B_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of radio frequency identification, specifically relating to a method for estimating the number of tags using a convolutional neural network. Background Technology
[0002] High-frequency RFID systems have advantages that other frequency band RFID systems do not have due to their working frequency band and magnetic field coupling principle, such as controllable reading range and accurate reading of densely stacked RFID tags. They are widely used in industries such as document management and smart warehousing.
[0003] However, in multi-tag identification applications, the initial Q-value in the DFSA algorithm is related to the number of tags: the number of time slots is 2. Q When the number of tags and the number of time slots are equal, the system efficiency reaches its optimal performance of 36.8%. However, if the initial Q value is set too high or too low, multiple rounds of Q value adjustment are required before a tag can successfully respond, resulting in high complexity in tag inventory time.
[0004] Therefore, there is an urgent need for a method to optimize the initial Q-value in the DFSA algorithm to improve the efficiency of tag counting and adapt to the application requirements of rapid inventory of dense tags. This invention uses CNN to estimate the number of tags, which facilitates the setting of a better initial Q-value. Summary of the Invention
[0005] (a) Technical problems to be solved
[0006] The technical problem to be solved by this invention is how to provide a method for estimating the number of labels using a convolutional neural network in order to solve the problem of estimating the initial Q value.
[0007] (II) Technical Solution
[0008] To address the aforementioned technical problems, this invention proposes a method for estimating the number of labels using a convolutional neural network, the method comprising the following steps:
[0009] S1. Construct a CNN model, including the following sub-steps:
[0010] S11, CNN Sample Set Acquisition: Under multi-label dense inventory, for multiple sets of known number of labels, the Q value of the DFSA algorithm is set to 0, the inventory is started, the SOF waveform of the first response of the label is the feature set of the CNN sample set, and the number of labels is the label space of the CNN sample set.
[0011] S12, CNN model training: Input the collected sample set into the CNN, divide the sample set into training set and test set. The training set is used to train the CNN model for label number estimation, and the test set is used to test the accuracy of the trained CNN model. Establish a CNN model that can reflect the mapping relationship between label number and SOF collision waveform.
[0012] S2. Estimated quantity of labels to be inventoried; including the following sub-steps:
[0013] S21. Acquisition of waveforms of tags to be inventoried: For an unknown number of tags to be inventoried, set the Q value of the DFSA algorithm to 0 and acquire the SOF collision waveform of the first response of all tags.
[0014] S22. Estimation of the number of labels to be counted: Input the waveform into the trained CNN model to obtain the estimated number of labels, and calculate the optimal Q value Q = [log2(N)] based on the estimated number of labels.
[0015] (III) Beneficial Effects
[0016] This invention proposes a method for estimating the number of tags using a convolutional neural network. The proposed method realizes tag number estimation in the anti-collision algorithm of high-frequency RFID systems, and can solve the problems of the sensitive initial frame length selection in the DFSA algorithm, as well as the large estimation error, long identification time, and high time complexity caused by the early stopping of the RFID dynamic frame time slot. It can effectively improve the inventory efficiency of high-frequency RFID systems. Attached Figure Description
[0017] Figure 1 This is a diagram of the convolutional neural network structure used in the method for estimating the number of labels using a convolutional neural network according to the present invention.
[0018] Figure 2 This is a flowchart of the method for estimating the number of labels using a convolutional neural network according to the present invention. Detailed Implementation
[0019] To make the objectives, contents, and advantages of the present invention clearer, the specific embodiments of the present invention will be described in further detail below with reference to the accompanying drawings and examples.
[0020] This invention discloses a method for estimating the number of tags using a Convolutional Neural Network (CNN), applicable to high-frequency radio frequency identification (RFID) systems employing the Dynamic Framed Slotted ALOHA algorithm (DFSA). The method mainly includes: (1) Constructing a CNN model: For a known number of tags, the Q-value in the DFSA algorithm is set to 0 and inventory is initiated. At this time, all tags respond simultaneously, generating collisions. The collision waveform of the starting frame (SOF) at this time is collected as the feature set of the sample set to train the CNN model; (2) Estimating the number of tags to be inventoried: For an unknown number of tags to be inventoried, the Q-value of the DFSA algorithm is set to 0. The collision waveform of the SOF at this time is collected as the input to the trained CNN model, and the output is an estimated number of tags.
[0021] This invention proposes a method that combines a convolutional neural network (CNN) with a multi-label start-of-frame (SOF) collision waveform, effectively ensuring the efficiency of label counting. The method includes:
[0022] S1. Construct a CNN model, including the following sub-steps:
[0023] S11, CNN Sample Set Acquisition: Under multi-label dense inventory, for multiple sets of known number of labels, the Q value of the DFSA algorithm is set to 0, the inventory is started, the SOF waveform of the first response of the label is the feature set of the CNN sample set, and the number of labels is the label space of the CNN sample set.
[0024] S12, CNN Model Training: Input the collected sample set into the CNN, and divide the sample set into a training set and a test set. 70% of the total number of samples is used as the training set and 30% of the total number of samples is used as the test set. The training set is used to train the CNN model for label number estimation, and the test set is used to test the accuracy of the trained CNN model. A CNN model that can reflect the mapping relationship between the number of labels and the SOF collision waveform is established.
[0025] S2. Estimated quantity of labels to be inventoried. This includes the following sub-steps:
[0026] S21. Acquisition of waveforms of tags to be inventoried: For an unknown number of tags to be inventoried, set the Q value of the DFSA algorithm to 0 and acquire the SOF collision waveform of the first response of all tags.
[0027] S22. Estimation of the number of labels to be counted: Input the waveform into the trained CNN model to obtain the estimated number of labels. The optimal Q value Q = [log2(N)] can be calculated based on the estimated number of labels.
[0028] The relationship between the number of tags N and the optimal Q value is N=2. Q The DFSA algorithm only requires the Q value to be correct, so the final estimated N value has a certain error tolerance range. The obtained Q value can be used to set the Q value of the DFSA algorithm when actually counting labels, thus speeding up the inventory process.
[0029] Example 1:
[0030] This invention proposes a method that combines a convolutional neural network (CNN) with a multi-label start frame (SOF) collision waveform, which effectively ensures the efficiency of label counting.
[0031] The following description uses the ISO 18000-3 protocol Mode 3 as an example, along with the accompanying drawings, to illustrate specific embodiments of the present invention, but this is not intended to limit the specific implementation method. (See attached figures.) Figure 2 As shown, the specific implementation process of this method is as follows.
[0032] (1) Constructing an offline CNN model
[0033] (11) Constructing the CNN sample set. Under multi-label dense inventory, for a known number of labels, the Q value of the DFSA algorithm is set to 0, and inventory is started. The SOF of the first response of the label is the feature set of the CNN sample set, and the known number of labels is the label space of the CNN sample set. To avoid the influence of noise, etc., 100 samples are collected for each number of labels.
[0034] Taking the inventory of up to 100 labels as an example, the number of labels N are 1, 2, 4, 8, 16, 32, 64, and 128 respectively. The Q value of the DFSA algorithm is set to 0. The SOF collision waveform of the first response of all labels is collected as the feature set of CNN samples, and the number of labels N is used as the label space of CNN samples.
[0035] (12) Training the CNN model. According to the present invention, the collected sample set is input into the CNN, the structure of which is as follows: Figure 1 As shown, 70% of the total number of samples is used as the training set and 30% as the test set. A CNN model is built to reflect the mapping relationship between the number of labels and the SOF collision waveform. The output of the CNN is the estimated number of labels.
[0036] The following example, listing up to 100 labels, illustrates the structure of a CNN model:
[0037] The input layer of the CNN consists of SOF collision waveform images that respond to multiple labels simultaneously. To reduce computation and enhance generalization ability, the color SOF collision waveform images obtained from the oscilloscope are converted to grayscale and downsampled to 28×28.
[0038] Convolutional layer 1 (C1): Six 5×5 convolutional kernels generate six 24×24 feature maps from the input 28×28 grayscale image.
[0039] Pooling layer 1 (P1): Multiple 2×2 unit regions in convolutional layer 1 (C1) are used as inputs to sub-sampling units, and the maximum value of these inputs is used as the pooling feature map to obtain 6 12×12 feature maps.
[0040] Convolutional layer 2 (C2): 12 5×5 convolutional kernels generate 12 8×8 feature maps from the 12×12 feature map.
[0041] Pooling layer 2 (P2): Multiple 2×2 unit regions in convolutional layer 2 (C2) are used as inputs to sub-sampling units, and the maximum value of these inputs is used as the pooling feature map to obtain 12 4×4 feature maps.
[0042] Fully connected layer 1 (F1): Transforms 192 nodes from all pixels of P2, i.e., 12×4×4=192.
[0043] Output layer: The output layer is fully connected to all nodes of F1 and is used for label count estimation. The output layer itself has 8 output nodes, representing 1, 2, 4, 8, 16, 32, 64, and 128 labels respectively.
[0044] The activation function in the entire CNN is the ReLU function.
[0045] (2) Estimating the number of labels to be inventoried
[0046] (21) Acquisition of the waveform of the tag to be inventoried. For an unknown number of tags to be inventoried, set the Q value of the DFSA algorithm to 0 and acquire the SOF collision waveform of the first response of all tags.
[0047] (22) Estimation of the number of labels to be inventoried. Input the waveform into the trained CNN model to obtain the estimated number of labels, and then determine the optimal Q value based on the estimated number of labels: Q = [log2(N)]. The Q value is used to set the Q value of the DFSA algorithm in the actual inventory process.
[0048] Example 2:
[0049] A method for estimating the number of labels using a convolutional neural network includes:
[0050] (1) Construct a CNN model;
[0051] (2) Estimate the number of labels to be inventoried.
[0052] A method for estimating the number of labels using a convolutional neural network, wherein the determination method in step (1) is as follows:
[0053] (11) Constructing the CNN sample set. In multi-label dense scenarios, for a known number of labels, the Q value of the DFSA algorithm is set to 0, and multiple counts are performed. The SOF collision waveform of the first response of the label is the feature set of the CNN sample set, and the known number of labels is the label space of the CNN sample set. To avoid the influence of noise, samples are collected multiple times for each number of labels.
[0054] (12) Train the CNN model. Input the collected sample set into the CNN, with 70% of the total number of samples as the training set and 30% of the total number of samples as the test set. Build a CNN model of the label and SOF collision waveform. The output of the CNN is the estimated number of labels.
[0055] A method for estimating the number of labels using a convolutional neural network, wherein the determination method in step (2) is as follows:
[0056] (21) Acquisition of the waveform of the tag to be inventoried. For an unknown number of tags to be inventoried, set the Q value of the DFSA algorithm to 0 and acquire the SOF collision waveform of the first response of all tags.
[0057] (22) Estimation of the number of labels to be inventoried. Input the waveform into the trained CNN model to obtain the estimated number of labels. Based on the estimated number of labels, the optimal Q value can be determined: Q = [log2(N)]. The Q value is used to set the Q value of the DFSA algorithm in the actual inventory process.
[0058] The method proposed in this invention realizes tag quantity estimation in the anti-collision algorithm of high-frequency RFID system. It can solve the problems of the sensitive initial frame length selection in the DFSA algorithm and the large estimation error, long identification time and high time complexity caused by the early stopping of the RFID dynamic frame time slot. It can effectively improve the inventory efficiency of high-frequency RFID system.
[0059] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the technical principles of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A method for estimating the number of tags in a high-frequency RFID system using a convolutional neural network, characterized in that, The method includes the following steps: S1. Construct a CNN model, including the following sub-steps: S11, CNN Sample Set Acquisition: Under multi-label dense inventory, for multiple sets of known number of labels, the Q value of the DFSA algorithm is set to 0, inventory is started, the SOF collision waveform of the first response of the label is the feature set of the CNN sample set, and the number of labels is the label space of the CNN sample set. S12, CNN Model Training: The collected sample set is input into the CNN. The sample set is divided into a training set and a test set. The training set is used to train the CNN model for label number estimation, and the test set is used to test the accuracy of the trained CNN model. A CNN model that can reflect the mapping relationship between the number of labels and the SOF collision waveform of the initial frame is established. The input layer of the CNN is the SOF collision waveform image of the initial frame in which multiple labels respond simultaneously. S2. Estimated number of labels to be inventoried; Includes the following sub-steps: S21. Acquisition of waveforms of tags to be inventoried: For an unknown number of tags to be inventoried, set the Q value of the DFSA algorithm to 0 and acquire the SOF collision waveform of the first response of all tags. S22. Estimation of the number of labels to be inventoried: Input the SOF collision waveform of the starting frame of the labels to be inventoried into the trained CNN model to obtain the estimated number of labels. Calculate the optimal Q value Q=[log2( N )).
2. The method for estimating the number of tags in a high-frequency RFID system using a convolutional neural network as described in claim 1, characterized in that, 70% of the total number of samples is used as the training set, and 30% of the total number of samples is used as the test set.
3. The method for estimating the number of tags in a high-frequency RFID system using a convolutional neural network as described in claim 1, characterized in that, For each type of label, 100 samples were collected.
4. The method for estimating the number of tags in a high-frequency RFID system using a convolutional neural network as described in any one of claims 1-3, characterized in that, When counting up to 100 labels, the number of labels N is 1, 2, 4, 8, 16, 32, 64, and 128. The Q value of the DFSA algorithm is set to 0. The SOF collision waveform of the first response of all labels is collected as the feature set of CNN samples, and the number of labels N is used as the label space of CNN samples.
5. The method for estimating the number of tags in a high-frequency RFID system using a convolutional neural network as described in claim 4, characterized in that, The CNN model includes: the input layer, convolutional layer 1 (C1), pooling layer 1 (P1), convolutional layer 2 (C2), pooling layer 2 (P2), fully connected layer 1 (F1), and output layer.
6. The method for estimating the number of tags in a high-frequency RFID system using a convolutional neural network as described in claim 5, characterized in that, The input layer of the CNN will convert the color start frame SOF collision waveform image obtained from the oscilloscope to grayscale and downsample it to 28×28.
7. The method for estimating the number of tags in a high-frequency RFID system using a convolutional neural network as described in claim 6, characterized in that, Convolutional layer 1 (C1): Six 5×5 convolutional kernels generate six 24×24 feature maps from the input 28×28 grayscale image; Pooling layer 1 (P1): Multiple 2×2 unit regions in convolutional layer 1 (C1) are used as inputs to sub-sampling units, and the maximum value of these inputs is used as the pooling feature map to obtain six 12×12 feature maps.
8. The method for estimating the number of tags in a high-frequency RFID system using a convolutional neural network as described in claim 7, characterized in that, Convolutional layer 2 (C2): 12 5×5 convolutional kernels generate 12 8×8 feature maps from the 12×12 feature map; Pooling layer 2 (P2): Multiple 2×2 unit regions in convolutional layer 2 (C2) are used as inputs to sub-sampling units, and the maximum value of these inputs is used as the pooling feature map to obtain 12 4×4 feature maps.
9. The method for estimating the number of tags in a high-frequency RFID system using a convolutional neural network as described in claim 8, characterized in that, Fully connected layer 1 (F1): Transforms all pixels of pooling layer 2 (P2) by 192 nodes, i.e., 12×4×4=192; Output layer: The output layer is fully connected to all nodes of the fully connected layer 1 (F1) and is used for label number estimation. The output layer itself has 8 output nodes, representing 1, 2, 4, 8, 16, 32, 64 and 128 labels respectively.
10. The method for estimating the number of tags in a high-frequency RFID system using a convolutional neural network as described in any one of claims 5-9, characterized in that, The activation function in the entire CNN is the ReLU function.
