A method, device, electronic device and medium for estimating memory of magnetic resonance reconstruction
By using a pre-trained memory estimation model, the amount of memory in the part to be reconstructed during the magnetic resonance reconstruction process is accurately estimated, which solves the problem of inaccurate memory estimation in the existing technology and ensures the success of reconstruction.
Patent Information
- Application Number
- CN201911419248.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-12-31
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2040-06-28
AI Technical Summary
The existing technology cannot accurately estimate the amount of memory required during the magnetic resonance reconstruction process, resulting in reconstruction failure, especially during enhanced scans, the best opportunity for medication may be missed.
A pre-trained memory prediction model is used to accurately estimate the memory amount of the part to be reconstructed by obtaining the matrix to be reconstructed. The memory prediction model is obtained by training the initial network based on the historical reconstruction matrix and historical memory amount.
It achieves accurate prediction of magnetic resonance reconstruction memory, predicts the possibility of successful reconstruction in advance, and avoids reconstruction failure due to insufficient memory.
Smart Images

Figure CN111143076B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to magnetic resonance technology, and in particular to a method, device, electronic device and medium for estimating memory in magnetic resonance reconstruction. Background Art
[0002] The raw data collected by the MRI system has many dimensions, up to 16 dimensions. The data volume is very large, and the system needs to have a large amount of memory to support reconstruction. However, the memory capacity of the MRI system reconstruction machine is fixed and cannot support reconstruction of too large data. When the user sets the protocol, the data size cannot be controlled, which often results in the user setting the protocol, and then after the scan is completed, the reconstruction fails due to insufficient system memory. The protocol needs to be modified and the scan needs to be repeated. This delayed error will cause many problems, especially during enhanced scanning. Another scan may miss the best time to take the medicine.
[0003] In order to control the memory capacity during the MRI reconstruction process, the existing technology roughly calculates the memory required for reconstruction by reading the reconstruction matrix size set by the protocol and the selected algorithm. However, in the calculation process, according to the implementation process of each algorithm, only a large amount of memory is estimated. A lot of temporary memory will be used in the entire reconstruction process, and the capacity of this memory cannot be calculated. In addition, the memory will be continuously requested and released during the reconstruction process, which further leads to a large difference between the calculated value and the actual amount of memory occupied.
[0004] It can be seen that the prior art estimates the amount of memory required in the magnetic resonance reconstruction process inaccurately, and whether the magnetic resonance reconstruction will be successful cannot be predicted in advance. Summary of the invention
[0005] The embodiments of the present invention provide a method, device, electronic device and medium for estimating magnetic resonance reconstruction memory, so as to achieve the effect of predicting magnetic resonance reconstruction memory and the possibility of success in advance.
[0006] In a first aspect, an embodiment of the present invention provides a method for estimating memory of magnetic resonance reconstruction, which includes:
[0007] Obtaining a matrix to be reconstructed of the part to be reconstructed;
[0008] The matrix to be reconstructed is input into a pre-trained memory estimation model, and the memory amount of the part to be reconstructed is obtained according to the output result of the memory estimation model, wherein the memory estimation model is obtained by training the initial network according to the historical reconstruction matrix and the historical memory amount.
[0009] In a second aspect, an embodiment of the present invention further provides a magnetic resonance reconstruction memory estimation device, which includes:
[0010] A module for obtaining a matrix to be reconstructed, used for obtaining a matrix to be reconstructed of a part to be reconstructed;
[0011] A memory output module is used to input the matrix to be reconstructed into a pre-trained memory estimation model, and obtain the memory capacity of the part to be reconstructed according to the output result of the memory estimation model, wherein the memory estimation model is obtained by training the initial network according to the historical reconstruction matrix and the historical memory capacity.
[0012] In a third aspect, an embodiment of the present invention further provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the magnetic resonance reconstruction memory estimation method as described in any one of the first aspects is implemented.
[0013] In a fourth aspect, an embodiment of the present invention further provides a storage medium comprising computer executable instructions, wherein the computer executable instructions, when executed by a computer processor, implement the magnetic resonance reconstruction memory estimation method as described in any one of the first aspects.
[0014] The technical solution provided by the embodiment of the present invention obtains the matrix to be reconstructed of the part to be reconstructed, inputs the matrix to be reconstructed into a pre-trained memory estimation model, and obtains the memory amount of the part to be reconstructed according to the output result of the memory estimation model, wherein the memory estimation model is obtained by training the initial network according to the historical reconstruction matrix and the historical memory amount. Since the memory estimation model has good memory, the amount of memory occupied by the part to be reconstructed can be accurately estimated by inputting the matrix to be reconstructed into the memory estimation model, which solves the problem in the prior art that the amount of memory required in the magnetic resonance reconstruction process cannot be accurately estimated, and achieves the purpose of accurately estimating the magnetic resonance reconstruction memory and predicting the possibility of successful reconstruction based on the estimated memory. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 A schematic diagram of a flow chart of a method for estimating memory in magnetic resonance reconstruction provided in Embodiment 1 of the present invention;
[0016] Figure 2 A logical schematic diagram of magnetic resonance memory estimation provided by the first embodiment of the present invention;
[0017] Figure 3 A schematic diagram of a flow chart of a method for estimating memory in magnetic resonance reconstruction provided in Embodiment 2 of the present invention;
[0018] Figure 4 A schematic diagram of a module of a training device for a memory estimation model provided in Embodiment 2 of the present invention;
[0019] Figure 5 A schematic diagram of a module of a memory estimation device provided in Embodiment 2 of the present invention;
[0020] Figure 6 A schematic diagram of the structure of a magnetic resonance reconstruction memory estimation device provided in Embodiment 3 of the present invention;
[0021] Figure 7 A schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. DETAILED DESCRIPTION
[0022] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.
[0023] Embodiment 1
[0024] Figure 1 This is a flow chart of a method for estimating memory for magnetic resonance reconstruction provided by Embodiment 1 of the present invention. This embodiment can be applied to accurately estimating the amount of memory occupied by a part to be reconstructed before scanning the part to be reconstructed using a magnetic resonance device. This method can be performed by a magnetic resonance reconstruction memory estimation device, wherein the device can be implemented by software and / or hardware and is generally integrated in a terminal or electronic device. For details, see Figure 1 As shown, the method may include the following steps:
[0025] S110, obtaining a matrix to be reconstructed of the part to be reconstructed.
[0026] The part to be reconstructed can be understood as a part to be scanned, such as the head, neck, chest, abdomen, upper limbs, lower limbs, and blood vessels. The matrix to be reconstructed may include reconstruction information to be performed on the part to be reconstructed, such as reconstruction machine information, reconstruction process parameters, reconstruction parameters, reconstruction algorithm parameters, and reconstruction part protocol.
[0027] Among them, the reconstruction machine information can correspond to the model and number of threads of the central processor of different magnetic resonance products, etc. This information is automatically obtained when the magnetic resonance is started. Different reconstruction machine information will affect the amount of memory finally occupied by the reconstructed image of the part to be reconstructed; the reconstruction process parameters can be understood as the parameter information required for each step in the reconstruction process, such as fast spin echo sequence reconstruction parameters, two-dimensional gradient echo sequence reconstruction parameters, three-dimensional gradient echo sequence reconstruction parameters, diffusion weighted reconstruction parameters based on echo plane, diffusion tensor reconstruction parameters based on echo plane, and blood oxygen reconstruction parameters based on echo plane, etc.; the reconstruction parameters may include the sampling length corresponding to the part to be reconstructed, the length in the phase encoding direction, the number of channels used, the length in the second phase encoding direction, and the number of layers. It can be understood that some reconstruction parameters will change with the change of the reconstruction process parameters, such as the number of diffusions, the average number of diffusions, the number of diffusion gradients, the number of echoes, and the number of phases, etc.; the reconstruction algorithm parameters can be understood as the reconstruction algorithm required in the reconstruction process, such as the phase correction algorithm, the compressed sensing algorithm, the half Fourier algorithm, and the parallel acquisition algorithm, etc.
[0028] S120, inputting the matrix to be reconstructed into a pre-trained memory estimation model, and obtaining the memory amount of the part to be reconstructed according to the output result of the memory estimation model.
[0029] The memory estimation model is obtained by training the initial network according to the historical reconstruction matrix and the historical memory amount. Optionally, the memory estimation model can be a convolutional neural network, a recurrent neural network or other neural network models.
[0030] It is understandable that the historical reconstruction matrix can be a standard reconstruction matrix of multiple different reconstruction parts, and the historical memory capacity can be understood as the standard memory capacity occupied by different reconstruction parts after the reconstruction is completed. Optionally, the historical reconstruction matrix can also include reconstruction machine information, reconstruction process parameters, reconstruction parameters, reconstruction algorithm parameters and reconstruction part protocol. It is understandable that since the memory estimation model is trained based on multiple historical reconstruction matrices and multiple standard memory capacities, and the trained memory estimation model has good memory, the memory capacity of the part to be reconstructed can be obtained by inputting the matrix to be reconstructed into the trained memory estimation model, that is, before reconstructing the part to be reconstructed, the actual memory capacity occupied by the part to be reconstructed during the reconstruction process is estimated, so as to achieve the purpose of predicting in advance whether the part to be reconstructed can be reconstructed successfully.
[0031] Before scanning the part to be reconstructed, the present embodiment can determine whether the part to be reconstructed can be scanned by judging whether the memory capacity of the part to be reconstructed exceeds the set memory threshold or exceeds the current remaining memory capacity. Optionally, the following method can be used to determine whether the part to be reconstructed can be scanned:
[0032] S1, determining whether the memory amount of the part to be reconstructed exceeds a set memory threshold;
[0033] S2, if the memory amount of the part to be reconstructed exceeds the set memory threshold, a prompt for modifying the reconstruction protocol is issued, and the matrix to be reconstructed is updated according to the modified reconstruction protocol, and the updated matrix to be reconstructed is input into the memory estimation model to obtain the updated memory amount of the part to be reconstructed.
[0034] The reconstruction protocol includes at least one of a reconstruction process parameter, a reconstruction parameter, a reconstruction algorithm parameter, and a reconstruction site protocol. The setting of the memory threshold can be understood as the maximum amount of memory that the site to be reconstructed needs to occupy during the reconstruction process. For example, the memory threshold is set to one-half, one-third, etc. of the memory space of the magnetic resonance device. It is understandable that different reconstruction protocols may need to occupy different amounts of memory. If the amount of memory occupied exceeds the set memory threshold under a reconstruction protocol, a reconstruction protocol modification prompt is issued to notify the user to modify the reconstruction protocol, for example, modify the reconstruction algorithm, modify the number of phases read and the length of the phase encoding direction, etc., and then update the matrix to be reconstructed according to the modified reconstruction protocol to update the memory amount according to the updated matrix to be reconstructed.
[0035] like Figure 2 The figure shows a logic diagram of a magnetic resonance memory estimation provided by this embodiment, combined with Figure 2 Explain the memory estimation process. First, the user sets the reconstruction protocol, and then clicks the confirmation button to prepare the reconstruction protocol. According to the reconstruction protocol, the matrix to be reconstructed is input into the trained memory estimation model to estimate the amount of memory required for the part to be reconstructed during the reconstruction process. Then, it is determined whether the estimated amount of memory exceeds the set memory threshold of the system. If so, the user is reminded to modify the reconstruction protocol so that the matrix to be reconstructed is updated according to the modified reconstruction protocol. The updated matrix to be reconstructed is input into the memory estimation model to re-estimate the required amount of memory to obtain the updated memory amount of the part to be reconstructed. If the re-estimated required memory amount does not set the memory threshold, the part to be reconstructed can be scanned according to the modified reconstruction protocol until the scan is completed.
[0036] Optionally, in this embodiment, whether the part to be reconstructed can be scanned can also be determined in the following manner:
[0037] Step 1: Determine whether the memory capacity of the part to be reconstructed exceeds the actual remaining memory capacity, wherein the actual remaining memory capacity is the difference between the current remaining memory capacity and the memory occupied by the current process;
[0038] Step 2: If the memory capacity of the part to be reconstructed exceeds the actual remaining memory capacity and does not exceed the current remaining memory capacity, after the current process ends, the part to be reconstructed is subjected to magnetic resonance scanning. The current process can be understood as the programs running in the electronic device, etc. These programs occupy a part of the current remaining memory capacity, making the actual available current remaining memory capacity (i.e., the actual remaining memory capacity) smaller. If the current process ends, the memory capacity occupied by the current process is released, and the sum of the released memory and the actual remaining memory capacity exceeds the memory capacity of the part to be reconstructed, the part to be reconstructed can be subjected to magnetic resonance scanning.
[0039] Optionally, the method further includes: if the memory capacity of the part to be reconstructed does not exceed the current remaining memory capacity or a set memory threshold, performing a magnetic resonance scan on the part to be reconstructed.
[0040] The technical solution provided by the embodiment of the present invention obtains the matrix to be reconstructed of the part to be reconstructed, inputs the matrix to be reconstructed into a pre-trained memory estimation model, and obtains the memory amount of the part to be reconstructed according to the output result of the memory estimation model, wherein the memory estimation model is obtained by training the initial network according to the historical reconstruction matrix and the historical memory amount. Since the memory estimation model has good memory, the amount of memory occupied by the part to be reconstructed can be accurately estimated by inputting the matrix to be reconstructed into the memory estimation model, which solves the problem in the prior art that the amount of memory required in the magnetic resonance reconstruction process cannot be accurately estimated, and achieves the purpose of accurately estimating the magnetic resonance reconstruction memory and predicting the possibility of successful reconstruction based on the estimated memory.
[0041] Embodiment 2
[0042] Figure 3 A flow chart of a magnetic resonance reconstruction memory estimation method provided in the second embodiment of the present invention. The technical solution of this embodiment is refined on the basis of the above-mentioned embodiment. Specifically, the training method of the memory estimation model is refined. Optionally, the training method of the memory estimation model includes: obtaining the historical reconstruction matrix of the historical reconstructed image and the standard memory data corresponding to the historical reconstruction matrix, wherein the historical reconstruction matrix includes at least one of the reconstruction machine information, reconstruction process parameters, reconstruction parameters, reconstruction algorithm parameters and reconstruction site protocol of the historical reconstructed image; inputting the historical reconstruction matrix into the initial network to obtain predicted memory data, adjusting the network parameters of the initial network according to the predicted memory data and the standard memory data, and obtaining the memory estimation model. Please refer to the above-mentioned embodiment for the parts not fully described in this method embodiment. For details, see Figure 3 As shown, the method may include the following steps:
[0043] S310, obtaining a historical reconstruction matrix of a historical reconstructed image and standard memory data corresponding to the historical reconstruction matrix.
[0044] The standard memory data can be understood as the actual occupied memory. Optionally, the actual occupied memory of the historical reconstruction matrix in each reconstruction process can be obtained regularly, and then the maximum value of the actual occupied memory in each reconstruction process is used as the standard memory data corresponding to the historical reconstruction matrix.
[0045] S320, inputting the historical reconstruction matrix into the initial network to obtain predicted memory data, adjusting the network parameters of the initial network according to the predicted memory data and the standard memory data, and obtaining a memory estimation model.
[0046] The network parameter of the initial network can be a damage function, and the initial network is trained using a damage function back propagation algorithm until the predicted memory data is infinitely close to the actual occupied memory, thereby obtaining a memory estimation model. Optionally, the initial network can include multiple convolutional layers and multiple activation function layers, and the predicted memory data is output through multiple convolutional layers and multiple activation function layers.
[0047] In this embodiment, a training device for a memory estimation model may be included, through which the memory estimation model is trained. Figure 4 The module diagram of the training device of the memory estimation model is shown. The training device of the memory estimation model may include a reconstruction machine system information acquisition module, a protocol parameter acquisition module, a reconstruction process actual memory usage monitoring module, a reconstruction memory estimation learning module, and an update memory estimation factor module. Optionally, the memory estimation model can be trained by the following steps using the device:
[0048] Step a: Obtain the reconstruction machine information of the historical reconstruction matrix through the reconstruction machine system information acquisition module.
[0049] It is understandable that different magnetic resonance products have different reconstruction machine configurations, different maximum memory amounts available for different reconstruction machine configurations, different central processing unit models, and different numbers of threads used for parallel computing. The above-mentioned reconstruction machine configurations, central processing unit models, and number of threads can all be used as reconstruction machine information, and differences in this information will affect the amount of memory ultimately used for reconstruction. Optionally, this module can automatically obtain the reconstruction machine information when the software is started, and report the reconstruction machine information to the reconstruction memory estimation learning module for use.
[0050] Step b: obtaining a reconstruction protocol of a historical reconstruction matrix through a protocol parameter acquisition module, wherein the reconstruction protocol includes: reconstruction process parameters, reconstruction parameters and reconstruction algorithm parameters.
[0051] It is understandable that the MRI system will include all parts reconstruction protocols when it is released, such as head, neck, chest, abdomen, upper limbs, lower limbs, and blood vessels, and each part corresponds to a different reconstruction part protocol.
[0052] Optionally, the module can first obtain the reconstruction site protocol to determine the site that needs to be reconstructed, and then obtain the reconstruction process parameters, such as: fast spin echo sequence reconstruction parameters, two-dimensional gradient echo sequence reconstruction parameters, three-dimensional gradient echo sequence reconstruction parameters, diffusion weighted reconstruction parameters based on echo plane, diffusion tensor reconstruction parameters based on echo plane, and blood oxygen reconstruction parameters based on echo plane, etc., and then obtain different reconstruction parameters according to the reconstruction process parameters. Some reconstruction parameters are required for all reconstruction processes, such as the readout direction sampling length, the phase encoding direction length, the number of channels used, the second phase encoding direction length and the number of layers. Some reconstruction parameters vary according to the reconstruction process parameters, such as the diffusion weighted reconstruction parameters based on the echo plane, the diffusion direction, the number of b values, and the number of gradient directions of each b value. For multi-phase enhanced reconstruction, the number of phases needs to be read, and for multi-contrast reconstruction, the number of echoes needs to be read. Finally, the reconstruction algorithm parameters are read. The reconstruction algorithm parameters are applicable to all reconstruction processes. Common reconstruction algorithms include phase correction algorithm, compressed sensing algorithm, half Fourier algorithm, parallel acquisition algorithm, etc. This information will eventually be passed to the reconstruction memory estimation learning module for use, so that the reconstruction memory estimation learning module can train the memory estimation model according to the reconstruction protocol.
[0053] Step c: monitor the actual memory usage during the reconstruction of the historical reconstruction matrix through the memory monitoring module actually used in the reconstruction process.
[0054] Optionally, the module can obtain the actual memory occupied by the reconstruction process once at fixed intervals. After the reconstruction is completed, it returns the maximum value in the recorded memory as the actual memory occupied by the reconstruction process, and sends the actual memory occupied by the reconstruction process to the reconstruction memory estimation learning module.
[0055] Step d: Train the memory estimation model by reconstructing the memory estimation learning module.
[0056] Optionally, the reconstruction memory estimation learning module may include a memory estimation learning model, which trains the memory estimation model by receiving the reconstruction machine information obtained by the reconstruction machine system information acquisition module, the reconstruction protocol obtained by the protocol parameter acquisition module, and the actual occupied memory obtained by the memory monitoring module actually used in the reconstruction process to obtain the learning factor, that is, to obtain the trained memory estimation model.
[0057] For example, assuming that the historical reconstruction matrix obtained by statistics is A, X is the learning factor, and B is the actual occupied memory, they have the following relationship: A*X=B,
[0058] Among them, A is M*N in size, M means there are M reconstructions with different parameters, N means N related parameters extracted by the reconstruction machine system information acquisition module, protocol parameter acquisition module and memory monitoring module actually used in the reconstruction process; B is M*1 in size; X is N*1. In other words, the reconstruction memory estimation learning module can train the memory estimation model through the above formula to obtain the learning factor X.
[0059] Step e: Update the learning factor by updating the memory estimation factor module.
[0060] It is understandable that the default learning factor will be released together with the MRI system, but technicians in the same hospital or different hospitals can modify the reconstruction protocol on their own, which may make the default learning factor inappropriate. This module relearns the memory estimation model according to the reconstruction protocol used daily in each hospital, generates a new learning factor, and obtains an updated memory estimation model.
[0061] Optionally, the trained memory estimation model can be updated in the following manner: based on the matrix to be reconstructed within a preset time period, the memory amount of the reconstructed part within the preset time period obtained by the memory estimation model, and the actual memory amount of the magnetic resonance scan of the reconstructed part within the preset time period, the memory estimation model is updated and trained to obtain an updated learning factor.
[0062] For example, a hospital often uses three reconstruction algorithms, such as iterative reconstruction algorithm, half-Fourier algorithm and phase correction algorithm. After a period of time, it is necessary to add compressed sensing algorithm and parallel acquisition algorithm to reconstruct the reconstruction part jointly with iterative reconstruction algorithm, half-Fourier algorithm and phase correction algorithm. It can be known that due to the addition of new reconstruction algorithms, the memory estimation model obtained by previous training cannot be used for memory estimation. At this time, it is necessary to obtain the reconstruction matrix within the preset time period, the memory amount of the reconstructed part within the preset time period obtained by the memory estimation model, and the actual memory amount of the magnetic resonance scanning of the reconstructed part within the preset time period, and update the training of the memory estimation model to obtain an updated learning factor suitable for current applications.
[0063] In summary, it can be seen that after the memory estimation model is modularized in this embodiment, the memory estimation model can be trained through the above steps a to d. It can be understood that after the memory estimation model is trained, the model can be used to estimate the memory amount of the matrix to be reconstructed. In this embodiment, the memory estimation model in the memory estimation device can be used to estimate the memory amount of the matrix to be reconstructed during the reconstruction process. Figure 5The module schematic diagram of the memory estimation device is shown, and the memory estimation device may include: a reconstruction machine system information acquisition module, a protocol parameter acquisition module, and an estimated reconstruction required memory module, wherein the estimated reconstruction required memory module can receive the memory estimation model transmitted by the training device of the memory estimation model, that is, the estimated reconstruction required memory module includes the trained memory estimation model. Optionally, the device can be used to estimate the amount of memory required by the matrix to be reconstructed during the reconstruction process through the following steps:
[0064] Step A: Obtain the reconstruction machine information of the matrix to be reconstructed through the reconstruction machine system information acquisition module.
[0065] Step B: Obtain the reconstruction protocol of the matrix to be reconstructed through the protocol parameter acquisition module.
[0066] Step C: Obtain the actual memory occupied during the reconstruction of the matrix to be reconstructed by estimating the memory module required for reconstruction.
[0067] It is understandable that before scanning, the magnetic resonance system can obtain reconstruction parameters through the reconstruction machine system information acquisition module and the protocol parameter acquisition module, that is, obtain the matrix to be reconstructed. Since the estimated memory module required for reconstruction includes a trained memory estimation model, the estimated memory module required for reconstruction can output the actual occupied memory during the reconstruction process of the matrix to be reconstructed through the memory estimation model. Exemplarily, the estimated memory module required for reconstruction can obtain the estimated amount of memory through the following formula: A'*X=B', where A' is the matrix to be reconstructed, X is the learning factor, and B' is the estimated amount of memory.
[0068] S330, obtaining a matrix to be reconstructed of the part to be reconstructed.
[0069] S340, inputting the matrix to be reconstructed into a pre-trained memory estimation model, and obtaining the memory amount of the part to be reconstructed according to the output result of the memory estimation model.
[0070] Among them, the memory estimation model is obtained by training the initial network according to the historical reconstruction matrix and the historical memory amount.
[0071] The technical solution provided by the embodiment of the present invention obtains the historical reconstruction matrix of the historical reconstructed image and the standard memory data corresponding to the historical reconstruction matrix, inputs the historical reconstruction matrix into the initial network to obtain predicted memory data, adjusts the network parameters of the initial network according to the predicted memory data and the standard memory data, obtains the memory estimation model, and based on the historical reconstruction matrix within a preset time period, the memory amount of the historical reconstructed part obtained by the memory estimation model and the actual memory amount of the magnetic resonance scan of the historical reconstructed part, updates and trains the memory estimation model, thereby achieving the purpose of accurately training the memory estimation model and regularly updating the memory estimation model.
[0072] Embodiment 3
[0073] Figure 6 This is a schematic diagram of the structure of a magnetic resonance reconstruction memory estimation device provided by the third embodiment of the present invention. Figure 6 As shown, the system includes: a matrix acquisition module 61 to be reconstructed and a memory quantity output module 62.
[0074] The to-be-reconstructed matrix acquisition module 61 is used to acquire the to-be-reconstructed matrix of the to-be-reconstructed part;
[0075] The memory output module 62 is used to input the matrix to be reconstructed into a pre-trained memory estimation model, and obtain the memory volume of the part to be reconstructed according to the output result of the memory estimation model, wherein the memory estimation model is obtained by training the initial network according to the historical reconstruction matrix and the historical memory volume.
[0076] On the basis of the above embodiments, it also includes: a memory estimation model training module;
[0077] The memory estimation model training module is used to obtain the historical reconstruction matrix of the historical reconstructed image and the standard memory data corresponding to the historical reconstruction matrix, wherein the historical reconstruction matrix includes at least one of the reconstruction machine information, reconstruction process parameters, reconstruction parameters, reconstruction algorithm parameters and reconstruction part protocol of the historical reconstructed image;
[0078] The historical reconstruction matrix is input into the initial network to obtain the predicted memory data. The network parameters of the initial network are adjusted according to the predicted memory data and the standard memory data to obtain the memory estimation model.
[0079] On the basis of the above embodiments, the memory estimation model training module is further used to periodically obtain the actual memory occupied by the historical reconstruction matrix in each reconstruction process;
[0080] The maximum value of the actual occupied memory in each reconstruction process is used as the standard memory data corresponding to the historical reconstruction matrix.
[0081] Based on the above embodiments, it further includes: a first judgment module and a first update module;
[0082] The first judgment module is used to judge whether the memory amount of the part to be reconstructed exceeds the set memory threshold;
[0083] The first update module is used to issue a reconstruction protocol modification prompt if the memory amount of the part to be reconstructed exceeds a set memory threshold, and update the matrix to be reconstructed according to the modified reconstruction protocol, and input the updated matrix to be reconstructed into the memory estimation model to obtain an updated memory amount of the part to be reconstructed, wherein the reconstruction protocol includes: reconstruction process parameters, reconstruction parameters, reconstruction algorithm parameters and at least one of the reconstruction part protocol.
[0084] On the basis of the above embodiments, it further includes: a second judgment module and a scanning module;
[0085] A second judgment module is used to judge whether the memory amount of the part to be reconstructed exceeds the actual remaining memory amount, wherein the actual remaining memory amount is the difference between the current remaining memory amount and the memory occupied by the current process;
[0086] The scanning module is used to perform a magnetic resonance scan on the part to be reconstructed after the current process ends if the memory capacity of the part to be reconstructed exceeds the actual remaining memory capacity but does not exceed the current remaining memory capacity.
[0087] On the basis of the above embodiments, the scanning module is further used to perform a magnetic resonance scan on the part to be reconstructed if the memory capacity of the part to be reconstructed does not exceed the actual remaining memory capacity or a set memory threshold.
[0088] On the basis of the above embodiments, it also includes: a model update training module, which is used to update and train the memory estimation model based on the reconstruction matrix within a preset time period, the memory amount of the reconstructed part obtained by the memory estimation model, and the actual memory amount of the magnetic resonance scanning of the reconstructed part within the preset time period.
[0089] The technical solution provided by the embodiment of the present invention obtains the matrix to be reconstructed of the part to be reconstructed, inputs the matrix to be reconstructed into a pre-trained memory estimation model, and obtains the memory amount of the part to be reconstructed according to the output result of the memory estimation model, wherein the memory estimation model is obtained by training the initial network according to the historical reconstruction matrix and the historical memory amount. Since the memory estimation model has good memory, the amount of memory occupied by the part to be reconstructed can be accurately estimated by inputting the matrix to be reconstructed into the memory estimation model, which solves the problem in the prior art that the amount of memory required in the magnetic resonance reconstruction process cannot be accurately estimated, and achieves the purpose of predicting the magnetic resonance reconstruction memory in advance and accurately predicting the possibility of successful reconstruction.
[0090] Embodiment 4
[0091] Figure 7 A schematic diagram of the structure of an electronic device provided in Embodiment 4 of the present invention. Figure 7 A block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present invention is shown. Figure 7 The electronic device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0092] like Figure 7As shown, the electronic device 12 is in the form of a general purpose computing device. The components of the electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).
[0093] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.
[0094] The electronic device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the electronic device 12, including volatile and non-volatile media, removable and non-removable media.
[0095] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The electronic device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 7 not shown, usually called a "hard drive"). Although Figure 7 Not shown in the figure, a disk drive for reading and writing a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product having a set of program modules (e.g., an image acquisition module 61 and a storage module 62 of a magnetic resonance reconstruction memory estimation device), which are configured to perform the functions of various embodiments of the present invention.
[0096] A program / utility 44 having a set of program modules 46 (e.g., a matrix acquisition module 61 to be reconstructed and a memory output module 62) may be stored, for example, in the memory 28, such program modules 46 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination thereof may include the implementation of a network environment. The program modules 46 generally perform the functions and / or methods of the embodiments described herein.
[0097] The electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), may communicate with one or more devices that enable a user to interact with the electronic device 12, and / or may communicate with any device that enables the electronic device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the electronic device 12 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the electronic device 12 via a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0098] The processing unit 16 executes various functional applications and data processing by running the program stored in the system memory 28, for example, implementing a magnetic resonance reconstruction memory estimation method provided by an embodiment of the present invention, the method comprising:
[0099] Obtaining a matrix to be reconstructed of the part to be reconstructed;
[0100] The matrix to be reconstructed is input into a pre-trained memory estimation model, and the memory amount of the part to be reconstructed is obtained according to the output result of the memory estimation model, wherein the memory estimation model is obtained by training the initial network according to the historical reconstruction matrix and the historical memory amount.
[0101] The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, such as implementing a magnetic resonance reconstruction memory estimation method provided by an embodiment of the present invention.
[0102] Of course, those skilled in the art can understand that the processor can also implement the technical solution of a magnetic resonance reconstruction memory estimation method provided by any embodiment of the present invention.
[0103] Embodiment 5
[0104] Embodiment 5 of the present invention further provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, a method for estimating memory for magnetic resonance reconstruction provided in an embodiment of the present invention is implemented. The method includes:
[0105] Obtaining a matrix to be reconstructed of the part to be reconstructed;
[0106] The matrix to be reconstructed is input into a pre-trained memory estimation model, and the memory amount of the part to be reconstructed is obtained according to the output result of the memory estimation model, wherein the memory estimation model is obtained by training the initial network according to the historical reconstruction matrix and the historical memory amount.
[0107] Of course, the computer-readable storage medium provided by an embodiment of the present invention stores a computer program which is not limited to the above method operations, but can also execute related operations in a magnetic resonance reconstruction memory estimation method provided by any embodiment of the present invention.
[0108] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, system or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, system or device or used in combination with it.
[0109] The computer-readable signal medium may include a matrix to be reconstructed, a memory estimation model, a historical reconstruction matrix, and a historical memory amount, etc., which carry a computer-readable program code. Such propagated matrix to be reconstructed, memory estimation model, historical reconstruction matrix, and historical memory amount, etc. The computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, system, or device.
[0110] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
[0111] Computer program code for performing the operations of the present invention may be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0112] It is worth noting that in the above-mentioned embodiment of the magnetic resonance reconstruction memory estimation device, the various modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0113] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for estimating memory for magnetic resonance reconstruction, characterized in that: include: Obtaining a matrix to be reconstructed of the part to be reconstructed; Inputting the matrix to be reconstructed into a pre-trained memory estimation model, and obtaining the amount of memory actually occupied by the part to be reconstructed during the reconstruction process according to the output result of the memory estimation model, wherein the memory estimation model is obtained by training the initial network according to the historical reconstruction matrix and the historical memory amount; The matrix to be reconstructed includes reconstruction machine information, reconstruction process parameters, reconstruction parameters, reconstruction algorithm parameters and reconstruction part protocol to be performed for the part to be reconstructed; the reconstruction parameters include sampling length, phase encoding direction length and layer number information corresponding to the part to be reconstructed, and the reconstruction algorithm parameters refer to the reconstruction algorithm required in the reconstruction process; The training method of the memory estimation model includes: Acquire the historical reconstruction matrix of the historical reconstructed image and the standard memory data corresponding to the historical reconstruction matrix, wherein the historical reconstruction matrix includes reconstruction machine information, reconstruction process parameters, reconstruction parameters, reconstruction algorithm parameters and reconstruction part protocol of the historical reconstructed image; Inputting the historical reconstruction matrix into the initial network to obtain predicted memory data, adjusting the network parameters of the initial network according to the predicted memory data and the standard memory data, and obtaining the memory estimation model; The obtaining of standard memory data corresponding to the historical reconstruction matrix includes: Regularly obtain the actual memory occupied by the historical reconstruction matrix in each reconstruction process; The maximum value of the actually occupied memory in each reconstruction process is used as the standard memory data corresponding to the historical reconstruction matrix.
2. The method according to claim 1, characterized in that: Also includes: Determining whether the memory amount of the part to be reconstructed exceeds a set memory threshold; If the memory amount of the part to be reconstructed exceeds the set memory threshold, a prompt for modifying the reconstruction protocol is issued, and the matrix to be reconstructed is updated according to the modified reconstruction protocol, and the updated matrix to be reconstructed is input into the memory estimation model to obtain an updated memory amount of the part to be reconstructed, wherein the reconstruction protocol includes: at least one of the reconstruction process parameters, the reconstruction parameters, the reconstruction algorithm parameters and the reconstruction part protocol.
3. The method according to claim 1, characterized in that Also includes: Determine whether the memory amount of the part to be reconstructed exceeds the actual remaining memory amount, wherein the actual remaining memory amount is the difference between the current remaining memory amount and the memory occupied by the current process; If the memory capacity of the part to be reconstructed exceeds the actual remaining memory capacity but does not exceed the current remaining memory capacity, after the current process is finished, a magnetic resonance scan is performed on the part to be reconstructed.
4. The method according to claim 2 or 3, characterized in that: Also includes: If the memory capacity of the part to be reconstructed does not exceed the actual remaining memory capacity or the set memory threshold, a magnetic resonance scan is performed on the part to be reconstructed.
5. The method according to claim 1, characterized in that The method further comprises: The memory estimation model is updated and trained based on the reconstruction matrix within a preset time period, the memory amount of the reconstructed part within the preset time period obtained by the memory estimation model, and the actual memory amount of the magnetic resonance scanning of the reconstructed part within the preset time period.
6. A magnetic resonance reconstruction memory estimation device, characterized in that: include: A module for obtaining a matrix to be reconstructed, used for obtaining a matrix to be reconstructed of a part to be reconstructed; A memory output module is used to input the matrix to be reconstructed into a pre-trained memory estimation model, and obtain the actual memory amount occupied by the part to be reconstructed during the reconstruction process according to the output result of the memory estimation model, wherein the memory estimation model is obtained by training the initial network according to the historical reconstruction matrix and the historical memory amount; The matrix to be reconstructed includes reconstruction machine information, reconstruction process parameters, reconstruction parameters, reconstruction algorithm parameters and reconstruction part protocol to be performed for the part to be reconstructed; the reconstruction parameters include sampling length, phase encoding direction length and layer number information corresponding to the part to be reconstructed, and the reconstruction algorithm parameters refer to the reconstruction algorithm required in the reconstruction process; A memory estimation model training module, used for obtaining the historical reconstruction matrix of the historical reconstructed image and the standard memory data corresponding to the historical reconstruction matrix, wherein the historical reconstruction matrix includes the reconstruction machine information, reconstruction process parameters, reconstruction parameters, reconstruction algorithm parameters and reconstruction part protocol of the historical reconstructed image; Inputting the historical reconstruction matrix into the initial network to obtain predicted memory data, adjusting the network parameters of the initial network according to the predicted memory data and the standard memory data, and obtaining the memory estimation model; The memory estimation model training module is also used to periodically obtain the actual memory occupied by the historical reconstruction matrix in each reconstruction process; and use the maximum value of the actual occupied memory in each reconstruction process as the standard memory data corresponding to the historical reconstruction matrix.
7. The device according to claim 6, characterized in that It also includes a first judgment module and a first update module; The first judgment module is used to judge whether the memory amount of the part to be reconstructed exceeds a set memory threshold; The first update module is used to issue a reconstruction protocol modification prompt if the memory amount of the part to be reconstructed exceeds the set memory threshold, and update the matrix to be reconstructed according to the modified reconstruction protocol, and input the updated matrix to be reconstructed into the memory estimation model to obtain the updated memory amount of the part to be reconstructed, wherein the reconstruction protocol includes: at least one of the reconstruction process parameters, the reconstruction parameters, the reconstruction algorithm parameters and the reconstruction part protocol.
8. The device according to claim 6, characterized in that Also includes a second judgment module and a scanning module; The second judgment module is used to judge whether the memory amount of the part to be reconstructed exceeds the actual remaining memory amount, wherein the actual remaining memory amount is the difference between the current remaining memory amount and the memory occupied by the current process; The scanning module is used to perform a magnetic resonance scan on the part to be reconstructed after the current process ends if the memory capacity of the part to be reconstructed exceeds the actual remaining memory capacity but does not exceed the current remaining memory capacity.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the magnetic resonance reconstruction memory estimation method according to any one of claims 1 to 5 is implemented.
10. A storage medium containing computer executable instructions, characterized in that: When the computer executable instructions are executed by a computer processor, the magnetic resonance reconstruction memory estimation method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Distributed SQL processing method and system
CN107967335A
Three-dimensional image processing method and device
CN108733478A
Image processing method, computer equipment and readable storage medium
CN110390679A
X-ray ct apparatus
JP2003185598A
