Back to AI Research

AI Research

LongAgent: History-Guided Agentic Search for Longit... | AI Research

Key Takeaways

  • LongAgent: History-Guided Agentic Search for Longitudinal Outcome Prediction Medical research often relies on longitudinal data—measurements collected over t...
  • Extracting informative representations from longitudinal data that can predict future outcomes remains a critical challenge in medicine.
  • This requires identifying those variables with predictive value, processing longitudinal information, and integrating multiple variables for outcome prediction.
  • LongAgent utilises a history memory of previous searches and numerical evidence to guide subsequent exploration.
  • On synthetic data, LongAgent achieves a mean prediction RMSE of 1.7376 and improves over the strongest non-agent baseline by 0.0151 (95% CI: [0.0045,0.0260]; p=0.0273).
Paper AbstractExpand

Extracting informative representations from longitudinal data that can predict future outcomes remains a critical challenge in medicine. Medical datasets are inherently heterogeneous, consisting of a large number of variables collected from different sources, sampled with different temporal spacings, and representing different aspects of human health status. This requires identifying those variables with predictive value, processing longitudinal information, and integrating multiple variables for outcome prediction. Here, we propose a novel agent-based approach, LongAgent, that can autonomously search over combinations of variable sets, temporal windows and longitudinal aggregation functions, and identify candidates with promising predictive performance. LongAgent utilises a history memory of previous searches and numerical evidence to guide subsequent exploration. On synthetic data, LongAgent achieves a mean prediction RMSE of 1.7376 and improves over the strongest non-agent baseline by 0.0151 (95% CI: [0.0045,0.0260]; p=0.0273). On a real clinical dataset, it performs comparably to the best baseline.

LongAgent: History-Guided Agentic Search for Longitudinal Outcome Prediction
Medical research often relies on longitudinal data—measurements collected over time—to predict future health outcomes. However, these datasets are complex, containing many variables with different sampling rates and sources. Traditionally, researchers must manually select which variables to use, define the time windows for analysis, and choose how to aggregate the data, which is a time-consuming and often inefficient process. This paper introduces LongAgent, an AI-driven system designed to automate this search process by autonomously identifying the most predictive combinations of variables, time windows, and mathematical aggregation functions.

How LongAgent Works

LongAgent functions as an intelligent agent that treats feature discovery as a "budgeted search problem." Instead of relying on manual trial and error, the agent iteratively explores a space of potential candidates. Each candidate is defined by a specific set of variables, a time window relative to the outcome, and an aggregation method (such as mean or median). The ai search story also surfaces in Stanford AI discovery identifies natural weight..., adding another angle.
The agent uses a two-stage decision process to navigate this search space. It is guided by a "history memory" that integrates four types of evidence: the current search status, the history of previously evaluated candidates and their performance, a summary of which areas of the search space have already been covered, and evidence from past transitions (how changing a variable or window affected the prediction error). By analyzing this information, the agent decides whether to add, drop, or replace variables, or to update the time window and aggregation function.

Performance and Results

The researchers evaluated LongAgent using 360 synthetic datasets and a real-world clinical dataset from the IDEA-FAST study, which tracks fatigue scores in over 1,000 participants. The ai search story also surfaces in OpenAI Says AI Found Possible Navier–Stokes..., adding another angle.
On the synthetic datasets, LongAgent consistently outperformed three non-agent baseline methods, achieving the lowest mean prediction error (RMSE). An ablation study—a test to see how different parts of the system contribute to its success—revealed that providing the agent with "transition evidence" (information about how past changes impacted performance) significantly improved its ability to find better predictive features. On the real-world clinical dataset, LongAgent performed comparably to or slightly better than the strongest baseline method, demonstrating its practical utility in real medical research scenarios.

Limitations and Future Directions

While LongAgent shows promise in automating the discovery of predictive features, the current version has specific limitations. At present, the system applies a single, shared time window and aggregation function to all selected variables. The authors note that future research will focus on developing variable-specific temporal representation learning, which would allow the agent to tailor its analysis to the unique characteristics of different medical variables. Additionally, the team plans to expand the method to handle more diverse, heterogeneous, and incomplete longitudinal datasets. The ai search story also surfaces in New AI Architecture Mimics the Human..., adding another angle. as detailed in the full paper on Arxiv

Comments (0)

No comments yet

Be the first to share your thoughts!