Evalgent
Back to Blog
Voice AI Testing

Voice Agent Cohort Analysis: Slice Failures by Accent, Device, Carrier and Language

Deepesh Jayal
14 min read
Voice Agent Cohort Analysis: Slice Failures by Accent, Device, Carrier and Language
On this page

Your dashboard says 92% of calls succeed. That average can hide a small group of callers for whom the agent fails twice as often.

This post covers voice agent cohort analysis: slicing failure rates by who is calling, how they reach you and when. All numbers in the worked examples are made up for illustration. They are not measurements.

Accent robustness covers pre-launch speech tests, and clustering failures groups them by cause. This post starts from who called. Cohorts tell you where to look. Traces tell you why, as in the root cause analysis routine.

Choose cohort dimensions and know where each comes from

A cohort is a group of calls that share a field recorded before the call went wrong. Most teams already hold such fields.

Cohort dimensionSourceCaveat
LanguageMenu choice, app locale, configured agent languageThe language chosen is not always the language spoken
Accent or dialect groupCaller-supplied only: an optional, self-described survey answer. In tests, the test caller's accentSparse and self-reported. Never infer it from the audio
Device typeYour app or SDK. SIP user agent where the trunk reports itOn a plain phone call you usually cannot see the handset
Carrier or networkTelephony records, a number lookup, or a network field your app sendsDescribes the number or app network, not call quality. Check how ported numbers are handled
Entry channelThe telephony record: PSTN, SIP trunk, WebRTC or app clientOften travels with device and language
Time of dayCall start timestamp, in a time zone you chooseMoves with campaign mix and caller type
Caller typeYour own CRM fields: new or returning, plan, consumer or businessOnly if you already hold it lawfully. Do not infer it

As of November 23, 2026, Twilio's Voice Insights Call Summary lists a call type (carrier, sip, trunking, client or whatsapp) and shows a carrier name in its example response. It needs Voice Insights Advanced Features. Twilio's Line Type Intelligence returns a number type and a carrier_name, which is null for some types.

LiveKit's SIP participant attributes include sip.phoneNumber and sip.trunkID, and you can map your own X-* SIP headers into attributes. For mobile apps, the OpenTelemetry network attribute registry defines network.carrier.name and network.connection.type, both at Development stability. Log these on every call, as in what to log on every voice agent call. A field you did not log cannot be sliced later.

Never infer accent, ethnicity or other traits from the voice

It is tempting to run a classifier on the audio and label each caller with an accent. Do not.

  • It is unreliable. Accent is a spectrum shaped by region, age, first language and setting. A classifier forces each caller into a bucket, and its error rate may differ across the groups you want to protect.
  • It is a fairness and privacy risk. A wrong label pins a presumed origin on a real person. A right one is just as sensitive, because the caller never offered it.
  • You do not need it. Language, channel, carrier and an opt-in self-description get you to the same fix.

The same goes for names and for age or gender guesses from pitch. For accent cohorts, ask callers an optional question, or use test callers where you set the accent.

How many calls does a cohort need?

A voice agent failure rate by cohort is an estimate, so show it with an interval. Use the Wilson score interval, not the textbook normal approximation. SciPy documents it as method="wilson", citing Wilson (1927) and Newcombe (1998). statsmodels lists it beside four other methods. For k failures in n calls, with p = k/n and z = 1.96:

center     = (p + z^2 / (2n)) / (1 + z^2 / n)
half_width = z * sqrt(p(1-p)/n + z^2 / (4n^2)) / (1 + z^2 / n)

A worked example, arithmetic checked

A cohort has 20 calls and 3 failures, so p = 0.15. The divisor is 1 + 3.8416 / 20 = 1.19208. The center is (0.15 + 0.09604) / 1.19208 = 0.2064. Under the root, 0.15 x 0.85 / 20 + 3.8416 / 1600 = 0.008776, whose root is 0.09368. The half width is 1.96 x 0.09368 / 1.19208 = 0.1540. The interval is 5.2% to 36.0%.

That range includes an 8% fleet rate, so this cohort is not shown to be worse. The normal approximation fails where small cohorts live. For 0 failures in 20 calls it gives 0% to 0%. Wilson gives 0% to 16.1%. Zero failures in 20 calls does not mean the cohort is safe. You have not looked long enough.

At an observed 8%, the Wilson interval is 22.7 points wide at 25 calls and 3.4 points wide at 1,000.

Chart of Wilson 95 percent intervals at an observed 8 percent failure rate for cohorts of 25 to 1,000 calls, narrowing from 22.7 to 3.4 points wide.

Set a floor, and say what it is

Set a minimum sample size per cohort before you look at results. Below it, show "not enough calls" instead of a rate. The floor is a policy choice. A reasonable start is 100 calls and 10 failures, since failures carry the information.

To size a cohort, treat the 8% fleet rate as known, with a two-sided 5% test and 80% power. The formula is n = ((1.96 x sqrt(p0 q0) + 0.84 x sqrt(p1 q1)) / (p1 - p0))^2. It gives about 405 calls to spot a rise from 8% to 12%, and about 141 for 8% to 15%. With 30 slices, the correction below pushes the first figure to about 793.

Calls are not independent when one caller phones five times, so count callers when you can. If you review only a sample of calls, cohort rates inherit it. See sampling live calls.

Compare a cohort to the rest

Good voice agent cohort analysis compares each cohort with all other calls and leaves the cohort out of that baseline. Use two numbers. The rate difference is the cohort rate minus the rest, in extra failures per 100 calls, and sizes the impact. The relative risk is the cohort rate divided by the rest, and ranks cohorts.

A worked example

Take 12,000 calls with 960 failures (8.0%). One carrier cohort has 240 calls and 36 failures. The other 11,760 calls have 924.

  • Cohort rate: 36 / 240 = 15.0%, Wilson interval 11.0% to 20.1%.
  • Rest: 924 / 11,760 = 7.86%, interval 7.4% to 8.4%.
  • Rate difference: 7.1 points. Relative risk: 15.0 / 7.86 = 1.91.

For a confidence interval on the difference, use the standard error sqrt(p1(1-p1)/n1 + p2(1-p2)/n2), here 2.32 points. The 95% interval is 7.1 +/- 1.96 x 2.32, or 2.6 to 11.7 points. The log method gives relative risk an interval of 1.40 to 2.60. Taken alone, this cohort looks worse.

Why small cohorts mislead

One call moves a cohort of 20 by 5 points and a cohort of 1,000 by 0.1 point. So the smallest cohorts crowd both ends of a list sorted by rate, and the worst-looking cohort is often just the smallest. Sort by the lower end of the interval instead, and hide cohorts under your floor.

Thirty slices means some will look bad by chance

Slice voice agent failures by six dimensions with five values each and you test 30 cohorts. This is the multiple comparisons problem. Say none is truly worse. Each test has a 5% false alarm rate, so the chance that at least one of 30 flags is 1 - 0.95^30 = 78.5%. You expect 1.5 false flags. Slices overlap, so read this as a rough guide.

The NIST handbook warns that repeating pairwise comparisons does not keep the overall significance level, and lists the Bonferroni method for a pre-selected group of comparisons. The Bonferroni correction divides the test level by the number of slices: 0.05 / 30 = 0.00167, a two-sided z of about 3.14.

Apply that to the carrier cohort. Its difference has a z of 3.08, so p is about 0.002. That clears 0.05 but not 0.00167. At the corrected level the interval on the difference is -0.1 to 14.4 points and includes zero. The cohort did not become fine. It became a lead, not a finding.

You also pick the worst of 30 slices, so its gap is inflated by selection. Fresh calls usually show a smaller gap.

Check for confounding before you blame the cohort

A cohort can look bad because another field travels with it, and voice agent cohort analysis fails most often here. A carrier cohort may really be a language cohort. Simpson's paradox is the extreme case. The Stanford Encyclopedia of Philosophy defines it as an association that emerges, disappears or reverses when a population is split into subpopulations, through confounding by a third variable.

Compare two carriers. Callers choose English or Spanish. Spanish calls fail more for everyone, and carrier A has more of them.

GroupCarrier ACarrier B
English4 of 100 failed (4.0%)45 of 900 failed (5.0%)
Spanish80 of 400 failed (20.0%)22 of 100 failed (22.0%)
All calls84 of 500 failed (16.8%)67 of 1,000 failed (6.7%)

Overall, carrier A looks guilty. Within each language it is slightly better, and those gaps are within noise. The overall gap comes from the language mix.

Two-panel chart of illustrative failure rates: carrier A looks worse on all calls, 16.8 percent versus 6.7 percent, but is slightly better within English and within Spanish.

To check for it, cross the suspect cohort with language, channel, region and device. If it is concentrated in one value of another field, compare the cohort to the rest inside each value of that field. If the gap shrinks or reverses, the other field explains it.

A cohort that stays bad has a mechanism. Voice call quality metrics and phone audio quality cover network-path causes. Background-noise tests cover the noisy-device case.

What to do with a bad cohort

A bad cohort is a hypothesis. Run it through four gates: enough calls, survival of the slice correction, a gap that holds within other fields, and traces that show a cause.

Decision flow of four gates for a cohort that looks bad: enough calls, survives slice correction, holds within other fields, traces show a cause. Each gate has an exit.

Find the cause in the traces

Pull failed calls from the cohort and read their traces for the step where they diverge from passing calls. See debugging a bad call. Then cluster the cohort's failures. One cluster means a single cause. Many clusters mean the cohort is a label, not a cause. If the data cannot tell, say "undetermined" and add the missing field. STT observability shows which turns the recognizer got wrong.

Add test cases that match the cohort

Once you suspect a mechanism, write tests that reproduce it first. Evalgent caller profiles have exactly seven parameters: accent, speech pace, interruption level, response delay, behaviour, background noise and language. The call simulator reaches the agent over phone (PSTN), SIP or WebRTC.

Cohort findingProfile parameters to setNote
Spanish-language callers fail more oftenLanguage, speech paceSee multilingual tests
Opt-in respondents describing one accent fail more oftenAccentA test caller shows how the agent handles that accent, not how real callers sound
In-app WebRTC calls fail more oftenBackground noiseRun the scenario over WebRTC and PSTN. See SIP vs WebRTC
Callers who cut in fail more oftenInterruption level, response delayA behaviour cohort, derived from the call
One carrier fails more oftenNoneA profile cannot recreate a carrier. Make real calls over that path

Keep a profile as a test input, not a classification of real callers. Before you slice, make sure every call carries a consistent outcome and failure-reason tag, as in the call tagging taxonomy. If a cohort's failures began with a release, tie them to it with release attribution.

Fix, then re-measure

Write down the cohort, the failure definition and the floor before the fix ships. Then measure on fresh calls only and compare the new interval to the old one. If the gap stays, the cause was something else, or the first reading was selection noise.

Privacy and fairness notes

  • Aggregate, do not profile. Report cohort rates, not lists of callers.
  • Set a minimum cohort size before showing a cell. Hide or merge any cohort under your floor. Crossing carrier, language and hour can leave cells of one or two people.
  • Do not infer sensitive traits. No accent, ethnicity, gender, age or health guess from the voice, and none from a name.
  • Collect only what callers offer. Store an optional survey answer apart from account data.

Rules on special categories of personal data differ by place. Ask your counsel. This is not legal advice.

How to run voice agent cohort analysis in seven steps

1. Define a failure - Fix one failure label per call and a denominator, such as all calls for one intent.

2. Log cohort fields on every call - Capture language, channel, carrier, device, time of day and caller type at call start. Mark missing values as missing.

3. Set the floor - Choose a minimum number of calls and failures per cohort before you look.

4. Compute rate, interval and gap - Give each cohort a rate, a Wilson interval, and the difference and relative risk against all other calls.

5. Correct for slice count - Divide your test level by the number of slices, or treat survivors as leads.

6. Cross-check for confounders - Cross the top cohorts with other dimensions and compare within strata.

7. Trace, test, fix, re-measure - Read traces for survivors, write tests with matching profiles, ship the fix and measure on fresh calls.

A simplified function for step 4, assuming one row per call and a boolean failed column:

import math
import pandas as pd
from scipy.stats import binomtest

def cohort_table(calls: pd.DataFrame, dim: str) -> pd.DataFrame:
    total_n, total_f = len(calls), int(calls["failed"].sum())
    rows = []
    for value, g in calls.groupby(dim, dropna=False):
        n, f = len(g), int(g["failed"].sum())
        rest_n, rest_f = total_n - n, total_f - f
        if rest_n == 0:
            continue
        p, q = f / n, rest_f / rest_n
        ci = binomtest(f, n).proportion_ci(method="wilson")
        se = math.sqrt(p * (1 - p) / n + q * (1 - q) / rest_n)
        rows.append({dim: value, "calls": n, "rate": p,
                     "lo": ci.low, "hi": ci.high, "diff": p - q,
                     "diff_lo": p - q - 1.96 * se, "diff_hi": p - q + 1.96 * se})
    return pd.DataFrame(rows).sort_values("diff", ascending=False)

Drop rows under your floor first.

Where Evalgent fits

Evalgent is a testing, evaluation and monitoring platform for voice agents. Evalgent Monitor is live. It flags problems such as tool-call failures, latency spikes and policy failures, with fix recommendations. Flagged calls are the failures a cohort table counts.

Evalgent Observe, which is launching, takes OpenTelemetry data from any stack. Traces explain why a call failed, and failures are clustered into root causes. It gives no verdict without evidence in the data you send. Where the data is blind, it says "undetermined" and shows the coverage gap. For the fix step, Evalgent generates test scenarios from your agent's prompt and flows, and test callers carry the seven-parameter profile above. You could book a demo to see a cohort finding turned into a scenario set. For the wider picture, see voice agent observability.

Frequently asked questions

How many calls does a cohort need?

Enough that the interval is narrow enough to act on. At an 8% failure rate, 25 calls give a 22.7-point interval and 1,000 give 3.4 points. A practical floor is 100 calls and 10 failures. Detecting a rise from 8% to 12% needs about 405 calls.

How do I compare a cohort to the rest of the calls?

Compare it with all other calls, leaving the cohort out of the baseline. Report the rate difference to show impact and relative risk to rank cohorts, each with an interval. Show only cohorts above your minimum size.

Why do small cohorts mislead?

One call moves a 20-call cohort by 5 points but a 1,000-call cohort by 0.1 point. So the smallest cohorts fill both ends of a ranking. A 20-call cohort with 3 failures reads 15%, but its 95% interval runs from 5.2% to 36.0%.

Is the carrier or the language causing the failures?

Check before blaming either. Cross the carrier with language, then compare inside each language. In the illustrative table, carrier A looks far worse overall but is slightly better within each language. The language mix caused the gap.

Should I infer accent from the caller's voice?

No. Accent is a spectrum, and classifiers force a bucket, so the label is unreliable. It is also a fairness and privacy risk, because it creates a record of presumed origin that callers never gave. Use language, channel, carrier and an optional self-description instead.

What should I do with a cohort that fails more often?

Treat it as a hypothesis. Check sample size, correct for the number of slices and test for confounding. Then read traces for the cause, add test cases with matching profile settings, fix it, and re-measure on fresh calls.

How do I avoid false flags when slicing many cohorts?

Expect some. With 30 slices at the 5% level, the chance of at least one false flag is 78.5%. Divide the test level by the number of slices, as in Bonferroni, or treat survivors as leads. Re-measure on fresh calls.

Where does cohort data come from?

From fields you log at call start: telephony records for channel and carrier, your app or SDK for device, menus or locale for language, the timestamp for time of day, and your CRM for caller type. An optional survey answer covers accent. Never derive a field from the audio.

The bottom line

Voice agent cohort analysis finds who your agent fails, but a cohort is only a lead until it has enough calls, survives many slices and holds within other fields. Take cohort fields from metadata and caller-supplied data, never from the voice, then trace the cause, test it with a matching profile and re-measure on fresh calls.

Related Articles