Abstract
The number of patients with active implantable medical devices continues to rise in the United States and around the world. It is estimated that 50-75% of patients with conductive implants will need magnetic resonance imaging (MRI) in their lifetime. A major risk of performing MRI in patients with elongated conductive implants is the radiofrequency (RF) heating of the tissue surrounding the implant’s tip due to the antenna effect. Currently, applying full-wave electromagnetic simulation is the standard way to predict the interaction of MRI RF fields with the human body in the presence of conductive implants; however, these simulations are notoriously extensive in terms of memory requirement and computational time. Here we present a proof-of-concept simulation study to demonstrate the feasibility of applying machine learning to predict MRI-induced power deposition in the tissue surrounding conductive wires. We generated 600 clinically relevant trajectories of leads as observed in patients with cardiac conductive implants and trained a feedforward neural network to predict the 1g-averaged SAR at the lead tips knowing only the background field of MRI RF coil and coordinates of points along the lead trajectory. Training of the network was completed in 11.54 seconds and predictions were made within a second with R2 = 0.87 and Root Mean Squared Error (RMSE) = 14.5 W/kg. Our results suggest that machine learning could provide a promising approach for safety assessment of MRI in patients with conductive leads.
I. Introduction
Magnetic resonance imaging (MRI) expanding rapidly in the indications for a wide variety of neurological, cardiac, and musculoskeletal diseases thanks to its non-invasive properties and unrivaled soft tissue contrast. However, MRI is not easily accessible to a sizeable cohort of patients with conductive medical implants, like the cardiovascular implantable electronic devices (CIEDs) or deep brain stimulation (DBS) systems. The major safety hazard of MRI in patients with CIEDs or DBS systems is due to the antenna effect, where the electric field of MRI scanner couples with implanted leads and amplifies the specific absorption rate (SAR) of radiofrequency energy in the tissue surrounding the tip of implanted lead [1-4]. Full-wave electromagnetic simulations are routinely applied to characterize the interaction of MRI RF fields with the human body in the presence of conductive implants to quantify RF heating of the implant while accounting for effects of MRI coil’s geometry [5-11], implant’s structure, material and trajectory [12, 13], as well as patient’s body composition [14]. These simulations, however, are notoriously cumbersome in terms of computational time and memory requirements: even taking advantage of today’s high-power computing clusters, it typically takes tens of hours to complete a single simulation scenario with enough degrees of complexity to provide good agreement with physical measurements [15].
Novel machine learning methods have been recently proposed as a paradigm shift in the assessment of MRI RF heating. Pioneering work by Chen group has shown that neural networks can predict the worst-case heating of orthopedic fixation plates in MRI environment when only the knowledge of implant’s geometrical features is at hand [16, 17]. In their work, however, the implant’s position was predetermined within the MRI RF coil and thus, the effect of variation in electric field exposure due to changes in implant’s location and orientation was not investigated. This is particularly important in the assessment of RF heating of elongated conductive implants, such as leads in CIEDs, as lead’s trajectory within the human body and its orientation with respect to MRI RF fields substantially affect RF heating [10, 11, 18-20].
In this work, we investigated whether neural networks could predict the 1g-averaged SAR at tips of implanted leads in a human body phantom exposed to MRI RF radiation at 63.6 MHz (proton imaging at 1.5 T). We created lead models with clinically relevant trajectories and positions corresponding to what is observed in patients with cardiac pacemakers. We then trained a feedforward neural network to predict the maximum of 1g-averaged SAR in the tissue surrounding the tip of the lead directly from coordinates of points along the lead trajectory. The performance of the network is discussed with regard to different trajectories.
II. METHODS
A. Design of Lead Trajectories
We generated 600 clinically relevant lead trajectories based on the evaluation of thoracic X-ray photographs of patients with cardiac pacemakers and defibrillators. From these, 300 trajectories corresponded to cases where the implanted pulse generator (IPG) was in the left pectoral region and 300 trajectories corresponded to the IPG in the right pectoral region. All trajectories were 58 cm long, similar to typical active fixation leads (Medtronic 5076, Medtronic 4076) and passive fixation leads (Medtronic 4074) for cardiac pacing [21]. Lead trajectories were generated in Rhino3D® (Robert McNeal and Associates, Seattle, WA) using the Grasshopper module. ANSYS human body model (ANSYS Human Body Model V3, accessed 2020) [22] was used for anatomical guidance. We designed trajectories starting from the assumptive position of IPG in left or right pectoral region and followed a path through the subclavian vein or superior vena cava to the heart. To generalize the model for different body forms, the size of the heart was enlarged by 50%. From our inspection of patients’ radiographic images, as well as reports from other groups [18], we found that the lead trajectories in large veins had subtle differences whereas the distal part in the pectoral regions and the position of the lead tips had significant variation, virtually covering the entire heart. These guidelines were incorporated in the algorithm that generated lead trajectories as can be observed in Fig. 1.
Figure 1.
Example of X-ray photograph of a patient with CIED overlaid on ANSYS human body model and manual trajectories with IPGs on right (A) as well as left (B).
B. Numerical Modeling
Finite element simulations (Fig. 2) were performed to calculate the local SAR at tips of implanted lead models during MRI RF exposure using ANSYS Electronics Desktop 2019 R2 (ANSYS, Canonsburg, Pennsylvania, USA). A model of a low-pass 16-rung birdcage coil (diameter = 714 mm, length = 470 mm) was created and tuned to its resonance frequency at 63.6 MHz corresponding to proton imaging at 1.5 T. The coil was loaded with a homogeneous human body model (ANSYS Human Body Model V3, accessed 2020) with electric properties of average tissue (σ = 0.47 s/m, ϵr = 80). Lead trajectories were imported from Rhino3D and modeled as 90%:10% platinum-iridium wires (Pt:Ir, σ = 4 × 106 s/m, diameter = 1 mm) wrapped within urethane insulation (ϵ = 3.5, diameter = 2 mm) with 2 mm exposed tip. To increase the accuracy of numerical simulations around the lead’s tip, we defined a 20 × 20 × 20 mm3 cubic region in which we assigned a fine mesh resolution (RMS element length = 1.57 mm). The input power of the coil was adjusted such that the spatial mean of on a transverse plane passing through the center of the coil was 2 μT. The maximum of 1g-averaged SAR (MaxSAR1g) within the high-resolution mesh region surrounding the tip was calculated with the HFSS built-in SAR module and used as the ground truth to train the neural network.
Figure 2.
(A) Simulation setup in ANSYS HFSS showing homogeneous body model and MRI RF coil. The heart is shown to visualize the position of distal parts of leads and was not included in FEM simulations (B) Overlay of 600 trajectories in the body model (C) 1g-averaged SAR on a central axial plane within the 20 × 20× 20 mm3 cube surrounding the exposed lead’s tip.
C. Feedforward Neural Network Architecture
The total data for 600 trajectories was divided into training set (64%), validation set (16%) and testing set (20%). A feedforward neural network was designed, which contained one input layer, five hidden layers with dropouts and one output layer. The x, y, z coordinates of 116 points sampled along the length of each lead were first concatenated to 348 × 1 from 116 × 3 as the input of the neural network. The output would be the prediction of MaxSAR1g in the cubic region surrounding the lead’s tip. Fully connected hidden layers activated by ReLU function were used to learn the nonlinear relationship between lead coordinates and MaxSAR1g. To reduce overfitting and improve generalization error [23], a dropout was introduced for each hidden layer. Finally, the output layer linearly regressed the predicted MaxSAR1g as one scaler.
Hyperparameters including the number of neurons, learning rate, and dropout rate were tuned by Ray Tune— a Python library that accelerates hyperparameter tuning with parallelized computing. The search algorithm was Bayesian Optimization and Hyperband (BOHB), an algorithm that combines Hyperband with Bayesian optimization and is dominant in both efficiency and performance [24]. As a result, the number of neurons of five hidden layers were optimized to 256, 128, 128, 128 and 16 respectively (Fig. 3).
Figure 3.
(A) Concatenation of 3D coordinate. (B) Structure of feedforward neural network; Wi and bi represent weight and bias matrices for each layer; @ is followed by the number of neurons of every layer.
III. RESULTS
A. Simulation Results: Convergence
ANSYS HFSS followed an adaptive mesh scheme where an initial mesh with a user-defined resolution (20 mm in human body, 2 mm in cubic region, 2 mm in lead’s insulation, 0.5 mm on lead’s wire, and 10 mm on the coil) was seeded. Mesh resolution was enhanced at each adaptive pass until the maximum difference between iterative scattering parameters fell below a predefined threshold of 0.02. All 600 simulations converged within 3 adaptive passes. Table 1 gives the mesh statistics for a representative simulation. Each simulation took around 90 minutes to complete on a DELL PowerEdge R740 server with 1.5 TB memory and 2xXenon(R) Gold 6140 CPUs each having 18 processing cores.
TABLE I.
Mesh statistics for a representative simulation
Parts | Num of Tets |
Min edge length (mm) |
Max edge length (mm) |
RMS edge length (mm) |
---|---|---|---|---|
Human body | 276366 | 0.30 | 26.68 | 12.62 |
Cubic region | 40625 | 0.19 | 2.46 | 1.57 |
Insulation | 369495 | 0.11 | 2.00 | 0.58 |
Wire | 208258 | 0.03 | 1.23 | 0.42 |
Coil | 38706 | 9.84 | 501.79 | 64.35 |
B. Simulation Results: SAR Distribution
Fig. 4 gives the distribution of the normalized MaxSAR1g values for trajectories with IPGs in right and left pectoral regions. MaxSAR1g was 48.67 ± 14.49 W/kg and 113.97 ± 32.28 W/kg for trajectories with IPG in right and left pectoral regions respectively. A one-tail t-test showed the MaxSAR1g of trajectories with IPG in left side to be significantly greater ( p = 3 × 10−114 ) than SAR of trajectories with IPG in the right pectoral region.
Figure 4.
Distribution of Simulated 1g-averaged SAR with IPGs in right as well as in left pectoral regions. Circles indicate the mean values.
C. Neural Networks based SAR predictions
Mean squared error (MSE) was chosen to be the optimization target during training. Both training and validation losses substantially decreased within 100 epochs and converged to ~ 380 W2/kg2 after 700 epochs (Fig. 5). After that, the network started to overfit the training data as the gap between validation loss and training loss increased. Therefore, the number of epochs for training was set to 700. On the test dataset, the Root Mean Squared Error (RMSE) is 14.5 W/kg, for trajectories with IPGs in right and left pectoral regions were 9.2 W/kg and 18.3 W/kg respectively.
Figure 5.
Training loss and validation loss with increasing epochs
Fig. 6 shows the comparison of simulated and predicted MaxSAR1g resulting a relatively high R2 score of 0.87. The feedforward network performed better in predicting the heating of trajectories with IPGs in right than that in left, but the latter still maintained enough linearity in a wider SAR range with few outlier predictions.
Figure 6.
Performance of the feedforward neural network with predicted 1g-averaged SAR vs simulated 1g-averaged SAR. The coefficient of determination (R2) was relatively high (equals to 0.87).
IV. Discussion and Conclusion
MRI is refuted to a sizeable cohort of patients with conductive implants because of its safety hazards according to the RF-induced heating of tissue surrounding the implant. Pre-assessment of heating is essential to determine the risk/benefit ratio of MRI exams in these patients and is typically performed through phantom experiments or full-wave electromagnetic simulations both of which being substantially time-consuming. Machine learning has been recently proposed as a promising tool for fast screening and determination of worst-case heating scenarios of orthopedic implants in MRI enviromnent [16, 17]. Here we report results of a proof-of-concept simulation study to assess the applicability of machine learning to predict RF heating of elongated implants, such as leads in active electronic devices, during MRI at 1.5 T. We tested the hypothesis that a feedforward neural network could be trained to predict the local SAR at tips of implanted leads when only the knowledge of lead’s trajectory within the MRI RF coil and the features of RF coil are at hand. We created clinically relevant lead trajectories analogous to what is observed in patients with cardiac pacemakers/defibrillators to support neural network training. A simple six-layer feedforward neural network with hyperparameters tuned by Ray Tune was shown to be effective in this heat-predicting task as it resulted in a high R2 score of 0.87 and the RMSE of 14.5 W/kg on the testing set.
Classification tasks of neural networks on MRI safety topics are the future focus. Besides, only typical 58 cm leads were experimented. For more general-purpose, the performance of neural networks with leads in different lengths and number of sample points need to be discussed further.
Clinical Relevance.
Machine learning can potentially allow real-time assessment of MRI RF safety in patients with conductive leads when only the knowledge of lead’s trajectory (image-based) and MRI RF coil features (vendor-specific) are in hand.
Acknowledgment
This work was supported by NIH funding with grants R00EB021320 and R01EB030324.
Research supported by National Institute of Health grants R00EB021320 and R03EB025344.
Contributor Information
Can Zheng, Department of Electrical Engineering, Northwestern University, Evanston, IL 60208 USA..
Xinlu Chen, Department of Electrical Engineering, Northwestern University, Evanston, IL 60208 USA..
Bach T. Nguyen, Department of Radiology, Northwestern University Chicago, IL 60611 USA.
Pia Sanpitak, Department of Biomedical Engineering, Northwestern University, Evanston, IL, 60608 USA..
Jasmine Vu, Department of Radiology, Northwestern University Chicago, IL 60611 USA..
Ulas Bagci, Department of Radiology, Northwestern University Chicago, IL 60611 USA..
Laleh Golestanirad, Department of Radiology and Department of Biomedical Engineering, Northwestern University, Chicago, IL, 60611 USA.
References
- [1].Golestanirad L et al. , "RF heating of deep brain stimulation implants in open-bore vertical MRI systems: A simulation study with realistic device configurations," (in eng), Magn Reson Med, vol. 83, no. 6, pp. 2284–2292, Jun 2020, doi: 10.1002/mrm.28049. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [2].Golestanirad L et al. , "Changes in the specific absorption rate (SAR) of radiofrequency energy in patients with retained cardiac leads during MRI at 1.5T and 3T," (in eng), Magn Reson Med, vol. 81, no. 1, pp. 653–669, Jan 2019, doi: 10.1002/mrm.27350. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [3].Bhusal B et al. , "Effect of Device Configuration and Patient's Body Composition on the RF Heating and Nonsusceptibility Artifact of Deep Brain Stimulation Implants During MRI at 1.5T and 3T," (in eng), J Magn Reson Imaging, vol. 53, no. 2, pp. 599–610, Feb 2021, doi: 10.1002/jmri.27346. [DOI] [PubMed] [Google Scholar]
- [4].Rezai AR et al. , "Neurostimulation systems for deep brain stimulation: in vitro evaluation of magnetic resonance imaging-related heating at 1.5 tesla," (in eng), J Magn Reson Imaging, vol. 15, no. 3, pp. 241–50, Mar 2002, doi: 10.1002/jmri.10069. [DOI] [PubMed] [Google Scholar]
- [5].Golestanirad L, Keil B, Angelone LM, Bonmassar G, Mareyam A, and Wald LL, "Feasibility of using linearly polarized rotating birdcage transmitters and close-fitting receive arrays in MRI to reduce SAR in the vicinity of deep brain simulation implants," (in eng), Magn Reson Med, vol. 77, no. 4, pp. 1701–1712, Apr 2017, doi: 10.1002/mrm.26220. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [6].McElcheran CE, Yang B, Anderson KJT, Golestanirad L, and Graham SJ, "Parallel radiofrequency transmission at 3 tesla to improve safety in bilateral implanted wires in a heterogeneous model," (in eng), Magn Reson Med, vol. 78, no. 6, pp. 2406–2415, Dec 2017, doi: 10.1002/mrm.26622. [DOI] [PubMed] [Google Scholar]
- [7].Golestanirad L et al. , "Construction and modeling of a reconfigurable MRI coil for lowering SAR in patients with deep brain stimulation implants," (in eng), Neuroimage, vol. 147, pp. 577–588, Feb 15 2017, doi: 10.1016/j.neuroimage.2016.12.056. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [8].Kazemivalipour E et al. , "Reconfigurable MRI technology for low-SAR imaging of deep brain stimulation at 3T: Application in bilateral leads, fully-implanted systems, and surgically modified lead trajectories," (in eng), Neuroimage, vol. 199, pp. 18–29, Oct 1 2019, doi: 10.1016/j.neuroimage.2019.05.015. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [9].Guerin B, Angelone LM, Dougherty D, and Wald LL, "Parallel transmission to reduce absorbed power around deep brain stimulation devices in MRI: Impact of number and arrangement of transmit channels," (in eng), Magn Reson Med, vol. 83, no. 1, pp. 299–311, Jan 2020, doi: 10.1002/mrm.27905. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [10].McElcheran CE et al. , "Numerical Simulations of Realistic Lead Trajectories and an Experimental Verification Support the Efficacy of Parallel Radiofrequency Transmission to Reduce Heating of Deep Brain Stimulation Implants during MRI," (in eng), Sci Rep, vol. 9, no. 1, p. 2124, Feb 14 2019, doi: 10.1038/s41598-018-38099-w. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [11].Golestanirad L et al. , "Reconfigurable MRI coil technology can substantially reduce RF heating of deep brain stimulation implants: First in-vitro study of RF heating reduction in bilateral DBS leads at 1.5 T," (in eng), PLoS One, vol. 14, no. 8, p. e0220043, 2019, doi: 10.1371/journal.pone.0220043. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [12].Golestanirad L, Angelone LM, Iacono MI, Katnani H, Wald LL, and Bonmassar G, "Local SAR near deep brain stimulation (DBS) electrodes at 64 and 127 MHz: A simulation study of the effect of extracranial loops," (in eng), Magn Reson Med, vol. 78, no. 4, pp. 1558–1565, Oct 2017, doi: 10.1002/mrm.26535. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [13].Golestanirad L et al. , "Reducing RF-induced Heating near Implanted Leads through High-Dielectric Capacitive Bleeding of Current (CBLOC)," (in eng), IEEE Trans Microw Theory Tech, vol. 67, no. 3, pp. 1265–1273, Mar 2019, doi: 10.1109/tmtt.2018.2885517. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [14].Bhusal B, Keil B, Rosenow J, Kazemivalipour E, and Golestanirad L, "Patient's body composition can significantly affect RF power deposition in the tissue around DBS implants: ramifications for lead management strategies and MRI field-shaping techniques," (in eng), Phys Med Biol, vol. 66, no. 1, p. 015008, Jan 14 2021, doi: 10.1088/1361-6560/abcde9. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [15].Nguyen BT, Pilitsis J, and Golestanirad L, "The effect of simulation strategies on prediction of power deposition in the tissue around electronic implants during magnetic resonance imaging," (in eng), Phys Med Biol, vol. 65, no. 18, p. 185007, Sep 16 2020, doi: 10.1088/1361-6560/abac9f. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [16].Zheng J, Lan Q, Zhang X, Kainz W, and Chen J, "Prediction of MRI RF exposure for implantable plate devices using artificial neural network," IEEE Transactions on Electromagnetic Compatibility, vol. 62, no. 3, pp. 673–681, 2019. [Google Scholar]
- [17].Zheng J, Lan Q, Kainz W, Long SA, and Chen J, "Genetic algorithm search for the worst-case MRI RF exposure for a multiconfiguration implantable fixation system modeled using artificial neural networks," (in eng), Magn Reson Med, vol. 84, no. 5, pp. 2754–2764, Nov 2020, doi: 10.1002/mrm.28319. [DOI] [PubMed] [Google Scholar]
- [18].Nordbeck P et al. , "Measuring RF-induced currents inside implants: impact of device configuration on MRI safety of cardiac pacemaker leads," Magnetic Resonance in Medicine: An Official Journal of the International Society for Magnetic Resonance in Medicine, vol. 61, no. 3, pp. 570–578, 2009. [DOI] [PubMed] [Google Scholar]
- [19].Nordbeck P et al. , "Impact of imaging landmark on the risk of MRI-related heating near implanted medical devices like cardiac pacemaker leads," (in eng), Magn Reson Med, vol. 65, no. 1, pp. 44–50, Jan 2011, doi: 10.1002/mrm.22592. [DOI] [PubMed] [Google Scholar]
- [20].McElcheran CE, Yang B, Anderson KJ, Golenstani-Rad L, and Graham SJ, "Investigation of Parallel Radiofrequency Transmission for the Reduction of Heating in Long Conductive Leads in 3 Tesla Magnetic Resonance Imaging," (in eng), PLoS One, vol. 10, no. 8, p. e0134379, 2015, doi: 10.1371/journal.pone.0134379. [DOI] [PMC free article] [PubMed] [Google Scholar]
- [21]."MRI SureScan Pacing Leads for Bradyarrhythmia Management." Medtronic. https://www.medtronic.com/us-en/healthcare-professionals/products/cardiac-rhythm/pacemakers/surescan-mri-pacing-leads.html (accessed 2021). [Google Scholar]
- [22]."ANSYS Human Body Model V3." https://catalog.ansys.com/product/5bfec4c8393ff6c28c1997da/ansys-human-body-m (accessed 2020).
- [23].Srivastava N, Hinton G, Krizhevsky A, Sutskever I, and Salakhutdinov R, "Dropout: a simple way to prevent neural networks from overfitting," The journal of machine learning research, vol. 15, no. 1, pp. 1929–1958, 2014. [Google Scholar]
- [24].Falkner S, Klein A, and Hutter F, "BOHB: Robust and Efficient Hyperparameter Optimization at Scale," presented at the Proceedings of the 35th International Conference on Machine Learning, Proceedings of Machine Learning Research, 2018. [Online]. Available: http://proceedings.mlr.press. [Google Scholar]