The question behind the question
When an engineer asks "should I use deep learning?", what they're really asking is: "will the extra complexity of neural networks give me meaningfully better results than the simpler tools I already know?"
The answer, in most engineering contexts, is no. Not because deep learning is bad — it's extraordinarily powerful — but because the problems most engineers face don't match the conditions where deep learning excels. It's like asking whether you need a CNC 5-axis mill to make a simple bracket. The 5-axis machine is more capable, but a 3-axis mill does the job faster, cheaper, and with less setup time.
This article gives you a concrete decision framework. Not opinions — evidence-based guidance drawn from the benchmarking research we've referenced throughout this knowledge base, combined with practical considerations that benchmarks don't capture.
The evidence: what the research says
The Grinsztajn et al. NeurIPS paper that we've referenced throughout this knowledge base benchmarked tree-based models against neural networks across 45 tabular datasets with 20,000 compute hours of hyperparameter tuning. The results were clear and have been confirmed by multiple follow-up studies:
The core finding
On tabular data (spreadsheets, databases, process logs), tree-based models consistently match or outperform neural networks. This holds across classification and regression, across numerical and mixed feature types, and even after giving neural networks generous hyperparameter tuning budgets.
The researchers identified three structural reasons:
1. Tabular data has irregular patterns. Engineering data is full of sharp thresholds ("above 210°C, defect rate jumps"), discontinuities, and non-smooth relationships. Trees handle these naturally because they split at specific values. Neural networks prefer smooth functions and have to work harder to learn sharp boundaries.
2. Tabular data has uninformative features. Real engineering datasets contain columns that don't help prediction — a timestamp, a batch ID, a sensor that was miscalibrated for three months. Trees effectively ignore these by simply not splitting on them. Neural networks connect every input to every neuron, so irrelevant features add noise that must be overcome with more data and more training.
3. Tabular features have individual meaning. In a spreadsheet, each column represents a distinct physical quantity — temperature, pressure, speed. Trees respect this by processing each column independently. Neural networks blend columns together through weighted sums, which can destroy information that was obvious in the original representation.
These aren't quirks of specific experiments. They're structural properties of how the algorithms work, applied to structural properties of how tabular data is organised. The mismatch is fundamental.
The decision framework
Start with your data type
Your data is a table (rows and columns of numbers and categories):
→ Use classical ML. Start with Random Forest or XGBoost.
→ Deep learning is unlikely to help and will cost more effort.
→ This covers: process parameters, simulation results, test data, sensor summary statistics, quality records, material properties.
Your data is images:
→ Use deep learning (convolutional neural networks).
→ Classical ML cannot process raw images effectively.
→ This covers: visual inspection photos, X-ray/CT images, metallographic images, thermal camera frames.
Your data is raw time-series signals:
→ Consider both approaches.
→ Option A: extract features (RMS, peak frequency, kurtosis) and use tree-based models on the features. Often works surprisingly well and is faster to implement.
→ Option B: use deep learning (RNNs, 1D-CNNs, transformers) on the raw signal. May capture patterns that hand-crafted features miss, but needs more data and expertise.
→ This covers: vibration waveforms, acoustic emission, current signatures, pressure traces.
Your data is a mix (tabular + images, or tabular + signals):
→ Use each approach on its natural data type, then combine predictions.
→ Example: use a CNN to extract features from inspection images, add them as extra columns to your process data table, then use XGBoost on the combined features.
Then consider your dataset size
Even within the right data type, dataset size matters:
Under 500 samples: classical ML strongly favoured, even for images (use transfer learning if you must use deep learning). Neural networks simply can't learn meaningful patterns from this little data without heavy regularisation or pre-training.
500 – 10,000 samples: classical ML still favoured for tabular data. Deep learning becomes viable for images with transfer learning. For signals, feature extraction + classical ML is usually the safer bet.
10,000 – 100,000 samples: classical ML still competitive on tabular data (and usually still wins). Deep learning performs well on images and signals. The gap between approaches narrows.
Over 100,000 samples: deep learning begins to show advantages even on some tabular datasets, though XGBoost remains competitive. For images and signals, deep learning is clearly the right choice.
Most engineering teams operate in the first two brackets. Simulations are expensive, physical tests take time, and even production data from a specific process or machine rarely exceeds a few thousand labelled rows. This is why classical ML dominates practical engineering applications.
The factors benchmarks don't capture
Performance on a test set isn't the only thing that matters. In real engineering practice, several other factors influence the decision:
Training time and iteration speed
Tree-based models train in seconds to minutes on typical engineering datasets. You can try 20 hyperparameter combinations in the time it takes to train one neural network. Faster iteration means more experiments, which means a better final model.
Neural networks take minutes to hours, depending on the architecture and dataset size. If you're exploring whether ML can solve a problem at all, spending hours per experiment is frustrating and expensive.
Interpretability and trust
In engineering contexts, a model nobody trusts is a model nobody uses. Tree-based models with feature importance and SHAP provide clear, defensible explanations. "The model predicts defect because melt temperature was high and injection pressure was low" is a statement an engineer can verify against their physical understanding.
Neural network explanations are possible (SHAP works on any model) but less intuitive and less stable. For regulated industries where model decisions must be documented and reviewed, interpretability isn't optional.
Infrastructure requirements
Tree-based models run on any laptop. Neural networks benefit significantly from GPUs — training a CNN on CPU can be 10–50× slower than on GPU. If your team doesn't have GPU infrastructure (and many engineering departments don't), this is a practical barrier.
Cloud GPU access (AWS, Google Cloud, Google Colab) solves this, but introduces cost, data security questions, and IT approval processes that can slow a project by weeks.
Team expertise
Tree-based models have a gentle learning curve. Scikit-learn's consistent API means an engineer who's read this knowledge base can be productive in days. Neural networks require understanding architectures, learning rate schedules, batch normalisation, dropout, and framework-specific details (PyTorch vs TensorFlow). The learning curve is steeper, and the debugging is harder.
This doesn't mean engineers can't learn deep learning — but it means the return on investment for that learning is lower when your data is tabular.
Maintenance and deployment
A deployed model needs to be monitored, retrained periodically, and maintained. Tree-based models are small, fast to retrain, and cheap to serve. Neural networks are larger, slower to retrain, and may need GPU infrastructure in production. For a model that runs on an edge device at a factory (like a Raspberry Pi monitoring a production line), model size and inference speed matter.
The hybrid approach: best of both worlds
In practice, the most powerful approach is often a combination:
Use classical ML for your tabular data. Process parameters, test results, simulation outputs, sensor summary statistics — XGBoost handles all of this.
Use deep learning for your unstructured data. Images from visual inspection, raw vibration signals, acoustic data — neural networks extract features that would be impossible to hand-craft.
Combine the outputs. Use the neural network as a feature extractor: pass images through a CNN, take the learned features, and add them as extra columns in your tabular dataset. Then use XGBoost on the combined features. This gives you the pattern-recognition power of deep learning where you need it, and the interpretability and efficiency of tree-based models for the rest.
The pragmatic principle
This hybrid approach is increasingly common in industrial settings. It acknowledges that engineering problems rarely fit neatly into one data type, and it uses each tool where it's strongest.
Common scenarios and recommendations
| Scenario | Recommendation | Why |
|---|---|---|
| Predicting quality from process parameters (200 rows) | XGBoost | Tabular data, small dataset — textbook case for trees |
| Visual inspection of PCB solder joints (5,000 images) | CNN with transfer learning | Image data — trees can't process raw images |
| Bearing fault diagnosis from vibration features (1,000 rows) | Random Forest or XGBoost | Tabular features extracted from signals — trees excel here |
| Bearing fault diagnosis from raw vibration signals (10,000 samples) | 1D-CNN or feature extraction + XGBoost | Try both — raw signal processing may capture more, but feature extraction is often competitive |
| FEA surrogate model (500 simulations) | XGBoost or Gaussian Process | Tabular data, small dataset — not deep learning |
| Predicting energy consumption from building + weather data (50,000 rows) | XGBoost | Tabular data — trees still win even with larger datasets |
| Defect classification from thermal camera images + process data | CNN for images + XGBoost for combined features | Hybrid — use each tool on its natural data type |
The bottom line for engineers
If you're reading this knowledge base, your data is almost certainly tabular. CNC parameters. Simulation results. Material properties. Sensor statistics. Test measurements. Process logs. All tables. All best served by Random Forest or XGBoost.
Learning deep learning is valuable but not urgent. It expands the problems you can solve — visual inspection, raw signal analysis, physics-informed modelling. But it's an addition to your toolkit, not a replacement for the tools you've already learned.
Don't let anyone make you feel behind for not using neural networks. The engineer who can train an XGBoost model, evaluate it honestly, explain its predictions with SHAP, and present actionable feature importances to their team is delivering more value than someone struggling with a neural network architecture that doesn't suit the problem.
The right tool for the right job. That's an engineering principle, not an ML principle — and it applies here more than anywhere.
Key takeaways
Data type determines algorithm choice. Tabular data → tree-based models. Images → CNNs. Raw signals → try both. This is the primary decision axis, more important than any algorithm benchmark.
Dataset size is the secondary factor. Under 10,000 samples, classical ML is almost always the right choice, even for non-tabular data (via transfer learning). Above 100,000, deep learning starts to show advantages on tabular data.
Practical factors matter as much as accuracy. Training time, interpretability, infrastructure, team expertise, and maintenance costs all influence the real-world viability of an approach. A 2% accuracy improvement isn't worth 10× the development time and an ongoing GPU bill.
The hybrid approach is often the best answer. Use deep learning to extract features from images or signals, then combine with tabular data in a tree-based model. Best of both worlds.
For most engineers, most of the time: start with XGBoost. If it doesn't work, the problem probably needs more data or better features — not a different algorithm family.
Follow the learning path
Next up in Stage 4: surrogate models — using ML to replace expensive simulations. Subscribe and we'll send you a short email when it drops — plus monthly ML insights for engineers. No spam, no fluff.
Subscribe to the newsletter