Define the case before counting alerts
One window, one decision, an independent reference
For an Analytical RF Detection & Response System used in a benign passive RF environmental-monitoring study, define a positive as a specified change in an aggregate spectrum measurement that an independent reference confirms. A negative means that particular change is absent; it need not mean the RF environment is empty. The only response considered here is documentation and human review, without transmitting a signal. The article describes statistical evaluation, not a RayFreq performance claim. [1] [5]
Choose one fixed-length, valid observation window as the evaluation unit and one binary decision per window. Define the reference method independently of the alert, and document how multiple records in one window become one decision. Keep windows with missing observations or unresolved reference labels separate from valid negatives. The conclusions apply to that definition and population, not every possible RF event. [1] [6]
Build the confusion matrix with four counts
Keep missing and unresolved cases visible
Compare each valid window's decision with its reference label. A true positive (TP) is an alert when the defined change is present; a false negative (FN) is no alert when it is present. A false positive (FP) is an alert when it is absent; a true negative (TN) is no alert when it is absent. These four cells form the confusion matrix. The reference label is a measurement with its own possible errors, not automatic truth. [1] [2]
Report TP, FN, FP and TN, along with the number of positive reference windows TP + FN and negative reference windows FP + TN. Also report the number of invalid and unresolved windows. A report based only on reviewed alerts cannot reveal missed positives among the windows that did not alert, so it cannot establish recall. [1] [3]
Related selection reference: RF spectrum analyzers. Compare the listed configuration with your requirements before evaluation.
Separate false-positive rate from precision
Each metric uses a different denominator
False-positive rate (FPR) = FP / (FP + TN): the fraction of reference-negative windows that alerted. Recall, also called sensitivity, = TP / (TP + FN): the fraction of reference-positive windows that alerted. Precision, or positive predictive value (PPV), = TP / (TP + FP): the fraction of alerting windows confirmed positive. The observed false-discovery proportion is FP / (TP + FP), or 1 − precision when alerts exist. [1] [2]
These quantities answer different questions because their denominators differ. The term false alarm rate is ambiguous: specify whether it means FPR per valid negative window or a count of false alert events per observed negative hour. The latter also requires a stated event-grouping rule and exposure time and is not the same probability. If a denominator is zero, report the affected metric as undefined, not zero. [1] [2]
See how base rate changes alert quality
The same conditional rates, two case mixes
Consider a constructed example, not measured RayFreq data: 10,000 valid, equally defined windows, 100 reference-positive and 9,900 reference-negative. Suppose recall is 80% and FPR is 2%, yielding TP = 80, FN = 20, FP = 198 and TN = 9,702. Thus FPR = 198/9,900 = 2%, recall = 80/100 = 80%, but precision = 80/278 ≈ 28.8%. The remaining 198/278 ≈ 71.2% of alerts are false in this constructed set. [1] [2]
Now construct another 10,000-window set with 1,000 positives and 9,000 negatives, still assuming the same 80% recall and 2% FPR. The counts are TP = 800, FN = 200, FP = 180 and TN = 8,820; precision is 800/980 ≈ 81.6%. Only the positive share changed in this illustration. It demonstrates why an enriched test set's precision cannot simply be transferred to a population with a different base rate; stable conditional rates must be justified, not assumed. [2] [3]
Interpret uncertainty and dependent windows
Small samples and shared conditions matter
A percentage without its numerator and denominator conceals statistical uncertainty. For an illustrative 0 false positives in 300 independently sampled reference-negative windows, assuming a common constant false-positive probability, the exact one-sided 95% binomial upper confidence limit is 1 − 0.05^(1/300) ≈ 0.994%. Zero observed errors is not proof of a zero rate; this is an example, not a performance estimate. [3]
Adjacent windows may share the same environmental conditions or measurement episode. If outcomes are correlated, treating every window as an independent trial can make the interval too narrow. Report the interval method and assumptions; consider analysis that resamples independent recording episodes as clusters when the study design supports it. Statistical sampling uncertainty is also different from uncertainty or mistakes in reference labels. [3] [6]
Avoid selective labels and misleading comparisons
Audit non-alerts and separate development data
If human reviewers examine only alerting windows, the reviewed set is selected by the model. Include an independently sampled audit of non-alerting valid windows to investigate misses, and document selection probabilities. If alerts and non-alerts are sampled at different rates, use design-appropriate weighting or representative sampling to estimate population precision and prevalence; report unweighted sample counts too. [1] [6]
Keep evaluation records independent of model development, including at the recording-episode level where related windows might otherwise appear in both groups. Describe how reviewers handle ambiguous labels and disagreements, and show how excluding unresolved cases may affect results. IMDRF's guidance concerns medical devices; independent testing and fit-for-purpose reference labels are general principles adapted here, not medical requirements for RF monitoring. [3] [6]
Watch for dataset drift without overclaiming
Compare conditions and relabel representative samples
Compare documented evaluation periods for changes in the mix of benign environmental conditions, reference-positive prevalence, missing data, measurement settings and software version. A shift in the positive share alone can change precision even if recall and FPR remain stable; a change in conditions may instead change those conditional rates too. An output distribution shift is a warning for investigation, not proof that accuracy has declined. [2] [4]
Reassess the same four counts and their uncertainty on newly and independently labeled, representative valid windows. Retain authorized measurement metadata and the labeling and sampling rules so differences can be interpreted; NTIA describes metadata for algorithms, environments and sensor settings. Record limitations and send discrepancies for human review without transmitting a signal or identifying individual transmitters. [4] [5] [6]
Alert-quality evaluation checklist
- Define the benign reference-positive change, valid window, binary decision and non-transmitting human-review scope.
- Record the independent reference process, grouping rule, missing data and unresolved labels.
- Report TP, FN, FP and TN with denominators; distinguish FPR, precision, recall and false alert events per hour.
- Disclose the positive base rate and whether the test set was enriched; do not transfer precision without justified assumptions.
- Sample both alerting and non-alerting windows for labeling; document sampling probabilities and any weighting.
- Report uncertainty methods and assumptions, account for correlated recording episodes and keep evaluation data independent of development.
- Compare documented conditions, versions and representative labeled periods for drift; route discrepancies to human review.
Related product and selection references
Compare the published information below with the requirements discussed in this article. These links are selection references, not confirmation of suitability or availability.
- Compare: RF measurement equipment and accessoriesSelection guide
Frequently asked questions
Is a 2% false-positive rate the same as 98% precision?
No. FPR is the fraction of reference-negative windows that alert; precision is the fraction of alerts that are reference-positive. At a 1% positive base rate and 80% recall, a 2% FPR gives about 28.8% precision in the constructed example.
Can precision change if recall and FPR do not?
Yes. Precision depends on the positive base rate. The comparison assumes the same definitions, valid-window unit and conditional rates in both populations; real conditional rates can also change.
Can reviewed alerts alone establish recall?
No. Recall also needs reference-positive windows that produced no alert. Independently sample and label non-alerts as well as alerts, taking the sampling design into account.
Does zero observed false positives mean the true rate is zero?
No. With 300 independent identically distributed negative windows and zero false positives, the exact one-sided 95% binomial upper limit is about 0.994%. Dependence or nonrepresentative sampling changes the analysis.
Does a changed alert distribution prove model degradation?
No. It may reflect prevalence, environmental, measurement or software changes. Compare representative labeled windows and document the uncertainty before drawing a performance conclusion.
Technical references
- CDC: Characteristics of well-conducted surveillance
- Saito and Rehmsmeier: Precision–recall plots for imbalanced datasets
- Tötsch and Hoffmann: Classifier uncertainty
- NIST: AI Risk Management Framework Playbook, Measure
- NTIA Institute for Telecommunication Sciences: Common metadata
- IMDRF: Good machine learning practice guiding principles
RF & MICROWAVE TECHNOLOGIES