Abstract: Functional Data Analysis (FDA) is essential for interpreting data represented as continuous curves or trajectories. Traditional approaches, primarily Functional Principal Component Analysis (FPCA), are limited by their linear assumptions and difficulties in handling multivariate or disjointed data. We introduce Functional Nonlinear Learning (FunNoL), a framework that leverages Recurrent Neural Networks (RNNs) to extract low-dimensional nonlinear features. By integrating an encoder-decoder architecture with a simultaneous classification task, FunNoL captures intricate data structures that linear methods miss. Our results on benchmark datasets demonstrate that FunNoL significantly outperforms FPCA in classification accuracy and reconstruction, particularly for multivariate trajectories and sparse data.
Introduction
In domains ranging from astronomy to biomechanics, data often takes the form of functions—curves, surfaces, or trajectories—rather than discrete points. Analyzing this "functional data" requires reducing infinite-dimensional objects into manageable low-dimensional representations. For decades, Functional Principal Component Analysis (FPCA) has been the standard tool for this task. However, FPCA suffers from three critical drawbacks: it assumes linear relationships within the data, it lacks a natural mechanism for multivariate inputs, and it separates feature extraction from the ultimate downstream task (e.g., classification), potentially losing task-relevant information.
The FunNoL Architecture
To address these limitations, we propose Functional Nonlinear Learning (FunNoL). FunNoL is a "one-step" deep learning model designed to process functional data through a unified neural architecture. At its core, the model utilizes Long Short-Term Memory (LSTM) networks to handle the sequential nature of functional observations, maintaining temporal continuity.
The architecture comprises three primary modules:
- Encoder ($\phi$): Maps the input curve $x$ to a low-dimensional latent vector $z$.
- Decoder ($\psi$): Reconstructs the original curve from $z$, acting as a nonlinear smoother and denoiser.
- Classifier ($f$): Predicts the class label $\hat{y}$ directly from the latent representation $z$.
A key innovation is the Corruption Layer. During training, the model is presented with "corrupted" versions of the input—where points are missing or noise is added. This forces the network to learn the underlying smooth function rather than overfitting to noise, effectively acting as a "roughness penalty" common in classical FDA.
Experimental Results
We evaluated FunNoL against FPCA using several univariate and multivariate datasets from the UCR Time Series Classification Archive, including Starlight (astronomical curves), Wafer (manufacturing), and Cricket (3D motion trajectories).
- Univariate Performance: On the Starlight dataset, FunNoL achieved a classification accuracy of 97.5%, a substantial improvement over FPCA's 84.7%.
- Multivariate Dominance: The benefits of FunNoL are most pronounced in multivariate settings. For the Cricket dataset, FunNoL reached 31.6% accuracy, whereas multivariate FPCA struggled at 8.4%. This highlights the framework's ability to "unfold" complex nonlinear structures in high-dimensional space.
- Robustness to Sparsity: FunNoL maintains high performance even when up to 90% of data points are missing. By learning the "essence" of the curve, the decoder can effectively interpolate missing segments.
Discussion and Insights
The success of FunNoL stems from two main factors. First, Nonlinearity: linear projections often fail to separate classes that overlap in Euclidean space; FunNoL's nonlinear mapping provides the necessary flexibility to distinguish these classes. Second, Joint Learning: the simultaneous optimization of reconstruction and classification acts as a powerful regularizer. The reconstruction task prevents the classifier from overfitting to spurious patterns, while the classification task ensures that the latent features $z$ are discriminative.
Conclusion
FunNoL represents a significant step forward in Functional Data Analysis, providing a robust, nonlinear alternative to traditional methods. While it requires larger sample sizes than linear models and carries higher computational costs, its ability to handle multivariate data and sparse observations makes it uniquely suited for modern, complex datasets. Future work will explore extending this framework to higher-dimensional domains, such as 2D image surfaces or 3D volumetric data.
Summary updated