ces. In International Conference on Geographic In-
formation Science, pages 81–96. Springer.
Bavaud, F. and Guex, G. (2012). Interpolating between ran-
dom walks and shortest paths: a path functional ap-
proach. In International Conference on Social Infor-
matics, pages 68–81. Springer.
Besag, J. (1986). On the statistical analysis of dirty pic-
tures. Journal of the Royal Statistical Society. Series
B (Methodological), pages 259–302.
Bougleux, S., Elmoataz, A., and Melkemi, M. (2009). Lo-
cal and nonlocal discrete regularization on weighted
graphs for image and mesh processing. International
journal of computer vision, 84(2):220–236.
Chambolle, A., Cremers, D., and Pock, T. (2012). A con-
vex approach to minimal partitions. SIAM Journal on
Imaging Sciences, 5(4):1113–1158.
Couprie, C., Grady, L., Najman, L., and Talbot, H. (2011).
Power watershed: A unifying graph-based optimiza-
tion framework. IEEE Transactions on Pattern Anal-
ysis and Machine Intelligence, 33(7):1384–1399.
Doyle, P. G. and Snell, J. L. (1984). Random walks
and electric networks. Mathematical Association of
America,.
Grady, L. (2006). Random walks for image segmentation.
IEEE transactions on pattern analysis and machine
intelligence, 28(11):1768–1783.
Grady, L. and Schwartz, E. L. (2006). Isoperimetric graph
partitioning for image segmentation. IEEE transac-
tions on pattern analysis and machine intelligence,
28(3):469–475.
Greig, D. M., Porteous, B. T., and Seheult, A. H. (1989).
Exact maximum a posteriori estimation for binary im-
ages. Journal of the Royal Statistical Society. Series B
(Methodological), pages 271–279.
Guex, G. (2016). Interpolating between random walks
and optimal transportation routes: Flow with multiple
sources and targets. Physica A: Statistical Mechanics
and its Applications, 450:264–277.
Newman, M. E. J. (2006). Modularity and community
structure in networks. Proceedings of the National
Academy of Sciences, 103(23):8577–8582.
Pedregosa, F., Varoquaux, G., Gramfort, A., Michel, V.,
Thirion, B., Grisel, O., Blondel, M., Prettenhofer,
P., Weiss, R., Dubourg, V., Vanderplas, J., Passos,
A., Cournapeau, D., Brucher, M., Perrot, M., and
Duchesnay, E. (2011). Scikit-learn: Machine learning
in Python. Journal of Machine Learning Research,
12:2825–2830.
Rousseeuw, P. J. (1987). Silhouettes: A graphical aid to
the interpretation and validation of cluster analysis.
Journal of Computational and Applied Mathematics,
20:53–65.
Schneider, M. H. and Zenios, S. A. (1990). A comparative
study of algorithms for matrix balancing. Operations
research, 38(3):439–455.
Shi, J. and Malik, J. (2000). Normalized cuts and image
segmentation. IEEE Transactions on pattern analysis
and machine intelligence, 22(8):888–905.
van Rossum, G. (1995). Python tutorial. Technical Re-
port CS-R9526, Centrum voor Wiskunde en Informat-
ica (CWI), Amsterdam.
APPENDIX
Computing E(A, f )
Constructing an exchange matrix E (section 2)
both weight-compatible (that is obeying E1 = f ,
where the regional weights f are given) and reflecting
the spatial structure contained in the binary adjacency
matrix A = (a
i j
) is not trivial, nor that difficult either.
A natural attempt consists in determining a vector
c such that e
i j
= c
i
a
i j
c
j
. The problem can be essen-
tially solved by Sinkhorn iterative fitting (Schneider
and Zenios, 1990)
In this paper, we alternatively consider A as the
infinitesimal generator of a continuous Markov chain
at time t > 0, which yields the diffusive specification
(Bavaud, 2014)
E ≡ E(A, f ,t) = Π
1/2
exp(−tΨ) Π
1/2
(9)
where Π = diag( f ), and
Ψ = Π
−1/2
LA
trace(LA)
Π
−1/2
(LA)
i j
= δ
i j
a
i•
−a
i j
LA is the Laplacian of matrix A, and matrix exponen-
tiation (9) can be performed by spectral decomposi-
tion of Ψ.
The resulting E is semi-definite positive, with lim-
its E = Π for t → 0 (diagonal spatial weights W , ex-
pressing complete spatial autarchy), and E = f f
0
for
t → ∞ (constant spatial weights W , expressing com-
plete mobility). Identity trace(E(t)) = 1 −t + 0(t
2
)
(Bavaud, 2014) shows t to measure, for t 1, the
proportion of distinct regional pairs in the joint distri-
bution E.
Testing spatial autocorrelation
Under the null hypothesis H
0
of absence of spa-
tial autocorrelation, and under normal approximation,
the expected value of the multivariate Moran’s I reads
(Bavaud, 2014)
E
0
(I) =
tr(W ) −1
n −1
where w
i j
=
e
i j
f
i
and its the variance reads
Var
0
(I) =
2
n
2
−1
trace(W
2
) −1 −
(trace(W ) −1)
2
n −1
Spatial autocorrelation is thus significant at level α if
z := |I −E
0
(I)|/
√
Var
0
(I) ≥ u
1−
α
2
, where u
1−
α
2
is the
α
th
quantile of the standard normal distribution.
Multi-labelled Image Segmentation in Irregular, Weighted Networks: A Spatial Autocorrelation Approach
69