Sensor network deployment method for operator selection based on picture analysis
Through landscape analysis and reinforcement learning optimization of the solution space of sensor network deployment, and adaptive selection of mutation operators, the convergence problem of the differential evolution algorithm under complex objective functions is solved, and more efficient deployment optimization is achieved.
Patent Information
- Application Number
- CN202410741599.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-10-11
- Estimated Expiration
- 2044-06-11
AI Technical Summary
In sensor network deployment, the differential evolution algorithm is difficult to find the global optimal solution within a limited time, especially in the case of complex objective functions and multiple local optima, making it difficult for the optimization process to converge.
By conducting landscape analysis on the solution space of the optimized population, adaptively select appropriate mutation operators, use reinforcement learning technology and DQN network to optimize the selection of mutation operators, conduct strategy mapping based on the state information obtained through landscape analysis, and dynamically update mutation operators. to improve the solution efficiency of the algorithm.
It significantly improves the coverage and optimization efficiency of sensor network deployment, reduces noise sensitivity, and achieves faster convergence speed and more obvious optimization effects.
Smart Images

Figure CN118764983A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of operator selection, data analysis and sensor network deployment, and in particular relates to a sensor network deployment method for performing operator selection based on scene analysis. Background Art
[0002] Engineering optimization problems exist widely in various fields, and the correlation between decision variables makes the optimization objective function show complex non-convex and nonlinear characteristics. For example, in the field of mechanical design, the design of gear reducers needs to comprehensively consider multiple complex factors such as the number of teeth, module, and shaft diameter to achieve the goal of maximizing torque conversion efficiency. In the field of sensor network deployment, it is often necessary to select several points in the area of interest for the user to deploy sensors. Each sensor works together to maximize the coverage of the area and avoid blind spots. It is particularly important to solve the deployment plan through optimization algorithms to give full play to the detection capabilities and achieve the best coverage effect.
[0003] Evolutionary computing methods have emerged to address complex objective functions in practical engineering optimization problems such as sensor network deployment. These methods draw on biological evolution mechanisms in nature, such as the principle of survival of the fittest, and can provide feasible or even optimal solutions within a reasonable time and computing resources. Common evolutionary computing methods include genetic algorithms, particle swarm algorithms, differential evolution algorithms, etc. Among them, differential evolution algorithms are widely used in various engineering optimization problems due to their simplicity, ease of implementation, and strong robustness.
[0004] However, the performance of the differential evolution algorithm is highly dependent on the complexity of the solution space and the mutation operator used, and the advantages of mutation operators vary. For example, when dealing with simple unimodal functions, the use of the DE / rand / 2 mutation operator with strong exploration capabilities will make the optimization process difficult to converge; while for objective functions with multiple local optima, the use of the DE / best / 2 mutation operator with strong development capabilities will easily cause the algorithm to fall into local optimality and fail to find the global optimal solution. By performing a landscape analysis of the solution space where the optimization population is located and adaptively selecting the appropriate mutation operator, the algorithm's solution efficiency can be significantly improved, allowing users to obtain solutions with higher coverage within a limited time, thereby better solving complex sensor network deployment problems. Summary of the invention
[0005] To solve the above problems, the present invention provides a sensor network deployment method for operator selection based on scene analysis. By performing scene analysis on the solution space where the optimized population is located, suitable operators are adaptively selected, so that users can obtain a deployment solution with higher coverage within a limited time.
[0006] A sensor network deployment method for selecting operators based on scene analysis includes the following steps:
[0007] S1: Randomly set initial values for N different individuals in the population P in the differential evolution algorithm, where each individual contains the location coordinates of all sensors to be deployed, and one individual corresponds to one sensor deployment plan;
[0008] S2: Use the scene analysis technology to obtain the population state S of the current population P at the current time t t ={s t1 ,s t2 ,s t3 ), where s t1 is the first substate that measures the Euclidean distance and coverage difference between all individuals in the current population P and the optimal individual, s t2 The second substate of the Euclidean distance between the best 10% of individuals in the current population P is measured, s t3 The third substate is used to measure the position differences of all individuals in the current population P;
[0009] S3: Determine whether the current number of iterations has reached the upper limit T. If yes, the sensor position coordinates contained in the optimal individual in the current population are the final sensor deployment plan. If no, proceed to step S4.
[0010] S4: Generate a random number between 0 and 1, and determine whether the random number is less than the set exploration probability ε. If so, randomly select a mutation operator op as the action A at the current time t. t If not, the population state S at the current time t is t Input the current Q network and use the mutation operator op that maximizes the Q function value as the action A at the current time t t ;
[0011] S5: Use mutation operator op to update the current population P;
[0012] S6: Get action A based on the fitness function values of all individuals in the current population P before and after the update t The corresponding reward R t , and use the scene analysis technology to obtain the updated population state S of the current population P at the next moment t+1 ;
[0013] S7: The four-tuple (S t , A t , R t , S t+1 ) is stored in the experience replay pool B, and then multiple quadruple groups (S k , Ak , R k , S k+1 ) as the training set, k = 1, ..., Z, where Z is the number of four-tuple samples in the training set;
[0014] S8: The state S of each quadruple sample in the training set k , S k+1 And action A k As targets The input of the network and Q network, for each four-tuple sample, its corresponding target Network output Function value maximum and reward value R k The sum of the values is taken as the corresponding target value y k ; According to the target value y corresponding to each quadruple sample k The difference between the Q function value output by the Q network constructs the mean square error loss function L;
[0015] S9: Back-propagate the Q network through the mean square error loss function L to update the parameters of the Q network;
[0016] S10: Determine whether the current time t is the target A multiple of the network update frequency C. If yes, the target The network is updated to the Q network obtained in step S9, and then step S3 is re-executed; if not, the target The network remains unchanged, and step S3 is directly re-executed.
[0017] Furthermore, the first substate s t1 The method to obtain is:
[0018]
[0019] Among them, f i is the fitness function value of the i-th individual in the population P, i = 1, ..., N, is the average value of the fitness function of all individuals in the population P, and the fitness function value is the detection coverage of the sensor deployment scheme corresponding to the individual, d i is the Euclidean distance between the i-th individual in population P and the optimal individual with the largest fitness function value, is the average value of the Euclidean distances corresponding to all individuals in population P, σ F is the standard deviation of the fitness function values of all individuals in population P, σ d is the standard deviation of the Euclidean distances corresponding to all individuals in population P.
[0020] Furthermore, the second substate s t2 The method to obtain is:
[0021]
[0022] Where q is the number of the top 10% of individuals with the largest fitness function value in the current population P, and q = 0.1N, is the individual with fitness ranking i among q individuals, is the individual with the fitness value ranking j among q individuals, The individual with fitness value ranking i and the individual with fitness value ranking j The Euclidean distance between .
[0023] Furthermore, the third substate s t3 The method to obtain is:
[0024]
[0025] Where D is the dimension of each individual, and the number of sensors is D / 2, the i-th dimension vector x i = {P 1,i , P 2,i ,…,P N,i}, P 1,i ~P N,i are the first individual P in the current population P 1 The i-th dimension to the N-th individual P N The i-th dimension, iqr(x i ) is the i-th dimension vector x i The interquartile range, up i and low i are the upper and lower bound values corresponding to the i-th dimension respectively.
[0026] Furthermore, in step S5, the method of using the mutation operator op to update the current population P is:
[0027] S51: Use the mutation operator op to perform mutation operations on all individuals in the current population P to obtain N mutation intermediates;
[0028] S52: Determine whether the position coordinates contained in each variant intermediate exceed the set upper limit value or are lower than the set lower limit value. For variant intermediates whose judgment result is yes, the position coordinates exceeding the set upper limit value are directly set as the upper limit value, and the position coordinates lower than the set lower limit value are directly set as the lower limit value. Meanwhile, variant intermediates whose judgment result is no remain unchanged.
[0029] S53: Using binomial crossover, cross the N individuals of the current population P with the variant intermediate obtained in step S52 to obtain N crossover intermediates;
[0030] S54: Based on the greedy criterion, N individuals with better fitness values are selected from the N individuals of the current population P and the N crossover intermediates to form the next generation population, completing the update of the current population.
[0031] Furthermore, in step S51, the mutation operator op is used to perform mutation operation on all individuals of the current population P as follows:
[0032] When the mutation operator op is DE / rand / 2, the mutation operator op mutates the i-th individual in the current population P into the i-th mutation intermediate M i The method is:
[0033]
[0034] Among them, r i1 To r i5 is a positive integer randomly selected in [1, N] when mutating the i-th individual, and r i1 ≠r i2 ≠r i3 ≠r i4 ≠r i5 , to is a random integer r in the current population P i1 To r i5 For the corresponding individual, W∈(0,1] is the scaling factor;
[0035] When the mutation operator op is DE / current-to-rand / 1, the mutation operator op changes the i-th individual P in the current population P to i Mutation to the i-th mutation intermediate M i The method is:
[0036]
[0037] Among them, r i1 To r i3 is a positive integer randomly selected in [1, N] when mutating the i-th individual, and r i1 ≠r i2 ≠r i3 , to is a random integer r in the current population P i1 To r i3 The corresponding individual;
[0038] When the mutation operator op is DE / best / 2, the mutation operator op mutates the i-th individual into the i-th mutation intermediate M i The method is:
[0039]
[0040] Among them, P best is the individual with the largest fitness function value in the current population P, r i1 To r i4 is a positive integer randomly selected in [1, N] when mutating the i-th individual, and r i1 ≠r i2 ≠r i3 ≠r i4 , to is a random integer r in the current population P i1 To r i4 The corresponding individual.
[0041] Further, any crossover intermediate U in step S53 i The method to obtain is:
[0042]
[0043] Where j = 1, 2, ..., D, D is the dimension of each individual, and the number of sensors is D / 2, U i,j is the i-th crossover intermediate U i The jth dimension of M i,j is the jth dimension of the ith variant intermediate, P i,j is the jth dimension of the ith individual, rand i To obtain the cross intermediate U i A random number randomly selected between (0, 1], CR∈(0, 1] is the set crossover probability; To obtain the cross intermediate U i is a randomly selected positive integer in the range [1, D].
[0044] Furthermore, in step S54, based on the greedy criterion, N individuals are selected from the N individuals of the current population P and the N crossover intermediates U to form the next generation population:
[0045]
[0046] in, is the i-th individual in the next generation population, f(U i ) is the i-th crossover intermediate U i The fitness function value, f(P i ) is the fitness function value of the i-th individual in the current population P.
[0047] Furthermore, in step S6, the reward R t The calculation method is:
[0048] R t=(min F t-1 -min F t ) / min F t-1
[0049] Among them, min F t-1 is the minimum value of the fitness function of all individuals in the current population P before the update, minF t It is the minimum value of the fitness function of all individuals in the current population P after update.
[0050] Furthermore, the mean square error loss function L in step S8 is specifically:
[0051]
[0052] Among them, Q(S k , A k ) is the Q network in state S k And action A k The Q function value obtained as input; For the goal The network can output The maximum value of the function, A is the target The network can output The action at which the function value is maximized.
[0053] Beneficial effects:
[0054] 1. The present invention provides a sensor network deployment method for operator selection based on scene analysis. Based on the scene analysis technology that describes the characteristics of the solution space where the population is located, the state of multiple deployment schemes in the solution space is extracted, including the Euclidean distance and coverage difference between all individuals in the population P and the optimal individual, the Euclidean distance between the top 10% of the best individuals in the population P, and the position difference of all individuals in the population P. Then, according to the extracted state, the mutation operator is adaptively selected to mutate the population, and the strategy mapping from the solution space state information to the appropriate mutation operator selection is realized, so that the user can obtain a deployment scheme with higher coverage in a limited time, which greatly improves the efficiency of solving the deployment optimization problem and effectively solves the sensor network deployment optimization problem.
[0055] 2. The present invention provides a sensor network deployment method based on graph analysis for operator selection. Compared with the traditional sensor network deployment based on fixed mutation operators, the sensor network deployment method based on adaptive operator selection of the present invention has a smaller standard deviation of the optimization results and more stable performance, making it less sensitive to noise in actual sensor network deployment optimization problems.
[0056] 3. The present invention provides a sensor network deployment method for operator selection based on landscape analysis. First, the population state is obtained based on landscape analysis, and then the population state is combined with the DQN network to select the mutation operator, so that the optimization problem of sensor network deployment converges faster and the optimization effect of sensor network deployment is more obvious. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] Figure 1 A flow chart of a sensor network deployment method for selecting operators based on scene analysis provided by the present invention;
[0058] Figure 2 A schematic diagram showing a performance comparison between the sensor network deployment method based on adaptive operator selection provided by the present invention and the sensor network deployment method based on three fixed mutation operators under a set experiment. DETAILED DESCRIPTION
[0059] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution 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.
[0060] The present invention provides a sensor network deployment method for operator selection based on landscape analysis. According to the solution space state obtained by the landscape analysis technology, the appropriate operator is adaptively selected from the set, thereby improving the efficiency and quality of the algorithm in solving complex deployment problems. First, some mathematical symbols used in the present invention are defined as follows: a population P of size N in the differential evolution algorithm, in which each individual corresponds to a sensor network deployment scheme; the dimension is D, that is, the two-dimensional coordinates of D / 2 sensors need to be determined; the fitness function value corresponding to all individuals is F, that is, the regional coverage rate of all deployment schemes; the upper limit of the number of algorithm iterations is T; the mutation operator set O, the selected operator op; the training network Q and the target network of the reinforcement learning Deep Q-Network (DQN) Exploration probability ε, state S at time t t 、Action A t (i.e. the selected operator op) and reward R t , experience replay pool B, target network The update frequency C, the batch sampling size Z, and the learned operator selection method π.
[0061] Taking the sensor network deployment optimization problem in a two-dimensional area as an implementation example, the optimization goal of this problem is to maximize the regional coverage rate. The average coverage probability of all monitoring points is calculated to evaluate the pros and cons of the deployment plan. The objective function is as follows:
[0062]
[0063] Among them, n p Represents the number of monitoring points. The sensor network is used to monitor the points (x j ,y j ), j = 1, 2, ..., n p ; S i is the i-th sensor, i = 1, 2, ..., n p .
[0064]
[0065] Among them, C x,y (S i ) is a single sensor S i The coverage probability of the monitoring point (x, y), d is the sensor S i The Euclidean distance between the monitoring point and the sensor; r is the detection radius of the sensor, r e Characterizes the uncertainty of detection, here we take r e =0.1·r; α 1 , α 2 , β 1 , β 2 is the performance parameter of the sensor, λ 1 =r e -r+d,λ 2 =r e +rd. Formula (14) is the joint coverage probability of the sensor network for a single monitoring point (x, y). If a monitoring point is covered by multiple sensors, its coverage probability will increase accordingly.
[0066] Specifically, Figure 1 As shown, a sensor network deployment method for selecting operators based on scene analysis includes the following steps:
[0067] S1: Randomly set initial values for N different individuals in the population P in the differential evolution algorithm, where each individual contains the location coordinates of all sensors to be deployed, and one individual corresponds to one sensor deployment plan;
[0068] It should be noted that when initializing the population P in the differential evolution algorithm, the upper and lower bounds of the sensor network deployment location are first defined, and the position coordinates of each sensor initially randomly generated need to fall between the set upper and lower bounds;
[0069] S2: Use the scene analysis technology to obtain the population state S of the current population P at the current time t t ={s t1 ,s t2 ,s t3}, where s t1is the first substate that measures the Euclidean distance and coverage difference between all individuals in the current population P and the optimal individual, s t2 The second substate of the Euclidean distance between the best 10% of individuals in the current population P is measured, s t3 The third substate is used to measure the position differences of all individuals in the current population P;
[0070] It should be noted that landscape analysis is a technique for describing the characteristics of the solution space where the population is located, and characterizing the characteristics of the initial deployment plan in the solution space.
[0071] Specifically, the first substate s t1 The method to obtain is:
[0072]
[0073] Among them, f i is the fitness function value of the i-th individual in the population P, i = 1, ..., N, is the average value of the fitness function of all individuals in population P, and the fitness function value is the detection coverage of the sensor deployment scheme corresponding to the individual. The calculation method of the detection coverage can refer to the above C x,y (S i ) calculation process, d i is the Euclidean distance between the i-th individual in population P and the optimal individual with the largest fitness function value, is the average value of the Euclidean distances corresponding to all individuals in population P, σ F is the standard deviation of the fitness function values of all individuals in population P, σ d is the standard deviation of the Euclidean distances corresponding to all individuals in the population P. It can be seen that in the sensor network deployment problem, the first substate s t1 The relationship between the distance to the optimal deployment solution and the area coverage is provided for each solution.
[0074] The second substate s t2 The method to obtain is:
[0075]
[0076] Where q is the number of the top 10% of individuals with the largest fitness function value in the current population P, and q = 0.1N, is the individual with fitness ranking i among q individuals, is the individual with the fitness value ranking j among q individuals, The individual with fitness value ranking i and the individual with fitness value ranking j The Euclidean distance between them. It can be seen that the second substate s t2The average pairwise distance between the q best individuals in the population P is defined, which represents whether the locations of the excellent deployment schemes are close in the sensor network deployment problem.
[0077] The third substate s t3 The method to obtain is:
[0078]
[0079] Where D is the dimension of each individual, and the number of sensors is D / 2, the i-th dimension vector x i = {P 1,i , P 2,i ,…,P N,i}, P 1,i ~P N,i are the first individual P in the current population P 1 The i-th dimension to the N-th individual P N The i-th dimension, iqr(x i ) is the i-th dimension vector x i The interquartile distance, that is, the difference between the third quartile and the first quartile, up i and low i are the upper and lower bounds of the i-th dimension. t3 The diversity of the population P is calculated, that is, the difference between each deployment scheme is measured; t3 The higher the value, the higher the upper limit of the current population improvement area coverage rate.
[0080] S3: Determine whether the current number of iterations has reached the upper limit T. If yes, the sensor position coordinates contained in the optimal individual in the current population are the final sensor deployment plan. If no, proceed to step S4.
[0081] S4: Based on the current state S t , using the ε-greedy strategy to select actions, specifically: generate a random number between 0 and 1, determine whether the random number is less than the set exploration probability ε, if so, randomly select a mutation operator 0p as the action A at the current time t t If not, the population state S at the current time t is t Input the current Q network and use the mutation operator op that maximizes the Q function value as the action A at the current time t t ,Right now
[0082] It should be noted that the mutation operator set O contains three mutation operators, namely DE / rand / 2, DE / current-to-rand / 1 and DE / best / 2. The randomly selected mutation operator op is one of DE / rand / 2, DE / current-to-rand / 1 and DE / best / 2.
[0083] S5: Use mutation operator op to update the current population P, specifically:
[0084] S51: Use the mutation operator op to perform mutation operations on all individuals in the current population P to obtain N mutation intermediates;
[0085] When the mutation operator op is DE / rand / 2, the mutation operator op mutates the i-th individual in the current population P into the i-th mutation intermediate M i The method is:
[0086]
[0087] Among them, r i1 To r i5 is a positive integer randomly selected in [1, N] when mutating the i-th individual, and r i1 ≠r i2 ≠r i3 ≠r i4 ≠r i5 , to is a random integer r in the current population P i1 To r i5 The corresponding individual, i.e., the sensor network deployment scheme, W∈(0, 1] is the scaling factor;
[0088] When the mutation operator op is DE / current-to-rand / 1, the mutation operator op changes the i-th individual P in the current population P to i Mutation to the i-th mutation intermediate M i The method is:
[0089]
[0090] Among them, r i1 To r i3 is a positive integer randomly selected in [1, N] when mutating the i-th individual, and r i1 ≠r i2 ≠r i3 , to is a random integer r in the current population P i1 To r i3The corresponding individuals, namely, the sensor network deployment scheme;
[0091] When the mutation operator op is DE / best / 2, the mutation operator op mutates the i-th individual into the i-th mutation intermediate M i The method is:
[0092]
[0093] Among them, P best is the individual with the largest fitness function value in the current population P, r i1 To r i4 is a positive integer randomly selected in [1, N] when mutating the i-th individual, and r i1 ≠r i2 ≠r i3 ≠r i4 , to are individuals corresponding to random integers ri1 to ri4 in the current population P, that is, the sensor network deployment plan.
[0094] It should be noted that when different mutation operators are used to mutate the same individual i in the current population P, although there are randomly selected positive integers r in [1, N] i1 To r i5 , but in the mutation process of different mutation operators, r i1 To r i5 It may have different values.
[0095] S52: Determine whether the position coordinates contained in each variant intermediate exceed the set upper limit value or are lower than the set lower limit value. For variant intermediates whose judgment result is yes, the position coordinates exceeding the set upper limit value are directly set as the upper limit value, and the position coordinates lower than the set lower limit value are directly set as the lower limit value. Meanwhile, variant intermediates whose judgment result is no remain unchanged.
[0096] S53: Using binomial crossover, cross the N individuals of the current population P with the variant intermediate obtained in step S52 to obtain N crossover intermediates;
[0097] Any crossover intermediate U i The method to obtain is:
[0098]
[0099] Where j = 1, 2, ..., D, D is the dimension of each individual, and the number of sensors is D / 2, U i,j is the i-th crossover intermediate U i The jth dimension of M i,jis the jth dimension of the ith variant intermediate, P i,j is the jth dimension of the ith individual, rand i To obtain the cross intermediate U i A random number randomly selected between (0, 1], CR∈(0, 1] is the set crossover probability; To obtain the cross intermediate U i is a randomly selected positive integer in the range [1, D].
[0100] S54: Based on the greedy criterion, N individuals with better fitness values are selected from the N individuals of the current population P and the N crossover intermediates to form the next generation population, and the current population is updated, as follows:
[0101]
[0102] in, is the i-th individual in the next generation population, f(U i ) is the i-th crossover intermediate U i The fitness function value, that is, the detection coverage, f(P i ) is the fitness function value of the i-th individual in the current population P.
[0103] It can be seen that the population update process of the present invention specifically includes mutation, crossover and selection. According to the selected operator op, the corresponding differential strategy performs mutation operations on all individuals, and checks whether the newly generated mutant intermediate M meets the boundary conditions of the complex optimization sensor network deployment problem. Afterwards, the population P at time t is crossed with the mutant intermediate M by using the binomial crossover method to obtain the crossover intermediate U. Finally, the next generation population P is selected based on the greedy criterion.
[0104] S6: Based on the fitness function improvement criterion, obtain action A according to the fitness function values of all individuals in the current population P before and after the update t The corresponding reward R t , and use the scene analysis technology to obtain the updated population state S of the current population P at the next moment t+1 ;
[0105] Among them, the reward R t The calculation method is:
[0106] R t =(min F t-1 -min F t ) / min F t-1
[0107] Among them, min F t-1is the minimum value of the fitness function of all individuals in the current population P before the update, minF t is the minimum value of the fitness function of all individuals in the updated current population P. t >0 means that the deployment solutions included in the updated population have improved regional coverage.
[0108] S7: The four-tuple (S t , A t , R t , S t+1 ) is stored in the experience replay pool B, and then multiple quadruple groups (S k , A k , R k , S k+1 ) as the training set, k = 1, ..., z, where Z is the number of four-tuple samples in the training set;
[0109] S8: The state S of each quadruple sample in the training set k , S k+1 And action A k As targets The input of the network and Q network, for each four-tuple sample, its corresponding target Network output Function value maximum and reward value R k The sum of the values is taken as the corresponding target value y k ; According to the target value y corresponding to each quadruple sample k The difference between the Q function value output by the Q network constructs the mean square error loss function L;
[0110] Among them, the calculation formula of the square error loss function L is as follows:
[0111]
[0112] Among them, Q(S k , A k ) is the Q network in state S k And action A k The Q function value obtained as input; For the goal The network can output The maximum value of the function, A is the target The network can output The action at which the function value is maximized.
[0113] S9: Back propagate the Q network through the mean square error loss function L to update the parameters of the Q network so that Q(S k, A k ) as close to y as possible k ;
[0114] S10: Determine whether the current time t is the target A multiple of the network update frequency C. If yes, the target The network is updated to the Q network obtained in step S9, and then step S3 is re-executed; if not, the target The network remains unchanged, and step S3 is directly re-executed.
[0115] In order to further illustrate the effectiveness of the provided method, the adaptive operator selection method provided by the present invention and the differential evolution algorithm with three fixed mutation operators were simulated and verified under the coverage problem. The simulation parameters in the experiment were set as follows: the deployment space was a two-dimensional area of 40×40, r=5, r e =0.1, r=0.5, α 1 =1,α 2 =0,β 1 =1,β 2 =0.5. The algorithm parameters are set as follows: N=50, q=0.1, N=5, D=40, T=100, U={DE / rand / 2, DE / best / 2, DE / current-to-rand / 1}, ε=0.1, C=5, Z=64, W=0.5, CR=0.8. Each decision variable is a continuous value between [0, 40], that is, up i =0, low i =40.
[0116] Considering 50 random experiments, Figure 2 The simulation results are shown, specifically the performance comparison between the adaptive operator selection method (DE-DQN) of the present invention and the differential evolution algorithm with three fixed mutation operators. The results show that the adaptive operator selection method (DE-DQN) based on graph analysis has a faster convergence speed and more obvious optimization effect, and can improve the regional coverage of the deployment scheme by 6.1% on the basis of the existing method. In addition, Table 1 shows the average and standard deviation of the fitness values of the adaptive operator selection method (DE-DQN) proposed in the present invention and the differential evolution algorithm with three fixed operators under 50 random experiments. The optimization result standard deviation of the adaptive operator selection method is smaller and the performance is more stable, making it less sensitive to noise in the actual sensor network deployment optimization problem.
[0117] Table 1
[0118]
[0119] Based on the above experiments, the adaptive operator selection based on graph analysis provided by the present invention effectively solves the sensor network deployment optimization problem, realizes the strategy mapping from solution space state information to appropriate mutation operator selection, enables users to obtain a deployment plan with higher coverage within a limited time, and greatly improves the efficiency of solving deployment optimization problems.
[0120] Of course, the present invention may have many other embodiments. Without departing from the spirit and essence of the present invention, those skilled in the art may certainly make various corresponding changes and modifications based on the present invention, but these corresponding changes and modifications should all fall within the scope of protection of the claims attached to the present invention.
Claims
1. A sensor network deployment method for operator selection based on scene analysis, characterized in that: The following steps are involved: S1: Randomly set initial values for N different individuals in the population P in the differential evolution algorithm, where each individual contains the location coordinates of all sensors to be deployed, and one individual corresponds to one sensor deployment plan; S2: Use the scene analysis technology to obtain the population state S of the current population P at the current time t t ={s t1 ,s t2 ,s t3 }, where s t1 is the first substate that measures the Euclidean distance and coverage difference between all individuals in the current population P and the optimal individual, s t2 The second substate of the Euclidean distance between the best 10% of individuals in the current population P is measured, s t3 The third substate is used to measure the position differences of all individuals in the current population P; S3: Determine whether the current number of iterations has reached the upper limit T. If yes, the sensor position coordinates contained in the optimal individual in the current population are the final sensor deployment plan. If no, proceed to step S4. S4: Generate a random number between 0 and 1, and determine whether the random number is less than the set exploration probability ε. If so, randomly select a mutation operator op as the action A at the current time t. t If not, the population state S at the current time t is t Input the current Q network and use the mutation operator op that maximizes the Q function value as the action A at the current time t t ; S5: Use mutation operator op to update the current population P; S6: Get action A based on the fitness function values of all individuals in the current population P before and after the update t The corresponding reward R t , and use the scene analysis technology to obtain the updated population state S of the current population P at the next moment t+1 ; S7: convert the quaternion (S t ,A t ,R t ,S t+1 ) is stored in the experience replay pool B, and then multiple quadruple groups (S k ,A k ,R k ,S k+1 ) as the training set, k = 1, ..., Z, where Z is the number of four-tuple samples in the training set; S8: The state S of each quadruple sample in the training set k , S k+1 And action A k As targets The input of the network and Q network, for each four-tuple sample, its corresponding target Network output Function value maximum and reward value R k The sum of the values is taken as the corresponding target value y k ; According to the target value y corresponding to each quadruple sample k The difference between the Q function value output by the Q network constructs the mean square error loss function L; S9: Back-propagate the Q network through the mean square error loss function L to update the parameters of the Q network; S10: Determine whether the current time t is the target A multiple of the network update frequency C. If yes, the target The network is updated to the Q network obtained in step S9, and then step S3 is re-executed; if not, the target The network remains unchanged, and step S3 is directly re-executed.
2. A sensor network deployment method for selecting operators based on scene analysis as claimed in claim 1, characterized in that: The first substate s t1 The method to obtain is: Among them, f i is the fitness function value of the i-th individual in the population P, i = 1, ..., N, is the average value of the fitness function of all individuals in the population P, and the fitness function value is the detection coverage of the sensor deployment scheme corresponding to the individual, d i is the Euclidean distance between the i-th individual in population P and the optimal individual with the largest fitness function value, is the average value of the Euclidean distances corresponding to all individuals in population P, σ F is the standard deviation of the fitness function values of all individuals in population P, σ d is the standard deviation of the Euclidean distances corresponding to all individuals in population P.
3. A sensor network deployment method for selecting operators based on scene analysis as claimed in claim 1, characterized in that: The second substate s t2 The method to obtain is: Where q is the number of the top 10% of individuals with the largest fitness function value in the current population P, and q = 0.1N, is the individual with fitness ranking i among q individuals, is the individual with the fitness value ranking j among q individuals, The individual with fitness value ranking i and the individual with fitness ranking j The Euclidean distance between .
4. A sensor network deployment method for selecting operators based on scene analysis as claimed in claim 1, characterized in that: The third substate s t3 The method to obtain is: Where D is the dimension of each individual, and the number of sensors is D / 2, the i-th dimension vector x i = {P 1,i ,P 2,i ,…,P N,i }, P 1,i ~P N,i They are the i-th dimension to the N-th individual P1 in the current population P. N The i-th dimension, iqr(x i ) is the i-th dimension vector x i The interquartile range, up i and low i are the upper and lower bound values corresponding to the i-th dimension respectively.
5. The sensor network deployment method for selecting operators based on scene analysis according to claim 1, characterized in that: The method of using the mutation operator op to update the current population P in step S5 is: S51: Use the mutation operator op to perform mutation operations on all individuals in the current population P to obtain N mutation intermediates; S52: Determine whether the position coordinates contained in each variant intermediate exceed the set upper limit value or are lower than the set lower limit value. For variant intermediates whose judgment result is yes, the position coordinates exceeding the set upper limit value are directly set as the upper limit value, and the position coordinates lower than the set lower limit value are directly set as the lower limit value. Meanwhile, variant intermediates whose judgment result is no remain unchanged. S53: Using binomial crossover, cross the N individuals of the current population P with the variant intermediate obtained in step S52 to obtain N crossover intermediates; S54: Based on the greedy criterion, N individuals with better fitness values are selected from the N individuals of the current population P and the N crossover intermediates to form the next generation population, completing the update of the current population.
6. A sensor network deployment method for selecting operators based on scene analysis as claimed in claim 5, characterized in that: In step S51, the mutation operator op is used to perform mutation operation on all individuals in the current population P as follows: When the mutation operator op is DE / rand / 2, the mutation operator op mutates the i-th individual in the current population P into the i-th mutation intermediate M i The method is: Among them, r i1 To r i5 is a positive integer randomly selected in [1,N] when mutating the i-th individual, and r i1 ≠r i2 ≠r i3 ≠r i4 ≠r i5 , to is a random integer r in the current population P i1 To r i5 For the corresponding individual, W∈(0,1] is the scaling factor; When the mutation operator op is DE / current-to-rand / 1, the mutation operator op changes the i-th individual P in the current population P to i Mutation to the i-th mutation intermediate M i The method is: Among them, r i1 To r i3 is a positive integer randomly selected in [1,N] when mutating the i-th individual, and r i1 ≠r i2 ≠r i3 , to is a random integer r in the current population P i1 To r i3 The corresponding individual; When the mutation operator op is DE / best / 2, the mutation operator op mutates the i-th individual into the i-th mutation intermediate M i The method is: Among them, P best is the individual with the largest fitness function value in the current population P, r i1 To r i4 is a positive integer randomly selected in [1,N] when mutating the i-th individual, and r i1 ≠r i2 ≠r i3 ≠r i4 , to is a random integer r in the current population P i1 To r i4 The corresponding individual.
7. A sensor network deployment method for selecting operators based on scene analysis as claimed in claim 5, characterized in that: Any crossover intermediate U in step S53 i The method to obtain is: Where j = 1, 2, ..., D, D is the dimension of each individual, and the number of sensors is D / 2, U i,j is the i-th crossover intermediate U i The jth dimension of M i,j is the jth dimension of the ith variant intermediate, P i,j is the jth dimension of the ith individual, rand i To obtain the cross intermediate U i A random number randomly selected between (0,1], CR∈(0,1] is the set crossover probability; To obtain the cross intermediate U i is a randomly selected positive integer in the range [1,D].
8. A sensor network deployment method for selecting operators based on scene analysis as claimed in claim 5, characterized in that: In step S54, based on the greedy criterion, N individuals are selected from the N individuals of the current population P and the N crossover intermediates U to form the next generation population: in, is the i-th individual in the next generation population, f(U i ) is the i-th crossover intermediate U i The fitness function value, f(P i ) is the fitness function value of the i-th individual in the current population P.
9. A sensor network deployment method for selecting operators based on scene analysis as claimed in claim 1, characterized in that: Step S6 rewards R t The calculation method is: R t =(min F t-1 -my F t ) / min F t-1 Among them, min F t-1 is the minimum value of the fitness function of all individuals in the current population P before the update, min F t It is the minimum value of the fitness function of all individuals in the current population P after update.
10. The sensor network deployment method for selecting operators based on scene analysis according to claim 1, characterized in that: The mean square error loss function L in step S8 is specifically: Among them, Q(S k ,A k ) is the Q network in state S k And action A k The Q function value obtained as input; For the goal The network can output The maximum value of the function, A is the target The network can output The action at which the function value is maximum.
Citation Information
Patent Citations
Optimal deployment method of large-scale industrial wireless sensor network based on differential evolution algorithm
CN102014398A
Sensor network node optimal deployment method based on improved differential evolution algorithm
CN110062389A
Multi-objective optimized wireless sensor network node deployment method
CN111065103A
Sensor cluster position optimization method based on edge reinforcement learning
CN117527570A
A differential crossover and quantum particle swarm optimization system
DE202022105010U1
