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

Does Consistent AI Coding Mean the Coding Is Valid?

Generative AI may assign the same codes repeatedly without interpreting the data correctly. Learn why coding consistency differs from validity, what agreement statistics can and cannot establish, and how to evaluate whether AI-generated classifications represent the concepts your research intends to measure.

390
AI Coding Consistency vs. Validity Guide 390 of 1196
01 · The Question

If AI Assigns the Same Codes Every Time, Can You Trust the Results?

You ask generative AI to classify 500 open-ended survey responses using a predefined codebook. To check its reliability, you repeat the task. The model assigns nearly identical codes both times. When you compare the results, agreement is remarkably high.

Does this mean the coding is valid?

Not necessarily. A model can consistently misunderstand a participant's statement, repeatedly overlook an important category, or apply a flawed coding framework without variation. The resulting classifications may appear dependable because they are stable, even when they misrepresent the data.

This distinction matters whenever researchers use AI-coded responses to support findings, compare participant groups, or make institutional and policy recommendations.

02 · The Short Answer

Consistent Coding Does Not Automatically Establish Validity

In Brief

No. Consistent AI coding does not necessarily mean the coding is valid. Consistency concerns whether similar coding decisions are produced under comparable conditions, whereas validity concerns whether the resulting classifications adequately represent the concepts, meanings, or phenomena the research intends to examine.

A model can repeatedly produce the same incorrect label. Researchers should therefore evaluate coding stability, agreement with defensible reference decisions, systematic errors, and the conceptual appropriateness of the coding framework rather than treating repeatability as proof of correctness.

03 · What You Need to Know

Why AI Coding Consistency and Validity Are Different

What Does Consistency Mean in AI-Assisted Coding?

Consistency refers to the stability or uniformity of coding decisions under specified conditions. In structured classification tasks, researchers may examine whether identical responses receive the same codes across repeated runs or whether comparable responses are classified according to the same decision rules.

Several forms of consistency are relevant:

  • Repeat-run stability: Whether the same input receives the same classification when the AI procedure is repeated.
  • Within-dataset consistency: Whether comparable responses are treated similarly within one dataset.
  • Between-batch consistency: Whether coding rules remain stable across separately processed groups of responses.
  • Agreement with another coder: Whether AI assignments match those made by a human coder or another coding system.

These properties provide different information. A model might be stable across repeated runs but disagree substantially with a human-developed reference set. Conversely, some disagreement with human coders may reflect genuine ambiguity rather than a simple model failure.

The operational challenges become especially relevant when coding thousands of text responses, where systematic differences may be difficult to detect by casually examining the final spreadsheet.

What Does Validity Mean in Research Coding?

Validity concerns whether the interpretations and uses of coding results are justified by the evidence and appropriate to the research purpose. In structured content analysis, this includes whether code definitions adequately represent the intended constructs and whether individual assignments follow those definitions.

Consider a study examining institutional barriers to educational technology adoption. A codebook distinguishes insufficient training, inadequate technical infrastructure, and lack of administrative support.

If AI repeatedly classifies statements about mandatory institutional schedules as "poor personal time management," the assignments may be consistent but conceptually inappropriate. The model has attributed an institutional constraint to individual behavior.

Validity is not established by the apparent precision of the labels. Researchers must examine whether the coding framework and its application preserve distinctions that matter to the research question.

How Can AI Be Consistently Wrong?

Imagine a researcher asks AI to classify students' comments about online learning. One student writes:

"The platform is excellent if your idea of entertainment is watching the loading screen for half an hour."

The model repeatedly assigns the code "positive platform experience" because the response contains the word "excellent."

Across five identical processing attempts, the classification remains unchanged. The result demonstrates stability, but the model has missed the sarcasm and underlying complaint.

Consistent but incorrect The model repeatedly assigns "positive platform experience" to the sarcastic complaint.
Contextually supported The researcher identifies the statement as criticism of slow platform performance.

The problem becomes more consequential when a model systematically misinterprets particular forms of expression, including sarcasm, indirect criticism, culturally specific language, or code-switching.

Repeated errors can create systematic bias in AI-coded research data, even when conventional consistency measures appear satisfactory.

Is Agreement With Human Coders Evidence of Validity?

Agreement with independently produced human coding can provide useful evidence, particularly in structured classification approaches. However, its meaning depends on how the human reference decisions were developed.

Suppose AI agrees with a human coder on 95% of responses. This may be encouraging, but several questions remain. Were the code definitions appropriate? Did the human coder interpret the responses correctly? Were ambiguous cases resolved carefully? Were less frequent categories represented in the evaluation?

Human coding is not automatically a perfect ground truth. Researchers may disagree because of unclear definitions, contextual differences, or legitimate interpretive alternatives.

A defensible reference set may involve independent coding, discussion of disagreements, and documented adjudication. Its development should reflect the methodological approach rather than merely treating one person's initial classification as unquestionably correct.

What Can Percent Agreement Tell Researchers?

Percent agreement measures the proportion of coding decisions that match between two sets of classifications. It is straightforward to calculate and can provide an initial description of agreement.

Calculating Agreement
Percent agreement = (Number of matching classifications ÷ Total classifications compared) × 100
Matching classifications are decisions that agree under the specified comparison rules. For multi-label coding, researchers must define whether agreement concerns individual code decisions or the complete set of codes assigned to each response.
Hypothetical example: If AI and a human reference agree on 90 of 100 single-label classifications, percent agreement is 90%. This means the assignments matched in 90 comparisons. It does not establish that the coding framework is valid or that the 90 matching decisions are necessarily correct.

Percent agreement does not account for agreement expected by chance. It may also conceal category-specific problems, particularly when one category dominates the dataset.

Does Cohen's Kappa Prove AI Coding Is Valid?

No. Cohen's kappa is a chance-corrected measure of agreement between two raters assigning categorical labels under an appropriate coding design. It is not a direct measure of construct validity.

The statistic is commonly expressed as:

Cohen's Kappa
κ = (Po − Pe) ÷ (1 − Pe)
Po is the observed proportion of agreement. Pe is the agreement expected by chance based on the raters' marginal category distributions.
Hypothetical example: If observed agreement is 0.90 and expected agreement is 0.50, κ = (0.90 − 0.50) ÷ (1 − 0.50) = 0.80. This indicates substantial chance-corrected agreement under one commonly used interpretation, but does not establish that the category definitions represent the intended constructs correctly.

Kappa values can be influenced by category prevalence and marginal distributions. Researchers should avoid interpreting a single coefficient without examining the underlying classification table and the nature of disagreements.

For multi-label coding, ordinal categories, or complex coding structures, other evaluation approaches may be more appropriate. The statistic should be selected to match the actual coding design.

Can High Accuracy Still Hide Serious Coding Errors?

Yes. Overall accuracy can be misleading when categories are highly imbalanced.

Suppose 95% of responses belong to a common category and 5% describe accessibility barriers. A model that assigns every response to the common category would achieve 95% overall accuracy against that reference distribution while failing to identify any accessibility cases.

The high accuracy would conceal a complete failure on the less frequent category.

Researchers should therefore consider category-specific precision, recall, confusion matrices, and the consequences of different error types when evaluating structured coding tasks.

A false negative may be especially consequential when it causes a researcher to overlook experiences affecting a small or underrepresented group. The importance of an error depends on the study's purpose, not only its frequency.

Does Reliability Have the Same Meaning in Every Qualitative Methodology?

No. The emphasis placed on coding agreement varies across qualitative research traditions.

In coding-reliability approaches to content or thematic analysis, consistent application of categories may be an explicit methodological objective. Agreement statistics can therefore contribute to evaluating the coding procedure.

In reflexive thematic analysis, however, coding is understood as an interpretive activity shaped by the researcher's theoretical position and engagement with the data. Braun and Clarke (2021) explain that inter-coder reliability is not a universal quality requirement across thematic analysis approaches.

Applying agreement statistics indiscriminately can therefore create a mismatch between the evaluation procedure and the study's methodological assumptions.

Researchers should determine what constitutes a defensible coding decision within their analytical tradition before selecting numerical measures.

How Can Researchers Evaluate AI Coding Validity More Defensibly?

For structured classification tasks, researchers can evaluate whether the codebook represents the intended constructs, compare AI outputs against carefully developed reference coding, and examine the distribution and consequences of errors.

For more interpretive approaches, researchers may examine whether coding decisions remain grounded in participants' accounts, preserve relevant context, and contribute to an analytically coherent interpretation.

In either case, researchers should investigate contradictory cases and determine whether the model systematically overlooks particular meanings.

Gilardi, Alizadeh, and Kubli (2023) demonstrated promising language-model performance on several text-annotation tasks. Their findings illustrate the potential of AI classification but do not imply that strong annotation agreement establishes conceptual validity in every research setting.

Parfenova and colleagues (2025) similarly examined differences between language models and human experts during inductive coding, reinforcing the need to consider task complexity and the nature of coding decisions.

Researchers should also plan an appropriate manual verification procedure rather than assuming that one favorable statistic makes further examination unnecessary.

04 · A Practical Example

When 95% AI Coding Agreement Conceals a Serious Problem

Hypothetical Example

Classifying Student Experiences With Online Learning

A researcher evaluates an AI system that classifies 200 open-ended survey responses into two categories: general learning difficulties and accessibility barriers. An independently reviewed reference set contains 190 general-difficulty responses and 10 accessibility-barrier responses.

The model assigns all 200 responses to general learning difficulties.

Step 1: Examine the Overall Result

Because 190 responses belong to the general-difficulty category, the model correctly classifies 190 of 200 responses.

Overall Accuracy
Accuracy = (Correct classifications ÷ Total classifications) × 100
Correct classifications are assignments matching the independently reviewed reference decisions.
190 ÷ 200 × 100 = 95%. The model achieves 95% accuracy, but this does not show how well it identifies each category.

Step 2: Examine the Confusion Matrix

Reference Category AI: General Difficulties AI: Accessibility Barriers
General learning difficulties 190 0
Accessibility barriers 10 0

The model correctly identifies every general-difficulty response but misses all ten accessibility cases. Its recall for accessibility barriers is therefore 0%.

Step 3: Interpret the Consequences

If the researcher relied only on the overall accuracy, the model might appear highly effective. Yet its classifications would suggest that no respondents reported accessibility barriers, contradicting the reviewed evidence.

The resulting analysis could underrepresent an important student experience and produce misleading institutional recommendations.

Even if repeated AI runs produced exactly the same assignments, that stability would not correct the underlying problem.

Step 4: Revise the Evaluation

The researcher examines the missed cases, reviews the accessibility code definition, and investigates whether the model fails to recognize indirect descriptions of disability-related barriers.

Any revised instructions or classification procedure should be evaluated on additional material not used to develop the revision.

The example demonstrates why researchers should ask not only how often AI agrees with a reference, but also which experiences its errors may erase.

05 · What Researchers Often Get Wrong

Misconceptions About Reliable and Valid AI Coding

Misconception

If AI Produces Identical Codes Twice, Must Those Codes Be Correct?

No. Repeatability demonstrates stability under the tested conditions, not correctness. The same unsupported interpretation can appear in every run.

Misconception

Does High Agreement With a Human Coder Establish Validity?

Not by itself. Human reference decisions may contain errors or reflect an inadequate framework. Agreement should be interpreted alongside code definitions, reference quality, and the research question.

Misconception

Is Cohen's Kappa a Direct Measure of Coding Validity?

No. Kappa measures chance-corrected agreement under specified conditions. It does not determine whether the coding categories adequately represent the intended constructs or meanings.

Misconception

Does 95% Overall Accuracy Mean Every Category Is Coded Well?

No. High overall accuracy can conceal poor performance on rare categories. Researchers should examine category-specific errors and the consequences of missed cases.

Misconception

Are Disagreements Between AI and Human Coders Always AI Errors?

Not necessarily. Disagreement may expose ambiguous text, inconsistent human coding, or unclear definitions. Researchers should investigate the evidence before assigning responsibility for the difference.

Misconception

Should Every Qualitative Study Report Inter-Coder Reliability?

No. The appropriateness of agreement statistics depends on the methodological approach. Reflexive thematic analysis, for example, does not treat inter-coder reliability as a universal criterion of analytical quality.

06 · What This Means for You

How to Decide Whether Your AI-Coded Results Are Defensible

Researchers should treat consistency as one possible source of evidence about a coding procedure, not as a substitute for evaluating its conceptual and analytical adequacy.

A simple decision framework

If AI produces identical assignments across repeated runs
Treat this as evidence of stability and separately examine whether the assignments are supported by the data.
If overall accuracy is high
Examine category-specific precision, recall, and consequential error patterns.
If AI and human coders disagree
Review the original passages and coding definitions before deciding which interpretation is defensible.
If the model systematically misses a particular type of response
Investigate whether the problem reflects model limitations, codebook design, or characteristics of the affected responses.
If your methodology emphasizes interpretive meaning rather than standardized classification
Evaluate the coding using criteria consistent with that analytical approach rather than automatically imposing agreement statistics.

When a model produces classifications that appear stable but remain conceptually questionable, researchers should investigate the underlying assumptions before scaling the workflow.

The distinction also matters when deciding whether AI coding can proceed without human review. A model's consistency is not sufficient evidence that independent oversight is unnecessary.

07 · A Quick Checklist

Before Treating AI Coding as Reliable and Valid

Before accepting your coding results, check:
Define which form of coding consistency you intend to evaluate.
Confirm that the coding framework represents the concepts relevant to your research question.
Develop or obtain defensible reference coding when structured accuracy evaluation is appropriate.
Distinguish repeat-run stability from agreement with independently reviewed classifications.
Examine category-specific errors rather than relying only on overall accuracy.
Investigate ambiguous, contradictory, and culturally specific responses.
Select agreement statistics only when they fit the coding design and methodological approach.
Document consequential disagreements, revisions, and final coding decisions.
08 · Frequently Asked Questions

Frequently Asked Questions About AI Coding Consistency and Validity

Is consistent AI coding the same as accurate AI coding?

No. Consistency concerns stability or uniform application of rules, while accuracy concerns correspondence with an appropriate reference. A model can consistently produce incorrect classifications.

Can AI coding be reliable but invalid?

Yes. A model may repeatedly assign the same codes while misunderstanding the intended concepts or applying a flawed coding framework. Reliability and validity address different questions.

What is a good Cohen's kappa for AI coding?

There is no universally appropriate cutoff. Interpretation depends on the coding task, category prevalence, study purpose, and consequences of disagreement. Researchers should report the coefficient alongside relevant category distributions and error analysis.

Does 90% agreement mean AI coding is acceptable?

Not necessarily. The acceptability of agreement depends on which responses disagree, the quality of the reference coding, and the consequences of errors. A high overall percentage can conceal serious problems in particular categories.

Can two human coders agree and still be wrong?

Yes. Coders may share an incorrect interpretation or apply the same inadequate definitions. Agreement provides information about coding consistency, not automatic proof of conceptual validity.

Should researchers use accuracy, F1 score, or Cohen's kappa?

The appropriate measures depend on the evaluation question and coding design. Accuracy and F1 can evaluate classification performance against reference labels, while kappa measures chance-corrected agreement. No single statistic establishes all aspects of coding quality.

Can AI coding validity be evaluated without numerical agreement statistics?

Yes. Depending on the methodology, researchers may examine contextual adequacy, interpretive coherence, supporting evidence, and the treatment of contradictory cases. Numerical agreement is not a universal requirement across qualitative research traditions.

09 · The Bottom Line

Stable Coding Is Not Necessarily Sound Coding

The Bottom Line

Consistent AI coding does not automatically mean valid coding. A model may reproduce the same classifications reliably while systematically misunderstanding participants' statements or applying categories that do not adequately represent the research concepts.

Evaluate what the codes mean, how they were assigned, and which errors remain hidden behind favorable agreement statistics. The objective is not simply to obtain repeatable labels, but to produce interpretations and classifications that are defensible in relation to the research question.

10 · Sources and Further Reading

Research and Methodological References

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