\caption{\label{fig:linear_corr}\textbf{Linear Correction. a,} Subset of points linearly fitted, shown in cartesian co-ordinates. \textbf{b,} Points shown in \autoref{fig:linear_corr}\blu{a} shown in polar co-ordinates, where the waviness arising due to aberrations are clearly visible.}
Subset of points linearly fitted, shown in cartesian co-ordinates.
%
\textbf{b,} Points shown in \autoref{fig:linear_corr}\blu{a} shown in polar co-ordinates, where the waviness arising due to aberrations are clearly visible.}
\end{figure}
However, there is a problem - cleanly visible in \autoref{fig:all_points}\blu{b}. There are fundamentally five peaks - and the radial distances of those peaks should be pretty constant with respect to the angle. However, there is a waviness in the data, which broadens the peaks and makes the data very difficult to interpret. Like, look at the peak at $\mathrm{\approx70}$ pixels in \autoref{fig:all_points}\blu{c}. It is split into two - because of the waviness. These distortions have been observed before too, and their influence on the data analysis noted by Mahr \textit{et al.}\cite{4dstem_distortions}.
However, there is a problem - cleanly visible in \autoref{fig:all_points}\blu{b}.
%
There are fundamentally five peaks - and the radial distances of those peaks should be pretty constant with respect to the angle.
%
However, there is a waviness in the data, which broadens the peaks and makes the data very difficult to interpret. Like, look at the peak at $\mathrm{\approx70}$ pixels in \autoref{fig:all_points}\blu{c}.
%
It is split into two - because of the waviness.
%
These distortions have been observed before too, and their influence on the data analysis noted by Mahr \textit{et al.}\cite{4dstem_distortions}.
And the source of this waviness is post-specimen lens aberrations, which we have to correct. One way to express the aberrations is through \autoref{eq:ps_aberrations}.
And the source of this waviness is post-specimen lens aberrations, which we have to correct.
%
One way to express the aberrations is through \autoref{eq:ps_aberrations}.
where $r_i^0$ is the real radial distance, $r_i^a$ is the measured radial distance due to aberrations, and $n$ is the aberration order. Thus, one way to think of this is that there are multiple sine waves. The frequency of the sine wave is the aberration order. Also, all the sine waves are not co-located, which is an issue. So, we need to build an aberration corrector function that does this. Secondly, why is this multiplicative? If you compare the peaks at 70 pixels versus those at 100 pixels in \autoref{fig:all_points}\blu{b}, the higher radius peaks are wavier. Thus, the effect is radially dependent, and not a constant, which means multiplicative.
where $r_i^0$ is the real radial distance, $r_i^a$ is the measured radial distance due to aberrations, and $n$ is the aberration order.
%
Thus, one way to think of this is that there are multiple sine waves.
%
The frequency of the sine wave is the aberration order.
%
Also, all the sine waves are not co-located, which is an issue.
%
So, we need to build an aberration corrector function that does this.
%
Secondly, why is this multiplicative?
%
If you compare the peaks at 70 pixels versus those at 100 pixels in \autoref{fig:all_points}\blu{b}, the higher radius peaks are wavier.
%
Thus, the effect is radially dependent, and not a constant, which means multiplicative.
To test the basic nature of aberrations, we chose to do a linear correction based on the modified \autoref{eq:lin_corr}.
The results from following such a correction is demonstrated in \autoref{fig:linear_corr}\blu{a} and \autoref{fig:linear_corr}\blu{b}, where the linear correction was performed only on a subset of the data. This subset belonged to BOL particles, and positions away from particle shell where maximum strain variation is expected. Also, only those points that were between 80 to 100 pixels from the center were chosen, thus ensuring only one peak value was represented.
The results from following such a correction is demonstrated in \autoref{fig:linear_corr}\blu{a} and \autoref{fig:linear_corr}\blu{b}, where the linear correction was performed only on a subset of the data.
%
This subset belonged to BOL particles, and positions away from particle shell where maximum strain variation is expected.
%
Also, only those points that were between 80 to 100 pixels from the center were chosen, thus ensuring only one peak value was represented.
While this demonstrated that we are correct on the technical nature of the aberrations, this does not correct the whole dataset. So, what we need is to do this with non-linear (multiplicative) correction on the entire dataset. To do this, we need to find the parameters $a_i$ and $r_i$ that best fit the data. This is done using the Expectation-Maximization (EM) algorithm\cite{em_algo}. The EM algorithm is a two-step process. In the first step, we calculate the expectation of the data, given the current parameters. In the second step, we calculate the maximum likelihood of the parameters, given the current expectation. This is repeated until the parameters converge. The expectation is calculated using the following equation.
While this demonstrated that we are correct on the technical nature of the aberrations, this does not correct the whole dataset.
%
So, what we need is to do this with non-linear (multiplicative) correction on the entire dataset.
%
To do this, we need to find the parameters $a_i$ and $r_i$ that best fit the data.
%
This is done using the Expectation-Maximization (EM) algorithm\cite{em_algo}.
%
The EM algorithm is a two-step process.
%
In the first step, we calculate the expectation of the data, given the current parameters.
%
In the second step, we calculate the maximum likelihood of the parameters, given the current expectation.
%
This is repeated until the parameters converge.
%
The expectation is calculated using the following equation.