Wireless sensor network multi-target collaborative clustering method based on eagle algorithm

Optimizing the cluster head selection of wireless sensor networks through the Osprey algorithm solves the problems of energy holes and slow convergence speed, achieves more uniform energy distribution and more efficient communication, and extends the network life.

CN118695324APending Publication Date: 2024-09-24CHINA INFOMRAITON CONSULTING & DESIGNING INST CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410685117.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-30
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

Existing wireless sensor networks are prone to energy hole problems when selecting cluster heads, and clustering and clustering algorithms have slow convergence speeds, high computing resource consumption, and are difficult to adapt to dynamic environmental changes.

Method used

The multi-objective collaborative clustering method based on the Osprey algorithm is used to iteratively optimize the selection of cluster head nodes through the Osprey algorithm, and the Euclidean distance and fitness function are used to optimize cluster head selection and improve the cluster head rotation speed and energy distribution uniformity.

Benefits of technology

The cluster head rotation speed is increased, redundant data transmission is reduced, energy is distributed more evenly, network service life is extended, and communication overhead is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118695324A
    Figure CN118695324A
Patent Text Reader

Abstract

The invention discloses a multi-target collaborative clustering method for a wireless sensor network based on an eagle algorithm. The multi-target collaborative clustering method comprises the following steps: step 1, initializing a clustering environment of the wireless sensor network; 2, setting eagle algorithm parameters, creating an initial eagle population, and evaluating the initial eagle population; 3, evaluating and updating the positions of the eagles and the fish schools corresponding to the eagles in each iteration; step 4, judging whether the eagle and the prey are at the same position, if so, executing step 5, and if not, executing step 2; and step 5, setting a cluster head node of the wireless sensor network, and completing clustering. According to the method, the convergence speed is higher in the cluster head rotation process, communication between nodes is convenient to manage and coordinate, redundant data transmission is avoided, energy distribution is more uniform, energy efficiency is improved, and the service life of the network is prolonged.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of wireless communications, and in particular relates to a multi-target collaborative clustering method for wireless sensor networks based on an Osprey algorithm. Background Art

[0002] Wireless Sensor Networks (WSNs) are widely used in today's communication field, and energy conservation is an important issue that needs to be addressed in this field. In WSNs, clustering is essential for optimizing energy efficiency and network lifetime. In recent years, many clustering protocols have been proposed to extend network lifetime by saving energy. However, wireless sensor networks experience energy holes due to the selection of inappropriate cluster heads (CHs). Therefore, it is crucial to select appropriate clustering methods to coordinate communication between nodes in specific applications of wireless sensor networks. Summary of the invention

[0003] Purpose of the invention: The technical problem to be solved by the present invention is to provide a multi-target collaborative clustering method for wireless sensor networks based on the Osprey algorithm in view of the shortcomings of the prior art.

[0004] In order to solve the above technical problems, the present invention discloses a multi-target collaborative clustering method for wireless sensor networks based on the Osprey algorithm, comprising the following steps:

[0005] Step 1, initializing the clustering environment of the wireless sensor network;

[0006] Step 2, set the parameters of the osprey algorithm, create the initial osprey population, and evaluate the initial osprey population. Use the objective function of the estimated value to evaluate the quality of the candidate solution. During the iteration process, consider the best and worst values ​​and select the best and worst members;

[0007] Step 3, evaluate and update the position of the osprey and the fish school corresponding to the osprey in each iteration;

[0008] Step 4, determine whether the osprey and the prey are in the same position, if so, proceed to step 5, if not, go to step 2;

[0009] Step 5: Set the cluster head node of the wireless sensor network to complete clustering.

[0010] Furthermore, step 1 includes: forming clusters using distance parameters (Euclidean distance) between nodes in the wireless sensor network, and dividing randomly dispersed nodes in the wireless sensor network into clusters.

[0011] Further, step 2 includes:

[0012] Step 2-1, let the number of sensor nodes in the wireless sensor network be n, regard the osprey as a sensor node in the osprey population, set the number of nodes n and the number of iterations T of the osprey population, n ≥ 1, T ≥ 1, and calculate the fitness of each osprey;

[0013] Step 2-2, the osprey population matrix O is expressed as:

[0014]

[0015] Among them, O i and O i,j They represent the i-th osprey and the i-th osprey in the j-th dimension respectively, n and m represent the number of ospreys and the number of problem variables respectively. It can be understood as dividing into multiple layers to create a population, that is, the idea of ​​multiple objectives is adopted.

[0016] Step 2-3, randomly initialize the ospreys in the osprey population, the formula is as follows:

[0017] O i,j =LB j +r i,j ·(upb j -lob j )

[0018] i=1,2,…,n,j=1,2,…,m,

[0019] Among them, LB j represents the pilot bird of j dimension; r i,j Indicates a random value between 0 and 1, upb j and lob j They represent the upper and lower bounds of the j-th problem respectively;

[0020] In steps 2-4, the objective function generates a set of Osprey values ​​by evaluating the problem. The estimated value of the problem is represented by the vector in the following formula:

[0021]

[0022] Where F is a set of values ​​of the objective function, F i is the Osprey value of the objective function; the quality of the candidate solution is evaluated by the objective function of the estimated value; during the iteration process, the best and worst values ​​are considered to select the best and worst members.

[0023] Further, step 3 includes:

[0024] Step 3-1, calculate the number of fish for each osprey;

[0025] Step 3-2, the direction in which the osprey moves toward the school of fish determines the new position of the osprey in the search space, and updates the position of the osprey according to the result;

[0026] Step 3-3, after looping for n times, save the current best solution.

[0027] Further, step 3-1 includes: considering the position of the underwater fish school of each osprey in the search space and the positions of other ospreys in the search space, and the fish schools in the search space realize multi-target coordination, and calculating the number of fish schools for each osprey as shown in the following formula:

[0028] Fpos i = {O ω |ω∈{1,2,…,n}∩FH ω <FH i}∪{O best}

[0029] Among them, Fpos i O represents the school of fish corresponding to the osprey. best Representing the best osprey selected before, O ω represents the weight of the Osprey, FH ω represents the function value of the ωth osprey, FH i represents the function value of the i-th osprey.

[0030] Further, step 3-2 includes:

[0031] Step 3-2-1, the population update of the first stage of the osprey algorithm is based on modeling the osprey attacking the fish school, updating the osprey's position in the search space, and enhancing the osprey optimization algorithm's ability to identify and escape from local optima. The osprey attacks underwater fish by random positioning, and the osprey's new position in the search space is determined by the osprey's movement toward the fish school, as shown in the following formula:

[0032]

[0033]

[0034] in, represents the new position of the i-th osprey in the j-th dimension, ran i,j Represents a random number between 1 and 2, SF i,j represents the fish selected by the i-th osprey in the j-th dimension, R i,j represents the attraction of the i-th fish in the school to the j-th food source, y i,j represents the distance between the i-th fish in the school and the food source j;

[0035] Step 3-2-2, if the new value of the osprey position is better than the previous target value, replace the last position of the osprey using the following formula:

[0036]

[0037] in, represents the new position of the i-th osprey in the first stage, Represents the objective function value of the first stage.

[0038] Further, step 4 includes:

[0039] Step 4-1, the population update in the second stage of the osprey algorithm is modeled based on the natural behavior of ospreys. The position of ospreys in the search space changes due to carrying fish to a safe place to eat. Simulating the behavior of ospreys, the random position of each osprey in the population when fishing is calculated using the following formula:

[0040]

[0041] i=1,2,…,n; j=1,2,…,m; k=1,2,…,T

[0042]

[0043] in, represents the new position of the i-th osprey in the j-th dimension, and k represents the number of iterations;

[0044] Step 4-2, update the osprey's prior position according to the better value of the objective function derived from the following formula:

[0045]

[0046] in, represents the new position of the i-th osprey in the second stage, represents the objective function value of the second stage, SF i,j represents the fish selected by the i-th osprey in the j-th dimension;

[0047] The osprey's position in the search space changes due to carrying fish to a safe place to eat, which enhances the osprey algorithm's ability to exploit local search by calculating the random position of each osprey in the population to eat the caught fish during the design phase and the derived better value of the objective function to update the osprey's prior position.

[0048] Further, step 5 includes:

[0049] Step 5-1, using the prey node as the cluster head node, calculating the cumulative fitness function value, if the cumulative fitness function is maximized at this time, then using the prey node as the cluster head node, otherwise go to step 2;

[0050] Step 5-2: If the remaining energy after the prey node acts as the cluster head node is unavailable, go to step 5-1 to continue; otherwise, the entire Osprey algorithm process ends and clustering is completed.

[0051] Furthermore, the calculation of the remaining energy in step 5-2 is as follows:

[0052]

[0053] RER stands for residual energy. avail Indicates available energy, Energy intial represents the initial energy.

[0054] Further, step 5-1 includes: after selecting the prey node to serve as the cluster head node, calculating the cumulative fitness function value, if the value can reach the maximum at this time, continue to use the same node as the cluster head node, and the distance parameter is based on the sensor node O i The proximity between the sink node and the optimal node is selected as the cluster head, which is obtained using the Euclidean distance. The distance is calculated using the following formula:

[0055]

[0056] Among them, sink represents the sink node, O i represents the sensor node, dis is the function for calculating the distance;

[0057] The fitness of the osprey at its current location is O i(fitness) It can be calculated by the following formula:

[0058] O i(fitness) =0.5×(1-RER(O i )+0.5×(1-dis(O i ))

[0059] The position of the osprey is calculated in each iteration and checked with the previous value of the objective function, if the osprey reaches the best position in the current iteration compared to the previous iteration, then the node is considered as the cluster head in the corresponding iteration.

[0060] Beneficial effect: The multi-objective collaborative clustering method for wireless sensor networks based on the Osprey algorithm provided in the present application has a faster convergence speed during the cluster head rotation process compared with the traditional clustering method, is convenient for managing and coordinating communications between nodes, avoids redundant data transmission, and makes energy distribution more even, thereby improving energy efficiency and extending the service life of the network. BRIEF DESCRIPTION OF THE DRAWINGS

[0061] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments, and the above content or other advantages of the present invention will become more clear.

[0062] Figure 1A schematic diagram of the structure of a wireless sensor network in a multi-target collaborative clustering method for wireless sensor networks based on an Osprey algorithm provided in an embodiment of the present application.

[0063] Figure 2 A flowchart of a multi-target collaborative clustering method for wireless sensor networks based on the Osprey algorithm is provided in an embodiment of the present application.

[0064] Figure 3 Another flow chart of a multi-target collaborative clustering method for wireless sensor networks based on the Osprey algorithm provided in an embodiment of the present application.

[0065] Figure 4 A performance comparison between a multi-target collaborative clustering method for wireless sensor networks based on the Osprey algorithm provided in an embodiment of the present application and the prior art is provided.

[0066] Figure 5 The energy consumption of a wireless sensor network multi-objective collaborative clustering method based on the Osprey algorithm provided in an embodiment of the present application is compared with that of the prior art.

[0067] Figure 6 A multi-target collaborative clustering method for wireless sensor networks based on the Osprey algorithm provided in an embodiment of the present application is compared with the communication overhead of the prior art.

[0068] Figure 7 A multi-target collaborative clustering method for wireless sensor networks based on the Osprey algorithm provided in an embodiment of the present application and a calculation result of an average data packet sent to a sink in the prior art. DETAILED DESCRIPTION

[0069] The embodiments of the present invention will be described below in conjunction with the accompanying drawings.

[0070] In the process of implementing the present invention, the inventors found that there are at least the following problems in the prior art:

[0071] 1. Since nodes in wireless sensor networks are usually powered by batteries, energy management is critical;

[0072] 2. Many optimized clustering algorithms may require more iterations to find the optimal or approximately optimal cluster head in specific applications, which will lead to slow convergence of the algorithm and is not conducive to real-time or dynamically changing environments;

[0073] 3. Some optimized clustering algorithms require high computing resources during execution, which may not be suitable for resource-constrained sensor nodes, especially when a large number of nodes are required to participate in the calculation, which will increase the communication overhead of the wireless sensor network and further affect the energy efficiency;

[0074] 4. The environment of wireless sensor networks may change at any time, such as node movement, energy consumption, communication interference, etc. If the optimized clustering algorithm cannot adapt to these changes, it may affect the performance and stability of the wireless sensor network.

[0075] The embodiment of the present application provides a multi-objective collaborative clustering method for wireless sensor networks based on the Osprey algorithm. Compared with the traditional clustering method, the convergence speed is faster during the cluster head rotation process, it is convenient to manage and coordinate the communication between nodes, avoids redundant data transmission, and makes the energy distribution more uniform, thereby improving energy efficiency and extending the service life of the network.

[0076] like Figure 1 As shown, the wireless sensor network is clustered, and each cluster includes a cluster head (CH) and a cluster member (CM). The CM sends information to the CH, and the CM sends the information in the cluster to the base station (BS).

[0077] The present application embodiment discloses a multi-target collaborative clustering method for wireless sensor networks based on the Osprey algorithm. Figure 2 As shown, the following steps are included:

[0078] Step 1, initializing the clustering environment of the wireless sensor network, including: using the distance parameter (Euclidean distance) between nodes in the wireless sensor network to form clusters, and dividing the randomly dispersed nodes in the wireless sensor network into clusters.

[0079] Step 2, set the parameters of the Osprey algorithm, create the initial Osprey population, and evaluate the initial Osprey population. Use the objective function of the estimated value to evaluate the quality of the candidate solution. During the iteration process, consider the best and worst values ​​and select the best and worst members, including:

[0080] Step 2-1, let the number of sensor nodes in the wireless sensor network be n, regard the osprey as a sensor node in the osprey population, set the number of nodes n and the number of iterations T of the osprey population, n ≥ 1, T ≥ 1, and calculate the fitness of each osprey;

[0081] Step 2-2, the osprey population matrix O is expressed as:

[0082]

[0083] Among them, O i and O i,j Denote the i-th osprey and the i-th osprey in the j-th dimension, respectively. n and m denote the number of ospreys and the number of problem variables, respectively. The population is created by dividing into multiple layers to achieve multi-objective coordination.

[0084] Step 2-3, randomly initialize the ospreys in the osprey population, the formula is as follows:

[0085] O i,j =LB j +r i,j ·(upb j -lob j )

[0086] i=1,2,…,n,j=1,2,…,m,

[0087] Among them, LB j represents the pilot bird of j dimension; r i,j Indicates a random value between 0 and 1, upb j and lob j They represent the upper and lower bounds of the j-th problem respectively;

[0088] In steps 2-4, the objective function generates a set of Osprey values ​​by evaluating the problem. The estimated value of the problem is represented by the vector in the following formula:

[0089]

[0090] Where F is a set of values ​​of the objective function, F i is the Osprey value of the objective function; the quality of the candidate solution is evaluated by the objective function of the estimated value; during the iteration process, the best and worst values ​​are considered to select the best and worst members.

[0091] Step 3, each iteration evaluates and updates the position of the osprey and the fish school corresponding to the osprey, including:

[0092] Step 3-1, calculate the number of fish for each osprey;

[0093] Considering the position of each osprey's underwater fish swarm in the search space and the positions of other ospreys in the search space, and the fish swarms in the search space realize multi-target coordination, the number of fish swarms for each osprey is calculated as shown in the following formula:

[0094] Fpos i = {O ω |ω∈{1,2,…,n}∩FH ω <FH i}∪{O best}

[0095] Among them, Fpos i O represents the school of fish corresponding to the osprey. best Representing the best osprey selected before, O ω represents the weight of the Osprey, FH ω represents the function value of the ωth osprey, FH irepresents the function value of the i-th osprey.

[0096] Step 3-2, the direction in which the osprey moves toward the school of fish determines the new position of the osprey in the search space, and updates the position of the osprey according to the result, including:

[0097] Step 3-2-1, the population update in the first stage of the osprey algorithm is based on modeling the osprey attacking the fish school and updating the position of the osprey in the search space. The osprey attacks the underwater fish by random positioning. The new position of the osprey in the search space is determined by the osprey moving towards the fish school, as shown in the following formula:

[0098]

[0099]

[0100] in, represents the new position of the i-th osprey in the j-th dimension, ran i,j Represents a random number between 1 and 2, SF i,j represents the fish selected by the i-th osprey in the j-th dimension, R i,j represents the attraction of the i-th fish in the school to the j-th food source, y i,j represents the distance between the i-th fish in the school and the food source j;

[0101] Step 3-2-2, if the new value of the osprey position is better than the previous target value, replace the last position of the osprey using the following formula:

[0102]

[0103] in, represents the new position of the i-th osprey in the first stage, Represents the objective function value of the first stage.

[0104] Step 3-3, after looping for n times, save the current best solution.

[0105] Step 4, determining whether the osprey and the prey are in the same position, if so, proceeding to step 5, if not, proceeding to step 2, including:

[0106] Step 4-1, the population update in the second stage of the osprey algorithm is modeled based on the natural behavior of ospreys. The position of ospreys in the search space changes due to carrying fish to a safe place to eat. Simulating the behavior of ospreys, the random position of each osprey in the population when fishing is calculated using the following formula:

[0107]

[0108] i=1,2,…,n; j=1,2,…,m; k=1,2,…,T

[0109]

[0110] in, represents the new position of the i-th osprey in the j-th dimension, and k represents the number of iterations;

[0111] Step 4-2, update the osprey's prior position according to the better value of the objective function derived from the following formula:

[0112]

[0113] in, represents the new position of the i-th osprey in the second stage, represents the objective function value of the second stage, SF i,j represents the fish selected by the i-th osprey in the j-th dimension;

[0114] The osprey's position in the search space changes due to carrying fish to a safe place to eat, which enhances the osprey algorithm's ability to exploit local search by calculating the random position of each osprey in the population to eat the caught fish during the design phase and the derived better value of the objective function to update the osprey's prior position.

[0115] Step 5, setting the cluster head node of the wireless sensor network to complete clustering, including:

[0116] Step 5-1, using the prey node as the cluster head node, calculating the cumulative fitness function value, if the cumulative fitness function is maximized at this time, then using the prey node as the cluster head node, otherwise go to step 2, including:

[0117] After selecting the prey node as the cluster head node, the cumulative fitness function value is calculated. If the value can reach the maximum at this time, the same node will continue to be used as the cluster head node. The distance parameter is based on the sensor node O. i The proximity between the sink node and the optimal node is selected as the cluster head, which is obtained using the Euclidean distance. The distance is calculated using the following formula:

[0118]

[0119] Among them, sink represents the sink node, O i represents the sensor node, dis is the function for calculating the distance;

[0120] The fitness of the osprey at its current location is O i(fitness) It can be calculated by the following formula:

[0121] O i(fitness) =0.5×(1-RER(Oi )+0.5×(1-dis(O i ))

[0122] The position of the osprey is calculated in each iteration and checked with the previous value of the objective function, if the osprey reaches the best position in the current iteration compared to the previous iteration, then the node is considered as the cluster head in the corresponding iteration.

[0123] Step 5-2: If the remaining energy after the prey node acts as the cluster head node is unavailable, go to step 5-1 to continue; otherwise, the entire Osprey algorithm process ends and clustering is completed.

[0124] The remaining energy is calculated as follows:

[0125]

[0126] RER stands for residual energy. avail Indicates available energy, Energy intial represents the initial energy.

[0127] Figure 3 A detailed flow chart of a multi-target collaborative clustering method for wireless sensor networks based on the Osprey algorithm provided in an embodiment of the present application. Figure 4The comparison of the number of active nodes in several networks is shown, and experiments and analysis are performed under network iteration. In terms of active nodes, the performance of the multi-objective collaborative clustering and clustering of wireless sensor networks based on the Osprey algorithm (abbreviated as SWARAM, Sensor Web Agent-based Routing Algorithmusing Mobile agents, energy-saving cluster head selection) method proposed in the embodiment of the present application is analyzed, and it is compared with the benchmark technologies of EECHS-ARO (Energy-Efficient Cluster Head Selection using Artificial Rabbits Optimization, energy-efficient cluster head selection mechanism based on artificial rabbit algorithm), HSWO (Hybrid Sensing Window Optimization, hierarchical semantic network organization) and EECHIGWO (Energy-Efficient Cluster Head selection In Grey Wolf Optimization, energy-efficient cluster head selection method based on grey wolf algorithm) . In the network with about 3000 iterations, the active nodes of EECHS-ARO, HSWO, EECHIGWO and SWARAM are 150, 200, 300 and 300 respectively. Furthermore, we observe that the count of active nodes has reached zero when the network runs for 4000 times. The number of active nodes decreases significantly as the number of network rounds increases. However, the proposed SWARAM method performs better in terms of active nodes than the EECHS-ARO technique when compared to the HSWO and EECHIGWO techniques.

[0128] The sensor node consumes energy when transmitting data to the destination node. Figure 5 The total energy consumption of the nodes in the network rounds is shown. The energy consumption of the proposed SWARAM method is studied and compared with the existing EECHS-ARO, HSWO and EECHIGWO methods. It can be seen that the energy consumption of EECHS-ARO, HSWO, EECHIGWO and SWARAM is 0.59J, 0.54J, 0.45J and 0.35J respectively. Compared with EECHS-ARO, HSWO and EECHIGWO methods, the proposed SWARAM protocol reduces the energy consumption by 24%, 20% and 10% in 4000 rounds of the network. During the CH selection process, the SWARAM technique has a shorter convergence time. This is due to the fact that SWARAM considers the RER and Distance parameters to calculate the fitness function. It is obvious that when the number of cycles of the network increases, the energy usage also increases.

[0129] Based on the existing EECHS-ARO, HSWO and EECHIGWO methods, the communication overhead of the proposed method is analyzed. The communication overhead is measured by the number of different nodes in a fixed network area. Figure 6 The analysis of the communication overhead of several network nodes is presented. Considering 300 nodes in the network, the average communication overhead of EECHS-ARO, HSWO, EECHIGWO, and SWARAM is 14%, 11.5%, 10.5%, and 7.5%, respectively. The overall average communication overhead of the SWARAM approach is reduced by 6.5%, 4%, and 3% compared to the EECHS-ARO, HSWO, and EECHIGWO techniques, respectively. Compared to existing optimization techniques, the proposed SWARAM approach reduces the communication overhead caused by selecting CH nodes in the cluster and quickly rotates CH nodes. It is worth noting that the communication overhead of the EECHS-ARO, HSWO, EECHIGWO, and SWARAM approaches increases significantly with the increase in node size.

[0130] Furthermore, the performance of the proposed method in terms of average packet delivery at the receiving node is analyzed based on the existing EECHS-ARO, HSWO and EECHIGWO methods, and the average packet delivery in a fixed network area is analyzed by adding network rounds. Figure 7 The calculation results of the average data packets sent to the sink for several network rounds are shown. The average number of data packets sent by EECHS-ARO, HSWO, EECHIGWO, and SWARAM in the 4000 rounds of the network is 79,000, 130,000, 147,000, and 157,000, respectively. Compared with the EECHS-ARO, HSWO, and EECHIGWO techniques, the overall average data packets sent to the sink in the SWARAM protocol are increased by 78%, 27%, and 10%, respectively. The proposed SWARAM protocol improves the speed of sending the average data packets to the sink by selecting a CH node in the cluster. Compared with other optimization algorithms, it reduces the packet loss during network transmission. It is worth noting that the average data packets sent to the sink by SWARAM are effective regardless of the network density compared with EECHS-ARO, HSWO, and EECHIGWO.

[0131] In a specific implementation, the present application provides a computer storage medium and a corresponding data processing unit, wherein the computer storage medium can store a computer program, and when the computer program is executed by the data processing unit, the invention content of a multi-target collaborative clustering method for wireless sensor networks based on an osprey algorithm provided by the present invention and some or all of the steps in each embodiment can be run. The storage medium can be a disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0132] Those skilled in the art can clearly understand that the technical solutions in the embodiments of the present invention can be implemented by means of computer programs and their corresponding general hardware platforms. Based on this understanding, the technical solutions in the embodiments of the present invention are essentially or partly contributed to the prior art can be embodied in the form of computer programs, i.e., software products, which can be stored in a storage medium and include several instructions for enabling a device including a data processing unit (which can be a personal computer, a server, a single-chip microcomputer, a MUU or a network device, etc.) to execute the methods described in various embodiments of the present invention or certain parts of the embodiments.

[0133] The present invention provides a multi-target collaborative clustering method for wireless sensor networks based on the Osprey algorithm. There are many methods and ways to implement the technical solution. The above is only a preferred implementation of the present invention. It should be pointed out that for ordinary technicians in this technical field, without departing from the principle of the present invention, several improvements and modifications can be made, and these improvements and modifications should also be regarded as the protection scope of the present invention. All components not specified in this embodiment can be implemented by existing technologies.

Claims

1. A multi-target collaborative clustering method for wireless sensor networks based on the Osprey algorithm, characterized in that: The steps include: Step 1, initializing the clustering environment of the wireless sensor network; Step 2, set the parameters of the osprey algorithm, create the initial osprey population, and evaluate the initial osprey population. Use the objective function of the estimated value to evaluate the quality of the candidate solution. During the iteration process, consider the best and worst values ​​and select the best and worst members; Step 3, evaluate and update the position of the osprey and the fish school corresponding to the osprey in each iteration; Step 4, determine whether the osprey and the prey are in the same position, if so, proceed to step 5, if not, go to step 2; Step 5: Set the cluster head node of the wireless sensor network to complete clustering.

2. According to claim 1, a multi-target collaborative clustering method for wireless sensor networks based on the Osprey algorithm is characterized in that: Step 1 includes: forming clusters using distance parameters between nodes in the wireless sensor network, and dividing randomly dispersed nodes in the wireless sensor network into clusters.

3. The multi-target collaborative clustering method for wireless sensor networks based on the Osprey algorithm according to claim 2 is characterized in that: Step 2 includes: Step 2-1, let the number of sensor nodes in the wireless sensor network be n, regard the osprey as a sensor node in the osprey population, set the number of nodes n and the number of iterations T of the osprey population, n ≥ 1, T ≥ 1, and calculate the fitness of each osprey; Step 2-2, the osprey population matrix O is expressed as: Among them, O i and O i,j Denote the i-th osprey and the i-th osprey in the j-th dimension, respectively. n and m denote the number of ospreys and the number of problem variables, respectively. The population is created by dividing into multiple layers to achieve multi-objective coordination. Step 2-3, randomly initialize the ospreys in the osprey population, the formula is as follows: O i,j =LB j +r i,j ·(upb j -lob j ) i=1,2,…,n,j=1,2,…,m, Among them, LB j represents the pilot bird of j dimension; r i,j Indicates a random value between 0 and 1, upb j and lob j They represent the upper and lower bounds of the j-th problem respectively; In steps 2-4, the objective function generates a set of Osprey values ​​by evaluating the problem. The estimated value of the problem is represented by the vector in the following formula: Where F is a set of values ​​of the objective function, F i is the Osprey value of the objective function; the quality of the candidate solution is evaluated by the objective function of the estimated value; during the iteration process, the best and worst values ​​are considered to select the best and worst members.

4. The multi-target collaborative clustering method for wireless sensor networks based on the Osprey algorithm according to claim 3 is characterized in that: Step 3 includes: Step 3-1, calculate the number of fish for each osprey; Step 3-2, the direction in which the osprey moves toward the school of fish determines the new position of the osprey in the search space, and updates the position of the osprey according to the result; Step 3-3, after looping for n times, save the current best solution.

5. The multi-target collaborative clustering method for wireless sensor networks based on the Osprey algorithm according to claim 4 is characterized in that: Step 3-1 includes: considering the position of each osprey's underwater fish school in the search space and the positions of other ospreys in the search space, and at the same time, the fish schools in the search space realize multi-target coordination, and calculating the number of fish schools for each osprey as shown in the following formula: Fpos i ={O ω |ω∈{1,2,…,n}∩FH ω <FH i }∪{O best } Among them, Fpos i O represents the school of fish corresponding to the osprey. best Representing the best osprey selected before, O ω represents the weight of the Osprey, FH ω represents the function value of the ωth osprey, FH i represents the function value of the i-th osprey.

6. The multi-target collaborative clustering method for wireless sensor networks based on the Osprey algorithm according to claim 5 is characterized in that: Step 3-2 includes: Step 3-2-1, the population update in the first stage of the osprey algorithm is based on modeling the osprey attacking the fish school and updating the position of the osprey in the search space. The osprey attacks the underwater fish by random positioning. The new position of the osprey in the search space is determined by the osprey moving towards the fish school, as shown in the following formula: in, represents the new position of the i-th osprey in the j-th dimension, ran i,j Represents a random number between 1 and 2, SF i,j represents the fish selected by the i-th osprey in the j-th dimension, R i,j represents the attraction of the i-th fish in the school to the j-th food source, y i,j represents the distance between the i-th fish in the school and the food source j; Step 3-2-2, if the new value of the osprey position is better than the previous target value, replace the last position of the osprey using the following formula: in, represents the new position of the i-th osprey in the first stage, Represents the objective function value of the first stage.

7. The multi-target collaborative clustering method for wireless sensor networks based on the Osprey algorithm according to claim 6 is characterized in that: Step 4 includes: Step 4-1, the population update in the second stage of the osprey algorithm is modeled based on the natural behavior of ospreys. The position of ospreys in the search space changes due to carrying fish to a safe place to eat. Simulating the behavior of ospreys, the random position of each osprey in the population when fishing is calculated using the following formula: in, represents the new position of the i-th osprey in the j-th dimension, and k represents the number of iterations; Step 4-2, update the osprey's prior position according to the better value of the objective function derived from the following formula: in, represents the new position of the i-th osprey in the second stage, represents the objective function value of the second stage, SF i,j represents the fish selected by the i-th osprey in the j-th dimension.

8. The multi-target collaborative clustering method for wireless sensor networks based on the Osprey algorithm according to claim 7 is characterized in that: Step 5 includes: Step 5-1, using the prey node as the cluster head node, calculating the cumulative fitness function value, if the cumulative fitness function is maximized at this time, then using the prey node as the cluster head node, otherwise go to step 2; Step 5-2: If the remaining energy after the prey node acts as the cluster head node is unavailable, go to step 5-1 to continue; otherwise, the entire Osprey algorithm process ends and clustering is completed.

9. The multi-target collaborative clustering method for wireless sensor networks based on the Osprey algorithm according to claim 8 is characterized in that: The calculation of the remaining energy in step 5-2 is as follows: RER stands for residual energy. avail Indicates available energy, Energy intial represents the initial energy.

10. The multi-target collaborative clustering method for wireless sensor networks based on the Osprey algorithm according to claim 9, characterized in that: Step 5-1 includes: after selecting the prey node to serve as the cluster head node, calculating the cumulative fitness function value, if the cumulative fitness function value can reach the maximum at this time, continue to use the same node as the cluster head node, and the distance parameter is based on the sensor node O i The proximity between the sink node and the optimal node is selected as the cluster head, which is obtained using the Euclidean distance. The distance is calculated using the following formula: Among them, sink represents the sink node, O i represents the sensor node, dis is the function for calculating the distance; The fitness of the osprey at its current location is O i(fitness) It can be calculated by the following formula: THE i(fitness) =0.5×(1-RER(O i )+0.5×(1-dis(O i )) The position of the osprey is calculated in each iteration and checked with the previous value of the objective function, if the osprey reaches the best position in the current iteration compared to the previous iteration, then the node is considered as the cluster head in the corresponding iteration.

Citation Information

Patent Citations

  • Wireless sensor network clustering method based on improved gooseneck optimization algorithm

    CN117729518A