This repository provides Python codes for the working paper ``Detecting Miners’ Unsafe Acts Automatically by Density Estimation and Deep Learning".
- Run the following command to install all dependencies in a conda environment named
pyflann
andTensorFlow Probability
.sh install.sh
- Note that
TensorFlow Probability
is strict with some specificTensorFlow
version. PPlease see https://github.com/tensorflow/probability/releases to choose the right version to installTensorFlow Probability
or upgrateTensorFlow
.
The repository consists of two parts: simulation studies and real data.
The simulation results are in simulation folder.
Models | Code Source | More Info |
---|---|---|
RPCA | Codes of the RPCA method are modified from the repository dganguli/robust-pca. |
An interesting finding: I found one typo from the original manuscript of RPCA, whose threshold used in line 3 of Algorithm 1 is |
CSPCA | Codes are written by me because the authors provided no relevant codes (although I tried to search on the Internet as well as email the authors). |
Discoveries & Bugs: 【1】 This work claimed to have used Fast computation of the L1-principal component of real-valued data's fast algorithm for solving the |
SSSR | Codes are written by me because the authors provided no relevant codes (although I tried to search on the Internet as well as email the authors). | 【1】SLIC algorithm for superpixels; 【2】Features including: LBP (Local Binary Patterns); |
PI | Original codes in C language are provided by the author. |
Models | Path | Desciption |
---|---|---|
RPCA | MineSafe-2024/models/robust-pca-master/r_pca.py | Python to implement the robust PCA (RPCA) algorithm. |
Dataset | Source | More Info |
---|---|---|
Airport | xxx |