CS224W: Analysis of Networks Jure Leskovec, Stanford University
http://cs224w.stanford.edu
HW2 Q1.1 parts (b) and (c) cancelled. HW3 released. It is long. Start early.
http://cs224w.stanford.edu (1) New problem: Outbreak detection (2) - - PowerPoint PPT Presentation
HW2 Q1.1 parts (b) and (c) cancelled. HW3 released. It is long. Start early. CS224W: Analysis of Networks Jure Leskovec, Stanford University http://cs224w.stanford.edu (1) New problem: Outbreak detection (2) Develop an approximation
HW2 Q1.1 parts (b) and (c) cancelled. HW3 released. It is long. Start early.
10/26/17 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu 2
10/26/17 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu 3
S S
Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu 4
Blogs Posts Time
hyperlinks Information cascade
10/26/17
10/26/17 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu 5
6 10/26/17 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu
10/26/17 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu 7
S2 S3 S4 S1 S2 S3 S4 S1
High sensing “quality” (e.g., f(S) = 0.9) Low sensing “quality” (e.g. f(S)=0.01) High impact
Medium impact
Low impact
Sensor reduces impact through early detection!
S1
Contamination Set V of all network junctions
10/26/17 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu 8
Water distribution network (physical pipes and junctions) Simulator of water consumption&flow
(built by Mech. Eng. people) We simulate the contamination spread for every possible location.
10/26/17 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu 9
The network of the blogosphere Traces of the information flow and identify influence sets
Collect lots of blogs posts and trace hyperlinks to obtain data about information flow from a given blog.
a b c a b c
10/26/17 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu 10
Expected reward for detecting outbreak i
P(i)… probability of outbreak i occurring. f(i)… reward for detecting outbreak i using sensors S.
11
Monitoring blue node saves more people than monitoring the green node
1 2 3 6 7 5 9 11 10 8
10/26/17 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu
12 10/26/17 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu
10/26/17 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu 13
S1 S2
Placement S={s1, s2}
S’
New sensor: Adding s’helps a lot
S2 S4 S1 S3
Placement S’={s1, s2, s3, s4}
s’
Adding s’helps very little
7 𝐵 ∪ 𝑡
7 𝐵 , also 𝑔 7 𝐶 ∪ 𝑡
7 𝐶 and so
7 𝐵 ∪ 𝑡
7 𝐵 = 0 = 𝑔 7 𝐶 ∪ 𝑡
7 𝐶
10/26/17 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu 14
7 𝐵 ∪ 𝑡
7 𝐵 ≥ 0 = 𝑔 7 𝐶 ∪ 𝑡
7 𝐶
7 𝐵 ∪ 𝑡
7 𝐵 = 𝜌7 ∞ − 𝜌7 𝑈 𝑡, 𝑗
7(𝐵) ≥
7(𝐶) = 𝑔 7 𝐶 ∪ 𝑡
7 𝐶
7(⋅), i.e., 𝑔 7 𝐵 ≤ 𝑔 7(𝐶)
10/26/17 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu 15
𝑔 𝑇 = 5 𝑄 𝑗 𝑔
7 𝑇
𝟐 𝒇) ⋅ 𝑷𝑸𝑼
Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu Part 2-16
a b c a b c d d reward e e
Add sensor with highest marginal gain
10/26/17
10/26/17 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu 18
10/26/17 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu 19
d∈1
Greedily pick sensor 𝒕𝒋 that maximizes benefit to cost ratio.
10/26/17 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu 20
This algorithm incentivizes choosing nodes with very low cost, even when slightly more expensive ones can lead to much better global results.
10/26/17 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu 21
This is surprising: We have two clearly suboptimal solutions, but taking best of the two is guaranteed to give a near-optimal solution.
Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu 23
a b c a b c d d reward e e
Add sensor with highest marginal gain
10/26/17
10/26/17 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu 24
u di(u) ³ dj(u)
Activating node u in step i helps more than activating it at step j (j>i)
10/26/17 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu 25
a b c d Marginal gain e
S Í T S1={a}
10/26/17 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu 26
a d b c e Marginal gain
S Í T S1={a}
10/26/17 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu 27
a c d b e Marginal gain
S Í T S1={a} S2={a,b}
10/26/17 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu 28
10/26/17 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu 30
10/26/17 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu 31
10/26/17 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu 32
Instead of taking tiÎOPT (of benefit 𝜀(𝑢7)), we take the best possible element (𝜀(𝑗)) (we proved this last time)
10/26/17 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu 34
35
Solution quality F(A) Higher is better 5 10 15 20 0.2 0.4 0.6 0.8 1 1.2 1.4
the (1-1/e) bound
Number of sensors placed
10/26/17 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu
10/26/17 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu 36
Author Score
26 Sandia 21 U Exter 20 Bentley systems 19 Technion (1) 14 Bordeaux 12 U Cyprus 11 U Guelph 7 U Michigan 4 Michigan Tech U 3 Malcolm 2 Proteo 2 Technion (2) 1
Battle of Water Sensor Networks competition
[w/ Ostfeld et al., J. of Water Resource Planning]
37
Population affected Detection likelihood
10/26/17 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu
10/26/17 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu 38
39
10/26/17 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu
10/26/17 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu 40
41 10/26/17 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu
10/26/17 42 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu
vs.
10/26/17 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu 43
10/26/17 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu 44
10/26/17 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu 45
Each curve represents a set of solutions S with the same final reward f(S) Score f(S)=0.4
f(S)=0.3 f(S)=0.2
Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu Part 2-46 10/26/17
10/26/17 Jure Leskovec, Stanford CS224W: Analysis of Networks, http://cs224w.stanford.edu 47
[Leskovec et al., KDD ’07]