Method for synchronizing an implantable electrical stimulator with a magnetic resonance imaging scan and apparatus therefor

By detecting the time delay between the magnetic resonance imaging system and the active implantable medical device, and using magnetic field and electrical stimulation state control strategies to achieve time synchronization, the problem of poor timeliness of magnetic resonance imaging in patients with implantable neurostimulators is solved, and the accuracy of time synchronization and imaging effect are improved.

CN119113395BActive Publication Date: 2026-04-21TSINGHUA UNIVERSITY
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
TSINGHUA UNIVERSITY
Filing Date
2024-09-25
Publication Date
2026-04-21

AI Technical Summary

Technical Problem

In traditional techniques, when patients with implanted neurostimulators undergo magnetic resonance imaging (MRI), the MRI system cannot be effectively connected to the active implantable medical device, resulting in poor timeliness of MRI imaging.

Method used

By employing magnetic field detection and electrical stimulation state modulation strategies, the time delay between the magnetic resonance imaging system and the active implantable medical device is detected. Furthermore, by using the device detection information from the time delay synchronization device, the current time delay synchronization strategy is identified, thereby achieving time synchronization processing.

Benefits of technology

This improves the accuracy of time synchronization and the timeliness of magnetic resonance imaging, ensuring the effectiveness of magnetic resonance imaging for users of implanted electrodes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119113395B_ABST
    Figure CN119113395B_ABST
Patent Text Reader

Abstract

This application relates to a method and apparatus for synchronizing an implantable electrical stimulator with a magnetic resonance imaging (MRI) scan. The method includes: detecting a first time delay between the MRI system and the active implantable medical device using a magnetic field detection strategy, and detecting a second time delay between the active implantable medical device and the MRI system using an electrical stimulation state modulation strategy; acquiring device detection information from a time delay synchronization device, and identifying a current time delay synchronization strategy based on the device detection information; and performing time synchronization processing between the MRI system and the active implantable medical device based on the first time delay and the second time delay, using the current time delay synchronization strategy. This method improves the timeliness of MRI scans for users with implanted electrodes.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of time synchronization technology, and in particular to a method and apparatus for synchronizing an implantable electrical stimulator with a magnetic resonance imaging scan. Background Technology

[0002] Active implantable medical devices can be used to treat a variety of diseases. Among them, implantable electrical stimulators are widely used. These stimulators deliver electrical stimulation therapy to users through electrodes implanted in the body. Clinicians can adjust the electrical stimulation parameters of the implantable electrical stimulator using programming devices to ensure the effectiveness of the stimulation. For users of implantable neurostimulators, their neural activity may be directly related to the electrical stimulation. Magnetic resonance imaging (MRI) systems can detect brain activity, thus ensuring effective cooperation between implanted devices and MRI technology for more accurate monitoring and analysis of neural states. Therefore, improving the accuracy of MRI imaging for patients using active implantable medical devices is a current research focus.

[0003] In traditional techniques for performing MRI on patients with implanted neurostimulators, the MRI system and the active implantable medical device cannot be effectively connected, which can lead to abnormalities in the MRI process and result in poor timeliness for MRI on users with implanted electrodes. Summary of the Invention

[0004] Therefore, it is necessary to provide a method, apparatus, computer equipment, computer-readable storage medium, and computer program product for synchronizing an implantable electrical stimulator with magnetic resonance imaging scans, in response to the aforementioned technical problems.

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

[0006] The first time delay between the magnetic resonance imaging system and the active implantable medical device is detected by a magnetic field inspection strategy, and the second time delay between the active implantable medical device and the magnetic resonance imaging system is detected by an electrical stimulation state modulation strategy.

[0007] Collect device detection information of the time delay synchronization device, and identify the current time 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 synchronized in time using the current time delay synchronization strategy.

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

[0010] The system acquires the first local time of the magnetic field detection module and the second local time of the implanted pulse generator. Through the magnetic field detection module, it detects the activation time of the selected gradient magnetic field to obtain the first detection time. Then, it sends a first Bluetooth signal to the implanted pulse generator through the magnetic field detection module.

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

[0012] 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.

[0013] The second Bluetooth signal is sent to the magnetic field detection module through the implanted pulse generator, and when the magnetic field detection module receives the second Bluetooth signal, the 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 using 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 an electrical stimulation state modulation strategy includes:

[0016] 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 for changing the electrical stimulation state are acquired.

[0017] The remote control terminal sends the modified Bluetooth signal to the active implantable medical device, and the active implantable medical device receives the modified Bluetooth signal based on the reception time.

[0018] In response to the user's magnetic field activation operation, the system acquires the first activation time recorded by the remote control terminal and the second activation time of the magnetic resonance imaging system. Based on the local time, the receiving time, the first activation time, and the second activation time, the system calculates the second time delay between the active implantable medical device and the magnetic resonance imaging system using a second time delay algorithm.

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

[0020] Based on the device detection information, the device synchronization method and synchronization direction of the time delay synchronization device are identified.

[0021] When the device synchronization mode is dual-delay synchronization mode, the current delay synchronization strategy is determined to be dual-delay synchronization strategy; when the device synchronization mode is single-delay synchronization mode, the current delay synchronization strategy is identified 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 time delay synchronization, the current time delay synchronization strategy is the magnetic resonance synchronization strategy. When the device synchronization direction is from the active implantable medical device to the magnetic resonance imaging system for time delay synchronization, the current time 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 step of synchronizing the magnetic resonance imaging system and the active implantable medical device based on the first time delay and the second time delay using the current time delay synchronization strategy includes:

[0024] When the selected gradient magnetic field is activated, the scanning excitation imaging sequence and the selected 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 selected gradient magnetic field pulse sequence.

[0025] 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 synchronized using the magnetic field inspection strategy to complete the time synchronization task.

[0026] Optionally, when the current time delay synchronization strategy is an electrical stimulation synchronization strategy, the step of synchronizing the magnetic resonance imaging system and the active implantable medical device based on the first time delay and the second time delay using the current time delay synchronization strategy includes:

[0027] Before each electrical stimulation state change moment in the scanning excitation imaging sequence, an indicator pulse is added 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 synchronized using the electrical stimulation state modulation strategy to complete the time synchronization task.

[0029] Optionally, when the current time delay synchronization strategy is a dual-time delay synchronization strategy, the step of synchronizing the magnetic resonance imaging system and the active implantable medical device based on the first time delay and the second time delay using the current time delay synchronization strategy includes...

[0030] Based on the scan-excited imaging sequence, the first time delay, and the second time delay, a timetable is generated, and based on the scan-excited imaging sequence, the activation time of each selected layer gradient magnetic field and the change time of each electrical stimulation state are identified.

[0031] Based on the timetable, the activation time of each selected 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.

[0032] Secondly, this application also provides a device for synchronizing an implantable electrical stimulator with a magnetic resonance imaging scan, comprising:

[0033] The detection module is used to detect the first time delay between the magnetic resonance imaging system and the active implantable medical device through a magnetic field inspection strategy, and to detect the second time delay between the active implantable medical device and the magnetic resonance imaging system through an electrical stimulation state modulation strategy.

[0034] The identification module is used to collect device detection information of the time delay synchronization device and identify the current time delay synchronization strategy based on the device detection information.

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

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

[0037] The system acquires the first local time of the magnetic field detection module and the second local time of the implanted pulse generator. Through the magnetic field detection module, it detects the activation time of the selected gradient magnetic field to obtain the first detection time. Then, it sends a first Bluetooth signal to the implanted pulse generator through the magnetic field detection module.

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

[0039] 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.

[0040] The second Bluetooth signal is sent to the magnetic field detection module through the implanted pulse generator, and when the magnetic field detection module receives the second Bluetooth signal, the 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 using a first time delay algorithm.

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

[0043] 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 for changing the electrical stimulation state are acquired.

[0044] The remote control terminal sends the modified Bluetooth signal to the active implantable medical device, and the active implantable medical device receives the modified Bluetooth signal based on the reception time.

[0045] In response to the user's magnetic field activation operation, the system acquires the first activation time recorded by the remote control terminal and the second activation time of the magnetic resonance imaging system. Based on the local time, the receiving time, the first activation time, and the second activation time, the system calculates the second time delay between the active implantable medical device and the magnetic resonance imaging system using a second time delay algorithm.

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

[0047] Based on the device detection information, the device synchronization method and synchronization direction of the time delay synchronization device are identified.

[0048] When the device synchronization mode is dual-delay synchronization mode, the current delay synchronization strategy is determined to be dual-delay synchronization strategy; when the device synchronization mode is single-delay synchronization mode, the current delay synchronization strategy is identified 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 time delay synchronization, the current time delay synchronization strategy is the magnetic resonance synchronization strategy. When the device synchronization direction is from the active implantable medical device to the magnetic resonance imaging system for time delay synchronization, the current time delay synchronization strategy is the electrical stimulation synchronization strategy.

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

[0051] When the selected gradient magnetic field is activated, the scanning excitation imaging sequence and the selected 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 selected gradient magnetic field pulse sequence.

[0052] 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 synchronized using the magnetic field inspection strategy to complete the time synchronization task.

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

[0054] Before each electrical stimulation state change moment in the scanning excitation imaging sequence, an indicator pulse is added 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 synchronized using the electrical stimulation state modulation strategy to complete the time synchronization task.

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

[0057] Based on the scan-excited imaging sequence, the first time delay, and the second time delay, a timetable is generated, and based on the scan-excited imaging sequence, the activation time of each selected layer gradient magnetic field and the change time of each electrical stimulation state are identified.

[0058] Based on the timetable, the activation time of each selected 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.

[0059] Thirdly, this application provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps of the method described in any one of the first aspects.

[0060] Fourthly, this application provides a computer-readable storage medium having a computer program stored thereon that, when executed by a processor, implements the steps of the method described in any one of the first aspects.

[0061] Fifthly, this application provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the steps of the method described in any one of the first aspects.

[0062] The aforementioned method and apparatus for synchronizing an implantable electrical stimulator with a magnetic resonance imaging (MRI) scan utilizes a magnetic field detection strategy to detect a first time delay between the MRI system and the active implantable medical device, and an electrical stimulation state control strategy to detect a second time delay between the active implantable medical device and the MRI system. It collects device detection information from a time-delay synchronization device and identifies the current time-delay synchronization strategy based on this information. Based on the first and second time delays, the MRI system and the active implantable medical device are time-synchronized using the current time-delay synchronization strategy. This solution improves the accuracy of time delay identification by using both magnetic field detection and electrical stimulation state control strategies to detect the time delay between the MRI system and the active implantable medical device. Furthermore, by detecting the device detection information from the time-delay synchronization device, the solution determines the time synchronization method to ensure time synchronization can be performed in different time-delay synchronization devices. Compared to traditional time synchronization solutions, this solution addresses the challenge of using a magnetic resonance imaging (MRI) system and an active implantable medical device. These two devices are independent and cannot be effectively connected. By providing device detection information from multiple time-delay synchronization devices, different time synchronization operations can be performed. This not only improves the accuracy of time synchronization but also enhances the timeliness of MRI imaging for users with implanted electrodes. Attached Figure Description

[0063] To more clearly illustrate the technical solutions in the embodiments or related technologies of this application, the accompanying drawings used in the description of the embodiments or related technologies will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0064] Figure 1 This is a flowchart illustrating a method for synchronizing an implantable electrical stimulator with a magnetic resonance imaging scan in one embodiment.

[0065] Figure 2 This is a flowchart illustrating an example of synchronizing an implanted electrical stimulator with a magnetic resonance imaging scan in one embodiment.

[0066] Figure 3 This 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 This is an internal structural diagram of a computer device in one embodiment. Detailed Implementation

[0068] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.

[0069] The method for synchronizing an implantable electrical stimulator with magnetic resonance imaging (MRI) scans provided in this application can be applied to MRI environments for users with implanted electrodes. This method can be applied to a terminal, a server, or a system including both a terminal and a server, and is implemented through interaction between the terminal and the server. The terminal can be, but is not limited to, various personal computers, laptops, etc. The terminal detects the time delay between the MRI system and the active implantable medical device using two methods: a magnetic field detection strategy and an electrical stimulation state control strategy, improving the accuracy of time delay identification. This solution then determines the time synchronization method by detecting the device detection information of the time delay synchronization devices to ensure time synchronization processing can be performed in different time delay synchronization devices. Compared to traditional time synchronization solutions, this solution addresses the scenario where one is an MRI system and the other is an active implantable medical device, both of which are independent and cannot be effectively connected. By providing device detection information from multiple time delay synchronization devices, different time synchronization operations can be performed, improving not only the accuracy of time synchronization but also the timeliness of MRI scans for users with implanted active medical devices. The first time delay adjustment strategy is to monitor the activation time of the slice gradient magnetic field of the MRI system, thereby coordinating the electrical stimulation state of the AIMD and achieving the time delay for clock synchronization between the AIMD and MRI. The second time delay adjustment strategy is to achieve the time delay for synchronization between the two by detecting the electrical stimulation in coordination with the magnetic field.

[0070] In one exemplary embodiment, such as Figure 1 As shown, a method for synchronizing an implantable electrical stimulator with a magnetic resonance imaging scan is provided. Taking the application of this method to a terminal as an example, the method includes the following steps S101 to S103. Wherein:

[0071] Step S101: Detect the first time delay between the magnetic resonance imaging system and the active implantable medical device using a magnetic field detection strategy, and detect the second time delay between the active implantable medical device and the magnetic resonance imaging system using an electrical stimulation state modulation 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 pre-installed in the magnetic resonance imaging system. The magnetic field detection module comprises 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. It can also be externally connected to speakers, indicator lights, and other indicative components to indicate whether the time delay meets requirements. The crystal oscillator provides a stable clock signal to the microprocessor. This clock signal is extremely important in electronic systems, providing the necessary time reference for the processor's computation 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 are performed at the same standard time, thereby guaranteeing the synchronization and accuracy of operations within the module. The LCD display provides users with an intuitive user interface to display various delay data measured by the system. This display capability allows researchers to observe the system's status and performance, such as key parameters like delay, in real time. The high visibility and readability of the LCD display make it an ideal choice for monitoring complex system operations, especially in experimental and testing environments requiring rapid and accurate data reading. Then, the terminal connects the IPG in the user's body to a remote control terminal (tablet, computer, etc.) via Bluetooth to read the state of electrical stimulation in real time. Based on the connection status, the remote control terminal detects the second time delay between the active implantable medical device and the magnetic resonance imaging system through an electrical stimulation state modulation strategy. The specific detection process will be described in detail later. The above embodiment is used for MRI systems where a clock signal cannot be obtained. For MRI systems where a clock signal can be obtained, achieving the coordination of IPG electrical stimulation and MRI scanning does not require a magnetic field sensor to detect the slice gradient magnetic field. The abbreviations in the above text refer to Implantable Pulse Generator (IPG), Active Implantable Medical Device (AIMD), Magnetic Resonance Imaging (MRI), and Functional Magnetic Resonance Imaging (fMRI), respectively.

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

[0074] In this embodiment, the terminal collects device detection information from the latency synchronization device and identifies the current latency synchronization strategy based on the device detection information. The experimental synchronization device includes latency synchronization devices with various functions, and different functions correspond to different latency synchronization strategies. Therefore, this solution identifies the device functions of the latency synchronization device through device detection, thereby determining the current latency synchronization strategy. The specific identification process will be explained 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 synchronized in time using the current time delay synchronization strategy.

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

[0077] Based on the above scheme, this solution uses two methods—magnetic field detection and electrical stimulation state modulation—to detect the time delay between the magnetic resonance imaging system and the active implantable medical device, improving the accuracy of time delay identification. Furthermore, this scheme determines the time synchronization method by detecting the device detection information of the time delay synchronization devices, ensuring time synchronization processing can be performed in different time delay synchronization devices. Compared to traditional time synchronization schemes, this solution is particularly advantageous because the application scenario involves an magnetic resonance imaging system and an active implantable medical device, both of which are independent and cannot be effectively connected. By providing device detection information from multiple time delay synchronization devices and performing different time synchronization operations, this solution not only improves the accuracy of time synchronization but also enhances the timeliness of magnetic resonance imaging for users with implanted electrodes.

[0078] Optionally, a magnetic field detection strategy is used to detect the first time delay between the magnetic resonance imaging system and the active implantable medical device, including: acquiring the first local time of the magnetic field detection module and the second local time of the implantable pulse generator; detecting the activation time of the slice gradient magnetic field through the magnetic field detection module to obtain the 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, acquiring 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; adjusting the active implantable medical device based on the electrical stimulation state 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 acquiring the fourth detection time recorded by the magnetic field detection module when the magnetic field detection module receives the second Bluetooth signal; and calculating the 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 using a first time delay algorithm.

[0079] In this embodiment, the terminal acquires the first local time of the magnetic field detection module and the second local time of the implantable pulse generator. Using the magnetic field detection module, it detects the activation time of the selected gradient magnetic field to obtain the first detection time, and then sends a first Bluetooth signal to the implantable pulse generator. This first Bluetooth signal is used to instruct the implantable pulse generator to adjust its electrical stimulation state. In another embodiment, the terminal uses a synchronization box instead of the magnetic field detection module 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 for the active implantable medical device through the implantable pulse generator.

[0081] Based on the electrical stimulation state, the terminal adjusts the active implantable medical device to obtain a third detection time, and generates a second Bluetooth signal based on the implantable pulse generator. This second Bluetooth signal serves as feedback on the current electrical stimulation state and the successful adjustment of the electrical stimulation state.

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

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

[0084] Specifically, the terminal designates the magnetic field detection module as Device A, with its local time as AT, and the implanted pulse generator as Device B, with its local time as BT. The two are not synchronized.

[0085] Using a magnetic field detection module, a command signal can be generated when the selected gradient magnetic field is activated. Upon detecting the activation of the selected gradient magnetic field, the magnetic field detection module writes its local time into memory, denoted as AT1.

[0086] When triggered by the instruction to activate the selected gradient magnetic field, the microprocessor of the magnetic field detection module fills the instruction to change the electrical stimulation state into the specified Bluetooth message format and transmits it to the implantable pulse generator via Bluetooth signal.

[0087] When the Bluetooth module of the implantable pulse generator receives a signal, it writes the local time of the received signal into the memory, denoted as BT1.

[0088] The microprocessor of the implantable pulse generator decodes the signal to obtain instructions to change the electrical stimulation state of the implantable pulse generator, and then changes the electrical stimulation state through the electrical pulse generation circuit.

[0089] When the electrical stimulation state changes, the current feedback circuit inside the implantable pulse generator detects the change and transmits the signal to the microprocessor. The microprocessor writes the local time of the implantable pulse generator at this moment into its memory, denoted as BT2.

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

[0091] When the Bluetooth module of the magnetic field detection module receives a 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's time delay T can be determined by the time delay of the Bluetooth signal transmission between the magnetic field detection module and the implanted pulse generator. The time delay between T1 and the implanted pulse generator receiving the command and the signal processing time between changing the electrical stimulation state. The result is obtained by adding T2 together.

[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. Therefore, it is assumed that the time delay of the Bluetooth signal 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] At this point, we have obtained BT1, BT2, AT1, and AT2. We can then use a microprocessor to calculate the delay and write it into memory. The formula for calculating the delay is as follows: Therefore, we can calculate... T1 and T2 is displayed on the LCD screen of the magnetic field detection module for the operator to observe.

[0095]

[0096] Therefore, the system's time delay can be obtained. T

[0097]

[0098] In MRI systems with available clock signals, the terminal connects to both the MRI system and the control unit of the implanted pulse generator via a synchronization box containing a microprocessor. The remote control unit, located outside the MRI scanning room, controls the electrical pulses generated by the implanted pulse generator via Bluetooth.

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

[0100] When the synchronization box detects that the MRI has activated the slice-selective gradient magnetic field, the synchronization box sends a signal command to the remote control terminal, which records the local time AT1 at that moment.

[0101] This signal instruction has the same meaning as the local time AT1 recorded by the magnetic field detection module above when it detects the activation of the selected gradient magnetic field; both indicate the moment when the selected gradient magnetic field is activated.

[0102] The synchronization box receives the signal that the selected gradient magnetic field is turned on and transmits the signal to the remote control terminal via a wired connection. The implanted 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. When the electrical stimulation state changes, it receives a signal from the electrical stimulation feedback circuit and writes the local time at this moment into the memory, denoted as BT2. The microprocessor of the implantable pulse generator fills BT1 and BT2 into a Bluetooth message and sends it to the remote control terminal via Bluetooth.

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

[0105] The time delay can be calculated using the same method as described above. T, and displayed on the remote controller.

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

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

[0108] Optionally, a second time delay between the active implantable medical device and the magnetic resonance imaging system is detected through an electrical stimulation state modulation strategy. This includes: in response to a user's electrical stimulation change operation, acquiring the local time of the remote control terminal of the active implantable medical device and the Bluetooth signal indicating the change in electrical stimulation state; sending the Bluetooth signal indicating the change in electrical stimulation state to the active implantable medical device via the remote control terminal (i.e., the first time point), and acquiring the time of receiving the changed 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, acquiring the first activation time of the new electrical stimulation state (i.e., the third time point), and transmitting the acquired second and third time points to the remote control terminal via Bluetooth; and acquiring the local time of the remote control terminal receiving the Bluetooth signal (i.e., the fourth time point).

[0109] In response to the user's magnetic field activation operation, the system acquires the first activation time recorded by the remote control terminal and the second activation time point (i.e., the fifth time point) of the magnetic resonance imaging system activation time. Based on the local time, the receiving time, the first activation time, and the second activation time, the system calculates the second time delay between the active implantable medical device and the magnetic resonance imaging system using a second time delay algorithm.

[0110] In this embodiment, in response to the user's change of electrical stimulation operation, the terminal obtains the local time of the remote control terminal of the active implantable medical device and the change Bluetooth signal for changing the electrical stimulation state. 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 change of electrical stimulation state based on the local time of the implantable pulse generator.

[0111] Then, in response to the user's magnetic field activation operation, the terminal acquires the first activation time recorded by the remote control terminal and the second activation time point of the magnetic resonance imaging system. Based on the local time, the reception time, the first activation time, and the second activation time, it calculates the second time delay between the active implantable medical device and the magnetic resonance imaging system using a second time delay algorithm. A total of five time points are used in calculating the second time delay, 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 selected gradient magnetic field. T. System time delay T can be determined by the time delay of the Bluetooth signal transmission between the implanted pulse generator and the remote control terminal. Time delay between T3 receiving the command from the remote control terminal and the MRI activating the slice-selective gradient magnetic field. The result is obtained by adding T4 together.

[0113] First, using the method described above, measurements were obtained. T3.

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

[0115] When the remote control terminal receives a Bluetooth command to turn on the magnetic field, it automatically or manually controls the MRI system to turn on via wired connection through the MRI console. When the magnetic field sensor detects the selected gradient magnetic field, the signal is transmitted to the console via wired transmission. The time delay of wired transmission is negligible, and the MRI writes the time AT3 at this moment into its memory.

[0116] Therefore, we can obtain T4:

[0117] T4 = AT3 - AT2

[0118] At this point, the time delay can be obtained. T, and can be displayed on a remote control terminal or MRI console, with the following time delay:

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

[0120] In another embodiment, the terminal needs to obtain the system's time delay through a synchronization box. T. This acquisition method can use a synchronization box to reduce the time delay of Bluetooth signal transmission between the implanted pulse generator and the remote control terminal. Time delay between T6 receiving the command from the remote control terminal and the MRI activating the slice-selective gradient magnetic field. The time delay is obtained by adding T7. The difference between this embodiment and the previous embodiment is that the time delay in this embodiment is obtained through the synchronization box, while the time delay in the previous embodiment is obtained through the magnetic field detection module.

[0121] The time delay can be obtained using the calculation method described above. T, and displayed on the remote control terminal.

[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 magnetic resonance imaging or electrical stimulation state detection strategies. The time delay measured and calculated provides control data for achieving clock synchronization between MRI and active implantable medical devices.

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

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

[0126] Specifically, when the device synchronization method is dual-delay synchronization, the current delay synchronization strategy is determined to be a dual-delay synchronization strategy. When the device synchronization method is single-delay synchronization, 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, 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, the current delay synchronization strategy is the electrical stimulation synchronization strategy. The synchronization factors to be considered when the synchronization direction is single-delay synchronization include the synchronization direction from the active implantable medical device to the magnetic resonance imaging system and the synchronization direction from the magnetic resonance imaging system to the active implantable medical device. When the current time delay synchronization strategy is an electrical stimulation synchronization strategy, the synchronization direction is from the magnetic resonance imaging system to the active implantable medical device for time delay synchronization; when the current time delay synchronization strategy is a magnetic resonance synchronization strategy, the synchronization direction is from the active implantable medical device to the magnetic resonance imaging system for time delay synchronization.

[0127] Based on the above scheme, the accuracy of identifying device functions is improved by recognizing the device synchronization method and synchronization direction of the time-delay synchronization device.

[0128] Optionally, when the current time-delay synchronization strategy is a magnetic resonance synchronization strategy, based on a first time delay and a second time delay, the magnetic resonance imaging system and the active implantable medical device are time-synchronized using the current time-delay synchronization strategy. This includes: when the slice gradient magnetic field is activated, acquiring the scanning excitation imaging sequence and the slice gradient magnetic field pulse sequence generated by the magnetic resonance imaging system, and generating a first time synchronization sequence based on the scanning excitation imaging sequence and the slice gradient magnetic field pulse sequence; and iteratively synchronizing the magnetic resonance imaging system and the active implantable medical device based on the first time synchronization sequence and the first time delay using a magnetic field inspection strategy to complete the time synchronization task.

[0129] In this embodiment, when the slice gradient magnetic field is activated, the terminal acquires the scanning excitation imaging sequence and the slice 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 slice 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 a magnetic field inspection strategy to complete the time synchronization task.

[0130] Specifically, when a user undergoes an MRI scan, the terminal uses the magnetic field detection module mentioned above to measure the selected slice gradient magnetic field. When the magnetic field detection module detects a selected slice direction indicator magnetic field pulse, it writes the local time AT4 into the memory of the magnetic field detection module.

[0131] The microprocessor of the magnetic field detection module is in AT4+T- At time T, a signal to change the electrical stimulation state is sent to the implantable pulse generator via Bluetooth module. Upon receiving the signal, the implantable pulse generator immediately controls the stimulation circuit to change the electrical stimulation state. This method eliminates the time delay caused by signal transmission and processing between the MRI system and the neurostimulation system, enabling time synchronization between MRI and active implantable medical devices.

[0132] In another embodiment, the terminal indicates the activation time of the layer selection gradient magnetic field via a synchronization box. When the synchronization box sends a pulse to activate the layer selection direction indication magnetic field, the local time AT4 is written to the memory in the magnetic field detection module.

[0133] The remote control terminal is in AT4+T- At time T, a signal to change the electrical stimulation state is sent to the implantable pulse generator via Bluetooth module. Upon receiving the signal, the implantable pulse generator immediately controls the stimulation circuit to change the electrical stimulation state. This method eliminates the time delay caused by signal transmission and processing between the MRI system and the neurostimulation system, enabling time synchronization between MRI and active implantable medical devices.

[0134] Based on the above scheme, for MRI devices that 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. Then, based on the commonly used GRE-EPI sequence for fMRI, a new imaging sequence containing indicator signals is created. The aforementioned algorithm is used to eliminate the time difference, ensuring precise alignment between the change in electrical stimulation state and the activation time of the slice-selective gradient magnetic field of the MRI system, thereby achieving clock synchronization between the two.

[0135] Optionally, when the current time delay synchronization strategy is an 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 using the current time delay synchronization strategy. This includes: adding indicator pulses before each electrical stimulation state change moment in the scanning excitation imaging sequence to obtain a second time synchronization sequence; and iteratively synchronizing the magnetic resonance imaging system and the active implantable medical device based on the second time synchronization sequence and the second time delay using an electrical stimulation state control strategy to complete the time synchronization task.

[0136] In this embodiment, the terminal adds an indicator pulse before each change in electrical stimulation state in the scanning and 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 an electrical stimulation state control strategy to complete the time synchronization task. Specifically, during the user's MRI scan, the terminal inserts an indicator pulse at time T before each change in electrical stimulation state. When the current feedback loop in the implantable pulse generator detects the indicator pulse, the time point is recorded as X. The microprocessor built into the implantable pulse generator transmits the signal via Bluetooth module to the device at time X+T-. At time T, a command to start the MRI scan is sent to the remote control terminal. This method can align the timing of the electrical stimulation change with the MRI scan time clock, thus achieving clock synchronization between the active implantable medical device and the MRI.

[0137] Based on the above scheme, for active implantable medical devices that support customized control of electrical stimulation states over time, an electrical stimulation synchronization strategy can be adopted to achieve time synchronization between the active implantable medical device and the MRI system. In this scheme, a 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 a preset time change sequence, and a corresponding algorithm is used to eliminate time differences, ensuring that the change in the electrical stimulation state is precisely aligned with the activation time of the slice-selective gradient magnetic field of the MRI system, 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 magnetic resonance imaging system and the active implantable medical device are time-synchronized using the current time delay synchronization strategy. This includes: generating a timetable based on the scan-excited imaging sequence, the first time delay, and the second time delay; identifying the activation time of each selected layer gradient magnetic field and the change time of each electrical stimulation state based on the scan-excited imaging sequence; and performing time synchronization processing on the magnetic resonance imaging system and the active implantable medical device based on the timetable, the activation 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 scan-excited imaging sequence, a first time delay, and a second time delay. Based on the scan-excited imaging sequence, it identifies the activation time of each selected layer gradient magnetic field and the change time of each electrical stimulation state. Finally, based on the timetable, the activation time of each selected layer gradient magnetic field, and the change time of each electrical stimulation state, the terminal performs time synchronization processing between the magnetic resonance imaging system and the active implantable medical device, completing the time synchronization task.

[0140] Specifically, the terminal connects the remote control of the implantable pulse generator to the MRI console via a wired connection. It is necessary to measure the time delay between the remote control issuing a command and the implantable pulse generator changing the electrical stimulation state. The time delay between the start of scanning and the activation of the slice-selective gradient magnetic field at the T5 and MRI consoles. T6.

[0141] The remote control terminal and the MRI console are connected via a wired connection, and both share a common time through wired transmission. Let's denote the remote control terminal and the MRI console as device A, and the local time of the implanted pulse generator as device B; the two are not synchronized.

[0142] The terminal measures the data according to the method of measuring the first time delay. T5 was used for measurement.

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

[0144] When the terminal starts scanning, the MRI console writes the current time AT3 into its memory. When the magnetic field sensor detects the selected slice gradient magnetic field, it transmits the signal to the console via wired transmission. The time delay of the wired transmission is negligible, and the MRI writes the current time AT4 into its memory.

[0145] Therefore, a time delay can be obtained. t6, and displayed on the MRI console, is calculated using the following formula:

[0146] T6 = AT4 - AT3

[0147] The terminal obtains through measurement T5 T6. The tester can create a timetable to determine the times t1, t2, t3, etc., when the MRI system's slice-selective gradient magnetic field is activated and when the electrical stimulation state changes. Using this timetable, the tester can manually or automatically adjust the timing before t1, etc. At time T5, a command to change the electrical stimulation state is sent to the implantable pulse generator via a remote control terminal, before time T1, etc. At time T6, an MRI scan is initiated via the MRI control console, thereby enabling simultaneous activation of the slice-selective gradient magnetic field and alteration of the electrical stimulation state at times such as T1. Specific control methods are not limited in this patent.

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

[0149] It is necessary to measure the time delay between the command issued by the remote controller of the implantable pulse generator and the change in the electrical stimulation state of the implantable pulse generator. The time delay between T8 and the synchronization box issuing the command to start the MRI scan and the synchronization box reading the change in the selected gradient magnetic field. T9.

[0150] T8 and The measurement method for T9 is the same as that described above.

[0151] get T8 and After T9, the terminal synchronizes the timing of the activation of the slice-selective gradient magnetic field of the MRI system with the timing of the change in the electrical stimulation state of the neurostimulator.

[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 state changes over time, a dual-delay synchronization method can be used to achieve time synchronization between the MRI system and the active implantable medical device.

[0153] This application also provides a time synchronization example, as shown in Figure 2. The specific processing steps include the following:

[0154] Step S201: Obtain the first local time of the magnetic field detection module and the second local time of the implanted pulse generator. Detect the activation time of the selected gradient magnetic field through the magnetic field detection module to obtain the first detection time. Send the first Bluetooth signal to the implanted pulse generator through the magnetic field detection module.

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

[0156] In 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: The second Bluetooth signal is sent to the magnetic field detection module through the implanted pulse generator, and when the magnetic field detection module receives the second Bluetooth signal, the fourth detection time recorded by the magnetic field detection module is collected.

[0158] Step S205: Based on the first detection time, the second detection time, the third detection time, and the fourth detection time, the first time delay between the magnetic resonance imaging system and the active implantable medical device is calculated using the first time delay algorithm.

[0159] Step S206: 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 for changing the electrical stimulation state are obtained.

[0160] Step S207: The change Bluetooth signal is sent to the active implantable medical device via the remote control terminal, and the reception time of the change Bluetooth signal is based on the active implantable medical device receiving the signal.

[0161] Step S208: In response to the user's magnetic field activation operation, the first activation time recorded by the remote control terminal and the second activation time point of the magnetic resonance imaging system are obtained. Based on the local time, the receiving time, the first activation time, and the second activation time, the second time delay between the active implantable medical device and the magnetic resonance imaging system is calculated using a second time delay algorithm.

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

[0163] Step S210: Based on the device detection information, identify the device synchronization method and synchronization direction of the time delay synchronization device.

[0164] Step S211: When the device synchronization mode is dual-delay synchronization mode, determine that the current delay synchronization strategy is dual-delay synchronization strategy; when the device synchronization mode is 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 time delay synchronization, the current time delay synchronization strategy is the magnetic resonance synchronization strategy. When the device synchronization direction is from the active implantable medical device to the magnetic resonance imaging system for time delay synchronization, the current time 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-selective gradient magnetic field is turned on, the scanning excitation imaging sequence and the layer-selective 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-selective gradient magnetic field pulse sequence.

[0167] Step S214: 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 using a magnetic field inspection strategy to complete the time synchronization task.

[0168] Step S215: Before each change of electrical stimulation state in the current time delay synchronization strategy is the electrical stimulation synchronization strategy and before each change of electrical stimulation state in the scanning excitation imaging sequence, an indicator pulse is added to obtain the second time synchronization sequence.

[0169] Step S216: 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 using an electrical stimulation state modulation strategy to complete the time synchronization task.

[0170] Step S217: Based on the scan-excited imaging sequence, the first time delay, and the second time delay, a timetable is generated, and based on the scan-excited imaging sequence, the activation time of the gradient magnetic field of each selected layer and the change time of each electrical stimulation state are identified.

[0171] Step S218: When the current time delay synchronization strategy is a dual time delay synchronization strategy, based on the time schedule, the activation time of each selected layer 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 steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.

[0173] Based on the same inventive concept, this application also provides an apparatus for synchronizing an implantable electrical stimulator with a magnetic resonance imaging scan, which is used to implement the method for synchronizing an implantable electrical stimulator with a magnetic resonance imaging scan as described above. The solution provided by this apparatus is similar to the solution described in the above method. Therefore, the specific limitations of one or more embodiments of the apparatus for synchronizing an implantable electrical stimulator with a magnetic resonance imaging scan provided below can be found in the limitations of the method for synchronizing an implantable electrical stimulator with a magnetic resonance imaging scan described above, and will not be repeated here.

[0174] In one exemplary embodiment, such as 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] The detection module 310 is used to detect the first time delay between the magnetic resonance imaging system and the active implantable medical device through a magnetic field inspection strategy, and to detect the second time delay between the active implantable medical device and the magnetic resonance imaging system through an electrical stimulation state modulation strategy.

[0176] The identification module 320 is used to collect device detection information of the time delay synchronization device and identify the current time delay synchronization strategy based on the device detection information;

[0177] The synchronization module 330 is used to perform time synchronization processing between 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 used for:

[0179] The system acquires the first local time of the magnetic field detection module and the second local time of the implanted pulse generator. Through the magnetic field detection module, it detects the activation time of the selected gradient magnetic field to obtain the first detection time. Then, it sends a first Bluetooth signal to the implanted pulse generator through the magnetic field detection module.

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

[0181] 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.

[0182] The second Bluetooth signal is sent to the magnetic field detection module through the implanted pulse generator, and when the magnetic field detection module receives the second Bluetooth signal, the 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 using a first time delay algorithm.

[0184] Optionally, the detection module 310 is specifically used for:

[0185] 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 for changing the electrical stimulation state are acquired.

[0186] The remote control terminal sends the modified Bluetooth signal to the active implantable medical device, and the active implantable medical device receives the modified Bluetooth signal based on the reception time.

[0187] In response to the user's magnetic field activation operation, the system acquires the first activation time recorded by the remote control terminal and the second activation time of the magnetic resonance imaging system. Based on the local time, the receiving time, the first activation time, and the second activation time, the system calculates the second time delay between the active implantable medical device and the magnetic resonance imaging system using a second time delay algorithm.

[0188] Optionally, the identification module 320 is specifically used for:

[0189] Based on the device detection information, the device synchronization method and synchronization direction of the time delay synchronization device are identified.

[0190] When the device synchronization mode is dual-delay synchronization mode, the current delay synchronization strategy is determined to be dual-delay synchronization strategy; when the device synchronization mode is single-delay synchronization mode, the current delay synchronization strategy is identified 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 time delay synchronization, the current time delay synchronization strategy is the magnetic resonance synchronization strategy. When the device synchronization direction is from the active implantable medical device to the magnetic resonance imaging system for time delay synchronization, the current time delay synchronization strategy is the electrical stimulation synchronization strategy.

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

[0193] When the selected gradient magnetic field is activated, the scanning excitation imaging sequence and the selected 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 selected gradient magnetic field pulse sequence.

[0194] 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 synchronized using the magnetic field inspection strategy to complete the time synchronization task.

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

[0196] Before each electrical stimulation state change moment in the scanning excitation imaging sequence, an indicator pulse is added 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 synchronized using the electrical stimulation state modulation strategy to complete the time synchronization task.

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

[0199] Based on the scan-excited imaging sequence, the first time delay, and the second time delay, a timetable is generated, and based on the scan-excited imaging sequence, the activation time of each selected layer gradient magnetic field and the change time of each electrical stimulation state are identified.

[0200] Based on the timetable, the activation time of each selected 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.

[0201] The modules in the aforementioned device for synchronizing implantable electrical stimulators with magnetic resonance imaging scans can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device, or stored in the memory of a computer device as software, so that the processor can call and execute the corresponding operations of each module.

[0202] In one exemplary embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as follows: Figure 4As shown, the computer device includes a processor, memory, input / output interface, communication interface, display unit, and input device. The processor, memory, and input / output interface are connected via a system bus, and the communication interface, display unit, and input device are also connected to the system bus via the input / output interface. The processor provides computational and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system and computer programs. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The input / output interface is used for exchanging information between the processor and external devices. The communication interface is used for effective or wireless communication with external terminals; wireless communication can be achieved through Wi-Fi, mobile cellular networks, NFC (Near Field Communication), or other technologies. When executed by the processor, the computer program implements a method for synchronizing an implantable electrical stimulator with a magnetic resonance imaging scan. The display unit is used to form a visually visible image and can be a display screen, projection device, or virtual reality imaging device. The display screen can be an LCD screen or an e-ink screen. The input device of the computer device can be a touch layer covering the display screen, or buttons, trackballs, or touchpads set on the casing of the computer device, or external keyboards, touchpads, or mice, etc.

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

[0204] In one exemplary embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps of the method described in any one of the first aspects.

[0205] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described in any one of the first aspects.

[0206] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps of the method described in any one of the first aspects.

[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, data stored, data displayed, 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 the relevant data must comply with relevant regulations.

[0208] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media 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), magnetic 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. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.

[0209] The technical features of the above embodiments can be combined in any way. For the sake of brevity, 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 embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.

Claims

1. A method for synchronizing an implantable electrical stimulator with magnetic resonance imaging (MRI) scans, characterized in that, The method includes: The system acquires the first local time of the magnetic field detection module and the second local time of the implantable electrical stimulator. Through the magnetic field detection module, it detects the activation time of the layer-selective gradient magnetic field to obtain the first detection time. Then, it sends a first Bluetooth signal to the implantable electrical stimulator through the magnetic field detection module. When the implantable electrical stimulator receives the first Bluetooth signal, the second detection time recorded by the implantable electrical stimulator is collected, and the electrical stimulation state of the implantable electrical stimulator is generated through the implantable electrical stimulator. Based on the electrical stimulation state, the implantable electrical stimulator is adjusted to obtain a third detection time, and a second Bluetooth signal is generated based on the implantable electrical stimulator. The second Bluetooth signal is sent to the magnetic field detection module through the implanted electrical stimulator, and when the magnetic field detection module receives the second Bluetooth signal, the 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 implanted electrical stimulator is calculated using a first time delay algorithm. The calculation formula for the first delay algorithm is as follows: ΔTa=((AT2-AT1)+(BT2-BT1)) / 2; In the above formula, AT1 is the time point when the magnetic field detection module writes its local time into the memory when it detects the activation of the selected gradient magnetic field, i.e., the first detection time; AT2 is the time when the remote control terminal and the magnetic field detection module receive the second Bluetooth signal from the implantable electrostimulator, i.e., the fourth detection time; BT1 is the time point when the Bluetooth module of the implantable electrostimulator receives the first Bluetooth signal and writes its local time of receiving the first Bluetooth signal into the memory, i.e., the second detection time; BT2 is the third detection time obtained by adjusting the implantable electrostimulator based on the electrostimulation state. In response to the user's change of electrical stimulation operation, the local time transmitted from the implanted electrical stimulator to the remote control terminal and the change Bluetooth signal for changing the electrical stimulation state are obtained. The remote control terminal sends the Bluetooth signal that changes the electrical stimulation state to the implantable electrical stimulator, and obtains the time point at which the Bluetooth signal is received based on the local time of the implantable electrical stimulator. A new electrical stimulation state is generated by the implanted electrical stimulator, the first start time of generating the new electrical stimulation state is obtained, and the time of receiving the changed Bluetooth signal and the first start time of generating the new electrical stimulation state are obtained based on the local time of the implanted electrical stimulator and transmitted to the remote control terminal via Bluetooth; the local time of the Bluetooth signal received by the remote control terminal is obtained. In response to the user's magnetic field activation operation, the system acquires the first activation time recorded by the remote control terminal and the second activation time of the magnetic resonance imaging system. Based on the time point when the Bluetooth signal changing the electrical stimulation state is sent to the implantable electrical stimulator, the time point when the Bluetooth signal is received based on the local time of the implantable electrical stimulator, the local time when the remote control terminal receives the Bluetooth signal, the first activation time, and the second activation time, a second time delay between the implantable electrical stimulator and the magnetic resonance imaging system is calculated using a second time delay algorithm. The first activation time recorded by the remote control terminal and the first activation time when the new electrical stimulation state is generated by the implantable electrical stimulator are the same time point. The calculation formula for the second delay algorithm is as follows: ΔTb=((aT2-aT1)-(bT2-bT1)) / 2+(aT3-aT2); In the above formula, aT1 is the time point at which the Bluetooth signal changing the electrical stimulation state is sent to the implantable electrical stimulator; aT2 is the time at which the implantable electrical stimulator receives the changed Bluetooth signal and the first start time recorded by the remote control terminal are transmitted to the remote control terminal via Bluetooth, and the local time at which the remote control terminal receives the Bluetooth signal is obtained; aT3 is the second start time of the magnetic resonance imaging system; bT1 is the time point at which the changed Bluetooth signal is received based on the local time of the implantable electrical stimulator; bT2 is the first start time at which the new electrical stimulation state is generated by the implantable electrical stimulator. Collect device detection information of the time delay synchronization device, and identify 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 implanted electrical stimulator are time-synchronized using the current time delay synchronization strategy.

2. The method according to claim 1, characterized in that, The step of identifying the current latency synchronization strategy based on the device detection information includes: Based on the device detection information, the device synchronization method and synchronization direction of the time delay synchronization device are identified. When the device synchronization mode is dual-delay synchronization mode, the current delay synchronization strategy is determined to be dual-delay synchronization strategy; when the device synchronization mode is 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 implantable electrostimulator for time-delay synchronization, the current time-delay synchronization strategy is the magnetic resonance synchronization strategy; and when the device synchronization direction is from the implantable electrostimulator to the magnetic resonance imaging system for time-delay synchronization, the current time-delay synchronization strategy is the electrostimulation synchronization strategy.

3. The method according to claim 2, characterized in that, When the current time delay synchronization strategy is a magnetic resonance synchronization strategy, the step of synchronizing the magnetic resonance imaging system with the implanted electrical stimulator based on the first time delay and the second time delay using the current time delay synchronization strategy includes: When the selected gradient magnetic field is activated, the scanning excitation imaging sequence and the selected 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 selected gradient magnetic field pulse sequence. Based on the first time synchronization sequence and the first time delay, the magnetic resonance imaging system and the implanted electrical stimulator are iteratively synchronized using the magnetic field inspection strategy to complete the time synchronization task.

4. The method according to claim 3, characterized in that, When the current time delay synchronization strategy is an electrical stimulation synchronization strategy, the step of synchronizing the magnetic resonance imaging system and the implanted electrical stimulator based on the first time delay and the second time delay using the current time delay synchronization strategy includes: Before each electrical stimulation state change moment in the scanning excitation imaging sequence, an indicator pulse is added 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 implanted electrical stimulator are iteratively synchronized using the electrical stimulation state control strategy to complete the time synchronization task.

5. The method according to claim 4, characterized in that, When the current time delay synchronization strategy is a dual time delay synchronization strategy, the step of synchronizing the magnetic resonance imaging system and the implanted electrical stimulator based on the first time delay and the second time delay through the current time delay synchronization strategy includes: Based on the scan-excited imaging sequence, the first time delay, and the second time delay, a timetable is generated, and based on the scan-excited imaging sequence, the activation time of each selected layer gradient magnetic field and the change time of each electrical stimulation state are identified. Based on the timetable, the activation time of each selected gradient magnetic field, and the change time of each electrical stimulation state, the magnetic resonance imaging system and the implanted electrical stimulator are time-synchronized to complete the time synchronization task.

6. A device for synchronizing an implantable electrical stimulator with a magnetic resonance imaging scan, characterized in that, The device includes: The detection module is used to acquire the first local time of the magnetic field detection module and the second local time of the implantable electrical stimulator. Through the magnetic field detection module, it detects the activation time of the layer-selective gradient magnetic field to obtain the first detection time, and sends a first Bluetooth signal to the implantable electrical stimulator. When the implantable electrical stimulator receives the first Bluetooth signal, it acquires the second detection time recorded by the implantable electrical stimulator and generates the electrical stimulation state of the implantable electrical stimulator. Based on the electrical stimulation state, it adjusts the implantable electrical stimulator to obtain a third detection time, and generates a second... Bluetooth signal; the second Bluetooth signal is sent to the magnetic field detection module through the implanted electrical stimulator, and when the magnetic field detection module receives the second Bluetooth signal, the 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, the first time delay between the magnetic resonance imaging system and the implanted electrical stimulator is calculated using a first time delay algorithm; the calculation formula of the first time delay algorithm is: ∆Ta=((AT2-AT1)+(BT2-BT1)) / 2; in the above formula, AT1 is the magnetic field detection module when it detects the selected gradient magnetic field. The activation time is the point in time when the local time of the magnetic field detection module is written into the memory, i.e., the first detection time; AT2 is the point in time when the remote control terminal and the magnetic field detection module receive the second Bluetooth signal from the implantable electrical stimulator, i.e., the fourth detection time; BT1 is the point in time when the Bluetooth module of the implantable electrical stimulator receives the first Bluetooth signal and writes the local time of the implantable electrical stimulator receiving the first Bluetooth signal into the memory, i.e., the second detection time; BT2 is the third detection time obtained by adjusting the implantable electrical stimulator based on the electrical stimulation state; in response to the user's electrical stimulation change operation, the data transmitted by the implantable electrical stimulator to... The remote control terminal obtains its local time and a Bluetooth signal that changes the electrical stimulation state. The remote control terminal sends the Bluetooth signal to the implantable electrical stimulator, and based on the local time of the implantable electrical stimulator, obtains the time point at which the Bluetooth signal is received. The implantable electrical stimulator generates a new electrical stimulation state, and the first activation time of this new state is obtained. The time of receiving the Bluetooth signal and the first activation time of the new electrical stimulation state, obtained based on the local time of the implantable electrical stimulator, are transmitted via Bluetooth to the remote control terminal. The local time at which the remote control terminal receives the Bluetooth signal is also obtained.In response to the user's magnetic field activation operation, the system acquires the first activation time recorded by the remote control terminal and the second activation time of the magnetic resonance imaging system. Based on the time point when the Bluetooth signal changing the electrical stimulation state is sent to the implantable electrical stimulator, the time point when the Bluetooth signal is received based on the local time of the implantable electrical stimulator, the local time when the remote control terminal receives the Bluetooth signal, the first activation time, and the second activation time, a second time delay is calculated between the implantable electrical stimulator and the magnetic resonance imaging system using a second time delay algorithm. The first activation time recorded by the remote control terminal and the first activation time when the new electrical stimulation state is generated by the implantable electrical stimulator are the same time point. The second time delay calculation... The calculation formula for the method is: ∆Tb=((aT2-aT1)-(bT2-bT1)) / 2+(aT3-aT2); In the above formula, aT1 is the time point when the Bluetooth signal changing the electrical stimulation state is sent to the implantable electrical stimulator; aT2 is the time when the implantable electrical stimulator receives the changed Bluetooth signal and the first turn-on time recorded by the remote control terminal are transmitted to the remote control terminal via Bluetooth, and the local time when the remote control terminal receives the Bluetooth signal is obtained; aT3 is the second turn-on time when the magnetic resonance imaging system turns on; bT1 is the time point when the changed Bluetooth signal is received based on the local time of the implantable electrical stimulator; bT2 is the first turn-on time when the new electrical stimulation state is generated by the implantable electrical stimulator. The identification module is used to collect device detection information of the time delay synchronization device and identify the current time delay synchronization strategy based on the device detection information. The synchronization module is used to perform time synchronization processing between the magnetic resonance imaging system and the implanted electrical stimulator based on the first time delay and the second time delay, using the current time delay synchronization strategy.

7. The apparatus according to claim 6, characterized in that, The identification module is specifically used for: Based on the device detection information, the device synchronization method and synchronization direction of the time delay synchronization device are identified. When the device synchronization mode is dual-delay synchronization mode, the current delay synchronization strategy is determined to be dual-delay synchronization strategy; when the device synchronization mode is 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 implantable electrostimulator for time-delay synchronization, the current time-delay synchronization strategy is the magnetic resonance synchronization strategy; and when the device synchronization direction is from the implantable electrostimulator to the magnetic resonance imaging system for time-delay synchronization, the current time-delay synchronization strategy is the electrostimulation synchronization strategy.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 5.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.

10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 5.

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