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

Which Data-Cleaning Decisions Must Be Explicitly Specified by the Researcher?

AI can execute data-cleaning procedures, but researchers must define the rules governing corrections, exclusions, missing values, and substantive transformations. Learn which decisions require explicit approval, how to specify them, and why leaving methodological choices to AI can compromise research findings.

383
Researcher-Specified Data Cleaning Decisions Guide 383 of 1196
01 · The Question

Which Data-Cleaning Decisions Should Never Be Left to AI Guesswork?

You ask an AI assistant to clean a dataset containing 500 student questionnaires. It identifies missing responses, unusual scores, repeated records, and inconsistent academic program labels. The tool offers to correct these problems automatically.

But who decides whether a missing response should be imputed, whether an outlier should be excluded, or whether two categories should be combined? Can the AI make these decisions based on what appears statistically reasonable?

Many cleaning operations are computationally straightforward once their rules have been defined. Establishing those rules, however, can involve assumptions about measurement, sampling, and the evidence that the research intends to preserve.

02 · The Short Answer

Researchers Must Specify Decisions That Affect Data Meaning or Inclusion

In Brief

Researchers should explicitly specify and approve data-cleaning decisions that determine which observations are retained, how missing or invalid values are treated, which variables are recoded, how categories are combined, and what transformations are permitted. Generative AI may recommend procedures and execute approved rules, but it should not independently establish consequential methodological criteria.

Routine technical operations may be automated under validated rules. The degree of researcher review should reflect the ambiguity, analytical consequences, and reversibility of the transformation rather than requiring identical oversight for every minor formatting change.

03 · What You Need to Know

Which Data-Cleaning Rules Require Explicit Researcher Decisions?

Why Is a Data-Cleaning Decision Different From a Data-Cleaning Operation?

A cleaning decision establishes what should happen to particular observations and why. A cleaning operation implements that decision through software or manual processing.

For example, a researcher may decide that questionnaire responses outside the permitted range of 1–5 must be flagged for source verification. A Python script can then identify every value violating that rule.

The script performs the operation. The researcher establishes the rule and its methodological justification.

This distinction becomes particularly important when generative AI is used because a chatbot may propose both the rule and the code that executes it. Researchers should evaluate these separately.

Which Decisions Are Most Consequential?

Decisions that alter the meaning, availability, or analytical representation of observations generally warrant explicit specification.

Decision Area What the Researcher Must Specify Why It Matters
Valid and invalid values Permitted ranges, codes, and treatment of violations. Prevents unsupported correction of observations.
Missing data Missingness definitions, analytical treatment, and imputation assumptions. Affects estimates and uncertainty.
Duplicate records Uniqueness criteria and record retention rules. Determines which observations contribute to analysis.
Outliers Screening criteria, investigation procedures, and exclusion rules. May affect distributions and model estimates.
Variable recoding Original-to-new mappings and scoring instructions. Can change the direction or meaning of variables.
Category grouping Definitions and justification for combining categories. May remove analytically meaningful distinctions.
Text modification Permitted editing, transcription, and normalization conventions. May alter participants' original meanings.
Dataset modification Access permissions, approval boundaries, and versioning requirements. Protects provenance and recoverability.

The table identifies areas requiring researcher authority, not a universal requirement to approve every individual cell change manually. An approved deterministic rule may be applied to many records, provided its execution is properly verified.

Who Defines What Counts as an Invalid Value?

The researcher should establish validation rules using the instrument, codebook, collection protocol, and relevant measurement definitions.

For example, an academic self-efficacy item may permit integers from 1 to 5. A value of 8 violates that coding rule, but the rule does not establish whether the intended response was 3, 4, or something else.

The researcher must specify whether invalid values are flagged, corrected from authentic records, or handled as unresolved missing information.

AI can help implement checks for missing and impossible values, but should not invent permissible ranges or replacement values.

Who Decides How Missing Values Are Treated?

Missing-data treatment is a methodological decision because different procedures rely on different assumptions and can affect statistical inference.

Researchers should establish how missingness is represented, whether source recovery is possible, which analytical methods can accommodate incomplete observations, and whether imputation is appropriate.

If imputation is selected, its model, predictors, assumptions, and diagnostic requirements should be documented.

Rubin's foundational work on missing data demonstrates why the missingness mechanism matters to inference. Van Buuren's work on multiple imputation further illustrates that generating replacements requires more than selecting plausible numbers.

Consequently, automatic missing-data imputation should execute an approved analytical strategy rather than substitute for one.

Who Determines Which Duplicate Records Are Removed?

The researcher must define the unit of observation and the conditions under which repeated records are considered unintended duplicates.

For example, a participant appearing twice in a cross-sectional questionnaire may require investigation. The same participant appearing twice in a pretest-posttest study is ordinarily expected.

AI can identify repeated identifiers or matching responses, but it should not independently decide that identical records must be deleted.

When duplicate submissions are confirmed, the researcher should specify the retention rule, including how incomplete or conflicting submissions are handled.

Who Determines Whether Outliers Should Be Excluded?

Outlier screening and exclusion should be treated as separate decisions.

Researchers may specify an interquartile range rule or regression influence diagnostic to identify observations requiring investigation. However, a flagged value is not automatically erroneous.

The decision to correct, retain, or exclude an observation should depend on the research design, available source evidence, and analytical justification.

NIST's guidance on outliers recognizes that unusual observations may arise from errors or legitimate variation. Researchers should not remove them merely because they fall outside a conventional statistical threshold.

Where analytical conclusions depend strongly on unusual cases, sensitivity analyses may be more informative than automatic deletion.

Who Determines Recoding and Category Grouping Rules?

Researchers should specify the intended meaning of every transformed variable and the mapping between original and new values.

For example, reverse coding a five-point item requires the correct scale endpoints and confirmation that the instrument actually requires that item to be reversed.

Similarly, standardizing "BSIT" and "BS IT" may be justified when both represent the same academic program. Combining Information Technology and Computer Science into one category requires a separate substantive rationale.

The distinction between representation and meaning is central to AI-suggested data recoding rules.

Altman and Royston (2006) also demonstrate why grouping continuous variables can create information loss and statistical problems. Category boundaries should not be chosen simply because AI finds them convenient.

Must Researchers Approve Every Technical Formatting Change?

Not necessarily. Requiring individual approval for every harmless whitespace correction could make data preparation unnecessarily burdensome.

A more proportionate approach is to approve a rule such as trimming leading and trailing spaces from a specified categorical variable, then verify its execution.

However, even seemingly minor operations require attention to context. Removing spaces from free-text narratives or identifiers may alter meaning or record identity.

The appropriate distinction is between transformations whose effects are predictable and well-defined and those requiring interpretation of the underlying evidence.

Should Cleaning Rules Be Established Before Seeing the Results?

Where feasible, consequential cleaning and exclusion rules should be established before examining the substantive results they could influence.

This reduces the risk that decisions are selected because they produce preferred statistical outcomes.

However, researchers cannot anticipate every data-quality problem. Unexpected errors may emerge during inspection, requiring justified changes to the cleaning plan.

When rules are revised after examining the data, the researcher should document what prompted the revision, when it occurred, and whether it was informed by the substantive findings.

Exploratory decisions are not inherently invalid, but they should not be misrepresented as predetermined.

What Does an Explicit Cleaning Rule Look Like?

A useful rule identifies the relevant variable, condition, authorized action, exceptions, and verification procedure.

Hypothetical Cleaning Rule

Validation of a Five-Point Questionnaire Item

Variable: SE04.

Valid values: Integers from 1 to 5.

Detection: Flag entries outside the permitted range, excluding documented missing-value representations.

Action: Compare flagged entries with original questionnaires. Correct only verified transcription errors. Preserve unresolved cases for the approved missing-data procedure.

Verification: Compare every corrected value with its source and confirm that no unflagged observations changed.

This rule can be implemented automatically without allowing AI to guess what an invalid response should have been.

How Should Researchers Record Rule Approval?

A cleaning specification should identify the rule, its rationale, responsible reviewer, approval status, and applicable dataset version.

For substantive decisions, it may also record the supporting instrument, protocol, or methodological reference.

When AI proposes a rule, the record should distinguish the proposal from the researcher's approved decision.

These records become part of the audit trail for AI-assisted data cleaning.

04 · A Practical Example

Preparing Researcher-Approved Cleaning Rules for a Student Survey

Hypothetical Example

An Academic Self-Efficacy Dataset

A researcher collects 350 academic self-efficacy questionnaires. Before running AI-generated cleaning scripts, the researcher prepares a specification identifying permitted transformations and decisions requiring additional review.

Problem Approved Rule AI Permission
Values outside the 1–5 scale Flag and verify against source questionnaires. Detect and report only.
Verified program abbreviations Apply the approved category mapping. Transform a working copy.
Missing item responses Preserve until the missing-data strategy is approved. Summarize missingness only.
Repeated participant identifiers Investigate before any record exclusion. Flag possible duplicates.
Unusual total scores Assess validity and analytical influence. Generate screening diagnostics.

The AI executes approved detection and standardization procedures but cannot delete records or replace missing responses.

When an unexpected problem appears, the researcher reviews the evidence and documents an additional rule before authorizing further changes.

Interpretation: The researcher establishes methodological boundaries while AI assists with implementation. This arrangement permits efficient automation without allowing computational convenience to determine the meaning or inclusion of observations.

05 · What Researchers Often Get Wrong

Common Misconceptions About Researcher-Specified Cleaning Rules

Misconception

Can AI Select Cleaning Rules Because It Knows Statistical Best Practices?

AI can suggest established procedures, but their suitability depends on the instrument, study design, and analytical objectives. A commonly used rule is not automatically appropriate for every dataset.

Misconception

Must the Researcher Manually Approve Every Changed Cell?

No. Approved deterministic transformations may be executed and verified in batches. Individual review is particularly important for ambiguous or consequential decisions that cannot be resolved through established rules.

Misconception

Can Cleaning Rules Be Changed After Data Collection?

Yes, when justified by newly identified problems. However, changes should be documented, particularly when they occur after the researcher has examined substantive results that might be affected.

Misconception

Does Researcher Approval Automatically Make a Rule Valid?

No. Approval establishes responsibility, but the rule must still be supported by the research design, source evidence, and appropriate methodological reasoning.

Misconception

Is a General Instruction to Clean the Dataset Sufficient?

No. Broad instructions leave important choices unspecified. The researcher should identify permitted operations, exceptions, and verification requirements before consequential changes are executed.

06 · What This Means for You

Which Decisions Can You Automate, and Which Require Approval?

Classify cleaning tasks according to whether they involve established rules, uncertain interpretation, or substantive analytical consequences.

A simple decision framework

If an operation follows an explicit, validated rule
Allow controlled automation with appropriate verification.
If the operation requires interpreting an ambiguous observation
Require researcher review and supporting evidence.
If the operation changes sample inclusion or variable meaning
Require explicit methodological justification and approval.
If the AI proposes a new rule during execution
Pause the affected operation until the proposed rule is reviewed and authorized.

Researchers should also decide which changes may be applied to a working copy and which operations are prohibited from modifying the master dataset.

After execution, verify that the AI followed the approved rules and that the resulting dataset contains no unintended transformations.

07 · A Quick Checklist

Before Approving AI-Assisted Data Cleaning Rules

Before authorizing transformations, check:
Define valid codes, measurement ranges, and missing-value conventions using the codebook.
Specify how invalid and unresolved observations should be handled.
Establish duplicate identification and retention rules based on the study design.
Document outlier screening criteria separately from exclusion criteria.
Verify recoding rules and category mappings against authoritative definitions.
Justify missing-data methods and relevant statistical assumptions.
Identify which operations AI may execute automatically and which require additional approval.
Record the rationale, approval status, and version of consequential cleaning rules.
Define verification requirements before executing transformations.
08 · Frequently Asked Questions

Frequently Asked Questions About Researcher-Controlled Cleaning Rules

Can AI recommend data-cleaning rules without making the final decisions?

Yes. AI can propose validation rules, mappings, and analytical procedures. Researchers should evaluate the proposals and explicitly approve consequential rules before implementation.

Do all data-cleaning rules need to be established before data collection?

Not necessarily. Predetermined rules are preferable for foreseeable consequential decisions, but unexpected problems may require additional rules. Document changes and distinguish planned procedures from decisions made after inspecting the data.

Can AI automatically reverse-code questionnaire items?

Yes, once the researcher confirms which items require reversal and specifies the correct scoring range. The transformation should be tested and verified against the instrument's instructions.

Who decides whether an outlier should be removed?

The research team should establish and justify the decision using source evidence, analytical assumptions, and appropriate criteria. Statistical extremity alone does not justify exclusion.

Can an AI agent create new cleaning rules while processing data?

It may propose new rules, but consequential changes should not be executed without authorization. The system should flag unexpected conditions and request review rather than silently inventing transformations.

Does researcher approval eliminate the need to verify AI-generated code?

No. An approved methodological rule can still be implemented incorrectly. Researchers must verify that the executed procedure matches the approved specification.

09 · The Bottom Line

Researchers Define the Rules; AI Can Execute Them

The Bottom Line

Researchers must explicitly specify and justify data-cleaning decisions that affect observation inclusion, missing-data treatment, variable meaning, or substantive analytical results. AI can assist with implementation but should not independently establish those methodological rules.

Use clear specifications, documented approvals, and proportionate verification. Automation is most defensible when the researcher can explain why a transformation was necessary and demonstrate that the software performed exactly what was authorized.

10 · Sources and Further Reading

Sources and Further Reading

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