Nonlinear functional regression by functional deep neural network with kernel embedding

Zhongjie Shi, Jun Fan, Linhao Song, Ding-Xuan Zhou, Johan A. K. SuykensarXiv 2024 · DOI

Introduction

Functional Data Analysis (FDA) focuses on analyzing data that can be represented as functions or curves, such as heart rate trajectories or spectral signatures. A significant challenge in this field is that functions are inherently infinite-dimensional. To process such data using standard deep neural networks, researchers must perform dimension reduction to convert curves into finite vectors.

Traditional methods often suffer from two main drawbacks. Mesh-dependent methods treat observations at specific time points as features, making the model sensitive to sampling frequency changes. Basis-representation methods, which project curves onto fixed shapes like splines, may fail to capture data-specific nuances, leading to the "curse of dimensionality." This paper introduces the Kernel Embedding Functional Neural Network (KEFNN), a novel architecture designed to be discretization-invariant and flexible enough to handle complex nonlinear functional regression.

Methodology: The KEFNN Architecture

The KEFNN framework addresses the limitations of previous methods through a three-stage process that transforms functional inputs into scalar outputs while preserving the underlying structure of the data.

Architecture of the Kernel Embedding Functional Neural Network (KEFNN). The process involves kernel embedding of the input function $f$, projection onto a finite-dimensional space $T(L_K f)$, and processing through a deep ReLU network to produce the final output $F_{NN}(f)$.
  1. Kernel Embedding: The input function $f$ is first subjected to an integral transformation using an embedding kernel. This step smooths the data and maps it into a Reproducing Kernel Hilbert Space (RKHS), mitigating the impact of observational noise.
  2. Projection Step: The smoothed function is projected onto a finite-dimensional vector using the eigenfunctions of a projection Mercer kernel. This step is the core of KEFNN's discretization-invariance; because it relies on the kernel's properties rather than a fixed grid, the model remains robust regardless of the sampling frequency.
  3. Deep ReLU Network: The resulting vector is fed into a standard deep neural network with ReLU activation functions. This network learns the nonlinear mapping required to predict the final scalar output $F_{NN}(f)$.

Theoretical Contributions

A significant portion of this work is dedicated to establishing the mathematical foundations of KEFNN. The authors provide approximation rates that guarantee how well the network can represent complex functionals across various input spaces, including Besov, Gaussian RKHS, and mixed smooth Sobolev spaces.

Notably, the authors introduce a two-stage oracle inequality. This theoretical tool analyzes the interplay between the number of curves (first-stage sample size) and the number of points per curve (second-stage discretization). Their analysis suggests that KEFNN can achieve high accuracy even with sparsely observed functional data, provided there are enough total samples.

Experimental Results

The researchers evaluated KEFNN against several baselines, including Functional Principal Component Analysis (FPCA), B-splines, and AdaFNN, using both synthetic and real-world datasets.

Simulated Data

In four distinct simulation cases with varying nonlinearity and noise levels, KEFNN consistently achieved the lowest Mean Squared Error (MSE). In noise-free scenarios, KEFNN outperformed the next best baseline by an order of magnitude.

Real-World Applications

  • Tecator Dataset: Predicting fat and moisture content from absorbance spectra. KEFNN's error in predicting fat content was approximately half that of a standard "Raw data + NN" approach.
  • Medflies Dataset: Predicting total egg production based on early-life trajectories. KEFNN showed superior predictive accuracy and lower variance across runs.
  • Moisture Dataset: Predicting moisture in wheat samples using near-infrared reflectance spectra.

Conclusion

KEFNN represents a significant advancement in nonlinear functional regression. By combining adaptive kernel embeddings with deep learning, it achieves mesh independence and effectively bypasses the curse of dimensionality for high-dimensional functional data. Its stability and performance across diverse datasets make it a powerful tool for practical applications where data collection is irregular or noisy.

Summary updated

BibTeX
@misc{shi2024nonlinear,
  author = {Zhongjie Shi and Jun Fan and Linhao Song and Ding-Xuan Zhou and Johan A. K. Suykens},
  title = {{Nonlinear functional regression by functional deep neural network with kernel embedding}},
  year = {2024},
  eprint = {2401.02890},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.02890},
}
Figure