Manuel B. Garcia

Manuel B. Garcia serves as the Senior Director for Educational Technology and Digital Learning at FEU Institute of Technology, Manila, Philippines. Read More

Contact Info

1607, FEU Tech Building,
P. Paredes St, Sampaloc,
Manila, Philippines
mbgarcia@feutech.edu.ph

Follow Me

Should an AI Agent Be Allowed to Modify Research Data?

AI agents can clean, standardize, and transform research datasets, but unrestricted modification can compromise the scientific record. Learn which changes may be appropriate, why original data should be preserved, and how permissions, audit trails, validation, and human approval can distinguish legitimate processing from unacceptable manipulation.

938
AI Agents and Research Data Modification Guide 938 of 1196
01 · The Question

Should an AI Agent Be Trusted to Change the Data Behind a Research Study?

You are preparing a dataset containing 5,000 survey responses for statistical analysis. Several records contain missing values, inconsistent category labels, duplicate identifiers, and responses that appear unusual.

An AI agent offers to clean the dataset automatically. It can standardize categorical values, identify potential duplicates, correct formatting problems, and remove records it considers invalid.

The proposed workflow could save considerable time. However, the agent also has permission to overwrite the original dataset.

What happens if it incorrectly removes legitimate observations? What if it changes an unusual response because the value appears statistically implausible? Could a seemingly routine cleaning operation alter the findings of the study?

These concerns arise because research data modification is not merely a technical activity. Some transformations are straightforward, while others involve decisions about measurement validity, eligibility, missingness, and the scientific meaning of observations.

Researchers must therefore determine which changes an AI agent may perform, which require human authorization, and how the original evidence will remain recoverable.

02 · The Short Answer

Allow Controlled Transformations, Not Unrestricted Modification

In Brief

AI agents may be permitted to modify working copies of research datasets when the transformations are authorized, documented, independently verifiable, and consistent with the approved research methodology. However, agents should not ordinarily have unrestricted permission to overwrite original data, delete observations, change substantive values, or make consequential analytical decisions without appropriate safeguards and human approval.

The distinction is between legitimate data processing and changes that compromise the evidentiary record. Researchers should preserve original observations, define permitted operations, maintain an auditable transformation history, and verify that modifications do not introduce unsupported assumptions or distort research findings.

03 · What You Need to Know

Protecting Research Data Integrity When AI Agents Can Modify Files

What does research data modification mean?

Research data modification refers to changing the content, structure, organization, or representation of information collected or generated during a study.

Examples include correcting data-entry errors, standardizing variable names, converting date formats, removing confirmed duplicate records, and deriving new analytical variables.

Some modifications preserve the underlying meaning of the observations. Others may change which observations are included or how they are interpreted.

For example, converting a date from one standardized format to another may be a routine technical transformation.

Deleting a participant's response because it appears inconsistent with the expected hypothesis is a fundamentally different action.

Researchers should classify proposed modifications according to their scientific consequences rather than treating every file edit as equivalent.

What is the difference between raw data and processed data?

Raw research data The original observations or source records preserved in the form established by the study's data collection and recording procedures, subject to documented corrections and applicable data governance requirements.
Processed research data Data derived from original records through documented cleaning, coding, transformation, aggregation, or other analytical preparation procedures.

Processed data are not inherently less valid than raw data. Many analyses require transformations before statistical or qualitative interpretation is possible.

However, researchers should preserve sufficient provenance to establish how the processed dataset relates to the original observations.

An AI agent should not silently replace the source record with a modified version that cannot be reconstructed or independently checked.

Which data modifications may be suitable for AI agents?

Some operations are relatively structured and can be validated through deterministic rules.

Modification Potentially appropriate agent action Required consideration
Formatting Standardize dates, capitalization, and field formats Preserve the original values and intended meaning
Variable naming Rename columns according to an approved schema Maintain a mapping between original and revised names
Category normalization Apply predefined mappings to equivalent labels Review ambiguous or context-dependent categories
Duplicate detection Flag records that meet documented matching criteria Verify uncertain matches before deletion or merging
Derived variables Calculate values using approved formulas Validate formulas and source fields
Missing-data processing Apply an approved missing-data procedure Preserve missingness indicators and analytical justification
Outlier handling Flag unusual observations for review Do not assume unusual values are invalid
Record exclusion Generate provisional exclusion recommendations Apply prespecified criteria and appropriate approval

The appropriateness of autonomous execution depends on whether the agent has sufficient information to apply the rules correctly.

Where a transformation requires interpretation, provisional recommendations may be safer than automatic modification.

Why should original research data be preserved?

Original records provide an evidentiary reference for determining what was actually collected or observed.

If an AI agent overwrites these records, researchers may lose the ability to distinguish original observations from subsequent transformations.

This can undermine error investigation, reproducibility, and the defense of methodological decisions.

A safer workflow maintains protected source records and allows the agent to operate on separate working copies.

Version control, immutable storage, access restrictions, or equivalent safeguards may help preserve the original record.

The exact arrangement should reflect the data's sensitivity, institutional requirements, and research context.

What is an immutable research dataset?

An immutable dataset is a preserved version that cannot be altered through the ordinary processing workflow.

Immutability may be implemented through read-only permissions, versioned object storage, protected repositories, or other technical controls.

The objective is to maintain a stable reference against which later modifications can be evaluated.

However, immutable storage does not automatically guarantee that the original data were accurate or complete.

It preserves a recorded state. Corrections to genuine source errors may still be necessary, but they should be documented rather than silently replacing the historical record.

Can AI agents remove duplicate research records?

Agents can identify potential duplicates using exact identifiers, similarity measures, or predefined matching rules.

For bibliometric research, duplicate records may arise when the same publication is exported from multiple databases.

However, similar titles, author names, or publication metadata do not always establish that two records represent the same work.

Conference papers and subsequent journal articles may share substantial content while remaining distinct publications.

An agent that automatically merges them may distort publication counts or citation indicators.

Researchers should distinguish high-confidence matches from ambiguous cases and preserve a record of every merge or deletion.

Can AI agents normalize research entities?

Entity normalization involves mapping variant representations to a consistent identity or category.

Examples include author names, institutional affiliations, country names, and research keywords.

AI agents may help identify candidate mappings, but the process can introduce consequential errors.

Two researchers may share a similar name, while one institution may have several historical or organizational forms.

Incorrect mappings can alter collaboration networks, productivity indicators, and thematic analyses.

Researchers should preserve the original values, document the mapping rules, and verify ambiguous entities before applying consequential changes.

Should AI agents automatically remove outliers?

Generally, unusual observations should not be removed merely because they are statistically extreme.

An outlier may represent a data-entry error, a legitimate rare observation, or an important feature of the phenomenon being studied.

For example, an unusually high number of study hours reported by a participant may require verification, but its magnitude alone does not establish invalidity.

Researchers should use predefined exclusion or correction criteria and examine the substantive context.

An AI agent may flag unusual values and generate diagnostic reports.

Automatic exclusion should be restricted to circumstances where the rules are scientifically justified and appropriately authorized.

Can AI agents fill in missing research data?

AI systems may implement imputation procedures, including conventional statistical methods or appropriately validated model-based approaches.

However, missing-data treatment requires assumptions about why observations are missing and how the missingness mechanism affects inference.

Replacing missing values with plausible numbers does not recover the original observations.

Researchers should distinguish observed data from imputed values and preserve indicators identifying the imputation procedure.

The choice of method should follow the research design and analytical requirements.

An agent should not silently replace missing values with generated content merely to produce a complete dataset.

When does data cleaning become falsification?

Legitimate data cleaning seeks to improve the accuracy, consistency, or analytical suitability of the dataset through defensible procedures.

Falsification involves manipulating research materials, processes, or data, or changing or omitting data or results, such that the research is not accurately represented in the research record, under commonly used research-integrity definitions.

For example, correcting a verified transcription error is different from changing an observation because it contradicts a hypothesis.

Likewise, excluding records according to prespecified eligibility criteria differs from selectively deleting inconvenient observations to obtain a desired result.

Whether a particular action constitutes formal research misconduct depends on the applicable policies, evidence, and relevant findings about the conduct.

Researchers should not assume that AI-mediated manipulation is less consequential than manual manipulation.

Does the agent's intention matter?

AI systems do not necessarily possess human intentions in the sense relevant to research-misconduct determinations.

However, the system may be configured or prompted to optimize a particular outcome.

For example, instructing an agent to "clean the data until the intervention effect becomes statistically significant" creates an obvious methodological concern.

The researcher has directed the system toward an outcome rather than a defensible data-quality criterion.

Researchers should specify transformation objectives independently of desired findings.

Human accountability remains relevant even when the actual file modifications are performed automatically.

What is the principle of least privilege?

The principle of least privilege involves granting a system only the access necessary to perform its authorized functions.

An agent assigned to identify data-quality problems may require read access but not write permission.

An agent preparing a cleaned dataset may require permission to create a new file without permission to overwrite the original.

An agent applying approved transformations may operate within a restricted working directory.

Limiting permissions reduces the potential consequences of incorrect action selection, software defects, or compromised instructions.

The permissions granted should correspond to the specific task rather than the maximum capabilities of the agent.

What is a research data modification audit trail?

An audit trail is a record of changes made to research data and the circumstances under which they occurred.

For AI-mediated modifications, useful information may include the original and revised values, affected records, transformation rules, execution timestamps, software versions, and approval decisions.

Where relevant, the audit trail may also identify the prompt or instruction that initiated the operation.

Audit records should allow researchers to reconstruct the processed dataset from preserved source data.

However, logging alone does not establish that a transformation was appropriate.

Records must also be reviewed against the study's methodological requirements.

How can researchers measure modification accuracy?

Researchers may compare agent-generated changes with independently verified reference decisions.

For example, a sample of proposed duplicate merges could be assessed by trained reviewers using predefined criteria.

Relevant measures may include precision, recall, and the frequency of consequential incorrect changes.

Incorrect Modification Rate
Incorrect modification rate = (Incorrect modifications / Total evaluated modifications) × 100%
The numerator contains modifications judged incorrect under an independent reference procedure. The denominator contains all eligible modifications evaluated. The measure describes the correctness of changes, not the agent's ability to identify every necessary change.
Suppose an agent makes 400 data transformations, and independent review identifies 12 incorrect changes. The observed incorrect modification rate is (12 / 400) × 100% = 3%.

A low error percentage does not necessarily establish acceptable performance if the errors affect consequential observations.

Researchers should examine severity and reversibility alongside frequency.

Should AI agents be allowed to overwrite research files?

Overwriting should generally be restricted when the file contains original observations, approved analytical records, or other important research evidence.

For routine derived outputs, overwriting may be acceptable under a documented version-control and recovery procedure.

However, the agent should not silently replace original data or erase previous analytical states.

Researchers should distinguish temporary files, reproducible derived files, and protected source records.

Permissions should reflect the consequences of losing or altering each type of file.

How should approval checkpoints work?

An approval checkpoint allows a researcher to examine proposed modifications before they are committed.

For example, an agent may prepare a table listing records recommended for deletion, the reasons for each recommendation, and the expected effect on the dataset.

The researcher can then approve, reject, or revise the proposed changes.

However, approval is meaningful only if the reviewer has sufficient information to evaluate the action.

A generic confirmation message such as "Apply all recommended changes?" may provide inadequate oversight when hundreds of consequential modifications are involved.

The principles of human approval checkpoints for AI agents are relevant.

Can autonomous data modification affect reproducibility?

Yes. Data modifications influence the analytical dataset and therefore the results that can be reproduced.

When an agent applies documented deterministic transformations, the workflow may be relatively straightforward to reconstruct.

When it makes context-dependent decisions using a changing generative model, exact repetition may be more difficult.

Researchers should preserve source data, transformation scripts, model identifiers, relevant prompts, and resulting outputs.

Where feasible, approved changes should be converted into reproducible scripts or explicit mapping tables rather than relying solely on repeated model judgments.

Reproducibility requires sufficient documentation of what was changed and why.

How should data modification be reported in a research paper?

The methods section should describe the data preparation procedures that materially affected the analytical dataset.

When AI agents performed transformations, researchers should identify the relevant system, its role, the rules applied, and the verification procedures.

Consequential exclusions, imputations, entity mappings, and corrections should be documented according to disciplinary reporting standards.

Researchers should distinguish automated suggestions from changes actually applied.

Where appropriate, a reproducible transformation script or decision log may be provided as supplementary material.

The objective is to establish an accurate account of how the original data became the analytical dataset.

04 · A Practical Example

Allowing an AI Agent to Clean a Survey Dataset Without Altering the Original Evidence

Hypothetical Example

Preparing 5,000 student survey responses for analysis

A researcher is studying university students' experiences with AI-assisted learning.

The dataset contains 5,000 survey records with inconsistent category labels, missing values, duplicate identifiers, and unusual responses.

An AI agent is authorized to prepare a cleaned working dataset, but the original source file is protected against modification.

Step 1: Preserve the original datasetThe researcher stores the source records in a protected location and creates a separate working copy for processing.
Step 2: Define approved transformationsThe agent receives explicit rules for standardizing dates, category labels, and variable names. Missing values and unusual observations are not automatically replaced or deleted.
Step 3: Execute routine modificationsThe agent applies deterministic formatting changes and records the original and revised values.
Step 4: Flag consequential casesPotential duplicates, implausible values, and records proposed for exclusion are placed in a review table.
Step 5: Conduct independent verificationThe researcher reviews ambiguous cases, checks transformation accuracy, and confirms that approved cleaning rules were followed.
Step 6: Generate the analytical datasetThe agent produces a versioned cleaned dataset together with a transformation log and summary of changes.
Step 7: Validate analytical consequencesThe researcher compares record counts, missingness patterns, and relevant descriptive statistics before and after processing.

The example illustrates how an agent can reduce routine preparation work while preserving scientific accountability.

Importantly, the agent is not authorized to remove observations merely because they appear inconvenient or inconsistent with the researcher's expectations.

The distinction between permitted transformations and substantive analytical decisions is established before processing begins.

05 · What Researchers Often Get Wrong

Common Misconceptions About AI Data Modification

Misconception

Data Cleaning Is Always a Harmless Technical Procedure

Cleaning decisions can alter sample composition, measurement properties, and statistical findings. Some require substantive methodological justification.

Misconception

AI Agents Should Automatically Remove Unusual Values

Unusual observations may be legitimate. Statistical extremity alone does not establish invalidity or justify deletion.

Misconception

Overwriting the Original Dataset Is Acceptable if the Output Looks Correct

Destroying or replacing source records can undermine provenance, error investigation, and reproducibility.

Misconception

Missing Values Can Be Replaced With Plausible AI-Generated Numbers

Imputation requires defensible statistical assumptions and documentation. Generated values should not be misrepresented as observed data.

Misconception

An Audit Log Automatically Makes Every Modification Legitimate

Logging supports traceability but does not establish methodological appropriateness. Changes still require validation.

Misconception

AI-Mediated Data Falsification Is Less Serious Than Manual Falsification

The use of AI does not make misrepresentation of research evidence acceptable. Human accountability remains relevant.

Misconception

Human Approval Is Unnecessary for High-Confidence Changes

Confidence estimates may be poorly calibrated. Approval requirements should reflect consequences, not merely a model-generated confidence score.

06 · What This Means for You

Deciding Which Data Changes an AI Agent May Perform

Researchers should establish a permission structure that distinguishes routine, reversible transformations from changes affecting substantive evidence.

A simple decision framework

If the change is deterministic and independently verifiable
Consider automated execution on a working copy with appropriate logging and validation.
If the change involves ambiguous records
Require the agent to generate provisional recommendations for human review.
If the change affects observation inclusion or analytical assumptions
Require methodological justification and appropriate approval before implementation.
If the agent requests access to original files
Prefer read-only access and preserve protected source records.
If a modification cannot be reconstructed or reversed
Do not authorize automatic execution without safeguards proportionate to the consequences.

The broader principles of autonomous AI research task execution apply, but data modification deserves particular scrutiny because it can change the evidence on which all subsequent findings depend.

Watch Out

Never allow an agent to modify research observations merely to improve statistical significance, strengthen a hypothesis, or make the dataset appear more consistent. Data processing should follow defensible scientific criteria established independently of the desired findings.

07 · A Quick Checklist

Before Granting an AI Agent Permission to Modify Research Data

Before authorizing data changes, check:
Preserve the original dataset in a protected or immutable form.
Define which modifications are permitted and which require approval.
Use working copies rather than allowing unrestricted overwriting.
Establish scientifically defensible transformation and exclusion criteria.
Distinguish observed values from imputed or generated values.
Flag ambiguous duplicates, outliers, and substantive changes for review.
Apply least-privilege access controls to agent tools and files.
Maintain an audit trail of original values, revised values, and reasons for change.
Validate a representative sample or all consequential modifications as appropriate.
Check whether modifications materially affect sample composition or results.
Preserve reproducible scripts, mapping tables, and approval records.
Disclose material AI-assisted data preparation in the research report.
08 · Frequently Asked Questions

Frequently Asked Questions About AI Agents Modifying Research Data

Should AI agents be allowed to edit research datasets?

They may edit working copies under defined permissions and verification procedures. Unrestricted modification of original records is generally inappropriate.

Can AI agents clean research data automatically?

Yes, for appropriately defined transformations. Ambiguous or consequential decisions may require human review.

Can an AI agent remove outliers?

It may flag outliers, but removal should follow scientifically justified criteria. Unusual values are not automatically invalid.

Can AI agents replace missing values?

They may implement approved imputation procedures, but the assumptions and resulting values must be documented. Imputed values should not be represented as directly observed data.

Is AI-assisted data cleaning considered falsification?

Not when legitimate, defensible procedures are accurately documented. Manipulating or omitting data so that the research record becomes misleading can raise falsification concerns.

Should original datasets be immutable?

Preserving a protected original version is a strong safeguard. The implementation may involve read-only storage, version control, or other appropriate controls.

What should an AI data modification audit trail contain?

It may include affected records, original and revised values, transformation rules, timestamps, execution details, and approval decisions.

Can AI agents merge duplicate bibliographic records?

They can identify and merge records under approved rules, but ambiguous matches should be reviewed because incorrect merging can distort bibliometric findings.

Who is responsible for incorrect AI data modifications?

Responsibility depends on the roles and applicable rules, but researchers remain accountable for appropriate data stewardship and accurate reporting of their research.

09 · The Bottom Line

AI May Transform Research Data, but It Must Not Rewrite the Evidence

The Bottom Line

AI agents may perform authorized, documented, and verifiable transformations on research datasets, but they should not have unrestricted authority to alter original observations or make consequential methodological decisions. Data integrity requires preserved source records, controlled permissions, transparent transformations, and appropriate human oversight.

The central distinction is between preparing data for valid analysis and changing evidence to obtain a preferred result. Automation can improve consistency and efficiency, but it does not remove the need to justify every substantive modification. A defensible research record must remain traceable from the reported findings back to the original observations.

10 · Sources and Further Reading

Sources on Research Data Integrity, Provenance, and AI Governance

11 · Cite this Guide

How to Cite This Guide

This guide is intended to be read, shared, and used in research, teaching, and academic work. If you draw on its ideas, explanations, or other content, please acknowledge the source by citing the guide. Doing so gives appropriate credit and helps your readers locate the original resource.

Has the Field Guide helped your research?

If a guide helped clarify a question, inform a research decision, or move your work forward, I would love to hear about your experience. Your story may also help other researchers discover the Field Guide.

Share Your Experience
Takes only a few minutes