A sensitivity analysis studies the "sensitivity" of the outputs of a system (target components) to changes in the parameters or initial conditions (source components). It also allows you to rank the model components according to how much they influence the model output. Finally, a sensitivity analysis can be used to identify which model components can be estimated based on a given set of measurements.
Sensitivity Analysis Module Areas:
In order to start a calibration follow these steps:
In order to start an identifiability analysis, press the drop down arrow of the start button. Identifiability calculations can be started manually after a sensitivity analysis has finished or directly following a sensitivity analysis.
The 'More Graphs' toolbar button enables the visualisation of (1) the simulation results used to calculate the sensitivities and (2) the absolute sensitivities for each source and target component combination. Once the button is enabled, switching to the simulation results and absolute sensitivities can be done using the results switcher at the bottom.
Source components are model components that will be changed in order to investigate their influence on the model output. Source components can be parameters or derived variable initial conditions.
Target components are model components for which we want to find out how changes to the source components influence them. Target components can be algebraic or derived variables.
The PhytoSim Sensitivity module performs a local sensitivity analysis. The analysis is called 'local' because it is performed for a model with a given set of parameter values and initial conditions defined in the Simulation module. For that specific reference situation, the Sensitivity module calculates how much the target components change when a source component is changed by only a small amount. Mathematically, this can be described as the partial derivative of the target component to the source component:
where S(t) is the time varying (absolute) sensitivity function of target component y.
The target component y is called sensitive to the source component theta when
a small change in theta produces significant changes in y. On the other hand, the target
component y is called insensitive to theta if changes in theta produce
insignificant changes in y.
The PhytoSim Sensitivity module uses a finite difference approach in order to numerically approximate the partial derivative. A central difference formula is used where each partial derivative is calculated based on two model simulations: one where the source component is increased by a small amount and one where the source component is decreased by a small amount. The results of these simulations can be viewed by enabling the 'More Graphs' toolbar button and selecting 'Simulations' from the bottom results switcher. The simulation results are shown for the combination of the last selected source and target component.
Only when numerical issues are reported after the sensitivity analysis (see below) should these results be inspected. In such case, check for anomalies in the simulation results like sudden peaks or situations where the forward and backward simulations are both below or above the reference simulation. The latter is the simulation performed with the model as it is configured in the Simulation Module.
Based on the forward and backward simulations, numerical approximations of the absolute sensitivities are calculated using following formula:
The amount with which the source components are perturbed is important in order to avoid nonlinearity effects and numerical rounding errors. The Sensitivity module uses a fixed amount of 1% of the source component value and has an automatic algorithm to detect numerical issues with the calculated sensitivities. If such problems should arise, the user will be notified and the results should be used with caution! Most of the time, these issues can be avoided by fine-tuning the solver settings used in the Simulation module:
In case of numerical issues, the individual absolute sensitivities for each target and source component combination may also be inspected. This can be be done by enabling the 'More Graphs' toolbar button and selecting the 'Absolute Sensitivities' from the bottom results switcher. The absolute sensitivity is shown for the combination of the last selected source and target component.
The number of simulations required to calculate all the sensitivity functions is determined by the amount of source
components. One simulation is performed at the reference situation and two additional simulations are performed for
each source component. This results in 2n+1 required model simulations (where n is the number
of source components).
In order to compare the sensitivities of different target components to different source components, relative sensitivity functions are calculated:
The absolute sensitivities S(t) are scaled with respect to the source component value and a user defined
target component scaling factor sc_i. Often used scaling factors are: (1) the target component value at each time instance the
sensitivity is calculated, (2) the average target component value over the entire period or (3) the target component
measurement error standard deviation. As such a dimensionless sensitivity is obtained which can be used for comparisons.
Beside the sensitivity results accessible through the Sensitivity module user interface, some additional results are available in the Data I/O module.
Analysing individual sensitivity functions can be a difficult task, especially when a large number of source and target components is involved. Therefore, the PhytoSim Sensitivity module also calculates a source component importance ranking for each of the target components separately and a combined ranking for all target components.
The source components of the PhytoSim Sensitivity module are ranked according to their sensitivity index (SI) which is calculated as follows:
where j is the source component, i the target component, k the
sensitivity time instance within a sensitivity function, N the number of target components and
K the number of time instances for a particular sensitivity function. s_ijk^2
is the squared value of the relative sensitivity of the i'th target component to
the j'th source component at a certain time instance k.
An identifiability analysis is a powerful technique to determine which source components can be calibrated based on data gathered from an experiment, even before the experiment is performed! The experiment is defined by 3 characteristics: (1) which measurements will be performed (which target components), (2) what is the measurement accuracy (target component measurement error) and (3) what is the measurement interval (target component measurement interval).
The basis of a practical identifiability analysis is the collinearity index gamma which
is a measure for the linear interdependence of the source components:
where s_j is the concatenated vector of relative sensitivity functions of source component j for all target components, ||s_j|| the norm of s_j (square root of the sum of squared values of s_j), s_tilde the matrix composed of s_j_tilde columns corresponding to a certain set of source components and lambda_min the smallest eigenvalue of the matrix calculated as s_tilde_transposed multiplied by s_tilde.
Rather than only calculating the collinearity index of the combined set of source components, all possible subsets are typically analysed. For the case of 3 source components, this would mean that the collinearity indices for subsets {1}, {2}, {3}, {1,2}, {1,3}, {2,3} and {1,2,3} would be calculated (7 possible combinations).
When the collinearity index value is higher than 15, the source component subset is said to be unidentifiable (see Brun et al., 2002). In that case, the subset contains a combination of source components that are too linearly dependent. In such situation, a change of one of the source components can be (completely) negated by an appropriate change in the other source components. As a result, it will never be possible to obtain unique and accurate values for the source components through calibration based on the given quantity and quality of the data (target components).
Beside the collinearity index, the sensitivity index (see above) of each of the source component subsets also holds important information about the parameter identifiability. Not only is it important that the collinearity index of a subset is lower than 15, the sensitivity index of that subset should also be as high as possible. Indeed, high sensitivity indices indicate that the source components of the subset have a large influence on the target components which also means that the target components are ideally suited to be used for the calibration of the source components.
To sum things up: the ideal identifiable source component subset is the one which has a low collinearity index (certainly lower than 15), a high sensitivity index and contains as much source components as possible.
Following example workspaces can be found in the Examples/PhytoSimSensitivity folder of your PhytoSim folder:
The Sensitivity module has no preferences (yet).