A method for automatic segmentation of magnetic resonance images
By identifying and analyzing the operating environment factors of the magnetic resonance equipment, using digital twin technology and the isolation forest algorithm to pre-mark artifacts and adjust the segmentation algorithm, the problem of magnetic resonance image segmentation accuracy being affected by artifacts is solved, the segmentation accuracy is improved and the cost is reduced. Equipment service life.
Patent Information
- Application Number
- CN202311730964.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-12-15
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2043-12-15
AI Technical Summary
During the application process, magnetic resonance images are susceptible to interference from uneven field strength, patient breathing movements, involuntary movements, metal objects or external environments, which can lead to magnetic resonance artifacts and affect the accuracy of the automatic image segmentation model.
By identifying the operating environment factor library of the target device, a digital twin is established for simulation, anomaly detection results are analyzed, factor interference items are determined, anomaly recognition models are established using the isolation forest algorithm, artifacts are pre-marked and the image segmentation algorithm is adjusted to improve segmentation accuracy.
It improves the segmentation accuracy of magnetic resonance images, reduces the impact of artifacts, reduces the service life of equivalent equipment, and provides support for subsequent data analysis.
Smart Images

Figure CN117409016B_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of magnetic resonance image processing, and in particular is a magnetic resonance image automatic segmentation method. Background Art
[0002] Magnetic resonance imaging (MRI) technology is a method that uses the magnetism of hydrogen nuclei to generate resonance signals under the action of an external gradient magnetic field and excitation to detect and draw structural images inside objects. It is a milestone in the application of modern physics to clinical medicine. MRI is widely used in clinical practice, providing more dimensional imaging information for disease diagnosis and efficacy evaluation. However, MRI is easily interfered by uneven field strength, patient breathing movement, involuntary movement, metal objects or instruments, external environment, etc. during application, resulting in various MRI artifacts.
[0003] Automatic segmentation of magnetic resonance images is a key step in automatically identifying lesions and quantifying tissue and lesion parameters, and is the cornerstone of applying artificial intelligence to medical imaging. However, the generation of magnetic resonance artifacts is a major obstacle to the accuracy of automatic image segmentation models.
[0004] Based on this, in order to improve the segmentation accuracy of magnetic resonance images and reduce the influence of magnetic resonance artifacts, the present invention provides a method for improving the accuracy of automatic segmentation of magnetic resonance images by identifying artifacts. Summary of the invention
[0005] In order to solve the problems existing in the above scheme, the present invention provides a method for automatic segmentation of magnetic resonance images.
[0006] The purpose of the present invention can be achieved through the following technical solutions:
[0007] A method for automatic segmentation of magnetic resonance images, the method comprising:
[0008] Step 1: Determine each detection item of the target device and identify the image segmentation algorithm corresponding to each detection item;
[0009] Step 2: Analyze the operating environment of the target device to determine the factor library of the target device;
[0010] Furthermore, the method for analyzing the operating environment of the target device includes:
[0011] Determine the equivalent device of the target device and obtain the historical detection data of the equivalent device; identify each detection anomaly record in the historical detection data, determine the various influencing factors of the equivalent device based on the obtained detection anomaly records, and integrate them into the factor library of the target device.
[0012] Furthermore, the method for identifying each detection anomaly record in the historical detection data includes:
[0013] Step SA1: defining a first record range, and identifying a first record in the historical detection data based on the first record range;
[0014] Step SA2: determining the screening data in the historical test data according to each of the first records, and identifying the test result corresponding to each test record in the screening data;
[0015] Step SA3: analyzing the corresponding detection record according to the obtained detection result, determining the corresponding abnormal detection result, and determining the corresponding second record according to the obtained abnormal detection result;
[0016] Step SA4: The first record and the second record are integrated and marked as detected abnormal records.
[0017] Furthermore, the method for determining the abnormality detection result includes:
[0018] identifying a corresponding magnetic resonance image in the detection record, identifying the magnetic resonance image based on the detection result, and determining whether the detection result matches the magnetic resonance image;
[0019] When it is determined that the test result matches the magnetic resonance image, the abnormal test result outputted is that the test is normal;
[0020] When the judgment detection result does not match the magnetic resonance image, the abnormal detection result output is a detection abnormality.
[0021] Furthermore, the method for determining the influencing factors of equivalent equipment includes:
[0022] Establishing a digital twin of the equivalent device based on digital twin technology; identifying the corresponding magnetic resonance image in each of the detection abnormality records and marking it as an abnormal image;
[0023] Simulating various environmental data and patient behaviors, applying the digital twin to analyze abnormal images under simulated conditions, and determining the environmental conditions and patient behaviors required to generate the abnormal images; determining the influencing factors corresponding to the abnormal images according to the determined environmental conditions and patient behaviors;
[0024] The obtained influencing factors are deduplicated to obtain influencing factors of equivalent devices.
[0025] Step 3: acquiring a magnetic resonance image generated by the target device, identifying target environment data of the magnetic resonance image, and determining interference items of factors corresponding to the magnetic resonance image based on the identified target environment data and the factor library;
[0026] Furthermore, the method for determining the factor interference term includes:
[0027] Inputting the identified target environment data into the factor library for matching, obtaining corresponding factor items, and marking the matched factor items as factor interference items;
[0028] Extract interference environment data corresponding to each interference item of the factor from the target environment data.
[0029] Step 4: Obtain interference environment data of each interference factor, and determine the probability value of each type of artifact according to the obtained interference environment data;
[0030] Furthermore, the method for determining the probability value of each type of artifact according to the obtained interference environment data includes:
[0031] Identify various types of artifacts, mark factor items corresponding to each type of artifact, and determine factor interference item combinations corresponding to each type of artifact according to the factor items corresponding to each type of artifact;
[0032] Determine probability analysis data of corresponding types of artifacts according to the combination of interference factors;
[0033] The obtained probability analysis data is analyzed to determine the probability value corresponding to each type of artifact.
[0034] Further, the method of analyzing the probability analysis data is as follows:
[0035] Obtaining historical probability analysis data corresponding to the combination of interference items of each factor, and establishing a corresponding anomaly recognition model based on the historical probability analysis data and the isolation forest algorithm;
[0036] Analyze the probability analysis data according to the set anomaly recognition model to obtain an abnormal value corresponding to each factor item, and integrate the abnormal value corresponding to each factor item into an abnormal set;
[0037] According to the historical probability analysis data, the occurrence probability of each type of artifact corresponding to each of the abnormal sets is counted and integrated into an abnormal matching table;
[0038] The obtained anomaly set is input into the anomaly matching table for matching, and the occurrence probability of each type of artifact is obtained and marked as a corresponding probability value.
[0039] Furthermore, the expression of the anomaly recognition model is: ;
[0040] In the formula: xi is the input data, which represents the factor item data corresponding to each factor item in the probability analysis data, i=1, 2,..., n, n is a positive integer; the output is the abnormal value yi of each factor item, yi=Y(xi), i=1, 2,..., n, n is a positive integer.
[0041] Step 5: Pre-mark the magnetic resonance image for artifacts according to the determined probability values of each type of artifact, and segment the marked magnetic resonance image.
[0042] Furthermore, the method for pre-marking artifacts includes:
[0043] Identify the probability value of each type of artifact, and mark the type of artifact with a probability value lower than the threshold X1 as the target artifact;
[0044] The magnetic resonance image is identified according to the target artifact, the target artifact in the magnetic resonance image is determined, and the determined target artifact is marked in the magnetic resonance image.
[0045] Furthermore, the method for segmenting the marked magnetic resonance image includes:
[0046] Identify the image segmentation algorithm corresponding to each of the detection items of the target device; simulate and adjust the image segmentation algorithm under each type of artifact based on the preset digital twin, obtain corresponding algorithm simulation adjustment data, select the image segmentation algorithm with the highest pass rate after several adjustment simulations and the pass rate greater than the threshold value X2 as the target algorithm under the corresponding type of artifact; integrate them into a target algorithm library;
[0047] Identify the type of artifacts marked in the magnetic resonance image, match a corresponding target algorithm from the target algorithm library according to the identified type of artifacts, and segment the magnetic resonance image according to the obtained target algorithm.
[0048] Compared with the prior art, the present invention has the following beneficial effects:
[0049] By analyzing the operating environment of the target device, it is determined which factors may interfere with the magnetic resonance image generated by the target device, so as to facilitate the determination of possible detection errors in the subsequent detection process and improve the segmentation accuracy of the magnetic resonance image.
[0050] By establishing a digital twin for simulation, the service life of equivalent equipment can be reduced due to excessive simulation times; at the same time, it can provide support for subsequent data analysis. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0052] Figure 1 The figure is a flow chart of the method of the present invention. DETAILED DESCRIPTION
[0053] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0054] like Figure 1 As shown, a method for automatic segmentation of magnetic resonance images comprises:
[0055] Step 1: Determine the detection items of the target device and identify the image segmentation algorithm corresponding to each detection item;
[0056] The target device refers to the magnetic resonance device;
[0057] The test items are determined based on the actual situation of the hospital, and are specifically set based on the items that the hospital has that are applied to magnetic resonance imaging equipment for testing; such as test items related to brain diseases, spine and spinal cord diseases, joint and soft tissue diseases, etc.
[0058] The image segmentation algorithm refers to the related processing algorithms that come with the target device, such as threshold-based segmentation, region growing method, FCM clustering algorithm, etc. The image segmentation algorithm used for each detection item is determined based on the detection application of the relevant detection item.
[0059] Step 2: Analyze the operating environment of the target device and determine the factor library of the target device;
[0060] By analyzing the operating environment of the target device, it is determined which factors may interfere with the magnetic resonance image generated by the target device, so as to facilitate the determination of possible detection errors in the subsequent detection process and improve the segmentation accuracy of the magnetic resonance image.
[0061] Methods for analyzing the operating environment of the target device include:
[0062] Determine the equivalent device of the target device, that is, the magnetic resonance device of the same type and model as the target device; obtain the historical test data of the equivalent device, which does not include the patient's personal information; identify the various test abnormality records in the historical test data, and determine the various influencing factors of the equivalent device based on the obtained test abnormality records, and integrate them into a factor library for the target device.
[0063] The method for identifying each abnormal detection record in the historical detection data includes:
[0064] Step SA1: Identify the test records in the historical test data that are misdiagnosed due to the inaccuracy of the magnetic resonance image, and mark them as the first records; when the above situation occurs, data feedback verification will be performed, so the corresponding record results can be directly identified; the first record includes the corresponding test items and image segmentation algorithm;
[0065] Step SA2: Mark the data corresponding to the non-first record in the historical test data as screening data, identify the test results corresponding to each test record in the screening data, and obtain the test results through review by the corresponding attending physician, that is, when the corresponding patient visits the doctor, the doctor marks the data as the data in the historical test data;
[0066] Step SA3: analyzing the corresponding detection record according to the obtained detection result, determining the corresponding abnormal detection result, and determining the corresponding second record according to the obtained abnormal detection result;
[0067] Identify the test result and the corresponding magnetic resonance image in the test record, identify the magnetic resonance image based on the test result, and determine whether the test result matches the magnetic resonance image;
[0068] When the test result is judged to match the magnetic resonance image, the abnormal test result output is a normal test;
[0069] When it is determined that the detection result does not match the magnetic resonance image, the abnormal detection result output is a detection abnormality.
[0070] The detection record whose abnormality detection result is a detected abnormality is marked as the second record.
[0071] The magnetic resonance image can be identified based on the detection result and judged based on the existing image recognition method. There are a large number of relevant magnetic resonance images corresponding to the detection result, and corresponding judgment can be made by performing corresponding comparison and matching.
[0072] Exemplarily, the judgment can be made in combination with a neural network as follows:
[0073] A sample data set is created, which includes material samples and manually annotated sample sets. The material samples are original picture sets, and the manually annotated sample sets are picture sets after format conversion of the original pictures and manual annotation of the corresponding detection results. The ratio of material samples to manually annotated sample sets in the sample data set is 2:1; the pictures in the manually annotated sample set are binarized and saved in a single-channel form, and the photo sample set and the manually annotated sample set are divided according to the ratio to form a second photo sample set and a second manually annotated sample set; a Linknet network model is built based on the Linknet network structure under the Pytorch deep learning framework, the parameters of the Linknet network model are set, the second photo sample set and the second manually annotated sample set are input into the Linknet network model, and the Linknet network model is trained based on the Pytorch deep learning framework. Multiple models are saved during the training process, and the model with the smallest error is selected as the result recognition model using the validation set data.
[0074] The detection results corresponding to the magnetic resonance images are identified through the result recognition model, and corresponding comparison and judgment are performed.
[0075] Step SA4: The first record and the second record are integrated and marked as detected abnormal records.
[0076] Methods for determining various influencing factors of equivalent equipment based on the obtained detection anomaly records include:
[0077] Establish a digital twin of the equivalent equipment based on the existing digital twin technology; identify the corresponding magnetic resonance image in each abnormal detection record and mark it as an abnormal image;
[0078] Simulate various environmental data and patient behaviors, apply digital twins to analyze corresponding abnormal images under simulated conditions, and determine the environmental conditions and patient behaviors required to generate abnormal images; the patient model in the simulation is set according to the corresponding test results; determine the influencing factors corresponding to the abnormal image based on the determined environmental conditions and patient behaviors;
[0079] The obtained influencing factors are deduplicated to obtain the influencing factors of equivalent devices.
[0080] By establishing a digital twin for simulation, the service life of equivalent equipment can be reduced due to excessive simulation times; at the same time, it can provide support for subsequent data analysis.
[0081] Step 3: Acquire the magnetic resonance image generated by the target device, identify the target environment data of the magnetic resonance image, and determine the interference items of the factors corresponding to the magnetic resonance image based on the identified target environment data and the factor library;
[0082] The target environment data refers to the surrounding environment data and patient behavior data corresponding to when the target device detects and generates a magnetic resonance image; the target environment data is collected by setting corresponding collection equipment, sensors, etc. in the space corresponding to the target device; or corresponding monitoring is also possible.
[0083] Methods for determining interfering factors include:
[0084] The identified target environment data is input into the factor library for matching, corresponding factor items are obtained, and the matched factor items are marked as factor interference items; based on each factor interference item, interference environment data corresponding to each factor interference item is extracted from the target environment data.
[0085] Step 4: Obtain interference environment data of each interference factor, and determine the probability value of each type of artifact according to the obtained interference environment data;
[0086] The method for determining the probability value of each type of artifact according to the obtained interference environment data includes:
[0087] Identify various types of artifacts, mark factor items corresponding to various types of artifacts, and determine factor interference item combinations corresponding to various types of artifacts according to the factor items corresponding to various types of artifacts;
[0088] Determine probability analysis data of corresponding types of artifacts according to the combination of factor interference items, that is, the combination of interference environment data corresponding to each factor interference item in the combination of factor interference items;
[0089] The obtained probability analysis data are analyzed to determine the single item probability value corresponding to each factor item of this type of artifact.
[0090] Methods for analyzing the obtained probability analysis data include:
[0091] Obtain a large amount of historical probability analysis data of the interference item combination of each factor, and establish the corresponding anomaly recognition model based on the obtained historical probability analysis data. The anomaly recognition model is established based on the isolation forest algorithm, and the expression is ; In the formula: xi is the input data, which is the data of each factor item in the probability analysis data, i=1, 2,..., n, n is a positive integer; the output is the abnormal value yi of each factor item, yi=Y(xi), i=1, 2,..., n, n is a positive integer.
[0092] The probability analysis data is analyzed by the established anomaly recognition model to obtain the anomaly values corresponding to each factor item in the probability analysis data, and then integrated into an anomaly set;
[0093] According to the historical probability analysis data, the occurrence probability of each type of artifact corresponding to different abnormal sets under the corresponding detection items is counted, and the average statistics are taken as the occurrence probability of the equivalent device under the abnormal set, and then integrated into an abnormal matching table;
[0094] The obtained anomaly set is input into the anomaly matching table for matching, and the occurrence probability of each type of artifact is obtained and marked as the corresponding probability value.
[0095] Step 5: Pre-mark the magnetic resonance image for artifacts according to the determined probability values of each type of artifact, and segment the marked magnetic resonance image.
[0096] Methods for pre-marking artifacts include:
[0097] Identify the probability value of each type of artifact, and mark the type of artifact with a probability value lower than a threshold value X1 as a target artifact; identify the magnetic resonance image according to the target artifact, determine the target artifact in the magnetic resonance image, and mark the determined target artifact in the magnetic resonance image.
[0098] That is, recognition analysis is performed on the premise of determining the target artifacts. The specific recognition process can be performed based on existing image recognition technology. For example, a corresponding intelligent model can be established in the same way as the above-mentioned result recognition model is established.
[0099] Furthermore, the method for segmenting the marked magnetic resonance image includes:
[0100] Identify the image segmentation algorithm corresponding to each of the detection items of the target device; simulate and adjust the image segmentation algorithm under each type of artifact based on the preset digital twin, that is, after the technician adjusts the image segmentation algorithm, use the digital twin established above to simulate; obtain corresponding algorithm simulation adjustment data, including the segmentation result of the adjusted image segmentation algorithm, the segmentation result includes the corresponding qualified rate that meets the requirements, select the adjusted image segmentation algorithm with the highest qualified rate greater than the threshold X2 after several adjustment simulations as the target algorithm under the corresponding type of artifact; integrate them into a target algorithm library.
[0101] Identify the type of artifacts marked in the magnetic resonance image, match the corresponding target algorithm from the target algorithm library according to the identified type of artifacts, and segment the magnetic resonance image according to the obtained target algorithm.
[0102] The above formulas are all calculated by removing dimensions and taking numerical values. The formula is a formula that is closest to the actual situation obtained by collecting a large amount of data and performing software simulation. The preset parameters and preset thresholds in the formula are set by technical personnel in this field according to actual conditions or obtained by simulating a large amount of data.
[0103] The above embodiments are only used to illustrate the technical method of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical method of the present invention may be modified or replaced by equivalents without departing from the spirit and scope of the technical method of the present invention.
Claims
1. A method for automatic segmentation of magnetic resonance images, characterized in that: Methods include: Step 1: Determine each detection item of the target device and identify the image segmentation algorithm corresponding to each detection item; Step 2: Analyze the operating environment of the target device to determine the factor library of the target device; Step 3: acquiring a magnetic resonance image generated by the target device, identifying target environment data of the magnetic resonance image, and determining interference items of factors corresponding to the magnetic resonance image based on the identified target environment data and the factor library; Step 4: Obtain interference environment data of each interference factor, and determine the probability value of each type of artifact according to the obtained interference environment data; Step 5: pre-marking the magnetic resonance image for artifacts according to the determined probability values of each type of artifacts, and segmenting the marked magnetic resonance image; Methods for pre-marking artifacts include: Identify the probability value of each type of artifact, and mark the type of artifact with a probability value lower than a threshold value X1 as a target artifact; identify the magnetic resonance image according to the target artifact, determine the target artifact in the magnetic resonance image, and mark the determined target artifact in the magnetic resonance image; The method for segmenting the marked magnetic resonance image includes: Identify the image segmentation algorithm corresponding to each of the detection items of the target device; simulate and adjust the image segmentation algorithm under each type of artifact based on the preset digital twin, obtain corresponding algorithm simulation adjustment data, select the image segmentation algorithm with the highest pass rate after several adjustment simulations and the pass rate greater than the threshold value X2 as the target algorithm under the corresponding type of artifact; integrate them into a target algorithm library; Identify the type of artifacts marked in the magnetic resonance image, match a corresponding target algorithm from the target algorithm library according to the identified type of artifacts, and segment the magnetic resonance image according to the obtained target algorithm; Methods for analyzing the operating environment of the target device include: Determine equivalent devices of the target device, where equivalent devices are magnetic resonance devices of the same model or type as the target device; Acquire historical detection data of the equivalent device; identify each detection anomaly record in the historical detection data, determine various influencing factors of the equivalent device based on the obtained detection anomaly records, and integrate them into a factor library of the target device.
2. The method for automatic segmentation of magnetic resonance images according to claim 1, characterized in that: The method for identifying each detection anomaly record in the historical detection data includes: Step SA1: defining a first record range, and identifying a first record in the historical detection data based on the first record range; Step SA2: determining the screening data in the historical test data according to each of the first records, and identifying the test result corresponding to each test record in the screening data; Step SA3: analyzing the corresponding detection record according to the obtained detection result, determining the corresponding abnormal detection result, and determining the corresponding second record according to the obtained abnormal detection result; Step SA4: The first record and the second record are integrated and marked as detected abnormal records.
3. The method for automatic segmentation of magnetic resonance images according to claim 2, characterized in that: Methods for determining anomaly detection results include: identifying a corresponding magnetic resonance image in the detection record, identifying the magnetic resonance image based on the detection result, and determining whether the detection result matches the magnetic resonance image; When it is determined that the test result matches the magnetic resonance image, the abnormal test result outputted is that the test is normal; When the judgment detection result does not match the magnetic resonance image, the abnormal detection result output is a detection abnormality.
4. The method for automatic segmentation of magnetic resonance images according to claim 3, characterized in that: Methods for determining the influencing factors of equivalent equipment include: Establishing a digital twin of the equivalent device based on digital twin technology; identifying the corresponding magnetic resonance image in each of the detection abnormality records and marking it as an abnormal image; Simulating various environmental data and patient behaviors, applying the digital twin to analyze abnormal images under simulated conditions, and determining the environmental conditions and patient behaviors required to generate the abnormal images; determining the influencing factors corresponding to the abnormal images according to the determined environmental conditions and patient behaviors; The obtained influencing factors are deduplicated to obtain influencing factors of equivalent devices.
5. The method for automatic segmentation of magnetic resonance images according to claim 1, characterized in that: Methods for determining interfering factors include: Inputting the identified target environment data into the factor library for matching, obtaining corresponding factor items, and marking the matched factor items as factor interference items; Extract interference environment data corresponding to each interference item of the factor from the target environment data.
6. The method for automatic segmentation of magnetic resonance images according to claim 1, characterized in that: The method for determining the probability value of each type of artifact according to the obtained interference environment data includes: Identify various types of artifacts, mark factor items corresponding to each type of artifact, and determine factor interference item combinations corresponding to each type of artifact according to the factor items corresponding to each type of artifact; Determine probability analysis data of corresponding types of artifacts according to the combination of interference factors; The obtained probability analysis data is analyzed to determine the probability value corresponding to each type of artifact.
7. The method for automatic segmentation of magnetic resonance images according to claim 6, characterized in that: Methods for analyzing probability analysis data: Obtaining historical probability analysis data corresponding to the combination of interference items of each factor, and establishing a corresponding anomaly recognition model based on the historical probability analysis data and the isolation forest algorithm; Analyze the probability analysis data according to the set anomaly recognition model to obtain an abnormal value corresponding to each factor item, and integrate the abnormal value corresponding to each factor item into an abnormal set; According to the historical probability analysis data, the occurrence probability of each type of artifact corresponding to each of the abnormal sets is counted and integrated into an abnormal matching table; The obtained anomaly set is input into the anomaly matching table for matching, and the occurrence probability of each type of artifact is obtained and marked as a corresponding probability value.
8. The method for automatic segmentation of magnetic resonance images according to claim 7, characterized in that: The expression of the anomaly recognition model is: ; In the formula: xi is the input data, which represents the factor item data corresponding to each factor item in the probability analysis data, i=1, 2,..., n, n is a positive integer; the output is the abnormal value yi of each factor item, yi=Y(xi), i=1, 2,..., n, n is a positive integer.
Citation Information
Patent Citations
Image artifact detection method and device, equipment and storage medium
CN110866880A
Medical image segmentation model construction method based on multi-attention fusion
CN116309648A
