English

Identifying Clusters on a Discrete Periodic Lattice via Machine Learning

Computational Physics 2019-07-24 v2 Quantitative Methods

Abstract

Given the ubiquity of lattice models in physics, it is imperative for researchers to possess robust methods for quantifying clusters on the lattice --- whether they be Ising spins or clumps of molecules. Inspired by biophysical studies, we present Python code for handling clusters on a 2D periodic lattice. Properties of individual clusters, such as their area, can be obtained with a few function calls. Our code invokes an unsupervised machine learning method called hierarchical clustering, which is simultaneously effective for the present problem and simple enough for non-experts to grasp qualitatively. Moreover, our code transparently merges clusters neighboring each other across periodic boundaries using breadth-first search (BFS), an algorithm well-documented in computer science pedagogy. The fact that our code is written in Python --- instead of proprietary languages --- further enhances its value for reproducible science.

Keywords

Cite

@article{arxiv.1901.00091,
  title  = {Identifying Clusters on a Discrete Periodic Lattice via Machine Learning},
  author = {Everest Law},
  journal= {arXiv preprint arXiv:1901.00091},
  year   = {2019}
}

Comments

11 pages, 2 figures; code now linked to GitHub; updated authors

R2 v1 2026-06-23T07:00:36.928Z