Summary of the invention
The technical problem that the present invention solves is to reduce the initial discriminative information transmitting in network, saves Internet resources, improves the performance of network.
In order to overcome the above problems, a kind of event detection mechanism that is applicable to wireless sensor network, comprises the following steps:
A, event source node are made the court verdict of corresponding atomic event according to own sensor type;
B, this court verdict are sent to intermediate node;
C, intermediate node in repeating process according to making from the atomic event court verdict of different nodes the conclusive judgement whether compound event occurs;
D, compound event conclusive judgement are sent to aggregation node.
Further, preferred as one, the event of described wireless sensor network is single incident or compound event.
Further, preferred as one, in described steps d, before compound event conclusive judgement is sent to aggregation node, several event forwarding nodes are experienced in compound event conclusive judgement.
Further, preferred as one, described step a makes atomic event judgement according to decision rule 1, obtains initial atomic event court verdict [b
i 1, b
i 2..., b
i | M|].
Further, preferred as one, described node will oneself be classified as source node b according to different atomic event court verdicts
i m=1 or forward node b
i m=0.Source node is by preliminary ruling result [b if
i 1, b
i 2..., b
i | M|] being sent to aggregation node with constant rate of speed ξ, the duration is t
ξ; Forward node is kept silent and is only participated in forwarding if.
Further, preferred as one, node n
ireceive from node n
jatomic event court verdict time, first check event flag position B
i alertif, B
i alert=1 shows that event occurs, and no longer forwards atomic event court verdict, node n
ito S
e imiddle node sends event alarms bag Ψ, notices them and adjudicates and finish to stop giving out a contract for a project; If B
i alert=0 shows that not judgement event occurs, and checks n
jwhether in S set
e iin, if, show once to receive from n
jsame discriminative information, directly forward.If not in S set
e iin, by node n
jadd S
e iin, and upgrade oneself judgement cache information b
i m'=b
i m| b
j m, m ∈ M arbitrarily.
Further, preferred as one, described step c is specially: node n
ido compound event judgement according to decision rule 2, if Δ
i=1, judgement event occurs, juxtaposition event generation flag bit B
i alert=1.
Further, preferred as one, described steps d is specially: virtual events source node node n
isend event alarms bag Ψ to aggregation node, notify policymaker's emergency to occur.
Further, preferred as one, virtual events source node node n
ito S
e imiddle node sends event alarms bag Ψ, notices them and adjudicates and finish to stop giving out a contract for a project.
The invention has the advantages that, different at aggregation node from traditional distributed event detection system conclusive judgement center, the adapter distribution judgement structure that the present invention proposes, conclusive judgement node can be arbitrarily middle forward node.Once judgement event occurs, immediately final judging result is sent to aggregation node to notice policymaker, further reduce the initial discriminative information transmitting in network, save Internet resources, this is important in inhibiting concerning the serious limited wireless sensor network of the resource such as bandwidth, energy.
Embodiment
Referring to Fig. 1-2, embodiments of the invention are described.
For above-mentioned purpose, feature and advantage can be become apparent more, below in conjunction with the drawings and specific embodiments, the present invention is further detailed explanation.
It is identical that the present invention is applicable to network node composition, is often referred to node communication ability identical, has identical maximum communication radius; Node is by the unified identify label such as IP address or MAC Address of whole network range assignment; Towards the wireless sensing sensor network of event monitoring.
Fig. 1 is embodiment of the present invention application scenarios schematic diagram.This schematic is shown at a time, institute's monitoring event generation in network, and event source node S1, S2, S3, S4, S5 detect that respectively this event occurs, composition event source region S.Radio sensor network monitoring region is conventionally larger, common only meeting triggering part node when event occurs, instead of all nodes.Only the event of triggering part node is called local event, for local event only event coverage area triggering node send discriminative information with reduce energy expense.Node S1, S2, S3, S4, S5 send respectively atomic event court verdict, and converge at S3 Nodes.Node S3 meets compound event judgment condition and carries out compound event judgement, after judgement event occurs, send event alarms bag via node F1, F2 to aggregation node Sink, while sends event alarms bag to node S1, S2, S4, S5 in the S of event source region, notifies them to adjudicate and finishes to stop giving out a contract for a project.
In the present invention, event source node, fingering row atomic event is adjudicated and is judged that event occurs, and sends the node of court verdict; Event forwarding node, fingering row atomic event is adjudicated but judgement event does not occur, and only participates in the node forwarding; Event source region, refers to the region being made up of event source node; Aggregation node, refers to information to converge, and by the final result node of noticing to policymaker.In this specific embodiment, node S1, S2, S3, S4, S5 are event source node; Node F1, F2 are event forwarding node; In Fig. 1, broken circle territory is event source region S; Sink node is aggregation node.
Fig. 2 is the flow chart of sensor node compound event judgement.To described atomic event judgement, that first we will consider is node n
ido the preliminary ruling of outgoing event according to its measured value in this locality.
If node n
ithere is T measured value, U
t i={ u
1 i, u
2 i..., u
t i.Wherein, u
j inode n
ithe j time measurement result: be 0 judgement for not occurring, be 1 judgement be event occur.Utilize Serial Decision Method, node does not need to measure T time, U in the time proceeding to the τ time measurement
t τ={ u
1 i, u
2 i..., u
τ iif can adjudicate judgement immediately.
The present invention adopts accumulation log-likelihood ratio method, and each node, according to different measuring value, is made sequential judgement in this locality.In Serial Decision Method, we are defined node n
icumulative likelihood probability while carrying out measuring for the k time is Ω
k i: Ω
k i=∑
k j=1log λ
j i.Wherein, likelihood probability λ
j ibe defined as follows:
Wherein, p
ffor false alarm probability (not having event to be determined with event), p
dfor detection probability (having event to be determined with event), concrete value is determined by practical situations.
Serial Decision Method comprises stopping criterion and decision rule.Stopping criterion obtains minimum τ value, then adjudicates according to decision rule.The stopping criterion of the Serial Decision Method that the present invention adopts is:
Wherein, η
0=log[(1-p
d)/(1-p
f)],, η
1=log (p
d/ p
f), be respectively the bound of judgement.Work as γ
ishow that the data deficiencies measuring is to make judgement at=0 o'clock, still need to continue to measure; γ
i, can make judgement according to criterion below at=1 o'clock:
Decision rule 1: as cumulative likelihood probability Ω
k ibe less than or equal to η
0time, judge b
i=0, atomic event does not occur; As cumulative likelihood probability Ω
k ibe more than or equal to η
1time, judge b
i=1, atomic event is judged to be very, and judgement event occurs.Formula is as follows:
Any node is being received after preliminary ruling result this outcome record in buffer memory, in the time receiving the court verdict of another one node, is being carried out compound event judgement according to following criterion:
Decision rule 2: only have in the time that all atomic events of composition compound event are all judged to be "True", judgement event occurs.
Wherein, M is the community set of composition compound event, b
i mfor node n
ithe court verdict of m atomic event.For compound event judgement, we have adopted simple "AND" decision rule, just judge the generation of compound event when all atomic events are judged to be "True".Adopt in this way, in the time there is different event in network, we still can distinguish different event and judge respectively.To intermediate node, when it often receives the court verdict that different nodes send, just its result is carried out to inclusive-OR operation, also ought there is an atomic event to be judged to be true time, we just set this atomic event its detection probability occur to improve.Utilize compound event decision rule judgement event to occur once node, send an alarm bag to aggregation node immediately, meanwhile, alarm bag also sends in the opposite direction, the judgement of notice incident source region node finishes, and stops in advance Packet Generation to save energy.
Node n
idetailed decision steps as follows, wherein S
e ifor node n
ireceive the event source node set of different pieces of information bag, initial condition S
e ifor sky; B
i alertfor Node Events flag bit, B
i alert=1 represents that event occurs, otherwise initial condition B does not occur
i alert=0.
Step S101: first node is made atomic event judgement according to decision rule 1, obtains initial atomic event court verdict [b
i 1, b
i 2..., b
i | M|].
Step S102: node will oneself be classified as urgent source node (b according to different atomic event court verdicts
i m=1) or urgent forward node (b
i m=0).Source node is by preliminary ruling result [b if
i 1, b
i 2..., b
i | M|] being sent to aggregation node with constant rate of speed ξ, the duration is t
ξ; Forward node is kept silent and is only participated in forwarding if.
Step S103: node n
ireceive from node n
jatomic event court verdict time, first check event flag position B
i alert.If B
i alert=1 shows that event occurs, and no longer forwards atomic event court verdict, and goes to step S106.If B
i alert=0 shows that not judgement event occurs, and checks n
jwhether in S set
e iin, if, show once to receive from n
jsame discriminative information, directly forward.If not in S set
e iin, by node n
jadd S
e iin, and upgrade oneself judgement cache information b
i m'=b
i m| b
j m, m ∈ M arbitrarily.
Step S104: node n
ido compound event judgement according to decision rule 2.If Δ
i=1, judgement event occurs, juxtaposition event generation flag bit B
i alert=1.
Step S105: node n
isend event alarms bag Ψ to aggregation node, notify policymaker's emergency to occur, node n
ialso referred to as virtual events source node.
Step S106: node n
ito S
e imiddle node sends event alarms bag Ψ, notices them and adjudicates and finish to stop giving out a contract for a project.
In step S105, the node of making the concurrent outgoing event alarm of conclusive judgement bag Ψ is called virtual events source node by we.Now wireless sensor network enters the reliable stage of noticing of event.In addition,, once compound event decision-making occurs, we should notice source node S in time
e istop sending packet to save energy (step S106).
Wherein S
e ifor node n
ireceive the event source node set of different pieces of information bag, initial condition S
e ifor sky; B
i alertfor Node Events flag bit, B
i alert=1 represents that event occurs, otherwise initial condition B does not occur
i alert=0.First node is made atomic event judgement according to decision rule 1, obtains initial atomic event court verdict [b
i 1, b
i 2..., b
i | M|].Node will oneself be classified as urgent source node (b according to different atomic event court verdicts
i m=1) or urgent forward node (b
i m=0).Source node is by preliminary ruling result [b if
i 1, b
i 2..., b
i | M|] being sent to aggregation node with constant rate of speed ξ, the duration is t
ξ; Forward node is kept silent and is only participated in forwarding if.Node n
ireceive from node n
jatomic event court verdict time, first check event flag position B
i alert.If B
i alert=1 shows that event occurs, no longer forwards atomic event court verdict.If B
i alert=0 shows that not judgement event occurs, and checks n
jwhether in S set
e iin, if, show once to receive from n
jsame discriminative information, directly forward.If not in S set
e iin, by node n
jadd S
e iin, and upgrade oneself judgement cache information b
i m'=b
i m| b
j m, m ∈ M arbitrarily.Node n
ido compound event judgement according to decision rule 2.If Δ
i=1, judgement event occurs, juxtaposition event generation flag bit B
i alert=1.Node n
isend event alarms bag Ψ to aggregation node, notify policymaker's emergency to occur, node n
ialso referred to as virtual events source node.Node n
ito S
e imiddle node sends event alarms bag Ψ, notices them and adjudicates and finish to stop giving out a contract for a project.
As mentioned above, embodiments of the invention are explained, but as long as not departing from fact inventive point of the present invention and effect can have a lot of distortion, this will be readily apparent to persons skilled in the art.Therefore, within such variation is also all included in protection scope of the present invention.