orhir / STG-NF

Normalizing Flows for Human Pose Anomaly Detection [ICCV 2023]
https://orhir.github.io/STG_NF/
Other
71 stars 11 forks source link

Supervised Training on UBnormal Dataset #27

Closed Gigi-Al closed 2 weeks ago

Gigi-Al commented 2 weeks ago

Hello,

Thank you for the great work and repository! I have a question regarding the UBnormal dataset. In the supervised setting, the training set is highly imbalanced, with far fewer abnormal scenarios (roughly 40 times fewer than normal). How did you address this imbalance? Did you use any data augmentation or weighted loss? Were the limited abnormal samples sufficient for training the encoder to map them correctly in the latent space?

Thanks again for your efforts!

orhir commented 2 weeks ago

Imbalanced datasets are very common for anomaly detection, as abnormal events are hard to collect. We didn't use any special data augmentations or weighted loss.

Our supervised method builds upon the unsupervised setting, ensuring known abnormal samples get low probabilities. This is done by explicitly mapping the known abnormal samples to a Gaussian which is "far" from the Gaussian of normal samples. The full explanation is in our paper.

Gigi-Al commented 2 weeks ago

Thank you for sharing the information.