This repository organizes the Higher-order Grouped Outlier Robust Principal Component Analysis (HoGORPCA) model implementations and anomaly detection experiments performed in [SIGPRO] and [SSP_2025].
The family of HoGORPCA models, which refer with
Figure 1: Robust Tensor PCA, tensor decomposition model.
Proposed domain topology aware robust tensor decomposition models, under the
Figure 2: Example illustration of a spatial proximity graph and temporal line graph connecting consecutive time points
The extension of
Figure 3: Visualization of the anomaly scores obtained for Urban-1 scene from [ABU HSI]. Top row (from left to right): Pseudo-RGB view of the scene, anomaly scores obtained by HoRPCA, anomaly scores obtained by L1 + GTV(S), Precision-Recall Curves. Bottom row (from left to right): Anomaly Labels, LOGN(S-E), LOGN(S-N), ROC Curves.
We illustrate the effects of the GTV and LOGN regularizations, we apply the regularizations on recovering two different temporally grouped anomaly segments.
Figure 4: LOGN and GTV regularizers applied to recover a noisy temporal signal with two grouped anomalies, namely Coherent anomaly with coherent signs and Incoherent anomaly with incoherent, non-smooth signs. LOGN is better at recovering Inoherent anomaly segments whereas GTV is better at recovering the Coherent ones due to the smoothing effect of GTV regularizer.
The implementations of the Higher-Order Grouped Outlier Robust PCA models can be found in ./src/models/lr_ssd/ folders. Within this folder,
-
snn__logn_gtv.pycontains$\mathrm{[SNN]-[LOGN+GTV]}$ model implementation -
snn_logs.pycontains$\mathrm{[SNN]-[LOGN]}$ model implementation.
The Singleton implementation of Higher-order Robust PCA (./src/models/horpca/horpca_torch.py
📝 Note:
$\mathrm{[SNN]+[LOGN+GTV]}$ can be considered a generalization of$\mathrm{[SNN]-[LOGN]}$ and$\mathrm{HoRPCA}$ algorithms. Consequently,$\mathrm{[SNN]+[LOGN+GTV]}$ model with the hyper-parameters and groupings are chosen accordingly specializes to$\mathrm{HoRPCA}$ and$\mathrm{[SNN]-[LOGN]}$ . We often called on the$\mathrm{[SNN]+[LOGN+GTV]}$ implementation with the corresponding settings for convenience instead of calling the implementations insnn_logs.pyorhorpca_torch.py.
I intend to upload more user friendly versions of these implementations in my t-regs repository.
Example applications, experiment and experiment processes can be found in ./experiment_board/ folder for the publications [1,2] under the following structre:
- Higher-order Grouped Outlier Robust PCA with Graph Total Variation (SIGPRO)
- Synthetic Experiments:
The details of the experiment, the hyper-parameter selection scripts and the results can be found in
./experiment_board/anomaly_detection_synthetic_exps/. - NYC Event Detection and SMD Anomaly Detection Experiments:
Dataset loader python scripts and classes can be found in
./data/nyc_taxi_dataset.pyand./data/server_machine_dataset.pyfolders. Dataset pre-processing steps and experiment scripts along with the results can be found in./experiment_board/anomaly_detection_real_data_exps/. Specifically,./experiment_board/anomaly_detection_real_data_exps/smd_and_nyc_pipeline.ipynbholds the crucial data processing and anomaly detection pipeline.
- Synthetic Experiments:
The details of the experiment, the hyper-parameter selection scripts and the results can be found in
- Higher-order Grouped Outlier Robust PCA SSP_2025
The experiment scripts and the configurations can be found in
./experiment_board/lr_sparse_identifiability_exps/. Please refer to theREADME.mdfile in the folder. The synthetic experiment results for this publication are also organized in Experiment report
- [SIGPRO]: Indibi, M., Aviyente, S. (2025). “Spatio-temporal Anomaly Detection: A Regularized Robust Tensor Decomposition with Graph Total Variation and Grouped Sparsity”, Under revision at EURASIP Journal of Signal Processing
- [SSP_2025]: Indibi, M., & Aviyente, S. (2025, June). Higher-Order Grouped Outlier Robust PCA for Spatio-temporal Anomaly Detection. In 2025 IEEE Statistical Signal Processing Workshop (SSP) (pp. 176-180). IEEE.
- ABU Hyperspectral Image
Mert Indibi



