In the idealized version of a procedural task—whether it is a surgeon performing a cholecystectomy or a chef following a recipe—actions follow a neat, serial progression. Step A leads to Step B, which leads to Step C. However, researchers have found that real-world workflows are rarely this tidy. Instead, they are defined by non-linearity and volatility: steps are skipped, repeated, reordered, or interrupted by unpredictable events like bleeding or anatomical anomalies.
Understanding these workflows requires moving beyond simple sequence modeling to architectures that can handle flexible state transitions and non-adjacent dependencies.
The Linear Fallacy
Most early attempts at automated workflow recognition assumed a "Markovian" simplicity: the current state is a reliable predictor of the next. But as Ralf Stauder and colleagues noted in their work on the TUM LapChole dataset, surgical procedures are inherently non-linear. A surgeon might clean the operative site or package an organ at various points depending on the specific clinical context, rather than at a fixed chronological slot.
This variability is not just a surgical phenomenon. In the domain of natural language, Jermsak Jermsurawong and Nizar Habash demonstrated that cooking recipes often involve parallel sub-processes that merge at non-adjacent points. Their SIMMR (Simplified Ingredient Merging Map in Recipes) structure treats a recipe not as a list, but as a dependency tree, capturing the complex flow of ingredients that a "bag-of-words" approach misses.
The Challenge of Volatility
If non-linearity is about the order of steps, volatility is about the interruption of steps. In complex interventions like endoscopic pituitary surgery, the workflow is often "volatile"—characterized by high-frequency instrument switching and sporadic secondary tasks.
As highlighted by Adrito Das and the organizers of the PitVis-2023 Challenge, events like emergency haemostasis (bleeding control) do not follow a predictable progression. These out-of-sequence events create "semantic confusion" for AI models. A model trained on a linear assumption might see a sudden switch to a suction tool and incorrectly conclude that the entire surgical phase has changed, rather than recognizing it as a brief, volatile interruption within a larger phase.
From Classification to Localization
To address this, the research direction has shifted from frame-by-frame classification toward temporal localization. Traditional models try to label every millisecond of video, which often leads to "jittery" results in volatile environments.
Zhen Chen and the team behind SurgPLAN++ propose treating surgical phases as "detections" with boundaries rather than just a stream of labels. By using a "pseudo-complete" video augmentation strategy, they allow models to maintain a sense of the overall procedural structure even when the current moment is messy or interrupted. This helps the AI distinguish between a permanent transition to a new phase and a temporary, non-linear detour.
The Generalization Gap
A final hurdle in modeling non-linear workflows is that the "graph" of a procedure changes depending on who is performing it and where. Sebastian Bodenstedt observed that the lack of standardization in surgical styles makes it difficult for models to generalize. What one surgeon considers a standard sequence, another might view as an interruption.
This is further complicated by institutional "local dialects." Sanat Ramesh and Beat P. Müller-Stich found that phases performed routinely in one hospital might be entirely absent in another. Their work on the MultiBypass140 dataset suggests that for AI to truly understand workflows, it must be exposed to the full spectrum of non-linear variations across multiple centers.
Why It Works: Building Intuition
The reason this research direction is succeeding where simple sequence models failed is its embrace of contextual flexibility.
- Temporal Context: Instead of looking at a single frame, models now look at long-range dependencies to see where the current action fits in the "tree" of the procedure (Mezzina et al.).
- Unsupervised Ordering: By training models to simply predict if one frame comes "before" or "after" another (Bodenstedt et al.), the AI learns the underlying logic of the workflow without needing a rigid, human-defined sequence.
- Graph-Based Logic: By treating workflows as sets of dependencies rather than lines, systems can account for parallel tasks and reordered steps without losing their place.
By moving away from the "checklist" mentality, these researchers are building AI that understands the messy, reactive, and highly skilled nature of real-world expertise.