Method and device for synchronizing implantable electrical stimulator and magnetic resonance imaging scanning

Through magnetic field inspection and electrical stimulation state regulation strategies, the time delay between the magnetic resonance imaging system and active implantable medical equipment is detected and synchronized, which solves the problem of poor magnetic resonance imaging timeliness caused by insufficient connection between devices in traditional technology, and realizes the problem of poor magnetic resonance imaging timeliness and Higher synchronization accuracy and timeliness.

CN119113395AActive Publication Date: 2024-12-13TSINGHUA UNIVERSITY
View PDF 17 Cites 0 Cited by

Patent Information

Application Number
CN202411340666.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-25
Publication Date
2024-12-13
Estimated Expiration
2044-09-25

AI Technical Summary

Technical Problem

In traditional technology, when patients with implanted nerve stimulators perform magnetic resonance imaging, the magnetic resonance imaging system cannot be effectively connected to the active implantable medical device, resulting in poor aging of magnetic resonance imaging.

Method used

The first time delay between the magnetic resonance imaging system and the active implantable medical device is detected through the magnetic field inspection strategy, and the second time delay is detected through the electrical stimulation state regulation strategy, and the equipment detection information of the delay synchronization device is collected to identify the current delay The synchronization strategy, based on the first time delay and the second time delay, ensures the time synchronization of the magnetic resonance imaging system and the active implantable medical device.

Benefits of technology

It improves the accuracy of time synchronization, improves the timeliness of magnetic resonance imaging of implanted electrode users, and solves the timeliness problem caused by the inability to effectively connect between devices in traditional technology.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119113395A_ABST
    Figure CN119113395A_ABST
Patent Text Reader

Abstract

The invention relates to an implantable electrical stimulator and magnetic resonance imaging scanning synchronization method and device. The method comprises the following steps: detecting a first time delay of a magnetic resonance imaging system and an active implantable medical device through a magnetic field examination strategy, and detecting a second time delay of the active implantable medical device and the magnetic resonance imaging system through an electrical stimulation state regulation strategy; equipment detection information of time delay synchronization equipment is collected, and a current time delay synchronization strategy is identified based on the equipment detection information; and based on the first time delay and the second time delay, performing time synchronization processing on the magnetic resonance imaging system and the active implantable medical device through the current time delay synchronization strategy. By adopting the method, the timeliness of performing magnetic resonance imaging on the user implanted with the in-vivo electrode can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of time synchronization, and in particular to a method and a device for synchronizing an implantable electrical stimulator with a magnetic resonance imaging scan. Background Art

[0002] Active implantable medical devices can be used to treat a variety of diseases. Among them, implantable electrical stimulators are more commonly used. The stimulator provides electrical stimulation therapy to users through electrodes implanted in the body to treat users. Clinicians can adjust the electrical stimulation parameters of the implantable electrical stimulator through programming devices to ensure the effectiveness of electrical stimulation. For users of implantable neurostimulators, their neural activity state may be directly related to electrical stimulation. Magnetic resonance systems can detect brain activity, thereby ensuring the effective coordination of implanted devices and magnetic resonance technology, so as to more accurately monitor and analyze neural states. Therefore, how to improve the accuracy of magnetic resonance imaging of patients with active implantable medical devices is the current research focus.

[0003] When conventional technology is used to perform magnetic resonance imaging on patients with implanted neurostimulators, the magnetic resonance imaging system and the active implantable medical device cannot be effectively connected, causing abnormalities in the magnetic resonance imaging and resulting in poor timeliness of magnetic resonance imaging for users with implanted electrodes. Summary of the invention

[0004] Based on this, it is necessary to provide a method, device, computer equipment, computer-readable storage medium and computer program product for synchronizing an implantable electrical stimulator with a magnetic resonance imaging scan in order to address the above technical problems.

[0005] In a first aspect, the present application provides a method for synchronizing an implantable electrical stimulator with a magnetic resonance imaging scan, comprising:

[0006] Detecting a first time delay between a magnetic resonance imaging system and an active implantable medical device through a magnetic field inspection strategy, and detecting a second time delay between the active implantable medical device and the magnetic resonance imaging system through an electrical stimulation state control strategy;

[0007] Collecting device detection information of the delay synchronization device, and identifying the current delay synchronization strategy based on the device detection information;

[0008] Based on the first time delay and the second time delay, the magnetic resonance imaging system and the active implantable medical device are time synchronized by using the current time delay synchronization strategy.

[0009] Optionally, the detecting the first time delay between the magnetic resonance imaging system and the active implantable medical device through the magnetic field inspection strategy comprises:

[0010] Acquire a first local time of a magnetic field detection module and a second local time of an implantable pulse generator, detect the start time of a layer-selective gradient magnetic field through the magnetic field detection module, obtain a first detection time, and send a first Bluetooth signal to the implantable pulse generator through the magnetic field detection module;

[0011] When the implantable pulse generator receives the first Bluetooth signal, collecting the second detection time recorded by the implantable pulse generator, and generating a new electrical stimulation state of the active implantable medical device through the implantable pulse generator;

[0012] Based on the electrical stimulation state, adjusting the active implantable medical device to obtain a third detection time, and generating a second Bluetooth signal based on the implantable pulse generator;

[0013] The second Bluetooth signal is sent to the magnetic field detection module through the implantable pulse generator, and when the magnetic field detection module receives the second Bluetooth signal, a fourth detection time recorded by the magnetic field detection module is collected;

[0014] Based on the first detection time, the second detection time, the third detection time, and the fourth detection time, a first time delay between the magnetic resonance imaging system and the active implantable medical device is calculated by a first time delay algorithm.

[0015] Optionally, detecting the second time delay between the active implantable medical device and the magnetic resonance imaging system through the electrical stimulation state regulation strategy includes:

[0016] In response to the user's electrical stimulation change operation, acquiring the local time of the remote control terminal of the active implantable medical device and a change Bluetooth signal for changing the electrical stimulation state;

[0017] sending the changed Bluetooth signal to the active implantable medical device via the remote control terminal, and based on the reception time of the changed Bluetooth signal received by the active implantable medical device;

[0018] In response to the user's magnetic field turning on operation, a first turning-on time recorded by the remote control terminal and a second turning-on time when the magnetic resonance imaging system is turned on are obtained, and based on the local time, the receiving time, the first turning-on time, and the second turning-on time, a second time delay algorithm is used to calculate the second time delay between the active implantable medical device and the magnetic resonance imaging system.

[0019] Optionally, the identifying a current delay synchronization strategy based on the device detection information includes:

[0020] Based on the device detection information, identifying a device synchronization mode of the time delay synchronization device and a synchronization direction of the time delay synchronization device;

[0021] When the device synchronization mode is a dual-delay synchronization mode, determining that the current delay synchronization strategy is a dual-delay synchronization strategy; when the device synchronization mode is a single-delay synchronization mode, identifying the current delay synchronization strategy based on the synchronization direction of the delay synchronization device;

[0022] When the device synchronization direction is from the magnetic resonance imaging system to the active implantable medical device for delay synchronization, the current delay synchronization strategy is the magnetic resonance synchronization strategy, and when the device synchronization direction is from the active implantable medical device to the magnetic resonance imaging system for delay synchronization, the current delay synchronization strategy is the electrical stimulation synchronization strategy.

[0023] Optionally, when the current time delay synchronization strategy is a magnetic resonance synchronization strategy, the magnetic resonance imaging system and the active implantable medical device are time synchronized based on the first time delay and the second time delay through the current time delay synchronization strategy, including:

[0024] When the slice selection gradient magnetic field is turned on, a scanning excitation imaging sequence and a slice selection gradient magnetic field pulse sequence generated by the magnetic resonance imaging system are collected, and a first time synchronization sequence is generated based on the scanning excitation imaging sequence and the slice selection gradient magnetic field pulse sequence;

[0025] Based on the first time synchronization sequence and the first time delay, the magnetic field inspection strategy is used to iteratively synchronize time between the magnetic resonance imaging system and the active implantable medical device to complete the time synchronization task.

[0026] Optionally, when the current time delay synchronization strategy is an electrical stimulation synchronization strategy, the magnetic resonance imaging system and the active implantable medical device are time synchronized based on the first time delay and the second time delay through the current time delay synchronization strategy, including:

[0027] Before each electrical stimulation state change moment in the scanning excitation imaging sequence, respectively add an indication pulse to obtain a second time synchronization sequence;

[0028] Based on the second time synchronization sequence and the second time delay, the magnetic resonance imaging system and the active implantable medical device are iteratively time synchronized through the electrical stimulation state control strategy to complete the time synchronization task.

[0029] Optionally, when the current time delay synchronization strategy is a dual time delay synchronization strategy, the magnetic resonance imaging system and the active implantable medical device are time synchronized based on the first time delay and the second time delay through the current time delay synchronization strategy, including:

[0030] Generate a timetable based on the scanning excitation imaging sequence, the first time delay, and the second time delay, and identify the start time of each of the selected layer gradient magnetic fields and the change time of each of the electrical stimulation states based on the scanning excitation imaging sequence;

[0031] Based on the timetable, the start time of each of the layer selection gradient magnetic fields, and the change time of each of the electrical stimulation states, the magnetic resonance imaging system and the active implantable medical device are time synchronized to complete the time synchronization task.

[0032] In a second aspect, the present application also provides a device for synchronizing an implantable electrical stimulator with a magnetic resonance imaging scan, comprising:

[0033] A detection module, configured to detect a first time delay between a magnetic resonance imaging system and an active implantable medical device through a magnetic field detection strategy, and to detect a second time delay between the active implantable medical device and the magnetic resonance imaging system through an electrical stimulation state control strategy;

[0034] An identification module, used to collect device detection information of the delay synchronization device and identify the current delay synchronization strategy based on the device detection information;

[0035] A synchronization module is used to perform time synchronization processing on the magnetic resonance imaging system and the active implantable medical device based on the first time delay and the second time delay through the current time delay synchronization strategy.

[0036] Optionally, the detection module is specifically used to:

[0037] Acquire a first local time of a magnetic field detection module and a second local time of an implantable pulse generator, detect the start time of a layer-selective gradient magnetic field through the magnetic field detection module, obtain a first detection time, and send a first Bluetooth signal to the implantable pulse generator through the magnetic field detection module;

[0038] When the implantable pulse generator receives the first Bluetooth signal, collecting the second detection time recorded by the implantable pulse generator, and generating a new electrical stimulation state of the active implantable medical device through the implantable pulse generator;

[0039] Based on the electrical stimulation state, adjusting the active implantable medical device to obtain a third detection time, and generating a second Bluetooth signal based on the implantable pulse generator;

[0040] The second Bluetooth signal is sent to the magnetic field detection module through the implantable pulse generator, and when the magnetic field detection module receives the second Bluetooth signal, a fourth detection time recorded by the magnetic field detection module is collected;

[0041] Based on the first detection time, the second detection time, the third detection time, and the fourth detection time, a first time delay between the magnetic resonance imaging system and the active implantable medical device is calculated by a first time delay algorithm.

[0042] Optionally, the detection module is specifically used to:

[0043] In response to the user's electrical stimulation change operation, acquiring the local time of the remote control terminal of the active implantable medical device and a change Bluetooth signal for changing the electrical stimulation state;

[0044] sending the changed Bluetooth signal to the active implantable medical device via the remote control terminal, and based on the reception time of the changed Bluetooth signal received by the active implantable medical device;

[0045] In response to the user's magnetic field turning on operation, a first turning-on time recorded by the remote control terminal and a second turning-on time when the magnetic resonance imaging system is turned on are obtained, and based on the local time, the receiving time, the first turning-on time, and the second turning-on time, a second time delay algorithm is used to calculate the second time delay between the active implantable medical device and the magnetic resonance imaging system.

[0046] Optionally, the identification module is specifically used to:

[0047] Based on the device detection information, identifying a device synchronization mode of the time delay synchronization device and a synchronization direction of the time delay synchronization device;

[0048] When the device synchronization mode is a dual-delay synchronization mode, determining that the current delay synchronization strategy is a dual-delay synchronization strategy; when the device synchronization mode is a single-delay synchronization mode, identifying the current delay synchronization strategy based on the synchronization direction of the delay synchronization device;

[0049] When the device synchronization direction is from the magnetic resonance imaging system to the active implantable medical device for delay synchronization, the current delay synchronization strategy is the magnetic resonance synchronization strategy, and when the device synchronization direction is from the active implantable medical device to the magnetic resonance imaging system for delay synchronization, the current delay synchronization strategy is the electrical stimulation synchronization strategy.

[0050] Optionally, the synchronization module is specifically used to:

[0051] When the slice selection gradient magnetic field is turned on, a scanning excitation imaging sequence and a slice selection gradient magnetic field pulse sequence generated by the magnetic resonance imaging system are collected, and a first time synchronization sequence is generated based on the scanning excitation imaging sequence and the slice selection gradient magnetic field pulse sequence;

[0052] Based on the first time synchronization sequence and the first time delay, the magnetic field inspection strategy is used to iteratively synchronize time between the magnetic resonance imaging system and the active implantable medical device to complete the time synchronization task.

[0053] Optionally, the synchronization module is specifically used to:

[0054] Before each electrical stimulation state change moment in the scanning excitation imaging sequence, respectively add an indication pulse to obtain a second time synchronization sequence;

[0055] Based on the second time synchronization sequence and the second time delay, the magnetic resonance imaging system and the active implantable medical device are iteratively time synchronized through the electrical stimulation state control strategy to complete the time synchronization task.

[0056] Optionally, the synchronization module is specifically used to:

[0057] Generate a timetable based on the scanning excitation imaging sequence, the first time delay, and the second time delay, and identify the start time of each of the selected layer gradient magnetic fields and the change time of each of the electrical stimulation states based on the scanning excitation imaging sequence;

[0058] Based on the timetable, the start time of each of the layer selection gradient magnetic fields, and the change time of each of the electrical stimulation states, the magnetic resonance imaging system and the active implantable medical device are time synchronized to complete the time synchronization task.

[0059] In a third aspect, the present application provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of any one of the methods in the first aspect are implemented.

[0060] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of any one of the methods in the first aspect are implemented.

[0061] In a fifth aspect, the present application provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the steps of any one of the methods in the first aspect are implemented.

[0062] The above-mentioned method and device for synchronizing the implantable electrical stimulator with the magnetic resonance imaging scan detects the first time delay between the magnetic resonance imaging system and the active implantable medical device through the magnetic field inspection strategy, and detects the second time delay between the active implantable medical device and the magnetic resonance imaging system through the electrical stimulation state control strategy; collects the device detection information of the time delay synchronization device, and identifies the current time delay synchronization strategy based on the device detection information; based on the first time delay and the second time delay, the magnetic resonance imaging system and the active implantable medical device are time synchronized through the current time delay synchronization strategy. This scheme detects the time delay between the magnetic resonance imaging system and the active implantable medical device through two methods, the magnetic field inspection strategy and the electrical stimulation state control strategy, respectively, to improve the accuracy of identifying the time delay. Then, this scheme determines the time synchronization method by detecting the device detection information of the time delay synchronization device to ensure that time synchronization can be performed in different time delay synchronization devices. Compared with traditional time synchronization solutions, since the application scenarios of this solution are one is a magnetic resonance imaging system and the other is an active implantable medical device, the two devices are independent of each other and cannot be effectively connected. This solution provides device detection information of multiple delay synchronization devices, and performs different time synchronization operations. This can not only improve the accuracy of time synchronization, but also improve the timeliness of magnetic resonance imaging for users with implanted electrodes. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] In order to more clearly illustrate the technical solutions in the embodiments of the present application or the related technologies, the drawings required for use in the embodiments or the related technical descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0064] Figure 1 A schematic flow chart of a method for synchronizing an implantable electrical stimulator with a magnetic resonance imaging scan in one embodiment;

[0065] Figure 2 A flowchart of an example of synchronizing an implantable electrical stimulator with a magnetic resonance imaging scan in one embodiment;

[0066] Figure 3 is a structural block diagram of a device for synchronizing an implantable electrical stimulator with a magnetic resonance imaging scan in one embodiment;

[0067] Figure 4 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0068] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0069] The method for synchronizing an implantable electrical stimulator with a magnetic resonance imaging scan provided in an embodiment of the present application can be applied to an application environment in which a user with an electrode implanted in the body performs magnetic resonance imaging. The method can be applied to a terminal, a server, or a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. The terminal can be, but is not limited to, various personal computers, laptops, and the like. The terminal detects the time delay between the magnetic resonance imaging system and the active implantable medical device through two methods, namely, a magnetic field inspection strategy and an electrical stimulation state control strategy, thereby improving the accuracy of identifying the time delay. Then, the present solution determines the time synchronization method by detecting the device detection information of the time delay synchronization device to ensure that time synchronization processing can be performed in different time delay synchronization devices. Compared with the traditional time synchronization scheme, since the application scenario of the present scheme is that one is a magnetic resonance imaging system and the other is an active implantable medical device, the two devices are independent of each other and cannot be effectively connected, and different time synchronization operations are performed under the condition that the device detection information of multiple time delay synchronization devices is provided by the present scheme, which can not only improve the accuracy of time synchronization, but also improve the timeliness of magnetic resonance imaging for users with active implantable medical devices in their bodies. Among them, the adjustment strategy of the first time delay is to monitor the start-up time of the layer selection gradient magnetic field of the MRI system, and then coordinate the electrical stimulation state of the AIMD to complete the time delay of the clock synchronization of the AIMD and the MRI. The adjustment strategy of the second time delay is to achieve the time delay of the synchronization of the two by coordinating the magnetic field through detecting electrical stimulation.

[0070] In an exemplary embodiment, Figure 1 As shown, a method for synchronizing an implantable electrical stimulator with a magnetic resonance imaging scan is provided, and the method is described by taking the application of the method to a terminal as an example, including the following steps S101 to S103. Among them:

[0071] Step S101, detecting a first time delay between a magnetic resonance imaging system and an active implantable medical device through a magnetic field detection strategy, and detecting a second time delay between the active implantable medical device and the magnetic resonance imaging system through an electrical stimulation state control strategy.

[0072] In this embodiment, the terminal detects the first time delay between the magnetic resonance imaging system and the active implantable medical device through a magnetic field detection module preset in the magnetic resonance imaging system. The magnetic field detection module includes seven parts: a magnetic field sensor, an analog-to-digital converter, a Bluetooth module, a power supply, a microprocessor, a crystal oscillator, and an LCD display screen. It can also be connected to external indicating components such as speakers and indicator lights to indicate whether the delay meets the requirements. The crystal oscillator can provide a stable clock signal to the microprocessor. This clock signal is extremely important in electronic systems, as it provides the necessary time reference for the processor's calculation and logic functions. In the magnetic field detection module, the clock signal generated by the crystal oscillator ensures that all time-related measurements and operations can be performed at the same standard time, thereby ensuring the synchronization and accuracy of the internal operations of the module. The LCD display screen can provide users with an intuitive user interface to display various delay data measured by the system. This display capability allows experimenters to observe the status and performance of the system in real time, such as key parameters such as delay. The high visibility and readability of the LCD display screen make it an ideal choice for monitoring the operation of complex systems, especially in experimental and test environments where data needs to be read quickly and accurately. Then, the terminal connects the IPG in the user's body to the remote control terminal (tablet, computer, etc.) via Bluetooth so that the state of the electrical stimulation can be read in real time. Therefore, based on the remote control terminal in the connection state, the second time delay between the active implantable medical device and the magnetic resonance imaging system is detected through the electrical stimulation state control strategy. The specific detection process will be described in detail later. The above embodiment is used for a nuclear magnetic resonance imaging system in which a clock signal cannot be obtained. For a nuclear magnetic resonance imaging system in which a clock signal can be obtained, the coordination of IPG electrical stimulation and MRI scanning does not require a magnetic field sensor to detect the layer gradient magnetic field. The Chinese meanings of the English abbreviations in the above text are implantable pulse generator (IPG), active implantable medical device (AIMD), magnetic resonance imaging (MRI), functional magnetic resonance imaging (fMRI), etc.

[0073] Step S102: collecting device detection information of the delay synchronization device, and identifying the current delay synchronization strategy based on the device detection information.

[0074] In this embodiment, the terminal collects the device detection information of the delay synchronization device, and identifies the current delay synchronization strategy based on the device detection information. Among them, the experimental synchronization device includes delay synchronization devices with multiple functions, and delay synchronization devices with different functions correspond to different delay synchronization strategies. Therefore, this solution identifies the device function of the delay synchronization device through device detection, thereby determining the current delay synchronization strategy. The specific identification process will be described in detail later.

[0075] Step S103: Based on the first time delay and the second time delay, the magnetic resonance imaging system and the active implantable medical device are time synchronized by using the current time delay synchronization strategy.

[0076] In this embodiment, the terminal performs time synchronization processing on the magnetic resonance imaging system and the active implantable medical device based on the first time delay and the second time delay through the current time delay synchronization strategy. The specific time synchronization process will be described in detail later.

[0077] Based on the above scheme, the time delay between the magnetic resonance imaging system and the active implantable medical device is detected respectively by means of the magnetic field inspection strategy and the electrical stimulation state control strategy, thereby improving the accuracy of identifying the time delay. Then, this scheme determines the time synchronization method by detecting the device detection information of the time delay synchronization device to ensure that time synchronization processing can be performed in different time delay synchronization devices. Compared with the traditional time synchronization scheme, since the application scenario of this scheme is that one is a magnetic resonance imaging system and the other is an active implantable medical device, the two devices are independent of each other and cannot be effectively connected. When the device detection information of multiple time delay synchronization devices is provided by this scheme, different time synchronization operations are performed, which can not only improve the accuracy of time synchronization, but also improve the timeliness of magnetic resonance imaging for users with implanted electrodes.

[0078] Optionally, a first time delay between a magnetic resonance imaging system and an active implantable medical device is detected through a magnetic field inspection strategy, including: obtaining a first local time of a magnetic field detection module and a second local time of an implantable pulse generator, detecting the start-up time of a layer-selective gradient magnetic field through the magnetic field detection module to obtain a first detection time, and sending a first Bluetooth signal to the implantable pulse generator through the magnetic field detection module; when the implantable pulse generator receives the first Bluetooth signal, collecting the second detection time recorded by the implantable pulse generator, and generating a new electrical stimulation state of the active implantable medical device through the implantable pulse generator; based on the electrical stimulation state, adjusting the active implantable medical device to obtain a third detection time, and generating a second Bluetooth signal based on the implantable pulse generator; sending the second Bluetooth signal to the magnetic field detection module through the implantable pulse generator, and collecting the fourth detection time recorded by the magnetic field detection module when the magnetic field detection module receives the second Bluetooth signal; based on the first detection time, the second detection time, the third detection time, and the fourth detection time, calculating the first time delay between the magnetic resonance imaging system and the active implantable medical device through a first delay algorithm.

[0079] In this embodiment, the terminal obtains the first local time of the magnetic field detection module and the second local time of the implantable pulse generator, detects the start time of the layer selection gradient magnetic field through the magnetic field detection module, obtains the first detection time, and sends a first Bluetooth signal to the implantable pulse generator through the magnetic field detection module. The first Bluetooth signal is a Bluetooth signal for instructing the implantable pulse generator device to adjust the electrical stimulation state. In another embodiment, the terminal replaces the magnetic field detection module with a synchronization box to record the fourth detection time.

[0080] Then, when the implantable pulse generator receives the first Bluetooth signal, the terminal collects the second detection time recorded by the implantable pulse generator, and generates a new electrical stimulation state of the active implantable medical device through the implantable pulse generator.

[0081] The terminal adjusts the active implantable medical device based on the electrical stimulation state to obtain a third detection time, and generates a second Bluetooth signal based on the implantable pulse generator, wherein the second Bluetooth signal is a feedback signal for feeding back the current electrical stimulation state and successfully adjusting the electrical stimulation state.

[0082] Thereafter, the terminal sends the second Bluetooth signal to the magnetic field detection module through the implanted pulse generator, and collects the fourth detection time recorded by the magnetic field detection module when the magnetic field detection module receives the second Bluetooth signal.

[0083] Finally, the terminal calculates a first time delay between the magnetic resonance imaging system and the active implantable medical device based on the first detection time, the second detection time, the third detection time, and the fourth detection time by using a first delay algorithm.

[0084] Specifically, the terminal records the magnetic field detection module as device A, and its local time as AT, and the implantable pulse generator as device B, and its local time as BT, and the two are not synchronized.

[0085] The magnetic field detection module can generate a command signal when the layer selection gradient magnetic field is turned on. When the magnetic field detection module detects the layer selection gradient magnetic field is turned on, the local time of the magnetic field detection module is written into the memory, which is recorded as AT1.

[0086] When triggered by the command to turn on the layer-selective gradient magnetic field, the microprocessor of the magnetic field detection module fills the command to change the electrical stimulation state into the specified Bluetooth message format and transmits it to the implantable pulse generator via the Bluetooth signal.

[0087] When the Bluetooth module of the implantable pulse generator receives the signal, the local time when the implantable pulse generator receives the signal is written into the memory, which is recorded as BT1.

[0088] The microprocessor of the implantable pulse generator decodes the signal, obtains an instruction to change the electrical stimulation state of the implantable pulse generator, and changes the electrical stimulation state through the electrical pulse generating circuit.

[0089] When the electrical stimulation state changes, the current feedback circuit inside the implantable pulse generator detects it and transmits the signal to the microprocessor, which writes the local time of the implantable pulse generator into the memory, recorded as BT2.

[0090] After writing the time, the microprocessor of the implantable pulse generator writes the values ​​of BT1 and BT2 in the memory into the Bluetooth message and transmits it to the magnetic field detection module via the Bluetooth signal.

[0091] When the Bluetooth module of the magnetic field detection module receives the signal, it sends an instruction to the microprocessor to write the current time into the memory, which is recorded as AT2.

[0092] In this embodiment, the system time delay T can be determined by the time delay of the Bluetooth signal transmitted between the magnetic field detection module and the implantable pulse generator. T1 is the time delay between the implantable pulse generator receiving the instruction and changing the electrical stimulation state to process the signal T2 is added.

[0093] In this embodiment, the local time of the implantable pulse generator is not the same as the local time of the magnetic field detection module, so it is assumed that the time delay of the Bluetooth signal transmitted from the magnetic field detection module to the implantable pulse generator is the same as that from the implantable pulse generator to the magnetic field detection module.

[0094] So far, we have obtained BT1, BT2, AT1, and AT2. We can use the microprocessor to calculate the delay and write the delay into the memory. The calculation formula of the delay is as follows: So we can calculate T1 and T2, and displayed on the LCD screen of the magnetic field detection module for the operator to observe.

[0095]

[0096] Therefore, the time delay of the system can be obtained T

[0097]

[0098] In a magnetic resonance imaging system that can obtain a clock signal, the terminal is connected to the MRI system and the control end of the implantable pulse generator through a synchronization box, which has a built-in microprocessor. The remote control end is located outside the magnetic resonance scanning room and can control the electrical pulses generated by the implantable pulse generator through a Bluetooth system.

[0099] The remote control terminal is denoted as device A, and the implantable pulse generator is denoted as device B.

[0100] When the synchronization box detects that the MRI starts the layer selection gradient magnetic field, the synchronization box sends a signal command to the remote control terminal, and the remote control terminal records the local time AT1 at that moment.

[0101] This signal instruction has the same meaning as the local time AT1 recorded when the magnetic field detection module detects that the slice selection gradient magnetic field is turned on, and both indicate the time when the slice selection gradient magnetic field is turned on.

[0102] The synchronization box receives the signal of starting the layer selection gradient magnetic field and transmits the signal to the remote control terminal through a wired manner. The implantable pulse generator receives the Bluetooth command from the remote control terminal, and the microprocessor records the local time BT1 at this moment.

[0103] After receiving the instruction, the microprocessor of the implantable pulse generator controls the change of the electrical stimulation state through the circuit, receives the signal of the electrical stimulation feedback circuit when the electrical stimulation state changes, and writes the local time at this time into the memory, which is recorded as BT2. The microprocessor of the implantable pulse generator fills BT1 and BT2 into the Bluetooth message and sends it to the remote control terminal via Bluetooth.

[0104] The remote control terminal receives the signal from the implantable pulse generator and records the local time AT2 at that moment.

[0105] The time delay can be calculated in the same way as above. T and displayed on the remote controller.

[0106] T=((AT2-AT1)+(BT2-BT1)) / 2.

[0107] Based on the above scheme, time delay detection is performed based on the magnetic field detection module to calculate the first time delay between the magnetic resonance imaging system and the active implantable medical device, thereby improving the accuracy of time synchronization and improving the timeliness of magnetic resonance imaging for users with implanted electrodes.

[0108] Optionally, the second time delay between the active implantable medical device and the magnetic resonance imaging system is detected through the electrical stimulation state control strategy, including: in response to the user's electrical stimulation change operation, the local time of the remote control terminal of the active implantable medical device and the change Bluetooth signal of the electrical stimulation state are obtained; through the remote control terminal, the Bluetooth signal of the electrical stimulation state change is sent to the active implantable medical device (i.e., the first time point), and the time of receiving the change Bluetooth signal based on the local time of the active implantable medical device (i.e., the second time point). The active implantable medical device generates a new electrical stimulation state, obtains the first start-up time of generating the new electrical stimulation state, (i.e., the third time point), and transmits the obtained second time point and the third time point to the remote control terminal via Bluetooth. And obtain the local time when the remote control terminal receives the Bluetooth signal (i.e., the fourth time point).

[0109] In response to the user's magnetic field start-up operation, a first start-up time recorded by the remote control end and a second start-up time point (i.e., the fifth time point) when the magnetic resonance imaging system is turned on are obtained, and based on the local time, the receiving time, the first start-up time, and the second start-up time, a second time delay algorithm is used to calculate the second time delay between the active implantable medical device and the magnetic resonance imaging system.

[0110] In this embodiment, the terminal obtains the local time of the remote control terminal of the active implantable medical device and the change Bluetooth signal of the electrical stimulation state in response to the user's electrical stimulation change operation. Then, the terminal sends the change Bluetooth signal to the active implantable medical device through the remote control terminal, generates a new electrical stimulation state based on the active implantable medical device, and obtains the time of receiving the change Bluetooth signal and the time of the electrical stimulation state change based on the local time of the implantable pulse generator.

[0111] Then, in response to the user's magnetic field turning-on operation, the terminal obtains the first turning-on time recorded by the remote control terminal and the second turning-on time point of the magnetic resonance imaging system turning-on time, and calculates the second time delay between the active implantable medical device and the magnetic resonance imaging system through a second time delay algorithm based on the local time, the receiving time, the first turning-on time, and the second turning-on time. When calculating the second time delay, a total of 5 time points are applied, namely the first to fifth time points mentioned above.

[0112] Specifically, the terminal needs to measure the time delay between the implanted pulse generator changing the electrical stimulation and the magnetic field detection module detecting the layer-selective gradient magnetic field. T. Time delay of the system T can be determined by the time delay of the Bluetooth signal between the implantable pulse generator and the remote control terminal. T3 is the time delay between the remote control receiving the command and the MRI starting the layer selection gradient magnetic field T4 is added.

[0113] First, through the scheme mentioned above, we can measure T3.

[0114] T3=((AT2-AT1)-(BT2-BT1)) / 2

[0115] When the remote control terminal receives the Bluetooth command to turn on the magnetic field, the remote control terminal automatically or manually controls the MRI system to turn on through the magnetic resonance console in a wired manner. When the magnetic field sensor detects the layer selection gradient magnetic field, the signal is transmitted to the console through wired transmission. The time delay of wired transmission can be ignored, and MRI writes the current time AT3 into the memory.

[0116] So, we can get T4:

[0117] T4=AT3-AT2

[0118] At this point, we can get the time delay T, and can be displayed on the remote control terminal or MRI operation table, the time delay is as follows:

[0119] T=((AT2-AT1)-(BT2-BT1)) / 2+(AT3-AT2)

[0120] In another embodiment, the terminal needs to obtain the system time delay through the synchronization box T. The acquisition method can delay the transmission time of the Bluetooth signal between the implantable pulse generator and the remote control terminal through the synchronization box. T6 and the time delay between the remote control terminal receiving the command and the MRI opening the layer selection gradient magnetic field T7 is added, wherein the difference between this embodiment and the above embodiment is that this embodiment is the time delay obtained by the synchronization box, while the above embodiment is the time delay obtained by the magnetic field detection module.

[0121] According to the calculation method proposed above, the time delay can be obtained T, and it is displayed on the remote control end.

[0122] T=((AT2-AT1)-(BT2-BT1)) / 2+(AT3-AT2).

[0123] Based on the above scheme, the first time delay or the second time delay is measured through a magnetic resonance examination strategy or an electrical stimulation state examination strategy, and the time delay obtained by measurement and calculation provides control data for achieving clock synchronization between MRI and an active implantable medical device.

[0124] Optionally, based on the device detection information, the current delay synchronization strategy is identified, including: based on the device detection information, identifying the device synchronization mode and the synchronization direction of the delay synchronization device; when the device synchronization mode is a dual-delay synchronization mode, determining that the current delay synchronization strategy is a dual-delay synchronization strategy; when the device synchronization mode is a single-delay synchronization mode, identifying the current delay synchronization strategy based on the synchronization direction of the delay synchronization device; when the device synchronization direction is from a magnetic resonance imaging system to an active implantable medical device for delay synchronization, the current delay synchronization strategy is a magnetic resonance synchronization strategy, and when the device synchronization direction is from an active implantable medical device to a magnetic resonance imaging system for delay synchronization, the current delay synchronization strategy is an electrical stimulation synchronization strategy.

[0125] In this embodiment, the terminal identifies the device synchronization mode and the synchronization direction of the delay synchronization device based on the device detection information. The device synchronization mode includes a single delay synchronization mode and a double delay synchronization mode. The synchronization direction includes delay synchronization from the magnetic resonance imaging system to the active implantable medical device, or from the active implantable medical device to the magnetic resonance imaging system.

[0126] Among them, when the device synchronization mode is a dual-delay synchronization mode, the current delay synchronization strategy is determined to be a dual-delay synchronization strategy, and when the device synchronization mode is a single-delay synchronization mode, the current delay synchronization strategy is identified based on the synchronization direction of the delay synchronization device; when the device synchronization direction is from the magnetic resonance imaging system to the active implantable medical device for delay synchronization, the current delay synchronization strategy is the magnetic resonance synchronization strategy, and when the device synchronization direction is from the active implantable medical device to the magnetic resonance imaging system for delay synchronization, the current delay synchronization strategy is the electrical stimulation synchronization strategy. Among them, the synchronization factors that need to be considered when the synchronization direction is a single-delay synchronization mode include the synchronization direction of delay synchronization from the active implantable medical device to the magnetic resonance imaging system, and the synchronization direction of delay synchronization from the magnetic resonance imaging system to the active implantable medical device. Among them, when the current delay synchronization strategy is the electrical stimulation synchronization strategy, the synchronization direction is from the magnetic resonance imaging system to the active implantable medical device for delay synchronization; when the current delay synchronization strategy is the magnetic resonance synchronization strategy, the synchronization direction is from the active implantable medical device to the magnetic resonance imaging system for delay synchronization.

[0127] Based on the above solution, the device synchronization mode and synchronization direction of the time-delay synchronization device are identified, thereby improving the accuracy of identifying the device function.

[0128] Optionally, when the current time delay synchronization strategy is the magnetic resonance synchronization strategy, based on the first time delay and the second time delay, the magnetic resonance imaging system and the active implantable medical device are time synchronized through the current time delay synchronization strategy, including: when the layer selection gradient magnetic field is turned on, the scanning excitation imaging sequence and the layer selection gradient magnetic field pulse sequence generated by the magnetic resonance imaging system are collected, and based on the scanning excitation imaging sequence and the layer selection gradient magnetic field pulse sequence, a first time synchronization sequence is generated; based on the first time synchronization sequence and the first time delay, the magnetic resonance imaging system and the active implantable medical device are iteratively time synchronized through the magnetic field inspection strategy to complete the time synchronization task.

[0129] In this embodiment, when the layer selection gradient magnetic field is turned on, the terminal collects the scanning excitation imaging sequence and the layer selection gradient magnetic field pulse sequence generated by the magnetic resonance imaging system, and generates a first time synchronization sequence based on the scanning excitation imaging sequence and the layer selection gradient magnetic field pulse sequence. Then, based on the first time synchronization sequence and the first time delay, the terminal performs iterative time synchronization processing on the magnetic resonance imaging system and the active implantable medical device through the magnetic field inspection strategy to complete the time synchronization task.

[0130] Specifically, when the user performs MRI scanning, the terminal uses the magnetic field detection module mentioned above to measure the layer selection gradient magnetic field. When the magnetic field detection module detects the layer selection direction indicating magnetic field pulse, the local time AT4 is written into the memory in the magnetic field detection module.

[0131] The microprocessor of the magnetic field detection module is AT4+T- At time T, a signal for changing the electrical stimulation state is sent to the implantable pulse generator through the Bluetooth module. Upon receiving the signal, the implantable pulse generator immediately controls the stimulation circuit to change the electrical stimulation state. Through this method, the time delay caused by signal transmission and processing between the MRI system and the neural electrical stimulation system can be eliminated, and the time synchronization between the MRI and the active implantable medical device can be achieved.

[0132] In another embodiment, the terminal indicates the start time of the layer selection gradient magnetic field through the synchronization box. When the synchronization box sends a pulse indicating the start of the layer selection direction magnetic field, the local time AT4 is written into the memory in the magnetic field detection module.

[0133] Remote control terminal in AT4+T- At time T, a signal for changing the electrical stimulation state is sent to the implantable pulse generator through the Bluetooth module. Upon receiving the signal, the implantable pulse generator immediately controls the stimulation circuit to change the electrical stimulation state. Through this method, the time delay caused by signal transmission and processing between the MRI system and the neural electrical stimulation system can be eliminated, and the time synchronization between the MRI and the active implantable medical device can be achieved.

[0134] Based on the above scheme, for MRI devices that can support custom sequences, a magnetic resonance synchronization strategy can be used to achieve time synchronization between the MRI system and the active implantable medical device. In this scheme, the first time delay between the MRI system and the active implantable medical device is first measured and determined. Subsequently, based on the GRE-EPI sequence commonly used in fMRI, a new imaging sequence containing an indicator signal is created, and the time difference is eliminated through the above algorithm to ensure that the change in the state of electrical stimulation is accurately aligned with the time when the MRI system's layer selection gradient magnetic field is turned on, thereby achieving clock synchronization between the two.

[0135] Optionally, when the current time delay synchronization strategy is the electrical stimulation synchronization strategy, based on the first time delay and the second time delay, the magnetic resonance imaging system and the active implantable medical device are time synchronized through the current time delay synchronization strategy, including: before each electrical stimulation state change moment in the scanning excitation imaging sequence, respectively add an indication pulse to obtain a second time synchronization sequence; based on the second time synchronization sequence and the second time delay, through the electrical stimulation state control strategy, iteratively time synchronize the magnetic resonance imaging system and the active implantable medical device to complete the time synchronization task.

[0136] In this embodiment, the terminal adds an indicator pulse before each electrical stimulation state change in the scanning excitation imaging sequence to obtain a second time synchronization sequence. Based on the second time synchronization sequence and the second time delay, the terminal performs iterative time synchronization processing on the magnetic resonance imaging system and the active implantable medical device through the electrical stimulation state control strategy to complete the time synchronization task. Specifically, when the user performs an MRI scan, the terminal inserts an indicator pulse T moments before each change in the electrical stimulation state. When the current feedback loop in the implantable pulse generator detects the indicator pulse, the time point is recorded as X, and the built-in microprocessor of the implantable pulse generator sends the signal to the user at X+T- At time T, a command to start MRI scanning is sent to the remote control terminal. By adopting this method, the time of electrical stimulation change can be aligned with the time clock of MRI scanning, thereby completing the clock synchronization between the active implantable medical device and MRI.

[0137] Based on the above scheme, for active implantable medical devices that support custom control of electrical stimulation states that change over time, an electrical stimulation synchronization strategy can be used to achieve time synchronization between the active implantable medical device and the MRI system. In this scheme, the second time delay between the active implantable medical device and the MRI system is first measured and determined. Then, the electrical stimulation state of the active implantable medical device is adjusted according to the preset time change sequence, and the time difference is eliminated through the corresponding algorithm to ensure that the change of the electrical stimulation state is accurately aligned with the time when the MRI system layer selection gradient magnetic field is turned on, thereby achieving clock synchronization between the two.

[0138] Optionally, when the current time delay synchronization strategy is a dual time delay synchronization strategy, based on the first time delay and the second time delay, the current time delay synchronization strategy is used to perform time synchronization processing on the magnetic resonance imaging system and the active implantable medical device, including: generating a timetable based on the scanning excitation imaging sequence, the first time delay, and the second time delay, and identifying the start-up time of each selected layer gradient magnetic field and the change time of each electrical stimulation state based on the scanning excitation imaging sequence; performing time synchronization processing on the magnetic resonance imaging system and the active implantable medical device based on the timetable, the start-up time of each selected layer gradient magnetic field, and the change time of each electrical stimulation state to complete the time synchronization task.

[0139] In this embodiment, the terminal generates a timetable based on the scanning excitation imaging sequence, the first time delay, and the second time delay, and identifies the start time of each selected layer gradient magnetic field and the change time of each electrical stimulation state based on the scanning excitation imaging sequence. Finally, the terminal performs time synchronization processing on the magnetic resonance imaging system and the active implantable medical device based on the timetable, the start time of each selected layer gradient magnetic field, and the change time of each electrical stimulation state, and completes the time synchronization task.

[0140] Specifically, the terminal connects the remote control terminal of the implantable pulse generator to the MRI console via a wire. It is necessary to measure the time delay between the remote control terminal issuing a command and the implantable pulse generator changing the electrical stimulation state. The time delay between T5 and the time when the MRI console starts scanning and the time when the layer selection gradient magnetic field starts T6.

[0141] The remote control terminal is connected to the MRI console by wire, and the two share a common time through wired transmission. The remote control terminal and the MRI console are recorded as device A, and the local time of the implantable pulse generator is recorded as device B. The two are not synchronized.

[0142] The terminal measures the first time delay. T5 is measured.

[0143] T5=((AT2-AT1)+(BT2-BT1)) / 2

[0144] When the terminal starts scanning, the MRI console writes the current time AT3 into the memory. When the magnetic field sensor detects the layer selection gradient magnetic field, the signal is transmitted to the console via wired transmission. The time delay of wired transmission can be ignored. The MRI writes the current time AT4 into the memory.

[0145] So, we can get the time delay t6, and displayed on the MRI console, the calculation formula is as follows:

[0146] T6=AT4-AT3

[0147] The terminal is measured by T5, T6. The tester can make a schedule to determine the time t1, t2, t3... when the MRI system's layer-selective gradient magnetic field is turned on and the electrical stimulation state is changed. Through this schedule, the tester can manually or automatically start the test before t1 and other times. At time T5, the remote control terminal sends a command to the implantable pulse generator to change the state of electrical stimulation. At time T6, the MRI scan is started through the MRI console, so that the layer selection gradient magnetic field can be turned on and the electrical stimulation state can be changed at the same time at time t1. The specific control method is not limited in this patent.

[0148] In another embodiment, the terminal records the remote control terminal and the MRI console as device A, and the local time of the implantable pulse generator as device B, and the two are not synchronized.

[0149] It is necessary to measure the time delay between the remote controller of the implantable pulse generator issuing a command and the change of the electrical stimulation state of the implantable pulse generator The time delay between T8 and the synchronization box sending the command to start MRI scanning and the synchronization box reading the change of the layer selection gradient magnetic field T9.

[0150] T8 and The measurement method of T9 is consistent with the measurement method above.

[0151] get T8 and After T9, the terminal controls the MRI system's layer selection gradient magnetic field start-up time to align with the time when the neurostimulator's electrical stimulation state changes, completing the time synchronization of the two.

[0152] Based on the above scheme, for MRI devices that can support custom sequences and active implantable medical devices that can support custom control of electrical stimulation states that change over time, time synchronization between the MRI system and the active implantable medical device can be achieved using a dual-delay synchronization method.

[0153] The present application also provides a time synchronization example, as shown in FIG2 , the specific processing process includes the following steps:

[0154] Step S201, obtain the first local time of the magnetic field detection module and the second local time of the implantable pulse generator, detect the start-up time of the layer selection gradient magnetic field through the magnetic field detection module, obtain the first detection time, and send the first Bluetooth signal to the implantable pulse generator through the magnetic field detection module.

[0155] Step S202: when the implantable pulse generator receives the first Bluetooth signal, collect the second detection time recorded by the implantable pulse generator, and generate a new electrical stimulation state of the active implantable medical device through the implantable pulse generator.

[0156] Step S203: Based on the electrical stimulation state, the active implantable medical device is adjusted to obtain a third detection time, and a second Bluetooth signal is generated based on the implantable pulse generator.

[0157] Step S204: sending the second Bluetooth signal to the magnetic field detection module through the implantable pulse generator, and collecting the fourth detection time recorded by the magnetic field detection module when the magnetic field detection module receives the second Bluetooth signal.

[0158] Step S205, calculating a first time delay between the magnetic resonance imaging system and the active implantable medical device through a first time delay algorithm based on the first detection time, the second detection time, the third detection time, and the fourth detection time.

[0159] Step S206, in response to the user's electrical stimulation change operation, obtaining the local time of the remote control terminal of the active implantable medical device and a change Bluetooth signal for changing the electrical stimulation state.

[0160] Step S207: sending the changed Bluetooth signal to the active implantable medical device through the remote control terminal, and based on the receiving time of the changed Bluetooth signal received by the active implantable medical device.

[0161] Step S208, in response to the user's magnetic field start operation, obtain the first start time recorded by the remote control end and the second start time point when the magnetic resonance imaging system is turned on, and based on the local time, the receiving time, the first start time, and the second start time, calculate the second time delay between the active implantable medical device and the magnetic resonance imaging system through a second delay algorithm.

[0162] Step S209: collecting device detection information of the delay synchronization device.

[0163] Step S210: Identify the device synchronization mode and synchronization direction of the time-delay synchronization device based on the device detection information.

[0164] Step S211, when the device synchronization mode is the dual-delay synchronization mode, determine that the current delay synchronization strategy is the dual-delay synchronization strategy; when the device synchronization mode is the single-delay synchronization mode, identify the current delay synchronization strategy based on the synchronization direction of the delay synchronization device.

[0165] Step S212, when the device synchronization direction is from the magnetic resonance imaging system to the active implantable medical device for delay synchronization, the current delay synchronization strategy is the magnetic resonance synchronization strategy, and when the device synchronization direction is from the active implantable medical device to the magnetic resonance imaging system for delay synchronization, the current delay synchronization strategy is the electrical stimulation synchronization strategy.

[0166] Step S213, when the current time delay synchronization strategy is the magnetic resonance synchronization strategy and the layer selection gradient magnetic field is turned on, a scanning excitation imaging sequence and a layer selection gradient magnetic field pulse sequence generated by the magnetic resonance imaging system are acquired, and a first time synchronization sequence is generated based on the scanning excitation imaging sequence and the layer selection gradient magnetic field pulse sequence.

[0167] Step S214, based on the first time synchronization sequence and the first time delay, and through the magnetic field inspection strategy, iterative time synchronization processing is performed on the magnetic resonance imaging system and the active implantable medical device to complete the time synchronization task.

[0168] Step S215, when the current time delay synchronization strategy is the electrical stimulation synchronization strategy and before each electrical stimulation state change moment in the scanning excitation imaging sequence, respectively add an indication pulse to obtain a second time synchronization sequence.

[0169] Step S216, based on the second time synchronization sequence and the second time delay, through the electrical stimulation state control strategy, iterative time synchronization processing is performed on the magnetic resonance imaging system and the active implantable medical device to complete the time synchronization task.

[0170] Step S217, generating a timetable based on the scanning excitation imaging sequence, the first time delay, and the second time delay, and identifying the start time of each selected layer gradient magnetic field and the change time of each electrical stimulation state based on the scanning excitation imaging sequence.

[0171] Step S218, when the current time delay synchronization strategy is the double time delay synchronization strategy, based on the timetable, the start time of each layer selection gradient magnetic field, and the change time of each electrical stimulation state, the magnetic resonance imaging system and the active implantable medical device are time synchronized to complete the time synchronization task.

[0172] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0173] Based on the same inventive concept, the embodiment of the present application also provides a device for synchronizing an implantable electrical stimulator with a magnetic resonance imaging scan for realizing the method for synchronizing an implantable electrical stimulator with a magnetic resonance imaging scan mentioned above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in the embodiments of the device for synchronizing one or more implantable electrical stimulators with a magnetic resonance imaging scan provided below can be referred to the limitations of the method for synchronizing an implantable electrical stimulator with a magnetic resonance imaging scan above, and will not be repeated here.

[0174] In an exemplary embodiment, Figure 3As shown, a device for synchronizing an implantable electrical stimulator with a magnetic resonance imaging scan is provided, comprising: a detection module 310, an identification module 320 and a synchronization module 330, wherein:

[0175] A detection module 310, configured to detect a first time delay between a magnetic resonance imaging system and an active implantable medical device through a magnetic field detection strategy, and to detect a second time delay between the active implantable medical device and the magnetic resonance imaging system through an electrical stimulation state control strategy;

[0176] An identification module 320, configured to collect device detection information of a delay synchronization device and identify a current delay synchronization strategy based on the device detection information;

[0177] The synchronization module 330 is used to perform time synchronization processing on the magnetic resonance imaging system and the active implantable medical device based on the first time delay and the second time delay through the current time delay synchronization strategy.

[0178] Optionally, the detection module 310 is specifically configured to:

[0179] Acquire a first local time of a magnetic field detection module and a second local time of an implantable pulse generator, detect the start time of a layer-selective gradient magnetic field through the magnetic field detection module, obtain a first detection time, and send a first Bluetooth signal to the implantable pulse generator through the magnetic field detection module;

[0180] When the implantable pulse generator receives the first Bluetooth signal, collecting the second detection time recorded by the implantable pulse generator, and generating a new electrical stimulation state of the active implantable medical device through the implantable pulse generator;

[0181] Based on the electrical stimulation state, adjusting the active implantable medical device to obtain a third detection time, and generating a second Bluetooth signal based on the implantable pulse generator;

[0182] The second Bluetooth signal is sent to the magnetic field detection module through the implantable pulse generator, and when the magnetic field detection module receives the second Bluetooth signal, a fourth detection time recorded by the magnetic field detection module is collected;

[0183] Based on the first detection time, the second detection time, the third detection time, and the fourth detection time, a first time delay between the magnetic resonance imaging system and the active implantable medical device is calculated by a first time delay algorithm.

[0184] Optionally, the detection module 310 is specifically configured to:

[0185] In response to the user's electrical stimulation change operation, acquiring the local time of the remote control terminal of the active implantable medical device and a change Bluetooth signal for changing the electrical stimulation state;

[0186] sending the changed Bluetooth signal to the active implantable medical device via the remote control terminal, and based on the reception time of the changed Bluetooth signal received by the active implantable medical device;

[0187] In response to the user's magnetic field turning on operation, a first turning-on time recorded by the remote control terminal and a second turning-on time when the magnetic resonance imaging system is turned on are obtained, and based on the local time, the receiving time, the first turning-on time, and the second turning-on time, a second time delay algorithm is used to calculate the second time delay between the active implantable medical device and the magnetic resonance imaging system.

[0188] Optionally, the identification module 320 is specifically configured to:

[0189] Based on the device detection information, identifying a device synchronization mode of the time delay synchronization device and a synchronization direction of the time delay synchronization device;

[0190] When the device synchronization mode is a dual-delay synchronization mode, determining that the current delay synchronization strategy is a dual-delay synchronization strategy; when the device synchronization mode is a single-delay synchronization mode, identifying the current delay synchronization strategy based on the synchronization direction of the delay synchronization device;

[0191] When the device synchronization direction is from the magnetic resonance imaging system to the active implantable medical device for delay synchronization, the current delay synchronization strategy is the magnetic resonance synchronization strategy, and when the device synchronization direction is from the active implantable medical device to the magnetic resonance imaging system for delay synchronization, the current delay synchronization strategy is the electrical stimulation synchronization strategy.

[0192] Optionally, the synchronization module 330 is specifically used to:

[0193] When the slice selection gradient magnetic field is turned on, a scanning excitation imaging sequence and a slice selection gradient magnetic field pulse sequence generated by the magnetic resonance imaging system are collected, and a first time synchronization sequence is generated based on the scanning excitation imaging sequence and the slice selection gradient magnetic field pulse sequence;

[0194] Based on the first time synchronization sequence and the first time delay, the magnetic field inspection strategy is used to iteratively synchronize time between the magnetic resonance imaging system and the active implantable medical device to complete the time synchronization task.

[0195] Optionally, the synchronization module 330 is specifically used to:

[0196] Before each electrical stimulation state change moment in the scanning excitation imaging sequence, respectively add an indication pulse to obtain a second time synchronization sequence;

[0197] Based on the second time synchronization sequence and the second time delay, the magnetic resonance imaging system and the active implantable medical device are iteratively time synchronized through the electrical stimulation state control strategy to complete the time synchronization task.

[0198] Optionally, the synchronization module 330 is specifically used to:

[0199] Generate a timetable based on the scanning excitation imaging sequence, the first time delay, and the second time delay, and identify the start time of each of the selected layer gradient magnetic fields and the change time of each of the electrical stimulation states based on the scanning excitation imaging sequence;

[0200] Based on the timetable, the start time of each of the layer selection gradient magnetic fields, and the change time of each of the electrical stimulation states, the magnetic resonance imaging system and the active implantable medical device are time synchronized to complete the time synchronization task.

[0201] Each module in the device for synchronizing the implantable electrical stimulator with magnetic resonance imaging scanning can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0202] In an exemplary embodiment, a computer device is provided. The computer device may be a terminal, and its internal structure diagram may be as shown in FIG. Figure 4As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in an effective or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a method for synchronizing an implantable electrical stimulator with a magnetic resonance imaging scan is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0203] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0204] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the steps of any one of the methods in the first aspect are implemented.

[0205] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of any one of the methods in the first aspect are implemented.

[0206] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the steps of any one of the methods in the first aspect.

[0207] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant regulations.

[0208] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0209] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0210] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for synchronizing an implantable electrical stimulator with a magnetic resonance imaging scan, It is characterized in that The method comprises: Detecting a first time delay between a magnetic resonance imaging system and an active implantable medical device through a magnetic field inspection strategy, and detecting a second time delay between the active implantable medical device and the magnetic resonance imaging system through an electrical stimulation state control strategy; Collecting device detection information of the delay synchronization device, and identifying the current delay synchronization strategy based on the device detection information; Based on the first time delay and the second time delay, the magnetic resonance imaging system and the active implantable medical device are time synchronized by using the current time delay synchronization strategy.

2. The method according to claim 1, It is characterized in that The magnetic field inspection strategy for detecting a first time delay between a magnetic resonance imaging system and an active implantable medical device includes: Acquire a first local time of a magnetic field detection module and a second local time of an implantable pulse generator, detect the start time of a layer-selective gradient magnetic field through the magnetic field detection module, obtain a first detection time, and send a first Bluetooth signal to the implantable pulse generator through the magnetic field detection module; When the implantable pulse generator receives the first Bluetooth signal, collecting the second detection time recorded by the implantable pulse generator, and generating a new electrical stimulation state of the active implantable medical device through the implantable pulse generator; Based on the electrical stimulation state, adjusting the active implantable medical device to obtain a third detection time, and generating a second Bluetooth signal based on the implantable pulse generator; The second Bluetooth signal is sent to the magnetic field detection module through the implantable pulse generator, and when the magnetic field detection module receives the second Bluetooth signal, a fourth detection time recorded by the magnetic field detection module is collected; Based on the first detection time, the second detection time, the third detection time, and the fourth detection time, a first time delay between the magnetic resonance imaging system and the active implantable medical device is calculated by a first time delay algorithm.

3. The method according to claim 2, It is characterized in that The detecting the second time delay between the active implantable medical device and the magnetic resonance imaging system by the electrical stimulation state regulation strategy comprises: In response to the user's electrical stimulation change operation, acquiring the local time of the remote control terminal of the active implantable medical device and a change Bluetooth signal for changing the electrical stimulation state; sending the changed Bluetooth signal to the active implantable medical device via the remote control terminal, and based on the reception time of the changed Bluetooth signal received by the active implantable medical device; In response to the user's magnetic field turning on operation, a first turning-on time recorded by the remote control terminal and a second turning-on time when the magnetic resonance imaging system is turned on are obtained, and based on the local time, the receiving time, the first turning-on time, and the second turning-on time, a second time delay algorithm is used to calculate the second time delay between the active implantable medical device and the magnetic resonance imaging system.

4. The method according to claim 1, It is characterized in that The identifying the current delay synchronization strategy based on the device detection information includes: Based on the device detection information, identifying a device synchronization mode of the time delay synchronization device and a synchronization direction of the time delay synchronization device; When the device synchronization mode is a dual-delay synchronization mode, determining that the current delay synchronization strategy is a dual-delay synchronization strategy; when the device synchronization mode is a single-delay synchronization mode, identifying the current delay synchronization strategy based on the synchronization direction of the delay synchronization device; When the device synchronization direction is from the magnetic resonance imaging system to the active implantable medical device for delay synchronization, the current delay synchronization strategy is the magnetic resonance synchronization strategy, and when the device synchronization direction is from the active implantable medical device to the magnetic resonance imaging system for delay synchronization, the current delay synchronization strategy is the electrical stimulation synchronization strategy.

5. The method according to claim 4, It is characterized in that When the current time delay synchronization strategy is a magnetic resonance synchronization strategy, the magnetic resonance imaging system and the active implantable medical device are time synchronized based on the first time delay and the second time delay through the current time delay synchronization strategy, including: When the slice selection gradient magnetic field is turned on, a scanning excitation imaging sequence and a slice selection gradient magnetic field pulse sequence generated by the magnetic resonance imaging system are collected, and a first time synchronization sequence is generated based on the scanning excitation imaging sequence and the slice selection gradient magnetic field pulse sequence; Based on the first time synchronization sequence and the first time delay, the magnetic field inspection strategy is used to iteratively synchronize time between the magnetic resonance imaging system and the active implantable medical device to complete the time synchronization task.

6. The method according to claim 5, It is characterized in that When the current time delay synchronization strategy is an electrical stimulation synchronization strategy, the magnetic resonance imaging system and the active implantable medical device are time synchronized based on the first time delay and the second time delay through the current time delay synchronization strategy, including: Before each electrical stimulation state change moment in the scanning excitation imaging sequence, respectively add an indication pulse to obtain a second time synchronization sequence; Based on the second time synchronization sequence and the second time delay, the magnetic resonance imaging system and the active implantable medical device are iteratively time synchronized through the electrical stimulation state control strategy to complete the time synchronization task.

7. The method according to claim 5, It is characterized in that When the current time delay synchronization strategy is a dual time delay synchronization strategy, the magnetic resonance imaging system and the active implantable medical device are time synchronized based on the first time delay and the second time delay through the current time delay synchronization strategy, including: Generate a timetable based on the scanning excitation imaging sequence, the first time delay, and the second time delay, and identify the start time of each of the selected layer gradient magnetic fields and the change time of each of the electrical stimulation states based on the scanning excitation imaging sequence; Based on the timetable, the start time of each of the layer selection gradient magnetic fields, and the change time of each of the electrical stimulation states, the magnetic resonance imaging system and the active implantable medical device are time synchronized to complete the time synchronization task.

8. A device for synchronizing an implantable electrical stimulator with a magnetic resonance imaging scan, It is characterized in that The device comprises: A detection module, configured to detect a first time delay between a magnetic resonance imaging system and an active implantable medical device through a magnetic field detection strategy, and to detect a second time delay between the active implantable medical device and the magnetic resonance imaging system through an electrical stimulation state control strategy; An identification module, used to collect device detection information of the delay synchronization device and identify the current delay synchronization strategy based on the device detection information; A synchronization module is used to perform time synchronization processing on the magnetic resonance imaging system and the active implantable medical device based on the first time delay and the second time delay through the current time delay synchronization strategy.

9. A computer device comprising a memory and a processor, wherein the memory stores a computer program. It is characterized in that When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

11. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Method for monitoring temperatures of tissues around active implantation object and magnetic resonance imaging system

    CN106667487A

  • Calculating method and device for electroacupuncture starting time

    CN110638451A

  • Magnetic resonance system and control method and device of magnetic resonance system

    CN111248911A

  • Magnetic resonance imaging scanning method and magnetic resonance imaging system

    CN112336332A

  • Magnetic resonance imaging method and system and non-transient computer readable storage medium

    CN112704484A