Multiscale Principal Component Analysis.
Multiscale PCA (MSPCA) combines the ability of PCA to extract the crosscorrelation or relationship between the variables, with that of orthonormal wavelets to separate deterministic features from stochastic processes and approximately decorrelate the autocorrelation among the measurements[1].
Fig 1. Schematic illustration of MSPCA model[2].
Fig 2. Schematic diagram for multiscale representation of data[2].
[1] Bhavik R. Bakshi, Multiscale PCA with Application to Multivariate Statistical Process Monitoring, The Ohio State University, 1998.
[2] M. Ziyan Sheriff, Majdi Mansouri, M. Nazmul Karim, Hazem Nounou, Fault detection using multiscale PCA-based moving window GLRT, Journal of Process Control, 2017.
mspca requires:
- Python >= 3.7
- PyWavelets == 1.0.3
- numpy == 1.19.5
- pandas == 0.25.1
The easiest way to install mspca is using 'pip'
pip install mspca
from mspca import mspca
mymodel = mspca.MultiscalePCA()
X_pred = mymodel.fit_transform(X, wavelet_func='db4', threshold=0.3)
Heeyu Kim / [email protected]
Kyuhan Seok / [email protected]