TY - GEN
T1 - Exploring GPT-4 as MR Sequence and Reconstruction Programming Assistant
AU - Zaiss, Moritz
AU - Rajput, Junaid R.
AU - Dang, Hoai N.
AU - Golkov, Vladimir
AU - Cremers, Daniel
AU - Knoll, Florian
AU - Maier, Andreas
N1 - Publisher Copyright:
© Der/die Autor(en), exklusiv lizenziert an Springer Fachmedien Wiesbaden GmbH, ein Teil von Springer Nature 2024.
PY - 2024
Y1 - 2024
N2 - In this study, we explore the potential of generative pre-trained transformer (GPT), as a coding assistant for MRI sequence programming using the Pulseq framework. The programming of MRI sequences is traditionally a complex and time-consuming task, and the Pulseq standard has recently simplified this process. It allows researchers to define and generate complex pulse sequences used in MRI experiments. Leveraging GPT-4’s capabilities in natural language generation, we adapted it for MRI sequence programming, creating a specialized assistant named GPT4MR. Our tests involved generating various MRI sequences, revealing that GPT-4, guided by a tailored prompt, outperformed GPT-3.5, producing fewer errors and demonstrating improved reasoning. Despite limitations in handling complex sequences, GPT4MR corrected its own errors and successfully generated code with step-by-step instructions. The study showcases GPT4MR’s ability to accelerate MRI sequence development, even for novel ideas absent in its training set. While further research and improvement are needed to address complexity limitations, a well-designed prompt enhances performance. The findings propose GPT4MR as a valuable MRI sequence programming assistant, streamlining prototyping and development. The future prospect involves integrating a PyPulseq plugin into lightweight, open-source LLMs, potentially revolutionizing MRI sequence development and prototyping.
AB - In this study, we explore the potential of generative pre-trained transformer (GPT), as a coding assistant for MRI sequence programming using the Pulseq framework. The programming of MRI sequences is traditionally a complex and time-consuming task, and the Pulseq standard has recently simplified this process. It allows researchers to define and generate complex pulse sequences used in MRI experiments. Leveraging GPT-4’s capabilities in natural language generation, we adapted it for MRI sequence programming, creating a specialized assistant named GPT4MR. Our tests involved generating various MRI sequences, revealing that GPT-4, guided by a tailored prompt, outperformed GPT-3.5, producing fewer errors and demonstrating improved reasoning. Despite limitations in handling complex sequences, GPT4MR corrected its own errors and successfully generated code with step-by-step instructions. The study showcases GPT4MR’s ability to accelerate MRI sequence development, even for novel ideas absent in its training set. While further research and improvement are needed to address complexity limitations, a well-designed prompt enhances performance. The findings propose GPT4MR as a valuable MRI sequence programming assistant, streamlining prototyping and development. The future prospect involves integrating a PyPulseq plugin into lightweight, open-source LLMs, potentially revolutionizing MRI sequence development and prototyping.
UR - http://www.scopus.com/inward/record.url?scp=85188270663&partnerID=8YFLogxK
U2 - 10.1007/978-3-658-44037-4_28
DO - 10.1007/978-3-658-44037-4_28
M3 - Conference contribution
AN - SCOPUS:85188270663
SN - 9783658440367
T3 - Informatik aktuell
SP - 94
EP - 99
BT - Bildverarbeitung für die Medizin 2024 - Proceedings, German Conference on Medical Image Computing, 2024
A2 - Maier, Andreas
A2 - Deserno, Thomas M.
A2 - Handels, Heinz
A2 - Maier-Hein, Klaus
A2 - Palm, Christoph
A2 - Tolxdorff, Thomas
PB - Springer Science and Business Media Deutschland GmbH
T2 - German Conference on Medical Image Computing, BVM 2024
Y2 - 10 March 2024 through 12 March 2024
ER -