**Abstract**

The entire dataset of 1-minute proton spectra provided by MESSENGER’s Fast Imaging Plasma Spectrometer (FIPS [1]) are each numerically fitted with a *κ* distribution function in order to provide estimates of proton density, *n*, and temperature, *T* , in the vicinity of Mercury’s magnetosphere. A collection of artificial neural networks (ANNs) are trained to assess the quality of the newly fitted distribution functions, with a final classification accuracy of 96%. Of the 223,282 spectra, ∼160,000 were classified as having “good” fitting *κ* distributions, ∼133,000 of which were measurements obtained from within the magnetosphere, and ∼18,000 were from the magnetosheath. The “good” magnetospheric densities and temperatures were subsequently used to create a 3D ANN-based model of the Hermean magnetosphere.

**1. Introduction**

Mass loading is an important factor in controlling the timescales over which processes such as wave propagation and reconnection can occur within a magnetized plasma. The speed at which magnetohydrodynamic (MHD) waves propagate is characterized by the local Alfvén velocity, *v*_{A} , where *v*_{A=} , *B* is themagnetic field magnitude, *ρ* is the plasma mass density and *μ*_{0} is the permeability of free space. Fundamentally, the higher the local plasma mass density is–the slower waves propagate. Similarly, the beta of a plasma (*β*) depends on the density and temperature where *β=* and *k*_{B} is the Boltzmann constant.

Magnetic reconnection between two adjacent magnetized plasmas is affected by the difference in plasma beta (*∆β*) between the two fluids, where a larger *∆β* suppresses reconnection and thus a larger shear angle is required for reconnection to occur [2, 3]; conversely, low *∆β* makes reconnection more favorable with small shear angles [3, 4].

The Fast Imaging Plasma Spectrometer (FIPS [1]) on board the MErcury Surface, Space ENvironment, GEochemistry and Ranging (MESSENGER [5]) spacecraft operated at Mercury for approximately 4 years (from March 2011 to April 2015) during the orbital phase of the mission. During this time, it sampled the ions from both within and outside of the Hermean magnetosphere, providing at least 1.25 million proton spectra every 10 or 60 s, depending upon the instrument mode. Many of those were burst-mode spectra and were combined in groups of 6 to form 1-minute average spectra, resulting in ∼220,000 60 s proton spectra.

In the work presented here, the entire dataset of 1-minute FIPS spectra are each numerically fitted with *κ* distribution functions, providing improved estimates of proton density and temperature over previous Maxwellian fits. The quality of the distribution function fits are assessed using artificial neural networks, resulting in a reduced dataset of more reliable plasma moments. Finally, new average and scalable 3D models of magnetospheric protons are presented using the new moments.

**2. Fitting the Spectra**

The *κ*-distribution function, *f*_{κ} [6],

where Γ(*x*) is the Gamma function, was fitted numerically to the FIPS spectra using the downhill-simplex method [7]. This distribution function can be used to describe both plasmas in thermal equilibrium (i.e. Maxwellian, *κ* → ∞) and suprathermal plasmas (*κ* < 10).

Figure 1 shows an example of the *κ* distribution fit (pink) to a FIPS spectrum, compared to a Maxwellian fit (gray). The *κ* function fits well at all velocities in the FIPS spectrum, while the Maxwellian deviates significantly at higher energies.

**3. Assessing Quality of Spectral Fit**

Determining whether the κ distribution fit is a simple task to perform by eye, but would be a time consuming task to do for all 223,282 spectra, with potentially inconsistent results. One option would be to use a simple measure of goodness of fit (e.g. *χ*^{2} ), but this does not work very well with these data - so classification neural networks were used instead.

Initially, spectra were split into 8 equal parts, each of which was analyzed by one of 8 neural networks (see figure 2) – providing a probability that each section had a “good” distribution function fit. The 8 probabilities formed part of the input to the final ANN, along with other parameters such as ∆f (difference between the spectral fit and the data), which produced an overall probability that the spectral fit was reliable.

**4. 3D Proton Model**

Figure 3 shows an overview of the new magnetospheric proton densities and temperatures in the equatorial plane and in the X-Z plane. The proton density appears to be lowest in the closed regions of the magnetosphere, and highest in the cusp, whereas the temperatures exhibit the inverse of this trend.

Using the new density and temperature measurements as training data, and assuming that there is some hemispherical symmetry, a new 3D model was created using an ANN (see figure 4 a and b). The model was trained simply to map a Cartesian position vector as an input to density and temperature. The model may also be combined with the KT17 magnetic field model [8] to provide estimates of the upper limit to the Alfvén speed (figure 4c) and the proton contribution to plasma *β* (figure 4d). A scalable model was also produced, where the magnetopause standoff distance was used as an extra ANN input.

**Acknowledgements**

The work by M.K.J., T.K.Y., S.M.I and E.J.B is supported by STFC grant ST/H002480/1.

MESSENGER project is supported by contracts NASW-00002 and NAS5-97271.

**References**

[1] Andrews, et al. (2007), The Energetic Particle and Plasma Spectrometer Instrument on the MESSENGER Spacecraft, Space Sci. Rev., 131(1-4), 523–556, doi:10.1007/s11214-007-9272-5.

[2] Swisdak et al. (2010), The vector direction of the interstellar magnetic field outside the heliosphere, The Astrophysical Journal, 710(2), 1769–1775, doi:10.1088/0004-637x/710/2/1769.

[3] Phanet al. (2016), Messenger observations of cusp plasma filaments at mercury, Journal of Geophysical Research: Space Physics, 121(9), 8260–8285, doi:10.1002/2016JA022552.

[5] Solomon et al. (2007), Messenger mission overview, Space Sci. Rev., 131(1), 3–39, doi:10.1007/s11214-007-9247-6.

[6] Pierrard and Lazar (2010), Kappa Distributions: Theory and Applications in Space Plasmas, Solar Physics, 267(1), 153–174, doi:10.1007/s11207-010-9640-2.

[7] Nelder and Mead (1965), A Simplex Method for Function Minimization, Comput. J., 7(4), 308–313, doi:10.1093/comjnl/7.4.308.

[8] Korth et al. (2017), A Dynamic Model of Mercury’s Magnetospheric Magnetic Field, Geophys. Res. Lett., 44(20), 10,147–10,154, doi:10.1002/2017GL074699.