Introduction: The Mobile Interaction Challenge
Interactive image segmentation—the process of extracting an object from its background with human guidance—traditionally relies on "seeds" or "scribbles." While effective on desktops, this approach falters on mobile devices due to the "fat finger" problem. Touchscreens lack the precision of a mouse, making it difficult to draw fine lines without accidentally crossing object boundaries. These imprecise annotations often confuse standard algorithms, leading to poor segmentation results.
SwipeCut reimagines this interaction for the mobile era. Instead of requiring the user to draw precise boundaries, the algorithm takes an active role by proposing a small, diversified set of query points. The user then defines the object of interest with a simple, effortless "swipe-to-select" gesture.
Methodology: Active Querying and Two-Layer Graphs
The technical foundation of SwipeCut rests on a diversified seed proposal algorithm paired with a novel two-layer graph structure.
1. Two-Layer Graph Construction
To ensure both local detail and global consistency, SwipeCut uses a hierarchical approach. The image is first over-segmented into superpixels. These superpixels are then grouped into larger "trees" using a Minimum Spanning Tree (MST) approach. This structure allows label information to propagate rapidly across the image, ensuring that pixels within the same semantic region receive the same label.
2. Seed Assessment & Diversification
At each interaction round, the algorithm identifies the most informative points to query. It selects seeds based on three criteria:
- Confidence: Points far from existing labels are prioritized.
- Influence: Points representing larger "trees" in the graph are favored.
- Diversity: Seeds are spatially separated to ensure the user can easily swipe through them without accidental selections.
3. The Swipe Interaction and Propagation
The user swipes through the proposed seeds (red crosses) that fall within the target object. Any seed not touched by the swipe is automatically labeled as background. These labels are then propagated across the two-layer graph using shortest-path distances to generate the final mask.
Key Results
SwipeCut was evaluated across six diverse datasets, including natural images (VOC, SBD) and medical MRI slices (IBSR).
- Efficiency: The algorithm is exceptionally fast, with an average response time per iteration of less than 0.002 seconds.
- Accuracy: SwipeCut consistently achieves higher Dice scores (overlap with ground truth) with fewer user interactions than traditional methods like Lazy Snapping or Random Walks.
- User Experience: A study with 10 participants confirmed that users spent less time per image and reported lower cognitive load compared to traditional scribble-based tools.
Conclusion and Future Work
SwipeCut demonstrates that by making the algorithm an active participant in the annotation process, we can overcome the physical limitations of touch interfaces. While currently limited by the quality of initial superpixels, future iterations could integrate deep learning features (from CNNs) to further improve seed informativeness and segmentation accuracy in highly complex scenes.
Summary updated