When Not to Use AI
Five signs a problem is better solved with rules, SQL, or a script than with machine learning, and what a problem that does need ML looks like.
AI is expensive to build, complex to run, and sometimes fragile, and right now the industry pushes it as the answer to everything.
If your rules fit on a whiteboard
Some problems have clean, deterministic logic. If a user’s account is older than 30 days and their balance exceeds a threshold, flag it. If the input contains these fields, route it here; otherwise, route it there. If the value is outside this range, reject it.
These are if-statements. A simple rule engine, a configuration file, or a few well-written validation functions will handle them faster, more predictably, and with zero training data. When the rules change, you update the code and deploy, with no retraining, pipeline, or drift to monitor.
The temptation is to use ML “in case the rules get more complex later.” That’s speculative engineering. If the rules are simple today, build for today. You can introduce a model when the need for complexity actually arrives, and you’ll have a working baseline to compare it against.
If your data fits in a spreadsheet
Machine learning needs both data volume and data variance to generalize. If your dataset has a few hundred rows and a handful of columns, a model doesn’t have enough signal to learn from. It’ll just memorize the training set and fail on new data.
For small, structured datasets, the right tools are the ones that have existed for decades: SQL queries, spreadsheet formulas, basic statistics. A pivot table can answer most questions that people try to train classifiers for. A GROUP BY with a HAVING clause can surface the same anomalies that someone wants to build a detection model for.
If your answer needs to be exact
Models produce probabilities. A classifier that’s 98% accurate gets 2 of every 100 predictions wrong. For many applications that’s fine.
Accounting, compliance, inventory management, and billing need correct answers every time. A billing system that’s “usually right” is a billing system that generates support tickets, disputes, and lost trust. Depending on the industry, a compliance check that misses 2% of violations is a regulatory problem or worse.
If the problem needs deterministic, reproducible, auditable answers, write deterministic code.
If you can’t explain what the model should learn
Sometimes a team knows they have “a lot of data” and has heard ML can “find patterns,” so they want to point a model at the dataset and see what comes out.
Supervised learning needs labeled examples. Unsupervised learning needs a clear definition of what structure you’re looking for. Both need a problem statement: what are you trying to predict, classify, cluster, or detect?
If you can’t say what pattern the model is supposed to find, you have a requirements problem, and the fix is a conversation with the stakeholders about what question they’re trying to answer. Once the question is clear, the right tool is often obvious, and frequently it isn’t AI.
If the maintenance cost exceeds the value
Models need monitoring for accuracy drift, retraining when the data distribution shifts, infrastructure for inference, and engineers who understand the pipeline well enough to debug it when something breaks.
For a high-value, high-volume problem, that overhead is justified. For a low-volume problem with a stable solution, it isn’t. If you’re building a model to automate something that happens 50 times a month and a human could handle it in 10 minutes, the engineering and maintenance cost of the ML solution will exceed the value it creates for years.
Tip
Before committing to an ML solution, estimate the total cost of ownership: training infrastructure, serving costs, monitoring, retraining frequency, and the engineering time to maintain it. Compare that to the cost of the simpler alternative.
A cron job, a script, or a simple heuristic might solve the same problem with none of the fragility or overhead.
When AI is the right call
AI is the right tool when the patterns are too complex for hand-written rules, the data is rich enough to learn from, the problem benefits from generalization more than exact answers, and the value justifies the cost of building and maintaining it.
Image classification, anomaly detection in high-dimensional data, natural language understanding, and predictive maintenance on sensor streams are problems where ML does things no set of if-statements can.
Whether your product needs machine learning at all is the first question in every AI integration project I take on.
Content may be edited with the help of AI. All content has been reviewed by a human before being published.
I design and build custom software
Tell me what you're building and I'll reply within 48 hours.