Double-stage topological optimization method for high-reliability wireless sensor network
Through the two-stage topology optimization method, the clustering scale-free evolution mechanism and the BPSO-TR algorithm are used to optimize the wireless sensor network, solving the problems of high node failure rate and large channel interference, achieving high reliability and energy saving, and improving Malicious attack defense and cascading failure prediction capabilities.
Patent Information
- Application Number
- CN202410895517.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-05
- Publication Date
- 2024-10-08
AI Technical Summary
Existing wireless sensor networks have problems such as high node failure rates, large channel interference, and limited transmission energy. It is difficult to achieve high reliability, energy saving, and transmission performance. The degree of optimization is limited, and the optimization process may change the high-quality attributes of the network.
A two-stage topology optimization method is used to generate a clustered scale-free network through a clustering scale-free evolution mechanism, and the BPSO-TR algorithm is used for optimization. The network scale distribution conforms to a power law distribution through preferential connections and three update operations. Transformed into an onion-like structure, it improves the ability to defend against malicious attacks and predict cascade failures.
It achieves high reliability of random fault monitoring in clustered scale-free networks, improves the network's malicious attack defense capabilities and cascading fault prediction capabilities, while ensuring the reliability and energy saving of the network.
Smart Images

Figure CN118748827A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of wireless network topology, and in particular to a two-stage topology optimization method for a high-reliability wireless sensor network. Background Art
[0002] As wireless sensor networks are increasingly used, problems such as high node failure rate, large channel interference, and limited transmission energy have brought great challenges to the reliability, energy consumption, and transmission performance of the network. Two-stage topology optimization solves these problems by dividing the network topology into two stages: the "backbone layer" and the "edge layer", and connects the backbone layer nodes to the edge layer nodes to achieve communication, thereby improving the reliability, energy saving, and transmission performance of wireless sensor networks.
[0003] In actual wireless sensor networks, due to their low hardware cost, sensor nodes usually have limited cache resources and bandwidth resources. This can easily lead to cascading failures. Under the influence of cascading failures, the entire wireless sensor network may be paralyzed due to the failure of a few sensor nodes. Cascading failures are considered to be one of the key factors affecting the reliability of wireless sensor networks. Therefore, how to reasonably optimize the cascade reliability of wireless sensor networks has become a problem worthy of attention.
[0004] Patent No. CN2020112212957 discloses a topology optimization method for a hierarchical wireless sensor network based on the TMPA algorithm, including obtaining the layout range, setting obstacles and signal attenuation values; setting calculation variables and initializing parameters; calculating the minimum transmission power and fitness of each perception layer node when the connection rate is 1 at the kth iteration; setting the group with the best fitness as the top predator and performing the Tent chaos perturbation strategy for comparison, and taking the group with the best fitness solution; copying the top predator to build a predator matrix; optimizing the position of the convergence layer nodes, and again using the Tent chaos perturbation strategy for fitness value comparison, and taking the group with the best fitness solution; executing the FADs effect of the MPA algorithm until the iteration ends; outputting the optimal convergence layer node position coordinates and the transmission power of all perception layer nodes. The above invention is implemented to provide the optimal convergence layer node position distribution and the minimum transmission power energy consumption of all perception layer nodes, so as to achieve energy saving and energy consumption balance and extend the network life.
[0005] Patent No. CN2020106419207 discloses a wireless sensor network topology optimization method based on asynchronous deep reinforcement learning, which uses the rules of a scale-free network model to generate an initialized wireless sensor network topology structure; compresses the wireless sensor network topology structure; initializes the asynchronous deep reinforcement learning model; training and testing phases; in the training phase, the wireless sensor network topology structure is first serialized and represented by a row vector; then, the network topology structure row vectors are input into different local network training models respectively; secondly, the local network training model contains two neural network models, namely, an action selection strategy network and a strategy evaluation network; in the testing phase, the global network training model performs test evaluation on the test data set; repeat steps 1, 2, 3 and 4; until the maximum number of iterations.
[0006] Although the above patents optimize the wireless sensor network topology through different methods, the degree of optimization of the wireless sensor network is limited and will change the high-quality properties of the wireless sensor network itself. Summary of the invention
[0007] The purpose of the present invention is to provide a two-stage topology optimization method for a high-reliability wireless sensor network, which can generate a clustered scale-free network through a clustered scale-free evolution mechanism; the scale distribution of the generated clustered scale-free network is made to conform to a power-law distribution by means of preferential connection, and the topological structure is transformed into an onion-like structure by a BPSO-TR algorithm and three update operations: an update operation based on similarity, an update operation based on degree value fitness difference, and an update operation based on distance difference, so as to optimize the network topology and ensure the high reliability of the clustered scale-free network for random fault monitoring.
[0008] The present invention utilizes the following technical solutions:
[0009] A two-stage topology optimization method for a highly reliable wireless sensor network comprises the following steps:
[0010] S1: Before a new sensor node joins the sensor network, it is divided into a cluster head node or a cluster member node according to the cluster head ratio;
[0011] The cluster head node and the member nodes in the cluster have different functions, but the software and hardware configurations are the same;
[0012] S2: Using the clustered scale-free evolution mechanism, according to the type of new sensor nodes added to the sensor network, in each time step, a link is established with the residual energy and scale of the existing cluster head nodes in the sensor network to construct a clustered scale-free network;
[0013] S3: Optimize the clustered scale-free network using the BPSO-TR algorithm;
[0014] The BPSO-TR algorithm first uses the BPSO algorithm to iteratively optimize and sort the particle swarm individually and in groups; then it updates the particle individuals in the last few places of sorting; the update operation includes update operation based on similarity, update operation based on degree value fitness difference or update operation based on distance difference, which transforms the network topology structure of the clustered scale-free network into an onion-like structure to improve the malicious attack defense capability and cascading failure prediction capability.
[0015] Preferably, in step S2, the specific steps of constructing a clustered scale-free network using the clustered scale-free evolution mechanism are as follows:
[0016] A: Assume that the initial scale-free network includes m0 cluster head nodes and 1 sink node; each cluster head node has at least one valid path to the sink node;
[0017] B: In each time step, a new sensor node i is added as a new cluster head node or a new cluster member node, and joins the initial scale-free network with a probability of ρ or 1-ρ respectively; when a new cluster head node or a new cluster member node joins the initial scale-free network, it carries m or 1 valid paths respectively; m>1;
[0018] That is, when a new sensor node joins the sensor network as a member node in a cluster, it links to any cluster head node in the sensor network; if a new sensor node joins the sensor network as a cluster head node, it links to multiple cluster head nodes in the sensor network;
[0019] C: The newly added sensor node i is connected to the existing cluster head node j in the initial scale-free network according to the preferential probability to build a clustered scale-free network.
[0020] Preferably, in step C, the probability of selecting the best is:
[0021]
[0022] Among them, P i→j (t) represents the preferential probability of adding sensor node i to cluster head node j at time t, k i (t) represents the scale of the newly added sensor node i at time t, k max (t) represents the scale of the newly added sensor node with the largest number at time t, p represents the cluster head ratio, N(t) represents the total number of sensor nodes in the clustered scale-free network at time t, E i (t) represents the remaining energy of the newly added sensor node i at time t, k m (t) represents the scale of cluster head node m at time t, E m (t) represents the residual energy of cluster head node m at time t, d ijIt represents the distance between the newly added sensor node i and the cluster head node j, and R represents the communication radius of the sensor node.
[0023] Preferably, in step S3, the BPSO-TR algorithm first uses the BPSO algorithm to iteratively evolve the initialized particle swarm for several times, calculates the fitness function value of each particle, updates the individual optimal value and the group optimal value respectively, and arranges the particles in descending order according to the fitness; then, the first n particles with higher fitness are retained, and the mn particles with poor fitness are updated, and the update operation can adopt any one of the update operation based on similarity, the update operation based on the fitness difference of the degree value, and the update operation based on the distance difference; finally, the retained n particles are combined with the mn particles after the update operation to form a new particle swarm, and the next iteration is performed.
[0024] Preferably, the iterative evolution process of the particle swarm by the BPSO algorithm is:
[0025] Y1: In the D-dimensional space, each newly added sensor node is equivalent to each particle in the particle swarm, according to the position vector X i =[x i,1 ,x i,2 ,..,x i,D ] and the velocity vector V i =[v i,1 ,v i,2 ,..,v i,D ], determine the state of each particle i in the particle swarm;
[0026] Y2: During the s-iteration evolution process, the running speed and real-time position of particle i are:
[0027] v i,d (s+1)=ωv i,d (s)+c1r1(p i,d (s)-x i,d (s))+c2r2(p g,d (s)-x i,d (s)) (2)
[0028] x i,d (s+1)=x i,d (s)+v i,d (s+1),1≤i≤n,1≤d≤D (3)
[0029] Among them, ω represents the inertia weight coefficient ω∈[0.8,1.2], c1 represents the individual acceleration factor, c2 represents the group acceleration factor, r1 represents the individual random number, r2 represents the group random number, and d represents the current space dimension;
[0030] Y3: Adjust the inertia weight coefficient ω according to the linear weight reduction strategy:
[0031]
[0032] Among them, ω max represents the maximum inertia weight coefficient, ω min Represents the minimum inertia weight coefficient, s max Indicates the maximum number of iterations;
[0033] Y4: Each particle i in the particle swarm has its own optimal P i =[p i,1 ,p i,2 ,..,p i,D ] and the group optimal P g =[p g,1 ,p g,2 ,..,p g,D ], adjust the running trajectory.
[0034] Preferably, the workflow of the similarity-based update operation is:
[0035] D1: Obtain the adjacency matrix A, exchangeable edge set E, number of cluster head nodes N and communication radius R of the clustered scale-free network;
[0036] D2: Select a pair of unmarked interchangeable edges e from the interchangeable edge set E uv and e kl , u, v, k and l are cluster head nodes;
[0037] D3: Switch sides according to the two similarity calculation rules, and calculate the similarity before and after the switch. The higher the similarity, the closer the scales of the two connected cluster head nodes are:
[0038]
[0039] Among them, SD0 is the similarity before switching sides, SD1 is the similarity after switching sides according to the first rule, SD2 is the similarity after switching sides according to the second rule, and k u,v,k,l (t) represents the scale of cluster head nodes u, v, k and l;
[0040] D4: If the connectivity of the clustered scale-free network is not destroyed after the edge exchange, that is, no isolated nodes are caused; and the natural connectivity of the clustered scale-free network is not reduced, then update the adjacency matrix A according to the above rules;
[0041] D5: Mark the selected interchangeable edges and update the interchangeable edge set E;
[0042] D6: Repeat D2 to D5 until all the interchangeable edges in the interchangeable edge set E are marked, and the latest adjacency matrix A is obtained.
[0043] Preferably, the workflow of the update operation based on the degree value fitness difference is:
[0044] H1: Obtain the adjacency matrix A, the commutative edge set E, the number of cluster head nodes N and the communication radius R of the clustered scale-free network;
[0045] H2: Select a pair of unmarked interchangeable edges e from the interchangeable edge set E uv and e kl ;
[0046] H3: Switch sides according to the two degree fitness difference calculation rules, and calculate the degree fitness difference DFD before and after the side switching to select the connection rule with the smaller degree fitness difference DFD;
[0047] H4: If the connectivity of the clustered scale-free network is not destroyed after the edge exchange, that is, no isolated nodes are caused; and the natural connectivity of the clustered scale-free network is not reduced, then the adjacency matrix A is updated according to the above rules;
[0048] H5: Mark the selected interchangeable edges and update the interchangeable edge set E;
[0049] H6: Repeat H2 to H5 until all the interchangeable edges in the interchangeable edge set E are marked, and the latest adjacency matrix A is obtained.
[0050] Preferably, the workflow of the update operation based on the distance difference is:
[0051] F1: Determine the sink node as the center of the clustered scale-free network;
[0052] F2: Obtain the adjacency matrix A, the commutative edge set E, the number of cluster head nodes N and the communication radius R of the clustered scale-free network;
[0053] F3: Obtain the node location information of the clustered scale-free network, and calculate the distance between the cluster head nodes u, v, k and l and the sink node based on the node location information;
[0054] In this embodiment, the node location information includes two-dimensional or three-dimensional coordinates, longitude and latitude information, cluster or community information, feature vectors, and label information;
[0055] F4: Select a pair of unmarked interchangeable edges e from the interchangeable edge set E uv and e kl ;
[0056] F5: Change sides according to two distance difference calculation rules, and calculate the distance difference before and after the side change to select the side change rule with the smaller distance difference:
[0057] D0=|d u -dv |+|d k -d l |, (8)
[0058] D1=|d u -d l |+|d v -d k |, (9)
[0059] D2=|d iu -d k |+|d v -d l |, (10)
[0060] Among them, D0 represents the distance difference before switching sides, D1 represents the distance difference after switching sides according to the first rule, and D2 represents the distance difference after switching sides according to the second rule. u Indicates the distance from cluster head node u to sink node, d v Indicates the distance from the cluster head node v to the sink node, d l Indicates the distance from cluster head node l to sink node, d k Indicates the distance from cluster head node k to sink node;
[0061] F6: If the connectivity of the clustered scale-free network is not destroyed after the edge exchange, that is, no isolated nodes are caused; and the natural connectivity of the clustered scale-free network is not reduced, then the adjacency matrix A is updated according to the above rules;
[0062] F7: Mark the selected interchangeable edge and update the interchangeable edge set E;
[0063] F8: Repeat F4 to F7 until all the interchangeable edges in the interchangeable edge set E are marked. This process ends and the latest adjacency matrix A is obtained.
[0064] The present invention generates a clustered scale-free network through a clustered scale-free evolution mechanism; the scale distribution of the generated clustered scale-free network is made to conform to a power-law distribution by means of preferential connection; the network topology is transformed into an onion-like structure through a BPSO-TR algorithm and three updating operations, thereby optimizing the network topology and ensuring the high reliability of the clustered scale-free network for random fault monitoring. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or related technologies, the drawings required for use in the embodiments or related technical descriptions are briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0066] Figure 1 The principle block diagram of the two-stage topology optimization method for highly reliable wireless sensor networks;
[0067] Figure 2 This is the working principle block diagram of the BPSO-TR algorithm;
[0068] Figure 3 Workflow diagram for similarity update operation;
[0069] Figure 4 Workflow diagram for the degree value fitness difference update operation
[0070] Figure 5 Workflow diagram for distance difference update operation
[0071] Figure 6 Two-stage evolution diagram of the two-stage topology optimization method. DETAILED DESCRIPTION
[0072] The present invention is described in detail below with reference to the accompanying drawings and embodiments:
[0073] like Figure 1-Figure 6 As shown, the two-stage topology optimization method for a high-reliability wireless sensor network described in the present invention comprises the following steps:
[0074] S1: Before a new sensor node joins the sensor network, it is classified into cluster head nodes or cluster member nodes according to the cluster head ratio;
[0075] The cluster head node and the member nodes in the cluster have different functions, but the software and hardware configurations are the same;
[0076] S2: Using the clustered scale-free evolution mechanism, according to the type of new sensor nodes added to the sensor network, in each time step, a link is established with the residual energy and scale of the existing cluster head nodes in the sensor network to construct a clustered scale-free network;
[0077] In the present invention, the specific steps of constructing a clustered scale-free network using the clustered scale-free evolution mechanism are as follows:
[0078] A: Assume that the initial scale-free network includes m0 cluster head nodes and 1 sink node; each cluster head node has at least one valid path to the sink node;
[0079] B: In each time step, a new sensor node i is added as a new cluster head node or a new cluster member node, and joins the initial scale-free network with a probability of ρ or 1-ρ respectively; when a new cluster head node or a new cluster member node joins the initial scale-free network, it carries m or 1 valid paths respectively; m>1;
[0080] That is, when a new sensor node joins the sensor network as a member node in a cluster, it links to any cluster head node in the sensor network; if a new sensor node joins the sensor network as a cluster head node, it links to multiple cluster head nodes in the sensor network;
[0081] C: The newly added sensor node i is connected to the existing cluster head node j in the initial scale-free network according to the preferential probability to build a clustered scale-free network;
[0082] In this embodiment, the optimal probability is:
[0083]
[0084] Among them, P i→j (t) represents the preferential probability of adding sensor node i to cluster head node j at time t, k i (t) represents the scale of the newly added sensor node i at time t, k max (t) represents the scale of the newly added sensor node with the largest number at time t, p represents the cluster head ratio, N(t) represents the total number of sensor nodes in the clustered scale-free network at time t, E i (t) represents the remaining energy of the newly added sensor node i at time t, k m (t) represents the scale of cluster head node m at time t, E m (t) represents the residual energy of cluster head node m at time t, d ij represents the distance between the newly added sensor node i and the cluster head node j, and R represents the communication radius of the sensor node;
[0085] S3: Optimize the clustered scale-free network using the BPSO-TR algorithm;
[0086] The BPSO-TR algorithm first uses the BPSO algorithm to perform iterative optimization and sorting of the particle swarm for individuals and groups respectively; then the particle individuals with the last few positions in the sorting are updated; the update operation includes an update operation based on similarity, an update operation based on degree value fitness difference, or an update operation based on distance difference, which transforms the network topology structure of the clustered scale-free network into an onion-like structure to improve the malicious attack defense capability and cascading failure prediction capability;
[0087] In the present invention, the two stages are: stage one: clustering scale-free topology evolution, i.e. step S2; stage two: inter-cluster topology optimization, i.e. step S3;
[0088] In the present invention, the BPSO-TR algorithm first uses the BPSO algorithm to iteratively evolve the initialized particle swarm for several times, calculates the fitness function value of each particle, updates the individual optimal value and the group optimal value respectively, and arranges the particles in descending order according to the fitness; then, the first n particles with higher fitness are retained, and the mn particles with poor fitness are updated, and the update operation can adopt any one of the update operation based on similarity, the update operation based on the fitness difference of the degree value, and the update operation based on the distance difference; finally, the retained n particles are combined with the mn particles after the update operation to form a new particle swarm, and the next iteration is performed;
[0089] In this embodiment, the iterative evolution process of the particle swarm by the BPSO algorithm is as follows:
[0090] Y1: In the D-dimensional space, each newly added sensor node is equivalent to each particle in the particle swarm, according to the position vector X i =[x i,1 ,x i,2 ,..,x i,D ] and the velocity vector V i =[v i,1 ,v i,2 ,..,v i,D ], determine the state of each particle i in the particle swarm;
[0091] Y2: During the s-iteration evolution process, the running speed and real-time position of particle i are:
[0092] v i,d (s+1)=ωv i,d (s)+c1r1(p i,d (s)-x i,d (s))+c2r2(p g,d (s)-x i,d (s)) (2)
[0093] x i,d (s+1)=x i,d (s)+v i,d (s+1),1≤i≤n,1≤d≤D (3)
[0094] Among them, ω represents the inertia weight coefficient ω∈[0.8,1.2], c1 represents the individual acceleration factor, c2 represents the group acceleration factor, r1 represents the individual random number, r2 represents the group random number, and d represents the current space dimension;
[0095] Y3: Adjust the inertia weight coefficient ω according to the linear weight reduction strategy:
[0096]
[0097] Among them, ω max represents the maximum inertia weight coefficient, ω min Represents the minimum inertia weight coefficient, s max Indicates the maximum number of iterations;
[0098] Y4: Each particle i in the particle swarm has its own optimal P i =[p i,1 ,p i,2 ,..,p i,D ] and the group optimal P g =[p g,1 ,p g,2 ,..,p g,D ], adjust the running trajectory;
[0099] In this embodiment, the workflow of the update operation based on similarity is:
[0100] D1: Obtain the adjacency matrix A, exchangeable edge set E, number of cluster head nodes N and communication radius R of the clustered scale-free network;
[0101] D2: Select a pair of unmarked interchangeable edges e from the interchangeable edge set E uv and e kl ;u, v, k and l are cluster head nodes;
[0102] D3: Switch sides according to the two similarity calculation rules, and calculate the similarity before and after the switch. The higher the similarity, the closer the scales of the two connected cluster head nodes are:
[0103]
[0104] Among them, SD0 is the similarity before switching sides, SD1 is the similarity after switching sides according to the first rule, SD2 is the similarity after switching sides according to the second rule, and k u,v,k,l (t) represents the scale of cluster head nodes u, v, k and l;
[0105] D4: If the connectivity of the clustered scale-free network is not destroyed after the edge exchange, that is, no isolated nodes are caused; and the natural connectivity of the clustered scale-free network is not reduced, then update the adjacency matrix A according to the above rules;
[0106] D5: Mark the selected interchangeable edges and update the interchangeable edge set E;
[0107] D6: Repeat D2 to D5 until all the interchangeable edges in the interchangeable edge set E are marked, and the latest adjacency matrix A is obtained;
[0108] In this embodiment, the working principle of the update operation based on similarity is:
[0109] Similarity calculation rules include cosine similarity and Hamming distance; cosine similarity measures the similarity between two vectors by calculating the cosine value of the angle between them; Hamming distance measures the number of different characters in corresponding positions of two strings of equal length;
[0110] 1. Calculate node similarity: First, you need to calculate the similarity between each pair of nodes in the network. This can usually be done by using indicators such as node degree and neighbor set to measure the similarity between nodes;
[0111] 2. Determine the node pairs with high similarity: Then, after calculating the similarity between all nodes, you can select the node pairs with high similarity for update operation. Nodes with high similarity are likely to have the same neighbors or similar neighbors, so connecting them can increase assortativity and clustering;
[0112] 3. Disconnect the original edge and connect the new edge: After determining the nodes with high similarity, you need to disconnect their original connection edges first. Then, you can establish a new connection edge between them, thereby changing the topology of the network;
[0113] 4. Repeat the above steps: After performing an update operation in the above manner, the similarity between nodes can be recalculated, and the above operations can be repeated according to the new similarity. The number of edge swaps can be determined according to the needs of the network. Usually, q (q ≥ 3) operations can be performed until all the exchangeable edges in the exchangeable edge set E are marked to enhance the homogeneity and clustering of the network.
[0114] In this embodiment, the workflow of the update operation based on the degree value fitness difference is:
[0115] H1: Obtain the adjacency matrix A, the commutative edge set E, the number of cluster head nodes N and the communication radius R of the clustered scale-free network;
[0116] H2: Select a pair of unmarked interchangeable edges e from the interchangeable edge set E uv and e kl ;
[0117] H3: Switch sides according to the two degree fitness difference calculation rules, and calculate the degree fitness difference DFD before and after the side switching to select the connection rule with the smaller degree fitness difference DFD;
[0118] H4: If the connectivity of the clustered scale-free network is not destroyed after the edge exchange, that is, no isolated nodes are caused; and the natural connectivity of the clustered scale-free network is not reduced, then the adjacency matrix A is updated according to the above rules;
[0119] H5: Mark the selected interchangeable edges and update the interchangeable edge set E;
[0120] H6: Repeat H2 to H5 until all the interchangeable edges in the interchangeable edge set E are marked, and the latest adjacency matrix A is obtained;
[0121] In this embodiment, the working principle of the update operation based on the degree value fitness difference is:
[0122] The two fitness difference calculation rules include symbolic fitness method and proportional fitness method; the symbolic fitness method divides the interval where the objective function is located and maps each interval to a symbol to determine the fitness degree between each individual and the objective function; the proportional fitness method defines the fitness value as the ratio of the objective function value to the range of the interval, rather than the difference between the objective function value and the mean;
[0123] 1. Calculate the degree and fitness of each node: First, you need to calculate the degree and fitness of each node in the network. The degree of a node can be obtained by calculating the number of edges connected to the node, while the fitness of a node can be calculated based on the properties of the node;
[0124] 2. Calculate the degree and fitness difference between two nodes: Next, after calculating the degree and fitness of each node, the degree and fitness difference between the nodes can be calculated. The degree and fitness difference can be used to measure the gap and difference between nodes;
[0125] 3. Determine the node pairs with large degree and fitness differences: By comparing the degree and fitness differences between nodes, select the node pairs with large degree and fitness differences for update operations. Reconnecting nodes with large degree and fitness differences can increase the similarity and compatibility between nodes;
[0126] 4. Disconnect the original edge and connect the new edge: After determining the node pair that needs to be swapped, you need to first disconnect the original connection edge between the two. Then, you can establish a new connection edge between them, thereby changing the topology of the network;
[0127] 5. Repeat the above steps: After performing an update operation in the above manner, the degree and fitness of the node can be recalculated, and the above operations can be repeated according to the new degree and fitness. The number of edge swaps can be determined according to the needs of the network. Usually, q (q ≥ 3) operations can be performed until all the exchangeable edges in the exchangeable edge set E are marked to enhance the homogeneity and clustering of the network.
[0128] In this embodiment, the workflow of the update operation based on the distance difference is:
[0129] F1: Determine the sink node as the center of the clustered scale-free network;
[0130] F2: Obtain the adjacency matrix A, the commutative edge set E, the number of cluster head nodes N and the communication radius R of the clustered scale-free network;
[0131] F3: Obtain the node location information of the clustered scale-free network, and calculate the distance between the cluster head nodes u, v, k and l and the sink node based on the node location information;
[0132] In this embodiment, the node location information includes two-dimensional or three-dimensional coordinates, longitude and latitude information, cluster or community information, feature vectors, and label information;
[0133] F4: Select a pair of unmarked interchangeable edges e from the interchangeable edge set E uv and e kl ;
[0134] F5: Change sides according to two distance difference calculation rules, and calculate the distance difference before and after the side change to select the side change rule with the smaller distance difference:
[0135] D0=|d u -d v |+|d k -d l |, (8)
[0136] D1=|d u -d l |+|d v -d k |, (9)
[0137] D2=|d iu -d k |+|d v -d l |, (10)
[0138] Among them, D0 represents the distance difference before switching sides, D1 represents the distance difference after switching sides according to the first rule, and D2 represents the distance difference after switching sides according to the second rule. u Indicates the distance from cluster head node u to sink node, d v Indicates the distance from the cluster head node v to the sink node, d l Indicates the distance from cluster head node l to sink node, d k Indicates the distance from cluster head node k to sink node;
[0139] F6: If the connectivity of the clustered scale-free network is not destroyed after the edge exchange, that is, no isolated nodes are caused; and the natural connectivity of the clustered scale-free network is not reduced, then the adjacency matrix A is updated according to the above rules;
[0140] F7: Mark the selected interchangeable edge and update the interchangeable edge set E;
[0141] F8: Repeat F4 to F7 until all the interchangeable edges in the interchangeable edge set E are marked. This process ends and the latest adjacency matrix A is obtained.
[0142] In this embodiment, the working principle of the update operation based on the distance difference is:
[0143] The two distance difference calculation rules include Manhattan distance and Euclidean distance; Manhattan distance refers to the sum of the distances from one point to another along the grid line; Euclidean distance refers to the straight-line distance between two points;
[0144] 1. Calculate the distance between nodes: First, you need to calculate the distance between each pair of nodes in the network. The distance can be calculated using the path length of the node in the network or other distance measurement methods;
[0145] 2. Calculate the node distance difference: After calculating the distances between all nodes, you can calculate the distance difference between nodes. The distance difference can be used to measure the gap and similarity between nodes;
[0146] 3. Determine the node pairs with smaller distance differences: By comparing the distance differences between nodes, you can select the node pairs with smaller distance differences for update operations. Reconnecting nodes with smaller distance differences can increase the similarity and compatibility between nodes;
[0147] 4. Disconnect the original edge and connect the new edge: After determining the node pair that needs to be swapped, you need to first disconnect the original connection edge between the two. Then, you can establish a new connection edge between them, thereby changing the topology of the network;
[0148] 5. Repeat the above steps: After performing an update operation in the above manner, the distance between nodes can be recalculated and the above operation can be repeated according to the new distance. The number of edge swaps can be determined according to the needs of the network. Usually, q (q ≥ 3) operations can be performed until all the exchangeable edges in the exchangeable edge set E are marked to enhance the homogeneity and clustering of the network.
[0149] Example:
[0150] Firstly, before a new sensor node joins the sensor network, the clustering scale-free evolution mechanism is used to divide the new sensor node into a cluster head node or a cluster member node according to the proportion of cluster heads. The functions of the cluster head node and the cluster member node are different, but the hardware and software configurations are the same. If the new sensor node joins the sensor network as a cluster member node, it links to any cluster head node in the sensor network. If the new sensor node joins the sensor network as a cluster head node, it links to any multiple cluster head nodes in the sensor network. In each time step, the new sensor node establishes a link based on the residual energy and scale of the existing cluster head nodes in the sensor network to form a A clustered scale-free network is constructed; the implementation process of the clustered scale-free evolution mechanism is as follows: the initial scale-free network is set to include m0 cluster head nodes and 1 sink node; each cluster head node has at least one valid path to the sink node; in each time step, a new sensor node is added as a new cluster head node or a new cluster member node, with a probability of ρ or 1-ρ respectively, and when a new cluster head node or a new cluster member node joins the initial scale-free network, it carries m or 1 valid paths respectively; the new sensor node i is connected to the existing cluster head node j in the initial scale-free network according to the preferred probability to construct a clustered scale-free network;
[0151] Then, the BPSO-TR algorithm uses three update operations: similarity-based update operation, degree value fitness difference-based update operation, and distance difference-based update operation to transform the network topology structure of the clustered scale-free network into an onion-like structure to improve the malicious attack defense capability and cascading failure prediction capability;
[0152] Among them, the BPSO-TR algorithm first uses the BPSO algorithm to iteratively evolve the initialized particle swarm several times, calculates the fitness function value of each particle, updates the individual optimal value and the group optimal value respectively, and arranges the particles in descending order according to the fitness; then, the first n particles with higher fitness are retained, and the mn particles with poor fitness are updated: update operation based on similarity, update operation based on degree value fitness difference, and update operation based on distance difference;
[0153] In addition, the workflow of the update operation using similarity is as follows: obtain the adjacency matrix A, the interchangeable edge set E, the number of cluster head nodes N and the communication radius R of the clustered scale-free network; select a pair of unlabeled interchangeable edges e from the interchangeable edge set E uv and e kl; Switch edges according to different rules, and calculate the similarity before and after the switch. The higher the similarity, the closer the scales of the two connected cluster head nodes are. If the connectivity of the clustered scale-free network is not destroyed after the switch, that is, no isolated nodes are generated; and the natural connectivity of the clustered scale-free network is not reduced, then update the adjacency matrix A according to the above rules; mark the selected switchable edges, and update the switchable edge set E until all the switchable edges in the switchable edge set E are marked, and then the latest adjacency matrix A is obtained.
[0154] The workflow of updating operation using degree fitness difference is as follows: obtain the adjacency matrix A, the interchangeable edge set E, the number of cluster head nodes N and the communication radius R of the clustered scale-free network; select a pair of unlabeled interchangeable edges e from the interchangeable edge set E. uv and e kl ; Exchange edges according to different rules, and calculate the degree fitness difference DFD before and after the edge exchange to select the connection rule with the smaller degree fitness difference; if the connectivity of the clustered scale-free network is not destroyed after the edge exchange, that is, no isolated nodes are caused; and the natural connectivity of the clustered scale-free network will not be reduced, then according to the above rules, the adjacency matrix A is updated; the selected exchangeable edges are marked, and the exchangeable edge set E is updated until all the exchangeable edges in the exchangeable edge set E are marked, and the latest adjacency matrix A is obtained;
[0155] The workflow of the update operation using distance difference is as follows: determine the sink node as the center of the clustered scale-free network; obtain the adjacency matrix A, the exchangeable edge set E, the number of cluster head nodes N and the communication radius R of the clustered scale-free network; obtain the node position information of the clustered scale-free network, and calculate the distance between the cluster head node u, v, k, l and the sink node based on the node position information; select a pair of unlabeled exchangeable edges e from the exchangeable edge set E uv and e kl ; Exchange edges according to different rules, and calculate the distance difference before and after the edge exchange to select the edge exchange rule with the smallest distance difference; if the connectivity of the clustered scale-free network is not destroyed after the edge exchange, that is, no isolated nodes are caused; and the natural connectivity of the clustered scale-free network is not reduced, then according to the above rules, the adjacency matrix A is updated; the selected exchangeable edges are marked, and the exchangeable edge set E is updated until all the exchangeable edges in the exchangeable edge set E are marked, and this process ends and the latest adjacency matrix A is obtained;
[0156] Finally, the retained n particles are combined with the mn particles after the update operation to form a new particle group, and the next iteration is performed, thereby completing the two-stage topology optimization of the wireless sensor network.
Claims
1. A two-stage topology optimization method for highly reliable wireless sensor networks. Features: The steps include: S1: Before a new sensor node joins the sensor network, it is divided into a cluster head node or a cluster member node according to the cluster head ratio; S2: Using the clustered scale-free evolution mechanism, according to the type of new sensor nodes added to the sensor network, in each time step, a link is established with the residual energy and scale of the existing cluster head nodes in the sensor network to construct a clustered scale-free network; S3: Optimize the clustered scale-free network using the BPSO-TR algorithm; The BPSO-TR algorithm first uses the BPSO algorithm to iteratively optimize and sort the particle swarm individually and in groups; then it updates the particle individuals in the last few places of sorting; the update operation includes update operation based on similarity, update operation based on degree value fitness difference or update operation based on distance difference, which transforms the network topology structure of the clustered scale-free network into an onion-like structure to improve the malicious attack defense capability and cascading failure prediction capability.
2. The two-stage topology optimization method for highly reliable wireless sensor networks according to claim 1, Features: In step S2, the specific steps of constructing a clustered scale-free network using the clustered scale-free evolution mechanism are as follows: A: Set the initial scale-free network to include m 0 There are cluster head nodes and 1 sink node; each cluster head node has at least one valid path to the sink node; B: In each time step, a new sensor node i is added as a new cluster head node or a new cluster member node, and joins the initial scale-free network with a probability of ρ or 1-ρ respectively; when a new cluster head node or a new cluster member node joins the initial scale-free network, it carries m or 1 valid paths respectively; m>1; That is, when a new sensor node joins the sensor network as a member node in a cluster, it links to any cluster head node in the sensor network; if a new sensor node joins the sensor network as a cluster head node, it links to multiple cluster head nodes in the sensor network; C: The newly added sensor node i is connected to the existing cluster head node j in the initial scale-free network according to the preferential probability to build a clustered scale-free network.
3. The two-stage topology optimization method for highly reliable wireless sensor networks according to claim 2, Features: In step C, the probability of selecting the best is: Among them, P i→j (t) represents the preferential probability of adding sensor node i to cluster head node j at time t, k i (t) represents the scale of the newly added sensor node i at time t, k max (t) represents the scale of the newly added sensor node with the largest number at time t, p represents the cluster head ratio, N(t) represents the total number of sensor nodes in the clustered scale-free network at time t, E i (t) represents the remaining energy of the newly added sensor node i at time t, k m (t) represents the scale of cluster head node m at time t, E m (t) represents the residual energy of cluster head node m at time t, d ij It represents the distance between the newly added sensor node i and the cluster head node j, and R represents the communication radius of the sensor node.
4. The two-stage topology optimization method for highly reliable wireless sensor networks according to claim 1, Features: In step S3, the BPSO-TR algorithm first uses the BPSO algorithm to iteratively evolve the initialized particle swarm for several times, calculate the fitness function value of each particle, update the individual optimal value and the group optimal value respectively, and arrange the particles in descending order according to the fitness; then, the first n particles with higher fitness are retained, and the mn particles with poor fitness are updated, and the update operation can adopt any one of the update operation based on similarity, the update operation based on the fitness difference of the degree value, and the update operation based on the distance difference; finally, the retained n particles are combined with the mn particles after the update operation to form a new particle swarm, and the next iteration is performed.
5. The two-stage topology optimization method for highly reliable wireless sensor networks according to claim 4, Features: The iterative evolution process of the BPSO algorithm for the particle swarm is: Y1: In the D-dimensional space, each newly added sensor node is equivalent to each particle in the particle swarm, according to the position vector X i =[x i,1 ,x i,2 ,..,x i,D ] and the velocity vector V i =[v i,1 ,v i,2 ,..,v i,D ], determine the state of each particle i in the particle swarm; Y2: During the s-iteration evolution process, the running speed and real-time position of particle i are: v i,d (s+1)=ωv i,d (s)+c 1 r 1 (p i,d (s)-x i,d (s))+c 2 r 2 (p g,d (s)-x i,d (s)) (2) x i,d (s+1)=x i,d (s)+v i,d (s+1),1≤i≤n,1≤d≤D (3) Where ω represents the inertia weight coefficient ω∈[0.8,1.2], c 1 represents the individual acceleration factor, c 2 represents the group acceleration factor, r 1 represents an individual random number, r 2 represents the group random number, d represents the current spatial dimension; Y3: Adjust the inertia weight coefficient ω according to the linear weight reduction strategy: Among them, ω max represents the maximum inertia weight coefficient, ω min Represents the minimum inertia weight coefficient, s max Indicates the maximum number of iterations; Y4: Each particle i in the particle swarm has its own optimal P i =[p i,1 ,p i,2 ,..,p i,D ] and the group optimal P g =[p g,1 ,p g,2 ,..,p g,D ], adjust the running trajectory.
6. The two-stage topology optimization method for highly reliable wireless sensor networks according to claim 1 or 4, Features: The workflow of the similarity-based update operation is: D1: Obtain the adjacency matrix A, exchangeable edge set E, number of cluster head nodes N and communication radius R of the clustered scale-free network; D2: Select a pair of unmarked interchangeable edges e from the interchangeable edge set E uv and e kl , u, v, k and l are cluster head nodes; D3: Switch sides according to the two similarity calculation rules, and calculate the similarity before and after the switch. The higher the similarity, the closer the scales of the two connected cluster head nodes are: Among them, SD 0 is the similarity before switching sides, SD 1 is the similarity after switching sides according to the first rule, SD 2 is the similarity after the second rule changes sides, k u,v,k,l (t) represents the scale of cluster head nodes u, v, k and l; D4: If the connectivity of the clustered scale-free network is not destroyed after the edge exchange, that is, no isolated nodes are caused; and the natural connectivity of the clustered scale-free network is not reduced, then update the adjacency matrix A according to the above rules; D5: Mark the selected interchangeable edges and update the interchangeable edge set E; D6: Repeat D2 to D5 until all the interchangeable edges in the interchangeable edge set E are marked, and the latest adjacency matrix A is obtained.
7. The two-stage topology optimization method for a highly reliable wireless sensor network according to claim 1 or 4, Features: The workflow of the update operation based on degree value fitness difference is: H1: Obtain the adjacency matrix A, the commutative edge set E, the number of cluster head nodes N and the communication radius R of the clustered scale-free network; H2: Select a pair of unmarked interchangeable edges e from the interchangeable edge set E uv and e kl ; H3: Switch sides according to the two degree fitness difference calculation rules, and calculate the degree fitness difference DFD before and after the side switching to select the connection rule with the smaller degree fitness difference DFD; H4: If the connectivity of the clustered scale-free network is not destroyed after the edge exchange, that is, no isolated nodes are caused; and the natural connectivity of the clustered scale-free network is not reduced, then the adjacency matrix A is updated according to the above rules; H5: Mark the selected interchangeable edges and update the interchangeable edge set E; H6: Repeat H2 to H5 until all the interchangeable edges in the interchangeable edge set E are marked, and the latest adjacency matrix A is obtained.
8. The two-stage topology optimization method for a highly reliable wireless sensor network according to claim 1 or 4, Features: The workflow of the distance difference based update operation is as follows: F1: Determine the sink node as the center of the clustered scale-free network; F2: Obtain the adjacency matrix A, the commutative edge set E, the number of cluster head nodes N and the communication radius R of the clustered scale-free network; F3: Obtain the node location information of the clustered scale-free network, and calculate the distance between the cluster head nodes u, v, k and l and the sink node based on the node location information; F4: Select a pair of unmarked interchangeable edges e from the interchangeable edge set E uv and e kl ; F5: Change sides according to two distance difference calculation rules, and calculate the distance difference before and after the side change to select the side change rule with the smaller distance difference: D 0 =|d u -d v |+|d k -d l |, (8) D 1 =|d u -d l |+|d v -d k |, (9) D 2 =|d iu -d k |+|d v -d l |, (10) Among them, D 0 Indicates the distance difference before switching sides, D 1 Denotes the distance difference after changing sides according to the first rule, D 2 Indicates the distance difference after changing sides according to the second rule, d u Indicates the distance from cluster head node u to sink node, d v Indicates the distance from the cluster head node v to the sink node, d l represents the distance from the cluster head node l to the sink node, d k Indicates the distance from cluster head node k to sink node; F6: If the connectivity of the clustered scale-free network is not destroyed after the edge exchange, that is, no isolated nodes are caused; and the natural connectivity of the clustered scale-free network is not reduced, then the adjacency matrix A is updated according to the above rules; F7: Mark the selected interchangeable edge and update the interchangeable edge set E; F8: Repeat F4 to F7 until all the interchangeable edges in the interchangeable edge set E are marked. This process ends and the latest adjacency matrix A is obtained.
Citation Information
Cited By
Low-carbon logistics distribution path planning method based on multi-objective optimization
CN121146231A
