# Machine learning and deep learning

Machine learning and deep learning models automate analytical model building

Christian Janiesch, Patrick Zschech, Kai Heinrich · arXiv · 2021-4-12

- **Problem** Handcrafted rules and manual feature extraction cannot keep up with large, high-dimensional electronic market data. Explicit programming leaves feature extraction and model building to a human, and that manual work cannot keep pace.
- **Method** The authors split model building into four stages, from data input to model assessment. Deep learning folds feature extraction into the model, learning features from raw input.
- **Results** The authors argue that model building choices largely decide whether an intelligent system succeeds in business.

## Why hand-written rules stopped scaling

Early analytical models were written by hand, with known relationships and decision logic coded directly into the system, as in expert systems for medical diagnoses. Electronic markets now produce time series, images and text, which are unstructured and non-cross-sectional. Explicit programming leaves feature extraction and model building to a human, and that manual work cannot keep pace with large, high-dimensional data.

Shallow ML depends on well-defined features, so its performance hinges on how well the extraction step succeeds. For time series, practitioners extract time-domain features such as mean, range and skewness, plus frequency-domain features such as frequency bands. For images, HOG, SIFT and the Viola-Jones method serve as common feature extractors, while TF-IDF vectors play that role for text.

That makes manual feature design time-consuming, labor-intensive, and inflexible, according to the authors.

Deep neural networks instead learn discriminative feature representations automatically, with minimal human effort. Their feature learning proceeds hierarchically, with high-level abstract features assembled from simpler ones. The authors argue that DL copes better with large-scale, noisy and unstructured data than shallow ML does. DL can also operate directly on high-dimensional raw input, so feature learning and model building run as one end-to-end pipeline.

## How AI, ML, neural networks and DL nest

The authors place deep learning inside neural networks, which sit inside machine learning, which sits inside the broader AI field. Early AI research relied on hard-coded statements in formal languages, and humans struggle to explicate all the tacit knowledge that complex tasks need. ML narrows this scope: a program's performance improves with experience on some class of tasks and performance measures.

ML algorithms iteratively learn from problem-specific training data, so the programmer doesn't write the decision logic by hand.

ANNs are mathematical networks of artificial neurons, and each connection carries a weight that is adjusted during learning. Signals pass to subsequent neurons only when they exceed a threshold set by an activation function. Neurons are organized into an input layer, zero or more hidden layers and an output layer. The number of layers, the number of neurons, the learning rate and the activation function are hyperparameters, which the learning algorithm can't learn and which must be set manually or by an optimization routine.

Deep neural networks typically contain more than one hidden layer in deeply nested architectures. They use advanced neurons, for example with convolutions or multiple activations in one neuron, instead of a simple activation function. Because of these traits, deep networks take raw input data and automatically discover the representation the task needs, which is the core capability of deep learning.

Simple ANNs such as shallow autoencoders and other ML algorithms such as decision trees fall under shallow machine learning. The literature has no exact demarcation between shallow and deep learning, so the authors draw that boundary as a dashed line in Fig. 1.

Shallow ML can still produce superior results on low-dimensional data when training data is limited. Deep neural networks outperform shallow ML for most applications that process text, image, video, speech and audio data. Supervised learning uses input-output pairs with labels, and regression and classification are its two problem types. Unsupervised learning finds clusters or lower-dimensional representations without labels.

Reinforcement learning uses trial and error to maximize a reward, given a goal and a list of allowable actions.

## Four stages from data to assessed model

The framework compares explicit programming, shallow ML and DL across four stages: data input, feature extraction, model building and model assessment. With explicit programming, a person performs both feature extraction and model building by hand when handcrafting rules. DL folds feature extraction into the model itself, so the stages that shallow ML keeps apart blend together.

Time series data implies a sequential dependency, so forecasts often become regression problems or trend classification tasks. Image data supports object recognition and counting, while text data supports sentiment analysis and machine-based translation. Cross-modal learning combines data types, such as product images and text metadata, to improve retrieval and recommendation.

Shallow ML depends heavily on such well-defined features, so its performance rests on a successful extraction process. For time-series data, the authors name time-domain features such as mean, range and skewness, and frequency-domain features such as frequency bands. For images they list HOG, SIFT and the Viola-Jones method, and for NLP they list TF-IDF vectors, POS tagging and word shape features.

Manual feature design is time-consuming, labor-intensive and inflexible, since it requires a lot of domain expertise. Deep neural networks learn discriminative features automatically with minimal human effort, building them hierarchically from simpler ones.

During model building, a learning algorithm uses the input to identify patterns and relationships relevant to the task. A decision tree splits data records into increasingly homogeneous partitions in a hierarchical, tree-like structure. A support vector machine constructs a discriminatory hyperplane, often after projecting the data into a higher-dimensional feature space.

DL can also extract only a feature representation that feeds other subsystems such as decision trees or SVMs. The authors summarize DL architectures in five groups: CNNs, RNNs, distributed representations, autoencoders and GANs. Autoencoders compress input into a low-dimensional representation and reconstruct it, so reconstruction errors can flag anomalies such as fraud.

GANs pit a generator against a discriminator, and the same capability to generate content enables deepfake content.

Regression models are evaluated with estimation errors such as RMSE or MAPE. Classification models are assessed with accuracy, recall, precision and F1 score, computed from correct and incorrect predictions. Cost-sensitive measures such as average cost per predicted observation matter when errors carry asymmetric costs. Missing a fraudulent transaction costs remarkably more than wrongly flagging a non-fraudulent one, so such measures help.

Model complexity also matters, since deep networks can hold several million parameters that strain hardware resources. Overly complex models carry a higher risk of overfitting and are harder to interpret.

## Where deployment gets hard

The triangle of architecture, hyperparameters and training data offers almost endless options, and no established guidelines pick one combination. The authors describe a model with 99.9% accuracy that is too slow for a time-critical task, and they treat it as equal to a model with 0% accuracy. Accuracy alone doesn't decide whether a model is usable, since prediction quality often trades off against computational costs.

Changing only one edge of the triangle at a time, while reporting the same metrics, is what makes two implementations comparable. The authors also recommend reviewing metrics such as accuracy and F1 score on consistent benchmarking data across models.

Models adopt the cognitive biases present in human-generated data, and they can even amplify them. Amazon's recruiting software discriminated against women, and Google's Vision AI produced starkly different image labels by skin color. Concept drift means the relation between input data and target variable changes over time, and it can be sudden, incremental, gradual, or reoccurring.

Poisoning attacks during retraining can insert deviating patterns on purpose, so training data needs careful review for human prejudgments. The authors assume constant drift in any real-world electronic market, so a trained model is never finished. Companies currently rely on manual checks and periodic model retraining to counter drift.

The complexity of DL and some shallow models such as random forest and SVMs makes their behavior nearly impossible to predict. Adversarial attacks are hard to prepare for, and perturbed street signs can threaten autonomous driving. XAI methods highlight influential image areas or important time steps in a forecast. The authors suggest choosing an explainable white-box model over a more accurate black-box model when criticality is high.

Transfer learning lets small and medium-sized enterprises deploy intelligent systems with a considerably smaller, problem-specific dataset. Pre-trained models from foreign sources can carry biases, adversarial attacks, and backdoors that misclassify medical images. AI as a service marketplaces sell pre-trained models, yet guidelines for responsible transfer learning are still missing.

## Limits of the argument

This overview deliberately takes a technical perspective, so it doesn't examine AI technology adoption, policy or organizational culture. The authors point to Stone et al. 2016 for those further implications instead of covering them here. The article focuses on analytical model building and the challenges of implementing ML and DL systems.

The paper reports no experiments of its own, so its claims rest on the cited studies and on conceptual argument. The 99.9% accuracy example is an illustration, not a measured result. A model at 99.9% accuracy that takes too long to classify is treated as equal to a 0%-accuracy model in time-critical applications. The authors don't test this trade-off on any dataset, so its size stays unknown.

Shallow ML can still produce superior results on low-dimensional data, especially when training data is limited. Deep neural networks outperform shallow ML for most applications with text, image, video, speech and audio data. So the choice between shallow and deep models depends on the data, and the paper doesn't give a general rule for it.

Superhuman DL performance doesn't mean that literal understanding or intentionality can be solved, as Searle's argument suggests.

The conclusion sets aside structured methodological guidance for building models, assessing data and making predictions safe as open work. Future research will need to address the four challenges the paper presents, but the paper doesn't resolve them. The authors estimate that AIaaS will shape much of the upcoming research on electronic markets.

## Paper info

- **Authors**: Christian Janiesch, Patrick Zschech, Kai Heinrich
- **Venue**: arXiv · Preprint
- **First published**: 2021-4-12
- **Added**: 2026-11-12
- **Updated**: 2021-4-14
- **Version**: v2
- **arXiv**: 2104.05314
- **DOI**: 10.1007/s12525-021-00475-2
- **Category**: cs.AI
- **Original paper terms**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **What we show**: Paper info and commentary

[Original paper ↗](https://arxiv.org/abs/2104.05314v2) · [PDF ↗](https://arxiv.org/pdf/2104.05314v2)

AI commentary is a separate explanation from the original paper and may contain errors. The original paper and figures follow each source's terms of use and any rights noted separately.

## Quote from the paper

Christian Janiesch, Patrick Zschech, Kai Heinrich (2021). Machine learning and deep learning. arXiv:2104.05314v2. https://doi.org/10.1007/s12525-021-00475-2

**BibTeX**

```
@article{janiesch2021machine,
  title = {{Machine learning and deep learning}},
  author = {Christian Janiesch and Patrick Zschech and Kai Heinrich},
  year = {2021},
  eprint = {2104.05314},
  archivePrefix = {arXiv},
  doi = {10.1007/s12525-021-00475-2},
  url = {https://arxiv.org/abs/2104.05314v2}
}
```

## Other paper commentary

- [Deep learning for time series classification: a review](https://refivu.com/en/papers/29b2a81b-5835-4366-b268-5617285bb0b9-deep-learning-for-time-series-classification-a-review.md)
- [Model Cards for Model Reporting](https://refivu.com/en/papers/9ad193b1-a348-4853-9835-2faeecfe0dc1-model-cards-for-model-reporting.md)
- [Generalizing from a Few Examples: A Survey on Few-Shot Learning](https://refivu.com/en/papers/8988e143-7a9e-4146-9f9b-40c8e0cb6bb2-generalizing-from-a-few-examples-a-survey-on.md)
- [CatBoost: unbiased boosting with categorical features](https://refivu.com/en/papers/2bddd7a0-b14d-422c-836d-b47da78a26fd-catboost-unbiased-boosting-with-categorical-features.md)
- [Datasheets for Datasets](https://refivu.com/en/papers/aac36b7e-c8f1-4fe7-a9fb-2e09532542d6-datasheets-for-datasets.md)
- [Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computation](https://refivu.com/en/papers/e938eef4-a963-441d-bfef-194cc6a9a9e3-estimating-or-propagating-gradients-through-stochastic.md)
- [Lost in the Middle: How Language Models Use Long Contexts](https://refivu.com/en/papers/990be3e6-ce8b-473a-94d1-735a4cb6a76f-lost-in-the-middle-how-language-models-use.md)
- [KPConv: Flexible and Deformable Convolution for Point Clouds](https://refivu.com/en/papers/aadc9ee6-ee0e-485d-ae5a-841bc5fcdfb3-kpconv-flexible-and-deformable-convolution-for-point-clouds.md)
- [InfoGAN: Interpretable Representation Learning by Information Maximizing Generative Adversarial Nets](https://refivu.com/en/papers/9891b5b5-2ddd-42e7-a5df-4b7e02d593dc-infogan-interpretable-representation-learning-by-information.md)
- [RandAugment: Practical automated data augmentation with a reduced search space](https://refivu.com/en/papers/8b56147c-5b9a-4e55-85b2-0f0992053956-randaugment-practical-automated-data-augmentation-with-a.md)
- [MnasNet: Platform-Aware Neural Architecture Search for Mobile](https://refivu.com/en/papers/9898212b-ee8e-448d-817e-c0047d43e15a-mnasnet-platform-aware-neural-architecture-search-for-mobile.md)
- [Robust Recovery of Subspace Structures by Low-Rank Representation](https://refivu.com/en/papers/14c27646-6e22-4f5b-b820-67e75508bf84-robust-recovery-of-subspace-structures-by-low-rank.md)

## Terms in this paper

- [Accuracy](https://refivu.com/en/terms/1995c0cd6282-accuracy)
- [reinforcement learning](https://refivu.com/en/terms/6c51042515d2-reinforcement-learning)
- [transfer learning](https://refivu.com/en/terms/9c71d6928a00-transfer-learning)
- [convolutional neural network](https://refivu.com/en/terms/610f2c09337d-convolutional-neural-network)
- [machine learning](https://refivu.com/en/terms/86e004431ba6-machine-learning)
- [recurrent neural network](https://refivu.com/en/terms/7df8352fc823-recurrent-neural-network)
- [Long Short-Term Memory](https://refivu.com/en/terms/1eac61fff4b1-long-short-term-memory)
- [deep learning](https://refivu.com/en/terms/1114eabeb503-deep-learning)
- [Supervised Learning](https://refivu.com/en/terms/1c6d1ef2b134-supervised-learning)
- [word embeddings](https://refivu.com/en/terms/750326b5ccc5-word-embeddings)
- [Autoencoder](https://refivu.com/en/terms/a4d4d93d1cff-autoencoder)
- [artificial neural networks](https://refivu.com/en/terms/b6ea897601dd-artificial-neural-networks)
- [root mean square error](https://refivu.com/en/terms/294ef5467be4-root-mean-square-error)
- [adversarial attacks](https://refivu.com/en/terms/817e7d7c0ba7-adversarial-attacks)
- [k-fold cross-validation](https://refivu.com/en/terms/0ad05af8de0e-k-fold-cross-validation)
- [Mean Absolute Percentage Error](https://refivu.com/en/terms/747e31a933d5-mean-absolute-percentage-error)
- [overfitting](https://refivu.com/en/terms/82a66a720533-overfitting)
- [artificial intelligence](https://refivu.com/en/terms/67464bfc3157-artificial-intelligence)
- [explainable AI](https://refivu.com/en/terms/3d646e0093f1-explainable-ai)
- [Feature Extraction](https://refivu.com/en/terms/f22ee0a5f12b-feature-extraction)

---

AI-written text can contain mistakes. [Refivu](https://refivu.com/en/papers/48eedb23-fb73-4158-83a2-334ee099a8d7-machine-learning-and-deep-learning)
