Logo
Technical methodologyAIDetector.cx Research Team

Dual-Engine AI Detection Methodology

How complementary linguistic and statistical analysis layers are combined to assess whether a text contains patterns commonly associated with AI-generated writing—while accounting for uncertainty and the risk of false positives.

Linguistic analysis
Statistical analysis
Ensemble calibration

1. Architecture overview

AIDetector.cx uses two complementary analytical layers as part of a larger detection pipeline. The linguistic layer examines how ideas and sentences are expressed; the statistical layer measures distributional and repetition patterns in the text. An ensemble stage brings these signals together, followed by calibration and reliability handling.

The high-level processing sequence is:

  1. Language identification: determine the likely language and the confidence of that determination.
  2. Preprocessing and normalization: prepare the submitted text for consistent analysis while retaining the writing characteristics needed by downstream stages.
  3. Linguistic analysis: extract structural, lexical, syntactic, and discourse-related signals.
  4. Statistical analysis: measure predictability, variation, repetition, n-gram uniqueness, and related distributional signals.
  5. Ensemble scoring: combine feature groups and, where available and supported, an additional classifier signal.
  6. Calibration: adjust the combined probability and confidence to account for language reliability and content type.

The two layers are complementary, not two independent authorities issuing separate final verdicts. Their evidence is combined so that a single feature—such as sentence length or predictability—does not determine the result by itself.

2. Linguistic analysis layer

The linguistic layer studies characteristics of the writing itself. It evaluates patterns across sentences and paragraphs rather than relying on a single keyword list or a simple count of grammatical features.

Signals considered

  • Lexical diversity and repetition: how vocabulary is distributed and whether words or phrases recur unusually often.
  • Sentence structure: variation in sentence length and syntactic regularity.
  • Transitions and discourse flow: how predictably sentences and paragraphs connect.
  • Formulaic phrasing: recurring openings, endings, boilerplate expressions, and balanced constructions.
  • Paragraph structure: symmetry and repeated structural patterns across paragraphs.
  • Stylistic variation and editing signals: changes in expression and signs of coherent human revision.

These signals are interpreted together. Formal, academic, legal, or technical writing can naturally be regular and structured, so regularity alone is not treated as proof of AI authorship.

3. Statistical analysis layer

The statistical layer measures patterns that can be quantified across the text. It complements the linguistic analysis by examining distributions and repetition at token, sentence, and phrase levels.

  • Token predictability: a text-level proxy for how predictable word sequences appear.
  • Burstiness and sentence variation: the degree to which sentence lengths vary rather than remaining uniform.
  • N-gram uniqueness: how often short sequences of words are repeated or reused.
  • Repetition density: the concentration of repeated words and phrases.
  • Vocabulary compression: how broadly or narrowly vocabulary is used relative to text length.
  • Coherence and editing signals: additional measures of continuity and variation across sentences.

No single statistical measure can reliably identify authorship. Human writers can produce highly predictable text, and generated text can be edited to introduce substantial variation. Statistical features therefore contribute evidence to the ensemble rather than acting as a standalone test.

4. Ensemble scoring and language-aware calibration

The ensemble stage combines grouped linguistic and statistical signals into an overall assessment. Sentence- and paragraph-level signals can also contribute to the combined score. When a supported classifier result is available, the implementation can blend that signal with the feature-based estimate using language-dependent weighting.

Content-aware weighting

Different writing contexts have different baseline characteristics. Academic, research, blog, email, creative, legal, technical, and other content types may therefore use different sensitivity and human-signal weighting. This helps avoid treating every writing genre as if it had the same natural structure.

Language-aware calibration

Calibration accounts for the detected language, language-identification confidence, and whether the language is supported by the relevant calibration path. The implementation includes dedicated calibration handling for Spanish and Arabic, alongside general language calibration and reliability factors. Calibration is important because the same raw feature values do not necessarily carry the same meaning across languages.

Confidence and disagreement

The system also considers disagreement among feature groups and variation in classifier signals when estimating confidence. A result near the decision boundary or with conflicting evidence should be interpreted more cautiously than a result where several independent signal groups point in the same direction.

5. Interpreting a detection result

A detection score is an estimate based on observable text patterns. It is not a forensic identification of an author, a record of which application was used, or proof that a person violated a policy.

  • Read the score alongside the confidence and any mixed or uncertain indicators shown in the report.
  • Consider the document's language, length, genre, editing history, and context.
  • For consequential decisions, review drafts, version history, notes, sources, and other relevant evidence.
  • Do not use a detector score as the sole basis for academic, employment, or disciplinary action.

6. Limitations, safeguards, and ongoing evaluation

AI detection is an evolving classification problem. Models change, writing styles vary, and human editing can alter the signals a detector observes. Short passages provide less evidence than longer documents, and performance may differ across languages and subject areas.

Responsible-use principle

A detector result should support informed review, not replace human judgment. False positives and false negatives remain possible, and no score should be presented as conclusive proof of authorship.

Methodology claims should be evaluated against reproducible tests on clearly labelled human-written and AI-generated samples. Useful reporting includes dataset composition, language and genre coverage, sample length, decision thresholds, precision, recall, false-positive rate, false-negative rate, and the date on which testing was performed. We do not publish a performance figure on this page because an architectural description alone is not an accuracy benchmark.

For benchmark design and evaluation metrics, see AI Detection Accuracy Tests. For practical guidance on protecting legitimate human writing, see Avoiding False Positives in Institutional AI Detectors.

Frequently asked questions

What does dual-engine mean?

It refers to complementary linguistic and statistical analysis layers whose signals are combined into one assessment.

Is this just a perplexity test?

No. Predictability is only one signal among many linguistic and statistical features.

Can human writing be flagged?

Yes. Highly structured writing, language differences, and short samples can increase uncertainty or false-positive risk.

Does the system prove who wrote a text?

No. It estimates patterns in text and cannot establish a writer's identity or intent.

Research transparency note

This page describes the detection architecture represented in the AIDetector.cx source implementation. It is an explanatory methodology document, not a claim of independent certification or a substitute for a dated benchmark report. Implementation details may evolve; benchmark results should always be read with their dataset and test date.