How AI Is Used in Scientific Research: A Practical Guide to Data Analysis and Writing
This article examines how AI is currently adopted in scientific research and offers a practical guide for teams looking to deploy it responsibly. Based on a reported survey of research users, it shows that generative AI is used most often for data-related processing and analysis, and for text writing and polishing, while adoption is lower in disciplines that depend on wet-lab experiments, sample handling, or instrument operation. It explains why these differences reflect the digitizability of tasks rather than researchers' attitudes toward new technology, and then walks through a layered, decoupled architecture for building a controllable research-assistance pipeline, including tool-calling over long prompts, structured context construction, reproducibility and quality evaluation, and compliance, ethics, and data-security practices. It closes with trend observations and three actionable recommendations for research teams.
1. Research Observations: What AI Use in Science Actually Looks Like
A recent report by a cloud provider on the usage behavior of research users shows that generative AI assistants are used mainly for two types of tasks in scientific work: data-related processing and analysis, and text writing and expression refinement. This finding is unsurprising—both task categories are characterized by “clear input/output boundaries, results that are easy for humans to verify, and relatively controllable tolerance for error,” which makes them the fastest entry points for technology diffusion.
The report also reveals a structural fact that is easy to overlook: there are pronounced differences in usage density across disciplines. AI assistants are used more widely in fields such as computer science, mathematics, and statistics, which center on symbolic computation, structured data, and formal reasoning. In contrast, usage rates are relatively lower in directions such as health sciences and experimental physics, which require wet experiments, sample processing, and instrument operation.
The root cause of this difference is not that “researchers have different levels of acceptance toward new technology,” but that tasks differ in their degree of digitizability. Tasks with a high degree of digitizability allow AI to intervene directly; tasks with a low degree of digitizability allow AI to offer only peripheral assistance. Understanding this is the first principle for designing a research AI toolchain.
The report’s authors also state its purpose explicitly: to help the public and the industry objectively understand the current penetration of AI in scientific research and, on that basis, assess its possible impact on the pace of future scientific discovery. They also emphasize that any acceleration effect does not happen automatically; it depends on both the boundaries of model capabilities and the methodological proficiency of the users themselves.
2. Why Data Analysis and Writing Are Adopted First
2.1 Data Analysis: High Value, Verifiable, and Iterative
A typical research data-analysis pipeline includes data cleaning, outlier detection, feature construction, statistical testing, visualization, and result interpretation. Many steps in this pipeline are work with “clear rules but tedious operations,” which makes them well suited to having AI produce a first draft and then having researchers review it.
The key reason is verifiability: statistical results can be recomputed, charts can be redrawn, and code can be executed. When outputs can be independently verified, the marginal risk of using AI drops substantially.
2.2 Writing: Lower Language Costs and Lower Structure Costs
Papers, literature reviews, grant proposals, experiment records, and peer-review responses are all, in essence, text production with high structural density. Researchers who are non-native English speakers must bear additional language costs, and AI’s performance in grammar correction, logical cohesion, and formatting standardization is now sufficient to handle the role of “first draft.”
It is important to emphasize that responsible practice is to position AI as a language and structure assistant, not as a producer of research conclusions. Authorship, data interpretation, and academic judgment must be borne by humans.
2.3 Why Adoption Is Slower in Experimental Science
The bottleneck for wet experiments and instrument physics is that the physical world cannot be digitized directly: reagent batches, ambient temperature and humidity, instrument drift, and differences in operating technique all introduce hidden variables that are difficult to express fully in text. AI lacks this part of the context and therefore naturally struggles to give reliable advice. This is not a capability problem but an information-availability problem.
3. Technical Architecture: Building a Controllable Research-Assistance Pipeline
To bring research-assistance capabilities into a team, a layered, decoupled general architecture is recommended on Baidu AI Cloud, with each layer replaceable to avoid binding to a single capability.
3.1 Layered Design
- Access layer: conversational interfaces for researchers, editor plugins, or command-line clients;
- Orchestration layer: prompt-template management, task routing, multi-step workflow orchestration, and tool invocation;
- Model layer: unified inference interfaces that call large-model capabilities, supporting graded routing of models with different parameter sizes according to the task;
- Data layer: object storage for raw datasets and documents, and a relational database for metadata and experiment records;
- Knowledge layer: a team-private knowledge base built on vector retrieval, hosting the paper library, experimental protocols, and an internal glossary;
- Governance layer: logging services that record invocation traces, monitoring and alerting that track latency and failure rates, and permission systems that control data visibility.
3.2 Prefer Tool Calls Over Long Prompts
For data-analysis scenarios, having the model generate executable code and invoke a sandbox to run it is more reliable than having the model “calculate mentally.” An illustrative flow is shown below:
def analyze_with_ai(dataset_uri, question, executor):# 1) Upload only a reference to the de-identified data; do not move raw sensitive dataschema = executor.describe_schema(dataset_uri)# 2) Have the model produce an analysis plan and executable code, rather than direct conclusionsplan = llm.generate_plan(question=question, schema=schema)# 3) Execute in an isolated sandbox and capture real outputs and error stacksresult = executor.run(plan.code, dataset_uri=dataset_uri)# 4) Have the model explain based on real execution results to reduce the probability of hallucinationreturn llm.explain(question=question, code=plan.code, output=result)
The core idea of this pattern is: hand “computation” to a deterministic execution environment and hand “expression” to the model. The clearer the boundary between the two, the more trustworthy the results.
4. Prompt Engineering and Context Construction: Practical Points
4.1 Use Structured Context Instead of Colloquial Descriptions
Research tasks place high demands on precision, so prompts should contain explicit fields: research objective, data dictionary, variable units, missing-value handling conventions, significance level, and output-format constraints. For example:
Task: perform between-group comparison on the given experimental dataData: see schema; fields include group (categorical), value (continuous, unit mg/L)Constraints: fill missing values with the column median and annotate the proportion in the reportStatistics: two-sided test, alpha=0.05, must report effect size and confidence intervalOutput: Markdown table + one explanation of no more than 150 words
4.2 Make the Model Express Uncertainty Explicitly
Requiring the model to label judgments that cannot be derived from the data as “insufficient evidence” can significantly reduce plausible-looking but unfounded inferences. In research scenarios, suppressing overconfidence matters more than improving fluency of wording.
4.3 Build Reusable Template Assets
Solidify high-frequency tasks into a template library: data-quality checks, methods-section writing, peer-review comment classification, and reference formatting standardization. Turning templates into assets converts individual skills into team capacity.
5. Reproducibility and Quality Evaluation
Research scenarios demand far higher reproducibility than general business scenarios, and at least the following four mechanisms are recommended:
- Version tracking: put datasets, prompt templates, model versions, and random seeds all under version control;
- End-to-end logging: save input summaries, intermediate artifacts, and final outputs so that any conclusion can be traced back;
- Dual-track verification: have key statistical conclusions recomputed by independent scripts, with model outputs used only as a reference;
- Regression evaluation sets: build a team-owned set of evaluation samples and periodically assess output stability to avoid quality drift caused by changes to models or templates.
Evaluation metrics should not look only at “whether the answer is fluent”; they should cover four dimensions: factual consistency, numerical correctness rate, format compliance rate, and appropriateness of refusals.
6. Compliance, Ethics, and Data Security
- Data classification: define which data may enter cloud-based inference and which must be processed locally;
- De-identification up front: remove subject information, unpublished experimental data, and identifiable markers;
- Authorship norms: AI must not be listed as an author, and its use should be honestly disclosed in the methods or acknowledgments;
- Confidentiality review: follow the policies of one’s institution and journal when unpublished results and patent-application materials are involved;
- Least privilege: isolate knowledge-base retrieval by project to avoid cross-team data leakage.
7. Trend Assessment and Deployment Recommendations
Starting from the degree of task digitizability, a fairly robust judgment can be made: in the short term, AI’s incremental value in scientific research will remain mainly concentrated in data processing and text production; experimental design, causal inference, and cross-disciplinary hypothesis generation require more complete context and stronger verification methods, and their maturation will take time.
Three deployment recommendations for teams: first, start with low-risk, high-repetition tasks to build trust quickly; second, strictly separate deterministic computation from generative expression and hold the line on correctness; third, build evaluation sets and logging systems early so that capability evolution can be measured. When the acceleration effect truly occurs, it belongs to teams that both know how to use tools and hold fast to methodology.
