Artificial Intelligence — particularly its subfield, Machine Learning — has been around for a long time. Its recent developments have revolutionised many industry sectors and scientific fields, bringing solutions to previously intractable problems, and even outperforming humans in certain tasks.

This perception of machine learning as a universal solution has driven ever-growing demand. Recognising the opportunities, many companies — both established and new — now offer data-driven solutions wrapped in shiny packaging.

The Model Accuracy Trap

A classification model’s job is to correctly predict the class its input belongs to. For example:

  • A transaction monitoring model may classify transactions as good or fraudulent.
  • A login classification model may classify logins as genuine or hijacked.

These are examples of binary classification models, where inputs are assigned one of two classes:

  • Negative (e.g. good transaction)
  • Positive (e.g. fraudulent transaction)

The accuracy of a model is the ratio of correctly classified inputs to the total number of inputs. You’ll often see accuracy numbers like 99% cited for fraud prevention solutions — but this can be very misleading when dealing with rare events like fraud.

Example

Let’s take a real-world case where fraud accounts for 1% of all transactions. An ignorant model that always predicts “not fraud” will still be 99% accurate — and yet completely useless for fraud detection.

A more honest metric is model selectivity, also known as true positive rate or recall. It measures the fraction of correctly identified positive inputs.

If a model only detects 1 in 3 fraudulent transactions, its selectivity is 33%. A model that never detects fraud has 0% selectivity — making the model itself a fraud (pun intended).

But aiming for high selectivity comes at a cost, as we’ll explore next.

False Positives

Businesses lose revenue in two ways:

  • By allowing fraud
  • By rejecting genuine transactions (false positives)

The false positive rate is the ratio of false positives to total negative (good) inputs. Even a low rate can result in a large number of misclassifications.

Example

If fraud is 1% and the false positive rate is also 1%, you’ll reject as many good transactions as you catch fraudulent ones — nullifying any benefit.

Precision

This metric gives the fraction of true positives among all positive predictions. With rare events like fraud, even small numbers of false positives can significantly lower precision.

A high precision doesn’t always mean a good model. A conservative model might only predict fraud in the most obvious cases — avoiding false positives, but also missing most actual fraud.

Toy Model Comparison:

  • Model A: — Captures all fraud (100% selectivity) — Introduces 1% false positives — Precision = 1 / (1 + 1) = 50%
  • Model B: — Detects 1 in 1,000,000 fraud cases — Never misclassifies good transactions — Precision = 100%, but useless.

Takeaway: Selectivity and precision measure different things. Taken in isolation, neither tells the full story.

Model Calibration

Classification models come in two types:

  • Class-only output (e.g. decision rules): “Good” or “Fraud”
  • Probability output (e.g. XGBoost): Confidence level, often presented as a score

For the second type, a threshold (e.g. 0.5) is used to classify inputs. Adjusting the threshold:

  • Higher threshold → lower false positives, lower sensitivity
  • Lower threshold → higher sensitivity, more false positives

This trade-off forms the Receiver Operating Characteristic (ROC) curve.

ROC Curve shows model performance for all thresholds, plotting sensitivity vs. false positive rate.

Important Note:

Sensitivity and false positives are conjugate — increasing one typically increases the other.

E.g., to achieve 40% sensitivity, you might tolerate 1% false positives.

An honest provider should report both or share the ROC curve. The AUC-ROC metric (area under curve) can be misleading because it averages performance across all thresholds, while businesses often care only about low false positive rates.

Hyperparameter Optimisation

Model training is controlled by hyperparameters — settings chosen by the user (e.g. max depth of a decision tree).

  • Deeper trees → more refined, but risk overfitting
  • Shallow trees → simpler, possibly underperforming

Choosing the right values depends on:

  • Model type
  • Training goal
  • Dataset specifics

Even the same model trained on different data may require different hyperparameters. Proper tuning requires:

  • Deep understanding of the model and data
  • Iterative testing (often costly and time-consuming)

Red flag: If a provider offers quick & cheap model training, they likely skip this step. Question the model’s quality.

Hidden Biases

A model is only as good as the data it’s trained on.

  • Biased data → biased models
  • Spurious correlations → misleading results

Automatic de-biasing is still largely experimental.

Example

A fraud model trained on European data might label large-country transactions as higher risk — just because of overrepresentation in training data.

Using pre-trained models may seem attractive (especially for companies with limited data), but it introduces unknown biases. This can be a compliance risk, especially under regulations like the European AI Act.

Conclusion / Wrap-up

There is no single metric that fully captures machine learning model performance. Each metric shows a part of the picture. This opens the door for dishonest providers to cherry-pick metrics that overstate performance.

Buyer’s Checklist:

  • Ask for definitions of reported metrics.
  • Clarify accuracy vs. precision.
  • Inquire about false positive rates.
  • For probabilistic models, ask for the ROC curve and check sensitivity at low false positive thresholds.
  • Verify if steps were taken to reduce bias.

Stay vigilant. Ask questions. Don’t fall for pretty numbers.