Autonomous AI agent for universal behavior analysis (BehaveAgent v1.0).
Preprint: https://www.biorxiv.org/content/10.1101/2025.05.15.653585v1
BehaveAgent automates behavior analysis from video without manual intervention, leveraging multimodal AI to generalize across species and experimental paradigms. It integrates LLMs, vision-language models, and visual grounding to perform tracking, temporal action detection, and behavior segmentation. BehaveAgent autonomously detects behavioral tasks and paradigms, selects appropriate analysis strategies, generates code for custom analyses, and produces comprehensive reports, introducing a new way of behavior analysis.
We are finalizing the code for end users, focusing on accessibility and ease of setup. Stay tuned β itβs coming soon!
β If youβre interested in following the development and helping us grow, consider starring this repository!
- Fully Autonomous Analysis: End-to-end behavior analysis from video without manual intervention.
- Multimodal AI Integration: Combines LLMs, vision-language models, and visual grounding for robust, context-aware analysis.
- Zero-Shot Generalization: Analyzes novel species and experimental paradigms without additional fine-tunning.
- Adaptive Strategy Selection: Automatically identifies the correct analysis approach for diverse tasks.
- Core Data Outputs: Extracts critical behavioral data, including feature positions as coordinates, temporal action segmentation, and precise tracking.
- Autonomous Code Generation: Dynamically generates and executes code for specialized analyses.
- Interpretable Reasoning: Provides transparent explanations for behavior identification and feature tracking.
- Integrated Reporting: Automatically generates scientific reports with context-specific insights.
- Interactive Analysis: Supports real-time, human-in-the-loop exploration, adjustment, and visualization of tracked data.
βββ main_gui.py # Main Streamlit frontend script
βββ behave_ai.py # Core BehaviorAgent class
βββ interactive_mode.py # Switching from autonomous AI to Human-AI collaboration
βββ tools/ # Directory containing analysis tool modules
β βββ identifying_experiment.py
β βββ evaluating_behavior_resolution.py
β βββ feature_tracking.py
β βββ behavior_segmentation.py
β βββ object_segment.py
β βββ goal_clarification_tool.py
β βββ report.py
β βββ filter.py
β βββ python_repl_tool.py
β βββ __init__.py
β βββ memory/
β βββ context_information
β βββ report
β βββ produced_data
βββ requirements.txt # Python dependencies
βββ config.env # API keys and configuration
βββ README.md # This file
