Project · ML in Libraries - Topic ExplorationAI-assisted

Creating and Clustering Patron Data

A small Python program for generating random circulation data, and then using clustering to find trends in the data.

Patron clustering

A small experiment for my ML for Libraries topic exploration (ISLT 7301). Inspired by discussion of k-means clustering analysis in Lund (2026, pp. 88–89).

I simulate patron records. In the future, I want to incorporate data from public libraries, especially the data available from Seattle Public Libraries.

AI Disclosure: While I tried to hand code as much of this program as I could based on some old anthropology notes (see this repo, if you’re interested in that experiment!), I used Claude to help with debugging the clustering code, helping to create the patron data simulation code, and to refactor all of the code (mostly as a sanity check).

DC Dublin Core

Title
Creating and Clustering Patron Data
Subject
machine learning python library science
Description
A small Python program for generating random circulation data, and then using clustering to find trends in the data.
Creator
Brianna R. Imm
Publisher
Brianna R. Imm
Date
2026
Rights
MIT License
Format
application/python
Language
en
Type
software

Citation

Brianna R. Imm, “Creating and Clustering Patron Data,” Papers & Projects, Brianna Imm, https://www.briannaimm.com/items/creating-and-clustering-patron-data/.

Machine-readable: items.json (all items, Dublin Core fields)