CN102970692B - Method for detecting boundary nodes of wireless sensor network event - Google Patents

Method for detecting boundary nodes of wireless sensor network event Download PDF

Info

Publication number
CN102970692B
CN102970692B CN201210506709.XA CN201210506709A CN102970692B CN 102970692 B CN102970692 B CN 102970692B CN 201210506709 A CN201210506709 A CN 201210506709A CN 102970692 B CN102970692 B CN 102970692B
Authority
CN
China
Prior art keywords
node
fitting
nodes
boundary
curve
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201210506709.XA
Other languages
Chinese (zh)
Other versions
CN102970692A (en
Inventor
苘大鹏
杨武
王巍
玄世昌
高光照
刘珊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nanhai innovation and development base of Sanya Harbin Engineering University
Original Assignee
Harbin Engineering University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Harbin Engineering University filed Critical Harbin Engineering University
Priority to CN201210506709.XA priority Critical patent/CN102970692B/en
Publication of CN102970692A publication Critical patent/CN102970692A/en
Application granted granted Critical
Publication of CN102970692B publication Critical patent/CN102970692B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Complex Calculations (AREA)

Abstract

The invention belongs to the technical field of wireless sensor networks and specifically relates to a method for distributed detection of wireless sensor nodes positioned on the boundary of an event. The method disclosed by the invention comprises the following steps of: determining the number of fitting nodes according to the density of neighbor nodes in a neighborhood of a node to be determined; collecting perceptual attribute readings of all the neighbor nodes of the node to be determined, and constructing a fitting node set according to an event occurrence threshold and the number of the fitting nodes; selecting a fitting function according to the geographical distribution situation of the fitting nodes; taking the coordinates of the nodes in the fitting node set as fitting points to perform curve fitting to obtain a boundary curve equation; and calculating the shortest distance between the node to be determined and a curve to determine the boundary nodes. Compared with the existing method, the invention provides the method for detecting the boundary nodes based on the curve fitting, which can reduce the influence of the readings of fault nodes on the performance of the detection result by taking the distance between the node and the boundary as the basis for determining the boundary.

Description

A kind of wireless sensor network event boundaries nodal test method
Technical field
The invention belongs to wireless sensor network technology field, be specifically related to a kind of method that Distributed Detection is positioned at the wireless sensor node at event boundaries place.
Background technology
Wireless sensor network is a kind of large scale network, and sensor node is generally distributed in the environment of unmanned maintenance, inclement condition, is even deployed in enemy camp.Because wireless sensor network can be provided convenience for the data acquisition of field randomness, chronicity and danger, solve the difficult problem adopting traditional approach to be difficult to image data, be therefore widely used in the observation process comprising the interested event of the series of human such as military surveillance, environmental monitoring.Usually, event detection technology is utilized to find after event occurs in monitoring network, the occurrence scope of event is that people want to understand most, this just needs to know which sensor node is positioned at boundary, therefore academia's research in this respect focuses mostly on and how to detect the problem being in event boundaries place node, be i.e. the research of boundary node detection method.
The most classical method of boundary node detection field is statistic mixed-state method.In neighbor domain of node to be detected, all neighbor nodes carry out binary decision according to the data of respective perception and event generation threshold size, if perception data value is greater than event generation threshold value, then thinks that this part of handling affairs occurs, represent with 1; Otherwise, if perception data value is less than event generation threshold value, thinks that event does not occur at this place, represent with 0.Node to be detected collects the binary decision result of all neighbor nodes, then adds up the ratio situation that 0 and 1 accounts for whole neighbor node number, when ratio is at certain interval range, then judges that this node is in event boundaries place.Statistic mixed-state law theory can detect boundary node, but have ignored the impact of malfunctioning node on testing result, and there is the uncontrollable problem of boundary node set thickness detected, be not suitable for the practical application of wireless sensor network.
Proceedings of the First IEEE.2003IEEE International Workshop on Sensor NetworkProtocols andApplications, 2003, page59-70. in, LocalizedEdge Detection in SensorFields.IEEE Ad Hoc Networks [C] of publication proposes a kind of Distributed-solution based on mode identification method, its specific practice is positional information and the binary decision information that node to be detected collects all neighbor nodes, design a linear classification function, by to these nodes 0, 1 reading is classified, obtain a linear function straight line, this straight line is considered as border, whether finally carry out predicate node according to node to the distance of straight line is boundary node.There is following problem in this method: the grader that first the method uses needs to construct in advance, and needs a large amount of sample training; Secondly, when event range is less, when neighborhood inner boundary curve radian is larger, the straight border utilizing the method to calculate and actual boundary error are very large, and Detection accuracy is at this moment very low.NED:An Efficient Noise-Tolerant and Event Boundary Detection Algorithm in WirelessSensor Networks [C] .In Proceedings of7th International Conference on Mobile Data Management, 2006.10 (12): the page153. a kind of methods proposing usage threshold threshold determination boundary node, if the attribute reading of node meets | V s-T| <=ε, be then judged as boundary node.Wherein V sfor nodal community reading, T is the threshold value that event occurs, and ε is the error amount that white noise produces, and meets normal distribution ε=N (0, σ 2).The method realizes simple, but only considered white noise error, and does not consider the situation of the not strict Normal Distribution of false readings that malfunctioning node produces, and therefore fault-tolerance is poor.RobustEvent Boundary Detection in Sensor Networks-A Mixture Model Based Approach [J] .INFOCOM2009, IEEE, 2009, 19 (25): page2991-2995. propose a kind of utilize finite mixtures to distribute in the method for gauss hybrid models determination event boundaries, concrete way is as sample set using the reading of the neighbor node in a node, utilize and expect that maximization approach (EM) carries out the estimation of model parameter, then gauss hybrid models is set up, the quantity of model branch is calculated by model selection method, if numbers of branches is greater than 1, then illustrate that this node is boundary node, otherwise be non-boundary node.Expectation maximization method in the method and the calculating of gauss hybrid models are all adopt iterative manner, and computation complexity is high, is not suitable for the wireless sensor network of finite energy.Wireless Sensor Network Routing Protocol and fault-tolerant event boundaries detect delay [D]. Tianjin: University Of Tianjin's academic dissertation, 2009. propose a kind of fault-tolerant boundary detection method.First, detect that the node of improper data is by collecting the sensing data of neighbor node, i.e. identifiable design fault; Normal event node is after filtering the misdata of neighbor node, whether it is in event boundaries to utilize the method for statistical comparison to judge, border width can regulate according to the requirement of the network user, but higher fault freedom does not improve the accuracy rate of its Boundary Detection result, and the adjustment of bound thickness is difficult to control, and causes Detection accuracy to fluctuate very large.
Summary of the invention
The object of the present invention is to provide a kind of wireless sensor network event boundaries nodal test method based on curve that can improve detection perform.
The object of the present invention is achieved like this:
A kind of wireless sensor network event boundaries nodal test method, comprises the steps:
(1) according to the number of the density determination fitting nodes of neighbor node in neighbor domain of node to be determined;
(2) collect all neighbor node perception properties readings of node to be determined, build fitting nodes set according to event generation threshold value and fitting nodes number;
(3) fitting function is selected according to the geographical distribution situation of fitting nodes;
(4) node coordinate in fitting nodes set is carried out curve fitting as match point, obtain boundary curve equation;
(5) calculate the beeline of node to be determined to curve, carry out boundary node judgement.
Describedly determine that the step of the number of fitting nodes is:
(1) border is calculated in neighborhood the most in short-term apart from the number N of a node layer nearest inside and outside border 1;
(2) calculate border the longest in neighborhood time distance border inside and outside the number N of a nearest node layer 2;
(3) fitting nodes number
The situation the shortest in neighborhood in described border is: border is straight line, and boundary straight line equals the half D of bound thickness to Centroid spacing D th/ 2, calculate boundary length L to Centroid distance D, N according to radius of neighbourhood R and straight line l=max (H*L* ρ, 3), wherein ρ is neighborhood interior nodes averag density.
The situation the longest in neighborhood in described border is: border is curve, is approximately half-round curve, and boundary straight line is zero to Centroid spacing D, calculates boundary length L, N according to radius of neighbourhood R and straight line to Centroid distance R 2=max (H*L* ρ, 3), wherein ρ is neighborhood interior nodes averag density.
The described step of building fitting nodes set is:
(1) the attribute reading V of neighbor node perception is sorted, obtain non-decreasing sequence;
(2) in non-decreasing sequence, event generation threshold value V is found thposition;
(3) V in the sequence ththe left side and the right are got successively individual and V ththe reading value that difference is minimum, forms fitting nodes set by node belonging to reading value.
The selecting step of described fitting function is:
(1) choose the node that in fitting nodes set, X-coordinate is maximum, be designated as N xmax, its coordinate is (X max, Y), the node that X-coordinate is minimum, is designated as N xmin, its coordinate is (X min, Y), Δ X=X max-X min;
(2) choose the node that in fitting nodes set, Y-coordinate is maximum, be designated as N ymax, its coordinate is (X, Y max), the node that Y-coordinate is minimum, is designated as N ymin, its coordinate is (X, Y min), Δ Y=Y max-Y min;
(3) as Δ X>=Δ Y, y=ax is chosen 2+ bx+c, as fitting function, as Δ X < Δ Y, chooses x=ay 2+ by+c is as fitting function.
Beneficial effect of the present invention is: compared with the conventional method, the boundary node detection method based on curve that the present invention proposes, using the distance on node and border as the basis of Decision boundaries, decrease the impact of malfunctioning node reading for detection perform, and be free to the bound thickness that controls to detect.
Accompanying drawing explanation
Fig. 1 neighborhood Nei minor face circle schematic diagram;
Longest edge circle schematic diagram in Fig. 2 neighborhood;
Fig. 3 once fitting event boundaries schematic diagram;
Fig. 4 quadratic fit border schematic diagram;
Fig. 5 quadratic fit curve position view;
Accuracy rate in Fig. 6 random network-malfunctioning node ratio chart;
Lose in Fig. 7 random network and sentence rate-malfunctioning node ratio chart;
False Rate in Fig. 8 random network-malfunctioning node ratio chart;
Accuracy rate in Fig. 9 random network-malfunctioning node ratio chart;
False Rate in Figure 10 random network-malfunctioning node ratio chart.
Embodiment
Below in conjunction with accompanying drawing, the present invention is described further:
Technical problem
Detection accuracy that is that cause is too low and the uncontrollable problem of boundary node set thickness that detects by malfunctioning node affects too serious to the present invention is directed to existing boundary nodal test method, propose a kind of boundary node detection method based on curve, node to be detected is by collecting neighbor node perception data, pick out part of nodes as fitting nodes, these nodes are carried out curve fitting the boundary curve equation obtaining being similar to, then according to node to be determined to curvilinear equation range estimation its whether be boundary node.
Technical scheme
Implementation of the present invention is as follows:
In the application of wireless sensor network event monitoring, the attribute of overwhelming majority event has the character of " field ", namely event property value along with the increase of distance event center distance be the feature that gradually changeable changes, such as event of fire, the temperature property value of fire is along with distance hot spot is apart from more and more far and gradually reducing, humidity attribute more and more far and gradually increases along with apart from hot spot, and the property value of node perceived is more close to the threshold value that event occurs, then it geographically also should more close to event boundaries.
The present invention utilizes the character of this " field ", find out the node at event attribute Near Threshold, then matching is carried out to the coordinate of these nodes, can obtain being approximately boundary curve equation, carry out the judgement of boundary node finally by calculation level to the distance of boundary curve.
Specific implementation process of the present invention comprises following step:
Step one: calculate the number of fitting nodes according to the densitometer of neighbor node in neighbor domain of node to be determined.
Step 2: all neighbor node perception properties readings collecting node to be determined, builds fitting nodes set according to event generation threshold value and fitting nodes number.
Step 3: the geographical distribution situation according to fitting nodes selects suitable fitting function.
Step 4: the node coordinate in fitting nodes set is carried out curve fitting as match point, obtains boundary curve equation.
Step 5: calculate the beeline of node to be determined to curve, row bound node of going forward side by side judges.
The concrete principle of the computational methods of the fitting nodes number described in step one is as described below, and the present invention determines the quantity of fitting nodes by the method for pattern analysis, fitting nodes quantity when namely computing node neighborhood inner boundary is the shortest and the longest respectively.
Defining 1 network node density is ρ, represents the number of node in every square unit.
Define 2 node nearest-neighbors spacing d, represent that the nearest neighbor node distance of nodal distance oneself is d.
In above two data volumes, network node density ρ can obtain when network design, and node nearest-neighbors spacing d can be obtained by simple computation in node positioning method, and these two data volumes are known quantity in the method.
Fig. 1 is neighbor domain of node inner boundary schematic diagram the most in short-term.As shown in Figure 1, in the neighborhood of node A, boundary line PQ is straight line, and the distance of node A distance border PQ is bound thickness D just tbe now border PQ the shortest in node A neighborhood time, only need get minimum fitting nodes just can simulate this edge boundary line PQ, in our restrictions of required fitting nodes rectangle frame in the drawings, wherein L is the length of rectangle frame, is also the length of curve PQ, and H is a special length of definition, it collects oneself each neighbor node " nearest-neighbors spacing " by node A, and tries to achieve that mean value obtains.Therefore, at this moment fitting nodes quantity can be passed through formula (1) and obtains:
N min = H * L * &rho; = H * 2 R 2 - D t 2 * &rho; - - - ( 1 )
In this case the fitting nodes minimum number chosen, therefore can utilize this quantity as threshold value.If but again cannot attribute thresholds V in sequence of attributes when choosing node thleft and right respectively obtains individual node, then this node is judged to non-boundary node; And the minimum needs of quadratic polynomial approximating method three fitting nodes used, therefore need to correct further formula (1) to obtain:
N min = max ( H * 2 R 2 - D 2 * &rho; , 3 ) - - - ( 2 )
Formula (2) is the computing formula of the fitting nodes quantity should chosen the most in short-term at neighbor domain of node inner boundary.
Fig. 2 be neighbor domain of node inner boundary the longest time schematic diagram.In the neighborhood of node A, boundary line PQ is curve, and the distance of node A to border PQ is 0, and now border PQ is the longest in node A neighborhood.Because the fitting nodes quantity N chosen does not need accurately strict, so easy in order to calculate, done approximate processing here, assumed curve PQ is circular arc, and at this moment fitting nodes quantity is:
N min &ap; max ( H * L * &rho; , 3 ) = max ( H * &pi; R 2 2 * &rho; , 3 ) - - - ( 3 )
Comprehensive above two kinds of situations, get the mean value of the maximum and minimum situation of fitting nodes number as final fitting nodes value number:
N = max ( H * 2 R 2 - D 2 * &rho; , 3 ) + max ( H * &pi; R 2 2 * &rho; , 3 ) 2 - - - ( 4 )
In above-mentioned steps two, the concrete grammar that fitting nodes set is chosen and principle as follows.
When a node will judge oneself whether as boundary node, first can ask survey measurements and coordinate information, then analyze the reading information obtained.Here first to determine the number of attribute, and divide situation discussion according to the difference of attribute number.
Single attribute event (utilizing an attribute to carry out the event weighed or represent) is detected, if m nfor transducer is for the expectation of attribute reading when not having that event occurs, m ffor the expectation of attribute reading when transducer occurs for event, then judge that optimum threshold value that event occurs is as [1]:
V th=0.5(m n+m f) (5)
Event attribute can be divided into two classes: ascending-type event attribute and down type event attribute.Wherein ascending-type event attribute value is larger than property value when event occurs when event occurs, and down type event attribute value is less than property value when event occurs when event occurs.
If ascending-type event attribute, binary decision formula is:
B = 1 V > V th 0 V < V th - - - ( 6 )
If be down type event attribute, binary decision formula is:
B = 0 V > V th 1 V < V th - - - ( 7 )
Wherein B is the binary result of event judgement, and V is the reading of sensor node.
In fact, the theoretical boundary of event is exactly the isopleth of this threshold value, sensor node its attribute reading sensed and threshold value V that distance isopleth is nearer thmore close, therefore the attribute sensor reading of neighbor node is done unstable sequence according to size, if ascending-type event attribute, then according to descending, if down type event attribute, then arrange according to ascending order.Then, find the position that threshold value is residing in the sequence, the nearest N number of point of distance threshold is respectively got in left and right.Finally, using this N number of point as fitting nodes S set.
Multiattribute event (event needs multiple attribute to weigh) is detected, if m i nfor transducer is for the expectation of attribute reading when not having that event occurs, m i ffor the expectation of attribute reading when transducer occurs for event, for each attribute judge optimum gate limit value that event occurs as:
V i th=0.5(m i n+m i f) (8)
Suppose that event has m attribute, V ibe the reading of a node for attribute i, then for multiattribute event, whether decision event occurs first to carry out binary decision for single attribute respectively, if ascending-type event attribute, binary decision formula is:
B i = 1 V i > V i th 0 V i < V i th - - - ( 9 )
If be down type event attribute, binary decision formula is:
B i = 0 V i > V i th 1 V i < V i th - - - ( 10 )
The binary system of final multiattribute event differentiates that result is:
B = &cap; i m B i - - - ( 11 )
The figure that the teachings of this event is formed for the common factor meeting each attribute and equal m the enclosed region that isopleth that threshold value forms surrounds, in other words, the theoretical boundary of this event allly to meet for connecting:
V 1=V 1 th, V 2=V 2 th, V 3=V 3 th..., V m=V m ththe closed curve that formed of node.
Therefore, the perception reading of m the different attribute that neighbor node is perceived carries out instability sequence respectively, if ascending-type event attribute, then according to descending, if down type event attribute, then arrange according to ascending order, obtain the property value sequence that m group is orderly, then the position of the property value sequence that each attribute threshold value is arranged in is found out, left justify is carried out to each sequence, a size order is discharged, such as, for following situation apart from the distance of respective sequence high order end again according to each attribute thresholds:
Attribute 1
Attribute 2
. . .
Attribute m
The sequence obtained should be:
< attribute 2 < ... < attribute m < ... < attribute 1 <
In this sequence, attribute the closer to left end proves that the event generation threshold value isopleth of its correspondence is the closer to the center of circle, then actual event boundaries should be the event generation threshold value isopleth the closer to this attribute, therefore using the sequence of attributes near left end as getting point sequence.Next, N/2 the node that selected distance threshold value is nearest from this property value sequence, then using this N number of node as fitting nodes S set.
Choose the concrete grammar of quadratic fit function according to the geographical distribution situation of fitting nodes set in above-mentioned steps three and principle as follows.
After obtaining fitting nodes S set, next set forth how Selection of Function carries out matching to the node coordinate in fitting nodes S set, thus obtain the matched curve of an approximate boundaries curve.According to the relevant knowledge of curve, matched curve needs to determine in advance, the conventional linear once fitting function of fitting function, polynomial fit function, exponential fitting function and power function fitting function etc., and its complexity calculated increases successively.
First discuss and use once fitting function, both used straight line to carry out matching.As shown in Figure 3:
In Fig. 3 a, dash area is a part for event area, compare the radius of neighbourhood of node I, event range is very large, therefore the local event border DFE in the neighborhood of node I is similar to straight line, now use linear function matching just can obtain comparatively close to the curve of real border, if but the radius of neighbourhood that event area compares node I is little, local event border DEF then in the neighborhood of node I is the curve that a radian is larger, and the result now utilizing linear function matching to obtain will be larger with the error of actual boundary.
Dash area in Fig. 3 b is event area, this event area is the irregular area of a class ellipse, in the neighborhood of node A, local event border is curve M LN, this curve approximation straight line, and in the neighborhood of Node B, local event border is curve PRQ, the radian of this curve is larger.If in this example, carry out edge fitting with linear function, in A neighbor domain of node, result comparatively accurately can be obtained, but it is larger to save at B the resultant error obtained in neighborhood of a point.
Consider above two kinds of situations, the present invention adopts quadratic polynomial function to carry out matching, and quadratic polynomial function is slightly larger than linear function on computation complexity, but accuracy rate is higher, can meet the local boundary of any type in above two kinds of situations.Need when selecting quadratic polynomial Function Fitting to consider following situation:
Dash area in Fig. 4 is event area.In the neighborhood of node A, local event boundary curve is MLN, and this curve can use y=ax 2the quadratic polynomial function of+bx+c carries out that matching is approximate to be obtained.In the neighborhood of Node B, local event boundary curve is PRQ, this curve cannot carry out matching with any curvilinear function and obtain, because corresponding two the y values of x value in curve PRQ rectangular coordinate system in the drawings, curve PRQ can not find a function and represents in other words, under the circumstances, intend doing following work when selecting quadratic fit function:
The node finding X-coordinate maximum in fitting nodes S set, is designated as N xmax, its coordinate is (X max, Y); Find the node that X-coordinate is minimum, be designated as N xmin, its coordinate is designated as (X min, Y); Find the node that Y-coordinate is maximum, be designated as N ymax, its coordinate is (X, Y max), find the node that Y-coordinate is minimum, be designated as N ymin, its coordinate is (X, Y min).We carry out choosing of fitting function by following formula:
y = ax 2 + bx + c X max - X min &GreaterEqual; Y max - Y min x = ay 2 + by + c X max - X min < Y max - Y min - - - ( 12 )
If X max-X min>=Y max-Y min, then as Fig. 5 A, use shape as the quadratic function y=ax of curve PQ 2+ bx+c carries out matching, if X max-X min< Y max-Y min, then as Fig. 5 B, use shape as the quadratic function x=ay of curve PQ 2+ by+c carries out matching.
Curve-fitting method concrete in above-mentioned steps four is as follows.
In known plane, some represent the point of experimental datas, look for a curve (such as logarithmic curve) meeting certain character, and make it put closest with these, this method of looking for curve, is called curve, and calculated curve is called matched curve.The method of curve has a lot, considers wireless sensor node resource-constrained, the present invention adopt a kind of comparatively accurately and calculate easy method---least square method.
The general principle of least square method is for given data (x i, y i) (i=0,1 ..., m), getting in fixed function class Φ, asking p (x) ∈ Φ, make error r i=p (x i)-y i(i=0,1 ..., quadratic sum m) is minimum, namely
&Sigma; i = 0 m r i 2 = &Sigma; i = 0 m [ p ( x i ) - y i ] 2 = min - - - ( 13 )
From geometric meaning, seek exactly and set point (x i, y i) (i=0,1 ..., square distance m) and be minimum curve y=p (x).Function p (x) is fitting function or least square solution, asks the method for fitting function p (x) to be the least square method of curve.
When fitting function is multinomial, then
I = &Sigma; i = 0 m [ p ( x i ) - y i ] 2 = &Sigma; i = 0 m ( &Sigma; k = 0 n a k x i k - y i ) 2 = min - - - ( 14 )
For (a 0, a 1..., a n) the function of many variables, therefore the topic that fits to of polynomial function is changed into and asks I=I (a 0, a 1..., a n) mechanism problem, have the function of many variables ask mechanism necessary condition,
&PartialD; I &PartialD; a j = 2 &Sigma; i = 0 m ( &Sigma; k = 0 n a k x i k - y i ) x i j = 0 , J=0,1 ..., n, namely
&Sigma; k = 0 n ( &Sigma; i = 0 m x i j + k ) a k = &Sigma; i = 0 m x i j y i , j=0,1,…,n (15)
Above formula is about a 0, a 1..., a nsystem of linear equations, be expressed in matrix as
m + 1 &Sigma; i = 0 m x i . . . &Sigma; i = 0 m x i n &Sigma; i = 0 m x i &Sigma; i = 0 m x i 2 . . . &Sigma; i = 0 m x i n + 1 . . . . . . . . . &Sigma; i = 0 m x i n &Sigma; i = 0 m x i n + 1 . . . &Sigma; i = 0 m x i 2 n a 0 a 1 . . . a n = &Sigma; i = 0 m y i &Sigma; i = 0 m x i y i . . . &Sigma; i = 0 m x i n y i - - - ( 16 )
Then a is solved 0, a 1..., a n, and bring former fit equation into, just obtain the equation after matching.
In method, fitting function is y=ax 2+ bx+c(chooses y=ax here 2+ bx+c fitting function is that example is described, and fitting function is x=ay 2during+by+c, principle is identical), match point set is S={ (x i, y i) | i=0,1 ... m}, then the matrix of the system of linear equations about a, b, c obtained is:
m + 1 &Sigma; i = 0 m x i &Sigma; i = 0 m x i 2 &Sigma; i = 0 m x i &Sigma; i = 0 m x i 2 &Sigma; i = 0 m x i 3 &Sigma; i = 0 m x i 2 &Sigma; i = 0 m x i 3 &Sigma; i = 0 m x i 4 a b c = &Sigma; i = 0 m y i &Sigma; i = 0 m x i y i &Sigma; i = 0 m x i 2 y i - - - ( 17 )
This is a ternary linear function group, easily solves a, the root of b, c, just can obtain fit equation after trying to achieve undetermined coefficient.
Node to be determined in above-mentioned steps five to the concrete grammar of the beeline of curve and decision process as follows.
Can be obtained the local boundary curve in a neighbor domain of node by curve, need below to calculate the distance of this node to curve, mentioned here some A is expressed as follows to the formalization of the distance of curve PQ:
Point A be curve PQ extenal fixation a bit, on curve PQ, there is 1 B minimum to the distance of some A, this distance is the beeline of an A to curve PQ, and this distance is designated as D.
If D is greater than threshold value D t, namely sensor node is greater than bound thickness to the distance on border, then this sensor node is not boundary node, if instead D is less than or equal to threshold value D t, namely sensor node is less than or equal to bound thickness to the distance on border, then this sensor node is boundary node, is formulated as:
D = 1 D &le; D t 0 D > D t - - - ( 18 )
Discuss below and how to try to achieve a little to the beeline of curve.The coordinate of postulated point A is (M, N), and the equation of curve PQ is y=ax 2+ by+c, then the range equation putting A to curve PQ is
f=H 2=(x-M) 2+(y-N) 2
=(x-M) 2+(ax 2+bx+c-N) 2(19)
=a 2x 4+2abx 3+(1+b 2+2ac-2aN)x 2
+(2bc-2M-2bN)x+(M 2+c 2-2cN+N 2)
Need the minimum point of trying to achieve function f below, this point is exactly the beeline of an A to curve PQ to the distance of known point A, therefore to function f differentiate, obtains:
f &prime; = &PartialD; f &PartialD; x = 4 a 2 x 3 + 6 ab x 2 + 2 ( 1 + b 2 + 2 ac - 2 aN ) x 2 + 2 bc - 2 M - 2 bN - - - ( 20 )
Make f '=0, separate this equation, the coordinate that solves of trying to achieve is the extreme point of an A to curve PQ distance, and wherein minimum point is required point.
F '=0 is a simple cubic equation, separates this equation, intends using famous Sheng gold radical formula.
Suppose that the simple cubic equation solved is ax 3+ bx 2+ cx+d=0, (a, b, c, d ∈ R, and a ≠ 0), and define repeated root discriminant A=b 2-3ac; B=bc-9ad; C=c 2-3bd, total discriminant is Δ=B 2-4AC.X 1, x 2, x 3three roots required by us, then:
1) as A=B=0:
x 1 = x 2 = x 3 = - b 3 a = - c b = - 3 d c
2) as Δ=B 2during-4AC > 0:
x 1 = - b - Y 1 3 - Y 2 3 3 a ;
x 2 , x 3 = - 2 b + Y 1 3 + Y 2 3 6 a &PlusMinus; 3 ( Y 1 3 - Y 2 3 ) 6 a i ;
Wherein Y 1 , Y 2 = Ab + 3 a ( - B &PlusMinus; B 2 - 4 AC ) 2 , i 2=-1。
3) as Δ=B 2during-4AC=0:
x 1 = - b a + K ;
x 2 = x 3 = - K 2 ;
Wherein K = B A , ( A &NotEqual; 0 ) .
4) as Δ=B 2during-4AC < 0:
x 1 = - b - 2 A cos ( &theta; 3 ) 3 a ;
x 2 , x 3 = - b + A ( cos ( &theta; 3 ) &PlusMinus; 3 sin ( &theta; 3 ) ) 3 a ;
Wherein
θ=arccosT, T = 2 Ab - 3 aB 2 A 3 2 , (A>0,-1<T<1)
As Δ=B 2during-4AC > 0, equation has a real root and a pair conjugation imaginary root, fixing point in plane any beeline to curve due to what calculate, so the point on this curve must be necessary being, and imaginary root does not have practical significance in rectangular coordinate system, therefore, as Δ=B 2during-4AC > 0, equation only gets a real root.Bring this real root into fitting function equation, coordinate points (the x tried to achieve, y), this point be exactly on curve to extra curvature 1 A (M, N) nearest point, then try to achieve the distance D of point-to-point transmission according to distance between two points formula, namely put the beeline of A (M, N) to matched curve:
D = ( x - M ) 2 + ( y - N ) 2 - - - ( 21 )
In other situations, use and contain three root x that golden formula tries to achieve equation 1, x 2, x 3, then substitute into fitting function respectively, try to achieve three point (x 1, y 1), (x 2, y 2), (x 3, y 3) these three points are an A (M, N) three extreme points to matched curve distance.Formula (21) is used to obtain the distance D of three point-to-point A respectively 1, D 2, D 3, and finding wherein minimum value, this value is just for some A is to the beeline D of matched curve.
Obtaining a little after curve distance D, using formula (18) to carry out boundary node judgement.
Describe the present invention below by Matlab emulation.
Detection example
Specific embodiment of the invention process comprises following step:
The present invention choose in boundary node detection method representative based on fault-tolerant boundary node detection method (DFTEBD) as a comparison.
Enforcement scene of the present invention is as follows:
Arranging a node scale amounts is the wireless sensor network of 1600, by its random placement in the region that area size is 100*100, supposes that all node communication scopes are for circular in experiment.Suppose that event to be detected is fire, hot spot is positioned at topology area center (50,50), fire scope radius is 30, and judge that the temperature threshold threshold value whether fire occurs is 100, hot spot temperature is 200, along with distance hot spot distance is far away, the temperature at sensor node place reduces gradually.
False readings due to sensor node directly can affect the accuracy of boundary node recognition methods, therefore the error node of 5%, 10%, 15%, 20%, 25%, 30%, 35% ratio is set in topological network, these error node are random selecting in all nodes, arranging event boundaries thickness is 5, contrast the present invention and the performance of DFTEBD method under the network of various error node ratio.
Because the present invention supports manually to set bound thickness, therefore arrange respectively in topological network event boundaries thickness be 3,3.25,3.5,3.75,4,6,6.25, the border thickness value such as 6.75, contrast the performance of the present invention and DFTEBD method when there is no malfunctioning node.
Experiment and analysis
The quality of the boundary node detection method in wireless sensor network event monitoring field is normally using accuracy and energy ezpenditure as evaluation criterion.In this experiment, choose following evaluating and comprehensively detailed evaluation is carried out to the present invention and control methods.
1) discrimination: the percentage of real border node number shared by the boundary node identified by recognition methods.Discrimination embodies the most important index identifying boundary node ability, and this index value is larger, and illustration method performance is better.
2) rate is sentenced in mistake: the boundary node number utilizing boundary node recognition methods not identify accounts for the percentage of real border node number.This Parametric Representation boundary node recognition methods is judged as boundary node the probability of non-boundary node mistakenly, and this parameter value is larger, and illustration method performance is poorer.
3) False Rate: utilize boundary node recognition methods that non-boundary node is judged as the percentage of real border node number shared by the node number of boundary node.This Parametric Representation Boundary Recognition method fault ground is judged as non-boundary node the probability of boundary node, and this parameter value is larger, and illustration method performance is poorer.
Below interpretation:
Fig. 6 is the increase along with malfunctioning node ratio in random network, the curve chart of two kinds of method detection boundaries node recognition rates, and as can be seen from the figure, when in network, malfunctioning node ratio is 5%, discrimination of the present invention is a little more than DFTEBD; Along with malfunctioning node ratio increases, the boundary node discrimination of two kinds of methods reduces all gradually, but the present invention is compared with DFTEBD, and discrimination is obviously higher; After malfunctioning node in network is higher than 25%, discrimination of the present invention still remains on more than 90%, and DFTEBD has dropped to about 80%, although this is because DFTEBD contains malfunctioning node testing mechanism, but False Rate is too high, thus result in follow-up boundary node discrimination degradation.In general, the present invention shows and is better than DFTEBD in discrimination.
Fig. 7 is the increase along with malfunctioning node ratio in random network, and two kinds of methods lose the curve chart sentencing rate about boundary node.When malfunctioning node ratio is identical, Same Way lose sentence rate and accuracy rate and be 1.From this figure, can find out intuitively, along with the increase of malfunctioning node ratio, the mistake of two kinds of methods is sentenced rate and is increased gradually, DFTEBD is when malfunctioning node ratio is 15%, mistake is sentenced rate and is reached more than 15%, the present invention can when malfunctioning node ratio lower than 25% remain on less than 10% always.It is in general, of the present invention that to sentence in rate performance in mistake better.
Fig. 8 is the increase along with malfunctioning node ratio in random network, the curve chart of the boundary node False Rate of two kinds of methods.As can be seen from the figure, False Rate of the present invention increases along with the increase of malfunctioning node ratio, but amplification is less, this error being the erroneous judgement node produced due to the present invention mainly produces to curve distance due to self matched curve and calculation level causes, and the impact by network failure node is less; The False Rate of DFTEBD is very high, and along with the increase of malfunctioning node ratio is also increasing, this is because DFTEBD method is lower in the accuracy rate of malfunctioning node detection-phase, and what meeting was wrong is judged as malfunctioning node many normal node, thus create error, in network, malfunctioning node is more, then misjudgment phenomenon is more serious.
Fig. 9 is the increase along with bound thickness in random network, the boundary node discrimination curve chart of two kinds of methods.When there is no malfunctioning node, the discrimination of DFTEBD can reach 100%, and discrimination of the present invention cannot reach 100%, this is because the event boundaries curve that the inventive method simulates exists certain error with actual boundary curve, thus a small amount of node is caused to be failed to judge.Although this error is less, cannot eliminate.In figure, curve of the present invention is that in the interval of 3 to 4, discrimination increases gradually in bound thickness, this is because when bound thickness is less, general boundaries number of nodes is little, and discrimination is lower; Along with bound thickness increases, boundary node increasing number, discrimination can rise gradually, finally reaches the level close to 100%.All in all, at fault-free node ideally, with the change of bound thickness, discrimination of the present invention is a little less than DFTEBD.
Figure 10 is the increase along with bound thickness in random network, the curve chart of the boundary node False Rate of two kinds of methods.In figure, the False Rate of the inventive method remains on 50% once along with the change of bound thickness always, compares DFTEBD more steady.Main cause is the present invention when judging a node whether as boundary node, judge according to the distance of node to boundary curve, therefore producing erroneous judgement is that the impact of bound thickness on False Rate is little because the error of calculation produced during boundary curve matching causes; And DFTEBD method False Rate is totally all in very high level.In general, contrast DFTEBD method, the present invention can keep lower False Rate in the scope that bound thickness value is larger, and performance is better.
As can be seen from above contrast, the present invention has good performance in the wireless sensor network of random distribution.When in network, malfunctioning node ratio is higher, this method still can ensure higher discrimination and lower False Rate.In addition, the present invention is with the obvious advantage in bound thickness control, can Manual definition's bound thickness change, and discrimination and False Rate can have stable and show preferably.See on the whole, the present invention detection perform and and energy consumption in all very stable, be not that cost pursues high detection perform with energy consumption, but detection perform is still good.In sum, the inventive method can keep balance in energy consumption and detection perform, and combination property is better.

Claims (4)

1. a wireless sensor network event boundaries nodal test method, is characterized in that, comprise the steps:
(1) according to the number of the density determination fitting nodes of neighbor node in neighbor domain of node to be determined;
(2) collect all neighbor node perception properties readings of node to be determined, build fitting nodes set according to event generation threshold value and fitting nodes number;
(3) fitting function is selected according to the geographical distribution situation of fitting nodes;
(4) node coordinate in fitting nodes set is carried out curve fitting as match point, obtain boundary curve equation;
(5) calculate the beeline of node to be determined to curve, carry out boundary node judgement;
The step building fitting nodes set is:
(2.1) the attribute reading V of neighbor node perception is sorted, obtain non-decreasing sequence;
(2.2) in non-decreasing sequence, event generation threshold value V is found thposition;
(2.3) V in the sequence ththe left side and the right are got successively individual and V ththe reading value that difference is minimum, node belonging to reading value is formed fitting nodes set, and N is fitting nodes number;
The selecting step of fitting function is:
(3.1) choose the node that in fitting nodes set, X-coordinate is maximum, be designated as N x max, its coordinate is (X max, Y), the node that X-coordinate is minimum, is designated as N x min, its coordinate is (X min, Y), Δ X=X max-X min;
(3.2) choose the node that in fitting nodes set, Y-coordinate is maximum, be designated as N y max, its coordinate is (X, Y max), the node that Y-coordinate is minimum, is designated as N y min, its coordinate is (X, Y min), Δ Y=Y max-Y min;
(3.3) as Δ X>=Δ Y, y=ax is chosen 2+ bx+c, as fitting function, as Δ X < Δ Y, chooses x=ay 2+ by+c is as fitting function.
2. a kind of wireless sensor network event boundaries nodal test method according to claim 1, is characterized in that, describedly determines that the step of the number of fitting nodes is:
(1) border is calculated in neighborhood the most in short-term apart from the number N of a node layer nearest inside and outside border 1;
(2) calculate border the longest in neighborhood time distance border inside and outside the number N of a nearest node layer 2;
(3) fitting nodes number
3. a kind of wireless sensor network event boundaries nodal test method according to claim 2, is characterized in that, the situation the shortest in neighborhood in described border is: border is straight line, and boundary straight line equals the half D of bound thickness to Centroid spacing D th/ 2, calculate boundary length L to Centroid distance D, N according to radius of neighbourhood R and straight line 1=max (H*L* ρ, 3), wherein ρ is neighborhood interior nodes averag density, H is the nearest-neighbors spacing of being collected each neighbor node by node, and averages and obtain.
4. a kind of wireless sensor network event boundaries nodal test method according to Claims 2 or 3, it is characterized in that, the situation the longest in neighborhood in described border is: border is curve, be approximately half-round curve, boundary straight line is zero to Centroid spacing D, boundary length L is calculated to Centroid distance D, N according to radius of neighbourhood R and straight line 2=max (H*L* ρ, 3), wherein ρ is neighborhood interior nodes averag density, H is the nearest-neighbors spacing of being collected each neighbor node by node, and averages and obtain.
CN201210506709.XA 2012-12-03 2012-12-03 Method for detecting boundary nodes of wireless sensor network event Expired - Fee Related CN102970692B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210506709.XA CN102970692B (en) 2012-12-03 2012-12-03 Method for detecting boundary nodes of wireless sensor network event

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210506709.XA CN102970692B (en) 2012-12-03 2012-12-03 Method for detecting boundary nodes of wireless sensor network event

Publications (2)

Publication Number Publication Date
CN102970692A CN102970692A (en) 2013-03-13
CN102970692B true CN102970692B (en) 2015-04-08

Family

ID=47800490

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210506709.XA Expired - Fee Related CN102970692B (en) 2012-12-03 2012-12-03 Method for detecting boundary nodes of wireless sensor network event

Country Status (1)

Country Link
CN (1) CN102970692B (en)

Families Citing this family (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104348659B (en) * 2013-08-08 2018-02-02 富士通株式会社 The fault detection method and node of multihop network
CN104101860B (en) * 2013-11-25 2017-02-22 山东大学(威海) Positioning method capable of detecting wireless sensor network node flip fuzzyness based on quadrature projection
CN104618886B (en) * 2015-03-11 2018-01-12 湖北工业大学 A kind of wireless sensor network method for early warning for invading danger zone
CN105072571B (en) * 2015-07-01 2018-10-23 河海大学常州校区 A kind of localization method based on pulse communication in wireless nano sensor network
CN106211190B (en) * 2016-06-30 2018-02-06 广东工业大学 A kind of wireless sensor network node dispositions method of irregular codes
CN106407657A (en) * 2016-08-31 2017-02-15 无锡雅座在线科技发展有限公司 Method and device for capturing event
CN106412934B (en) * 2016-10-08 2019-10-08 上海海事大学 A kind of wireless sensor network event boundaries detection method
CN107579986B (en) * 2017-09-21 2020-11-06 北京工业大学 Network security detection method in complex network
CN112446236B (en) * 2019-08-29 2023-04-07 天津大学青岛海洋技术研究院 Conversion event linear detection method based on pulse type image sensor
CN111479235B (en) * 2020-04-07 2022-02-11 上海第二工业大学 Formalization method for detecting wireless sensor network node
CN112068128B (en) * 2020-09-19 2024-02-02 重庆大学 Straight-line scene line segment type radar data processing and pose acquisition method
CN112942837B (en) * 2021-01-22 2023-02-03 河北工业大学 Cantilever structure concrete 3D printing method and system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101505487A (en) * 2009-02-27 2009-08-12 华中科技大学 Sensor network skeleton extraction method
CN102665273A (en) * 2012-04-19 2012-09-12 中国科学技术大学苏州研究院 Wireless sensor network node positioning method
CN102665253A (en) * 2012-04-20 2012-09-12 山东大学 Event detection method on basis of wireless sensor network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101505487A (en) * 2009-02-27 2009-08-12 华中科技大学 Sensor network skeleton extraction method
CN102665273A (en) * 2012-04-19 2012-09-12 中国科学技术大学苏州研究院 Wireless sensor network node positioning method
CN102665253A (en) * 2012-04-20 2012-09-12 山东大学 Event detection method on basis of wireless sensor network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
NED: An Efficient Noise-Tolerant Event and Event Boundary Detection Algorithm in Wireless Sensor Networks;GUANG JIN等;《In proceedings of 7th international conference on mobile data networks》;20060512;全文 *

Also Published As

Publication number Publication date
CN102970692A (en) 2013-03-13

Similar Documents

Publication Publication Date Title
CN102970692B (en) Method for detecting boundary nodes of wireless sensor network event
CN105163326B (en) A kind of cell clustering method and system based on wireless network traffic feature
CN109740694A (en) A kind of smart grid inartful loss detection method based on unsupervised learning
CN104835178A (en) Low SNR(Signal to Noise Ratio) motion small target tracking and identification method
CN107579846B (en) Cloud computing fault data detection method and system
CN112911627B (en) Wireless network performance detection method, device and storage medium
CN109949176A (en) It is a kind of based on figure insertion social networks in abnormal user detection method
CN109508733A (en) A kind of method for detecting abnormality based on distribution probability measuring similarity
CN108769042B (en) Network security risk assessment method based on differential manifold
CN103533571A (en) FEDAV (fault-tolerant event detection algorithm based on voting)
CN106780551A (en) A kind of Three-Dimensional Moving Targets detection method and system
CN103914558A (en) Method for mining space-time aggregation patterns of meteorological elements on basis of space-time statistics
CN114353261A (en) Air conditioning unit fault analysis method and device, terminal device and storage medium
CN114138012A (en) Fan blade inspection method, device, equipment and storage medium
CN116665001A (en) Intelligent park multisource data dynamic monitoring and real-time analysis system and method
CN104835174A (en) Robustness model fitting method based on supermap mode search
Chen et al. Integrated evaluation approach for node importance of complex networks based on relative entropy
CN105721467A (en) Social network Sybil group detection method
Suyal et al. Performance evaluation of rough set based classification models to intrusion detection system
Xia et al. Radar HRRP Open Set Recognition Based on Extreme Value Distribution
CN112437440A (en) Malicious collusion attack resisting method based on correlation theory in wireless sensor network
CN116958606A (en) Image matching method and related device
CN105824853A (en) Clustering equipment and method
CN104462826B (en) The detection of multisensor evidences conflict and measure based on Singular Value Decomposition Using
Hou et al. The indoor wireless location technology research based on WiFi

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201126

Address after: Area A129, 4th floor, building 4, Baitai Industrial Park, Yazhou Bay science and Technology City, Yazhou District, Sanya City, Hainan Province, 572024

Patentee after: Nanhai innovation and development base of Sanya Harbin Engineering University

Address before: 150001 Heilongjiang, Nangang District, Nantong street,, Harbin Engineering University, Department of Intellectual Property Office

Patentee before: HARBIN ENGINEERING University

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150408

Termination date: 20201203