main content

identify key parameters for estimation (gui) -凯发k8网页登录

this example shows how to use sensitivity analysis to narrow down the number of parameters that you need to estimate when fitting a model. this example uses a model of the vestibulo-ocular reflex, which generates compensatory eye movements.

model description

the vestibulo-ocular reflex (vor) enables the eyes to move at the same speed and in the opposite direction as the head, so that vision is not blurred when the head moves during normal activity. for example, if the head turns to the right, the eyes turn to the left at the same speed. this happens even in the dark. in fact, the vor is most easily characterized by measurements in the dark, to ensure that eye movements are predominantly driven by the vor.

head rotation is sensed by organs in the inner ears, known as semicircular canals. these detect head motion and transmit signals about head motion to the brain, which sends motor commands to the eye muscles, so that eye movements compensate for head motion. we would like to use eye movement data to estimate model parameters for these various stages. the model we will use is shown below. there are four parameters in the model: delay, gain, tc, and tp.

open_system('sdovor')

the file sdovor_data.mat contains uniformly sampled data of stimulation and eye movements. if the vor were perfectly compensatory, then a plot of eye movement data, when flipped vertically, would overlay exactly on top of a plot of head motion data. such a system would be described by a gain of 1 and a phase of 180 degrees. however, real eye movements are close, but not perfectly compensatory.

load sdovor_data.mat;   % column vectors:   time  headdata  eyedata

we will use sensitivity analysis ui to see how well the model output fits the data, and explore which model parameters have the most influence on the goodness of fit. to open sensitivity analysis ui, in the apps tab, click sensitivity analyzer under control systems to launch the sensitivity analyzer.

to associate the data with the model, click new requirement and select a signal matching requirement. this specifies an objective function consisting of the sum of squared error between the data and model output. in the signal matching dialog, specify the output as [time eyedata], and specify the input as [time headdata].

to view the eye movement data, navigate to the data browser on the left side of the ui, right-click the signalmatching requirement, and select plot & simulate. the bottom plot shows the stimulation, consisting of a series of pulses. the top plot shows eye movement data, which resembles but does not exactly match the stimulation. it also shows that the model simulated output does not match the eye movement data, because model parameters need to be estimated.

explore the design space

the model attempts to capture the phenomena which cause the difference between head movements and eye movements. here we will explore the design space formed by the model parameters. to specify the parameters to explore in sensitivity analysis ui, click select parameters and create a new parameter set. select all model parameters: delay, gain, tc and tp.

explore the design space by generating parameter values. click generate values and select random values. for repeatability of the example, reset the random number generator.

rng('default')

since there are 4 parameters, we will generate 40 samples.

the delay parameter models the fact that there is some delay in communicating the signals from the inner ear to the brain and eyes. this delay is due to the time needed for chemical neurotransmitters to traverse the synaptic clefts between nerve cells. based on the number of synapses in the vestibulo-ocular reflex, this delay is expected to be around 5 ms. we will model it with a uniform distribution with a lower bound of 2 ms and an upper bound of 9 ms.

the gain parameter models the fact that in the dark, the eyes do not move quite as much as the head. we will model it with a uniform distribution with a lower bound of 0.6 and an upper bound of 1.

the tc parameter models the dynamics associated with the semicircular canals, as well as some additional neural processing. the canals are high-pass filters, because after a subject has been put into rotational motion, the neurally active membranes in the canals slowly relax back to resting position, so the canals stop sensing motion. thus, after the stimulation undergoes transition edges, eye movements tend to depart from the stimulation over time. based on mechanical characteristics of the canals, combined with additional neural processing which prolongs this time constant to improve the accuracy of the vor, we will model tc with a normal (i.e., bell curve) distribution with a mean of 15 seconds and a standard deviation of 3 seconds.

finally, the tp parameter models the dynamics of the oculomotor plant, i.e. the eye and the muscles and tissues attached to it. the plant can be modeled by two poles, however it is believed that the pole with the larger time constant is cancelled by precompensation in the brain, to enable the eye to make quick movements. thus in the plot, when the stimulation undergoes transition edges, the eye movements follow with only a little delay. we will model tp with a uniform distribution with a lower bound of 0.005 seconds and an upper bound of 0.05 seconds.

when the sample values are generated, they appear in a table in the sensitivity analysis ui. to plot them, select paramset in the data browser, click the plots tab, and make a scatter plot. the sampling above used default options, and these are reflected in the scatter plot. for parameters modeled by a uniform distribution, the histograms appear approximately uniform. however, parameter tc was modeled by a normal distribution, and its histogram has a bell curve profile. if statistics and machine learning toolbox™ is available, many other distributions may be used, and sampling can be done using sobol or halton low-discrepancy sequences. the off-diagonal plots show scatter plots between pairs of different variables. since we did not specify cross-correlations between parameters, the scatter plots appear uncorrelated. however, if parameters were believed to be correlated, this can be specified using correlation matrix tab in the dialog for generating random parameter values.

evaluate the model

now that we have generated values for the parameter set and specified a requirement (signalmatching), we can evaluate the model. in the sensitivity analysis tab, click evaluate model.

the model is run once for each set of parameter values, and the results scatter plot is updated as new computations become available. evaluation could also be sped up using parallel computing. after evaluation is complete, all results are also displayed in a table.

from the scatter plot of evaluation results, the signalmatching requirement seems to vary systematically as a function of gain and tc, but not delay or tp. something similar can be seen in a contour plot. select the evalresults variable in the data browser, click the plots tab, and make a contour plot. the requirement does not vary systematically from left to right as a function of delay, but it does vertically as a function of gain.

statistical analysis

we can use statistical analysis to quantify how much each parameter influences the requirement. click the statistics tab and select both correlation and standardized regression; and both linear and ranked analysis types. if statistics and machine learning toolbox is available, partial correlation and kendall correlation can also be selected. click compute statistics to carry out the calculations and show a tornado plot. the tornado plot displays results from top to bottom in order of which parameter most influences the requirement. the statistical values range from -1 to 1, where the magnitude indicates how much the parameter influences the requirement, and the sign indicates whether an increase in the parameter value corresponds to an increase or decrease in the requirement value. by most measures, this signalmatching requirement is more sensitive to gain and tc, and less sensitive to delay and tp.

select parameters for estimation

for parameter estimation, we need to specify starting values for the parameters. click the evaluation results table and click the signalmatching column header to sort results. select the row of parameter values that minimizes the signalmatching requirement. right-click on the row and extract these parameter values. a new variable, paramvalues, is shown in the data browser.

to transition from sensitivity analysis to parameter estimation, navigate to the sensitivity analysis tab, click optimize, and open a parameter estimation session. in the dialog that appears, specify that you want to use the parameter values in paramvalues, and the signalmatching requirement.

since we found above that parameters gain and tc have the most influence on the value of signalmatching, we would like to estimate only these two parameters, since the time for estimation increases with the number of parameters being estimated. in parameter estimation ui, click select parameters and select only gain and tc for estimation.

since the experiment definition has been imported from signalmatching and the parameter values have been imported from paramvalues, we have everything needed for estimation. click estimate to carry out parameter estimation for gain and tc. because we are only estimating the two most influential parameters, estimation converges quickly and the model output closely matches the data. as was the case with model evaluations in sensitivity analysis, parallel computing could be used to speed up estimation.

in summary, sensitivity analysis ui was used to explore the parameter design space and determine that two parameters, gain and tc, were substantially more influential than the others. a start point for estimation was also determined. this start point and the requirement of obtaining a good fit to experimental data were imported into parameter estimation ui. estimation completed quickly because only two parameters needed to be estimated, and the model output fit the data with very little residual error.

close the model.

bdclose('sdovor')

related topics

网站地图