Configuration Identification of On-demand Variable Stiffness Strain-Limiting Layers in Zig-zag Soft Pneumatic Actuators using Deep Learning Methods
This repository contains the codebase for the paper "Predicting Modular Strain-Limiting Layer Configurations for Soft Pneumatic Actuators Using Neural Networks". The project presents a novel machine learning-based framework to determine optimal modular strain-limiting layer (SLL) configurations that generate specific tip-point trajectories in soft pneumatic actuators (SPAs) — without the need for structural redesign or re-fabrication.
Traditional SPAs produce fixed trajectories based on their structural design, limiting their flexibility across applications. This work overcomes that limitation by:
- Enabling multiple trajectories from a single SPA structure
- Predicting SLL configurations using: a. A feed-forward neural network (FNN) approach. b. A convolutional neural network (CNN)-based architecture.
The models learn the inverse mapping from desired Cartesian tip trajectories to SLL configurations, enabling function-specific and application-adaptive soft robotic systems.
- ML-based inverse design of SPAs.
- Generalizable to various SPA applications.
- Supports configurations for: a. Endoscope-style motion. b. Soft robotic gripping. c. Bio-inspired finger actuation.
-
Access Colab
Visit colab.research.google.com. -
Create a Notebook
Click on "New Notebook" or open an existing.ipynb
file. -
Write Code
Add Python code in code cells and use text cells (Markdown) for documentation. -
Run Code
Click the "Run" button or pressShift + Enter
. -
Save and Share
Save to Google Drive or download as.ipynb
or.py
. Easily share with others via link. -
Install Libraries
Use!pip install
for installing additional libraries. -
Use GPU/TPU
Navigate to Runtime > Change runtime type and select GPU or TPU for better performance.
Google Colab comes with most of the necessary Python libraries pre-installed. In most cases, you won't need to install anything additional.
All project notebooks are located in the Codes/
directory. The folder includes:
FNN/
- Feedforward Neural Network NotebooksCNN/
- Convolutional Neural Network NotebooksPolynomial Regression/
- Polynomial Regression ModelCalculate_Finger_Results.ipynb
Different_Number_of_Parameters.ipynb
Located in Codes/FNN/
- Requires:
5_Randomly_Selected_Configurations.csv
Interpolated_Training_Data.csv
Predicted_Thetas.csv
Predicted_Thetas_Fingers.csv
- Location:
For Paper/FNN/With Experimental Data/
- Requires:
5_Randomly_Selected_Configurations.csv
Simulation_Training_Data.csv
Predicted_Thetas.csv
- Location:
For Paper/FNN/With Simulation Data/
Located in Codes/CNN/
- Requires image folders:
Arbitrary Trajectory Pictures
Equation Trajectory Pictures
Increasement Picture
Real Trajectory Pictures
Finger Trajactory Images
- Location:
For Paper/CNN/Experiment/
- Requires image folders:
Arbitrary Trajectory Pictures
Equation Trajectory Pictures
Increasement Picture
Real Trajectory Pictures
- Location:
For Paper/CNN/Simulation/
Located in Codes/Polynomial Regression/
- Requires:
Interpolated_Training_Data.csv
- Location:
For Paper/Polynomial Regression/
- Evaluates optimal parameter count for the project
- Requires:
Interpolated_Training_Data.csv
- Location:
For Paper/Different Number of Parameters/
- Calculates R-squared, MSE, RMSE, and MAE metrics
- Compares predicted trajectories with actual results
- Requires:
fingerVSConfig_for_CNN
fingerVSConfig_for_DNN
- Location:
For Paper/Calculate_Finger_Results/
Pull requests are welcome! For major changes, please open an issue first to discuss what you'd like to modify.
Make sure to update relevant tests as needed.
Hiroshan Gunawardane - hiroshan@mail.ubc.ca Duhyeon Lee - duhyeon@student.ubc.ca
MIT License
MIT License
Copyright (c) 2025 Hiroshan Gunawardane
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.