Schulich School of Engineering
Automated Theme Extraction from Homeless Shelter Case Notes: A Comparative Evaluation of Machine Learning and Large Language Model Methods
Abstract
dc:description.abstractAutomated analysis of homeless shelter case notes represents a largely unexplored opportunity for deriving population-level insights from data that are rich in contextual information but challenging to interpret at scale. Frontline staff often document client interactions and behaviours in these notes in an unstructured, narrative format. The considerable variability of case notes renders manual interpretation highly time-intensive, and systematic population-level analysis challenging. This work investigated the feasibility of automated methods to accurately identify instances of abstract themes in case notes, with a focus on practical methods suited to resource-constrained settings. These methods include rule-based and traditional machine learning baselines, as well as transformer-based zero-shot classification, and prompt engineering and fine-tuning of smaller open-source language models. A manually annotated subset of case notes from the Calgary Drop-In Centre served as the basis for method development and evaluation. Based on existing literature and input from shelter staff, 34 themes spanning key topics of interest, such as behaviour, substance use, and housing, were developed. The data labelling process produced a structured annotation guideline that informed subsequent method development, and inter-coder agreement analysis revealed that abstract, context-dependent themes present significant challenges for consistent annotation. Labelling disagreement was found to be a meaningful predictor of automated theme extraction difficulty. Our results indicate that no single method consistently outperformed others across all themes, with performance largely determined by theme complexity and subjectivity. Concrete themes that were explicitly expressed in the notes could be reliably extracted using simpler approaches, while more abstract and subjective themes benefited from the use of machine learning and LLM-based methods. Prompt structure and format were found to be important considerations affecting both classification performance and inference time. We also found that themes with high variation or requiring domain-specific contextual interpretation posed challenges for both human labelling and automated extraction, resulting in limited classification accuracy across all methods. Overall, these findings highlight both the potential and the inherent challenges of automated theme extraction in this domain, and provide a foundation for future population-level analysis of shelter client needs.
Degree
thesis:*- Name thesis:degree_name
- Master of Science (MSc)
- Discipline thesis:degree_discipline
- Engineering – Electrical & Computer
- Grantor
- Schulich School of Engineering
- Year dc:date.issued
- 2026
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Selvaraj, Madhumitha
- Advisors dc:contributor.advisor
-
- Messier, Geoffrey
- Ioannou, Yani
- Committee members dc:contributor.committeemember
-
- Yanushkevich, Svetlana
- Bento, Mariana
Subjects
dc:subject × 8Rights
dc:rights- Statement dc:rights
-
- Unless otherwise indicated, this material is protected by copyright and has been made available with authorization from the copyright owner. You may use this material in any way that is permitted by the Copyright Act or through licensing that has been assigned to the document. For uses that are not allowable under copyright legislation or licensing, you are required to seek permission.
- Language dc:language.iso
- en
Identifiers
dc:identifier.*- Dc Identifier Citation
- Selvaraj, M. (2026). Automated theme extraction from homeless shelter case notes: a comparative evaluation of machine learning and large language model methods (Master's thesis, University of Calgary, Calgary, Canada). Retrieved from https://ucalgary.scholaris.ca.