Skip to content

This repository contains the experiments developed during the research stay of Victor Toscano Durán in the CNR in October 2024, and for the paper submitted and accepted to XAI-2025 named "Safe and Efficient Social Navigation through Explainable Safety Regions Based on Topological Features" in collaboration with the CNR.

License

Notifications You must be signed in to change notification settings

Cimagroup/Topological-Features-and-Explainable-Safety-Regions

Repository files navigation

Topological Features and Explainable Safety Regions

This repository contains data and experiments associated to the paper Toscano-Duran, V., Narteni, S., Carlevaro, A., Guzzi, J., Gonzalez-Diaz, R. and Mongelli, M. (2025) "Safe and Efficient Social Navigation through Explainable Safety Regions Based on Topological Features". Submitted and Accepted to The 3rd World Conference on eXplainable Artificial Intelligence (XAI-2025). Preprint available in arXiv.

The paper deals with simulated social robotics navigation problem that involves a fleet of mobile robots moving in a Cross scenario, governed by a human-like behavior. With the purpose of avoiding negative events, as collisions or deadlocks, we show how to topological features can improve the accuracy and effectiveness of safe and explainable AI (XAI) methods being an useful tool to know and adjust whether a simulation will be safe(free of collisions) or not, efficient(free of deadlocks) or not, and compliant (free of both, collisions and deadlocks) or not.

Repository structure

  • ExpBehaviorCollision: Experiments for avoid collisions, using safety regions and behavior features.

  • ExpTopologicalCollision: Experiments for avoid collisions, using safety regions and topological features.

  • ExpTopologicalDeadlock: Experiments for avoid deadlocks, using safety regions and topological features.

  • ExpTopologicalAdvanced: Extension experiments using more topological features for build safety regions (not included in the paper).

Usage

  1. Clone this repository and create a virtual enviromment (It requires Python>=3.10, and it has been developed specifically with Python3.10.11):
virtualenv -p python3.10 env # you need to have install virtualenv in python: pip install virtualenv

Next, activate the virtual environment

env\Scripts\activate
  1. Install the necessary dependencies: (first install navground and then the rest of the dependencies).
pip install navground[all]
pip install pandas==2.2.3 seaborn==0.13.2 scikit-learn==1.3.0 skope-rules==1.0.1 numpy==1.25.1 qpsolvers[open_source_solvers]==2.2.0 cvxopt==1.3.2 anchor-exp==0.0.2.0 gudhi==3.11.0

In the case of us, as we use python and virtual environments on Visual Studio Code, we need to install ipykernel dependency:

pip install ipykernel

You can see the full list of dependencies install and its versions once you have installed these dependencies in the requeriments.txt

  1. Simulation and dataset collection (including simulations and topological features): run the getdataset_TopologicalFeatures.py script with the YAML settings contained in configTopological.yaml file. Dataset used in further experiments.

  2. Native rule generation: run SkopeRules.ipynb for training skope-rules model, and NativeXAI_performance.ipynb for its evaluation.

  3. Scalable Classifiers for Probabilistic/Conformal safety regions: run ConfidenceRegions_SVM.ipynb.

  4. Local Rule Extraction from PSR/CSR: run Anchor_PSR.ipynb, Anchor_CSR.ipynb for Anchors extraction, and AnchorAnalysis_PSR.ipynb, AnchorAnalysis_CSR.ipynbfor their evaluation.

Citation and reference

If you want to use our code or data for your experiments, please cite our paper. Once the paper is published, we will update that file with the official citacion.

For further information, please contact us at: vtoscano@us.es, sara.narteni@cnr.it

About

This repository contains the experiments developed during the research stay of Victor Toscano Durán in the CNR in October 2024, and for the paper submitted and accepted to XAI-2025 named "Safe and Efficient Social Navigation through Explainable Safety Regions Based on Topological Features" in collaboration with the CNR.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published