Skip to main content
QUICK REVIEW

[Paper Review] Examining the Use of Neural Networks for Feature Extraction: A Comparative Analysis using Deep Learning, Support Vector Machines, and K-Nearest Neighbor Classifiers

Sean R. Notley, Malik Magdon‐Ismail|arXiv (Cornell University)|May 6, 2018
Neural Networks and ApplicationsComputer Science14 references18 citations
TL;DR

This study investigates using deep neural networks to extract features from image and numeric data, then applying these features to train standalone SVM and KNN classifiers. Results show that in many cases, the hybrid models (neural network features + SVM/KNN) outperform both the neural network alone and traditional models using raw features, demonstrating that neural networks are highly effective for feature extraction even when paired with simpler classifiers.

ABSTRACT

Neural networks in many varieties are touted as very powerful machine learning tools because of their ability to distill large amounts of information from different forms of data, extracting complex features and enabling powerful classification abilities. In this study, we use neural networks to extract features from both images and numeric data and use these extracted features as inputs for other machine learning models, namely support vector machines (SVMs) and k-nearest neighbor classifiers (KNNs), in order to see if neural-network-extracted features enhance the capabilities of these models. We tested 7 different neural network architectures in this manner, 4 for images and 3 for numeric data, training each for varying lengths of time and then comparing the results of the neural network independently to those of an SVM and KNN on the data, and finally comparing these results to models of SVM and KNN trained using features extracted via the neural network architecture. This process was repeated on 3 different image datasets and 2 different numeric datasets. The results show that, in many cases, the features extracted using the neural network significantly improve the capabilities of SVMs and KNNs compared to running these algorithms on the raw features, and in some cases also surpass the performance of the neural network alone. This in turn suggests that it may be a reasonable practice to use neural networks as a means to extract features for classification by other machine learning models for some datasets.

Motivation & Objective

  • To evaluate whether neural networks can serve as effective feature extractors for non-neural classifiers like SVM and KNN.
  • To compare the performance of hybrid models (neural network features + SVM/KNN) against standalone neural networks and models using raw features.
  • To assess the impact of varying neural network architectures, training duration, and data types (image vs. numeric) on feature quality and downstream classification accuracy.
  • To determine whether the feature extraction capability of neural networks generalizes across different datasets and learning models.

Proposed method

  • Trained seven distinct neural network architectures—four CNNs for images and three fully connected networks for numeric data—on five benchmark datasets.
  • Extracted features from the penultimate layer of each trained neural network, bypassing the final softmax classification layer.
  • Used the extracted features as input to train separate SVM and KNN classifiers, evaluating their performance against models trained on raw features.
  • Replaced the standard softmax classifier in each neural network with an SVM or KNN classifier to compare end-to-end performance.
  • Varied training duration (number of epochs) and evaluated performance across multiple architectures and datasets.
  • Used standard metrics such as accuracy and convergence behavior to compare models across image (MNIST, Network Graphs, CalTech 101 Silhouettes) and numeric (Statlog Shuttle, Seizure Recognition) datasets.

Experimental results

Research questions

  • RQ1Can neural networks effectively extract discriminative features that improve the performance of non-neural classifiers like SVM and KNN?
  • RQ2Does the performance of hybrid models (neural features + SVM/KNN) exceed that of standalone neural networks on the same data?
  • RQ3How do different neural network architectures and training durations affect the quality of extracted features for downstream classification?
  • RQ4Does the benefit of using neural network features persist across diverse data types, such as images and numeric tabular data?

Key findings

  • In multiple cases, the combination of neural network-extracted features with SVM or KNN classifiers achieved higher accuracy than the neural network alone.
  • The hybrid models consistently outperformed models trained on raw features, indicating that neural networks extract more discriminative representations than hand-engineered or raw features.
  • Performance trends across different architectures and training epochs were largely mirrored in the hybrid models, suggesting that feature quality scales predictably with training depth and duration.
  • The improvement was more pronounced and consistent in image datasets compared to numeric datasets, where the gains were less concrete.
  • Some shallow architectures achieved peak performance, indicating that deeper networks do not always yield better features, and optimal depth varies by dataset.
  • The results suggest that using neural networks solely for feature extraction and pairing them with simpler, more interpretable classifiers can be a viable and effective strategy in practice.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.