Detection of an arbitrary number of communities in a block spin Ising model

M Miguel Ballesteros R Ramsès H. Mena J Josè Luis Pèrez G Gabor Toth

Abstract

We study the problem of community detection in a general version of the block spin Ising model featuring M groups, a model inspired by the Curie-Weiss model of ferromagnetism in statistical mechanics. We solve the general problem of identifying any number of groups with any possible coupling constants. Up to now, the problem was only solved for the specific situation with two groups of identical size and identical interactions, see [1, 2]. Our results can be applied to the most realistic situations, in which there are many groups of different sizes and different interactions. In addition, we give an explicit algorithm that permits the reconstruction of the structure of the model from a sample of observations based on the comparison of empirical correlations of the spin variables, thus unveiling easy applications of the model to real-world voting data and communities in biology.

Article Details

Journal PLoS ONE
Volume / Issue Vol. 21, Issue 3
Published March 17, 2026
Pages e0339060
ISSN 1932-6203
Publisher Public Library of Science

Journal Info

PLoS ONE

Public Library of Science

ISSN: 1932-6203 Open Access Health Sciences

Authors (4)

M

Miguel Ballesteros

R

Ramsès H. Mena

J

Josè Luis Pèrez

G

Gabor Toth