Skip to content

birlrobotics/HMM

Repository files navigation

birl HMM Repository


Purpose Of This Repository

This repository deals with data published by topic_multimodal node which resides in birl_baxter_tasks repository.

The data we're dealing with contain robot endpoint pose and endpoint wrench. We want to analyse those data that are from successful trials, and in the test phase, to detect anomalies in arriving data. This repository serves this purpose.

For the details of our method, have a look at this paper(link to be updated).

How To Run These Codes

To Train HMM Model

  1. install dependencies

  2. download our dataset repository

  3. tune configuration in ./hmm_for_baxter_using_only_success_trials/training_config.py.

    usually, we only need to modify the config_by_user variable. The fields of this variable we need to modify are:

    • bath_path: set this path to be the folder path of the dataset which you want to use. E.g.:
    path_to_dataset_repository/REAL_BAXTER_PICK_N_PLACE_with_5_states_20170714
    
  4. run the following commands:

    cd hmm_for_baxter_using_only_success_trials
    python birl_hmm_user_interface.py --train-model --train-threshold
    

    these two commands will train the HMM model and train the threshold which is used in anomaly detection.

  5. check the dataset folder, you will find 2 folders named model and figure. model stores the models trained with the dataset. figure stores some plots that help us assess the models.

To Run HMM Online Service

Remember that our goal is to provide anomaly detection service for robot task execution. run the following command to bring up this service:

python birl_hmm_user_interface.py --online-service

Citations

If you use this toolbox, please cite the following related papers:

[1] "A Latent State-based Multimodal Execution Monitor with Anomaly Detection and Classification for Robot Introspection", Hongmin Wu, Yisheng Guan , Juan Rojas, Appl. Sci. 2019, 9(6), 1072; doi: 10.3390/app9061072.http://www.juanrojas.net/files/papers/2019AS-Wu-LatState_MMExecMntr_AnmlyDetClassif.pdf;

[2]"Robot Introspection for Process Monitoring in Robotic Contact Tasks through Bayesian Nonparametric Autoregressive Hidden Markov Models",Hongmin Wu, Yisheng Guan and Juan Rojas, International Journal of Advanced Robotics Systems, 2018 (IF 0.952).http://www.juanrojas.net/files/papers/2019IJARS-Wu_Rojas-AnalysisHDPVARHMM.pdf

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages