A wireless sensor network node clustering method and system based on Levy flight

By applying the particle swarm optimization algorithm based on Levy flight in wireless sensor networks, the problems of uneven cluster head node layout and local optimality are solved, and the node energy consumption in large-scale networks is evenly distributed and the network life cycle is extended.

CN114531665BActive Publication Date: 2024-09-06BEIJING YUMEIJING TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

Existing wireless sensor network clustering algorithms are not suitable for large-scale networks. The cluster head nodes are unevenly distributed, resulting in uneven distribution of energy consumption. Some algorithms are easy to fall into local optimality, making the results difficult to converge.

Method used

The particle swarm optimization algorithm based on Levi's flight is used to set the particle swarm to search within the target area, update the speed and position of the particles based on the fitness function, and select an appropriate number of cluster head nodes to avoid local optimality and ensure energy consumption. Evenly distributed.

Benefits of technology

It achieves uniform distribution of cluster head nodes in large-scale wireless sensor networks, saves node power consumption, extends node survival time and network life cycle, avoids local optimal problems, and improves the convergence of the clustering process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114531665B
    Figure CN114531665B
Patent Text Reader

Abstract

The invention belongs to the field of wireless sensor networks, and provides a method for clustering wireless sensor network nodes based on Levy flights. A particle swarm optimization algorithm based on Levy flights is integrated into the election process of cluster head nodes. The particle swarm searches for a target area according to a motion trajectory described by the particle swarm optimization algorithm based on Levy flights. The initial positions of particles based on local optimal solutions and global optimal solutions are combined with a fitness function to continuously update the speed and position of each particle in the next round, and the fitness of each particle in the next round is calculated to obtain the positions of particles of local optimal solutions and all optimal solutions in each round. The nodes of the wireless sensor network are clustered, so as to achieve the purpose of saving node power consumption and extending node survival time and network life cycle.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the field of wireless sensor networks, and in particular relates to a wireless sensor network node clustering method and system based on Levy flight. Background Art

[0002] The statements in this section merely provide background information related to the present invention and do not necessarily constitute prior art.

[0003] As the scale of the network increases, the academic community has begun to try to balance network energy consumption by clustering sensor nodes, and to achieve network clustering from multiple aspects, such as whether to pre-divide the area, whether the clustering is uniform, and whether to combine other algorithms. Research shows that network node clustering is currently the most effective way to achieve energy saving and life extension in WSN.

[0004] Disadvantages of existing clustering algorithms:

[0005] (1) Not suitable for application in large-scale wireless sensor networks.

[0006] (2) The layout of cluster head nodes in the entire network is not described. Therefore, it is very likely that the selected cluster head nodes are concentrated in a certain area, which will result in some ordinary nodes being without any cluster head nodes around them, leading to uneven distribution of network energy consumption.

[0007] (3) It is not applicable to networks with uneven node energy.

[0008] (4) Some algorithms are prone to falling into local optimal situations, resulting in difficult convergence of results. Summary of the invention

[0009] In order to solve at least one technical problem existing in the above-mentioned background technology, the present invention provides a wireless sensor network node clustering method and system based on Levy flight, which integrates the particle swarm optimization algorithm based on Levy flight into the election process of cluster head nodes to cluster the nodes of the wireless sensor network, thereby achieving the purpose of saving node power consumption and extending node survival time and network life cycle.

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

[0011] A first aspect of the present invention provides a wireless sensor network node clustering method based on Levy flight, comprising the following steps:

[0012] Set up a particle swarm in the target area and assign a random initial velocity and initial position to each particle;

[0013] Combine the random initial speed and initial position assigned to each particle and the fitness function to determine the initial position of the particles of the local optimal solution and the global optimal solution;

[0014] The particle swarm searches the target area according to the motion trajectory described by the particle swarm optimization algorithm based on Levy flight. Based on the initial positions of the particles of the local optimal solution and the global optimal solution, the speed and position of each particle in the next round are continuously updated in combination with the fitness function, and the fitness of each particle in the next round is calculated to obtain the positions of the particles of the local optimal solution and the overall optimal solution in each round.

[0015] Determine whether the number of updates has exceeded the set threshold. If so, the particle performs Levy flight and updates the position of the next round of particles. Otherwise, determine whether the particle position converges. If so, select the node coordinates of a set number of cluster head nodes. Otherwise, continue searching the target area.

[0016] A second aspect of the present invention provides a wireless sensor network node clustering system based on Levy flight, comprising:

[0017] The particle swarm setting module is configured to: set a particle swarm in a target area and assign a random initial velocity and initial position to each particle;

[0018] The particle swarm optimization algorithm module is configured to: determine the initial positions of particles of local optimal solutions and global optimal solutions by combining the random initial speed and initial position assigned to each particle and the fitness function;

[0019] The particle swarm searches the target area according to the motion trajectory described by the particle swarm optimization algorithm based on Levy flight. Based on the initial positions of the particles of the local optimal solution and the global optimal solution, the speed and position of each particle in the next round are continuously updated in combination with the fitness function to obtain the positions of the particles of the local optimal solution and the overall optimal solution in each round.

[0020] The network node clustering module is configured to: determine whether the number of updates has exceeded the set threshold. If so, the particles perform Levy flight and update the positions of the next round of particles. Otherwise, determine whether the particle positions converge. If so, select the node coordinates of a set number of cluster heads. Otherwise, continue searching the target area.

[0021] A third aspect of the present invention provides a computer-readable storage medium.

[0022] A computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps in the above-mentioned method for clustering wireless sensor network nodes based on Levy flight.

[0023] A fourth aspect of the present invention provides a computer device.

[0024] A computer device comprises a memory, a processor and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps in the above-mentioned method for clustering wireless sensor network nodes based on Levy flight are implemented.

[0025] Compared with the prior art, the present invention has the following beneficial effects:

[0026] The present invention integrates the particle swarm optimization algorithm based on Levy flight into the election process of cluster head nodes, clusters the nodes of the wireless sensor network, thereby achieving the purpose of saving node power consumption, extending node survival time and network life cycle, and can better save node power consumption, extend node survival time and network life cycle. The output result shows the number and distribution of cluster head nodes, and there will be no phenomenon that cluster head nodes are concentrated in a certain area of ​​the network, thus avoiding the situation that there are no cluster head nodes around some nodes, resulting in uneven distribution of network energy consumption.

[0027] In the whole clustering process, we only need to obtain the side length of the target area, the distribution of the aggregation nodes and sensor nodes, which has nothing to do with the scale of the sensor network. Therefore, it can be applied to large-scale wireless sensor networks. The principle of Levy flight is added on the basis of the particle swarm algorithm, which effectively improves the situation that some algorithms are prone to fall into local optimality and make it difficult to converge. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The accompanying drawings in the specification, which constitute a part of the present invention, are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute improper limitations on the present invention.

[0029] Figure 1 This is a flow chart of a wireless sensor network node clustering method based on Levy flight according to Embodiment 1 of the present invention. DETAILED DESCRIPTION

[0030] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0031] It should be noted that the following detailed descriptions are all illustrative and intended to provide further explanation of the present invention. Unless otherwise specified, all technical and scientific terms used herein have the same meanings as those commonly understood by those skilled in the art to which the present invention belongs.

[0032] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit exemplary embodiments according to the present invention. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprising" and / or "including" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.

[0033] Explanation of terms

[0034] Wireless Sensor Networks (WSN) are networks that can sense information and are a type of Internet of Things system. By combining with communication technology, a network that can meet the needs of different users can be established. WSN can improve people's lives and promote the development of contemporary society. WSN is an automatically networked, energy-limited, and computing-limited wireless network composed of a large number of simple, low-cost sensors randomly deployed.

[0035] WSN is currently widely used in many fields such as production and life, industry, and military. However, in the actual deployment of the network, in order to improve the accuracy of data collection, a large number of sensor nodes need to be deployed in the monitoring area. Miniaturization and low cost have become the most important requirements for sensor nodes. In order to meet this requirement, sensor nodes are powered by batteries. Due to the randomness and harshness of the deployment environment, it is difficult to physically replenish battery energy in a timely manner, so the energy of WSN is limited. In addition, the storage capacity and computing power of the sensor nodes themselves are inherently limited, and WSN needs to reasonably allocate network resources to ensure that the network can continue to work stably and normally.

[0036] Step 1: Set up a particle swarm in the target area and assign a random initial velocity and initial position to each particle;

[0037] Step 2: Combine the random initial velocity and initial position assigned to each particle and the fitness function to determine the initial position of the particles of the local optimal solution and the global optimal solution;

[0038] Step 3: The particle swarm searches the target area according to the motion trajectory described by the particle swarm optimization algorithm based on Levy flight. Based on the initial positions of the particles of the local optimal solution and the global optimal solution, the speed and position of each particle in the next round are continuously updated in combination with the fitness function to obtain the positions of the particles of the local optimal solution and the overall optimal solution in each round.

[0039] Step 4: Determine whether the number of updates has exceeded the set threshold. If so, the particle performs Levy flight and updates the position of the next round of particles. Otherwise, determine whether the particle position converges. If so, select the node coordinates of the set number of cluster heads. Otherwise, continue searching the target area.

[0040] The wireless sensor node is a real point, and the particle swarm is virtual. The n particles in the particle swarm search the rectangular area of ​​axa according to the trajectory described by the formula. Each round of n particles will have a position. The position coordinates of each round are brought into the fitness function, and then the n fitness values ​​are compared. After the algorithm ends, the position coordinates of the point with the largest fitness function value represent the cluster head node coordinates. The essence of the algorithm is to let some individuals (n particles) quickly search a continuous interval according to a certain rule or trajectory, and finally get some discrete points that meet our requirements. In step 1, the target area is a rectangular area with a side length of a×a, in which N wireless sensor nodes are randomly distributed, and the coordinates of the aggregation node are known. Finally, the node coordinates of the set number of cluster heads are selected to obtain wireless sensor nodes.

[0041] The aggregation node is a sink node, which is mainly responsible for the connection between the wireless sensor network and the external network (such as GPS, Internet, etc.), and can be regarded as a gateway node.

[0042] In step 2, the fitness function is used to evaluate all nodes in the network, specifically:

[0043] fitness(x,y)=α·f1+β·f2+γ·f3 (1)

[0044] Where, α+β+γ=1;

[0045] f1 represents the inverse of the sum of the distances from k cluster head nodes to the sink node. The larger the f1, the shorter the distance from k cluster head nodes to the sink node and the lower the communication cost of the network.

[0046] f2 represents the sum of the number of common nodes covered by k cluster head nodes. The larger the f2 is, the more common nodes are covered by k cluster head nodes, and the better the network performance is.

[0047] f3 represents the weighted sum of the residual energies of k cluster head nodes. The larger the f3 is, the larger the sum of the residual energies of the k cluster head nodes is, and the longer the network life cycle is.

[0048]

[0049] x represents the horizontal coordinate of the particle, y represents the vertical coordinate of the particle, and d ic represents the distance from particle i to the converging node, n irepresents the number of nodes that particle i can cover within its communication range, E i represents the residual energy of particle i. k represents the number of cluster head nodes. The number of cluster head nodes to be selected depends on the value of k. The calculation formula is:

[0050]

[0051] Where N is the total number of sensor nodes in the square target area, a is the side length of the square target area, d is the expected distance from all sensor nodes in the area to the sink node, ε1 represents the free space model amplification parameter, ε2 represents the multipath attenuation model amplification parameter, and ε3 represents the sending and receiving energy consumption.

[0052] In this embodiment, ε1=10 pJ / bit, ε2=0.0013 pJ / bit, and ε3=50 nJ / bit may be selected.

[0053] The aggregation node is a si nk node, which is mainly responsible for the connection between the wireless sensor network and the external network (such as GPS, I nternet, etc.), and can be regarded as a gateway node.

[0054] The particle swarm optimization algorithm based on Levy flight includes the particle velocity update process and the particle position update process. The specific formula is as follows:

[0055]

[0056]

[0057] Where: Formula (3) is the particle velocity update formula, Formula (4) is the particle position update formula, t is the current iteration number; ω is the inertia weight; c1 and c2 are learning factors; r1 and r2 are random numbers uniformly distributed in [0, 1]. The parameters of the algorithm have a great influence on the performance of the algorithm. Parameters c1 and r1 represent the degree to which the particle is affected by its own optimal state, and c2 and r2 represent the degree to which the particle is affected by the population optimal state. Usually c1 and c2 are taken as 2. The inertia weight determines the degree to which the particle inherits the current velocity. represents the position of particle i in the tth generation, represents the velocity of particle i of generation t. i It is called the local optimal solution; p g represents the optimal solution of the fitness function obtained by the entire particle swarm, p g Become the global optimal solution.

[0058] In step 3, the particle performs Levy flight, and the formula for updating the position of the next round of particles is:

[0059]

[0060] in, Represents x i The position of particle i in generation t, is a point-to-point multiplication, a represents the step size control, levy(λ) is a random search path, and satisfies:

[0061] levy(λ)~μ=t -λ (6)

[0062] The essence of Levy flight is a random step length, which conforms to the Levy distribution. Since the Levy distribution is very complex, it is not yet possible to achieve it. Therefore, the Mantegna algorithm is often used for simulation. The mathematical expression of the Mantegna algorithm is as follows:

[0063] Therefore, the step length s can be obtained, and the calculation formula is:

[0064]

[0065] Among them: μ, v are normally distributed, defined as:

[0066]

[0067]

[0068] in, σ v =1, β is usually taken as a constant of 1.5.

[0069] Embodiment 2

[0070] This embodiment provides a wireless sensor network node clustering system based on Levy flight, including:

[0071] The particle swarm setting module is configured to: set a particle swarm in a target area and assign a random initial velocity and initial position to each particle;

[0072] The particle swarm optimization algorithm module is configured to: determine the initial positions of particles of local optimal solutions and global optimal solutions by combining the random initial speed and initial position assigned to each particle and the fitness function;

[0073] The particle swarm searches the target area according to the motion trajectory described by the particle swarm optimization algorithm based on Levy flight. Based on the initial positions of the particles of the local optimal solution and the global optimal solution, the speed and position of each particle in the next round are continuously updated in combination with the fitness function to obtain the positions of the particles of the local optimal solution and the overall optimal solution in each round.

[0074] The network node clustering module is configured to: determine whether the number of updates has exceeded the set threshold. If so, the particles perform Levy flight and update the positions of the next round of particles. Otherwise, determine whether the particle positions converge. If so, select the node coordinates of a set number of cluster heads. Otherwise, continue searching the target area.

[0075] Embodiment 3

[0076] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the steps in the wireless sensor network node clustering method based on Levy flight as described above are implemented.

[0077] Embodiment 4

[0078] This embodiment provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps in the wireless sensor network node clustering method based on Levy flight as described above are implemented.

[0079] Those skilled in the art will appreciate that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage and optical storage, etc.) containing computer-usable program code.

[0080] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0081] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1A function specified in one or more boxes.

[0082] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0083] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0084] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A wireless sensor network node clustering method based on Levy flight, characterized in that: The steps include: Set up a particle swarm in the target area and assign a random initial velocity and initial position to each particle; Combine the random initial speed and initial position assigned to each particle and the fitness function to determine the initial position of the particles of the local optimal solution and the global optimal solution; The particle swarm searches the target area according to the motion trajectory described by the particle swarm optimization algorithm based on Levy flight. Based on the initial positions of the particles of the local optimal solution and the global optimal solution, the speed and position of each particle in the next round are continuously updated in combination with the fitness function, and the fitness of each particle in the next round is calculated to obtain the positions of the particles of the local optimal solution and the overall optimal solution in each round. Determine whether the number of updates has exceeded the set threshold. If so, the particle performs Levy flight and updates the position of the next round of particles. Otherwise, determine whether the particle position converges. If so, select the node coordinates of the set number of cluster head nodes. Otherwise, continue searching the target area. Wherein, the fitness function is: fitness(x,y)=α·f1+β·f2+γ·f3, Where α+β+γ=1, f1 represents the inverse of the sum of the distances from k cluster head nodes to the sink node, f2 represents the sum of the number of common nodes covered by k cluster head nodes, f3 represents the weighted sum of the residual energy of k cluster head nodes, x represents the horizontal coordinate of the particle, and y represents the vertical coordinate of the particle; Among them, the calculation formula for the number of cluster head nodes of the set number is: Where N is the total number of sensor nodes in the square target area, a is the side length of the square target area, d is the expected distance from all sensor nodes in the area to the sink node, ε1 represents the amplification parameter of the free space model, ε2 represents the amplification parameter of the multipath attenuation model, and ε3 represents the sending and receiving energy consumption; Among them, the formula for continuously updating the speed of each particle in the next round is: The formula for continuously updating the position of each particle in the next round is: Where t is the current iteration number, ω is the inertia weight, c1 and c2 are learning factors, r1 and r2 are random numbers uniformly distributed in [0, 1]. represents the position of particle i in the tth generation, represents the velocity of particle i of generation t, p i It is called the local optimal solution, p g represents the global optimal solution, represents the velocity of particle i in the t+1th generation; Among them, the particle performs Levy flight, and the formula for updating the position of the next round of particles is: Among them, ⊕ is point-to-point multiplication, a represents the step size control amount, levy(λ) is the random search path, μ and v are normal distributions, and β is a constant.

2. A system based on the wireless sensor network node clustering method of Levy Flight according to claim 1, characterized in that: include: The particle swarm setting module is configured to: set a particle swarm in a target area and assign a random initial velocity and initial position to each particle; The particle swarm optimization algorithm module is configured to: determine the initial positions of particles of local optimal solutions and global optimal solutions by combining the random initial speed and initial position assigned to each particle and the fitness function; The particle swarm searches the target area according to the motion trajectory described by the particle swarm optimization algorithm based on Levy flight. Based on the initial positions of the particles of the local optimal solution and the global optimal solution, the speed and position of each particle in the next round are continuously updated in combination with the fitness function to obtain the positions of the particles of the local optimal solution and the overall optimal solution in each round. The network node clustering module is configured to: determine whether the number of updates has exceeded the set threshold. If so, the particles perform Levy flight and update the positions of the next round of particles. Otherwise, determine whether the particle positions converge. If so, select the node coordinates of a set number of cluster heads. Otherwise, continue searching the target area.

3. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps in the wireless sensor network node clustering method based on Levy flight as claimed in claim 1 are implemented.

4. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the steps in the wireless sensor network node clustering method based on Levy flight as claimed in claim 1 are implemented.