Abstract

The aim of this study is to solve the problem of RFID reader antenna deployment when an obstacle in the environment or the material itself is an obstacle. The article establishes a new reader antenna constraint model based on the rectangular obstacle RFID antenna deployment optimization environment model and the reader antenna sensing model containing Gaussian distribution noise probability and applies the improved firefly algorithm to find the optimum with coverage rate, interference degree, and load balance function as multiobjective functions. First, to obtain a uniform traversal of the target space, and a cube mapping is applied for chaos initialization. Second, a weighting model is proposed to control the speed of firefly variation and combine the variable step strategy of elite individuals to expand the movement step of elite individuals and reduce the movement step of nonelite individuals to improve population diversity. Finally, to improve the algorithm’s continuous optimality-seeking ability, a Gaussian variation operation strategy based on elite fireflies is introduced to ensure the algorithm’s optimality-seeking throughout the process.

1. Introduction

Radio frequency identification (RFID) technology, as one of the important cores of the perception layer of the Internet of Things, not only promotes the rapid development of the Internet of Things, another revolution in the information industry after computers, the Internet of Things, and mobile communications, but also advances the application development of RFID technology, creating new industrial structures, new business models, new forms of service, and new lifestyles [1], and the technology is involved in manufacturing, warehouse management, logistics, smart meters, agriculture, military, medical, and other fields [24]. RFID technology is a noncontact automatic identification and tracking technology based on radio frequency (RF) communication [5], mainly, including the host system, RFID reader, and RFID tags, and other components, through the radio frequency signal in the reader and tag to transmit data between them. However, the radio frequency identification technology in the actual application, because the site environment is more complex, especially the existence of obstacles or the material itself is an obstacle situation, the RFID reader antenna deployment method (mainly, including the reader antenna quantity, deployment position, and direction) determines the reading rate of the given area label, its reading rate is one of the important factors in deciding the RFID system’s performance.

Many valuable studies have been done by domestic and foreign scholars on RFID reader planning and deployment. Qiang et al. [6] for the complex propagation environment, in the two-dimensional plane using the signal threshold about the activation label and the threshold of the backscatter reader, received signal to judge the perception ability of the reader, established multiple objective functions based on reader coverage, reader cost, interfering degree between readers, uplink signal (label to reader signal), to simplify the operation process, introduce weighting coefficient to convert multiple objectives into a single objective, and apply a genetic algorithm to solve this complex optimization problem. Reference [7] proposed a coding scheme based on swarm intelligence optimization, using the swarm intelligence algorithms Flower Pollination Algorithm (FPA), Salp Swarm Algorithm (SSA), and Sine Cosine Algorithm (SCA). Among them, FPA and SCA solve the deployment optimization problem of UAV with the highest efficiency and minimize the energy consumption of UAV operation, so as to minimize the energy consumption of information equipment transmission on the Internet of Things. Lin and Tsai [8] established a model about the reader coverage and cost model by applying omnidirectional reader reading distance to the restricted 3D reader network planning space of a large warehouse RFID system, fixed the location of readers, and proposed a microgenetic algorithm with spatial crossover and correction, whose algorithm is efficient and makes up for the disadvantage of the fast turnaround time of stored objects while ensuring a high tag coverage rate. Tang et al. [9] combined the actual situation of the mixed flow assembly line, summarized the requirements including fence coverage [10], full coverage, and distinguished coverage [11], and introduced fuzzy interference value [12] to measure the coverage capability of reader antenna and established a multiobjective nonlinear integer planning model in the two-dimensional plane to optimize the layout of the reader antenna with the objectives of cost and coverage performance. Most of the current research about RFID reader antenna deployment mainly simplifies the complex environment into a two-dimensional or three-dimensional environment without obstacles [1315] and applies genetic algorithm (GA), such as particle swarm algorithms, and adaptive bacterial foraging algorithm, etc., to optimize the deployment of spatial RFID reader antennas.

However, RFID network optimization of the working environment often exists in metal and other environment where RFID is not easy to penetrate the object. That is, the obstacle. Currently, there are few problems in optimizing the deployment of reader antennas for obstacle environments. The current approach is to see the obstacle as a typical shape, such as a rectangle or square. Li Junjun et al. [16] for the logistics RF network with rectangular obstacles show that in the two-dimensional plane of the rectangular obstacles on the reader antenna recognition ability of the problem is reduced to the intersection of line segments and the diagonal of the rectangle, and the design “straddle test,” using an ant colony algorithm to solve, improves the accuracy of the algorithm development because the actual obstacle is often rectangular. Zhang Rong et al. [17] although proposed to solve the three-dimensional space has rectangular obstacle RFID reader network planning problem, according to the antenna theory [18] established the reader antenna judgment recognition ability perception model, to coverage and reader interference degree as the optimization targets, apply a kind of firefly algorithm based on a simulated annealing mechanism to optimize the location and direction of the reader antenna, but only consider the obstacle is alone in RFID three-dimensional space, did not consider the tag exists between the obstacles or the material itself for the obstacle situation.

To be more in line with the RFID actual working situation, including the establishment of the RFID network working model as well as the location and direction of the reader to find the optimal. The key contributions in this paper can be summarized as follows:(1)First, the RFID environment space is discretized and chaotic initialization is applied to the cube mapping to obtain uniform ergodicity of the target space.(2)Second, we propose a weight model to improve the standard firefly algorithm to effectively control the speed of firefly variation and combine the variable step strategy of elite individuals to expand the movement step of elite individuals and reduce the movement step of nonelite individuals to increase the population diversity and improve the solution accuracy of the algorithm.(3)Finally, to improve the algorithm’s continuous optimality-seeking ability, a Gaussian variation operation strategy based on elite fireflies is introduced to ensure the algorithm’s optimality-seeking throughout the process.

Effectively solve the problem of RFID reader antenna deployment when an obstacle in the environment or the material itself is an obstacle. The rest of this paper is organized as follows. Existing techniques are reviewed in Section 2. RFID reader antenna deployment optimization problem modeling is presented and formulated in Section 3. The solution method based on the improved FA is presented in Section 4. Simulation results of the proposed method on the case study in Section 5. Finally, the last section gives the conclusion of the whole study.

2. Literature Review

Metaheuristic algorithms have been the focus of academic research and are a class of algorithms distinguished from exact algorithms, which can provide approximate optimal solutions to some complex optimization problems [19]. Shokouhifar [20] introduced a population intelligence RFID network planning model with multiple antenna readers. A combined global-local metaheuristic algorithm based on the whale optimization algorithm and simulated annealing is proposed to enhance coverage in healthcare systems through RFID network planning while reducing total cost, interference, collisions, and power consumption. Fabian et al. [21] utilize an improved global search based on the firefly algorithm, followed by a local search improvement based on the simulated annealing to make a better exploration-exploitation balance during the search for the optimal solution. The presented method performs effectively better in reducing the time span using a different numbers of tasks and virtual machines. Reference [22] proposes a hybrid algorithm that integrates the K-means algorithm to produce a binary cuckoo search technique and a new local search operator to improve the utilization of the search space. Reference [23] evaluated a hybrid algorithm that improved the resource allocation results of the quantum cuckoo search algorithm using the k-nearest neighbor technique and applied it to the well-known multidimensional backpack problem. Reference [24] presents an improved ant colony optimization (ACOII) algorithm to solve dynamic facility layout problems for construction sites. The algorithm uses a construction method to construct layout solutions over time and uses discrete dynamic search with heuristic information based on relocation and mobility costs. Reference [25] proposed an enhanced version of the artificial bee colony nature-inspired metaheuristic algorithm to optimize the connection weights and hidden units of artificial neural networks. The quasi-reflection-based learning mechanism significantly improves the convergence speed of the original artificial bee colony algorithm and enhances the utilization together with the bounded-guided optimal solution, resulting in a significant increase in accuracy. In combination with a metaheuristic game theory-based strategy, reference [26] proposes an innovative hybrid game strategy and provides insights into domain decomposition schemes to improve computational efficiency and effectiveness in civil engineering structural design optimization. In reference [27], a parameter-free local search strategy was proposed to solve the graph coloring problem. None of the explicit or implicit parameters normally used in metaheuristics are used. Reference [28] utilizes fuzzy heuristic information from the current state of the problem to guide the metaheuristic algorithm, which results in better convergence speed. Heuristically fast speed and metaheuristically high solution quality can be achieved simultaneously.

3. RFID Reader Antenna Deployment Optimization Problem Modeling

3.1. Rectangular Obstacle RFID Antenna Deployment Optimization Environment Model

The mathematical analysis part of RFID reader antenna deployment optimization is to convert the process of tag T being identified in the target monitoring area of reader antenna R into a mathematical model. The main objective of this paper is to establish an RFID network working model, construct the calculation formula for finding the reader antenna sensing distance containing Gaussian distribution noise and the reader antenna sensing model, and apply the improved firefly algorithm under the multiobjective constraints of tag coverage, interference degree, and load balance function to find an RFID reader antenna deployment scheme to meet the user quickly in the specified space range Design the RFID reader location, direction, and improve the recognition rate of the reader antenna to the tag. Let the RFID environment where tags exist between rectangular obstacles or where the material itself is an obstacle, simplify it by. The rectangular obstacle RFID antenna deployment optimization environment model is shown in Figure 1. The space formed by the label and the rectangular obstacle is length A, width B, and height C. The interval distance between the label and the rectangular obstacle is h. The reader antenna is deployed on the left, right, or upper side of the space of the whole formed by the label and the rectangular obstacle. The following are the perception models of RFID reader antenna, tag coverage function, reader interantenna interference degree function, and reader antenna load balance function, respectively.

3.2. Perception Model of RFID Reader Antenna

In an RFID system, the reader carries on the wireless communication with the tag through the antenna, and its reader antenna can be an independent part, and also, can be built into the reader. The reader antenna in this paper is a separate part. Because the antenna has direction, it is divided into directional and omnidirectional antennas. The directional antenna shows radiation in a certain angle range on the horizontal direction diagram, the radiation range is similar to an unshaped flip cone, the horizontal beam is narrow, the vertical beam is wide, and the communication distance is long. It can identify the stacked very high goods normally, avoiding the problem of misreading and string reading. The reader antenna studied in this paper is a directional antenna, which will be idealized. The RFID reader antenna three-dimensional perception model is shown in Figure 2.

The passive tag cannot actively transmit signals, needs to obtain energy in the magnetic field generated by the reader, and the communication with the reader antenna must satisfy the Friis Transmission Equation [29]:where is the power received by the reader antenna, is the power transmitted by the reader antenna, is the antenna gain of the reader antenna, is the antenna gain of the tag antenna, is the wavelength of the working environment, is the distance between the reader antenna and the tag, is the propagation loss of backscattering. In the actual RFID environment, the received signal is subject to environmental noise and noise from electronic components. To be more representative, the sensing model of the dome vertebrae in the article introduces noise that follows a Gaussian distribution to determine the recognition distance . The process is as follows:

Calculate the size of the energy that can be received by the reader antenna:where is a random variable with mean 0 and variance ,Eq. is

Let the threshold for a reader antenna to be able to successfully identify a tag be . When the signal received by the reader antenna is less than the threshold value , then, the probability of the label being successfully identified is 0. If the reader receives a signal above the threshold value , the probability that the label can be successfully identified is determined by

Among them,

In the formula , is a function of the signal strength received by the reader antenna associated with and . Determined by equation (2). is a known predetermined value, while the known values of the transmitting power , , are known. Then the recognition distance of the idealized perceptual model of the dome vertebra in this paper can be calculated according to equation (4), and then, is calculated as follows:

3.3. Constraint Model of the RFID Reader Antenna

In the actual environment, there are often rectangular obstacles or the material itself is an obstacle, only the introduction of Gaussian noise does not meet the requirements, so to better meet the actual environment, optimize the RFID reader antenna in the three-dimensional space deployment method, the RFID environment space for discrete processing, so that the RFID environment space into a finite unit cube composed of , , for the unit cube of the space coordinates, and the unit cube for the significant process. Specifically: is the rectangular obstacle distribution area, is the tag distribution area, and is the RFID reader antenna deployment area.

Let the position coordinates of the reader antenna R be , The antenna plane normal vector of the reader is , The coordinates of the position of a certain label T are , The constraints under which the tag can be sensed by this reader antenna are as follows:where: is the read-write antenna R according to equation (6) formula to calculate the reading distance, is the reading angle of the reader antenna R, used to indicate whether the rectangular obstacle exists between the reader antenna R and the tag T to affect its communication. The space of the whole formed by the label and the rectangular obstacle is length A, width B, and height C. The label is arranged between the rectangular obstacle, and the interval distance between the label and the rectangular obstacle is h. The reader antenna is deployed on the left, right, or upper side of the space formed by the label and the rectangular obstacle.

The method to determine whether the rectangular obstacle exists between the reader antenna R and the label T is as follows:(1)judgment reader antenna is located on the left, right, or upper side of the space of the whole formed by the label and the rectangular obstacle.(2)Construct the label T and the reader antenna R three-dimensional space connection, if the reader antenna is located in the left or right side area, then, the label T and the reader antenna R three-dimensional space connection line is projected to the side, and then, enter the step 3 judgment condition (i) and (ii); if located in the upper side, then, directly enter the step 3 judgment condition (iii).(3)Judgment Conditions.(i)If the reader antenna is located on the right side, the reader antenna projects to the side. If the constraint of the following equation (8) is satisfied, then, , indicates that no rectangular obstacle exists between the tag T and the reader antenna R; if the equation is not satisfied, then, .where is the maximum angle between the label T and the rectangular obstacle boundary, is the construction tag T and reader antenna R three-dimensional space connection in the plane projection and direction of the direction vector of the angle.(ii)If the reader antenna is located on the left side, the reader antenna projects to the side. If the constraint of the following equation (9) is satisfied, then, , indicates that no rectangular obstacle exists between the tag T and the reader antenna R; If the equation is not satisfied, then, .(iii)If the reader antenna is located on the upper side, only need to judge whether the reader antenna Z coordinate is greater than the overall height of the label and the rectangular obstacle C; if greater than C, then, , indicates that no rectangular obstacle exists between the tag T and the reader antenna R; otherwise .

3.4. Optimization of the Objective Function
3.4.1. Tag Coverage Function

Whether in wireless sensor networks, RFID networks, or other wireless networks, coverage is one of the important indicators of their performance. The tag coverage rate in this thesis is defined as the ratio of the total number of unit cubes in the monitoring area covered by all reader antennas to the total number of all unit cubes in the monitoring area, the higher the ratio, the better the coverage performance is indicated, and in the following formula indicates the coverage rate that:where denotes the total number of unit cubes that may appear labeled in the target space, represents the communication of this unit cube with the reader antenna, means that the unit cube can be sensed by at least one reader antenna, then, indicates that the unit cube is not sensed by the reader antenna.

3.4.2. Interference Degree Function between Reader Antennas

The interference degree between the reader antennas is also one of the important indexes to measure the RFID network system performance as the RFID reader antenna distribution is compact, the reader antenna sensing range is easy to overlap situation, leading to mutual interference between the reader antennas, affecting the cross-coverage area within the tag is perceived by the reader. Interference degree between reader antennas is defined as

Equation (11) indicates the number of reader antennas deployed in the three-dimensional space of the RFID environment deployment. Where adopts 0-1 sensing probability model and indicates the probability that the tag T is read by the reader antenna R. When there is no rectangular obstacle between the tag T and the reader antenna R, and the reader antenna R and the tag T satisfy the constraint condition of the reader antenna perception model equation (8), , consider that the reader antenna R senses the tag T as 100%, otherwise . The greater the value of the formula (12), the smaller the space of the overlapping area of the read-write antenna sensing range and the lower the interference degree of the read-write antenna with each other.

3.4.3. Load Balancing Function of Reader Antenna

The load balance of the reader antenna refers to the RFID environment deployment of the three-dimensional space with the reader antenna to communicate the number of tags as equal as possible. Otherwise, a reader antenna while processing too much tag signal will increase the reader antenna and tag energy consumption increase, the interference between the signals and RFID system performance will decline. Then, the load reader antenna network load function is expressed as follows:where indicates the number of reader antennas that can sense the label. The larger the equation (12), the more balanced the number of tags sensed by each reader antenna and the more balanced the load distribution of the RFID network.

In comprehensive analysis, in the rectangular obstacle environment, RFID reader antenna deployment needs to meet the maximum tag coverage, the lowest interference between reader antennas, and the most balanced load of three goals to achieve the optimal deployment of reader antennas. Therefore, in this paper, the above three objectives are linearly combined and converted into a single-objective problem for optimization, so the optimization objective function for the optimal deployment of the RFID reader antenna in this paper is as follows:

In the formula, , are the weights of tag coverage, interference degree between reader antennas, and reader antenna network load balance, respectively. As in the actual deployment of RFID reader antennas, coverage is the primary solution, so should be greater than 0.5, and is based on the actual situation. The target function value, namely, the adaptation degree value takes the biggest value, then, can guarantee the label coverage rate maximum premise, read-write antenna interferes with each other to the smallest degree, while read-write antenna load is the most balanced.

4. Improved FA Design Based on Reader Antenna Deployment Optimization

4.1. Firefly Algorithm Theory

The firefly algorithm is a biological heuristic swarm intelligence optimization algorithm [30]. The position of each individual of the firefly is a feasible solution to the problem sought, and all the individuals of its population are the space to the solution of the problem sought. The brightness of the firefly is positively correlated with the value of the objective function sought. The higher the brightness of the firefly, the better the solution to the objective functions. The direction of movement of fireflies is related to their brightness, i.e., fireflies with weaker brightness will be attracted to the direction of stronger firefly brightness. The distance that fireflies move is positively correlated with the brightness of individual fireflies and negatively correlated with the distance between fireflies. As long as the location of the population continues to change, most of the fireflies in the population will gather near the brighter fireflies, and the location of the brightest firefly represents the optimal value of the solution [31], so the problem of solving the optimal value can be viewed as a problem of finding the brightest firefly [32].

The formula for the relative brightness of fireflies:

In the formula: indicates the relative brightness of the individual, denotes the absolute brightness of the individual, i.e., the objective function value of the location of the firefly. is the light absorption coefficient, indicates that there will be losses in the process of light propagation in media such as air. The size of its value affects the convergence speed of the algorithm, and the theoretical value of the range of . is the Cartesian distance between fireflies and , which is denoted by

In the formula: and are the spatial locations of fireflies and , respectively. is the dimension of the requested space, denotes the position information of the th firefly in the th dimensional direction in space, ditto for .

The mutual attractiveness formula:where is the maximum attraction, that is, when the source of light firefly is located in their current position of attraction, generally taking the value of 1.

Location update formula:where is the number of iterations of the population, random iteration step of perturbation, is the random perturbation vector, standard normal distribution of general or .

4.2. Improved Implementation of Firefly Algorithm for Optimal Deployment of Reader Antennas
4.2.1. Encoding and Initialization Based on Chaotic Strategies

The RFID three-dimensional network planning problem in this paper refers to the reader antenna deployment problem, and its control variables are the location coordinates and angle of the reader antenna (i.e., expressed by the normal vector of the antenna), so the coding expression is as follows:where: represents the deployment position of the reader antenna in space (i.e. the starting point of the antenna normal vector) and the location terminal position of the antenna normal vector, respectively, then the normal vector of the reader antenna is , represents the number of reader antennas deployed in the three-dimensional space, , indicates the population size.(1)The RFID environment space is discretized so that the RFID environment space becomes composed of finite unit cubes , , , are the spatial coordinates of the unit cube, and the unit cube is signified, specifically: is the rectangular obstacle distribution area, is the tag distribution area, and is the RFID reader antenna deployment area.(2)The literature [33] proved through rigorous mathematical reasoning that cubic chaos mapping has faster convergence and better traversal uniformity than Logistic mapping [34], and in this paper, the population is initialized by generating a chaotic sequence through the cubic chaos operator, and the chaotic sequence is mapped to the value space of the control variables through a linear transformation, as in equation.

Among them, , denotes the th dimension of the -dimensional target space.

Then, the specific steps of chaos optimization for the initial population of fireflies are as follows:(1)Initialize chaotic variables for fireflies in the -dimensional space, randomly generate , an -dimensional vector of initialized variables as new individuals in the interval according to the nature of cubic chaotic mapping.(2) iterations for each dimension of according to equation (19) yielded chaotic variables for the remaining individuals.(3)The chaotic sequence generated above is mapped to the search space of control variables according to equation (20) to generate an initial population consisting of firefly individuals:where denotes the coordinates of the position of the th firefly in the th dimension of the target space, and denote the upper and lower bounds of the th dimension of the control variable space region, respectively. denotes the chaotic variable of dimension corresponding to the th firefly generated according to equation (19). Due to a large number of unit individuals, to make the firefly more effective, the target space is divided into multiple regions, and there are differences in the range of spatial coordinates taken by different readers, so the region variable is introduced to determine the range of spatial coordinates for the deployment of the reader antenna according to different regions.

When region%3 = 0 represents the reader antenna is located on the upper side of the space of the whole formed by the label and the rectangular obstacle, region%3 = 1 represents the reader antenna is located on the left side of the space of the whole formed by the label and the rectangular obstacle, and region%3 = 2 represents the reader antenna is located on the right side of the space of the whole formed by the label and the rectangular obstacle.

4.2.2. Location Update Calculation Model

According to the location update formula of the standard firefly algorithm equation (17), it is prone to cause individuals with strong firefly brightness in the firefly evolution process to quickly attract other firefly individuals to gather around them, resulting in a very low probability of individual variation, a decrease in the searchability of the algorithm or even stagnation, premature convergence, and difficulty in improving the search accuracy. Therefore, inertia weight and variable step size strategy for elite individuals are introduced, and the traction effect of the best individual in the historical population on other individuals in the population is increased. Then, the position update calculation model is changed to:

In the equation, the first term on the right side represents the influence of the spatial position of the previous generation of firefly individuals on the position of the current generation of fireflies, and the fourth term represents the traction of the best individuals of the population in the historical iteration on the individuals of the current iteration of the population, which is used to control the degree of influence of the best individuals of the current history on the current generation of individuals and improve the “self-perception” of the current generation of individuals. Where is a random number between [0, 1]; denotes the optimal position experienced in the historical firefly.

The introduction of inertia weight can better balance the global and local search ability of the algorithm in the optimization search process; when is larger, the algorithm has stronger search ability globally; when is smaller, the algorithm has stronger search ability locally. In this paper, we propose nonlinear dynamic inertia weights to make the algorithm search for the global optimal solution, which is calculated as follows:where: t is the number of current iterations; T is the maximum number of iterations; , and are the maximum and minimum values of .

The image of the noninertial weight function for different values of a is shown in Figure 3. From this figure, it can be seen that the parameter a controls the speed of weight transformation, and the larger the value of a, the greater the speed of slope transformation before t/T = 0.5, i.e., the better the global search ability when before the number of iterations reaches half of the maximum number of iterations, so a = 4 is chosen as the nonlinear dynamic inertia weight function .

4.2.3. Variable Step -Size Strategy Based on Elite Individuals

The third term on the right side of equation (21) uses a dynamic variable step size strategy based on elite individual division. The expression is as follows:where represents the iteration step size of the th individual firefly at the th iteration of the algorithm; denotes the initial given step size; represents a random integer in the range of values of , is the stochastic acceleration of step length variation, which tends to diversify the selection of firefly step length and promotes the change of population diversity; denotes the fitness value of the objective function, i.e., the fluorescence brightness of firefly ; A is a constant value used to classify elite individuals, i.e., when the brightness of firefly B is higher than C times the brightness of the best historical firefly, it is classified as an elite individual. Increasing the step size of such fireflies ensures that they move in the global field of view and search for larger areas to improve the diversity of the population and avoid early local convergence of the population. If the moving step size E after the mobilization of firefly D has been greater than 1, it is reset to the initial given step size. is a constant value used to classify elite individuals, i.e., when the brightness of firefly is higher than times the brightness of the best historical firefly, it is classified as an elite individual. Increasing the step size of such fireflies ensures that they move in the global field of view and search for larger areas to improve the diversity of the population and avoid early local convergence of the population. If the moving step size after the mobilization of firefly has been greater than 1, it is reset to the initial given step size. If the brightness of firefly is less than times the brightness of the best historical firefly, then, the step size of is reduced and the local elite search is performed to induce the population to converge gradually and improve the solution accuracy of the algorithm.

4.2.4. Gaussian Variant Manipulation Based on Elite Individuals

The firefly algorithm falls into a local optimum characterized by stagnation in the firefly evolution process after several successive iterations of the population’s historical optimal value that has not changed. Therefore, by using multiple trials with the count, it is found that for 10 consecutive times, i.e. count ≥10, the historical optimal value of the iterative population does not change, and then, the algorithm is determined to be trapped in a local optimum, Therefore, to break away from the local optimal value of the firefly population. In this paper, Gaussian variation is used to perform various operations on the elite individuals of each objective function while realizing the local search within a small range of the optimal elite individuals, the specific implementation process of which is as follows:

All firefly individuals are sorted in ascending order according to the magnitude of the combined fitness value f and the three individual objective function values f1, f2 and f3 and assigned to , , , and , respectively. The fireflies of the last in the ranking of the combined fitness value are replaced by the state and updated with Gaussian state variants using each of the elite fireflies with the best ranking mentioned above, respectively, to jump out of the local optimum. Where is a random vector obeying a Gaussian distribution with expectation 0 and variance 1. At the same time, the last ranked is replaced with the best elite fireflies of the integrated fitness value, and a random search is performed in the (−1, 1) range around the state value of the best elite fireflies to find the optimal value in a small local area.

4.3. Improved Firefly Algorithm Optimizes the Implementation Process of Deploying Reader Antennas

The flow chart of the optimization method of reader antenna deployment with improved firefly algorithm is shown in Figure 4.Step 1: Input the total number of reader antennas , the power emitted by the reader antennas , the antenna gain of the reader antennas , the antenna gain of the tag antennas , and the reading angle , the propagation loss of backscatter , and the RFID three-dimensional space information, the RFID environment space is discretized, so that the RFID environment space becomes composed of a finite unit cube , and the unit cube is signified.Step 2: Initialize the firefly population size M, the maximum number of population iterations , the maximum attraction between fireflies , and the light absorption coefficient , given the constant value .Step 3: Initialize the population state values according to equation (20), substitute the reading distance of the perceptual model of the dome vertebrae calculated by equations (4) and (6) into equations (10)–(13), calculate the objective function values f1, f2, f3, and the fitness value f for the first generation of fireflies, and record the maximum fitness value and the minimum fitness value .Step 4: Update the number of iterations of the algorithm so that t = t + 1, calculate the nonlinear inertia weight , elite individual variable step based on equations (22) and (23), and set , as 0.9, 0.4 respectively.Step 5: The location update calculation model equation (21) updates the firefly location, calculates the objective function values f1, f2, f3 and the fitness value f for the first generation of fireflies according to the objective function equations (10)–(13), and records the contemporary maximum fitness value .Step 6: judge the size of and , and decide whether to assign to . At the same time, record the value of the historical optimal value without any consecutive changes count, if count >10, then, execute the Gaussian variation operation based on elite individuals, and return to step 5, otherwise execute sequentially.Step 7: If t > Max G, output the historical optimal adaptation value and the location direction information of the reader antenna. Otherwise, repeat steps IV∼VII for iterative calculation of the population.

5. Simulation Experimental Design and Comparative Analysis of Results

5.1. Simulation Experimental Program Design

All calculations in this article were done under the PyCharm platform of the Windows 7 operating system, the computer’s CPU model is Core i7, with 16 GB RAM.

The larger the target space, the more difficult it is to solve the 3D RFID reader antenna deployment problem, and in some mega spaces, it can be seen as composed of multiple subtarget spaces to solve the reader antenna planning scheme. In real life, we conduct research on factory-packaged aisle machines (similar to the security inspection machines for aircraft and high-speed railways entering the station). When entering the warehouse, through the passage machine, all the items in the package will be counted. For example, there are N water meters in a packaged box. When passing through the channel machine, the corresponding number of labels will be recognized. If the information of less than N − 1 labels is read only, it will be judged as a case of less packaging. Therefore, the position of the reader and the direction of the antenna have a great impact on the recognition rate of the tag. In this paper, the actual antenna deployment situation shown in Figure 5 is used for modeling and experimental simulation. In the experimental scheme, choose a 9.0 m  5.1 m  9.0 m target space to carry on the reader network planning, first according to the label distribution area, the obstacle distribution area, and the reader distribution area to carry on the line division, then, according to the 0.1 m  0.1 m  0.1 m dispersion degree to discrete the target 413100 unit body. The material in this target space is itself an obstacle and can be seen as continuous individuals, the number is 3 and their sizes are all 5.1 m  5.1 m  0.1 m. According to the actual demand, the general material height is 0.2 m∼5.1 m, so set the monitoring area is 5.1 m  5.1 m  5.1 m, the target space information of the antenna deployment environment is shown in Figure 6. Establish a three-dimensional spatial coordinate system , the x-axis is the length direction of the target surveillance space, the y-axis is the width direction of the target surveillance space, the z-axis is the height direction of the target surveillance space, and the distribution area of the label and the distribution area of the obstacle are part of the coordinates that have been marked, unit: decimeter.

In this target space under the deployment of directional antenna of the UHF RFID reader, the reader antenna transmits the power . The antenna gain of the reader antenna is equivalent to the unitless value of 6.3. The antenna gain of the tag antenna is equivalent to the unitless value of 2.3. Read the angle of clamping , the propagation loss of backscattering , and then, the equivalent unitless value of 0.32. The frequency of the working environment is , that is, the working wavelength is . The threshold at which the reader antenna can successfully identify the tag is , the parameter of the Gaussian model, and the predetermined value . After several comparative tests of the improved firefly algorithm, the values of the parameters related to the algorithm were set as follows: firefly population capacity M = 30, maximum number of iterations of the population , maximum attraction between fireflies , light absorption coefficient , given constant values . According to the test analysis and the three objective functions important to the tag coverage of the weight set to , the reader antenna interference degree of the weight set to , and the reader antenna network load balance weight set to .

5.2. Comparative Analysis of Different Results

In this paper, to verify the effectiveness and superiority of the improved firefly algorithm in solving the RFID reader antenna deployment problem in an environment with rectangular obstacles, the improved firefly algorithm FA_VA in this paper is compared and analyzed with the standard firefly algorithm FA, the firefly algorithm FA_WC based on chaotic initialization of weight position update, and the firefly algorithm that adds elite individual variable step FA_SA based on chaotic initialization of weight position update. Keeping the population size, the maximum number of iterations, maximum attraction, light absorption coefficient, and the given constant values the same, conduct 30 experiments and record the optimal results of the experiments. Where the improved firefly algorithm FA_VA used in this paper is compared with the standard firefly algorithm FA for nonparametric test statistical analysis. Using the Wilcoxon signed-rank test [35] method, the data from 30 experiments were analyzed using statistical software to analyze whether the effect of the improved firefly algorithm was significant. At the significance level of α = 0.05, it shows that the effect of the improved firefly algorithm is significant. When the number of iterations is different and other conditions are the same, the optimal value of the firefly algorithm for function optimization is compared with the average value. The experimental results of different improved firefly algorithms are shown in Table 1. A comparison of the change curves of the integrated fitness values for different improved firefly algorithms is shown in Figure 7. The comparison between the optimal value and the average value of the firefly algorithm optimized by the function is shown in Figure 8. The left picture Figure 8(a) is the case of (G = 50, S = 20, T = 300 f = 0.84667, D = 50, R = 6), the right Figure 8(b) is the case of (G = 200, S = 20, T = 300 f = 0.84667, D = 50, R = 6).

From Table 1, we can see that the algorithm FA_VA in this paper gets the highest label coverage of 99.3%, close to 100%, and the highest fitness value, while the standard firefly algorithm gets the lowest optimal fitness value. From Figure 7, we can see that the standard firefly FA falls into a local optimum at the beginning, and the optimal fitness value stops changing in the early stage. Applying chaos initialization based on standard firefly FA as well as FA_WC with inertia weights, it is obvious that the initial optimal adaptation value of FA_WC is much larger than the initial value of the standard firefly algorithm, indicating that the population of fireflies are more evenly distributed, and the search time increases significantly after adding inertia weights, and the time to fall into local optimum is pushed back. FA_SA is a variable step length strategy based on elite individuals added to FA_WC, which increases the search range and also increases the local range of search; and the time to fall into the local optimum is pushed back compared to FA_WC; and the change of the optimum value still occurs in the middle and late stages of the iteration; and a longer time is spent on effective search. In this paper, the algorithm FA_VA adds Gaussian variation operation based on elite individuals and local small-scale searches of elite individuals to FA_SA. As can be seen from Figure 6, FA_VA inherits the advantages of FA_WC and FA_SA while strengthening the search of the global field of view and the search of a small local area of elite fireflies, ensuring the continuous optimization of the optimal firefly in the whole process, which has a greater advantage in the search for the best. It is shown that the improved firefly algorithm FA_VA proposed in this paper can effectively solve the optimal deployment of RFID reader antennas in an environment with rectangular obstacles.

In addition, the FA_VA algorithm in this paper is compared and analyzed with the existing RFID coverage enhancement technology algorithms in recent years. The hybrid method based on artificial neural network and redundant antenna elimination algorithm RAE was proposed in the literature [36], for more than 50 independent runs of C30, the method has an average of 2.12 antennas with an average interference equal to −0.0477 and an average coverage of 99.83%, for C50, the method reaches an average of 4.2 antennas with an average coverage of 99.96% and an average interference of −0.0058, which allows the use of a minimum number of nonredundant antennas to achieve full coverage and zero interference. A multiobjective mayfly optimization algorithm (DSV-MOMA) based on dimensional exchange variation proposed in the literature [37] achieves an average coverage of 93.65% in 50 experiments, keeping interference above a moderate level and obtaining satisfactory load balance and power while ensuring higher coverage.

Therefore, the improved FA_VA algorithm proposed in this paper is used to solve the optimal deployment scheme of RFID reader antennas in a rectangular obstacle environment. The deployment distribution of the reader antenna in the target space is shown in Figure 9. The deployment values of each reader antenna are shown in Table 2. Its tag coverage reaches 99.3%, the interference degree between reader antennas is 0.290, the load balance function value of reader antennas is 0.085, and the optimization target value is 0.830.

6. Conclusions

This paper takes the deployment problem of the reader directional antenna under the environment with a rectangular obstacle as the research object and constructs the calculation formula containing Gaussian distribution noise to find the reader antenna reading distance and the reader sensing model under the environment with the rectangular obstacle. And the optimal deployment model of reader antenna is established with the relationship between maximizing tag coverage and balancing the interference degree between reader antennas and load balance as the objective function, and a weight model and Gaussian variation operation theory based on elite firefly are proposed, which combines the cube mapping for initialization and the firefly algorithm based on the variable step length strategy of elite individuals for the optimal deployment scheme of reader antenna The design improves the algorithm’s optimal search function in the global field of view and the search in the local range of elite individuals so that the firefly algorithm gets rid of the deadlock of local optimal.

In this paper, a target space is used as the research object, and simulation experiments are conducted on the PyCharm platform of the Windows 7 operating system. The experiment proves that the FA_VA algorithm can get nearly 100% tag coverage in the solution of RFID antenna deployment in an environment with rectangular obstacles and better balance the relationship between the interference degree problem and load balance among the reader antennas. To further prove the superiority of the FA_VA algorithm, it is compared with the standard firefly algorithm FA, the firefly algorithm FA_WC based on chaos initialized weight position update, and the firefly algorithm with elite individual variable step FA_SA based on chaos initialized weight position update, and the results show that the FA_VA algorithm has obvious advantages in convergence speed and optimization accuracy. It can effectively realize the reasonable deployment of RFID antennas in an environment with rectangular obstacles.

Data Availability

The data used to support the results of this study are available from the corresponding authors upon request.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

This study was supported by the Zhejiang Provincial Public Welfare Technology Application Research Project under Grant No. LGG22E050011.