ArmSoM
← All stories

Choosing an RKNN Confidence Threshold for Rare Defects

A single confidence threshold has a business consequence. Raising it can reduce nuisance rejects while letting defects pass. Use scores collected on representative parts from the chosen ArmSoM board and image, including ordinary parts that resemble faults.

ArmSoM Sige5 single-board computer product photo

ArmSoM Sige5 single-board computer · ArmSoM

Express errors per shift

For illustration, suppose a line inspects 10,000 good parts per shift. A 0.5 percent false-positive rate would send about 50 good parts for review. The same percentage can be acceptable in a laboratory and costly on a line. At each candidate threshold, list false rejects, missed defects and the number of labeled samples behind each number.

False-positive rate on good parts

Expected reviews per 10,000 good parts

0.1 percent

10

0.5 percent

50

1.0 percent

100

For a threshold review, show counts such as missed defects out of labeled defects, separately from rejected good parts out of labeled good parts. Combining the denominators hides the cost of a rare miss.

Select the operating point with the people responsible for rework and escaped defects. Freeze a versioned threshold alongside the model. If lighting or preprocessing changes, reevaluate the decision using fresh production-like samples.

Reference material

ArmSoM Sige5 hardware documentation

Rockchip RKNN-Toolkit2 and model conversion resources

Related ArmSoM guide

RK3576 yolo deployment RKNN

Explore ArmSoM Sige5