Adaptive Biasing Force Method

From PMFLib Wiki
Revision as of 09:51, 25 July 2021 by Kulhanek (talk | contribs)
Jump to navigation Jump to search

Navigation: Documentation / Methods / Adaptive Biasing Force Method


Chapters

Description

Free Energy from Unconstrained MD Simulations

The Adaptive Biasing Force (ABF) method calculates the free energy as a function of selected collective variables from unconstrained molecular dynamics (MD) simulations. The method does not provide the free energy directly, but instead, it provides the free energy gradient , which must be integrated to get the free energy:

... (1)

The free energy gradient is calculated as a mean of instantaneous collective force :

... (2)

with the instantaneous collective force calculated from the time evolution of the collective variable:[1]

... (3)

where is the matrix in the form:

... (4)

The analytical calculation of instantaneous collective force by Equation 3 requires the second derivatives of collective variables with respect to Cartesian coordinates. Since this can be prohibitive for complex collective variables such as the simple base-pair parameters, Equation 3 is evaluated numerically by a finite-difference approach.

Sampling Space Discretization

Due to numerical reasons, mean forces are collected on a regular grid. The averaging of instantaneous collective force is then done in small intervals centered at discrete CV values:

... (5)

with the standard error:

... (6)

where the standard deviation is given by:

... (7)

where is the interval size also called a bin, is the number of samples collected in a bin centered at , and is a statistical inefficiency due to correlation in time series.

Therefore, each CV involved in ABF simulations must be discretized by specifying an interval in which the sampling is performed and the number of intervals (bins) for discretization, for further details, see ABF:Collective variables. The increasing number of bins improves the accuracy of Equation 5 and subsequently the quality of the integrated free energy (Equation 1) but it also increases the noise because of a smaller number of samples collected in a bin. A reasonable compromise is the number of bins, which leads to 0.1 Å or 1-2° bin widths.

Adaptive Bias

ABF introduces an adaptive bias, which improves the sampling of rare events. The bias removes barriers or higher free energy regions in the space described by predefined collective variables . As a result, the system evolves by free diffusion alongside these collective variables. The bias is derived from the free energy, which is projected in the form of biasing force to the Cartesian space and removed from force originated from inter-atomic interaction potential . The application of the bias thus leads to the modified equations of motions:

... (8)

where is mass of atom i, is atom position, and is time.

Since the biasing force is not known prior to the simulation, it is calculated during the simulation and adaptively applied. To accelerate sampling, the biasing force is applied even if an inadequate number of samples is collected in a bin. In this case, the biasing force is scaled in the early stages to avoid artifacts from applications of overestimated biasing forces. The biasing force can also be smoothed to decrease noise in collected data. For further details, see feimode in ABF:Controls.

Instantaneous Collective Forces

PMFLib implements two algorithms to calculate Equation 3: simplified and original ABF algorithms. The original ABF algorithm is theoretically more accurate than the simplified one but it works only for MD without constraints. Therefore, the simplified algorithm is the default one as it is numerically more robust at all MD setups.

Simplified ABF Algorithm

The simplified ABF algorithm (fmode=1) uses the result of the product rule for derivatives applied on Equation 3 leading into the two distinct contributions into the instantaneous collective forces:

... (9)

The potential contribution employs the accelerations calculated back from the velocities. This ensures that effect of SHAKE and other constraints on acceleration is properly counted (see the leap-frog integration algorithm for further details):

... (10)

The kinetic contribution is calculated from numerical differentiation:

... (11)

Finally, to get at the same time as , two values are averaged:

... (12)

The algorithm uses a history of values collected in two consecutive time steps. But, the first result is available from the fourth time step to be compatible with the original algorithm.


Original ABF Algorithm

The original ABF algorithm (fmode=2) implements the algorithm presented by Darve at al.[1][2]. This algorithm should not be used when SHAKE is enabled because the accelerations entering into the calculations are not corrected for constraints. The algorithm uses a history of values collected in four consecutive time steps. Thus, the first result is available from the fourth time step.

... (11)

where

... (12)
... (13)

References

  1. 1.0 1.1 Darve, E.; Rodríguez-Gómez, D.; Pohorille, A. Adaptive Biasing Force Method for Scalar and Vector Free Energy Calculations. J. Chem. Phys. 2008, 128 (14), 144120. doi:10.1063/1.2829861.
  2. Darve, E. Thermodynamic Integration Using Constrained and Unconstrained Dynamics. In Free Energy Calculations Theory and Applications in Chemistry and Biology; Springer Series in CHEMICAL PHYSICS; Springer: Berlin, 2007; Vol. 86, pp 119–170.