- Introduced by
- Andrew Abbott & Angela Tsay (optimal matching in sociology); applied to time-use leisure sequences
- Year
- 2000
- Type
- Order-aware pipeline for clustering daily leisure activity sequences
- Family
- Sequence analysis / optimal matching
What does it do?
Leisure time-use sequence analysis treats a person's day as an ordered sequence of states rather than as a set of activity totals, and asks which whole-day leisure patterns recur across a population.
It adapts optimal matching, an alignment technique that Andrew Abbott and Angela Tsay reviewed for sociological sequence data, to time-use diaries: each day becomes a string of categorical states (sport, active leisure, passive leisure, work, sleep, and so on) sampled at regular intervals, and the dissimilarity between two days is the minimum cost of editing one string into the other. Clustering that dissimilarity matrix yields a typology of leisure days, such as an active-morning day or an evening screen-leisure day, that preserves the timing and ordering which duration tallies discard.
The intuition behind the method
Two people might both record exactly ninety minutes of sport and three hours of television, yet live completely different days: one squeezes a dawn run before work and unwinds with TV at night, the other slumps in front of screens all afternoon and trains late in the evening. Totals cannot tell them apart, but the order tells the whole story. Sequence analysis takes order seriously by writing each day out as a string -- sleep, sleep, sport, work, work, lunch, work, passive, passive -- and measuring how alike two days are by how much editing it takes to turn one string into the other. Days that need little editing are similar; days that need a lot are different. Once every pair of days has a distance, ordinary clustering groups them into a handful of recognizable day types, and the analyst can ask who lives which kind of leisure day and why.
History
Optimal matching was adapted to the social sciences from alignment methods originally developed for comparing biological sequences. Abbott and Tsay's 2000 review in Sociological Methods & Research surveyed the known OM studies of social science sequence data, discussing data, coding, temporality, cost setting, and analytic strategy, and concluded that the most promising applications were studies of careers and of sequentially organized cultural artifacts. Cornwell, Gershuny and Sullivan's 2019 Annual Review of Sociology article describes the growth of harmonized time-diary data, including the Multinational Time Use Study, and discusses methodological advances in analysing the temporal sequential structure of everyday activities. The specific use of these methods for leisure time-use diaries is a later development, and the cited sources document the general approach rather than this application.
When to use it
Use leisure time-use sequence analysis when the order and timing of activities across the day, not just their totals, carry the meaning you care about, and when you have time-stamped sequence data, typically from time-use diaries. It is well suited to building empirical typologies of how people organize their leisure days, to studying the scheduling and fragmentation of sport and recreation, and to examining how daily structure differs across groups or has changed over time. Because results depend on the coding and cost choices described under Limitations, the typology should be checked for robustness. It is less appropriate when activity totals fully answer the question, when sequences are very short or noisy, or when you need a model of the causes of each transition rather than a holistic comparison of whole days, for which event-history or Markov approaches are better suited. As an inherently descriptive, exploratory technique, it is best used to discover and characterize patterns rather than to test sharp causal hypotheses. Before applying it, make sure that all sequences lie on a common grid of equal length, that missing or non-responding slots are handled explicitly rather than silently dropped, and that you know how many diary days each person contributes. Consider sampling weights in descriptive summaries, and report the sample size and day-level coverage.
Limitations and considerations
- Results are sensitive to the substitution and indel cost scheme, which is partly a matter of analyst judgment and can change the typology.
- The method is descriptive and exploratory; clusters are not natural kinds and do not by themselves establish causal mechanisms.
- Choice of state alphabet and time-slot resolution strongly shapes findings and can fragment or erase leisure distinctions.
- Optimal matching distances are computationally and conceptually demanding to interpret, and cluster number selection is somewhat arbitrary.
Source conditions do not replace independent scientific review or validation by an analysis engine.
Strengths
- Preserves the timing and ordering of activities that duration-only measures discard, distinguishing days with identical totals but different rhythms.
- Produces interpretable, holistic typologies of leisure days that summarize complex diary data into a shared vocabulary of patterns.
- The cost scheme makes the analyst's theory of leisure similarity explicit and adjustable rather than hidden.
- Integrates naturally with time-use diary archives and downstream modelling of who experiences which day type.
Applications
- Building typologies of how people organize their leisure and sport across the day, such as morning-active versus evening-screen days.
- Comparing the daily structure of leisure between groups defined by gender, employment status, or life stage.
- Studying the fragmentation and scheduling of physical activity within the day rather than its total volume.
- Tracking historical change in the sequencing of work, leisure, and rest using repeated harmonized time-use surveys.
- Linking day-type membership to outcomes such as well-being, time pressure, or health behaviors.
How it works
How it works
Each person's day is first encoded as a state sequence. Diary episodes are sampled onto a regular grid, commonly ten- or fifteen-minute slots across the 24-hour day, and each slot receives one categorical state from a small alphabet such as sport, active leisure, passive leisure, work, sleep, and other. The alphabet and slot length are analyst conventions, and they are consequential: a very fine alphabet fragments patterns, while a very coarse one erases the leisure distinctions of interest, so the coding should follow the research question. All sequences should share the same grid length, and missing slots need an explicit rule (for example, a dedicated missing state or exclusion of the day).
Formula
x_i = (s_{i,1}, s_{i,2}, \dots, s_{i,T}),\quad s_{i,t} \in \Sigma = \{\text{sport, active, passive, work, sleep, other}\}Next the analyst specifies how costly it is to edit one sequence into another. Optimal matching uses two operations, insertion or deletion (indel), which shifts the timing of states, and substitution, which replaces one state with another, each with a cost. Equal substitution costs treat all state swaps as equally dissimilar, whereas theory- or data-driven costs (for example, making sport and active leisure cheaper to substitute for each other than sport and sleep) encode judgments about leisure similarity directly into the distance. The relative size of substitution and indel costs also matters: it determines whether timing shifts or changes of state dominate the distance, so the cost ratio should be reported and varied in a sensitivity check. Abbott and Tsay's review treats cost setting as one of the key issues in OM applications, and the choice should be reported explicitly because it shapes the resulting distances.
Formula
\text{sub}(a,b)\ \ \text{indel cost } = 1,\quad \text{sub}(a,a)=0,\ \ \text{sub}(a,b) = c_{ab} > 0With costs fixed, the optimal matching distance between two days is the minimum total cost of the edits that transform one sequence into the other, computed efficiently by dynamic programming. The distance is small when two days share the same activities in roughly the same order and large when they differ in content or timing. Because it compares whole trajectories through an alignment, it respects order rather than reducing each day to summary counts.
Formula
d_{OM}(x_i, x_j) = \min_{\text{ops}} \sum (\text{indel} + \text{sub costs})\ \text{transforming } x_i \to x_jThe pairwise distances form an N-by-N dissimilarity matrix, which is submitted to a clustering method such as Ward's hierarchical method or partitioning around medoids (PAM) to extract a manageable number of day types. Because clustering works on the full distance matrix, the groups reflect similarity in both the composition and the sequencing of activities. Ward's method was designed for squared Euclidean distances, so its use with OM distances is a pragmatic choice, and results should be compared with another method such as PAM. Choose the number of types K by examining several candidate solutions with diagnostics such as average silhouette width or Hubert's C, checking the stability of cluster assignments, and weighing interpretability, rather than relying on a single index. Each cluster should correspond to a characteristic way of organizing a leisure day.
Formula
D = [d_{OM}(x_i,x_j)]_{N\times N} \xrightarrow{\text{Ward / PAM}} \{C_1, \dots, C_K\}Each day type is then summarized by its state distribution across the day, often shown as a chronogram of the prevalence of each activity slot by slot, which gives the type its descriptive label. Membership in each type can subsequently be modelled as a function of covariates such as gender, employment, or life stage, to examine who experiences which patterns of leisure and sport. The resulting types are best read as a shared vocabulary for describing typical days rather than as fixed categories.
Formula
\text{type } C_k:\ \text{state distribution } f_t^{(k)}(\sigma),\ \ \text{covariate profile } \Pr(C_k \mid Z)Common pitfalls
- Adopting default equal substitution costs without asking whether they encode a defensible theory of leisure similarity, or without examining how the substitution-to-indel cost ratio affects the result.
- Treating the extracted day-type clusters as real, stable categories rather than as a convenient summary of a continuous distance space.
- Choosing the number of clusters to fit a preferred story instead of comparing several solutions with validity diagnostics, stability checks and interpretability together.
- Ignoring that very different alphabets or slot lengths can yield incompatible typologies, then comparing studies that used different codings.
- Regressing cluster membership on covariates as if the clusters were observed, ignoring that they were estimated from the same data; this can overstate precision and ignores classification uncertainty.
Frequently asked questions
How does sequence analysis differ from just adding up minutes of each activity?
Adding up minutes collapses the day into totals and throws away order, so two people with identical totals but completely different daily rhythms look the same. Sequence analysis keeps the day as an ordered string and measures similarity by how much editing is needed to turn one day into another, so it can distinguish a dawn-run-then-evening-TV day from an all-afternoon-screen-then-late-training day even when their totals match. The price is added complexity and dependence on a cost scheme, but the gain is a holistic, timing-aware comparison that duration tallies cannot provide.
How should I set the substitution costs?
There is no universally correct answer, so cost-setting is a decision that must be justified explicitly. Equal substitution costs treat every state swap as equally dissimilar and are a common starting point, but the size of substitution costs relative to the indel cost determines whether timing shifts or state changes dominate the distance. Theory-driven costs let you encode that, say, swapping sport for active leisure is less of a difference than swapping sport for sleep. Data-driven schemes derive costs from observed transition rates between states. Whatever you choose, report the costs and their ratio, and check whether your typology is robust to reasonable alternatives, because the distances, and therefore the clusters, can shift with the costs.
Are the day types it produces 'real'?
They are useful summaries, not natural kinds. Clustering partitions a continuous space of pairwise distances into groups for interpretability, but individuals near cluster boundaries could plausibly belong to a neighboring type, and a different number of clusters would tell a slightly different story. Treat the typology as a vocabulary for describing recurrent patterns of leisure days and for relating those patterns to covariates, and validate it with cluster-quality diagnostics, stability checks and substantive interpretability rather than presenting the types as fixed categories that exist independently of the analysis.
Related methods
Sources
Abbott, A., & Tsay, A. (2000). Sequence Analysis and Optimal Matching Methods in Sociology: Review and Prospect. Sociological Methods & Research, 29(1), 3-33.
Open DOI referenceCornwell, B., Gershuny, J., & Sullivan, O. (2019). The Social Structure of Time: Emerging Trends and New Directions. Annual Review of Sociology, 45, 301-320.
Open DOI reference