Probabilistic Neural Network with Complex Exponential Activation Functions in Image Recognition using Deep Learning Framework

Andrey V. SavchenkoarXiv 2017

Abstract

This paper introduces a significant optimization for Probabilistic Neural Networks (PNNs) used in image recognition. By replacing traditional Gaussian activation functions with complex exponential functions based on Fourier series, the proposed method dramatically reduces computational and memory overhead. The shift from memory-heavy Gaussian kernels to efficient Fourier-series-based Fejér kernels reduces the number of required neurons from a linear relationship with the database size to a cubic root relationship, enabling faster recognition without sacrificing performance in small-data scenarios.

Introduction

While Deep Convolutional Neural Networks (CNNs) are the standard for modern image recognition, they typically require massive datasets for training. In many real-world applications, such as identifying individuals from limited photos or recognizing rare objects, researchers face the "small sample size" problem. A common solution is transfer learning, where a pre-trained CNN extracts features and a simpler classifier, like a Probabilistic Neural Network (PNN), performs the final classification.

PNNs are favored for small samples because they converge to an optimal Bayesian decision. However, standard PNNs are "memory-based," requiring a comparison against every instance in the training database. This leads to linear growth in computational complexity and memory usage as the database expands, making them impractical for large-scale deployment.

Methods

The proposed approach implements a "non-canonical" PNN designed for efficiency. The system utilizes state-of-the-art CNNs (e.g., VGGNet or GoogLeNet) as feature extractors, converting images into high-dimensional vectors.

The core innovation lies in replacing the standard Gaussian Parzen kernel with an orthogonal series density estimate using complex exponential functions. To avoid negative probability estimates common in Fourier analysis (e.g., with Dirichlet kernels), the author employs the Fejér kernel. This ensures that the resulting probability density remains non-negative.

Architecture of the proposed PNN with complex exponential activation functions.

By storing the Fourier coefficients of class distributions rather than individual training samples, the network "summarizes" class characteristics. This reduces the number of neurons in the pattern layer from $R$ (the total number of samples) to a value proportional to $\sqrt[3]{R}$, transforming the network into a distributed representation.

Results and Discussion

The method was validated on several benchmarks, including Caltech 101, Caltech 256, Stanford Dogs, PubFig83, and CASIA-WebFace.

Accuracy

On the Caltech-101 dataset with only 5 training images per class, the proposed PNN achieved an accuracy of 74.2%. This significantly outperformed traditional alternatives like Support Vector Machines (SVMs) at 49.9% and Multi-Layer Perceptrons (MLPs) at 39.5%.

Computational Efficiency

The modified PNN demonstrated a speedup of 1.5x to 4.5x compared to original PNN and k-Nearest Neighbor (k-NN) methods. Crucially, as shown in the scaling analysis, the classification time for the proposed method remains nearly constant or grows very slowly as the training set size increases, whereas standard PNNs and k-NN methods exhibit linear slowdown.

Classification time vs. average number of instances per class, demonstrating the scaling efficiency of the proposed PNN.

Conclusion

The proposed Fourier-based PNN effectively addresses the scaling limitations of traditional PNNs while maintaining high accuracy for small-sample image recognition. By assuming feature independence to avoid the "curse of dimensionality," the model provides a robust, efficient alternative for real-world applications. Future work may involve exploring Bayesian networks to account for feature dependencies and automated hyperparameter tuning for the Fourier term cut-off.

Summary updated

Abstract

If the training dataset is not very large, image recognition is usually implemented with the transfer learning methods. In these methods the features are extracted using a deep convolutional neural network, which was preliminarily trained with an external very-large dataset. In this paper we consider the nonparametric classification of extracted feature vectors with the probabilistic neural network (PNN). The number of neurons at the pattern layer of the PNN is equal to the database size, which causes the low recognition performance and high memory space complexity of this network. We propose to overcome these drawbacks by replacing the exponential activation function in the Gaussian Parzen kernel to the complex exponential functions in the Fej\'er kernel. We demonstrate that in this case it is possible to implement the network with the number of neurons in the pattern layer proportional to the cubic root of the database size. Thus, the proposed modification of the PNN makes it possible to significantly decrease runtime and memory complexities without loosing its main advantages, namely, extremely fast training procedure and the convergence to the optimal Bayesian decision. An experimental study in visual object category classification and unconstrained face recognition with contemporary deep neural networks have shown, that our approach obtains very efficient and rather accurate decisions for the small training sample in comparison with the well-known classifiers.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
Caltech256Proposed PNNMean accuracy (%)58.6%+3.7 vs baselinesplit: test · backbone=GoogLeNet · features=D=1024, no PCA · evaluation=mean over 10 random splits · training-samples-per-class=10
Source quote
L1347: 58.6
Caltech101Proposed PNNImage recognition time1.31 ms-0.58 vs baselinebackbone=GoogLeNet · features=D=1024, no PCA · hardware=4-core 2 GHz Intel Core i7 laptop · measurement=time to classify one image · training-samples-per-class=10
Source quote
L1479: 1.31
Reported baseline / comparator measurements (2)
BenchmarkMethodMetricScoreProtocol / Evidence
Caltech256PNN baselineMean accuracy (%)54.9%split: test · backbone=GoogLeNet · features=D=1024, no PCA · evaluation=mean over 10 random splits · training-samples-per-class=10
Source quote
L1337: 54.9
Caltech101PNN baselineImage recognition time1.89 msbackbone=GoogLeNet · features=D=1024, no PCA · hardware=4-core 2 GHz Intel Core i7 laptop · measurement=time to classify one image · training-samples-per-class=10
Source quote
L1469: 1.89
BibTeX
@misc{savchenko2017probabilistic,
  author = {Andrey V. Savchenko},
  title = {{Probabilistic Neural Network with Complex Exponential Activation Functions in Image Recognition using Deep Learning Framework}},
  year = {2017},
  eprint = {1708.02733},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1708.02733},
}
Figure