Magnetic resonance imaging sequence translation communication control system and method

By constructing a magnetic resonance imaging sequence translation communication control system, an automated and precise mapping between standardized sequence descriptions and heterogeneous spectrometer hardware was achieved. This solved the problems of closed spectrometer hardware interfaces and non-standardized sequence description formats, improved the system's versatility and portability, and ensured the accuracy and reliability of sequence execution.

CN121955838BActive Publication Date: 2026-06-30安徽福晴医疗装备有限公司

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
安徽福晴医疗装备有限公司
Filing Date
2026-04-01
Publication Date
2026-06-30

AI Technical Summary

Technical Problem

In existing magnetic resonance imaging systems, the closed and heterogeneous nature of the spectrometer hardware interface leads to difficulties in system integration and high maintenance costs. The non-standardized sequence description format results in poor sequence portability, and there is a lack of automated and accurate mapping technology.

Method used

A magnetic resonance imaging sequence translation communication control system was constructed, including a parameter customization module, a sequence generation module, a sequence translation module, a hardware control module, and a verification feedback module. The system uses the Pulseq standard and TLV format to achieve automated mapping of hardware instruction streams and real-time status monitoring.

Benefits of technology

It improves the hardware versatility and sequence portability of magnetic resonance imaging systems, reduces system integration and maintenance costs, and ensures the timing accuracy of sequence execution and the reliability of system operation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121955838B_ABST
    Figure CN121955838B_ABST
Patent Text Reader

Abstract

This invention discloses a magnetic resonance imaging (MRI) sequence translation communication control system and method. The system includes: a parameter customization module for receiving and verifying user-configured MRI parameters; a sequence generation module for generating MRI sequence files conforming to the Pulseq standard based on the verified parameters; a sequence translation module for translating the MRI sequence files into a TLV format hardware instruction stream according to the target spectrometer hardware configuration file; a hardware control module for writing the TLV instruction stream into the spectrometer hardware registers via an open hardware instruction bus, controlling the spectrometer to transmit radio frequency pulses, apply gradient fields, and acquire MRI signals; and a verification and feedback module for real-time monitoring of hardware execution status and data consistency verification. This invention solves the problems of complex hardware interfaces and poor sequence portability in existing MRI systems by constructing a closed-loop architecture of "parameter configuration - sequence generation - TLV translation - hardware execution," thereby improving the system's versatility, scalability, and control accuracy.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of magnetic resonance imaging technology, and in particular to a magnetic resonance imaging sequence translation communication control system and method. Background Technology

[0002] Magnetic Resonance Imaging (MRI) systems typically consist of two parts: host computer control software and underlying spectrometer hardware. The communication interface and control protocol between the two directly determine the execution accuracy of imaging sequences and the system's compatibility. However, existing technologies generally suffer from two major technical problems: First, the closed and heterogeneous nature of spectrometer hardware interfaces. Different manufacturers, and even different models from the same manufacturer, use dedicated hardware interfaces and proprietary communication protocols. This necessitates customized development of host computer software for specific hardware, leading to difficulties in system integration, high maintenance costs, and hindering third-party research institutions from developing underlying sequences based on commercial spectrometers, thus limiting technological innovation. Second, the non-standardization of sequence description formats. Each manufacturer uses proprietary sequence file formats, meaning sequences developed on one system cannot be directly run on another, resulting in poor sequence portability and hindering sharing between research and clinical applications.

[0003] To address the issue of inconsistent sequence description formats, the open-source community proposed the Pulseq standard to define a hardware-independent sequence description format. However, the Pulseq standard only addresses the sequence description level and lacks a mechanism for direct interface with specific spectrometer hardware. Pulseq files cannot be directly written to spectrometer hardware registers and require manual or specialized tools to convert them into executable instructions for the target hardware—a process that is inefficient and prone to errors. While existing hardware abstraction layer (HAL) solutions simplify upper-layer application development to some extent, the HAL itself still needs to be implemented separately for each spectrometer, making it difficult to handle differences in timing accuracy, quantization range, and other aspects between different hardware. Offline sequence conversion tools, on the other hand, suffer from fixed conversion rules, lack of real-time adjustment, and a lack of status monitoring and feedback mechanisms during execution, making it difficult to meet precise control requirements. Therefore, existing technologies lack a technical solution that can establish an automated and precise mapping between standardized sequence descriptions and heterogeneous spectrometer hardware. Summary of the Invention

[0004] To address the technical problems existing in the background art, this invention proposes a magnetic resonance imaging sequence translation communication control system and method.

[0005] The present invention proposes a magnetic resonance imaging sequence translation communication control system, comprising:

[0006] The parameter customization module is used to receive magnetic resonance imaging parameters configured by the user. The magnetic resonance imaging parameters include at least repetition time, echo time, flip angle, field of view and slice thickness. After verifying the magnetic resonance imaging parameters, the module generates and outputs a set of verified parameters.

[0007] The sequence generation module is used to receive a verified parameter set and generate a magnetic resonance sequence file conforming to the Pulseq standard based on the verified parameter set. The magnetic resonance sequence file contains the definitions of radio frequency pulse events, gradient pulse events and ADC sampling events.

[0008] The sequence translation module is used to receive magnetic resonance sequence files and translate them into a hardware instruction stream in TLV format according to the configuration file of the target spectrometer hardware.

[0009] The hardware control module is used to receive TLV format hardware instruction streams and write TLV format hardware instruction streams into the spectrometer hardware registers through an open hardware instruction bus to control the spectrometer hardware to transmit radio frequency pulses, apply gradient fields, and acquire magnetic resonance signals.

[0010] The verification and feedback module is used to monitor the execution status of the spectrometer hardware in real time, perform data consistency verification, and feed back the verification results to the hardware control module.

[0011] Preferably, the sequence translation module includes:

[0012] The hardware configuration file parsing unit is used to load and parse the configuration file of the target spectrometer hardware to obtain hardware configuration parameters. The hardware configuration parameters include at least the TLV instruction set, time resolution, amplitude quantization range and physical address mapping information.

[0013] The event traversal and compensation calculation unit is used to receive magnetic resonance sequence files and hardware configuration parameters, sequentially traverse each logical time point in the magnetic resonance sequence file, perform timing compensation and amplitude mapping on the events of each logical time point according to the hardware configuration parameters, generate corresponding TLV instructions, and collect all generated TLV instructions into the original TLV instruction stream.

[0014] The instruction packing and sorting unit receives the original TLV instruction stream, sorts all TLV instructions in the original TLV instruction stream in chronological order, and adds hardware synchronization instructions and data packet check headers to form a complete TLV instruction stream.

[0015] Preferably, the formula for calculating the compensated time when the event traversal and compensation calculation unit performs timing compensation is as follows:

[0016] ;

[0017] in, The time after compensation; Ideal time defined for Pulseq sequences; This refers to the inherent hardware latency determined from the hardware configuration file.

[0018] Preferably, the parameter customization module includes:

[0019] The parameter definition unit is used to define the name, data type, physical unit, value range and default value of magnetic resonance imaging parameters through the configuration file, and generate a parameter definition set;

[0020] The relation constraint unit is used to receive the parameter definition set, define the computational dependencies and hardware constraints between magnetic resonance imaging parameters in the configuration file, and generate a parameter relation model.

[0021] The configuration loading unit is used to receive the parameter definition set and parameter relationship model, dynamically load and parse the configuration file, and generate a graphical parameter input control;

[0022] The parameter receiving unit is used to obtain the magnetic resonance imaging parameter values ​​input by the user through the parameter input control and generate a set of parameters to be verified.

[0023] The parameter verification unit receives the set of parameters to be verified and performs real-time verification of the set of parameters to be verified based on the value range in the parameter definition set, the computational dependencies in the parameter relationship model, and the hardware constraints. It then outputs a verified set of parameters that conforms to all definitions and constraints to the sequence generation module.

[0024] Preferably, the sequence generation module includes:

[0025] The parameter mapping unit is used to receive the verified parameter set, map the magnetic resonance imaging parameters in the verified parameter set to Pulseq basic primitive descriptions, and generate primitive description data containing pulse sequence event definitions.

[0026] The sequence construction unit is used to receive primitive description data, construct sequence objects containing radio frequency pulse events, gradient pulse events and ADC sampling events in memory in chronological order based on the primitive description data, and generate sequence object data.

[0027] The timing optimization unit is used to receive sequence object data, optimize the timing parameters of each event in the sequence object data to meet hardware constraints, and generate optimized sequence object data.

[0028] The sequence output unit is used to receive the optimized sequence object data, serialize the optimized sequence object data into a magnetic resonance sequence file or memory data stream that conforms to the Pulseq file format specification, and output the magnetic resonance sequence file or memory data stream to the sequence translation module.

[0029] Preferably, the hardware control module specifically includes:

[0030] The communication establishment unit is used to establish a communication connection with the target spectrometer hardware through standard network protocols or bus protocols, and to generate and output the communication link.

[0031] The instruction transmission unit is used to receive the communication link and the hardware instruction stream in TLV format, transmit the hardware instruction stream in TLV format to the instruction buffer of the spectrometer hardware through the communication link, and generate and output the instruction transmission completion status.

[0032] The execution control unit is used to receive the instruction transmission completion status, and after confirming that the instruction transmission is completed, it sends a start execution command to the spectrometer hardware, triggering the spectrometer hardware to interpret and execute the TLV instruction stream in sequence, and generating and outputting execution status information.

[0033] The status monitoring unit is used to receive execution status information and real-time status information returned by the spectrometer hardware, and forwards the status information to the verification and feedback module after parsing it.

[0034] Preferably, the verification and feedback module specifically includes:

[0035] The status acquisition unit is used to acquire status data generated by the spectrometer hardware during the execution sequence in real time. The status data includes at least instruction execution progress, hardware working status and error codes, and generates raw status information.

[0036] The data verification unit is used to receive the original status information, verify the consistency between the original status information and the expected execution result, and generate verification result data.

[0037] The exception handling unit is used to receive the verification result data. When the verification result data indicates that the data is inconsistent or the original status information contains an error code, it generates an exception alarm message and an interrupt command, and sends the interrupt command to the hardware control module.

[0038] The feedback sending unit is used to receive raw status information and abnormal alarm information, format the raw status information and abnormal alarm information, and then feed them back to the hardware control module or external display device.

[0039] The present invention proposes a magnetic resonance imaging sequence translation communication control method, applied to any of the above-mentioned systems, comprising the following steps:

[0040] S1. Obtain the magnetic resonance imaging parameter values ​​input by the user. The magnetic resonance imaging parameter values ​​include at least repetition time, echo time, flip angle, field of view and slice thickness. Verify the magnetic resonance imaging parameter values ​​according to the predefined parameter value range and the dependency relationship between parameters to obtain a set of verified parameters.

[0041] S2. Obtain the verified parameter set, and convert the verified parameter set into a sequence definition containing radio frequency pulse events, gradient pulse events and ADC sampling events according to the Pulseq standard, and generate a magnetic resonance sequence file that conforms to the Pulseq standard.

[0042] S3. Obtain the magnetic resonance sequence file and the configuration file of the target spectrometer hardware. Based on the hardware parameters in the configuration file, translate the radio frequency pulse events, gradient pulse events and ADC sampling events in the magnetic resonance sequence file into TLV instructions and generate a hardware instruction stream in TLV format.

[0043] S4. Obtain the TLV format hardware instruction stream and write it into the spectrometer hardware register through the open hardware instruction bus to control the spectrometer hardware to transmit radio frequency pulses, apply gradient fields, and acquire magnetic resonance signals, and obtain the execution status feedback of the spectrometer hardware.

[0044] Preferably, step S3 specifically includes:

[0045] Obtain the configuration file of the target spectrometer hardware, parse the configuration file to obtain hardware configuration parameters, which include at least the TLV instruction set, time resolution, amplitude quantization range and physical address mapping information;

[0046] Obtain the magnetic resonance sequence file, sequentially traverse each logical time point in the magnetic resonance sequence file, perform timing compensation and amplitude mapping on the events at each logical time point according to the hardware configuration parameters, generate the corresponding TLV instructions, and obtain the original TLV instruction stream;

[0047] Obtain the original TLV instruction stream, sort all TLV instructions in the original TLV instruction stream in chronological order, and add hardware synchronization instructions and data packet checksum headers to form a complete hardware instruction stream in TLV format.

[0048] Preferably, it further includes:

[0049] S5. Acquire the status data generated by the spectrometer hardware during the execution sequence. The status data includes at least the instruction execution progress, hardware working status, and error codes to obtain the original status information. Acquire the original status information and perform data consistency verification between the original status information and the expected execution result to obtain verification result data. Acquire the verification result data. When the verification result data indicates data inconsistency or the original status information contains error codes, generate abnormal alarm information and interrupt instructions, and send the interrupt instructions to the hardware control module. Acquire the original status information and abnormal alarm information, format the original status information and abnormal alarm information to obtain formatted status feedback, and output it to an external display device.

[0050] The magnetic resonance imaging sequence translation communication control system and method proposed in this invention constructs a complete closed-loop architecture encompassing parameter configuration, sequence generation, and instruction translation to hardware execution. It introduces a translation mechanism based on hardware configuration files and an open instruction bus, achieving automated and precise mapping between standardized sequence descriptions and heterogeneous spectrometer hardware. This improves the hardware versatility and sequence portability of the magnetic resonance imaging system, and reduces system integration and maintenance costs. Simultaneously, real-time status monitoring and data consistency verification mechanisms ensure the timing accuracy of sequence execution and the reliability of system operation. Attached Figure Description

[0051] Figure 1 This is a schematic diagram of the system architecture of a magnetic resonance imaging sequence translation communication control system proposed in this invention;

[0052] Figure 2 This is a flowchart illustrating the workflow of a magnetic resonance imaging sequence translation communication control method proposed in this invention. Detailed Implementation

[0053] Reference Figure 1 and Figure 2 The present invention proposes a magnetic resonance imaging sequence translation communication control system, comprising:

[0054] The parameter customization module is used to receive user-configured magnetic resonance imaging (MRI) parameters, which include at least repetition time, echo time, flip angle, field of view, and slice thickness. After verifying the MRI parameters, it generates and outputs a set of verified parameters.

[0055] In this embodiment, the parameter customization module includes:

[0056] The parameter definition unit is used to define the name, data type, physical unit, value range and default value of magnetic resonance imaging parameters through the configuration file, and generate a parameter definition set;

[0057] The relation constraint unit is used to receive the parameter definition set, define the computational dependencies and hardware constraints between magnetic resonance imaging parameters in the configuration file, and generate a parameter relation model.

[0058] The configuration loading unit is used to receive the parameter definition set and parameter relationship model, dynamically load and parse the configuration file, and generate a graphical parameter input control;

[0059] The parameter receiving unit is used to obtain the magnetic resonance imaging parameter values ​​input by the user through the parameter input control and generate a set of parameters to be verified.

[0060] The parameter verification unit receives the set of parameters to be verified and performs real-time verification of the set of parameters to be verified based on the value range in the parameter definition set, the computational dependencies in the parameter relationship model, and the hardware constraints. It then outputs a verified set of parameters that conforms to all definitions and constraints to the sequence generation module.

[0061] As a specific embodiment, magnetic resonance imaging parameters include at least repetition time (TR), echo time (TE), flip angle (FA), field of view (FOV), and slice thickness (ST). Wherein:

[0062] The repetition time (TR) ranges from 10ms to 10000ms;

[0063] The echo time (TE) ranges from 2ms to 500ms;

[0064] The flip angle (FA) ranges from 0° to 180°;

[0065] The field of view (FOV) ranges from 100mm×100mm to 500mm×500mm;

[0066] The layer thickness (ST) ranges from 1 mm to 10 mm.

[0067] The sequence generation module receives a verified parameter set and generates a magnetic resonance sequence file conforming to the Pulseq standard based on the verified parameter set. The magnetic resonance sequence file contains the definitions of radio frequency pulse events, gradient pulse events, and ADC sampling events.

[0068] In this embodiment, the sequence generation module includes:

[0069] The parameter mapping unit is used to receive the verified parameter set, map the magnetic resonance imaging parameters in the verified parameter set to Pulseq basic primitive descriptions, and generate primitive description data containing pulse sequence event definitions.

[0070] The sequence construction unit is used to receive primitive description data, construct sequence objects containing radio frequency pulse events, gradient pulse events and ADC sampling events in memory in chronological order based on the primitive description data, and generate sequence object data.

[0071] The timing optimization unit is used to receive sequence object data, optimize the timing parameters of each event in the sequence object data to meet hardware constraints, and generate optimized sequence object data.

[0072] The sequence output unit is used to receive the optimized sequence object data, serialize the optimized sequence object data into a magnetic resonance sequence file or memory data stream that conforms to the Pulseq file format specification, and output the magnetic resonance sequence file or memory data stream to the sequence translation module.

[0073] For example, the repetition time TR=500ms, echo time TE=20ms, and flip angle FA=30° are mapped to RF pulse primitives (shape: sinc, duration: 2ms, amplitude: corresponding to 30° flip angle) and ADC sampling primitives (number of sampling points: 256, sampling bandwidth: 250kHz).

[0074] For example, if the minimum hardware time resolution is 10 Then the event time will be adjusted to 10. The gradient climb rate should be an integer multiple of the gradient rate; if the hardware gradient climb rate is limited to 200T / m / s, then the gradient climb time should be adjusted accordingly.

[0075] The sequence translation module is used to receive magnetic resonance sequence files and translate them into a hardware instruction stream in TLV format according to the configuration file of the target spectrometer hardware.

[0076] In this embodiment, the sequence translation module includes:

[0077] The hardware configuration file parsing unit is used to load and parse the configuration file of the target spectrometer hardware to obtain hardware configuration parameters. The hardware configuration parameters include at least the TLV instruction set, time resolution, amplitude quantization range and physical address mapping information.

[0078] The event traversal and compensation calculation unit is used to receive magnetic resonance sequence files and hardware configuration parameters, sequentially traverse each logical time point in the magnetic resonance sequence file, perform timing compensation and amplitude mapping on the events of each logical time point according to the hardware configuration parameters, generate corresponding TLV instructions, and collect all generated TLV instructions into the original TLV instruction stream.

[0079] The instruction packing and sorting unit receives the original TLV instruction stream, sorts all TLV instructions in the original TLV instruction stream in chronological order, and adds hardware synchronization instructions and data packet check headers to form a complete TLV instruction stream.

[0080] For example, the configuration file for a certain type of spectrometer can be defined as:

[0081] TLV instruction set: RF transmit instruction Tag=0x01, gradient enable instruction Tag=0x02, ADC sampling instruction Tag=0x03;

[0082] Time resolution: 1 ;

[0083] Amplitude quantization range: 16 bits, corresponding to -32768 to 32767;

[0084] Physical address mapping: RF amplitude register address 0x1000, gradient X amplitude register address 0x2000, ADC control register address 0x3000.

[0085] Specifically, the formula for calculating the time after compensation when the event traversal and compensation calculation unit performs timing compensation is as follows:

[0086] ;

[0087] in, The time after compensation; Ideal time defined for Pulseq sequences; This refers to the inherent hardware latency determined from the hardware configuration file.

[0088] For example, if the Pulseq sequence is defined at t=1000 The moment begins a continuous 100 The RF pulse, while the hardware profile indicates an inherent delay of 2 RF transmits. The compensated start time is 1002. .

[0089] The hardware control module is used to receive TLV format hardware instruction streams and write them into the spectrometer hardware registers via an open hardware instruction bus to control the spectrometer hardware to transmit radio frequency pulses, apply gradient fields, and acquire magnetic resonance signals.

[0090] In this embodiment, the hardware control module specifically includes:

[0091] The communication establishment unit is used to establish a communication connection with the target spectrometer hardware through standard network protocols or bus protocols, and to generate and output the communication link.

[0092] The instruction transmission unit is used to receive the communication link and the hardware instruction stream in TLV format, transmit the hardware instruction stream in TLV format to the instruction buffer of the spectrometer hardware through the communication link, and generate and output the instruction transmission completion status.

[0093] The execution control unit is used to receive the instruction transmission completion status, and after confirming that the instruction transmission is completed, it sends a start execution command to the spectrometer hardware, triggering the spectrometer hardware to interpret and execute the TLV instruction stream in sequence, and generating and outputting execution status information.

[0094] The status monitoring unit is used to receive execution status information and real-time status information returned by the spectrometer hardware, and forwards the status information to the verification and feedback module after parsing it.

[0095] The verification and feedback module is used to monitor the execution status of the spectrometer hardware in real time, perform data consistency verification, and feed back the verification results to the hardware control module.

[0096] In this embodiment, the verification and feedback module specifically includes:

[0097] The status acquisition unit is used to acquire status data generated by the spectrometer hardware during the execution sequence in real time. The status data includes at least the instruction execution progress, hardware working status and error codes, and generates raw status information.

[0098] The data verification unit is used to receive the original status information, verify the consistency between the original status information and the expected execution result, and generate verification result data.

[0099] The exception handling unit is used to receive the verification result data. When the verification result data indicates that the data is inconsistent or the original status information contains an error code, it generates an exception alarm message and an interrupt command, and sends the interrupt command to the hardware control module.

[0100] The feedback sending unit is used to receive raw status information and abnormal alarm information, format the raw status information and abnormal alarm information, and then feed them back to the hardware control module or external display device.

[0101] Reference Figure 1 and Figure 2 The present invention proposes a magnetic resonance imaging sequence translation communication control method, which is applied to any of the above-mentioned systems, and includes the following steps:

[0102] S1. Obtain the magnetic resonance imaging parameter values ​​input by the user. The magnetic resonance imaging parameter values ​​include at least repetition time, echo time, flip angle, field of view and slice thickness. Validate the magnetic resonance imaging parameter values ​​according to the predefined parameter value range and the dependency relationship between parameters to obtain the validated parameter set.

[0103] Specifically, step S1 includes the following sub-steps:

[0104] Obtain the configuration file for imaging parameters, parse the configuration file to obtain the name, data type, physical unit, value range and default value of the magnetic resonance imaging parameters, as well as the calculation dependencies and hardware constraints between the parameters;

[0105] A graphical parameter input control is generated based on the definition information of the magnetic resonance imaging parameters obtained from the analysis, and the magnetic resonance imaging parameter values ​​input by the user are obtained through the parameter input control;

[0106] The system acquires the magnetic resonance imaging (MRI) parameter values ​​input by the user, and verifies these values ​​in real time based on their range, computational dependencies, and hardware constraints, thus obtaining a set of verified parameters.

[0107] S2. Obtain the verified parameter set, and convert the verified parameter set into a sequence definition containing radio frequency pulse events, gradient pulse events and ADC sampling events according to the Pulseq standard, and generate a magnetic resonance sequence file that conforms to the Pulseq standard.

[0108] Specifically, step S2 includes the following sub-steps:

[0109] Obtain the validated parameter set, map the magnetic resonance imaging parameters in the validated parameter set to Pulseq basic primitive descriptions, and obtain primitive description data;

[0110] Obtain primitive description data, and construct a sequence object containing RF pulse events, gradient pulse events, and ADC sampling events in memory in chronological order based on the primitive description data to obtain sequence object data;

[0111] The sequence object data is obtained, and the time parameters of each event in the sequence object data are optimized to meet hardware constraints, resulting in optimized sequence object data.

[0112] Obtain the optimized sequence object data and serialize it into a magnetic resonance sequence file that conforms to the Pulseq file format specification.

[0113] S3. Obtain the magnetic resonance sequence file and the configuration file of the target spectrometer hardware. Based on the hardware parameters in the configuration file, translate the radio frequency pulse events, gradient pulse events and ADC sampling events in the magnetic resonance sequence file into TLV instructions and generate a hardware instruction stream in TLV format.

[0114] In this embodiment, step S3 specifically includes:

[0115] Obtain the configuration file of the target spectrometer hardware, parse the configuration file to obtain the hardware configuration parameters, which include at least the TLV instruction set, time resolution, amplitude quantization range and physical address mapping information;

[0116] Obtain the magnetic resonance sequence file, sequentially traverse each logical time point in the magnetic resonance sequence file, perform timing compensation and amplitude mapping on the events at each logical time point according to the hardware configuration parameters, generate the corresponding TLV instructions, and obtain the original TLV instruction stream;

[0117] Obtain the original TLV instruction stream, sort all TLV instructions in the original TLV instruction stream in chronological order, and add hardware synchronization instructions and data packet checksum headers to form a complete hardware instruction stream in TLV format.

[0118] S4. Obtain the TLV format hardware instruction stream and write it into the spectrometer hardware register through the open hardware instruction bus to control the spectrometer hardware to transmit radio frequency pulses, apply gradient fields, and acquire magnetic resonance signals, and obtain the execution status feedback of the spectrometer hardware.

[0119] Specifically, step S4 includes the following sub-steps:

[0120] Obtain the communication address of the target spectrometer hardware, and establish a communication connection with the target spectrometer hardware through a standard network protocol or bus protocol to obtain the communication link;

[0121] Obtain the hardware instruction stream and communication link in TLV format, transmit the hardware instruction stream in TLV format to the instruction buffer of the spectrometer hardware through the communication link, and obtain the instruction transmission completion status.

[0122] The system obtains the instruction transmission completion status, and after confirming that the instruction transmission is complete, it sends a start execution command to the spectrometer hardware, triggering the spectrometer hardware to interpret and execute the TLV instruction stream in sequence, and obtains the execution status information.

[0123] The system acquires real-time status information returned by the spectrometer hardware during execution, and parses the status information to obtain readable execution status feedback.

[0124] In this embodiment, it also includes:

[0125] S5. Acquire the status data generated by the spectrometer hardware during the execution sequence. The status data includes at least the instruction execution progress, hardware working status, and error codes to obtain the original status information. Acquire the original status information and perform data consistency verification between the original status information and the expected execution result to obtain the verification result data. Acquire the verification result data. When the verification result data indicates data inconsistency or the original status information contains error codes, generate abnormal alarm information and interrupt instructions, and send the interrupt instructions to the hardware control module. Acquire the original status information and abnormal alarm information, format the original status information and abnormal alarm information to obtain formatted status feedback, and output it to the external display device.

[0126] The above description is only a preferred embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Any equivalent substitutions or modifications made by those skilled in the art within the scope of the technology disclosed in the present invention, based on the technical solution and inventive concept of the present invention, should be covered within the scope of protection of the present invention.

Claims

1. A magnetic resonance imaging sequence translation communication control system, characterized in that, include: The parameter customization module is used to receive magnetic resonance imaging parameters configured by the user. The magnetic resonance imaging parameters include at least repetition time, echo time, flip angle, field of view and slice thickness. After verifying the magnetic resonance imaging parameters, the module generates and outputs a set of verified parameters. The sequence generation module is used to receive a verified parameter set and generate a magnetic resonance sequence file conforming to the Pulseq standard based on the verified parameter set. The magnetic resonance sequence file contains the definitions of radio frequency pulse events, gradient pulse events and ADC sampling events. The sequence translation module is used to receive magnetic resonance sequence files and translate them into a hardware instruction stream in TLV format according to the configuration file of the target spectrometer hardware. The hardware control module is used to receive TLV format hardware instruction streams and write TLV format hardware instruction streams into the spectrometer hardware registers through an open hardware instruction bus to control the spectrometer hardware to transmit radio frequency pulses, apply gradient fields, and acquire magnetic resonance signals. The verification and feedback module is used to monitor the execution status of the spectrometer hardware in real time, perform data consistency verification, and feed back the verification results to the hardware control module. The sequence translation module includes: The hardware configuration file parsing unit is used to load and parse the configuration file of the target spectrometer hardware to obtain hardware configuration parameters. The hardware configuration parameters include at least the TLV instruction set, time resolution, amplitude quantization range and physical address mapping information. The event traversal and compensation calculation unit is used to receive magnetic resonance sequence files and hardware configuration parameters, sequentially traverse each logical time point in the magnetic resonance sequence file, perform timing compensation and amplitude mapping on the events of each logical time point according to the hardware configuration parameters, generate corresponding TLV instructions, and collect all generated TLV instructions into the original TLV instruction stream. The instruction packing and sorting unit receives the original TLV instruction stream, sorts all TLV instructions in the original TLV instruction stream in chronological order, and adds hardware synchronization instructions and data packet check headers to form a complete TLV instruction stream.

2. The magnetic resonance imaging sequence translation communication control system according to claim 1, characterized in that, The specific formula for calculating the compensated time when the event traversal and compensation calculation unit performs timing compensation is as follows: ; in, The time after compensation; Ideal time defined for Pulseq sequences; This refers to the inherent hardware latency determined from the hardware configuration file.

3. The magnetic resonance imaging sequence translation communication control system according to claim 1, characterized in that, The parameter customization module includes: The parameter definition unit is used to define the name, data type, physical unit, value range and default value of magnetic resonance imaging parameters through the configuration file, and generate a parameter definition set; The relation constraint unit is used to receive the parameter definition set, define the computational dependencies and hardware constraints between magnetic resonance imaging parameters in the configuration file, and generate a parameter relation model. The configuration loading unit is used to receive the parameter definition set and parameter relationship model, dynamically load and parse the configuration file, and generate a graphical parameter input control; The parameter receiving unit is used to obtain the magnetic resonance imaging parameter values ​​input by the user through the parameter input control and generate a set of parameters to be verified. The parameter verification unit receives the set of parameters to be verified and performs real-time verification of the set of parameters to be verified based on the value range in the parameter definition set, the computational dependencies in the parameter relationship model, and the hardware constraints. It then outputs a verified set of parameters that conforms to all definitions and constraints to the sequence generation module.

4. The magnetic resonance imaging sequence translation communication control system according to claim 1, characterized in that, The sequence generation module includes: The parameter mapping unit is used to receive the verified parameter set, map the magnetic resonance imaging parameters in the verified parameter set to Pulseq basic primitive descriptions, and generate primitive description data containing pulse sequence event definitions. The sequence construction unit is used to receive primitive description data, construct sequence objects containing radio frequency pulse events, gradient pulse events and ADC sampling events in memory in chronological order based on the primitive description data, and generate sequence object data. The timing optimization unit is used to receive sequence object data, optimize the timing parameters of each event in the sequence object data to meet hardware constraints, and generate optimized sequence object data. The sequence output unit is used to receive the optimized sequence object data, serialize the optimized sequence object data into a magnetic resonance sequence file or memory data stream that conforms to the Pulseq file format specification, and output the magnetic resonance sequence file or memory data stream to the sequence translation module.

5. The magnetic resonance imaging sequence translation communication control system according to claim 1, characterized in that, The hardware control module specifically includes: The communication establishment unit is used to establish a communication connection with the target spectrometer hardware through standard network protocols or bus protocols, and to generate and output the communication link. The instruction transmission unit is used to receive the communication link and the hardware instruction stream in TLV format, transmit the hardware instruction stream in TLV format to the instruction buffer of the spectrometer hardware through the communication link, and generate and output the instruction transmission completion status. The execution control unit is used to receive the instruction transmission completion status, and after confirming that the instruction transmission is completed, it sends a start execution command to the spectrometer hardware, triggering the spectrometer hardware to interpret and execute the TLV instruction stream in sequence, and generating and outputting execution status information. The status monitoring unit is used to receive execution status information and real-time status information returned by the spectrometer hardware, and forwards the status information to the verification and feedback module after parsing it.

6. The magnetic resonance imaging sequence translation communication control system according to claim 1, characterized in that, The verification and feedback module specifically includes: The status acquisition unit is used to acquire status data generated by the spectrometer hardware during the execution sequence in real time. The status data includes at least instruction execution progress, hardware working status and error codes, and generates raw status information. The data verification unit is used to receive the original status information, verify the consistency between the original status information and the expected execution result, and generate verification result data. The exception handling unit is used to receive the verification result data. When the verification result data indicates that the data is inconsistent or the original status information contains an error code, it generates an exception alarm message and an interrupt command, and sends the interrupt command to the hardware control module. The feedback sending unit is used to receive raw status information and abnormal alarm information, format the raw status information and abnormal alarm information, and then feed them back to the hardware control module or external display device.

7. A method for communication control in magnetic resonance imaging sequence translation, characterized in that, The system applied to any one of claims 1 to 6 includes the following steps: S1. Obtain the magnetic resonance imaging parameter values ​​input by the user. The magnetic resonance imaging parameter values ​​include at least repetition time, echo time, flip angle, field of view and slice thickness. Verify the magnetic resonance imaging parameter values ​​according to the predefined parameter value range and the dependency relationship between parameters to obtain a set of verified parameters. S2. Obtain the verified parameter set, and convert the verified parameter set into a sequence definition containing radio frequency pulse events, gradient pulse events and ADC sampling events according to the Pulseq standard, and generate a magnetic resonance sequence file that conforms to the Pulseq standard. S3. Obtain the magnetic resonance sequence file and the configuration file of the target spectrometer hardware. Based on the hardware parameters in the configuration file, translate the radio frequency pulse events, gradient pulse events and ADC sampling events in the magnetic resonance sequence file into TLV instructions and generate a hardware instruction stream in TLV format. S4. Obtain the TLV format hardware instruction stream, write the TLV format hardware instruction stream into the spectrometer hardware register through the open hardware instruction bus, so as to control the spectrometer hardware to emit radio frequency pulses, apply gradient fields and acquire magnetic resonance signals, and obtain the execution status feedback of the spectrometer hardware. Specifically, step S3 includes: Obtain the configuration file of the target spectrometer hardware, parse the configuration file to obtain hardware configuration parameters, which include at least the TLV instruction set, time resolution, amplitude quantization range and physical address mapping information; Obtain the magnetic resonance sequence file, sequentially traverse each logical time point in the magnetic resonance sequence file, perform timing compensation and amplitude mapping on the events at each logical time point according to the hardware configuration parameters, generate the corresponding TLV instructions, and obtain the original TLV instruction stream; Obtain the original TLV instruction stream, sort all TLV instructions in the original TLV instruction stream in chronological order, and add hardware synchronization instructions and data packet checksum headers to form a complete hardware instruction stream in TLV format.

8. The magnetic resonance imaging sequence translation communication control method according to claim 7, characterized in that, Also includes: S5. Obtain the status data generated by the spectrometer hardware during the execution sequence. The status data includes at least the instruction execution progress, hardware working status and error code, to obtain the original status information. Obtain the original state information, perform data consistency verification between the original state information and the expected execution result, and obtain the verification result data; The system acquires the verification result data. When the verification result data indicates that the data is inconsistent or the original status information contains error codes, it generates an abnormal alarm message and an interrupt command, and sends the interrupt command to the hardware control module. The system acquires raw status information and abnormal alarm information, formats the raw status information and abnormal alarm information, obtains formatted status feedback, and outputs it to an external display device.