Double-distance-factor energy perception clustering method based on wireless sensor network

By adopting the dual-distance factor energy-aware clustering method in wireless sensor networks, evaluating node energy and density, and dynamically selecting cluster heads, the problem of limited sensor node energy and single cluster head selection factor is solved, and efficient energy management and Network stability is improved.

CN118574191APending Publication Date: 2024-08-30XINJIANG UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410793043.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-08-30

AI Technical Summary

Technical Problem

Sensor nodes in wireless sensor networks have limited energy and are difficult to replace or charge, resulting in high node energy consumption and short service life. Existing clustering routing protocols have a single factor in the cluster head selection process, which may cause cycle freezing, affecting network stability. .

Method used

The dual-distance factor energy-aware clustering method is adopted to dynamically adjust the election threshold by evaluating the initial energy, residual energy and sparse density of nodes, and select appropriate cluster head nodes to reduce network energy consumption and extend node service life.

Benefits of technology

It achieves efficient cluster formation in wireless sensor networks, reduces energy consumption, improves energy utilization, extends node service life, avoids cycle freezing, and improves network stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118574191A
    Figure CN118574191A
Patent Text Reader

Abstract

The invention discloses a double-distance factor energy perception clustering method based on a wireless sensor network, and mainly relates to the field of wireless sensor networks. Comprising the following steps: S1, evaluating the state of a node, and setting a proper threshold value; s2, changing the random number; s3, the changed random number is compared with a threshold value of the node, and if the changed random number is smaller than the threshold value, the node is selected as a cluster head; s4, when all non-cluster head nodes become one member in a certain cluster, the network enters a data transmission stage, the cluster head allocates time slots for members of the cluster according to a time division multiple access scheduling mechanism, and the nodes perform data transmission in the time slots; s5, after the cluster head node receives the data of all the member nodes, data fusion processing is carried out, and then integrated information is sent to the base station; according to the method, efficient clusters can be formed, energy consumption during network operation is reduced, the energy utilization rate is improved, and the service life of nodes is prolonged.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of wireless sensor networks, in particular to a dual-distance factor energy-aware clustering method based on wireless sensor networks. Background Art

[0002] The agricultural Internet of Things realizes the intelligence, automation and informatization of the agricultural production process through technical means such as sensors, wireless communications and cloud computing. It can monitor and control farmland, crops and agricultural environment in real time, and provide precise agricultural management and decision-making support. It mainly deploys low-cost sensor nodes at monitoring points to record and monitor environmental conditions, and the nodes access the Internet with the help of base stations and transmit information to the cloud for data analysis. The core of the agricultural Internet of Things is the wireless sensor network. Through the sensors arranged in the detection area, it can collect information such as soil moisture, temperature, light intensity, meteorological data, etc. in real time. At the same time, it can also monitor the growth status of crops, pests and diseases, and carry out farmland irrigation.

[0003] Wireless sensor networks can continuously monitor the environment for a long time and have self-organization, self-configuration, self-diagnosis, and self-repair capabilities, which greatly reduces the dependence on human resources. However, there are also some shortcomings and challenges. Usually, sensor nodes are energy-limited, and it is difficult to replace or recharge batteries after deployment. In addition, environmental factors and labor costs will affect the maintenance of sensors. When the node energy is exhausted, some areas or objects will not be monitored and data will be missing. Therefore, reducing energy consumption during network operation and improving energy utilization to extend the service life of nodes have always been urgent issues that wireless sensor networks need to solve.

[0004] Cluster routing protocol is a method for managing and optimizing wireless sensor networks. It is also one of the mainstream methods for reducing data transmission energy consumption. It has been widely adopted by many scholars so far. Cluster routing protocol can not only effectively reduce the communication distance between nodes, reduce energy consumption, and improve the reliability and stability of the network, but also has high flexibility and scalability, and can be appropriately adjusted and optimized according to different application scenarios. The existing cluster routing protocol divides the network into multiple clusters, each of which contains a cluster head node that completes data transmission in the upper layer of the network, and several ordinary nodes in the lower layer of the network. The member nodes in the cluster obtain relevant sensor information in the environment according to the needs of the upper layer users, and send this information to the cluster head node of the cluster. After eliminating redundant and abnormal data, the cluster head node forwards the data to the terminal node. However, the existing cluster routing protocol considers relatively simple factors in the cluster head selection process, and even after introducing these factors, the cycle freeze phenomenon may occur. Summary of the invention

[0005] The purpose of the present invention is to solve the problems existing in the prior art and to provide a dual distance factor energy-aware clustering method based on wireless sensor networks, which can form efficient clusters, reduce energy consumption during network operation, improve energy utilization, and extend the service life of nodes.

[0006] In order to achieve the above object, the present invention is implemented through the following technical solutions:

[0007] A dual distance factor energy-aware clustering method based on a wireless sensor network comprises the following steps:

[0008] S1. Evaluate the status of the node and set appropriate thresholds for the node, where the nodes are divided into ordinary nodes, intermediate nodes and advanced nodes;

[0009] S2. Change the random number to reduce the randomness in the election process. The calculation method is as follows:

[0010]

[0011] Among them, Rn is the random number generated by the node, and dead is the number of dead nodes;

[0012] S3. Compare the changed random number with the node's threshold. If the changed random number is less than the threshold, the node is elected as the cluster head. When the node successfully runs for cluster head, it broadcasts its status to other nodes in the network. The sensor node that is not elected as the cluster head will select the cluster head with the smallest communication energy to determine the cluster to which it belongs.

[0013] S4. When all non-cluster head nodes become a member of a cluster, the network enters the data transmission phase. The cluster head allocates time slots to the members of the cluster according to the time division multiple access scheduling mechanism, and the nodes perform data transmission in their time slots.

[0014] S5. After receiving the data from all member nodes, the cluster head node performs data fusion processing and then sends the integrated information to the base station.

[0015] Preferably, in step S1, the initial energy of the node is calculated as follows:

[0016]

[0017] Among them, the proportion of advanced nodes in the entire network is a, and the initial energy of advanced nodes is ɑ times that of ordinary nodes; the proportion of intermediate nodes is b, and the initial energy of intermediate nodes is β times that of ordinary nodes; P nrm is the weighted election probability of ordinary nodes, P int is the weighted election probability of the intermediate node, P adv is the weighted election probability of the senior node, P optis the optimal cluster head probability.

[0018] Preferably, in step S1, the remaining energy of the node is calculated as follows:

[0019]

[0020] Among them, P1 represents the energy factor of the node, E current (i) is the residual energy of node i, E max (r) is the maximum remaining energy among the surviving nodes in the current round.

[0021] Preferably, in step S1, the distance between the node and the base station is calculated as follows:

[0022]

[0023] Among them, P2 is the distance factor of the node. The smaller the P2 value of the node, the greater the probability of the node being elected as the cluster head; Dis_bs is the distance from node i to the base station; Dis_bs max (r) is the maximum distance from the surviving node to the base station in the current round.

[0024] Preferably, in step S1, the node sparseness is calculated as follows:

[0025]

[0026] Among them, P3 is a parameter for evaluating node density. The smaller the P3 value, the greater the probability of being elected as the cluster head; Dis_node is the average distance from node i to other surviving nodes; Dis_node max is the ratio of the maximum average distance between the current round node and the remaining nodes;

[0027]

[0028] Among them, n is the total number of nodes, alive is the number of surviving nodes, and D is the Euclidean distance between node i and node j.

[0029] Preferably, in step S1, the evaluation function is as follows:

[0030] eval(i)=ω1·P1(i)+ω2·(1-P2(i))+ω3·(1-P3(i))

[0031] ω1+ω2+ω3=1

[0032] Among them, ω1 is the weight of the energy factor, ω2 is the weight of the distance factor, and ω3 is the weight of the node density; the larger the value of eval, the better the node state, and therefore the greater the probability of becoming a cluster head.

[0033] Preferably, in step S1, the improved evaluation function is as follows:

[0034]

[0035] Among them, r s is the number of consecutive rounds in which the node fails to become a cluster head.

[0036] Preferably, in step S1, the node threshold calculation method is as follows:

[0037]

[0038] Among them, N nrm is a common node, N int is an intermediate node, N adv is a high-level node; G1 is a set of ordinary nodes that have not become cluster heads in the previous rounds, G2 is a set of intermediate nodes that have not become cluster heads in the previous rounds, and G3 is a set of high-level nodes that have not become cluster heads in the previous rounds.

[0039] Compared with the prior art, the beneficial effects of the present invention are:

[0040] The present invention proposes a dual-distance factor energy-aware clustering routing protocol for smart agriculture scenarios. In order to optimize the energy consumption of nodes in the network, the present invention implements a dynamic cluster head rotation strategy. During the operation of the network, by continuously collecting node information, evaluating the energy status of the nodes, and dynamically adjusting the election threshold based on these data, an efficient cluster is formed, which can reduce the energy consumption during network operation, improve energy utilization, and extend the service life of the nodes. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 It is a flow chart of the present invention. DETAILED DESCRIPTION

[0042] The present invention will be further described below in conjunction with specific embodiments. It should be understood that these embodiments are only used to illustrate the present invention and are not intended to limit the scope of the present invention. In addition, it should be understood that after reading the content taught by the present invention, those skilled in the art can make various changes or modifications to the present invention, and these equivalent forms fall within the scope limited by the application equally.

[0043] Example: As attached Figure 1As shown, the present invention is a dual distance factor energy-aware clustering method based on wireless sensor networks, which is applicable to heterogeneous wireless sensor networks. In the network, nodes are divided into three levels according to the different energies they carry: ordinary nodes, intermediate nodes and advanced nodes. The proportion of advanced nodes in the entire network is a, and their initial energy is ɑ times that of ordinary nodes; the proportion of intermediate nodes is b, and their initial energy is β times that of ordinary nodes. Non-cluster head nodes transmit data to cluster heads, and then the cluster heads complete data fusion and forward it to the base station. When all cluster heads complete the data transmission step, it is called a round.

[0044] The specific steps include:

[0045] S1. Evaluate the status of the node and set an appropriate threshold for the node.

[0046] The node status and thresholds are calculated as follows:

[0047] ①. Initial energy: The initial energy of nodes is heterogeneous, which is crucial to the cluster head election process. In order to ensure that nodes with higher energy have a greater chance of becoming cluster heads, the present invention assigns different weighted election probabilities to nodes with different initial energies, and the calculation method is as follows:

[0048]

[0049] Among them, P nrm is the weighted election probability of ordinary nodes, P int is the weighted election probability of the intermediate node, P adv is the weighted election probability of the senior node, P opt is the optimal cluster head probability.

[0050] ②. Residual energy: The residual energy of the node is also an important factor.

[0051] When the energy of the cluster head is too low, data may be lost when transmitted to the base station, thus affecting the reliability and durability of the entire network. Therefore, in each round of election, the present invention checks the residual energy of the candidate node. P1 represents the energy factor of the node, and the calculation method is shown in (4). A higher value of P1 is more conducive to the candidate node being elected as the cluster head.

[0052]

[0053] Among them, E current (i) is the residual energy of node i, E max (r) is the maximum remaining energy among the surviving nodes in the current round.

[0054] ③. Distance between nodes and base stations: Distance is one of the main factors affecting energy consumption. In order to effectively reduce the energy consumption of cluster head nodes, the present invention will give priority to nodes that are closer to the base station when electing cluster heads. P2 is the distance factor of the node, and the calculation method is as follows. The smaller the P2 value of the node, the greater the probability of being elected as the cluster head.

[0055]

[0056] Where Dis_bs is the distance from node i to the base station, Dis_bs max (r) is the maximum distance from the surviving node to the base station in the current round.

[0057] ④. Node density: In addition to the distance between the node and the base station, the relative position relationship between the nodes also needs to be considered. In order to comprehensively evaluate the relationship between nodes, the present invention introduces an indicator to measure node density, that is, the average distance between the node and other nodes in the network. This indicator helps to identify key nodes in the network, which are more suitable as cluster heads due to their location advantages. P3 is a parameter for evaluating node density, and its calculation formula is shown in (6). The smaller the P3 value, the greater the probability that the node is elected as a cluster head.

[0058]

[0059] In (6), Dis_node is the average distance from node i to other surviving nodes, and the calculation formula is shown in (7). max It is the ratio of the maximum average distance between the node in the current round and the remaining nodes.

[0060]

[0061] Among them, n is the total number of nodes, alive is the number of surviving nodes, and D is the Euclidean distance between node i and node j.

[0062] ⑤. Evaluation function: This invention introduces an evaluation function to measure the state quality of the node. Formula (8) describes the calculation method of this evaluation function. In this function, the larger the value of eval, the better the node state, and therefore the greater the probability of becoming a cluster head.

[0063] eval(i)=ω1·P1(i)+ω2·(1-P2(i))+ω3·(1-P3(i)) (8)

[0064] ω1+ω2+ω3=1 (9)

[0065] Among them, ω1, ω2, and ω3 are the weights of energy factor, distance factor, and node density, respectively. The sum of the weight factors of each parameter is 1 as shown in (9).

[0066] In order to optimize performance and prevent stagnation in network operation, the present invention improves the evaluation function and introduces a new parameter to record the number of rounds in which the node has not become a cluster head. This parameter helps to ensure that nodes with sufficient energy but long-term election failures will receive higher priority in future elections. The calculation method is shown in the following formula:

[0067]

[0068] In (10), the three lines of formulas from top to bottom are the improved evaluation functions of common, intermediate and advanced nodes. s is the number of consecutive rounds in which the node fails to become a cluster head.

[0069] ⑥Threshold calculation:

[0070] Combine the above parameters and the types of nodes to formulate the threshold for cluster head selection. The threshold calculation method for each type of node is as follows. nrm is a common node, N int is an intermediate node, N adv It is an advanced node.

[0071]

[0072] Among them, G1, G2, and G3 are the node sets of common nodes, intermediate nodes, and advanced nodes that have not become cluster heads in the previous rounds.

[0073] S2. For the overall performance of the network and fairness of nodes, the present invention changes the random number to reduce the randomness in the election process. The calculation method is as follows:

[0074]

[0075] Among them, Rn is the random number generated by the node, and dead is the number of dead nodes.

[0076] S3. Compare the changed random number with the threshold of the node. If the changed random number is less than the threshold, the node is elected as the cluster head.

[0077] When a node successfully runs for cluster head, it broadcasts its status to other nodes in the network.

[0078] The sensor node that is not elected as the cluster head will select the cluster head with the smallest communication energy to determine the cluster to which it belongs.

[0079] S4. When all non-cluster head nodes become a member of a cluster, the network enters the data transmission phase. The cluster head allocates time slots to the members of the cluster according to the time division multiple access (TDMA) scheduling mechanism, and the nodes transmit data in their time slots.

[0080] S5. After receiving the data from all member nodes, the cluster head node performs data fusion processing and then sends the integrated information to the base station. In the routing strategy proposed in the present invention, multi-hop communication is not included. All cluster head nodes send data directly to the base station instead of through other cluster head nodes.

Claims

1. A dual distance factor energy-aware clustering method based on wireless sensor networks. It is characterized in that Includes steps: S1. Evaluate the status of the node and set appropriate thresholds for the node, where the nodes are divided into ordinary nodes, intermediate nodes and advanced nodes; S2. Change the random number to reduce the randomness in the election process. The calculation method is as follows: Among them, Rn is the random number generated by the node, and dead is the number of dead nodes; S3, compare the changed random number with the threshold of the node. If the changed random number is less than the threshold, the node is elected as the cluster head. When the node successfully runs for the cluster head, it will broadcast its status to other nodes in the network. The sensor node that is not elected as the cluster head will select the cluster head with the smallest communication energy to determine the cluster to which it belongs. S4. When all non-cluster head nodes become a member of a cluster, the network enters the data transmission phase. The cluster head allocates time slots to the members of the cluster according to the time division multiple access scheduling mechanism, and the nodes perform data transmission in their time slots. S5. After receiving the data from all member nodes, the cluster head node performs data fusion processing and then sends the integrated information to the base station.

2. According to claim 1, a dual distance factor energy-aware clustering method based on wireless sensor networks, It is characterized in that In step S1, the initial energy of the node is calculated as follows: Among them, the proportion of advanced nodes in the entire network is a, and the initial energy of advanced nodes is ɑ times that of ordinary nodes; the proportion of intermediate nodes is b, and the initial energy of intermediate nodes is β times that of ordinary nodes; P nrm is the weighted election probability of ordinary nodes, P int is the weighted election probability of the intermediate node, P adv is the weighted election probability of the senior node, P opt is the optimal cluster head probability.

3. According to claim 2, a dual distance factor energy-aware clustering method based on wireless sensor networks, It is characterized in that In step S1, the remaining energy of the node is calculated as follows: Among them, P 1 Represents the energy factor of the node, E current (i) is the residual energy of node i, E max (r) is the maximum remaining energy among the surviving nodes in the current round.

4. The dual distance factor energy-aware clustering method based on wireless sensor networks according to claim 3, It is characterized in that In step S1, the distance between the node and the base station is calculated as follows: Among them, P 2 is the distance factor of the node, and the P 2 The smaller the value, the greater the probability that the node will be elected as the cluster head; Dis_bs is the distance from node i to the base station; Dis_bs max (r) is the maximum distance from the surviving node to the base station in the current round.

5. The dual distance factor energy-aware clustering method based on wireless sensor networks according to claim 4, It is characterized in that In step S1, the node density is calculated as follows: Among them, P 3 To evaluate the node density parameter, P 3 The smaller the value, the greater the probability that the node will succeed in the cluster head election; Dis_node is the average distance from node i to other surviving nodes; Dis_node max is the ratio of the maximum average distance between the current round node and the remaining nodes; Among them, n is the total number of nodes, alive is the number of surviving nodes, and D is the Euclidean distance between node i and node j.

6. A dual distance factor energy-aware clustering method based on wireless sensor networks according to claim 5, It is characterized in that In step S1, the evaluation function is as follows: eval(i)=ω 1 ·P 1 (i)+ω 2 ·(1-P 2 (i))+ω 3 ·(1-P 3 (i)) oh 1 +oh 2 +oh 3 =1 Among them, ω 1 is the weight of the energy factor, ω 2 is the weight of the distance factor, ω 3 is the weight of node density; the larger the value of eval is, the better the node status is, and therefore the greater the probability of becoming a cluster head is.

7. The dual distance factor energy-aware clustering method based on wireless sensor networks according to claim 6, It is characterized in that In step S1, the improved evaluation function is as follows: Among them, r s is the number of consecutive rounds in which the node fails to become a cluster head.

8. The dual distance factor energy-aware clustering method based on wireless sensor networks according to claim 7, It is characterized in that In step S1, the threshold value of the node is calculated as follows: Among them, N nrm is a common node, N int is an intermediate node, N adv G is a high-level node; 1 is the set of common nodes that have not become cluster heads in the previous rounds, G 2 is the set of intermediate nodes that have not become cluster heads in the previous rounds, G 3 It is the set of nodes that have not become cluster heads in the previous rounds.