← Latest papers
🤖 machine learning

A case study of evaluating AI agents on a neuroscience data-to-discovery pipeline

This paper presents an empirical study evaluating general-purpose AI coding agents on a complex neuroscience data-to-discovery pipeline, revealing that while agents can automate individual stages, they currently struggle with end-to-end execution, self-evaluation without predefined criteria, and generalization to new data.

Original authors: Kai A. Horstmann, Ethan Lin, Alice A. Robie, Jennifer J. Sun, Kristin Branson

Published 2026-08-12
📖 5 min read🧠 Deep dive

Original authors: Kai A. Horstmann, Ethan Lin, Alice A. Robie, Jennifer J. Sun, Kristin Branson

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine a world where scientists don't just run experiments, but also spend months writing the complex computer code needed to analyze the results. In the field of neuroscience, researchers often study tiny creatures like fruit flies to understand how brains control behavior. To do this, they record hours of video, but the raw footage is just a blur of moving dots. To turn that blur into a scientific discovery, they need a "pipeline"—a long, winding assembly line of software steps. First, the computer must find the flies in the video. Then, it has to track their every move, measure their body parts, figure out if they are walking or standing still, and finally run statistical tests to see if a specific experiment changed their behavior. Traditionally, building this assembly line is a massive, tedious job that takes human experts weeks or even months of coding.

Recently, a new kind of artificial intelligence called an "AI agent" has emerged. Think of these agents as super-smart, tireless digital interns who can read instructions and write code for you. The big question on everyone's mind is: Can these AI interns take over the boring, time-consuming parts of scientific research? Can they build the assembly line themselves, or do they need a human to hold their hand every step of the way? This is the exact mystery a team of researchers set out to solve. They wanted to see if these AI agents could handle the messy, real-world challenges of neuroscience, or if they would get stuck in the details.

The researchers decided to test their AI interns on a very specific, high-stakes challenge: a "fly optogenetics data-to-discovery pipeline." Imagine this pipeline as a seven-stage obstacle course designed to turn raw video of fruit flies into a scientific conclusion. The course starts with Fly Body Tracking, where the AI must find and follow multiple flies in a video, keeping their identities straight even when they bump into each other. Next comes Registration, where the AI has to clean up the data and translate it from pixel coordinates into real-world measurements like millimeters. Then, the AI must perform Keypoint Tracking, which is like drawing a skeleton on every fly to pinpoint 21 specific body parts with extreme precision.

The course continues with Feature Computation, where the AI calculates how fast the flies are moving or turning. It then moves to Walking Behavior Classification, asking the AI to decide if a fly is walking or just standing still. The sixth stage is Gait Segmentation, a tricky step where the AI must determine if a specific leg is in the air (swinging) or on the ground (pushing). Finally, the AI reaches the finish line with Statistical Comparisons, where it must crunch the numbers to see if the experiment actually changed the flies' behavior. The researchers tested several different AI models on this course, both by asking them to solve just one stage at a time and by asking them to run the entire seven-stage marathon from start to finish.

The results were a mix of impressive success and frustrating failure, revealing that AI is ready for some jobs but not others. When the AI agents were given a single, well-defined task with a clear "scorecard"—like training a model to recognize walking behavior or tracking specific body parts—they did surprisingly well. In these "supervised learning" tasks, the agents could iterate, check their own work, and improve until they got it right. For example, they successfully learned to identify the 21 keypoints on a fly's body, matching the accuracy of human experts. This suggests that for specific, rule-based parts of the scientific pipeline, AI agents are already capable of doing the heavy lifting.

However, the story changes dramatically when the AI agents were asked to run the entire pipeline end-to-end without a detailed map. When the researchers gave the agents a broad goal like "analyze the flies" without breaking it down into steps, the agents struggled to keep their focus. They often forgot the earlier steps, merged complex stages into simple shortcuts, or made basic formatting errors that caused the whole chain to break. The most significant failure happened in the very first stage: Fly Body Tracking. This task required the AI to use its "scientific judgment" to figure out how to track flies without a pre-written rulebook or a clear score to aim for. The agents tried to look at the video to check their work, but they largely failed to understand what they were seeing. They would spot an error, misinterpret the visual clue, and then make the same mistake again, or even make it worse.

The paper suggests that the main bottleneck isn't that the AI can't write code; it's that they struggle with the "long game." They are great at solving a single puzzle if the rules are clear, but they get lost when they have to string together a long sequence of complex steps, manage computer resources, or use visual inspection to fix their own mistakes. The researchers found that while AI can automate specific stages of scientific discovery, the dream of a fully autonomous "AI scientist" that can run a whole experiment from raw data to a conclusion is still out of reach. The agents need better guidance, clearer goals, and a way to truly "see" and understand the data they are processing before they can be trusted to run the entire show on their own.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →