In scenarios where visual feedback is unavailable or unreliable, soft tactile sensing provides crucial information for object identification. Leveraging the compliance of soft grippers enables rich contact signals that can be used to recognize objects by touch alone.
This repository includes experiments with various machine learning models for object classification from tactile and proprioceptive data collected from a real-world soft robotic gripper. Metric learning techniques (e.g., [1]) were also investigated to enable few-shot object recognition, thereby empowering the model to generalize to novel objects using only a limited amount of additional data.
The project's directory structure includes the following main files and folders:
blind-object-recognition-soft-grippers/
βββ dataset/ # contains the dataset
βββ deep_attentive_time_warping/ # original implementation of the Deep Attentive Time Warping [1] method
β βββ dataloader.py # data loading utilities
β βββ DATW.py # Deep Attentive Time Warping core class
β βββ experiments.sh # script to run full training and few-shot evaluation pipeline
β βββ few_shot_eval.py # script for few-shot evaluation
β βββ model.py # model definition
β βββ training.py # script to run training
β βββ utils.py # utility functions
βββ results/ # stores the results of the experiments
βββ siamese_network/ # implementation of a Siamese Network
β βββ dataloader.py # data loading utilities
β βββ SN.py # Siamese Network core class
β βββ experiments.sh # script to run full training and few-shot evaluation pipeline
β βββ few_shot_eval.py # script for few-shot evaluation
β βββ model.py # model definition
β βββ training.py # script to run training
βββ CNN.ipynb # experiments with a Convolutional Neural Network
βββ DATW.ipynb # experiments with the Deep Attentive Time Warping method
βββ DTW.ipynb # experiments with Dynamic Time Warping
βββ LSTM.ipynb # experiments with a Long Short-Term Memory network
βββ preprocessing.ipynb # data preprocessing steps
βββ results_summary.ipynb # summary of all experiments' results
βββ shapelet+XGB.ipynb # experiments with XGBoost on Shapelets features
βββ slides.pdf # slides for the project presentation
βββ SN.ipynb # experiments with the Siamese Network
βββ stats+XGB.ipynb # experiments with XGBoost on time and frequency domain features
βββ transformer.ipynb # experiments with a Transformer model
βββ utils.py # utility functions
[1] Matsuo, Shinnosuke, et al. "Attention to warp: Deep metric learning for multivariate time series." Document Analysis and RecognitionβICDAR 2021: 16th International Conference, Lausanne, Switzerland, September 5β10, 2021, Proceedings, Part III 16. Springer International Publishing, 2021. GitHub repository: https://github.com/matsuo-shinnosuke/deep-attentive-time-warping/.
This project was developed for the "Robotics" course at the University of Pisa (a.y. 2024/2025).