Skip to main content
QUICK REVIEW

[論文レビュー] AmadeusGPT: a natural language interface for interactive animal behavioral analysis

Shaokai Ye, Jessy Lauer|arXiv (Cornell University)|Jul 10, 2023
Data Stream Mining TechniquesComputer Science被引用数 13
ひとこと要約

AmadeusGPTは、動物の行動のユーザー記述を実行可能なPythonコードへ翻訳する自然言語インターフェースを提供します。拡張されたGPT-3.5とデュアルメモリシステム、およびコア行動モジュールを活用して、動画データからの対話型でコーディング不要の行動分析を実現します。

ABSTRACT

The process of quantifying and analyzing animal behavior involves translating the naturally occurring descriptive language of their actions into machine-readable code. Yet, codifying behavior analysis is often challenging without deep understanding of animal behavior and technical machine learning knowledge. To limit this gap, we introduce AmadeusGPT: a natural language interface that turns natural language descriptions of behaviors into machine-executable code. Large-language models (LLMs) such as GPT3.5 and GPT4 allow for interactive language-based queries that are potentially well suited for making interactive behavior analysis. However, the comprehension capability of these LLMs is limited by the context window size, which prevents it from remembering distant conversations. To overcome the context window limitation, we implement a novel dual-memory mechanism to allow communication between short-term and long-term memory using symbols as context pointers for retrieval and saving. Concretely, users directly use language-based definitions of behavior and our augmented GPT develops code based on the core AmadeusGPT API, which contains machine learning, computer vision, spatio-temporal reasoning, and visualization modules. Users then can interactively refine results, and seamlessly add new behavioral modules as needed. We benchmark AmadeusGPT and show we can produce state-of-the-art performance on the MABE 2022 behavior challenge tasks. Note, an end-user would not need to write any code to achieve this. Thus, collectively AmadeusGPT presents a novel way to merge deep biological knowledge, large-language models, and core computer vision modules into a more naturally intelligent system. Code and demos can be found at: https://github.com/AdaptiveMotorControlLab/AmadeusGPT.

研究の動機と目的

  • 自然言語プロンプトと行動分析パイプラインを橋渡しし、ライフサイエンティストによるコーディングの必要を減らす。
  • 動画データからの対話型の動物行動分析の定義と改良を可能にする。
  • モジュラーAPIを介して姿勢推定、物体セグメンテーション、時空間推論を統合する。
  • LLMのコンテキスト窓の制約を克服するメモリ機構で堅牢な実行を維持する。
  • 標準的な行動データセットで性能をベンチマークし、実用性と精度を評価する。

提案手法

  • 再定義された、原子性の高く再利用可能な関数を前提としたAPIで拡張GPT-3.5を強化。
  • 現在の文脈のための短期メモリと、セッションを横断して保持する記号ベースのポインタを用いた長期メモリを持つデュアルメモリシステム。
  • 運動学的特徴解析、動物–物体/環境の状態モデリング、時空間推論のコア行動モジュール。
  • 推論時にタスク固有の能力を選択するための埋め込みを用いた動的ロード機能を備えた統合モジュール。
  • エラーハンドリング、分布外プロンプトの再表現、結果をユーザーのクエリに結びつける説明モジュール。
Figure 1: AmadeusGPT: a LLM, computer vision, and task reasoning platform for animal behavior. Users input video and prompts and AmadeusGPT queries our API docs and reasons about which models and analysis to deploy.
Figure 1: AmadeusGPT: a LLM, computer vision, and task reasoning platform for animal behavior. Users input video and prompts and AmadeusGPT queries our API docs and reasons about which models and analysis to deploy.

実験結果

リサーチクエスチョン

  • RQ1自然言語インターフェースは、視覚モデルを活用した姿勢推定とセグメンテーションを取り入れた実行可能なPythonコードへ、ユーザーの行動記述を変換できるか。
  • RQ2デュアルメモリ機構は文脈窓の制約を緩和し、セッション間でタスク定義を保持できるか。
  • RQ3AmadeusGPTは従来の機械学習ベースのアプローチと比べて標準的な行動ベンチマークでどのように性能を発揮するか。
  • RQ4システムは動画データからの行動分析を対話的に改良し、リアルタイムの可視化をサポートできるか。

主な発見

  • AmadeusGPTは公式の行動定義と密接に整合したプロンプト定義を使用して、MABE 2022 行動チャレンジ課題で最先端に近いパフォーマンスを達成。
  • デュアルメモリ機構はセッションとトークン制限付き相互作用を横断して定義済みの行動と適用状態を効果的に保持。
  • 主にルールベースのアプローチで、少ない調整パラメータを必要としつつ、EPM、MausHaus、MABe 2022などのデータセットで堅牢な行動分析を示す。
  • 再表現コンポーネントを備えた分布外プロンプトの成功率は88%で、現実のプロンプトでの信頼性向上を示す。
  • SuperAnimalの姿勢推定とSAMとの統合により、生データからのコーディングなしのエンドツーエンド分析を実現。
Figure 2: Schematic of AmadeusGPT design and features .
Figure 2: Schematic of AmadeusGPT design and features .

この論文を読む

Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。

Nubintでこの論文を読む

このレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。