A method, system, device and medium for constructing a breast cancer brain metastasis model

By analyzing brain MRI images of breast cancer patients, we established and optimized the brain model, solving the inaccuracy and unintuitiveness of existing breast cancer brain metastasis models, and achieving accurate judgment and timely treatment of breast cancer brain metastasis. sex.

CN118366669BActive Publication Date: 2024-09-06TIANJIN MEDICAL UNIVERSITY GENERAL HOSPITAL
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410800225.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-20
Publication Date
2024-09-06
Estimated Expiration
2044-06-20

AI Technical Summary

Technical Problem

The existing breast cancer brain metastasis model has inaccuracies and unintuitiveness in data analysis. It cannot accurately determine whether a patient has brain metastasis and determine the source of the tumor, resulting in delayed treatment.

Method used

By acquiring brain MRI images of breast cancer patients, analyzing metastasized and non-metastasized images, obtaining evolution areas, establishing a brain model and marking brain metastasis paths, a breast cancer brain metastasis model is constructed based on the brain-enhanced MRI optimization model.

Benefits of technology

It improves the accuracy and intuitiveness of the breast cancer brain metastasis model, helps doctors promptly determine whether the patient has breast cancer brain metastasis, determines the source of the tumor, and improves the success rate of treatment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118366669B
    Figure CN118366669B
Patent Text Reader

Abstract

The present invention discloses a method, system, device and medium for constructing a breast cancer brain metastasis model, and relates to the technical field of biological models, including: obtaining metastatic images and non-metastatic images; obtaining evolution regions; establishing a brain model, and marking brain metastasis paths in the brain model based on the evolution regions; optimizing the brain metastasis paths in the brain metastasis model based on brain enhanced MRI to obtain a breast cancer brain metastasis model; the present invention is used to solve the problems of inaccuracy and lack of intuitiveness in establishing a brain metastasis model based on data on breast cancer brain metastasis in the prior art. When analyzing the brain MRI of a breast cancer patient, it is impossible to determine whether the patient has brain metastasis and determine the source of the tumor through an accurate and intuitive breast cancer brain metastasis model, thereby resulting in insufficient follow-up treatment of the patient and the inability to determine the source of the tumor.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of model construction, and in particular to a method, system, device and medium for constructing a breast cancer brain metastasis model. Background Art

[0002] Breast cancer is a malignant tumor that occurs in the glandular epithelial tissue of the breast. In the early stages, it manifests as a single, painless, progressively growing small lump in the affected breast. The lump is most commonly located in the upper outer quadrant, followed by the nipple, areola area, and upper inner quadrant. Brain metastasis refers to the metastasis of tumor cells originating in other parts of the body into the skull.

[0003] Existing analysis methods for breast cancer metastasis are usually aimed at metastasis analysis in other fields such as lymph node metastasis and bone metastasis. For example, in the Chinese patent application publication number CN116741390A, a breast cancer patient axillary lymph node metastasis prediction model and its construction method are disclosed. The established model can determine the appropriate axillary treatment plan, thereby avoiding unnecessary axillary surgery and complications, and helping to carry out more accurate surgery and adjuvant treatment modes for breast cancer. Other methods for breast cancer metastasis are usually improvements in diagnosis and prognosis. However, in the existing improvements, there are problems of inaccuracy and lack of intuitiveness in establishing a brain metastasis model based on data on breast cancer brain metastasis. When analyzing the brain MRI of breast cancer patients, it is impossible to determine whether the patient has brain metastasis and determine the source of the tumor through an accurate and intuitive breast cancer brain metastasis model, so that the patient cannot be followed up and treated in time to determine the source of the tumor. In view of this, it is necessary to improve the existing breast cancer brain metastasis model. Summary of the invention

[0004] The present invention aims to solve at least one of the technical problems in the prior art to a certain extent, by proposing a method, system, device and medium for constructing a breast cancer brain metastasis model to solve the problem that the prior art is inaccurate and not intuitive enough in establishing a brain metastasis model based on data on breast cancer brain metastasis. When analyzing the brain MRI of a breast cancer patient, it is impossible to determine whether the patient has brain metastasis and determine the source of the tumor through an accurate and intuitive breast cancer brain metastasis model, which leads to the problem that the follow-up treatment of the patient is not timely enough and the source of the tumor cannot be determined.

[0005] To achieve the above objectives, in a first aspect, the present invention provides a method for constructing a breast cancer brain metastasis model, comprising:

[0006] Acquire brain MRI images of multiple breast cancer patients, and record the brain MRI images of breast cancer patients with brain metastasis as metastatic images 1 to metastatic images P, and record the brain MRI images of breast cancer patients without brain metastasis as non-metastatic images 1 to non-metastatic images Q, wherein the patients corresponding to the non-metastatic images do not have other cancer metastases;

[0007] Analyze the transferred images and the non-transferred images and obtain the evolution area;

[0008] Build a brain model and mark brain metastasis pathways in the brain model based on evolving regions;

[0009] Based on brain enhanced MRI, the brain metastasis pathway in the brain metastasis model was optimized to obtain a breast cancer brain metastasis model.

[0010] Furthermore, the transferred images and the non-transferred images are analyzed, and the evolution areas are obtained including:

[0011] The non-transferred images are analyzed using the non-transferred analysis method, and the standard cortical pulp mode value and the standard cortical pulp fluctuation value are obtained based on the analysis results;

[0012] The shifted image is analyzed using a shifted analysis method, and the evolution area is obtained based on the analysis results.

[0013] Further, the non-transferred analysis method includes:

[0014] For any untransferred image Q1 from untransferred image 1 to untransferred image Q, the corticomedullary junction area in untransferred image Q1 is marked and recorded as the corticomedullary junction area, wherein Q1 is a positive integer less than or equal to Q and greater than or equal to 1;

[0015] The untransferred image Q1 is grayed, and the gray values ​​of all pixels in the corticomedullary junction area after graying are obtained, which are recorded as corticomedullary gray values ​​1 to H; the mode of the corticomedullary gray values ​​1 to H is recorded as the corticomedullary mode value; the corticomedullary fluctuation value is obtained using the corticomedullary fluctuation algorithm, which is: , where F is the cortical pulp fluctuation value, fi is the i-th cortical pulp gray value, It is the average value of the cortical pulp gray value 1 to the cortical pulp gray value H;

[0016] The corticomedullary mode values ​​and corticomedullary fluctuation values ​​of all untransferred images were obtained, and the average value of all corticomedullary mode values ​​was recorded as the standard corticomedullary mode value; the average value of all corticomedullary fluctuation values ​​was recorded as the standard fluctuation value.

[0017] Further, the transferred analysis method comprises:

[0018] For any transferred image P1 from the transferred image 1 to the transferred image P, the area where the corticomedullary junction area in the transferred image P1 is located is obtained, and recorded as the corticomedullary lesion area; the corticomedullary lesion area is grayed and the corticomedullary lesion area after the graying process is recorded as the gray lesion area; the gray lesion areas of all the transferred images are obtained, and recorded as gray lesion area 1 to gray lesion area P, respectively, wherein P1 is a positive integer less than or equal to P and greater than or equal to 1;

[0019] Based on the corticomedullary fluctuation algorithm, the corticomedullary fluctuation values ​​corresponding to the gray values ​​of all pixels in each gray lesion area are obtained. When the corticomedullary fluctuation value corresponding to any gray lesion area is less than or equal to the standard fluctuation value, the gray lesion area is removed from all gray lesion areas, and all remaining gray lesion areas are recorded as gray lesion area 1 to gray lesion area G, where G is a positive integer less than or equal to P and greater than or equal to 1;

[0020] Establish a plane rectangular coordinate system, recorded as the lesion analysis coordinate system; for any grayscale lesion region G1 from the grayscale lesion region 1 to the grayscale lesion region G, place the grayscale lesion region G1 in the lesion analysis coordinate system and make the midpoint of the grayscale lesion region G1 coincide with point A, and remove the pixel points whose grayscale values ​​in the grayscale lesion region G1 in the lesion analysis coordinate system are equal to the standard cortical mode value, and record the remaining grayscale lesion region G1 in the lesion analysis coordinate system as the feature region G1, wherein G1 is a positive integer less than or equal to G and greater than or equal to 1, and point A is any point in the lesion analysis coordinate system;

[0021] Based on the processing method of the grayscale lesion area G1, all grayscale lesion areas are placed in the same lesion analysis coordinate system and all feature areas are obtained; for any point Z in the feature area in the lesion analysis coordinate system, the number of feature areas containing point Z is obtained, which is recorded as the symbiosis value of point Z; the symbiosis values ​​of all points in the feature area are obtained, and all symbiosis values ​​are recorded from large to small as symbiosis value 1 to symbiosis value F;

[0022] The area formed by the points whose symbiosis value is 1 is recorded as symbiosis area 1, and the area formed by the points whose symbiosis value is 2 is recorded as symbiosis area 2, and so on, to obtain symbiosis area 3 to symbiosis area F;

[0023] The corresponding regions from the symbiotic region 1 to the symbiotic region F in the brain MRI image are obtained and recorded as evolution region 1 to evolution region F, respectively.

[0024] Furthermore, a brain model is established, and brain metastasis pathways are marked in the brain model based on the evolving regions, including:

[0025] Establish a brain model, mark evolution region 1 to evolution region F in the brain model in sequence, record all paths from evolution region 1 to evolution region 2 in the brain model as brain metastasis subpaths 1-2, and the direction of brain metastasis subpaths 1-2 is from evolution region 1 to evolution region 2, record all paths from evolution region 2 to evolution region 3 in the brain model as brain metastasis subpaths 2-3, and the direction of brain metastasis subpaths 2-3 is from evolution region 2 to evolution region 3, and so on, to obtain brain metastasis subpaths 3-4 to brain metastasis subpaths (F-1)-F;

[0026] The continuous path composed of all brain metastasis subpathways is recorded as the brain metastasis path.

[0027] Furthermore, the brain metastasis pathway in the brain metastasis model was optimized based on brain enhanced MRI, and the breast cancer brain metastasis model was obtained including:

[0028] For any transferred image P1 from transferred image 1 to transferred image P, when the brain enhanced MRI corresponding to transferred image P1 contains an enhanced nodule, transferred image P1 is recorded as a reference image, and all reference images from transferred image 1 to transferred image P are obtained;

[0029] For any reference image C, the brain metastasis path is marked in the reference image C, and the area where the enhanced nodules in the reference image C are located is marked as the enhanced area. When any brain metastasis sub-path in the brain metastasis path overlaps with the enhanced area, the brain metastasis path is recorded as a valid path.

[0030] Furthermore, the brain metastasis pathway in the brain metastasis model is optimized based on brain enhanced MRI, and the breast cancer brain metastasis model also includes:

[0031] When all brain metastasis subpaths in the brain metastasis path do not overlap with the enhanced area, the brain metastasis path is recorded as an incomplete path, and the two brain metastasis subpaths closest to the enhanced area are obtained, which are recorded as addable path 1 to addable path 2 respectively, and a new path connecting addable path 1 and addable path 2 and overlapping with the enhanced area is added, which is recorded as a newly added path. The newly added path belongs to the brain metastasis path and the direction of the newly added path is the path direction between addable path 1 and addable path 2;

[0032] When a brain metastasis pathway is recorded as an incomplete pathway and a newly added pathway has been obtained, a reference image is obtained again to analyze the brain metastasis pathway based on the analysis method of the brain metastasis pathway using the reference image C. When the analysis results of the brain metastasis pathway using all the reference images are valid pathways, the brain metastasis pathway is recorded as an optimized brain metastasis pathway;

[0033] The optimized brain metastasis pathway is marked in the brain model, and the brain model at this time is recorded as the breast cancer brain metastasis model.

[0034] In a second aspect, the present invention also provides a breast cancer brain metastasis model construction system, including an image classification module, an evolution acquisition module, a model building module, and a model path optimization module;

[0035] The image classification module is used to obtain brain MRI images of multiple breast cancer patients, and record the brain MRI images of breast cancer patients with brain metastasis as metastatic images 1 to metastatic images P, and record the brain MRI images of breast cancer patients without brain metastasis as non-metastatic images 1 to non-metastatic images Q, wherein the patients corresponding to the non-metastatic images do not have other cancer metastases;

[0036] The evolution acquisition module is used to analyze the transferred images and the non-transferred images and obtain the evolution area;

[0037] The model building module is used to build a brain model and mark brain metastasis pathways in the brain model based on the evolving regions;

[0038] The model path optimization module is used to optimize the brain metastasis path in the brain metastasis model based on brain enhanced MRI to obtain a breast cancer brain metastasis model.

[0039] In a third aspect, the present invention provides a storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps in the above method are performed.

[0040] In a fourth aspect, the present invention provides an electronic device, comprising a processor and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the steps in the above method are performed.

[0041] Beneficial effects of the present invention: The present invention first obtains metastatic images and non-metastatic images; then analyzes the metastatic images and non-metastatic images and obtains the evolution region. This has the advantage that by obtaining the evolution region based on the metastatic images and non-metastatic images, the region where the lesion occurs in the MRI image of the brain when brain metastasis occurs can be obtained, and the evolution process of the lesion can be inferred based on the position of the lesion in multiple metastatic images and the region from the lesion with a large number of occurrences to the lesion with a small number of occurrences, thereby obtaining the lesion evolution process in the brain MRI image corresponding to breast cancer brain metastasis, providing accurate data support for the brain model established subsequently;

[0042] The present invention also establishes a brain model, marks the brain metastasis path in the brain model based on the evolution region; finally, the brain metastasis path in the brain metastasis model is optimized based on the brain enhanced MRI to obtain the breast cancer brain metastasis model. The advantage of this is that by establishing the brain model and marking the brain metastasis path based on the evolution region, the brain metastasis lesion evolution path corresponding to the breast cancer brain metastasis and having practical utility can be obtained, which is helpful to determine whether the patient has breast cancer brain metastasis or determine the tumor source of the patient who has brain metastasis based on the brain metastasis path in the brain model when analyzing the patient's brain MRI image, so as to follow up the patient in time and improve the patient's treatment success rate. In addition, the brain enhanced MRI can make the obtained brain metastasis path more accurate, further improve the accuracy of the breast cancer brain metastasis model, and at the same time, the use of the brain metastasis path can make the evolution of the lesion more intuitive, assisting doctors in effective analysis. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 is a functional block diagram of the system of the present invention;

[0044] Figure 2 is a flow chart of the steps of the method of the present invention;

[0045] Figure 3 This is a schematic diagram of obtaining the symbiotic value of the present invention;

[0046] Figure 4 is a schematic diagram of the brain metastasis pathway of the present invention;

[0047] Figure 5 Schematic diagram of an electronic device of the present invention. DETAILED DESCRIPTION

[0048] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. 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.

[0049] Example 1, please refer to Figure 1 As shown, in the first aspect, the present application provides a breast cancer brain metastasis model construction system, including an image classification module, an evolution acquisition module, a model building module and a model path optimization module;

[0050] The image classification module is used to obtain brain MRI images of multiple breast cancer patients, and record the brain MRI images of breast cancer patients with brain metastasis as metastatic images 1 to metastatic images P, and record the brain MRI images of breast cancer patients without brain metastasis as non-metastatic images 1 to non-metastatic images Q, wherein the patients corresponding to the non-metastatic images do not have other cancer metastases;

[0051] The evolution acquisition module is used to analyze the transferred images and the non-transferred images and obtain the evolution area;

[0052] The evolution acquisition module is configured with a non-transferred analysis strategy and a transferred analysis strategy; the non-transferred analysis strategy is used to analyze the non-transferred images using the non-transferred analysis method, and obtain the standard cortical pulp mode value and the standard cortical pulp fluctuation value based on the analysis results; the non-transferred analysis method includes:

[0053] For any untransferred image Q1 from untransferred image 1 to untransferred image Q, the corticomedullary junction area in untransferred image Q1 is marked and recorded as the corticomedullary junction area, wherein Q1 is a positive integer less than or equal to Q and greater than or equal to 1;

[0054] In the specific implementation process, the reason for marking the corticomedullary junction is that the lesion area of ​​breast cancer brain metastasis usually appears in the corticomedullary junction. At the same time, when marking the corticomedullary junction, the corticomedullary junction can be accurately marked with the assistance of a doctor, thereby providing more accurate data for subsequent analysis;

[0055] The untransferred image Q1 is grayed, and the gray values ​​of all pixels in the corticomedullary junction area after graying are obtained, which are recorded as corticomedullary gray values ​​1 to H; the mode of the corticomedullary gray values ​​1 to H is recorded as the corticomedullary mode value; the corticomedullary fluctuation value is obtained using the corticomedullary fluctuation algorithm, which is: , where F is the cortical pulp fluctuation value, fi is the i-th cortical pulp gray value, It is the average value of the cortical pulp gray value 1 to the cortical pulp gray value H;

[0056] In a specific implementation process, for example, in a data processing process, through analysis, the cortical pulp gray value 1 to the cortical pulp gray value H are 118, 119, 130, 130, 130, 125, 124, 128, 142, 118, 130, 130 and 132 respectively, and the cortical pulp mode value is 130 through analysis. Through calculation, the average value of the cortical pulp gray value 1 to the cortical pulp gray value H is about 127, and the cortical pulp fluctuation value is about 41. In this embodiment, the average value of the cortical pulp gray value 1 to the cortical pulp gray value H and the cortical pulp fluctuation value do not retain decimals. When decimals need to be retained in actual situations, they can be set according to actual conditions;

[0057] The corticomedullary mode values ​​and corticomedullary fluctuation values ​​of all untransferred images were obtained, and the average value of all corticomedullary mode values ​​was recorded as the standard corticomedullary mode value; the average value of all corticomedullary fluctuation values ​​was recorded as the standard fluctuation value.

[0058] The transferred analysis strategy is used to analyze the transferred images using the transferred analysis methods and obtain the evolution area based on the analysis results; the transferred analysis methods include:

[0059] For any transferred image P1 from the transferred image 1 to the transferred image P, the area where the corticomedullary junction area in the transferred image P1 is located is obtained, and recorded as the corticomedullary lesion area; the corticomedullary lesion area is grayed and the corticomedullary lesion area after the graying process is recorded as the gray lesion area; the gray lesion areas of all the transferred images are obtained, and recorded as gray lesion area 1 to gray lesion area P, respectively, wherein P1 is a positive integer less than or equal to P and greater than or equal to 1;

[0060] Based on the corticomedullary fluctuation algorithm, the corticomedullary fluctuation values ​​corresponding to the gray values ​​of all pixels in each gray lesion area are obtained. When the corticomedullary fluctuation value corresponding to any gray lesion area is less than or equal to the standard fluctuation value, the gray lesion area is removed from all gray lesion areas, and all remaining gray lesion areas are recorded as gray lesion area 1 to gray lesion area G, where G is a positive integer less than or equal to P and greater than or equal to 1;

[0061] In the specific implementation process, when the cortical-medullary fluctuation value corresponding to the grayscale lesion area is less than or equal to the standard fluctuation value, it means that the area where the lesion in the transferred image corresponding to the grayscale lesion area is located may not be in the cortical-medullary junction area or the lesion does not appear in the transferred image. Therefore, the transferred image has no reference value, and the grayscale lesion area can be eliminated. When all grayscale lesion areas are eliminated, a new transferred image can be obtained and the corresponding grayscale lesion area can be obtained for analysis until the grayscale lesion area that has not been eliminated is obtained;

[0062] Establish a plane rectangular coordinate system, recorded as the lesion analysis coordinate system, wherein the units of the X-axis and the Y-axis of the lesion analysis coordinate system are both cm; for any grayscale lesion region G1 from the grayscale lesion region 1 to the grayscale lesion region G, place the grayscale lesion region G1 in the lesion analysis coordinate system and make the midpoint of the grayscale lesion region G1 coincide with point A, and remove the pixel points whose grayscale values ​​in the grayscale lesion region G1 in the lesion analysis coordinate system are equal to the standard cortical mode value, and record the remaining grayscale lesion region G1 in the lesion analysis coordinate system as the feature region G1, wherein G1 is a positive integer less than or equal to G and greater than or equal to 1, and point A is any point in the lesion analysis coordinate system;

[0063] Based on the processing method of the grayscale lesion area G1, all grayscale lesion areas are placed in the same lesion analysis coordinate system and all feature areas are obtained; for any point Z in the feature area in the lesion analysis coordinate system, the number of feature areas containing point Z is obtained, which is recorded as the symbiosis value of point Z; the symbiosis values ​​of all points in the feature area are obtained, and all symbiosis values ​​are recorded from large to small as symbiosis value 1 to symbiosis value F;

[0064] In the specific implementation process, please refer to Figure 3 As shown, FF0 is the position where all grayscale lesion areas overlap, FF1 to FF9 are all feature areas after all grayscale lesion areas are placed in the same lesion analysis coordinate system. Through analysis, it can be obtained that the symbiosis value of point FF10 is 3, the symbiosis value of point FF11 is 2, and the symbiosis value of point FF12 is 1. Therefore, the number of symbiosis values ​​is 3, namely 3, 2 and 1;

[0065] The area formed by the points whose symbiosis value is 1 is recorded as symbiosis area 1, and the area formed by the points whose symbiosis value is 2 is recorded as symbiosis area 2, and so on, to obtain symbiosis area 3 to symbiosis area F;

[0066] The corresponding regions from the symbiotic region 1 to the symbiotic region F in the brain MRI image are obtained and recorded as evolution region 1 to evolution region F, respectively.

[0067] The model building module is used to build a brain model and mark brain metastasis pathways in the brain model based on the evolving regions.

[0068] In the specific implementation process, the brain model in this embodiment is an existing brain model that can be directly used. By marking the path of the brain model, the transfer direction of the lesion during the brain metastasis of breast cancer can be obtained;

[0069] The model building module is configured with a model building strategy, which includes: building a brain model, marking evolution region 1 to evolution region F in the brain model in sequence, recording all paths from evolution region 1 to evolution region 2 in the brain model as brain metastasis subpaths 1-2, and the direction of brain metastasis subpaths 1-2 is from evolution region 1 to evolution region 2, recording all paths from evolution region 2 to evolution region 3 in the brain model as brain metastasis subpaths 2-3, and the direction of brain metastasis subpaths 2-3 is from evolution region 2 to evolution region 3, and so on, to obtain brain metastasis subpaths 3-4 to brain metastasis subpaths (F-1)-F;

[0070] In the specific implementation process, please refer to Figure 4As shown, GG1 to GG3 are three evolution regions, GG1 is evolution region 1, GG2 and GG3 are evolution region 2, GG4 and GG5 are evolution region 3, and the continuous path with direction extending outward from GG1 is the brain metastasis path;

[0071] The continuous path composed of all brain metastasis subpathways is recorded as the brain metastasis path.

[0072] The model path optimization module is used to optimize the brain metastasis path in the brain metastasis model based on brain enhanced MRI to obtain a breast cancer brain metastasis model.

[0073] The model path optimization module is configured with a model optimization strategy, which includes: for any transferred image P1 from the transferred image 1 to the transferred image P, when the brain enhanced MRI corresponding to the transferred image P1 contains an enhanced nodule, the transferred image P1 is recorded as a reference image, and all reference images from the transferred image 1 to the transferred image P are obtained;

[0074] For any reference image C, the brain metastasis path is marked in the reference image C, and the area where the enhanced nodules in the reference image C are located is marked as the enhanced area. When any brain metastasis sub-path in the brain metastasis path overlaps with the enhanced area, the brain metastasis path is recorded as a valid path.

[0075] In the specific implementation process, the area where the enhanced nodule is located is the area where the lesion caused by brain metastasis is located. When any brain metastasis sub-pathway overlaps with the enhanced area, it means that the brain metastasis path covers the area where the enhanced nodule is located, indicating that the brain metastasis path has reference value;

[0076] When all brain metastasis subpaths in the brain metastasis path do not overlap with the enhanced area, the brain metastasis path is recorded as an incomplete path, and the two brain metastasis subpaths closest to the enhanced area are obtained, which are recorded as addable path 1 to addable path 2 respectively, and a new path connecting addable path 1 and addable path 2 and overlapping with the enhanced area is added, which is recorded as a newly added path. The newly added path belongs to the brain metastasis path and the direction of the newly added path is the path direction between addable path 1 and addable path 2;

[0077] In a specific implementation process, for example, in a data processing, the path direction between addable path 1 and addable path 2 is from left to right, and the path direction of the newly added path is from left to right;

[0078] In the specific implementation process, by adding new pathways to the brain metastasis pathway, the brain metastasis pathway can cover the area where the enhanced nodules are located, making the brain metastasis pathway more meaningful for reference;

[0079] When a brain metastasis pathway is recorded as an incomplete pathway and a newly added pathway has been obtained, a reference image is obtained again to analyze the brain metastasis pathway based on the analysis method of the brain metastasis pathway using the reference image C. When the analysis results of the brain metastasis pathway using all the reference images are valid pathways, the brain metastasis pathway is recorded as an optimized brain metastasis pathway;

[0080] The optimized brain metastasis pathway is marked in the brain model, and the brain model at this time is recorded as the breast cancer brain metastasis model.

[0081] Example 2, please refer to Figure 2 As shown, in a second aspect, the present invention provides a method for constructing a breast cancer brain metastasis model, comprising: step S1, obtaining brain MRI images of multiple breast cancer patients, and recording the brain MRI images of breast cancer patients with brain metastasis as metastatic images 1 to metastatic images P, and recording the brain MRI images of breast cancer patients without brain metastasis as non-metastatic images 1 to non-metastatic images Q, wherein the patients corresponding to the non-metastatic images have no other cancer metastasis.

[0082] Step S2, analyzing the transferred image and the non-transferred image, and obtaining the evolution region.

[0083] Step S2 includes the following sub-steps: Step S201, using a non-transferred analysis method to analyze the non-transferred image, and obtaining a standard cortical pulp mode value and a standard cortical pulp fluctuation value based on the analysis result.

[0084] The non-transferred analysis method comprises: step S2011, for any non-transferred image Q1 from the non-transferred image 1 to the non-transferred image Q, marking the corticomedullary junction area in the non-transferred image Q1 as the corticomedullary junction area, wherein Q1 is a positive integer less than or equal to Q and greater than or equal to 1;

[0085] Step S2012, grayscale processing is performed on the untransferred image Q1, and the grayscale values ​​of all pixels in the cortex-pulp junction area after the grayscale processing are obtained, which are recorded as cortex-pulp grayscale values ​​1 to cortex-pulp grayscale values ​​H respectively; the mode of the cortex-pulp grayscale values ​​1 to cortex-pulp grayscale values ​​H is recorded as the cortex-pulp mode value; and the cortex-pulp fluctuation value is obtained using the cortex-pulp fluctuation algorithm, which is: , where F is the cortical pulp fluctuation value, fi is the i-th cortical pulp gray value, It is the average value of the cortical pulp gray value 1 to the cortical pulp gray value H;

[0086] Step S2013, obtaining the corticomedullary mode values ​​and corticomedullary fluctuation values ​​of all untransferred images, recording the average value of all corticomedullary mode values ​​as the standard corticomedullary mode value; recording the average value of all corticomedullary fluctuation values ​​as the standard fluctuation value.

[0087] Step S202: Analyze the transferred image using a transferred analysis method, and obtain an evolution region based on the analysis result.

[0088] The transferred analysis method includes: step S2021, for any transferred image P1 from the transferred image 1 to the transferred image P, obtaining the area where the corticomedullary junction area in the transferred image P1 is located, and recording it as the corticomedullary lesion area; graying the corticomedullary lesion area and recording the corticomedullary lesion area after the graying as the gray lesion area; obtaining the gray lesion areas of all the transferred images, and recording them as gray lesion area 1 to gray lesion area P, respectively, wherein P1 is a positive integer less than or equal to P and greater than or equal to 1;

[0089] Step S2022, based on the cortical-pulple fluctuation algorithm, obtaining the cortical-pulple fluctuation value corresponding to the grayscale value of all pixels in each grayscale lesion area; when the cortical-pulple fluctuation value corresponding to any grayscale lesion area is less than or equal to the standard fluctuation value, the grayscale lesion area is removed from all grayscale lesion areas, and all remaining grayscale lesion areas are recorded as grayscale lesion area 1 to grayscale lesion area G, where G is a positive integer less than or equal to P and greater than or equal to 1;

[0090] Step S2023, establishing a plane rectangular coordinate system, recorded as the lesion analysis coordinate system, wherein the units of the X-axis and the Y-axis of the lesion analysis coordinate system are both cm; for any grayscale lesion region G1 from the grayscale lesion region 1 to the grayscale lesion region G, the grayscale lesion region G1 is placed in the lesion analysis coordinate system and the midpoint of the grayscale lesion region G1 coincides with point A, and the pixel points whose grayscale values ​​in the grayscale lesion region G1 in the lesion analysis coordinate system are equal to the standard cortical mode value are removed, and the remaining grayscale lesion region G1 in the lesion analysis coordinate system is recorded as the feature region G1, wherein G1 is a positive integer less than or equal to G and greater than or equal to 1, and point A is any point in the lesion analysis coordinate system;

[0091] Step S2024, based on the processing method for the grayscale lesion region G1, all grayscale lesion regions are placed in the same lesion analysis coordinate system and all feature regions are obtained; for any point Z in the lesion analysis coordinate system that is in a feature region, the number of feature regions containing point Z is obtained, which is recorded as the symbiosis value of point Z; the symbiosis values ​​of all points in the feature region are obtained, and all symbiosis values ​​are recorded in descending order as symbiosis value 1 to symbiosis value F;

[0092] Step S2025, record the area formed by the points whose symbiosis value is symbiosis value 1 as symbiosis area 1, record the area formed by the points whose symbiosis value is symbiosis value 2 as symbiosis area 2, and so on, to obtain symbiosis area 3 to symbiosis area F;

[0093] Step S2026, obtaining the regions corresponding to the symbiotic region 1 to the symbiotic region F in the brain MRI image, and recording them as evolution region 1 to evolution region F respectively.

[0094] Step S3, establishing a brain model, and marking brain metastasis pathways in the brain model based on the evolving regions.

[0095] The step S3 includes: step S301, establishing a brain model, marking evolution region 1 to evolution region F in the brain model in sequence, recording all paths from evolution region 1 to evolution region 2 in the brain model as brain transfer subpaths 1-2, and the direction of brain transfer subpaths 1-2 is from evolution region 1 to evolution region 2, recording all paths from evolution region 2 to evolution region 3 in the brain model as brain transfer subpaths 2-3, and the direction of brain transfer subpaths 2-3 is from evolution region 2 to evolution region 3, and so on, to obtain brain transfer subpaths 3-4 to brain transfer subpaths (F-1)-F;

[0096] Step S302: Record the continuous path composed of all brain transfer sub-paths as a brain transfer path.

[0097] Step S4, optimizing the brain metastasis pathway in the brain metastasis model based on brain enhanced MRI to obtain a breast cancer brain metastasis model.

[0098] Step S4 includes: step S401, for any transferred image P1 from transferred image 1 to transferred image P, when the brain enhanced MRI corresponding to transferred image P1 contains enhanced nodules, the transferred image P1 is recorded as a reference image, and all reference images from transferred image 1 to transferred image P are obtained;

[0099] Step S402: for any reference image C, mark the brain metastasis path in the reference image C, mark the area where the enhanced nodule in the reference image C is located as the enhanced area, and when any brain metastasis sub-path in the brain metastasis path overlaps with the enhanced area, record the brain metastasis path as a valid path.

[0100] Step S4 also includes: step S403, when all brain metastasis sub-paths in the brain metastasis path do not overlap with the enhanced region, the brain metastasis path is recorded as an incomplete path, and two brain metastasis sub-paths closest to the enhanced region are obtained, which are recorded as addable path 1 to addable path 2 respectively, and a new path connecting addable path 1 and addable path 2 and overlapping with the enhanced region is added, which is recorded as a newly added path, and the newly added path belongs to the brain metastasis path and the direction of the newly added path is the path direction between addable path 1 and addable path 2;

[0101] Step S404, when the brain metastasis path is recorded as an incomplete path and a newly added path has been obtained, a reference image is re-acquired based on the analysis method of the brain metastasis path using the reference image C to analyze the brain metastasis path, and when the analysis results of the brain metastasis path using all the reference images are valid paths, the brain metastasis path is recorded as an optimized brain metastasis path;

[0102] The optimized brain metastasis pathway is marked in the brain model, and the brain model at this time is recorded as a breast cancer brain metastasis model.

[0103] Example 3, third aspect, please refer to Figure 5 As shown, the present application provides an electronic device 50, including a processor 501 and a memory 502, the memory 502 stores computer-readable instructions, and when the computer-readable instructions are executed by the processor 501, the steps in the above method are executed. Through the above technical solution, the processor 501 and the memory 502 are interconnected and communicate with each other through a communication bus and / or other forms of connection mechanisms (not shown), and the memory 502 stores a computer program executable by the processor 501. When the electronic device is running, the processor 501 executes the computer program to execute the method in any optional implementation of the above embodiment to achieve the following functions: first, by acquiring metastatic images and non-metastatic images; then, analyzing the metastatic images and non-metastatic images, and acquiring the evolution area, and also by establishing a brain model, marking the brain metastasis path in the brain model based on the evolution area; finally, optimizing the brain metastasis path in the brain metastasis model based on brain enhanced MRI to obtain a breast cancer brain metastasis model.

[0104] Embodiment 4, in a fourth aspect, the present application provides a storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps in the above method are executed. Through the above technical solution, when the computer program is executed by the processor, the method in any optional implementation of the above embodiment is executed to achieve the following functions: first, by acquiring metastatic images and non-metastatic images; then, analyzing the metastatic images and non-metastatic images, and acquiring the evolution area, and also by establishing a brain model, marking the brain metastasis path in the brain model based on the evolution area; finally, optimizing the brain metastasis path in the brain metastasis model based on brain enhanced MRI, and obtaining a breast cancer brain metastasis model.

[0105] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0106] It should be understood by those skilled in the art that the embodiments of the present invention may be provided as methods, systems or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware aspects. Moreover, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media containing computer-usable program codes. Among them, the storage medium may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random Access Memory, referred to as SRAM), electrically erasable programmable read-only memory (EleMRIrically Erasable Programmable Read-Only Memory, referred to as EEPROM), erasable programmable read-only memory (Erasable Programmable Read Only Memory, referred to as EPROM), programmable read-only memory (Programmable Read-Only Memory, referred to as PROM), read-only memory (Read-Only Memory, referred to as ROM), magnetic memory, flash memory, magnetic disk or optical disk. These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0107] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

Claims

1. A method for constructing a breast cancer brain metastasis model, characterized in that: include: Acquire brain MRI images of multiple breast cancer patients, and record the brain MRI images of breast cancer patients with brain metastasis as metastatic images 1 to metastatic images P, and record the brain MRI images of breast cancer patients without brain metastasis as non-metastatic images 1 to non-metastatic images Q, wherein the patients corresponding to the non-metastatic images do not have other cancer metastases; Analyze the transferred images and the non-transferred images and obtain the evolution area; Build a brain model and mark brain metastasis pathways in the brain model based on evolving regions; The brain metastasis pathway in the brain metastasis model was optimized based on brain enhanced MRI to obtain a breast cancer brain metastasis model. Analyze the transferred and non-transferred images and obtain the evolution areas including: The non-transferred images are analyzed using the non-transferred analysis method, and the standard cortical pulp mode value and the standard cortical pulp fluctuation value are obtained based on the analysis results; analyzing the transferred image using a transferred analysis method, and obtaining an evolution region based on the analysis result; Untransferred analysis methods include: For any untransferred image Q1 from untransferred image 1 to untransferred image Q, the corticomedullary junction area in untransferred image Q1 is marked and recorded as the corticomedullary junction area, wherein Q1 is a positive integer less than or equal to Q and greater than or equal to 1; The untransferred image Q1 is grayed, and the gray values ​​of all pixels in the corticomedullary junction area after graying are obtained, which are recorded as corticomedullary gray values ​​1 to H; the mode of the corticomedullary gray values ​​1 to H is recorded as the corticomedullary mode value; the corticomedullary fluctuation value is obtained using the corticomedullary fluctuation algorithm, which is: , where F is the cortical pulp fluctuation value, fi is the i-th cortical pulp gray value, It is the average value of the cortical pulp gray value 1 to the cortical pulp gray value H; Obtain the corticomedullary mode value and corticomedullary fluctuation value of all untransferred images, record the average value of all corticomedullary mode values ​​as the standard corticomedullary mode value; record the average value of all corticomedullary fluctuation values ​​as the standard fluctuation value; The transferred analysis method comprises: For any transferred image P1 from the transferred image 1 to the transferred image P, the area where the corticomedullary junction area in the transferred image P1 is located is obtained, and recorded as the corticomedullary lesion area; the corticomedullary lesion area is grayed and the corticomedullary lesion area after the graying process is recorded as the gray lesion area; the gray lesion areas of all the transferred images are obtained, and recorded as gray lesion area 1 to gray lesion area P, respectively, wherein P1 is a positive integer less than or equal to P and greater than or equal to 1; Based on the corticomedullary fluctuation algorithm, the corticomedullary fluctuation values ​​corresponding to the gray values ​​of all pixels in each gray lesion area are obtained. When the corticomedullary fluctuation value corresponding to any gray lesion area is less than or equal to the standard fluctuation value, the gray lesion area is removed from all gray lesion areas, and all remaining gray lesion areas are recorded as gray lesion area 1 to gray lesion area G, where G is a positive integer less than or equal to P and greater than or equal to 1; A plane rectangular coordinate system is established, which is recorded as the lesion analysis coordinate system. For any gray lesion region G1 from gray lesion region 1 to gray lesion region G, the gray lesion region G1 is placed in the lesion analysis coordinate system and the midpoint of the gray lesion region G1 coincides with point A. The pixel points whose gray value in the gray lesion region G1 in the lesion analysis coordinate system is equal to the standard cortical mode value are removed, and the remaining gray lesion region G1 in the lesion analysis coordinate system is recorded as the feature region T. G1 , where G1 is a positive integer less than or equal to G and greater than or equal to 1, and point A is any point in the lesion analysis coordinate system; Based on the processing method of the grayscale lesion area G1, all grayscale lesion areas are placed in the same lesion analysis coordinate system and all feature areas are obtained; for any point Z in the feature area in the lesion analysis coordinate system, the number of feature areas containing point Z is obtained, which is recorded as the symbiosis value of point Z; the symbiosis values ​​of all points in the feature area are obtained, and all symbiosis values ​​are recorded from large to small as symbiosis value 1 to symbiosis value F; The area formed by the points whose symbiosis value is 1 is recorded as symbiosis area 1, and the area formed by the points whose symbiosis value is 2 is recorded as symbiosis area 2, and so on, to obtain symbiosis area 3 to symbiosis area F; Obtain the regions corresponding to the symbiotic region 1 to the symbiotic region F in the brain MRI image, and record them as evolution region 1 to evolution region F respectively; Building a brain model and marking brain metastasis pathways in the brain model based on evolving regions include: Establish a brain model, mark evolution region 1 to evolution region F in the brain model in sequence, record all paths from evolution region 1 to evolution region 2 in the brain model as brain metastasis subpaths 1-2, and the direction of brain metastasis subpaths 1-2 is from evolution region 1 to evolution region 2, record all paths from evolution region 2 to evolution region 3 in the brain model as brain metastasis subpaths 2-3, and the direction of brain metastasis subpaths 2-3 is from evolution region 2 to evolution region 3, and so on, to obtain brain metastasis subpaths 3-4 to brain metastasis subpaths (F-1)-F; The continuous path composed of all brain metastasis subpathways was recorded as the brain metastasis path; Based on brain enhanced MRI, the brain metastasis pathway in the brain metastasis model was optimized, and the breast cancer brain metastasis model was obtained including: For any transferred image P1 from transferred image 1 to transferred image P, when the brain enhanced MRI corresponding to transferred image P1 contains an enhanced nodule, transferred image P1 is recorded as a reference image, and all reference images from transferred image 1 to transferred image P are obtained; For any reference image C, the brain metastasis path is marked in the reference image C, and the area where the enhanced nodules in the reference image C are located is marked as the enhanced area. When any brain metastasis sub-path in the brain metastasis path overlaps with the enhanced area, the brain metastasis path is recorded as a valid path; Based on brain enhanced MRI, the brain metastasis pathway in the brain metastasis model was optimized, and the breast cancer brain metastasis model also included: When all brain metastasis subpaths in the brain metastasis path do not overlap with the enhanced area, the brain metastasis path is recorded as an incomplete path, and the two brain metastasis subpaths closest to the enhanced area are obtained, which are recorded as addable path 1 to addable path 2 respectively, and a new path connecting addable path 1 and addable path 2 and overlapping with the enhanced area is added, which is recorded as a newly added path. The newly added path belongs to the brain metastasis path and the direction of the newly added path is the path direction between addable path 1 and addable path 2; When a brain metastasis pathway is recorded as an incomplete pathway and a newly added pathway has been obtained, a reference image is obtained again to analyze the brain metastasis pathway based on the analysis method of the brain metastasis pathway using the reference image C. When the analysis results of the brain metastasis pathway using all the reference images are valid pathways, the brain metastasis pathway is recorded as an optimized brain metastasis pathway; The optimized brain metastasis pathway is marked in the brain model, and the brain model at this time is recorded as a breast cancer brain metastasis model.

2. A breast cancer brain metastasis model construction system, applicable to the breast cancer brain metastasis model construction method according to claim 1, characterized in that: It includes image classification module, evolution acquisition module, model building module and model path optimization module; The image classification module is used to obtain brain MRI images of multiple breast cancer patients, and record the brain MRI images of breast cancer patients with brain metastasis as metastatic images 1 to metastatic images P, and record the brain MRI images of breast cancer patients without brain metastasis as non-metastatic images 1 to non-metastatic images Q, wherein the patients corresponding to the non-metastatic images do not have other cancer metastases; The evolution acquisition module is used to analyze the transferred images and the non-transferred images and obtain the evolution area; The model building module is used to build a brain model and mark brain metastasis pathways in the brain model based on the evolving regions; The model path optimization module is used to optimize the brain metastasis path in the brain metastasis model based on brain enhanced MRI to obtain a breast cancer brain metastasis model.

3. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the steps in the method as claimed in claim 1 are executed.

4. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps in the method as claimed in claim 1 are executed.