AI Mobile Testing Accuracy: How to Measure Automation Results

Reading Time : 4 min read
AI testing accuracy matrix of true and false positives and negatives

AI mobile testing accuracy starts with a simple question: did automation perform the action you requested without failure?

Consider a test step that says, “Select the Checkout button.” AI identifies an element and automation clicks it. The command returns successfully. But did it select Checkout or the Checkout These Other Products button beside it?

To measure accuracy, compare the selected element with an independently verified target, often called ground truth. Evaluate each step separately, including cases where the requested element is absent.

The four outcomes used to measure AI mobile testing accuracy

“Positive” means automation proceeds with a selected element. “Negative” means AI reports no matching element and stops execution. Correctness depends on whether that selection or no-match decision was justified.

True positive: the intended action completes successfully

True positive: AI correctly selects the Checkout button above Checkout These Other Products on a mobile shopping cart screen.

Checkout is present. AI identifies it, and automation selects it successfully. This is a true positive (TP): the requested action occurred on the intended element.

False positive: automation acts on the wrong element

False positive: AI incorrectly selects Checkout These Other Products instead of the Checkout button on a mobile shopping cart screen.

AI selects Checkout These Other Products instead of Checkout. The click succeeds, and automation proceeds as though it completed the instruction.

This is a false positive (FP). The command executed, but it acted on the wrong element. This can happen whether Checkout is present or absent.

False negative: AI cannot find an element that is present

Checkout is visible and available, but AI reports that it cannot find it. Automation cannot continue with the requested action.

This is a false negative (FN): automation could have performed the requested action, but the locator missed the target.

True negative: AI correctly recognizes that the element is absent

Checkout is absent, and AI correctly reports no matching element. Automation halts instead of selecting another control.

This is a true negative (TN). The locator made the correct decision, even though the requested action could not complete.

AI’s responseCorrect decisionIncorrect decision
Selected an elementTrue positive: Selected Checkout successfullyFalse positive: Selected another element
Reported no matchTrue negative: Checkout was absentFalse negative: Checkout was present

When calculating AI mobile testing accuracy, count each request once. Under this scoring convention, selecting the wrong element counts as a false positive, even when the intended element is also present. Execution failures after a correct selection, such as a disconnected device, require separate tracking.

How to calculate AI mobile testing accuracy

Accuracy is the proportion of scored requests that produced the correct decision.

Accuracy = (TP + TN) ÷ (TP + TN + FP + FN)

Suppose an evaluation contains 100 requests:

  • 80 true positives: automation selected the correct element successfully.
  • 5 false positives: automation selected the wrong element.
  • 10 false negatives: AI missed an element that was present.
  • 5 true negatives: AI correctly reported that the element was absent.

The accuracy is (80 + 5) ÷ 100 = 85%.

That means 85 correct decisions. Automation completed the intended action in 80 requests. For the other five correct decisions, AI correctly reported that the requested element was absent.

AI mobile testing accuracy calculator

Calculate your AI mobile testing accuracy

Enter the number of requests for each outcome.
Correct decision
Incorrect decision
Selected an element
Reported no match
Accuracy
85%
(TP + TN) ÷ total requests
(80 + 5) ÷ 100 = 85%
Correct decisions
85 of 100
Correctly completed actions
80
Count each request once. A wrong selection counts as a false positive, even when the intended target is present.

Comparing AI mobile testing accuracy across element-locating approaches

AI can locate elements from screenshots, UI trees, or a combination of both. Compare these approaches using the same instructions, application states, and independently verified targets. Include absent-target cases to evaluate whether each approach correctly reports no match.

Keep the proportions of present and absent targets consistent. Adding easy absent-target cases can raise overall accuracy without improving correct selections.

Kobiton’s AI Mobile Testing Benchmark measures localization on known targets. Its centroid correctness metric checks whether the center of a predicted bounding box falls inside the intended target. To evaluate completed actions and correct no-match responses, you need execution results and requests where the target is absent.

Interested in Learning More?

Subscribe today to stay informed and get regular updates from Kobiton

Ready to accelerate delivery of
your mobile apps?

Request a Demo