# Learning When Visual Context Matters for Mouse Behavior Analysis

*Weihan Li, Jingyang Ke, Qinheng Pu, Yule Wang, Chengrui Li, Anqi Wu*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/151213) · [OpenReview](https://openreview.net/forum?id=c7qXkgNCJB) · [Open on the map](../papers.html#p151213)

Category: [Robotics, VLA & World Models](../pcat/4.md) › [3D Pose and Interaction Sensing](../pgroup/123.md) · Type: new method · Keywords: mouse behavior analysis, visual context, pose estimation, residual-guided frame selection, cross-modal learning

Areas: [Multimodal](../areas/multimodal.md) › Multimodal Generation › Human Motion Modeling; [Computer Vision & 3D](../areas/computer-vision.md) › Dynamic Visual Generation › Human Motion Recovery

## Summary
ResiFuse is a framework that integrates visual context only on high-residual frames to improve mouse behavior analysis.

## Explained to a 5-year-old
We watch videos of mice moving around. The computer only looks at their skeleton, which sometimes hides what they are doing. We add pictures of the surroundings only when the computer is unsure. This helps us understand the mice better. It works better than looking at all pictures all the time.

## Explained to a 5-year-old, longer
Scientists want to know what mice are doing by watching videos. Usually they only look at the mouse's skeleton, like a stick figure. This works okay, but sometimes the mouse is hidden behind other mice or objects. The researchers noticed that adding the background picture can help, but not for every frame. They taught a computer program to notice when it is confused by the skeleton. When the program is confused, they add the picture of the surroundings. This way they only use extra pictures where they are needed. They tested this on many videos of mice and found it works better than using pictures everywhere. The new method helps scientists understand mouse behavior more accurately. It is especially useful in busy social situations where mice interact.

## For a technical reader
The paper addresses the limitation of pose-only models for mouse behavior analysis by selectively incorporating visual context. A motion encoder trained on pose data learns a codebook of typical motions and flags frames with large quantization residuals as “hard” frames. At fine-tuning, only those hard frames receive additional visual features, reducing computational cost while improving accuracy. Experiments on three datasets show consistent gains over both pure pose and dense video baselines, especially in socially complex recordings. The approach is generic and could be applied to any domain where multimodal context is beneficial only in ambiguous regions.

## Problem
Accurately classifying and segmenting mouse behavior from video is challenging because pose-based methods lack environmental context and degrade under occlusion, especially in social settings.

## Method
A pose-based motion encoder is pretrained with auxiliary video supervision and a cross-modal loss; at fine-tuning, visual context is added only to frames with high quantization residuals identified by the encoder.

## Results
ResiFuse improves performance over pose- and video-based baselines on most tasks, especially on socially complex datasets.

## Contributions
The paper introduces a residual-guided frame selection strategy that leverages visual context only where pose fails, and demonstrates consistent gains across multiple mouse behavior datasets.

## Practical relevance
The approach enables more accurate, context-aware behavior analysis for neuroscience research and animal studies.

## Research questions this paper is counted under

- [How can we reliably infer human intent and actions from ambiguous, noisy sensor observations without auxiliary signals?](../q/290.md)

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/151213)
