Background
The directional sensor such as video, infrared and ultrasonic sensors has the capability of collecting, transmitting and processing multimedia information such as data, images and videos. The visual monitoring of the sensor has the characteristics of convenience, intuition, rich information content and the like. The method has wide application in the aspects of industry, agriculture, military, monitoring security and environmental monitoring in recent years, and has good development prospect.
The area coverage control is an important research hotspot in a directed sensor network, however, the directed sensor is different from the traditional sensor, because the directed sensor is limited by the visual field of the self equipment, the sensing range of the directed sensor is a fan-shaped area which takes a node as the center of a circle and the radius as the sensing distance, only one direction can be sensed at a certain moment, and other directions are coverage blind areas, the traditional area coverage optimization algorithm is not suitable for the directed sensor. The coverage method for adjusting the sensing direction of the sensor by using the virtual potential field can effectively improve the coverage rate of the area and optimize the monitoring quality of the area, but also brings another problem. Usually, directional sensors have certain energy, and different rotation angles often cause uneven energy consumption of each node, and premature death of individual nodes due to energy consumption can cause premature paralysis of the whole network, so that the purpose of area monitoring cannot be achieved.
Therefore, how to improve the coverage rate of the directional sensor network on the area monitoring and balance the node energy consumption by using the virtual force, and maximizing the network survival time becomes a problem which needs to be solved urgently.
There are many different schemes for solving the problem of area coverage quality and energy consumption balance through a directed sensor network, one method is to increase the number of directed sensor nodes and search for as many coverage subsets as possible, each subset satisfying the area coverage for a period of time, although this method can fundamentally solve the coverage problem, its implementation cost is high. In addition, an optimization strategy is designed according to a region coverage optimization algorithm and by combining node energy consumption indexes, so that the rotation of the sensing direction of the sensor improves the coverage quality of the region while balancing the energy consumption, and the monitoring effect of high quality and long survival time is achieved. Therefore, the energy consumption index and the perception direction of the node are reasonably scheduled to be the key of the problem, and the area optimization coverage algorithm giving consideration to the energy consumption of the node has great significance.
Disclosure of Invention
In order to overcome the defects of poor area monitoring effect, low coverage quality and short network life cycle of the existing directed sensor network, the invention provides a sensor energy-saving coverage method based on virtual force correction in the directed sensor network, which can reasonably and appropriately rotate the sensing direction of a node by using the virtual force while considering the energy consumption of the node, and improve the coverage quality of a monitoring area.
The technical scheme adopted by the invention for solving the technical problems is as follows:
a directed sensor network energy-saving coverage method based on virtual force correction comprises the following steps:
(1) randomly deploying a plurality of directed sensor nodes in a monitoring area, and numbering the directed sensor nodes, wherein S is equal to { S }i1,2, …, n, each directed sensor node representing S by a six-element groupi=<Pi,R,α,θ,ω,E0>Respectively representing node position, sensing radius, sensing visual angle, sensing direction angle, rotation angular velocity and node initial energy;
(2) calculating the centroid point c of each node
iInitial position
The position of a centroid point is on a sector symmetry axis and is 2R sin alpha/3 alpha away from the center of a circle, each sensor node has only one centroid point corresponding to the centroid point, and the adjustment of the sensing direction of the node is converted into the circular motion of the centroid of a sector area around the node;
(3) to node siCalculate all its neighbor nodes as set psiiM represents the number of elements in the neighbor node set, and if and only if there is a directed sensor node siAnd sjWhen the Euclidean distance between the two nodes is not more than two times of the sensing radius R of the node, the two nodes are mutually adjacent nodes;
(4) the energy-saving covering method for correcting the virtual force comprises the following steps:
(4.1) according to node s
iNeighbor node set psi
iCalculating a node s
jTo node s
iVirtual repulsive force of
Wherein D isijRepresents the center of mass ciTo the centroid point cjThe Euclidean distance of (c); kRDenotes the coefficient of repulsion, KR=1KR=1;αijIs unit vector, represents the direction of repulsion, and is formed by a center of mass point cjPoint to the center of mass ci;
(4.2) node s is coupled by a neighbor node
iThe virtual repulsive force is subjected to vector sum calculation to obtain a virtual resultant force
(4.3) according to node s
iResidual energy E of, adding a correction term to the virtual repulsion
Where e is the energy weight constant, so the improved virtual force is,
the node energy is less, the virtual force is smaller, the rotation angle is smaller, the rotation inertia is realized, and the energy is saved;
(5) node rotation decision, the process is as follows:
(5.1) computing node centroid point c by orthogonal decomposition
iVirtual resultant force currently being experienced
Component along tangent of arc
Confirmation of center of mass c
iThe direction of rotation of;
(5.2) if
Calculating the rotation angle theta of the centroid point, wherein epsilon represents the forced rotation threshold value of the centroid point, and when
The node is shown to reach a stable state, namely the node is considered to be optimized and adjusted or the residual energy is less, and the node does not need to rotate;
wherein, thetamaxThe maximum rotation angle is delta t omega, thetaminIndicating the initially set minimum angle of rotation, k0Is the unit conversion coefficient of force and angle;
(5.3) nodal centroid point c
iAfter the angle theta is rotated, the new position of the centroid point of the node is recalculated
(5.4) calculating the residual energy E of the node each time according to the node rotation angle theta:
E=E-(k1Rβ·Δt+k2θ)
wherein k is1、k2To coefficient of energy consumption, RβThe energy consumption power when the radius of the node is R, beta is an index, and delta t is the interval time of each adjustment;
(5.5) circulating the steps from (4.1) until the adjusting times are reached or each node reaches a stable state;
(6) computing node siPoint to the corresponding centroid point ciIs unified to obtain a node siAnd finally, sensing direction information to obtain an output set of the node sensing direction.
The technical conception of the invention is as follows: some directed sensor nodes are randomly deployed in a monitoring area, in order to improve the coverage quality of the area, the sensing direction of the sensor nodes is adjusted by depending on a coverage strategy of a virtual potential field, and meanwhile, the problems of energy voids and premature network death caused by uneven node energy consumption are considered, the calculation of node energy consumption indexes is added, so that the virtual force is corrected, and the network time is prolonged. The energy-saving coverage method can calculate the virtual repulsion force of the neighbor nodes borne by the nodes in each iterative adjustment process, reasonably rotates a proper angle according to the self residual energy, gives consideration to energy consumption and improves the coverage quality.
The beneficial effects of the invention are mainly as follows: under the condition of striving for improving the coverage quality of the area, the aim of balancing the energy consumption of the nodes is achieved, and the coverage time of the whole network is prolonged.
Detailed Description
The invention is further described below with reference to the accompanying drawings.
Referring to fig. 1 and 2, a method for energy-saving coverage of a directed sensor network based on virtual force correction includes the following steps:
the first step is as follows: randomly deploying directed sensor nodes in a target monitoring area, and numbering the directed sensor nodes with the number S ═ S { (S)i|i=1,2,…,n};
The second step is that: calculating to obtain the center of mass c of each node
iInitial position
The third step: to node siAll neighbor nodes of the node are counted as a set psiiM represents the number of elements in the neighbor node set;
the fourth step: node s
iAccording to the neighbor node set psi
iCalculating the node s in the set
jTo node s
iVirtual repulsive force of
Wherein D isijRepresents the center of mass ciTo the centroid point cjThe Euclidean distance of (c); kRDenotes the coefficient of repulsion, KR=1;αijIs unit vector, represents the direction of repulsion, and is formed by a center of mass point cjPoint to the center of mass ci;
The fifth step: node s is coupled by neighbor node
iVirtual repulsive force of
Calculating vector sum to obtain virtual resultant force
And a sixth step: improving virtual force according to node s
iAdding correction term to virtual repulsion according to the ratio of self residual energy E to initial energy
Wherein e is an energy weight constant, the improved virtual force is,
the seventh step: calculation of repulsive force component, orthogonal decomposition of centroid c
iSubject to virtualResultant force
Calculating the component of tangent line along arc
Confirmation of center of mass c
iThe direction of rotation of;
eighth step: calculating the angle of rotation if
Calculating the rotation angle theta of the centroid point according to a formula, wherein epsilon represents the forced rotation threshold value of the centroid point, and when
The node is shown to reach a stable state, namely the node is considered to be optimized and adjusted or the residual energy is less, and the node does not need to rotate;
wherein, thetamaxThe maximum rotation angle representing the initial setting is delta t omega, thetaminIndicating the initially set minimum angle of rotation, k0Is the unit conversion coefficient of force and angle;
the ninth step: for node s after angle of rotation theta
iRecalculating new positions of centroid points
The tenth step: updating nodes siCalculating the node residual energy E each time according to the node rotation angle theta:
E=E-(k1Rβ·Δt+k2θ)
wherein k is1、k2To coefficient of energy consumption, RβMonitoring energy consumption power when the radius of a node is R, wherein beta is an index and is usually 2-3, and delta t is the interval time of each adjustment;
the eleventh step: the fourth step is circulated until the adjustment times are reached or each node reaches a stable state;
the twelfth step: computing node siPoint to the corresponding centroid point ciIs unified to obtain a node siAnd finally, sensing direction information to obtain an output set of sensing directions of all nodes.
The thirteenth step: and (4) when the rotation angle of the node reaches a stable state, executing area coverage monitoring until the energy is exhausted, and finishing the monitoring.
The sensing range of the directed sensor model applied by the invention is a sector area which takes a node as the center of a circle and the sensing distance as the radius, the rotation of the directed sensor model by virtual force in a virtual potential field shows that the centroid point of the sector area makes circular motion around the node, and a stress analysis graph of the virtual repulsive force of the neighbor node applied to the node is shown in figure 1.
The energy consumption index of the directional sensor considers two aspects of sensing distance and rotation angle, and the energy consumption of the nodes can be influenced by the change of the sensing radius of the nodes and the rotation of the sensing direction. Once the nodes are deployed, the sensing radius is not changed any more, but the sensing radius is still used as a factor influencing the energy consumption power of the nodes in unit time.
The above-described embodiments are merely illustrative of the preferred embodiments of the present invention, and not restrictive, and various changes and modifications to the technical solutions of the present invention may be made by those skilled in the art without departing from the spirit of the present invention, and the technical solutions of the present invention are intended to fall within the scope of the present invention defined by the appended claims.