AI for Science: How Agents Accelerate Biomedical Research
As LLM reasoning improves, agents are moving from code generation into scientific research. This article examines the bottlenecks in biomedical data analysis, the four capabilities required for research agents, key technical points in marker gene computation and biological plausibility checks, human-in-the-loop controls, compliance risks, and a layered engineering approach for adoption.
1. Background: Agents Move from Writing Code to Doing Research
Over the past two years, large language model applications have centered mainly on code generation, document drafting, and knowledge Q&A. As model reasoning improves, the industry is turning its attention to scientific research scenarios. AI for Science (AI4S) refers to the research direction of using artificial intelligence methods to assist scientific discovery. Biology, chemistry, and pharma are among the areas with the most concentrated deployment needs.
This shift has clear reasons. Code generation has well-defined input and output boundaries, and unit tests can verify results. Biomedical research is different: every analysis step depends on experimental context, sample quality, and domain knowledge, and conclusions must withstand biological interpretation. Research scenarios therefore place higher demands on agents: they must be able to call tools to complete computations and also judge whether intermediate results are reasonable.
2. Typical Bottlenecks in Biomedical Analysis
Take high-throughput data such as single-cell transcriptomics as an example. A routine analysis usually includes the following steps:
- Data loading and format validation;
- Quality control, removing low-quality cells and samples with abnormal mitochondrial ratios;
- Filtering interfering genes such as ribosomal proteins to reduce their masking of clustering and marker results;
- Dimensionality reduction, clustering, and cell type annotation;
- Computing marker genes for each cluster and checking biological meaning against the literature;
- Organizing figures, tables, and conclusion reports.
Steps 3 and 5 are the most time-consuming. Marker gene calculation itself is a statistical problem, but interpreting its results requires familiarity with tissue origin, signaling pathways, and known markers. When performed manually, analysts often switch repeatedly among multiple scripts, tables, and literature. If the process is not recorded in a unified way, the same conclusion is difficult for others to reproduce.
3. How Agents Work
An agent usable for research typically consists of four types of capabilities:
- Understanding tasks: breaking a research question into executable subtasks;
- Calling tools: executing statistical computations, database queries, and plotting through controlled interfaces;
- Checking results: making consistency judgments about outputs, for example, whether marker genes appear in the expected tissue;
- Recording the process: saving parameters, versions, and intermediate artifacts to ensure traceability.
These four steps form a closed loop. The model handles planning and explanation, computational tools handle precise execution, and validation modules detect anomalies. If the model is only asked to give conclusions directly, errors are difficult to locate. Therefore, the input and output of each step should be persisted to disk.
Pseudocode (for illustrating the workflow structure only):
def run_marker_pipeline(dataset, config):# 1. Validate input format and sample metadatavalidate_schema(dataset, required_fields=config.required_fields)# 2. Quality control and interfering gene filteringqc_data = apply_qc(dataset, max_mito_ratio=config.max_mito_ratio)filtered = remove_gene_sets(qc_data, gene_sets=config.excluded_sets)# 3. Compute marker genes for each cluster after clusteringclusters = cluster_cells(filtered, resolution=config.resolution)markers = compute_markers(clusters, method=config.test_method)# 4. Biological plausibility check, confirmed by rules or manual reviewreport = check_biological_plausibility(markers, tissue=config.tissue)# 5. Save parameters, versions, and intermediate resultssave_run_record(config, markers, report)return report
4. Key Technical Points
4.1 Marker Gene Computation
The core of marker gene analysis is comparing expression differences between one cluster and other clusters. Common approaches include rank-sum tests, log fold-change ranking, and effect size evaluation. Threshold setting needs to balance statistical significance and biological meaning. Looking only at p-values easily produces many weak signals, while looking only at fold changes may amplify noise from low-expression genes. It is advisable to report expression proportions, mean expression levels, and multiple-testing-corrected results together.
4.2 Filtering Low-Quality and Interfering Genes
Ribosomal protein genes have high expression and are ubiquitous in most cells, so they can easily dominate clustering structure. Treating them as interfering genes can reduce their impact on clustering results. However, filtering rules must be recorded, and the rationale must be stated in the report so that later analysts know the data has been modified.
4.3 Biological Plausibility Assessment
Plausibility assessment usually includes three types of checks:
- Whether marker genes are consistent with the tissue type;
- Whether pathway enrichment results match known physiological processes;
- Whether conclusions are stable across batches or samples.
This step cannot be fully automated. An agent can provide preliminary judgments and an evidence chain, but final conclusions still require confirmation by domain experts.
5. Human-Machine Collaboration and Quality Control
A reliable research agent should follow three principles.
First, the process must be traceable. Each run needs to record the data version, analysis parameters, model version, and prompt template version.
Second, results must be reproducible. The same input and configuration should produce the same output, and steps involving randomness need fixed random seeds.
Third, boundaries must be controllable. The model can only call tools on a whitelist, and any operation that deletes or overwrites raw data requires human confirmation.
In addition, models may fabricate literature sources or gene function descriptions. The countermeasure is to require the model to cite retrievable database entries and have the system automatically verify whether those entries exist. Teams can also define acceptance metrics, such as agreement with manual annotation results, recall of key marker genes, and analysis turnaround time. These metrics need to be measured on their own datasets and should not directly apply external conclusions.
6. Risks and Compliance Boundaries
- Data privacy: clinical and genetic data are sensitive information and require de-identification, tiered authorization, and restrictions on data leaving a controlled environment.
- Responsibility for conclusions: agent outputs cannot be used directly as a basis for clinical decisions and must go through a professional review process.
- Sample bias: uneven population distributions in training data and research samples may make analysis conclusions inapplicable to specific populations.
- Capability degradation: if teams rely on automated results for a long time, they may gradually lose understanding of method principles and find it difficult to judge anomalous outputs.
7. Engineering Adoption Recommendations
A typical research agent platform can be divided into four layers:
| Layer | Responsibility | Common general component categories |
|---|---|---|
| Data layer | Store raw data and intermediate results | Object storage, structured databases |
| Compute layer | Execute statistical analysis and batch processing | Container platforms, task scheduling |
| Orchestration layer | Plan steps, call tools, manage context | Workflow engines, message queues |
| Audit layer | Record logs, version information, and review comments | Logging services, monitoring and alerting |
For adoption, it is advisable to proceed in three stages. In the first stage, choose subtasks with clear boundaries, such as marker gene computation, and establish a benchmark dataset and manual control results. In the second stage, expand to clustering annotation and report generation. In the third stage, consider end-to-end automation. Each stage should have clear acceptance criteria, and the next stage should begin only after the previous stage’s results are stable.
8. Conclusion
Long-term viability in this field depends on three aspects: a reliable data foundation, verifiable analysis workflows, and a clear understanding of professional boundaries. Pursuing model scale or demonstration effects alone is unlikely to support real research and clinical needs.
