Next Article in Journal
Performance Evaluation of Container Orchestration Tools in Edge Computing Environments
Next Article in Special Issue
Naturalistic Hyperscanning with Wearable Magnetoencephalography
Previous Article in Journal
Run Your 3D Object Detector on NVIDIA Jetson Platforms:A Benchmark Analysis
Previous Article in Special Issue
Simulation Study of Different OPM-MEG Measurement Components
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Automated Machine Learning Strategies for Multi-Parameter Optimisation of a Caesium-Based Portable Zero-Field Magnetometer

Department of Physics, Scottish Universities Physics Alliance SUPA, University of Strathclyde, Glasgow G4 0NG, UK
*
Authors to whom correspondence should be addressed.
Sensors 2023, 23(8), 4007; https://doi.org/10.3390/s23084007
Submission received: 27 February 2023 / Revised: 11 April 2023 / Accepted: 13 April 2023 / Published: 15 April 2023

Abstract

:
Machine learning (ML) is an effective tool to interrogate complex systems to find optimal parameters more efficiently than through manual methods. This efficiency is particularly important for systems with complex dynamics between multiple parameters and a subsequent high number of parameter configurations, where an exhaustive optimisation search would be impractical. Here we present a number of automated machine learning strategies utilised for optimisation of a single-beam caesium (Cs) spin exchange relaxation free (SERF) optically pumped magnetometer (OPM). The sensitivity of the OPM ( T / Hz ), is optimised through direct measurement of the noise floor, and indirectly through measurement of the on-resonance demodulated gradient (mV/nT) of the zero-field resonance. Both methods provide a viable strategy for the optimisation of sensitivity through effective control of the OPM’s operational parameters. Ultimately, this machine learning approach increased the optimal sensitivity from 500 fT / Hz to < 109 fT / Hz . The flexibility and efficiency of the ML approaches can be utilised to benchmark SERF OPM sensor hardware improvements, such as cell geometry, alkali species and sensor topologies.

1. Introduction

OPMs have shown impacts across many fields of magnetic sensing, with the potential perhaps being most transformative in the field of magnetoencephalography (MEG). The flexible placement of sensing volumes and favourable operating temperature provide significant advantages over superconducting quantum interference devices (SQUIDs) in many contexts. The sensitivity of commercial OPMs approaches that of SQUIDs while providing functional [1] and longitudinal [2] studies with an important new tool. SERF magnetometers demonstrate sensitivities that approach the low-femtoTesla regime, making this type of zero-field sensor ideal for MEG, although recent work has also demonstrated finite-field sensors attaining the requisite sensitivity for these measurements in the Earth’s field [3,4]. The majority of reported work in SERF sensors for MEG utilise rubidium as the sensing species. Cs is attractive for MEG as the temperature needed to achieve a comparable vapour pressure is lower than that of other commonly used alkalis, rubidium or potassium. To date, few SERF sensors reported in the literature use Cs [5,6] and only a single sensor is known by the authors that operates in a single-beam configuration [7]. As such, the optimal operation parameters of the sensor are not known a priori.
The optimal signal from the SERF sensor has intrinsic complex dynamics in at least five-dimensions contained within the parameters of cell temperature, laser power, laser detuning, modulation frequency and modulation depth. Some experimental parameter configurations have been well-described in the literature [8,9] and others may be modelled accurately [10]. In general, sensitivity is improved by elevating the temperature of the cell to the increase atomic density and subsequently increase spin exchange (SE) collisions. A threshold exists at which the opacity of the cell reduces the transmission of the light through the cell and hence the signal amplitude. Increasing laser power raises the optical pumping efficiency, at the cost of higher intensity noise and broadening of the magnetic resonance (and subsequent reduction of sensitivity). In order to ascertain the best operational parameters for the sensor described here, we have taken an automated approach to optimising the primary experimental parameters with a view to maximising the sensitivity of this device.
Here we present three automated optimisation techniques that have been used independently to assess the best operation parameters based on experimental performance quantified through a chosen cost function C. The techniques include a genetic algorithm, a simplified form of gradient ascent optimisation and an open-source machine-learning package that utilises predictive modelling. We present these automated optimisation techniques in the context of a Cs SERF magnetometer to demonstrate use as a generic routine for finding the optimal operating point for a complex sensor.
Beyond the realms of computer science, automated optimisation and machine learning have been utilised across many disciplines [11,12,13,14,15,16], and have found success in quantum and particle physics [17,18,19]. Machine learning has been adopted for the optimisation of experimental parameters for complex systems [20,21,22], where traditional human-intuition-based experimental control is laborious, inefficient, and may not result in the optimal configuration [23].
The optimisation approach applied here has yielded previously unknown configurations of parameters leading to operation of the magnetometer blue-detuned from the optical absorption peak rather than at peak absorption [24]. It has allowed us to create a robust, flexible and fast test environment for benchmarking cells of various buffer gas pressures and different alkali species, which aids sensor development.

2. Materials and Methods

2.1. Experimental Set-Up

The experimental setup is displayed in Figure 1. A distributed Bragg reflector (DBR) laser close to the F = 4 F = 3 hyperfine transition of the Cs D 1 line is fibre coupled to the sensor package using a non-magnetic fibre coupler (Schäfter Kirchhoff 60FC-4-M12-10-Ti). Laser power and detuning is controlled by a digital butterfly laser diode controller (Koheron CTL200) through direct control of laser current and TEC temperature. Light polarisation is selected with a miniaturised quarter waveplate ( λ / 4 ) that can be manually controlled to allow fine adjustment of polarisation. The beam is incident on a micro-fabricated atomic vapour cell [25], which contains Cs vapour and 211 Torr nitrogen gas. The OPM sensor head [26] consists of all sensing components (cell, optics, PD and coils) in a portable package with external dimensions of 25 mm × 25 mm × 50 mm, which is mounted within a 5-layer μ -metal shield ( 10 5 shielding factor) to attenuate the Earth’s magnetic field.
Efforts have been made to reduce the number of magnetic components close to the cell. The cell is mounted on a printed circuit board (PCB), which drives a single 8 Ω non-magnetic aluminium nitride heating resistor. Resistive heating is realised by the application of square-wave current modulation at 274.699 kHz, a frequency far outside the bandwidth of the sensor. The temperature is varied by changing the phase offset of the two square waves that drive a full-bridge class D amplifier. A T-type thermocouple is mounted close to the cell in order to provide temperature feedback.
The cell is mounted at the centre of three biplanar-configuration coil pairs designed using open source coil design package “bfieldtools” [28,29], which control the static magnetic field along each axis. Additionally, a modulation coil along the y-axis allows application of an oscillating magnetic field. The static-field coils are driven using a custom low-noise current driver [27]. The light transmitted through the vapour cell is detected using a photodetector with a custom transimpedance amplifier and the signal is digitised via a 16-bit data acquisition system (National Instruments NI USB-6366).

2.2. Hanle Resonance

The magnetometer derives its measurement of the magnetic field through the transverse zero-field Hanle resonance [10,30], which manifests as a peak in light transmission through the cell when the atoms experience zero magnetic field, seen in Figure 2a. The static magnetic field on each axis may be swept independently in order to null residual fields [10]. B x , B y , and B z denote the magnetic field values that are swept along the x, y and z axes, respectively. B x 0 , B y 0 , and B z 0 denote the magnetic field values that are applied, respectively, to cancel residual static fields and achieve zero-field. The magnetometer is designed to be operated in the SERF regime, which requires elevated temperatures and a low-field environment such that the spin-exchange collision rate sufficiently exceeds the Larmor frequency.
The experimental procedure of the magnetometer is as follows: the magnetic field is swept across the x- and z-axes to generate a series of longitudinal Hanle resonances with respect to the transverse field, seen in Figure 2b. This two-dimensional “2D” Hanle landscape is fit using Equation (1), which describes the longitudinal Hanle resonance as a function of the field applied in the transverse, in this case x, direction [10];
S 2 D = A Γ 2 + ( B x + B x 0 ) 2 Γ 2 + ( B z + B z 0 ) 2 V 0 ,
where V 0 is the constant background offset voltage, A is the signal amplitude, and Γ is the full-width at half-maximum (FWHM). The point at which the transverse resonance is the sharpest indicates the value of the applied transverse and longitudinal field at which the atoms experience close to zero-field. These fields, B x 0 and B z 0 , are applied, effectively zeroing the field in the x- and z-axes. The final stage steps the field along the y-axis to generate a single one-dimensional “1D” transverse Hanle resonance, seen in Figure 2a and [10]. The 1D resonance is fit to the model described as:
S 1 D = A Γ 2 Γ 2 + ( B y B y 0 ) 2 + V 0 .
Subsequently, the magnetic field across the y axis is swept, with an additional field modulation applied along the same axis at an amplitude ( A m o d ) and frequency ( F m o d ) determined from Γ . For each value of B y , the signal is demodulated. The demodulated line shape, as seen in Figure 2c, shows the linear sensing region (red dashed line), and the gradient (mV/nT) is used to generate the first cost function, Equation (3).
Finally, a free-running measurement of the magnetic field is carried out, allowing the sensor noise floor and hence sensitivity to be characterised. The calculated B x 0 , B y 0 and B z 0 fields are applied, effectively zeroing the remaining magnetic field experienced by the sensing atoms across all three axes. Modulation is again applied to the magnetic field along the y-axis, and the response of the atoms is measured through the photodetector. Analysis of this measurement through the square root of the power spectral density (PSD) may be scaled by the measured demodulated gradient (mV/nT) to assess the noise floor of the sensor. The power in the noise spectrum across the defined frequency band of interest (5–20 Hz) is calculated, and this serves as the second cost function (Equation (4)) for optimising the OPM.

Machine Learning

Machine learning works to identify a global maximum or minimum within a parameter space. Here, we will demonstrate and compare multiple machine learning algorithms (MLAs) that implement supervised learning. Supervised learning refers to providing the MLA with a quantitative measure of performance known as cost [20]. For all techniques, the MLA and experiment are contained within a closed loop where the MLA controls the experiment, which in turn gathers and returns cost information to the MLA. More specifically, the MLA selects the experimental parameters, which are translated to the experiment through control instrumentation. The experiment automatically completes the zero-field resonance measurements in both 2D and 1D, and calculates cost according to the cost function C ( ρ ) . The cost associated with each parameter set is used by the MLA to inform the next set of parameters to sample.
We define two cost functions, C 1 ( ρ ) and C 2 ( ρ ) , to optimise in two distinct ways in order to assess which cost function is most effective. C 1 ( ρ ) , measured in (mV/nT), is the gradient of the demodulated lineshape as seen in Figure 2c and given by:
C 1 ( ρ ) = δ A Demod δ B y ,
where δ A Demod and δ B y are, respectively, the change in amplitude and magnetic field of the demodulated lineshape within the linear range. C 1 has been selected as this corresponds to a “sharp” 1D resonance line-shape, that is, a high amplitude with narrow width, which is a good indicator of OPM performance. Thus, C 1 must be maximised to increase line-shape sharpness and as such a global maximum of C 1 is desired.
C 2 ( ρ ) is a sensitivity approximation measured directly through analysis of the noise floor. A P S D is taken to extract a series of frequency dependent amplitude values ( X ( k ) ) that are scaled by the demodulated gradient ( C 1 ) to provide frequency response as a function of magnetic field. The geometric mean of the noise spectrum within our band of interest (5 to 20 Hz) constitutes C 2 ( ρ ) , where
C 2 ( ρ ) = 5 k 20 n δ A Demod δ B y X ( k ) 1 n .
By minimising C 2 , which is a measure of the intrinsic noise of the magnetometer in the frequency band of interest, we optimise the magnetic sensitivity. Thus, the location of a global minimum of C 2 across the parameter space is desired.
Both defined cost functions aim to improve sensitivity, where C 2 will achieve this directly and C 1 indirectly.

2.3. Optimisation Techniques

For the total number of experimental parameters, M, a single set of experimental settings (temperature, laser power, etc.) is defined as X = ( x 1 , x M ) . For each individual set, X i , an associated cost C ( X i ) and uncertainty U ( X i ) are found experimentally. All optimisation techniques selected are examples of online optimisation (OO) in which optimisation is implemented concurrently with experimental testing. We employ two evolutionary OO algorithms, a gradient ascent OO and a predictive model-based machine learning algorithm. All optimisation methods continue until 250 sets of parameters are tested, known as the end condition, N e n d = 250 .

2.3.1. Evolutionary Algorithms

Evolutionary algorithms are heuristic search-based approaches to solving problems. The processes of evolutionary algorithms are inspired by nature and biological systems [31], the scheme is shown here in Figure 3. This includes the evaluation of the performance of individuals within a population to inform the selection of a new population mimicking “survival of the fittest”, a crossover of high-performing individuals to imitate reproduction and mutation. Mutation introduces a stochastic component and aims to drive optimisation to a global maximum or minimum. Evolutionary algorithms are commonly used across many types of optimisation problems [32], due to their robust convergence to a solution. However, this convergence time increases with the system complexity. Here, we will implement two evolutionary algorithms, (a) genetic algorithm (GA) and (b) differential evolution (DE) algorithm. The GA process is displayed in Figure 3a. The GA first randomly creates the initial population, X ( t ) , of N sets of experimental parameters
X ( t ) = { X 1 , X N } ,
where t denotes the generation of the population, initially t = 0 .
All parameters chosen are selected within predefined parameter space limits. Next, we automatically and iteratively evaluate each parameter set, X i , through experimental testing and find associated cost C ( t ) and uncertainty U ( t ) of the entire population, where, C ( t ) = ( C 1 , C N ) and U ( t ) = ( U 1 , U N ) . The selection of the new generation population, X ( t ) where t = t + 1 , is based on the best performing sets of experimental parameters from the previous generation X ( t 1 ) . To achieve this, X ( t 1 ) is ranked by C ( t 1 ) with respect to U ( t 1 ) and the best performing N 2 sets of parameters are added to X ( t ) . The remaining N 2 sets of parameters are created through a crossover. Crossover occurs between sets of parameters from the previous generation to create sets for the new generation, shown in Figure 3a and given by:
X ( t ) j = { x | x X a ( t 1 )   if   x i C P , x X b ( t 1 )   if   x i > C P }
X ( t ) k = { x | x X b ( t 1 )   if   x i C P , x X a ( t 1 )   if   x i > C P } ,
where X ( t ) j and X ( t ) k are “children” sets of “parent” X a ( t 1 ) and X b ( t 1 ) . The crossover point, C P , refers to an individual element, x i , of the parent sets. The final step is to introduce random mutation to prevent optimisation for a local minimum or maximum. The new population, X ( t ) , is then evaluated experimentally and the algorithm continues until the end condition is met.
The process of DE deviates from GA as shown in Figure 3b, while maintaining the same evolutionary elements. The initial population of sets of parameters is created as defined in Equation (5) and similarly evaluated to find the associated cost C ( t ) and uncertainty U ( t ) of the entire population. The mutation element is incorporated through creation of a new set, V, where V = X c + ( X a X b ) and X a , X b and X c are randomly selected parameter sets. Crossover occurs between V and a randomly selected target set X T to produce an additional set Q. Q is evaluated experimentally and replaces X T in the new generation where t = t + 1 , if C Q outperforms C T . Lastly, three random sets and a target set are selected from the new population, X ( t ) . The algorithm continues until the end condition is met.

2.3.2. Gradient Ascent

Gradient ascent algorithms are a first-order process. As such, the differential of the changing cost C ( ρ ) is used to inform the learning process [33]. Here, we implement a form of batch gradient algorithm, displayed in Figure 4. Small batches of data are tested to find the optimal parameters based on the gradient of the cost across the batch. Learning occurs between iterations of batches. Batch gradient algorithms guarantee convergence to a local or global maximum or minimum. However, as the batch sizes are pre-defined, some points tested may be redundant, especially compared to stochastic gradient processes with a higher learning rate [34,35,36].
In this context, each batch x ( i ) is defined as a broad sweep of a single parameter across the full range for that parameter in regular intervals as follows:
x ( i ) = ( x i m i n , x i m i n + n , . . x i m a x ) ,
where i denotes the individual parameter, n is the interval for the parameter, and x i m a x and x i m i n are the maximum and minimum values of the specific parameter from the defined parameter range. The first batch targets the first parameter only, where i = 1 . The non-target parameter values are kept constant throughout the batch testing at the previously found optimum, or initially selected randomly. Evaluation of the batch experimentally finds the associated cost for each element of x ( i ) . The cost curve of the batch is used to find where the gradient tends to zero, C ( ρ ) x 0 . The value of x i is set to the corresponding parameter value, x o p t , for the next batch iteration. Each iteration changes the target parameter used for the batch, where i = i + 1 after each batch, up to the total number of M parameters. One full process of the gradient algorithm occurs after all parameters have been selected as the target parameter, which in turn loops until the end condition is met.

2.3.3. Gaussian Process Regression

The Gaussian process (GP) regression OO method creates a model defining how each experimental parameter relates to the experimentally found cost, known as the cost-landscape. The cost-landscape is formed through training the MLA with data collected by DE for 2M sets of parameters. The model generates correlation lengths to indicate how sensitive the cost is to each parameter, where the correlation length is inversely proportional to its influence on cost. The cost-landscape model informs the selection of new parameter values to test. Each iteration informs the model and contributes to defining the noise level of “expected cost” to “found cost”, i.e., the variance of the cost if measured at the same set of parameters many times. For this method, we utilise M-LOOP (Machine Learning Online Optimization Package), an open-source Python-based machine learning toolkit [20], which utilises DE and GP during optimisation. While GP regression is the most sophisticated MLA we employ, Gaussian processes lose efficiency in high dimensional spaces and the computational time required scales with the cube of the number of tests.

2.4. Parameters

The parameters, p, selected for optimisation are: (1) Cell Temperature T, (2) Laser Power LP and (3) Laser Detuning LD. These parameters are intrinsically linked with complex dynamics as described in Section 4. Each parameter is directly controlled through experimental hardware.
A further two parameters are defined, namely (4) Modulation Amplitude B M o d and (5) Modulation Frequency ω M o d . Both amplitude and frequency of the applied modulated magnetic field influence light absorption and magnetometer performance. These parameters are not directly selected, rather dimensionless factors A M o d and F M o d are defined that are tied to the magnetic resonance line width of the magnetometer response, defined as:
A M o d = B M o d Γ
F M o d = ω M o d Γ γ ,
where total relaxation Γ is equal to the HWHM width extracted from magnetic resonance and γ is the gyromagnetic ratio ( 3.5 × 2 π Hz/nT for Cs). B M o d and ω M o d are dependent factors, and the modulation index, m i , defines this dependency:
m i = γ B M o d q ( P ) ω M o d ,
where q ( P ) is the nuclear slowing-down factor at high polarisation [37]. It has been shown that the optimal modulation index occurs when m i = 0.5 1 [38]. All control parameter ranges are defined in Table 1.

3. Results

We applied the MLAs presented in Section 2.3 to optimise the sensitivity of a single-beam Cs SERF OPM. Two cost functions ( C 1 , C 2 ) are utilised to investigate cost function suitability. The number of parameters optimised ( M = 3 : LD, LP, T, M = 5 : LD, LP, T, A M o d , F M o d ) is varied to demonstrate MLA robustness with respect to optimisation complexity. In total, four independent optimisation schemes are measured:
Scheme 1.
Cost = C 1 , M = 3
Scheme 2.
Cost = C 1 , M = 5
Scheme 3.
Cost = C 2 , M = 3
Scheme 4.
Cost = C 2 , M = 5
Three MLAs are used per optimisation scheme: (1) Genetic Algorithm (GA), (2) Gradient Descent algorithm (GD) and (3) Gaussian Process Regression (GP). The full parameter space used for all optimisation schemes is defined in Table 1. For equality between optimisation schemes, all methods are initialised with a random set of parameter values, often initially producing no magnetic resonance signal. Each MLA ran until the end condition, requiring 250 sets of experimental settings to be tested, N e n d = 250 , taking approximately 4 h in total per MLA. Both cost functions were measured during each technique, regardless of the selected cost function, to allow comparison.
To benchmark the optimised sensitivity of all MLAs and optimisation schemes, we first manually optimised through human-intuition-based experimental control. During human optimisation, the operational parameters are manually selected and the subsequent measured sensitivity informs the selection of the next parameters based on intuition. The human optimisation process found an optimal sensitivity of 500 fT / Hz , in approximately 4 h.
The results of all optimisation schemes for all MLAs are shown in Figure 5. Each row in Figure 5 displays the results for an individual optimisation scheme, with Cost Function C ( ρ ) and the number of parameters (M) indicated accordingly. Progression of each technique can be seen in Figure 5a,d,g,j, where cost is a function of the experimental run number and the moving maximum (for C 1 ) or minimum (for C 2 ) throughout optimisation run is indicated by the solid line for each MLA. Figure 5b,e,h,k show the corresponding FFT for the optimal parameters found per MLA, with the sensitivity shown as a function of frequency (Hz) in the bandwidth of interest (5 to 20 Hz). Figure 5c,f,i,l depict the corresponding demodulated line shape for the optimal parameters found per MLA.
The optimised cost for each MLA and optimisation scheme with corresponding optimal parameter settings can be seen in Table 2. All optimisation schemes resulted in large cost improvement throughout optimisation. Convergence of optimised values occurred within each optimisation scheme. The mean and standard deviation across all ML techniques within each scheme are summarised below:
Scheme 1.
C 1 . All MLAs converged at 2.5 ± 1 mV/nT, equating to a measured sensitivity of 163 ± 20 fT / Hz .
Scheme 2.
C 1 . All MLAs converged at 4.4 ± 0.4 mV/nT, equating to a measured sensitivity of 147 ± 11 fT / Hz .
Scheme 3.
C 2 . All MLAs converged at a measured sensitivity of 163 ± 15 fT / Hz , equating to a demodulated gradient of 2.2 ± 0.15 mV/nT.
Scheme 4.
C 2 . All MLAs converged at a measured sensitivity of 132 ± 23 fT / Hz , equating to a demodulated gradient of 2.8 ± 0.9 mV/nT.
The optimum sensitivity of 109 fT / Hz was identified by the gradient descent algorithm (with an uncertainty of ± 1 fT / Hz taken from the geometric standard deviation across the frequency band of interest) using five parameters ( M = 5 ) and direct optimisation of sensitivity ( C 2 ). The optimum demodulated gradient of 4.75 mV/nT was identified (with an uncertainty of ± 0.03 mV/nT, taken as the linear fitting error across demodulated linear region) by the Gaussian process regression model using five parameters and direct optimisation of demodulated gradient ( C 1 ).
The GP model is the most sophisticated MLA demonstrated in this paper. Due to the nature of the optimisation method, as described in Section 2.3.3, a cost-landscape depicting how each parameter affects the measured cost is produced throughout the optimisation process. Figure 6 shows the measured data for each parameter as a function of cost, for optimisation schemes 2 and 4 (5 parameter optimisations). The parameter cost-landscape model is indicated with a line, and the 95% confidence interval generated by the model is indicated by the shaded region. Many measured points for all parameters lie outside the confidence interval due to the nature of multi-parameter optimisation, where the optimised value of one parameter may produce a poor cost value if other parameters are not optimised. The confidence interval shows the trust region of the models predictive landscape after all measurement has been completed.

4. Discussion

The sensitivity of the Cs OPM has been improved by all of the MLAs presented in comparison to human optimisation over comparable run-time. This comprehensive improvement indicates the suitability of automated optimisation methods for experimental parameter optimisation tasks in optically pumped magnetometry.
The use of 3 MLAs allowed for comparison of these techniques to aid recommendations for suitability. In this use case, all techniques appear capable, with no single technique standing out as significantly more favourable. Completing the MLA techniques for a differing number of parameters allows comparison of the robustness of the MLA techniques to the system complexity. Interestingly, the more simple MLAs (GA and GD) proved most successful for direct sensitivity optimisation C 2 , with GD providing the optimal sensitivity value of 109 fT / Hz . However, the Gaussian process regression model proved most effective for optimisation of C 1 . This suggests that the Gaussian process regression model was more sensitive to the more stochastic nature of cost function C 2 .
Increasing the complexity, M = 5 , proved beneficial to both cost functions. As such, the amplitude and frequency of the applied magnetic modulation are tied to magnetometer performance due to their influence on light absorption. Optical noise has a large contribution in this sensor, and this noise decreases with increased absorption. Furthermore, low frequency 1/f noise decreases with increasing modulation frequency. Each five parameter optimisation scheme converged before the end condition, suggesting that, in multi-parameter systems with five parameters, all MLAs are suitable.
The implementation of two cost functions, C 1 and C 2 , aids identification of the most suitable cost function for this purpose. Table 2 shows relative alignment of the best parameter values between cost functions. The peak sensitivity found indirectly ( C 1 ) is 30 fT / Hz higher than through direct sensitivity optimisation ( C 2 ). As such, C 1 acts as a reasonable proxy for sensitivity optimisation without specifically measuring sensitivity. C 1 requires less data collection and corresponding sensitivity measurements may be taken after the fact. C 2 takes longer experimentally and computationally and is more susceptible to extraneous environmental and technical noise. However, 5 parameter optimisation using C 1 optimised the modulation frequency to a much lower frequency. The subsequent modulation index for these optimised values are also far outside the expected range ( m i > 5 ). This highlights a key drawback of optimisation using C 1 , that technical noise contributions are not considered.
A benefit of the implementation of the GP is the production of the cost-landscape model that defines how influential each parameter is on performance. From this model, Figure 6, clear trends can be seen that span across both cost functions, for example, the peak in temperature for C 1 aligns with the trough in C 2 . This is likely due to the increased sensitivity gained when the temperature of the cell has increased atomic vapour density sufficiently to reach the SERF regime. As cell temperature is increased, we see a subsequent improvement of sensitivity up to 120 C, after which the opacity of the cell is increased by the increasing atomic density, allowing less light to reach the detector.
Figure 6 also shows mirrored trends for laser detuning. However, a deviation between the laser power landscape between cost functions is also present. The peak laser power required for C 1 continues to increase beyond the defined range, whereas the optimum laser power for C 2 saturates at 5 mW. This could be due to the increasing laser power detrimentally affecting sensitivity due to intensity noise with increased laser power, which does not degrade C 1 to the same degree. These trends suggest that either cost function is suitable for optimisation if intensity noise is taken into consideration.
The predicted cost-landscapes for A M o d and F M o d (Figure 6) show broad trends with large confidence intervals, suggesting that the relationship between these parameters and the cost functions are not well-defined. Table 2 shows in the results for optimisation scheme 4 ( C 2 , M = 5 ) that the optimised values for modulation amplitude and frequency gave a modulation index within the expected optimal values ( m i = 0.5 − 1). While clear gains in sensitivity were provided by increasing the number of parameters optimised, C 2 is advised for directly optimising sensitivity while keeping modulation values within expected optimal conditions.
It is interesting to note that the optimal detuning parameter found is positively detuned from the optical absorption peak (Table 2). It appears that the effect of the buffer gas introduces complex optical pumping dynamics in the atomic system, likely tied to depopulation on the F = 3 ground state. The results of the MLA techniques show that the detuning and power dependence are non-trivial. These results may vary depending on cell parameters such as the optical path length and buffer gas pressure. The techniques shown here will allow future cells to be characterised in an efficient and comprehensive manner.
With an optimised sensitivity of 109 fT / Hz , the ML methods here have aided the tuning of operational parameters of a SERF OPM to facilitate a sensitivity suitable for use in magnetoencephalography.

Author Contributions

Conceptualisation, R.D., C.O., E.R., P.F.G. and S.I.; methodology, R.D.; software, R.D., C.O., M.S.M. and E.I.; validation, R.D., D.H. and C.O.; formal analysis, R.D.; investigation, R.D.; resources, E.R. and P.F.G.; data curation, R.D.; writing—original draft preparation, R.D.; writing—review and editing, R.D., C.O., S.I., D.H, P.F.G. and E.R.; visualization, R.D.; supervision, E.R., P.F.G., S.I. and C.O.; project administration, E.R., P.F.G., S.I. and C.O.; funding acquisition, E.R. and P.F.G. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by UKRI grant number EP/T001046/1.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

All data created during this research are openly available from Pure Data. DOI: https://doi.org/10.15129/e31fe899-cfa6-47a3-8960-fad048c43d23, accessed on 14 February 2023.

Acknowledgments

The authors acknowledge and thank James P. McGilligan, David P. Burt and Kelvin Nanotechnology for the manufacture and supply of the atomic vapour cell used within this research.

Conflicts of Interest

The authors declare no conflict of interest. The funders had no role in the design of the study; in the collection, analyses, or interpretation of data; in the writing of the manuscript, or in the decision to publish the results.

References

  1. Boto, E.; Holmes, N.; Leggett, J.; Roberts, G.; Shah, V.; Meyer, S.S.; Muñoz, L.D.; Mullinger, K.J.; Tierney, T.M.; Bestmann, S.; et al. Moving magnetoencephalography towards real-world applications with a wearable system. Nature 2018, 555, 657–661. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  2. Hill, R.M.; Boto, E.; Holmes, N.; Hartley, C.; Seedat, Z.A.; Leggett, J.; Roberts, G.; Shah, V.; Tierney, T.M.; Woolrich, M.W.; et al. A tool for functional brain imaging with lifespan compliance. Nat. Commun. 2019, 10, 1–11. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  3. Limes, M.E.; Foley, E.L.; Kornack, T.W.; Caliga, S.; McBride, S.; Braun, A.; Lee, W.; Lucivero, V.G.; Romalis, M.V. Portable magnetometry for detection of biomagnetism in ambient environments. Phys. Rev. Appl. 2020, 14, 011002. [Google Scholar] [CrossRef]
  4. Zhang, R.; Xiao, W.; Ding, Y.; Feng, Y.; Peng, X.; Shen, L.; Sun, C.; Wu, T.; Wu, Y.; Yang, Y.; et al. Recording brain activities in unshielded Earth’s field with optically pumped atomic magnetometers. Sci. Adv. 2020, 6, 8792–8804. [Google Scholar] [CrossRef]
  5. Ledbetter, M.P.; Savukov, I.M.; Acosta, V.M.; Budker, D.; Romalis, M.V. Spin-exchange-relaxation-free magnetometry with Cs vapor. Phys. Rev. At. Mol. Opt. Phys. 2008, 77, 1–7. [Google Scholar] [CrossRef] [Green Version]
  6. Sheng, J.; Wan, S.; Sun, Y.; Dou, R.; Guo, Y.; Wei, K.; He, K.; Qin, J.; Gao, J.H. Magnetoencephalography with a Cs-based high-sensitivity compact atomic magnetometer. Rev. Sci. Instrum. 2017, 88, 094304. [Google Scholar] [CrossRef] [PubMed]
  7. Chen, Y.; Chen, Y.; Zhao, L.; Zhang, N.; Yu, M.; Ma, Y.; Han, X.; Zhao, M.; Lin, Q.; Yang, P.; et al. Single beam Cs-Ne SERF atomic magnetometer with the laser power differential method. Opt. Express 2022, 30, 16541–16552. [Google Scholar] [CrossRef]
  8. Fang, J.; Li, R.; Duan, L.; Chen, Y.; Quan, W. Study of the operation temperature in the spin-exchange relaxation free magnetometer. Rev. Sci. Instrum. 2015, 86, 73116. [Google Scholar] [CrossRef]
  9. Li, Q.; Zhang, J.; Li, L.; Zeng, X.; Sun, W. The effects of phase retardation of wave plate on cesium magnetometer sensitivity. Proc. Appl. Mech. Mater. 2012, 203, 263–267. [Google Scholar] [CrossRef]
  10. Castagna, N.; Weis, A. Measurement of longitudinal and transverse spin relaxation rates using the ground-state Hanle effect. Phys. Rev. At. Mol. Opt. Phys. 2011, 84, 1–11. [Google Scholar] [CrossRef] [Green Version]
  11. Recknagel, F. Applications of machine learning to ecological modelling. Ecol. Model. 2001, 146, 303–310. [Google Scholar] [CrossRef]
  12. Rajkomar, A.; Dean, J.; Kohane, I. Machine Learning in Medicine. N. Engl. J. Med. 2019, 380, 1347–1358. [Google Scholar] [CrossRef] [PubMed]
  13. Chen, J.; Wu, Z.; Bao, G.; Chen, L.Q.; Zhang, W. Design of coaxial coils using hybrid machine learning. Rev. Sci. Instrum. 2021, 92, 045103. [Google Scholar] [CrossRef] [PubMed]
  14. Horvitz, E.; Mulligan, D. Data, privacy, and the greater good. Science 2015, 349, 253–255. [Google Scholar] [CrossRef] [PubMed]
  15. Deans, C.; Griffin, L.D.; Marmugi, L.; Renzoni, F. Machine Learning Based Localization and Classification with Atomic Magnetometers. Phys. Rev. Lett. 2018, 120, 033204. [Google Scholar] [CrossRef]
  16. Meng, X.; Zhang, Y.; Zhang, X.; Jin, S.; Wang, T.; Jiang, L.; Xiao, L.; Jia, S.; Xiao, Y. Machine Learning Assisted Vector Atomic Magnetometry. arXiv 2022, arXiv:2301.05707. [Google Scholar]
  17. Carleo, G.; Troyer, M. Solving the quantum many-body problem with artificial neural networks. Science 2017, 355, 602–606. [Google Scholar] [CrossRef] [Green Version]
  18. Seif, A.; Landsman, K.A.; Linke, N.M.; Figgatt, C.; Monroe, C.; Hafezi, M. Machine learning assisted readout of trapped-ion qubits. J. Phys. At. Mol. Opt. Phys. 2018, 51, 174006. [Google Scholar] [CrossRef] [Green Version]
  19. Nakamura, I.; Kanemura, A.; Nakaso, T.; Yamamoto, R.; Fukuhara, T. Non-standard trajectories found by machine learning for evaporative cooling of 87 Rb atoms. Opt. Express 2019, 27, 20435. [Google Scholar] [CrossRef]
  20. Wigley, P.B.; Everitt, P.J.; Van Den Hengel, A.; Bastian, J.W.; Sooriyabandara, M.A.; Mcdonald, G.D.; Hardman, K.S.; Quinlivan, C.D.; Manju, P.; Kuhn, C.C.; et al. Fast machine-learning online optimization of ultra-cold-atom experiments. Sci. Rep. 2016, 6, 25890. [Google Scholar] [CrossRef] [Green Version]
  21. Tranter, A.D.; Slatyer, H.J.; Hush, M.R.; Leung, A.C.; Everett, J.L.; Paul, K.V.; Vernaz-Gris, P.; Lam, P.K.; Buchler, B.C.; Campbell, G.T. Multiparameter optimisation of a magneto-optical trap using deep learning. Nat. Commun. 2018, 9, 00654. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  22. Wu, Y.; Meng, Z.; Wen, K.; Mi, C.; Zhang, J.; Zhai, H. Active Learning Approach to Optimization of Experimental Control. Chin. Phys. Lett. 2020, 37, 11804. [Google Scholar] [CrossRef]
  23. Barker, A.J.; Style, H.; Luksch, K.; Sunami, S.; Garrick, D.; Hill, F.; Foot, C.J.; Bentine, E. Applying machine learning optimization methods to the production of a quantum gas. Mach. Learn. Sci. Technol. 2020, 1, 015007. [Google Scholar] [CrossRef]
  24. Shah, V.; Knappe, S.; Schwindt, P.D.; Kitching, J. Subpicotesla atomic magnetometry with a microfabricated vapour cell. Nat. Photonics 2007, 1, 649–652. [Google Scholar] [CrossRef]
  25. Dyer, S.; Griffin, P.F.; Arnold, A.S.; Mirando, F.; Burt, D.P.; Riis, E.; Mcgilligan, J.P. Micro-machined deep silicon atomic vapor cells. J. Appl. Phys. 2022, 132, 134401. [Google Scholar] [CrossRef]
  26. Dawson, R.; O’Dwyer, C.; Mrozowski, M.S.; Irwin, E.; McGilligan, J.P.; Burt, D.P.; Hunter, D.; Ingleby, S.; Griffin, P.F.; Riis, E. A Portable Single-Beam Caesium Zero-Field Magnetometer for Biomagnetic Sensing. arXiv 2023, arXiv:2303.15974. [Google Scholar]
  27. Mrozowski, M.S.; Chalmers, I.C.; Ingleby, S.J.; Griffin, P.F.; Riis, E. Ultra-low noise, bi-polar, programmable current sources. Rev. Sci. Instrum. 2023, 94, 1–9. [Google Scholar] [CrossRef]
  28. Zetter, R.; Mäkinen, A.J.; Iivanainen, J.; Zevenhoven, K.C.J.; Ilmoniemi, R.J.; Parkkonen, L. Magnetic field modeling with surface currents. Part II. Implementation and usage of bfieldtools. J. Appl. Phys. 2020, 128, 063905. [Google Scholar] [CrossRef]
  29. lMakinen, A.J.; Zetter, R.; Iivanainen, J.; Zevenhoven, K.C.J.; Parkkonen, L.; Ilmoniemi, R.J. Magnetic-field modeling with surface currents. Part I. Physical and computational principles of bfieldtools. J. Appl. Phys. 2020, 128, 063906. [Google Scholar] [CrossRef]
  30. Breschi, E.; Weis, A. Ground-state Hanle effect based on atomic alignment. Phys. Rev. A 2012, 86, 053427. [Google Scholar] [CrossRef] [Green Version]
  31. Siddique, N.; Adeli, H. Nature Inspired Computing: An Overview and Some Future Directions. Cogn. Comput. 2015, 7, 706–714. [Google Scholar] [CrossRef] [Green Version]
  32. Slowik, A.; Kwasnicka, H. Evolutionary algorithms and their applications to engineering problems. Neural Comput. Appl. 2020, 32, 12363–12379. [Google Scholar] [CrossRef] [Green Version]
  33. Ruder, S. An overview of gradient descent optimization algorithms. arXiv 2016, arXiv:1609.04747. [Google Scholar]
  34. Darken, C.; Chang, J.; Moody, J. Original appears in Neural Networks for Signal Processing 2. In Proceedings of the 1992 IEEE Workshop, Seattle, WA, USA, 15–18 September 1992. [Google Scholar]
  35. Sweke, R.; Wilde, F.; Meyer, J.J.; Schuld, M.; Fährmann, P.K.; Meynard-Piganeau, B.; Eisert, J. Stochastic gradient descent for hybrid quantum-classical optimization. Quantum 2020, 4, 01155. [Google Scholar] [CrossRef]
  36. Khaneja, N.; Reiss, T.; Kehlet, C.; Schulte-Herbrüggen, T.; Glaser, S.J. Optimal control of coupled spin dynamics: Design of NMR pulse sequences by gradient ascent algorithms. J. Magn. Reson. 2005, 172, 296–305. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  37. Seltzer, S.J. Developments in alkali-metal atomic magnetometry. Ph.D. Thesis, Princeton University, Princeton, NJ, USA, 2008. [Google Scholar]
  38. Yin, Y.; Zhou, B.; Wang, Y.; Ye, M.; Ning, X.; Han, B.; Fang, J. The influence of modulated magnetic field on light absorption in SERF atomic magnetometer. Rev. Sci. Instrum. 2022, 93, 13001. [Google Scholar] [CrossRef]
Figure 1. Experimental setup. Elliptically polarised light from a distributed Bragg reflector (DBR) laser close to the F = 4 F = 3 hyperfine transition of the Cs D 1 line is fibre-coupled to pass through a micro-fabricated atomic vapour cell [25,26] filled with a saturated vapour of Cs and 211 Torr of nitrogen buffer gas. The cell is heated through resistive heating by square-wave modulated current provided by a custom high efficiency heater driver. Three pairs of biplanar coils, B x , B y , B z , control the static magnetic field along each axis, and an additional modulation coil, B R F , allows the application of an oscillating field along the y-axis. The static field coils are driven using a custom low-noise current driver [27]. The photodetector (PD) measures light transmitted through the vapour cell. A low nT-level magnetic field environment is provided by a 5-layer μ -metal shield. λ / 4 , quarter waveplate; Cs, caesium vapour cell; ADC, analog-to-digital converter; DAC, digital-to-analog converter.
Figure 1. Experimental setup. Elliptically polarised light from a distributed Bragg reflector (DBR) laser close to the F = 4 F = 3 hyperfine transition of the Cs D 1 line is fibre-coupled to pass through a micro-fabricated atomic vapour cell [25,26] filled with a saturated vapour of Cs and 211 Torr of nitrogen buffer gas. The cell is heated through resistive heating by square-wave modulated current provided by a custom high efficiency heater driver. Three pairs of biplanar coils, B x , B y , B z , control the static magnetic field along each axis, and an additional modulation coil, B R F , allows the application of an oscillating field along the y-axis. The static field coils are driven using a custom low-noise current driver [27]. The photodetector (PD) measures light transmitted through the vapour cell. A low nT-level magnetic field environment is provided by a 5-layer μ -metal shield. λ / 4 , quarter waveplate; Cs, caesium vapour cell; ADC, analog-to-digital converter; DAC, digital-to-analog converter.
Sensors 23 04007 g001
Figure 2. (a) (top), Hanle resonances, showing transmission, A, across the transverse axis as a function of longitudinal magnetic field; far detuned from zero-field (light line) to zero field, B z 0 (darkest line). (a) (bottom), Hanle resonances, showing transmission, A, across the longitudinal axis as a function of the transverse magnetic field; far detuned from zero-field (light line) to zero field, B x 0 or B y 0 (darkest line). (b), Hanle resonances across two axes. The transverse and longitudinal magnetic fields, B x & B z , are swept across the x- and z-axes to generate a 2D landscape of the Hanle resonance. Colour indicates the measured light transmission amplitude (A) on the photodetector, normalised with respect to the maximum (1) and minimum (0) transmission. (c), modulation of the magnetic field is applied across the y-axis as the transverse field, B y , is swept from B y M I N to B y M A X . The resultant photodiode signal is demodulated and the demodulated amplitude with respect to ( B y ) is shown by the black solid line, the linear sensing region is shown by the red dashed line.
Figure 2. (a) (top), Hanle resonances, showing transmission, A, across the transverse axis as a function of longitudinal magnetic field; far detuned from zero-field (light line) to zero field, B z 0 (darkest line). (a) (bottom), Hanle resonances, showing transmission, A, across the longitudinal axis as a function of the transverse magnetic field; far detuned from zero-field (light line) to zero field, B x 0 or B y 0 (darkest line). (b), Hanle resonances across two axes. The transverse and longitudinal magnetic fields, B x & B z , are swept across the x- and z-axes to generate a 2D landscape of the Hanle resonance. Colour indicates the measured light transmission amplitude (A) on the photodetector, normalised with respect to the maximum (1) and minimum (0) transmission. (c), modulation of the magnetic field is applied across the y-axis as the transverse field, B y , is swept from B y M I N to B y M A X . The resultant photodiode signal is demodulated and the demodulated amplitude with respect to ( B y ) is shown by the black solid line, the linear sensing region is shown by the red dashed line.
Sensors 23 04007 g002
Figure 3. Two evolutionary algorithm processes. (a,b) share evolutionary elements of initial population formation, selection, crossover and mutation. For both algorithms, the initial population X ( t ) contains a population of N sets of parameter settings. The colour indicates each set of parameter settings. t, generation or loop number; t = t + 1 , the next generation; and C ( t ) , measured cost. Both algorithms repeat until the end condition is met, where the number of sets of parameters tested N is equal to 250 ( N e n d ). (a) Genetic algorithm (GA) process. The initial population is generated and evaluated for cost, with individual costs denoted as C i . N 2 parameter sets are selected for the next generation based on ranked cost. The best performing N 2 are used as “parents” to produce “children” sets during crossover with respect to the crossover point. Mutation of individual parameter values randomly occurs in the new population. (b) Differential evolution (DE) process. The initial population is generated and evaluated for cost where three random sets X a , X b  &  X c and a target set X T are selected. A new set V is created during mutation from the randomly selected sets, and used in a crossover with the target set to make a new set Q. C Q , the cost of Q, is evaluated and measured against C T , the cost of the target set. The target set is replaced in a new generation if C Q > C T (for C 1 ) or C Q < C T (for C 2 ).
Figure 3. Two evolutionary algorithm processes. (a,b) share evolutionary elements of initial population formation, selection, crossover and mutation. For both algorithms, the initial population X ( t ) contains a population of N sets of parameter settings. The colour indicates each set of parameter settings. t, generation or loop number; t = t + 1 , the next generation; and C ( t ) , measured cost. Both algorithms repeat until the end condition is met, where the number of sets of parameters tested N is equal to 250 ( N e n d ). (a) Genetic algorithm (GA) process. The initial population is generated and evaluated for cost, with individual costs denoted as C i . N 2 parameter sets are selected for the next generation based on ranked cost. The best performing N 2 are used as “parents” to produce “children” sets during crossover with respect to the crossover point. Mutation of individual parameter values randomly occurs in the new population. (b) Differential evolution (DE) process. The initial population is generated and evaluated for cost where three random sets X a , X b  &  X c and a target set X T are selected. A new set V is created during mutation from the randomly selected sets, and used in a crossover with the target set to make a new set Q. C Q , the cost of Q, is evaluated and measured against C T , the cost of the target set. The target set is replaced in a new generation if C Q > C T (for C 1 ) or C Q < C T (for C 2 ).
Sensors 23 04007 g003
Figure 4. Gradient ascent algorithm process. x ( i ) , a vector value for a single parameter x i ranging from minimum x i m i n to maximum x i m a x as defined by parameter space range. i, the individual parameter selected. Initially, the first parameter is selected for the first batch i = 1 . All other parameters are kept constant. The batch is evaluated based on cost, indicated in green, to find where the gradient tends to zero, C ( ρ ) x 0 indicated in red. The corresponding parameter value x o p t is then set for this parameter for the next batch, i = i + 1 . This continues until all parameters are used as batches, for a total number of parameters M. The segmented graph shows this process as a function of the run number. This process in turn repeats until the end condition is met, where the number of sets of parameters tested N is equal to 250 ( N e n d ).
Figure 4. Gradient ascent algorithm process. x ( i ) , a vector value for a single parameter x i ranging from minimum x i m i n to maximum x i m a x as defined by parameter space range. i, the individual parameter selected. Initially, the first parameter is selected for the first batch i = 1 . All other parameters are kept constant. The batch is evaluated based on cost, indicated in green, to find where the gradient tends to zero, C ( ρ ) x 0 indicated in red. The corresponding parameter value x o p t is then set for this parameter for the next batch, i = i + 1 . This continues until all parameters are used as batches, for a total number of parameters M. The segmented graph shows this process as a function of the run number. This process in turn repeats until the end condition is met, where the number of sets of parameters tested N is equal to 250 ( N e n d ).
Sensors 23 04007 g004
Figure 5. All figure parts contain the following optimisation techniques, gradient descent algorithm in green, genetic algorithm in blue and Gaussian process regression model in pink. M, the number of parameters optimised. Row 1 & 3, (ac,gi), optimisation of 3 parameters ( M = 3 ). Row 2 & 4, (df,jl) optimisation of 5 parameters ( M = 5 ). Row 1 & 2, (af), optimise for maximising cost function C 1 the demodulated line shape gradient (mV/nT). Row 3 & 4, (gl), optimise for minimising cost function C 2 , calculated sensitivity ( T / Hz ). Column 1 “Optimisation”, (a,d,g,j), show Cost function as a function of run number. The solid line indicates the moving maximum per optimisation technique. Column 2 “Sensitivity”, (b,e,h,k), shows corresponding FFT for the optimal parameters found per optimisation technique. Sensitivity is shown as a function frequency (Hz), raw data are shown by solid lines. The frequency band of interest (5 to 20 Hz) is highlighted in grey. Averaged sensitivity in this band is shown by the dashed line (value represented in the key). Column 3, “Demodulation”, (c,f,i,l), shows a corresponding demodulated line shape for the optimal parameters found per optimisation technique.
Figure 5. All figure parts contain the following optimisation techniques, gradient descent algorithm in green, genetic algorithm in blue and Gaussian process regression model in pink. M, the number of parameters optimised. Row 1 & 3, (ac,gi), optimisation of 3 parameters ( M = 3 ). Row 2 & 4, (df,jl) optimisation of 5 parameters ( M = 5 ). Row 1 & 2, (af), optimise for maximising cost function C 1 the demodulated line shape gradient (mV/nT). Row 3 & 4, (gl), optimise for minimising cost function C 2 , calculated sensitivity ( T / Hz ). Column 1 “Optimisation”, (a,d,g,j), show Cost function as a function of run number. The solid line indicates the moving maximum per optimisation technique. Column 2 “Sensitivity”, (b,e,h,k), shows corresponding FFT for the optimal parameters found per optimisation technique. Sensitivity is shown as a function frequency (Hz), raw data are shown by solid lines. The frequency band of interest (5 to 20 Hz) is highlighted in grey. Averaged sensitivity in this band is shown by the dashed line (value represented in the key). Column 3, “Demodulation”, (c,f,i,l), shows a corresponding demodulated line shape for the optimal parameters found per optimisation technique.
Sensors 23 04007 g005
Figure 6. Data and models resulting from the Gaussian process regression model MLA, from a 5 parameter optimisation scheme ( M = 5 ). The 5 parameters optimised are cell temperature (T), laser power (LP), laser detuning (LD), modulation amplitude factor ( A M o d ) and modulation frequency factor ( F M o d ). Each part shows a parameter as a function of the cost. Row 1, (ae), shows optimisation for cost function C 1 , the demodulated line shape gradient (mV/nT). Row 2, (fj) optimisation for cost function C 2 , calculated sensitivity ( T / Hz ). Marks indicate measured values from optimisation, solid line indicates the Gaussian process predicted cost-landscape and shaded region indicates the model provided 95 % confidence interval of the cost-landscape.
Figure 6. Data and models resulting from the Gaussian process regression model MLA, from a 5 parameter optimisation scheme ( M = 5 ). The 5 parameters optimised are cell temperature (T), laser power (LP), laser detuning (LD), modulation amplitude factor ( A M o d ) and modulation frequency factor ( F M o d ). Each part shows a parameter as a function of the cost. Row 1, (ae), shows optimisation for cost function C 1 , the demodulated line shape gradient (mV/nT). Row 2, (fj) optimisation for cost function C 2 , calculated sensitivity ( T / Hz ). Marks indicate measured values from optimisation, solid line indicates the Gaussian process predicted cost-landscape and shaded region indicates the model provided 95 % confidence interval of the cost-landscape.
Sensors 23 04007 g006
Table 1. Definition of all controlled parameters (p) used for optimisation, with corresponding units. Min (p), the minimum value for each parameter. Max (p), the maximum value for each parameter. Default (p), chosen default value if parameter is not directly optimised during optimisation.
Table 1. Definition of all controlled parameters (p) used for optimisation, with corresponding units. Min (p), the minimum value for each parameter. Max (p), the maximum value for each parameter. Default (p), chosen default value if parameter is not directly optimised during optimisation.
ParameterMin (p)Max (p)Default (p)Unit
Temperature115140- C
Laser Power0.56-mW
Laser Detuning−2020-GHz
A M o d 0.21.50.5dimensionless
F M o d 0.21.51dimensionless
Table 2. Optimal parameters found for the following optimisation techniques, Genetic Algorithm (GA), Gradient Descent algorithm (GD) and Gaussian process (GP). The number of parameters tested, M, is specified for each optimisation run. T, cell temperature ( C ). LP, laser power (mW). LD, laser detuning (GHz). A M o d , modulation amplitude factor (dimensionless). F M o d , modulation frequency factor (dimensionless). m i , modulation index (dimensionless). C ( ρ ) defines the cost function implemented. C 1 is the demodulated lineshape gradient (mV/nT), with uncertainty taken as the geometric standard deviation across the frequency band of interest. C 2 is the calculated sensitivity ( fT / Hz ), with uncertainty taken as the linear fitting error across demodulated linear region. Γ is the full-width at half-maximum (FWHM) of the magnetic resonance (nT), with uncertainty taken as the fit error to Equation (2). Values in grey indicate parameters that were not optimised during operation.
Table 2. Optimal parameters found for the following optimisation techniques, Genetic Algorithm (GA), Gradient Descent algorithm (GD) and Gaussian process (GP). The number of parameters tested, M, is specified for each optimisation run. T, cell temperature ( C ). LP, laser power (mW). LD, laser detuning (GHz). A M o d , modulation amplitude factor (dimensionless). F M o d , modulation frequency factor (dimensionless). m i , modulation index (dimensionless). C ( ρ ) defines the cost function implemented. C 1 is the demodulated lineshape gradient (mV/nT), with uncertainty taken as the geometric standard deviation across the frequency band of interest. C 2 is the calculated sensitivity ( fT / Hz ), with uncertainty taken as the linear fitting error across demodulated linear region. Γ is the full-width at half-maximum (FWHM) of the magnetic resonance (nT), with uncertainty taken as the fit error to Equation (2). Values in grey indicate parameters that were not optimised during operation.
MLAM C ( ρ ) C 1 C 2 Γ TLDLP A Mod F Mod m i
GD3 C 1 2.82 ± 0.03158.62 ± 1.3132.51 ± 1.5119.418.246.000.501.000.55
GA3 C 1 2.59 ± 0.02182.39 ± 1.4183.27 ± 2.1115.003.005.350.501.000.55
GP3 C 1 3.50 ± 0.03143.40 ± 1.2168.83 ± 1.6115.008.006.000.501.000.55
GD5 C 1 4.04 ± 0.02150.24 ± 1.5130.06 ± 2.1118.8510.775.581.500.305.51
GA5 C 1 4.23 ± 0.02157.62 ± 1.3  98.81 ± 2.0123.007.005.321.480.394.21
GP5 C 1 4.75 ± 0.03136.30 ± 1.2147.36 ± 1.2120.136.226.001.500.217.82
GD3 C 2 2.10 ± 0.02148.28 ± 1.3143.36 ± 2.5117.945.885.350.501.000.55
GA3 C 2 2.35 ± 0.02152.30 ± 1.3136.66 ± 1.3119.004.004.660.501.000.55
GP3 C 2 2.31 ± 0.02177.40 ± 1.3192.81 ± 1.6115.013.495.570.501.000.55
GD5 C 2 2.22 ± 0.03109.59 ± 1.3137.70 ± 1.6118.857.695.580.700.800.96
GA5 C 2 1.95 ± 0.02119.76 ± 1.2111.05 ± 2.1121.007.005.240.971.150.93
GP5 C 2 3.65 ± 0.02154.81 ± 1.2203.05 ± 1.6115.003.005.501.091.001.20
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Dawson, R.; O’Dwyer, C.; Irwin, E.; Mrozowski, M.S.; Hunter, D.; Ingleby, S.; Riis, E.; Griffin, P.F. Automated Machine Learning Strategies for Multi-Parameter Optimisation of a Caesium-Based Portable Zero-Field Magnetometer. Sensors 2023, 23, 4007. https://doi.org/10.3390/s23084007

AMA Style

Dawson R, O’Dwyer C, Irwin E, Mrozowski MS, Hunter D, Ingleby S, Riis E, Griffin PF. Automated Machine Learning Strategies for Multi-Parameter Optimisation of a Caesium-Based Portable Zero-Field Magnetometer. Sensors. 2023; 23(8):4007. https://doi.org/10.3390/s23084007

Chicago/Turabian Style

Dawson, Rach, Carolyn O’Dwyer, Edward Irwin, Marcin S. Mrozowski, Dominic Hunter, Stuart Ingleby, Erling Riis, and Paul F. Griffin. 2023. "Automated Machine Learning Strategies for Multi-Parameter Optimisation of a Caesium-Based Portable Zero-Field Magnetometer" Sensors 23, no. 8: 4007. https://doi.org/10.3390/s23084007

APA Style

Dawson, R., O’Dwyer, C., Irwin, E., Mrozowski, M. S., Hunter, D., Ingleby, S., Riis, E., & Griffin, P. F. (2023). Automated Machine Learning Strategies for Multi-Parameter Optimisation of a Caesium-Based Portable Zero-Field Magnetometer. Sensors, 23(8), 4007. https://doi.org/10.3390/s23084007

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop