代写EN4062/ENT794 Bayesian Optimisation of SLIP Model Parameters 2023代做留学生Matlab程序

Bayesian Optimisation of SLIP Model Parameters

EN4062/ENT794 Coursework 2023

Short Description

The Spring Loaded Inverted  Pendulum (SLIP) gait  model can  be characterised  by various  parameters, including spring stiffness, the mass of the robot, touchdown angle and leg length. Tuning the parameters can be time-consuming and Bayesian Optimisation provides an efficient way of finding the optimal gait parameters.  In this package, we will explore different properties of the SLIP gait model and how to find the optimal solution for the gait motions.

List of scripts and functions

PIease take a Iook on each function (.m’ fiIes with their description. Try to open the fiIes in MatIab program to see the comments and description of each lines.

BayesianOptimisationDemo1D.m -  Script.  for  demonstration  of  Bayesian  Optimisation  in  1 dimension   on    a   simple    known   function.   The    optimisation    process   is    displayed   in    a   figure.

BO.m - Main script to run Bayesian Optimisation of the SLIP model parameters. The parameters to optimise and the corresponding search ranges are defined in the script. The optimisation process and results are stored in *.mat files.

SLIP_model.m - Function that describes the dynamics of SLIP model. The arguments of the function are the parameters of the model. The function returns the motion data and the performance of the model.

getNextSample.m - Function that returns the next sampling point to maximise improvement of specified amount. The function argument is the Gaussian Processes Regression through existing sampling points.

results.m - The main function for displaying the optimisation results of any existing optimisation process. This includes a figure with colour map for parameters and a corresponding fitness function. A set of parameters and disturbance in initial conditions can be chosen to show animation and phase plot of the corresponding model.

animation.m  -   Function   to   animate   the   motion   of   SLIP   model   with   specified   parameters

phaseplot.m - Function to display phase plot of the SLIP model (ground height vs. velocity vector direction of the robot)

Bayesian Optimisation

Bayesian Optimisation is an optimisation method which minimises the number of sampling points required to find the maximum of the objective function. Gaussian process regression with the best-fitting Kernel parameters is found and fit through sampled points as described in  [1].  For each point in the argument space, the expected mean and standard error from the expected mean are found. The expected mean and error data is then used to obtain the acquisition function which is then used to find the point where to sample next. [2]

Figure 1 shows how the sampled data of a function can be modelled as Gaussian process and  the calculated threshold. The plot below shows the probability that the value of the function is above the specified threshold. The next sampling point is chosen at the point where the probability is the highest.

Figure 1. Bayesian Optimisation with the objective function to be maximised above and the corresponding acquisition function below


Figure 2. SLIP model gait patterns with transitions between phases. (a) walking, (b) skipping, (c) running

SLIP model

The spring Loaded Inverted Pendulum (SLIP) gait model is one of the simplest bipedal gait models. It consists of a point mass with   mass m connected to two weightless springs with stiffness k and uncompressed length l0 . The point mass is constrained to move in the sagittal plane. The motion of model can be described with three phases, each characterised with a different system of differential equations: (a) double stance phase – both legs are in contact with ground, (b) single stance phase – one leg is in contact with ground, the other leg is in swing, and (c) flight phase – neither of the legs is in contact with ground and the point mass in free motion. In this model, the impacts are considered to be completely elastic and springs have no damping. Therefore, the model conserves energy throughout the motion.

Hooke’s law and Newton’s 3rd law yield to set of differential equations for each phase with first support point at (0 ,0) (if applicable), second support point at (x0,0) (if applicable) and the point mass at (x ,y).

Flight phase:

Single stance phase:

Double stance phase:

The transitions between phases are either landings or take-offs. Landing occurs when the height of the mass gets smaller than the height determined by touchdown angle and leg length. Take-off occurs when the distance between support and the mass gets larger than the uncompressed spring length.

Two simplest gait patterns that can be identified are the running and the walking gait, first described in [3]. In walking gait single stance phase alternates with double stance phase. In running gait single stance phase alters with flight  phase. The values of touchdown angle, spring stiffness and the total internal energy that provide stable gait patterns were first described in [4]. In addition, there are different skipping gait patterns where walking and running alternate with each other. For humans, running and walking are most prevalent gait patterns but in certain environments skipping could be preferred as described in [5].  The provided MATLAB code permits changing between all three phases: double stance, single stance and flight.  Therefore,  the  gait  with  optimised  parameters  could  be  either  walking,  running  or  skipping depending on the initial conditions provided by user. Different stable limit cycles for running, walking and skipping were recorded and these can be found in limitcycles folder along with the respective phase plots and animations.

The  parameters  that are varied  during  optimisation are the spring stiffness, touchdown  angle while walking and touchdown angle when running. Leg length and the mass of the robot are considered to be constant due to dimensional analysis.

During optimisation processes the performance of the model with specified parameters is assessed. The best characterisation of the performance was concluded to be the distance covered before losing stability, however different fitness functions could be used (e.g. number of steps or time before losing stability). The chosen fitness function is evaluated for the parameter set under evaluation and with pre-defined initial conditions subject to disturbances.

Analysing the results

Three pre-run optimisation processes with different initial conditions are provided with the code in data/BO_Data_xxx.mat files. These results can be reviewed using results(DatasetNumber) function. Use DatasetNumber=1 for walking gait model, DatasetNumber=2 for skipping gait model and DatasetNumber=3 for running gait model.

The figure created when using the results function displays three plots. The first plot shows the progress of parameter values with optimisation iteration. As exploitation starts the values of parameters are not exposed to  large  changes  in  the  values.  The  second  plot  shows  the  fitness  function  evolution  with optimisation iteration. The third plot allows user to choose a parameter set and disturbance in initial conditions for animation and displaying phase plot to visualise the performance.

References

[1] Kaur Aare Saar, Bayesian Optimisation of SLIP model parameters

(https://www.mathworks.com/matlabcentral/fileexchange/59060-bayesian-optimisation-of-slip-model- parameters), MATLAB Central File Exchange. Retrieved March 13, 2023.

[2] C. E. Rasmussen, “Gaussian processes for machine learning,” Int. J. Neural Syst., vol. 14, no. 2, pp. 69–106, 2006.

[3] E. Brochu, V. M. Cora, and N. De Freitas, “A tutorial on Bayesian optimization of expensive cost

functions, with application to active user modeling and hierarchical reinforcement learning,” Rl, pp. 149, 2010.

[4] R. Blickhan, “The spring-mass model for running and hopping,” Journal of Biomechanics, vol. 22, no. 11–12. pp. 1217–1227, 1989.

[5] H. Geyer, A. Seyfarth, and R. Blickhan, “Compliant leg behaviour explains basic dynamics of walking and running.,” Proc. Biol. Sci., vol. 273, no. 1603, pp. 2861–2867, 2006.

[6] A. E. Minetti, “The biomechanics of skipping gaits: a third locomotion paradigm?,” Proc. Biol. Sci., vol. 265, no. February, pp. 1227–1235, 1998.


热门主题

课程名

mktg2509 csci 2600 38170 lng302 csse3010 phas3226 77938 arch1162 engn4536/engn6536 acx5903 comp151101 phl245 cse12 comp9312 stat3016/6016 phas0038 comp2140 6qqmb312 xjco3011 rest0005 ematm0051 5qqmn219 lubs5062m eee8155 cege0100 eap033 artd1109 mat246 etc3430 ecmm462 mis102 inft6800 ddes9903 comp6521 comp9517 comp3331/9331 comp4337 comp6008 comp9414 bu.231.790.81 man00150m csb352h math1041 eengm4100 isys1002 08 6057cem mktg3504 mthm036 mtrx1701 mth3241 eeee3086 cmp-7038b cmp-7000a ints4010 econ2151 infs5710 fins5516 fin3309 fins5510 gsoe9340 math2007 math2036 soee5010 mark3088 infs3605 elec9714 comp2271 ma214 comp2211 infs3604 600426 sit254 acct3091 bbt405 msin0116 com107/com113 mark5826 sit120 comp9021 eco2101 eeen40700 cs253 ece3114 ecmm447 chns3000 math377 itd102 comp9444 comp(2041|9044) econ0060 econ7230 mgt001371 ecs-323 cs6250 mgdi60012 mdia2012 comm221001 comm5000 ma1008 engl642 econ241 com333 math367 mis201 nbs-7041x meek16104 econ2003 comm1190 mbas902 comp-1027 dpst1091 comp7315 eppd1033 m06 ee3025 msci231 bb113/bbs1063 fc709 comp3425 comp9417 econ42915 cb9101 math1102e chme0017 fc307 mkt60104 5522usst litr1-uc6201.200 ee1102 cosc2803 math39512 omp9727 int2067/int5051 bsb151 mgt253 fc021 babs2202 mis2002s phya21 18-213 cege0012 mdia1002 math38032 mech5125 07 cisc102 mgx3110 cs240 11175 fin3020s eco3420 ictten622 comp9727 cpt111 de114102d mgm320h5s bafi1019 math21112 efim20036 mn-3503 fins5568 110.807 bcpm000028 info6030 bma0092 bcpm0054 math20212 ce335 cs365 cenv6141 ftec5580 math2010 ec3450 comm1170 ecmt1010 csci-ua.0480-003 econ12-200 ib3960 ectb60h3f cs247—assignment tk3163 ics3u ib3j80 comp20008 comp9334 eppd1063 acct2343 cct109 isys1055/3412 math350-real math2014 eec180 stat141b econ2101 msinm014/msing014/msing014b fit2004 comp643 bu1002 cm2030
联系我们
EMail: 99515681@qq.com
QQ: 99515681
留学生作业帮-留学生的知心伴侣!
工作时间:08:00-21:00
python代写
微信客服:codinghelp
站长地图