Image processing method, device and system and storage medium

By constructing and utilizing three-dimensional images and spatial relationships, the space to be ablated is accurately determined, which solves the problem of edge control in uterine fibroid ablation and improves the safety and accuracy of the ablation process.

CN118593111APending Publication Date: 2024-09-06AEROSPACE CENT HOSPITAL
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410770200.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-14
Publication Date
2024-09-06

AI Technical Summary

Technical Problem

It is difficult to accurately construct a three-dimensional ablation range during uterine fibroid ablation using existing technology, which may cause the heat to exceed the edge of the lesion and damage the normal myometrium, especially when the endometrium is in close proximity, which poses a greater risk.

Method used

By constructing the first three-dimensional image of the target area, the boundary of the lesion is determined, and a three-dimensional space is constructed based on the position and attribute parameters of the ablation needle. Combined with the positional relationship of the second three-dimensional image, the space to be ablated is accurately determined to avoid relying on blood vessel images for positioning.

Benefits of technology

It improves the accuracy and safety of the ablation range, ensures that the heat is limited to the lesion, and protects surrounding normal tissue. It is suitable for areas with irregular artery distribution and enhances the reliability of the ablation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118593111A
    Figure CN118593111A
Patent Text Reader

Abstract

The invention relates to the technical field of image processing, and particularly provides an image processing method, device and system and a storage medium, and the method comprises the steps: constructing a first three-dimensional image based on a scanning result for a target region; determining a focus boundary, and determining a second three-dimensional image of the focus boundary in the first three-dimensional image based on the focus boundary; after it is detected that the ablation needle is inserted into the focus boundary, a three-dimensional space is constructed based on the position and attribute parameters of the ablation needle; and determining the to-be-ablated space based on the position relationship between the three-dimensional space and the second three-dimensional The second three-dimensional image represents the three-dimensional image of the focus area, the three-dimensional space represents the three-dimensional space of the activity range of the ablation needle, and the final to-be-ablated space is determined according to the position relation between the three-dimensional space and the three-dimensional image, so that compared with the to-be-ablated space determined through comparison of a two-dimensional blood vessel image in the related technology, the ablation rate is improved, and the ablation efficiency is improved. The to-be-ablated space determined by the scheme is more accurate and cannot depend on a blood vessel image, and the application range is wider.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to an image processing method, device, system and storage medium. Background Art

[0002] Uterine fibroids are the most common benign tumors of the female reproductive organs. The purpose of treatment is to improve or eliminate clinical symptoms and enhance the patient's quality of life. Currently, uterine fibroid ablation requires the retention of a 5mm area at the edge of the tumor lesion to ensure that the heat generated by the ablation is confined to the lesion without causing damage to the surrounding normal uterine myometrium. If the fibroids are close to the endometrium, more attention should be paid to the protection of the endometrium, especially for women who want to have children, the safety margin during ablation is crucial.

[0003] After the ablation needle is inserted into the human body, an ablation range is formed in the uterus. When the ablation range is not accurately determined, excessive ablation may occur or a satisfactory treatment effect may not be achieved, which poses a greater risk to the patient. In related technologies, the scheme for determining the range to be ablated is usually: constructing a three-dimensional image of the lesion area, projecting it in multiple directions to obtain multiple projection images, and then extracting the vascular projection map in the projection image. After the ablation needle is inserted into the lesion area, a two-dimensional ultrasound image of the surgical position is obtained, and a vascular ultrasound map is extracted from the two-dimensional ultrasound image. The vascular ultrasound map is compared with multiple vascular projection maps, and the vascular projection map with the greatest similarity is used as the ablation range.

[0004] The above scheme for determining the ablation range is suitable for organs with relatively fixed positions and courses of large blood vessels. Taking the liver as an example, the courses of the hepatic artery, portal vein, and hepatic vein in the liver follow certain rules. However, since the arteries of some organs are distributed in the muscular layer and there are no obvious differences in different places, accurate projection positioning cannot be performed based on the course and corners of the blood vessels, which makes it impossible to accurately determine the ablation range. Summary of the invention

[0005] In order to solve the above technical problems, the present application provides an image processing method, device, system and storage medium to construct a three-dimensional ablation range with high precision, clarify the edge of the microwave energy field, and improve safety and accuracy.

[0006] In a first aspect, the present application provides an image processing method, the method comprising: constructing a first three-dimensional image based on a scanning result of a target area; determining a lesion boundary, and determining a second three-dimensional image of the lesion boundary in the first three-dimensional image based on the lesion boundary; after detecting that an ablation needle is inserted into the lesion boundary, constructing a three-dimensional space based on the position and attribute parameters of the ablation needle; and determining a space to be ablated based on the positional relationship between the three-dimensional space and the second three-dimensional image.

[0007] In a second aspect, the present application provides an image processing device, which includes: a first three-dimensional image construction module, used to construct a first three-dimensional image based on a scanning result of a target area; a second three-dimensional image determination module, used to determine a lesion boundary, and determine a second three-dimensional image of the lesion boundary in the first three-dimensional image based on the lesion boundary; a three-dimensional space construction module, used to construct a three-dimensional space based on the position and attribute parameters of the ablation needle after detecting that the ablation needle is inserted into the target area; and a to-be-ablated space determination module, used to determine the to-be-ablated space based on the positional relationship between the three-dimensional space and the second three-dimensional image.

[0008] In a third aspect, the present application provides an image processing system comprising: an ultrasonic detection device and an image processing device, wherein the ultrasonic detection device is used to obtain a scanning result for a target area and transmit it to the image processing device; the image processing device comprises: one or more processors; a storage device for storing one or more programs; the processor is used to implement the image processing method as described in the first aspect above in the process of executing the one or more programs based on the acquisition of the scanning result for the target area.

[0009] In a fourth aspect, the present application provides a storage medium, which may be a computer-readable storage medium, storing a computer program thereon, which, when executed by a processor, implements the image processing method in the first aspect described above.

[0010] Compared with the prior art, the technical solution provided by the embodiments of the present application has the following advantages:

[0011] The embodiment of the present application provides an image processing method, device, system and storage medium, the method comprising: constructing a first three-dimensional image based on the scanning results of the target area; determining the boundary of the lesion, and determining the second three-dimensional image of the boundary of the lesion in the first three-dimensional image based on the boundary of the lesion; after detecting that the ablation needle is inserted into the boundary of the lesion, constructing a three-dimensional space based on the position and attribute parameters of the ablation needle; determining the space to be ablated based on the positional relationship between the three-dimensional space and the second three-dimensional image. Since the second three-dimensional image represents a stereoscopic image of the lesion area, and the three-dimensional space represents a stereoscopic space of the range of motion of the ablation needle, the final space to be ablated determined by the positional relationship between the stereoscopic space and the stereoscopic image is more accurate than the space to be ablated determined by comparing the two-dimensional vascular images in the related art, and cannot rely on the vascular image, and has a wider range of applications. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.

[0013] In order to more clearly illustrate the embodiments of the present application 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, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.

[0014] Figure 1 A schematic diagram of the process of an image processing method provided in an embodiment of the present application;

[0015] Figure 2 A schematic diagram of a process for constructing a first three-dimensional image provided in an embodiment of the present application;

[0016] Figure 3 A schematic diagram of a flow chart of a method for determining a lesion boundary provided in an embodiment of the present application;

[0017] Figure 4 A schematic diagram of extracting auxiliary boundaries from a Doppler image provided by an embodiment of the present application;

[0018] Figure 5 A schematic diagram of an ablation needle inserted into a lesion area provided in an embodiment of the present application;

[0019] Figure 6 A schematic diagram of a process for constructing a three-dimensional space provided in an embodiment of the present application;

[0020] Figure 7 A schematic diagram of the structure of a three-dimensional space provided in an embodiment of the present application;

[0021] Figure 8 A schematic diagram of a structure in which a three-dimensional space provided in an embodiment of the present application is contained in a second three-dimensional image;

[0022] Fig. 9 A schematic diagram of the process of an image processing method provided in an embodiment of the present application;

[0023] Fig.10a A schematic diagram of a structure for dividing an ablated area into two parts provided in an embodiment of the present application;

[0024] Fig.10b A schematic diagram of a structure in which a portion of the ablated area is divided into a plurality of slices provided in an embodiment of the present application;

[0025] Fig.11 A schematic diagram of the structure of an image processing device provided in an embodiment of the present application;

[0026] Fig.12 A schematic diagram of the structure of an image processing device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0027] In order to more clearly understand the above-mentioned purposes, features and advantages of the present application, the scheme of the present application will be further described below. It should be noted that the embodiments of the present application and the features in the embodiments can be combined with each other without conflict.

[0028] In the following description, many specific details are set forth to facilitate a full understanding of the present application, but the present application may also be implemented in other ways different from those described herein; obviously, the embodiments in the specification are only part of the embodiments of the present application, rather than all of the embodiments.

[0029] The term "including" and its variations used herein are open inclusions, i.e., "including but not limited to". The term "based on" means "based at least in part on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". The relevant definitions of other terms will be given in the following description.

[0030] It should be noted that the concepts such as "first" and "second" mentioned in this application are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0031] It should be noted that the modifications of "one" and "plurality" mentioned in the present application are illustrative rather than restrictive, and those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0032] Uterine fibroids are the most common benign tumors of the female reproductive organs. The purpose of treatment is to improve or eliminate clinical symptoms and improve the patient's quality of life. Uterine fibroids are the most common benign tumors of the female reproductive organs. The purpose of treatment is to improve or eliminate clinical symptoms and improve the patient's quality of life. Microwave ablation is a technology that uses percutaneous microwave needles under real-time ultrasound guidance to perform ablation treatment. The thermal effect heats up the tumor tissue, causing tumor cell death. The technology is increasingly accepted by doctors and patients for its minimally invasive, safe, reliable efficacy, few complications, and uterus-preserving fibroid treatment.

[0033] At present, uterine fibroid ablation requires the preservation of a 5mm area at the edge of the tumor lesion to ensure that the heat generated by the ablation is limited to the lesion without causing damage to the surrounding normal uterine myometrium. If the fibroid is close to the endometrium, more attention should be paid to the protection of the endometrium, especially for women who want to have children, the safety margin during ablation is crucial.

[0034] During ultrasound-guided thermal ablation, water in the tissue around the electrode tip boils, and the resulting microbubbles appear as high echoes on the ultrasound image. Affected by tissue vaporization, the image boundary of the lesion is relatively blurred, and the operation is highly dependent on the surgeon's operating experience and skills. In addition, since the ultrasound image only shows the situation of the section, it cannot fully reflect the situation of the entire three-dimensional area, making it difficult to evaluate the situation outside the section, which can easily cause the ablation boundary to exceed the safe range.

[0035] How to construct the ablation range with high precision, define the edge of the microwave energy field, and clarify its relationship with the edge of the lesion is an urgent problem to be solved.

[0036] In the related art, the scheme for determining the range to be ablated is usually: construct a three-dimensional image of the lesion area, project it in multiple directions to obtain multiple projection images, and then extract the vascular projection map in the projection image. After the ablation needle is inserted into the lesion area, obtain a two-dimensional ultrasound image of the surgical position, and extract the vascular ultrasound map from the two-dimensional ultrasound image, compare the vascular ultrasound map with multiple vascular projection maps, and take the vascular projection map with the greatest similarity as the ablation range.

[0037] The above scheme for determining the ablation range is suitable for organs with relatively fixed positions and courses of large blood vessels. Taking the liver as an example, the courses of the hepatic artery, portal vein, and hepatic vein follow a certain pattern. However, since the arteries of organs (such as the uterus) are distributed in the muscular layer and there are no obvious differences in different places, accurate projection positioning cannot be performed based on the course and corners of the blood vessels, which leads to the inability to accurately determine the ablation range.

[0038] To solve the above technical problems, an embodiment of the present application provides an image processing method, which includes: constructing a first three-dimensional image based on the scanning results of the target area; determining the lesion boundary, and determining a second three-dimensional image of the lesion boundary in the first three-dimensional image based on the lesion boundary; after detecting that the ablation needle is inserted into the lesion boundary, constructing a three-dimensional space based on the position and attribute parameters of the ablation needle; determining the space to be ablated based on the positional relationship between the three-dimensional space and the second three-dimensional image.

[0039] Since the second three-dimensional image represents a stereoscopic image of the lesion area, and the three-dimensional space represents the stereoscopic space of the activity range of the ablation needle, the final space to be ablated is determined by the positional relationship between the three-dimensional space and the stereoscopic image. Compared with the space to be ablated determined by comparing two-dimensional vascular images in related technologies, the space to be ablated determined by this scheme is more accurate, does not rely on vascular images, and has a wider range of applications.

[0040] The image processing method provided by the present application is described in detail below in conjunction with the accompanying drawings and specific implementation methods.

[0041] Figure 1This is a flow chart of an image processing method in an embodiment of the present application. This embodiment can be applied to determining the ablation range. The method can be executed by an image processing device. The image processing device can be implemented in software and / or hardware. The image processing device can be configured in an image processing device.

[0042] like Figure 1 As shown, the image processing method provided in the embodiment of the present application mainly includes steps S101-S104.

[0043] S101: construct a first three-dimensional image based on a scan result of a target area.

[0044] The target area can be understood as a part of the human body that needs to be ablated, specifically, an organ or part of an organ where a tumor exists, and the organ can be the uterus, liver, kidney, heart, etc. The above-mentioned ablation is a method of destroying abnormal tissue by locally applying heat or cold energy, mainly including radiofrequency ablation, cryoablation, laser ablation, microwave ablation, etc.

[0045] Scan results usually refer to images or data of a patient's body parts obtained through various medical imaging technologies. These imaging technologies include but are not limited to X-rays, CT (computed tomography), MRI (magnetic resonance imaging), PET (positron emission tomography), ultrasound, etc. Scan results can help doctors diagnose diseases, assess conditions, plan treatment plans, and monitor treatment effects. The scan result for a target area is a sequence of scanned images arranged in a certain order after scanning the target area.

[0046] A three-dimensional image, also known as a 3D image, refers to an image represented in a three-dimensional space, with three dimensions: height, width, and depth. A three-dimensional image can create a stereoscopic effect, allowing users to perceive that objects in the image are three-dimensional rather than flat, and to be able to observe the same scene or object from different angles and directions, providing a more comprehensive perspective. The first three-dimensional image can be understood as a three-dimensional image of a target area created for a target area.

[0047] In a possible implementation, a three-dimensional ultrasound probe is used to scan the target area to obtain a two-dimensional image sequence arranged in a certain order. A three-dimensional coordinate system is pre-constructed, and the scanned two-dimensional image sequence is mapped to the three-dimensional coordinate system to obtain a three-dimensional image of the entire target area as a first three-dimensional image.

[0048] Constructing the first three-dimensional image based on the scanning results of the target area mainly includes the following processes:

[0049] 1. Data acquisition: Use a 3D ultrasound probe to collect a 2D image sequence. A 3D ultrasound probe usually contains multiple ultrasound elements that can transmit and receive ultrasound waves simultaneously.

[0050] 2. Image positioning: During the data acquisition process, the position and angle of each 2D scan image are accurately recorded to ensure that the 3D image can be correctly reconstructed later.

[0051] 3. Three-dimensional reconstruction: Using the acquired two-dimensional image sequence and the spatial positioning information between each two-dimensional image sequence, three-dimensional reconstruction is performed through computer software to obtain a first three-dimensional image. For example, it can be a voxel-based reconstruction or a surface-based reconstruction.

[0052] 4. Image processing: The reconstructed first 3D image can be further processed, such as denoising, contrast enhancement, transparency adjustment, etc., to improve the image quality and make it more suitable for clinical diagnosis.

[0053] In one possible implementation, Figure 2 As shown, constructing a first three-dimensional image based on the scanning result of the target area mainly includes steps S1011-S1013.

[0054] S1011. Construct a first coordinate system with the center position of the ultrasound probe as the origin, the first direction of the ultrasound probe as the first coordinate axis, the second direction of the ultrasound probe as the second coordinate axis, and the third direction of the ultrasound probe as the third coordinate axis, wherein the first direction, the second direction, and the third direction are perpendicular to each other.

[0055] The ultrasonic probe is a tool that uses ultrasonic waves for detection. In the medical field, ultrasonic probes are usually used in ultrasonic imaging technology, such as B-ultrasound, to obtain images of internal organs of the human body by transmitting and receiving ultrasonic waves. The working principle of the ultrasonic probe is to use the piezoelectric effect to convert electrical energy into ultrasonic waves, or to convert received ultrasonic waves into electrical signals.

[0056] The center position of the ultrasonic probe can be understood as the position where the focus of the ultrasonic wave emitted from the probe surface is located. In ultrasonic imaging technology, the center position of the probe is usually the convergence point of the ultrasonic beam, that is, the place where the ultrasonic wave energy is most concentrated. The center position of the ultrasonic probe is very important for the clarity and resolution of the imaging, and this position determines the degree of focusing of the ultrasonic wave inside the object being detected. In this embodiment, the center position of the ultrasonic probe is used as the origin of the first coordinate system.

[0057] The first direction of the ultrasound probe generally refers to the left-right direction of the ultrasound probe. The left-right direction of the ultrasound probe may be the left-right direction relative to the user (doctor) or the ultrasound device screen. The first coordinate axis may be any one of the three-dimensional coordinate axes. For example, in this embodiment, the first coordinate axis is the X-axis.

[0058] The second direction of the ultrasound probe can be understood as the direction in which the front end of the ultrasound probe contacts the patient's ventral side, and then the ultrasound beam of the probe is directed toward the patient's dorsal side. In other words, the second direction refers to the direction in which the user holds the ultrasound probe, the front end of the ultrasound probe (the emitting surface of the probe) contacts the patient's ventral side, and then the ultrasound beam of the probe is directed toward the patient's dorsal side. That is, the second direction refers to the emission from the abdomen to the back. Among them, the second coordinate axis can be a coordinate axis in the three-dimensional coordinate axis that is perpendicular to the first coordinate axis. For example, in this embodiment, the second coordinate axis is the Y axis for illustration. That is, the direction from the patient's abdomen to the back is taken as the Y axis.

[0059] The third direction of the ultrasound probe can be understood as a direction perpendicular to both the first coordinate axis and the second coordinate axis. In one possible implementation, the direction from the patient's feet to the head is the third direction. Among them, the third coordinate axis can be a coordinate axis in the three-dimensional coordinate axis that is perpendicular to the first coordinate axis and the second coordinate axis. For example, in this embodiment, the third coordinate axis is the Z axis. That is, the direction from the patient's feet to the head is taken as the Z axis.

[0060] In a specific implementation, the first coordinate system is a three-dimensional coordinate system, with the center position of the ultrasound probe as the origin of the first coordinate system, the left and right directions of the ultrasound probe as the X-axis of the first coordinate system, the direction from the abdomen to the back of the patient as the Y-axis of the first coordinate system, and the direction from the feet to the head of the patient as the Z-axis of the first coordinate system.

[0061] S1012: Control the ultrasonic probe to scan the target area to obtain a two-dimensional image sequence.

[0062] Control the ultrasound probe to be placed on the skin surface of the target area for examination, and ensure that the probe is in good contact with the skin. Adjust the initial settings of the ultrasound probe, such as depth, gain, dynamic range, etc., according to the purpose of the examination. Perform a preliminary two-dimensional image scan to observe and confirm the location and structure of the target area. Based on the preliminary scan results, adjust the image settings, such as focus position, gain curve (TGC), image zoom, etc., to obtain the best image quality. Ensure that the time gain compensation (TGC), frequency, and other related parameters of the ultrasound equipment are correctly calibrated. Control the movement of the ultrasound probe to cover the target area and obtain a continuous two-dimensional image sequence. Record key frames or continuous image sequences for subsequent analysis.

[0063] Furthermore, the target area can be scanned from different angles to obtain more comprehensive structural information.

[0064] Furthermore, after acquiring the two-dimensional image sequence, some post-processing can be performed, such as adjusting the contrast, brightness or applying specific image analysis tools.

[0065] S1013: Map the two-dimensional image sequence into a first coordinate system to obtain a first three-dimensional image of the target area.

[0066] Register the 2D image sequence to ensure consistency and alignment between the images. Determine the relative position and orientation of the 2D images in 3D space. Fuse the registered 2D images together to form a preliminary 3D dataset. Convert the fused 3D dataset into a voxel (volume pixel) model. Extract surface information from the voxel model, smooth the extracted surface to reduce reconstruction errors, and optimize surface details to obtain the first 3D image of the target area.

[0067] Among them, determining the relative position and direction of the two-dimensional image in the three-dimensional space usually requires using a position and direction sensor of the ultrasound probe (such as a magnetic tracker or a sensor built into the ultrasound probe) to record the movement trajectory of the probe during the scanning process.

[0068] This embodiment only illustrates the process of performing three-dimensional reconstruction on a two-dimensional image sequence obtained by an ultrasonic probe, but does not limit it.

[0069] In the embodiment of the present application, the entire target area is scanned in three dimensions according to the direction of the ultrasound probe and the direction of the patient, and a three-dimensional coordinate system is automatically constructed without the need for self-definition. Compared with the related art, the first coordinate system is constructed with the largest section of the target lesion of uterine fibroids as the center. The construction time of the three-dimensional image can be reduced, and there are fewer confounding factors in the process of three-dimensional image construction.

[0070] S102: Determine a lesion boundary, and determine a second three-dimensional image of the lesion boundary in the first three-dimensional image based on the lesion boundary.

[0071] Among them, the lesion boundary usually refers to the dividing line between the lesion area and the surrounding normal tissue. The lesion boundary can help doctors identify and distinguish lesion tissue from healthy tissue. Exemplarily, the lesion area can refer to a tumor area, etc. The second three-dimensional image refers to a three-dimensional stereoscopic image formed by the lesion boundary. The three-dimensional image of the lesion boundary usually refers to the three-dimensional morphology of the lesion extracted from the two-dimensional medical image using three-dimensional reconstruction technology.

[0072] Methods for determining lesion boundaries may include one or more of the following: outlining the lesion boundary using the Halo halo method, segmenting medical images using deep learning algorithms such as convolutional neural networks (CNN) to determine lesion boundaries, improving the model's ability to recognize lesions through data enhancement technology, and the like.

[0073] In a possible implementation, determining the lesion boundary, and determining a second three-dimensional image of the lesion boundary in the first three-dimensional image based on the lesion boundary, includes: for each two-dimensional image acquired, determining the lesion boundary in the two-dimensional image. In this way, each two-dimensional image in the two-dimensional image sequence determines the lesion boundary it contains. According to the method for mapping the two-dimensional image sequence to the first coordinate system provided in the above embodiment, the lesion boundary contained in each two-dimensional image is mapped to the first coordinate system to obtain a second three-dimensional image displayed in the first coordinate system. Among them, the second three-dimensional image is contained in the first three-dimensional image.

[0074] In a possible implementation, this embodiment provides a method for determining a lesion boundary, such as Figure 3 As shown, the method for determining the lesion boundary provided in this embodiment includes main steps S1021-S1026.

[0075] In this embodiment, the lesion is a uterine fibroid as an example for explanation. Because uterine fibroids have a complete pseudocapsule, the lesion boundary is clearer, and the lesion boundary can be clearly defined by the gray value difference. Uterine fibroids are mainly low echoes, the echo is lower than the surrounding normal tissue, and the fibroid boundary is high echo, higher than the surrounding normal tissue. First, multiple uterine fibroid cases are collected to outline the low echo area A inside the fibroid, the fibroid boundary B, and the surrounding normal tissue C. The gray value of each pixel in the low echo area A, the gray value of each pixel in the fibroid boundary B, and the gray value of each pixel in the surrounding normal tissue C are collected respectively.

[0076] The second mean and the second standard deviation of the grayscale values ​​of each pixel in the hypoechoic region A are calculated, and the range between the difference between the second mean and the second standard deviation and the sum of the second mean and the second standard deviation is used as the second preset range. The second preset range is used to represent the range corresponding to the grayscale values ​​of each pixel in the hypoechoic region A. That is, the second preset range is [second mean - second standard deviation, second mean + second standard deviation].

[0077] Calculate the first mean and first standard deviation of the grayscale values ​​of each pixel in the fibroid boundary B, and use the range between the difference between the first mean and the first standard deviation and the sum of the first mean and the first standard deviation as the first preset range. The first preset range is used to represent the range corresponding to the grayscale values ​​of each pixel in the fibroid boundary B. That is, the first preset range is [first mean - first standard deviation, first mean + first standard deviation].

[0078] The third mean and the third standard deviation of the grayscale values ​​of each pixel in the surrounding normal tissue C are calculated, and the range between the difference between the third mean and the third standard deviation and the sum of the third mean and the third standard deviation is used as the third preset range. The third preset range is used to represent the range corresponding to the grayscale values ​​of each pixel in the surrounding normal tissue C. That is, the third preset range is [third mean - third standard deviation, third mean + third standard deviation].

[0079] S1021. For at least one two-dimensional image, obtain a grayscale value of each pixel in the two-dimensional image.

[0080] Since the two-dimensional image sequence in the above embodiment is collected by an ultrasonic probe, usually the ultrasonic image is a single-channel grayscale image, so there is no need to perform grayscale processing. If the above two-dimensional image is a color image collected by other methods, it needs to be grayscaled first, and the grayscale can be achieved by weighted summation of the three RGB color channels.

[0081] Get a digital copy of the 2D image, which is usually stored in the DICOM (Digital Imaging and Communications in Medicine) format. Use image processing software or programming libraries that can read the DICOM format, such as Python's pydicom and SimpleITK, or MATLAB's Image Processing Toolbox. Use the tool of your choice to open the DICOM file and read the 2D image data. Iterate through each pixel of the 2D image and get its grayscale value.

[0082] S1022: Compare the grayscale value of each pixel with a first preset range.

[0083] The grayscale values ​​of each pixel point read in step S1021 are compared with the first preset range, the second preset range and the third preset range. The first preset range, the second preset range and the third preset range are determined as described above and are not limited in this embodiment.

[0084] If the grayscale value of a pixel is within the first preset range, it means that the pixel may belong to the lesion boundary and is divided into the initial boundary. If the grayscale value of a pixel is within the second preset range, it means that the pixel may belong to uterine fibroids and is divided into the uterine fibroid area. If the grayscale value of a pixel is within the third preset range, it means that the pixel may belong to the surrounding normal tissue and is divided into the normal tissue area.

[0085] For each pixel in the two-dimensional image, the preset range to which the pixel belongs is determined respectively, and then the area to which the pixel belongs is determined.

[0086] S1023. Construct an initial boundary for all pixel points whose grayscale values ​​are within a first preset range.

[0087] The grayscale value is within a first preset range, that is, the grayscale value of the pixel is between [first mean value - first standard deviation, first mean value + first standard deviation].

[0088] All pixel points whose grayscale values ​​are between [first mean - first standard deviation, first mean + first standard deviation] are outlined to obtain the initial boundary of the lesion.

[0089] If the Doppler image cannot be obtained, the initial boundary can be directly used as the lesion boundary, and a second three-dimensional image corresponding to the lesion boundary is constructed based on the lesion boundary.

[0090] S1024: Acquire a Doppler image corresponding to the two-dimensional image, and identify multiple blood flow areas in the Doppler image.

[0091] Since uterine fibroids are often surrounded by a peripheral ring or semi-ring-shaped blood supply, the blood flow area in the Doppler image can be used to assist in verifying the lesion boundary.

[0092] A Doppler image is a special type of ultrasound image that uses the Doppler effect to assess the speed and direction of blood flow.

[0093] If the two-dimensional image acquired by the ultrasound probe is a Doppler image, the Doppler image is directly used as the Doppler image corresponding to the two-dimensional image. If the two-dimensional image acquired by the ultrasound probe is not a Doppler image, a Doppler image with the same angle and position as the two-dimensional image can be acquired by other means.

[0094] If the two-dimensional image acquired by the ultrasound probe is a Doppler image, the Doppler parameters corresponding to each pixel are read while reading the grayscale value of each pixel in the two-dimensional image. If the two-dimensional image acquired by the ultrasound probe is not a Doppler image, the Doppler parameters corresponding to each pixel in the acquired Doppler image are read.

[0095] Doppler parameters are usually color-coded to indicate the direction and speed of blood flow. Usually, red is usually used to indicate the direction of blood flow toward the probe or sensor, that is, the blood flow moves from the depth of the image to the surface. Blue is usually used to indicate the direction of blood flow away from the probe or sensor, that is, the blood flow moves from the surface to the depth of the image.

[0096] like Figure 4As shown in FIG. 1 , the blood flow area in the Doppler image is identified according to the color. Specifically, the area corresponding to the red pixel and the blue pixel is extracted from the Doppler parameters as the blood flow area. Since there may be multiple blood vessels inside the uterine fibroid, multiple blood flow areas may be extracted from the Doppler image, such as Figure 4 As shown in the second picture.

[0097] S1025. Process multiple blood flow areas to obtain auxiliary boundaries.

[0098] After the blood flow area is identified, the aspect ratio of each blood flow area is obtained, and the aspect ratio is compared with a preset value. If the aspect ratio of the blood flow area is less than the preset value, the blood flow area is retained and highlighted. If the aspect ratio of the blood flow area is greater than or equal to the preset value, the blood flow area is hidden and no longer displayed. After this processing, the following can be obtained: Figure 4 The blood flow area diagram shown in the third figure.

[0099] The aspect ratio (AR) of the blood flow area is a parameter that describes the shape of the blood flow area. It refers to the ratio of the maximum width (horizontal) to the maximum height (vertical) of the blood flow area. The aspect ratio of the blood flow area helps to evaluate the shape characteristics of the blood flow area, especially when evaluating blood vessels or lesion areas.

[0100] The above-mentioned set value can be understood as a parameter for evaluating the shape of the blood flow area. For example, the above-mentioned set value can be any value between 1 and 2. Optionally, the set value is 1 as an example for description.

[0101] When the aspect ratio is equal to 1, it means that the shape of the blood flow area is close to a circle or a square, that is, the width and height are roughly equal. When the aspect ratio is greater than 1, it means that the blood flow area is much longer in width than in height, and the shape is more rectangular or elliptical. When the aspect ratio is less than 1, it means that the blood flow area is much longer in height than in width, and the shape tends to extend vertically or longitudinally.

[0102] The blood flow area retained after comparing the aspect ratio with the set value is outlined with the outer edge and inner edge corresponding to the blood flow area, such as Figure 4 As shown in the fourth figure.

[0103] Finally, the outer edge is deleted, and only the inner edge is retained. The inner edge is used to represent the edge of the uterine fibroid, that is, the auxiliary boundary of the lesion, such as Figure 4 As shown in the fifth figure.

[0104] The auxiliary boundary mentioned above can be understood as auxiliary verification of whether the initial boundary determined in S1033 is accurate.

[0105] S1026. Determine the lesion boundary based on the initial boundary and the auxiliary boundary.

[0106] The initial boundary determined in S1023 is compared with the auxiliary boundary determined in S1025. If all the auxiliary boundaries are contained in the closed area formed by the initial boundary, the initial boundary is used as the final lesion boundary. If a part of the auxiliary boundary intersects with the initial boundary, the initial boundary at the intersection position is hidden or deleted, and the closed area formed by the intersection of the auxiliary boundary at the intersection position and the retained initial boundary is used as the final lesion boundary.

[0107] In the embodiment of the present application, the lesion boundary is identified and determined based on the grayscale value of the lesion boundary and the distribution of annular blood vessels, which can improve the efficiency of determining the lesion boundary.

[0108] S103: After detecting that the ablation needle is inserted into the boundary of the lesion, construct a three-dimensional space based on the position and attribute parameters of the ablation needle.

[0109] Among them, the ablation needle is a minimally invasive device used for medical treatment, especially in tumor ablation surgery. Ablation is a method of using image-guided technology to accurately puncture the ablation needle into the tumor tissue, and through the heat generated or other physical or chemical effects, the local tissue will coagulate and necrotize, thereby achieving the purpose of treatment.

[0110] Ultrasonic imaging technology is used to monitor the insertion process of the ablation needle in real time. After the set mark of the ablation needle is monitored to reach the set position, it is determined that the ablation needle is inserted into the lesion boundary. The set position can be understood as any position included in the lesion boundary. The set mark of the ablation needle can be understood as a mark position pre-set on the ablation needle to indicate the position of the ablation needle.

[0111] Detecting that the ablation needle is inserted into the area enclosed by the boundary of the lesion means detecting that the coordinate point of the ablation needle in the first coordinate system coincides with the coordinate point of the second three-dimensional image.

[0112] Figure 5 FIG. 1 is a schematic diagram of an ablation needle inserted into a lesion area provided in this embodiment. Figure 5 As shown, the ablation needle 1 is inserted into the uterine fibroid 2 inside the uterus.

[0113] The position of the ablation needle can be understood as the position of the ablation needle in the first coordinate system. The attribute parameters of the ablation needle may include the ablation length LAD, the first single-point ablation diameter SAD-1 and the second single-point diameter SAD-2. Among them, the ablation length LAD generally refers to the effective length of the ablation needle in the body during the ablation operation, and the single-point ablation diameter SAD refers to the diameter of the ablation lesion formed when the ablation needle acts at a single point.

[0114] A three-dimensional space is constructed based on the position of the ablation needle in the first coordinate system, as well as the ablation length LAD of the ablation needle, the first single-point ablation diameter SAD-1 and the second single-point ablation diameter SAD-2.

[0115] In one possible implementation, Figure 6 As shown, constructing a three-dimensional space based on the position and attribute parameters of the ablation needle mainly includes steps S1031-S1034.

[0116] S1031. Identify the first key point and the second key point of the ablation needle.

[0117] Since the ablation needle has a high echo, a strong linear echo may be displayed in the ultrasound image. The first key point may refer to the tip of the ablation needle. The second key point may refer to the position where the ablation needle contacts the patient's skin. The coordinate value of the first key point in the first coordinate system is identified as the position of the first key point, and the coordinate value of the second key point in the first coordinate system is identified as the position of the second key point.

[0118] S1032: Determine the identification point of the ablation needle based on the position of the first key point and the ablation length of the ablation needle.

[0119] Among them, the ablation length LAD generally refers to the effective length of the ablation needle in the body during the ablation surgery. The ablation length LAD depends on the type of ablation technology used and the specifications of the ablation needle. Furthermore, the ablation length LAD generally refers to twice the length between the tip of the ablation needle and the marking point of the ablation needle. The marking point F of the ablation needle usually refers to the middle position of the front end or active end of the ablation needle, that is, the middle part of the part where the ablation needle produces a thermal effect to ablate tissue. In other words, Figure 7 As shown, the ablation length LAD can be understood as twice the length between the marking point F of the ablation needle and the tip of the ablation needle.

[0120] The direction from the first key point to the second key point is taken as the first direction, and the coordinate point along the first direction and whose length from the coordinate value of the first key point is the ablation length LAD is determined as the coordinate point of the identification point F of the ablation needle.

[0121] S1033. Construct a second coordinate system with the identification point as the origin, the first key point and the direction determined by the first key point as the fourth coordinate axis, and two directions perpendicular to the fourth coordinate axis as the fifth coordinate axis and the sixth coordinate axis respectively.

[0122] The second coordinate system is a three-dimensional coordinate system, in which the identification point F of the ablation needle is the origin of the second coordinate system. The direction of the second key point pointing to the first key point (i.e., the insertion direction of the ablation needle) is used as the X-axis of the second coordinate system, and the two directions perpendicular to the X-axis are used as the Y-axis and the Z-axis respectively to construct the second coordinate system.

[0123] S1034. Construct a three-dimensional space in a second coordinate system based on the attribute parameters of the ablation needle.

[0124] The above three-dimensional space can be understood as an ellipsoidal three-dimensional space, and all areas included in the three-dimensional space are effective ablation spaces of the ablation needle. The effective ablation area refers to the area where the ablation needle can generate enough heat to kill tumor cells during radiofrequency ablation or microwave ablation treatment.

[0125] like Figure 8 As shown, the effective extent LAD of the ablation needle is taken as the long semi-axis of the ellipsoid, the first single-point ablation diameter SAD-1 is taken as the middle semi-axis of the ellipsoid, and the second single-point ablation diameter SAD-2 is taken as the short semi-axis of the ellipsoid to construct the ellipsoid, and the three-dimensional space area included in the ellipsoid is taken as the constructed three-dimensional space.

[0126] In the embodiment of the present application, the second coordinate system is constructed by the parameters of the ablation needle. This method simply and quickly determines the effective ablation space of the ablation needle and improves the image processing speed.

[0127] S104: Determine the area to be ablated based on the positional relationship between the three-dimensional space and the second three-dimensional image.

[0128] The second three-dimensional image can be understood as a three-dimensional stereoscopic image including the entire lesion area and having a clear lesion boundary. The three-dimensional space refers to the effective ablation space of the ablation needle determined in S103, which can be represented by an ellipsoid. The space to be ablated can be understood as an effective ablation area where ablation surgery can be performed after the above processing without causing damage to surrounding normal tissues.

[0129] The positional relationship between the three-dimensional space and the second three-dimensional image includes the following three situations: first, the three-dimensional space is completely contained in the second three-dimensional image, that is, there is an intersecting space between the three-dimensional space and the second three-dimensional image, and the intersecting space is the entire three-dimensional space; second, there is an intersecting space between the three-dimensional space and the second three-dimensional image, but the intersecting space is a part of the three-dimensional space, not the entire three-dimensional space; third, the three-dimensional space is completely separated from the second three-dimensional image, that is, there is no intersecting space between the three-dimensional space and the second three-dimensional image.

[0130] In the case where the three-dimensional space is completely contained in the second three-dimensional image, the three-dimensional space is used as the space to be ablated. If the three-dimensional space and the second three-dimensional image have an intersecting space and the intersecting space is a part of the three-dimensional space, or the three-dimensional space is completely intersecting with the second three-dimensional image, the position of the ablation needle in the target area is adjusted, and the step of constructing the three-dimensional space based on the position and attribute parameters of the ablation needle and subsequent steps are returned to execute until the three-dimensional space is completely contained in the second three-dimensional image, and the three-dimensional space is used as the space to be ablated.

[0131] In one possible implementation, the space to be ablated is determined based on the positional relationship between the three-dimensional space and the second three-dimensional image, including: determining the shortest distance between the three-dimensional space and the second three-dimensional image; judging whether the shortest distance is less than a preset value; if the shortest distance is less than the preset value, adjusting the position of the ablation needle, and returning to execute the step of constructing the three-dimensional space based on the position and attribute parameters of the ablation needle; if the shortest distance is greater than the preset value, using the area in the second three-dimensional image that overlaps with the three-dimensional space as the space to be ablated.

[0132] Since the three-dimensional space is determined based on the second coordinate system, the second three-dimensional image is determined based on the first coordinate system, that is, the coordinate systems identified by the two stereo images are different. Therefore, it is necessary to first determine the conversion relationship between the two coordinate systems. Specifically, since the first key point, the second key point, and the landmark point F of the ablation needle have their corresponding coordinate values ​​in the first coordinate system and their corresponding coordinate values ​​in the second coordinate system, the conversion relationship between the two coordinate systems is determined based on the coordinate values ​​of these three coordinate values ​​in the two coordinate systems.

[0133] Based on the conversion relationship between the two coordinate systems, each pixel point in the three-dimensional space and each pixel point of the second three-dimensional image are converted to the same coordinate system to facilitate the calculation of the shortest distance. The second three-dimensional image can be converted to the second coordinate system according to the above conversion relationship, that is, each pixel point in the second three-dimensional image is represented by the coordinate value in the second coordinate system. The three-dimensional space can also be converted to the first coordinate system according to the above conversion relationship, that is, each pixel point in the three-dimensional space is represented by the coordinate value in the first coordinate system.

[0134] After converting the three-dimensional space and the second three-dimensional image to the same coordinate system, the coordinate value corresponding to each pixel point of the envelope surface in the three-dimensional space and the coordinate value corresponding to each pixel point of the envelope surface of the second three-dimensional image are obtained, the distance between each two pixel points is calculated, and the minimum value is selected from all distances as the shortest distance between the three-dimensional space and the second three-dimensional image.

[0135] In another implementation, the six farthest points included in the three-dimensional space (ellipsoid) can be obtained, and for each farthest point, the distance between the farthest point and each pixel point of the envelope surface of the second three-dimensional image is calculated, and the minimum value is selected from all the above distances as the shortest distance between the three-dimensional space and the second three-dimensional image.

[0136] Among them, the farthest points of the ellipsoid include (h_x±a, h_y, h_z), (h_x, h_y±b, h_z), (h_x, h_y, h_z±c). Among them, the coordinates of the center point of the ellipsoid are (h_x, h_y, h_z), and the lengths of the three main axes are (a, b, c), where a, b, and c are the semi-axis lengths along the x, y, and z axes respectively.

[0137] The distance between two pixel points can be calculated using a distance formula between two points, which is not specifically limited in this embodiment.

[0138] The preset value can be determined according to the type of target area, the type of ablation surgery and the user's experience. For example, if uterine fibroid ablation requires retaining a 5mm area around the edge of the tumor lesion, the preset value can be set to 5mm.

[0139] If the shortest distance is greater than a preset value, and the coordinate point in the three-dimensional space corresponding to the shortest distance is within the coordinate range of the second three-dimensional image, it indicates that the surgical requirements can be met at this time. For example: if the shortest distance is greater than 5mm, and the coordinate point in the three-dimensional space corresponding to the shortest distance is within the coordinate range of the second three-dimensional image, it indicates that the requirement of uterine fibroid ablation to retain a 5mm area at the edge of the tumor lesion is met. At this time, the three-dimensional space is prompted with the first prompt information. The first prompt information may include voice prompt information and color prompt information. For example: the three-dimensional space displayed on the three-dimensional ultrasound display screen is displayed in green to prompt the user that the effective ablation space of the ablation needle is a safe space at this time, and the ablation operation can be performed.

[0140] If the shortest distance is greater than the preset value, but the coordinate point in the three-dimensional space corresponding to the shortest distance is outside the coordinate range of the second three-dimensional image, it indicates that the effective ablation space of the ablation needle may damage the surrounding tissue and cannot meet the surgical requirements. Or if the shortest distance is less than the preset value, but the coordinate point in the three-dimensional space corresponding to the shortest distance is within the coordinate range of the second three-dimensional image, it cannot meet the requirement of uterine fibroid ablation to retain the set area of ​​the edge of the tumor lesion. At this time, the three-dimensional space is prompted with a second prompt message. The second prompt message is different from the first prompt message. For example: the three-dimensional space displayed on the three-dimensional ultrasound display screen is displayed in red to prompt the user that the effective ablation space of the ablation needle is a dangerous space at this time, and ablation surgery is prohibited. At this time, the position of the ablation needle needs to be readjusted, and the steps of constructing the three-dimensional space based on the position and attribute parameters of the ablation needle and subsequent steps are returned until the shortest distance is greater than the preset value, and the coordinate point in the three-dimensional space corresponding to the shortest distance is within the coordinate range of the second three-dimensional image, meeting the surgical requirements.

[0141] In this embodiment, a three-dimensional space judgment method is used to judge whether the effective ablation space is safe. Compared with the two-dimensional space judgment method and the experience judgment method in the related technology, it can better ensure the safety of ablation and improve the treatment effect of the operation.

[0142] The embodiment of the present application provides an image processing method, which includes: constructing a first three-dimensional image based on the scanning results of the target area; determining the boundary of the lesion, and determining the second three-dimensional image of the boundary of the lesion in the first three-dimensional image based on the boundary of the lesion; after detecting that the ablation needle is inserted into the boundary of the lesion, constructing a three-dimensional space based on the position and attribute parameters of the ablation needle; determining the space to be ablated based on the positional relationship between the three-dimensional space and the second three-dimensional image. Since the second three-dimensional image represents a stereoscopic image of the lesion area, and the three-dimensional space represents a stereoscopic space of the range of motion of the ablation needle, the final space to be ablated determined by the positional relationship between the stereoscopic space and the stereoscopic image is more accurate than the space to be ablated determined by comparing the two-dimensional vascular images in the related art, and cannot rely on the vascular image, and has a wider range of applications.

[0143] After determining the space to be ablated, the ablation needle can be controlled to generate heat or other physical or chemical effects to cause local tissue coagulation and necrosis. Furthermore, since multiple ablations may need to be performed, the position of the ablation needle can be adjusted multiple times to determine multiple spaces to be ablated, and the ablation needle can be controlled to generate energy in multiple spaces to be ablated. After multiple ablations, it is necessary to determine whether the lesion has been completely eliminated after multiple ablations. Therefore, based on the above embodiments, the embodiments of the present application also provide a method for assisting the user in determining whether the lesion has been eliminated, that is, using the ablation overlap rate to assist the user in determining whether the lesion has been eliminated. The ablation overlap rate in the present application is achieved by image processing, such as Fig. 9 As shown, another image processing method provided in an embodiment of the present application includes steps S201-S204.

[0144] S201. After detecting an ablation overlap rate determination instruction, a plurality of spaces to be ablated are merged to obtain an ablated area, and the ablated area is displayed in a three-dimensional image.

[0145] Among them, the ablation coincidence rate determination instruction can be understood as the coincidence rate between the area where ablation has been performed and the second three-dimensional image (the three-dimensional image of the lesion area). Among them, detecting the ablation coincidence rate determination instruction may include: detecting the user's operation for determining the ablation coincidence rate. It also includes: the number of ablations performed reaches a set number of times. The set number of times can be determined based on the size of the second three-dimensional image. For example: the set number of times can be 5 times. When the number of ablations performed reaches 5 times, the ablation coincidence rate determination instruction is generated and detected.

[0146] In the embodiment of the present application, after the space to be ablated is determined, the ablation operation is performed in the space to be ablated. During one ablation operation, multiple spaces to be ablated can be determined based on the position of the ablation needle and the range of the second three-dimensional image, and the ablation operation is performed in each space to be ablated, that is, multiple ablation operations are performed.

[0147] After the ablation operation in each space to be ablated is completed, the space to be ablated is a space where the ablation operation has been completed. Therefore, after a plurality of spaces to be ablated are combined, the irregular space obtained is the ablated area.

[0148] The above-mentioned merging of multiple spaces to be ablated includes: merging the multiple spaces to be ablated into a single three-dimensional space, retaining the common part of all the spaces to be ablated, and subtracting the part intersecting with another space to be ablated from one space to be ablated to obtain the final ablated area.

[0149] Merging the multiple spaces to be ablated may also include: merging all pixel points of the multiple spaces to be ablated, and when two or more pixel points overlap, only one pixel point is retained.

[0150] In a possible implementation, the ablated area is displayed in a prominent manner in the ultrasound image, for example, it may be displayed as a red area.

[0151] S202, selecting any point from the second three-dimensional image as the origin, slicing the ablated area at a set angle to obtain a plurality of first section triangles included in the ablated area, and slicing the second three-dimensional image at a set angle to obtain a plurality of second section triangles included in the second three-dimensional image.

[0152] In one possible implementation, any point is selected from the second three-dimensional image as the origin, and the ablated area is sliced ​​at a set angle to obtain a plurality of first section triangles included in the ablated area, including: selecting any point from the second three-dimensional image as the origin, dividing the ablated area into a plurality of ablated parts in a manner where a dividing line passes through the origin, and for each ablated part, dividing the ablated part at a set angle to obtain a plurality of slices; and the two coordinate points farthest from the origin in the ablated area in the cut edge and the origin constitute a first section triangle.

[0153] Select any point from the second three-dimensional image as the origin, and divide the ablated area into multiple ablated parts with the origin as the center, with the origin as the center, that is, the dividing line of each division passes through the origin. For example: it can be divided into 2 parts, 4 parts, or 8 parts. Among them, it is divided into 2 parts, each part is half an ellipsoid. If it is divided into 4 parts or 8 parts. Each part includes two triangles, a fan-like shape, and an envelope surface of a part of the ablated area defined by two triangles and a fan-like shape.

[0154] Next, the ablated area is divided into two parts along the dividing line passing through the origin, and each part is half an ellipsoid. Fig.10aAs shown. Each ellipsoid is composed of an ellipsoidal surface and an arc-shaped envelope surface of the ablated part. The center of an ellipsoidal surface is the above-mentioned origin. With the origin as the center and the height line of the ellipsoid as the dividing line, the ellipsoidal surface is divided into multiple slices at a set angle, such as Fig.10b As shown in FIG. 1 , the setting angle is 15 degrees. The entire ablated area can be divided into 48 slices.

[0155] In the embodiment of the present application, for the convenience of explanation, the setting angle is 15 degrees. In practical applications, the smaller the second setting angle is, the more accurate the calculated coincidence rate is. For example, if the setting angle is 5 degrees, the entire ablated area can be divided into 144 slices.

[0156] The coordinate points of the ablated area included in each slice are obtained, the distance between each coordinate point and the origin is calculated, and the coordinate point corresponding to the farthest distance, the coordinate point corresponding to the second farthest distance and the origin are used to construct a first section triangle.

[0157] The second 3D image is divided in the same way as the ablated area to obtain a second cut plane triangle corresponding to the first cut plane triangle. The second cut plane triangle corresponding to the first cut plane triangle can be understood as the slice that determines the first cut plane triangle and the slice that determines the second cut plane triangle are the same slice.

[0158] S203 . For the first cut surface triangle and the second cut surface triangle of the same slice, calculate the overlap ratio between the first cut surface triangle and the second cut surface triangle.

[0159] For each slice, a first section triangle is determined based on coordinate points of the ablated region in the slice, and a second section triangle is determined based on coordinate points of the second three-dimensional image.

[0160] Since the coordinate values ​​of the three vertices of the first facet triangle are known, the area of ​​the first facet triangle is calculated based on the three vertex coordinate values. Since the coordinate values ​​of the three vertices of the second facet triangle are known, the area of ​​the second facet triangle is calculated based on the three vertex coordinate values. The ratio of the area of ​​the first facet triangle to the area of ​​the second facet triangle is used as the overlap ratio between the first facet triangle and the second facet triangle.

[0161] The first section triangle and the second section triangle of each slice are divided according to the above method, and then the overlap rate corresponding to each slice can be calculated.

[0162] S204, accumulating multiple overlap rates to obtain a total overlap rate.

[0163] The coincidence rates corresponding to the multiple slices are accumulated to obtain a total coincidence rate, and the total coincidence rate is used to indicate the degree of coincidence between the ablated area and the second three-dimensional image (lesion image).

[0164] Further, the total overlap rate is compared with the set overlap rate. If the total overlap rate is greater than or equal to the set overlap rate, it indicates that the ablation is successful at this time. If the total overlap rate is less than the set overlap rate, it indicates to readjust the position of the ablation needle, and return to the step of constructing a three-dimensional space based on the position and attribute parameters of the ablation needle and subsequent steps.

[0165] The above-mentioned set overlap rate can be set according to actual conditions such as the type of target area, the type of ablation surgery, and the size of the second three-dimensional image. For example, the above-mentioned set overlap rate can be 80%.

[0166] Furthermore, if the total overlap rate is less than the set overlap rate, the overlap rates corresponding to the slices are sorted in ascending order, and the slices ranked in the first position or the first N positions are used as additional ablation areas. The ablation needle is controlled to be inserted into the additional ablation area, and the position of the ablation needle is obtained. The step of constructing a three-dimensional space based on the position and attribute parameters of the ablation needle and subsequent steps are returned to execute until the total overlap rate is greater than or equal to the set overlap rate, indicating that the ablation is successful at this time.

[0167] In a possible implementation, another slicing division method is provided. Any point in the ablated area is selected as the origin to construct a third coordinate system, wherein the third coordinate system is a three-dimensional coordinate system, and the three coordinate axes of the three-dimensional coordinate system divide the entire ablated area into 8 quadrants. In each quadrant, every 30 degrees is divided into a unit, and a total of 24 unit cones are divided. A slice is made at 5 degrees in each cone, and each unit cone includes 6 sections, resulting in a total of 144 slices.

[0168] For each slice, obtain the coordinate point of the farthest distance and the coordinate point of the second farthest distance in the ablated area within the slice, and construct the first section triangle with these two coordinate points and the origin. Obtain the coordinate point of the farthest distance and the coordinate point of the second three-dimensional image within the slice, and construct the second section triangle with these two coordinate points and the origin. Finally, 144 first section triangles and 144 second section triangles can be obtained.

[0169] Calculate the overlap rate of the first facet triangle and the second facet triangle in each slice, as well as the total overlap rate corresponding to multiple slices, and compare the total overlap rate with the set overlap rate. If the total overlap rate is greater than or equal to the set overlap rate, it indicates that the ablation is successful at this time. If the total overlap rate is less than the set overlap rate, that is, calculate the overlap rate corresponding to each unit cone, highlight the area with a lower overlap rate corresponding to the unit cone, and perform additional ablation as the ablation area. The overlap rate corresponding to the unit cone can be understood as the sum of the overlap rates of all slices included in the unit cone.

[0170] In the embodiments of the present application, the ablation overlap rate of the spatial volume can be converted into the area ablation overlap rate of multiple sections, and the volume of an irregular body that cannot be calculated can be converted into the area of ​​multiple levels, which provides a new method for calculating the ablation overlap rate and clarifies the strategy for evaluating the effect of ablation surgery.

[0171] Fig.11 is a schematic diagram of the structure of an image processing device in an embodiment of the present application, such as Fig.11 As shown, the image processing device 110 provided in the embodiment of the present application mainly includes: a first three-dimensional image construction module 111, a second three-dimensional image determination module 112, a three-dimensional space construction module 113 and a to-be-ablated space determination module 114.

[0172] Among them, the first three-dimensional image construction module 111 is used to construct a first three-dimensional image based on the scanning results of the target area; the second three-dimensional image determination module 112 is used to determine the lesion boundary, and determine the second three-dimensional image of the lesion boundary in the first three-dimensional image based on the lesion boundary; the three-dimensional space construction module 113 is used to construct a three-dimensional space based on the position and attribute parameters of the ablation needle after detecting that the ablation needle is inserted into the target area; the to-be-ablated space determination module 114 is used to determine the to-be-ablated space based on the positional relationship between the three-dimensional space and the second three-dimensional image.

[0173] The embodiment of the present application provides an image processing device, which is used to perform the following process: construct a first three-dimensional image based on the scanning results of the target area; determine the boundary of the lesion, and determine the second three-dimensional image of the boundary of the lesion in the first three-dimensional image based on the boundary of the lesion; after detecting that the ablation needle is inserted into the boundary of the lesion, construct a three-dimensional space based on the position and attribute parameters of the ablation needle; determine the space to be ablated based on the positional relationship between the three-dimensional space and the second three-dimensional image. Since the second three-dimensional image represents a stereoscopic image of the lesion area, and the three-dimensional space represents a stereoscopic space of the range of motion of the ablation needle, the final space to be ablated determined by the positional relationship between the stereoscopic space and the stereoscopic image is more accurate than the space to be ablated determined by comparing the two-dimensional vascular image in the related art, and cannot rely on the vascular image, and has a wider range of applications.

[0174] In one possible implementation, the first three-dimensional image construction module 111, in the process of constructing the first three-dimensional image based on the scanning results of the target area, is specifically used to construct a first coordinate system with the center position of the ultrasound probe as the origin, the first direction of the ultrasound probe as the first coordinate axis, the second direction of the ultrasound probe as the second coordinate axis, and the third direction of the ultrasound probe as the third coordinate axis, wherein the first direction, the second direction, and the third direction are perpendicular to each other; control the ultrasound probe to scan the target area to obtain a two-dimensional image sequence; and map the two-dimensional image sequence to the first coordinate system to obtain a first three-dimensional image of the target area.

[0175] In one possible implementation, the second three-dimensional image determination module 112 is used to determine the lesion boundary, specifically for at least one two-dimensional image, to obtain the grayscale value of each pixel in the two-dimensional image; compare the grayscale value of each pixel with a first preset range; construct an initial boundary for all pixels whose grayscale values ​​are within the first preset range to obtain a Doppler image corresponding to the two-dimensional image, and identify multiple blood flow areas in the Doppler image; process the multiple blood flow areas to obtain auxiliary boundaries; and determine the lesion boundary based on the initial boundary and the auxiliary boundary.

[0176] In one possible implementation, the three-dimensional space construction module 113 is used to identify the first key point and the second key point of the ablation needle in the process of constructing the three-dimensional space based on the position and attribute parameters of the ablation needle after detecting that the ablation needle is inserted into the target area; determine the identification point of the ablation needle based on the position of the first key point and the ablation length of the ablation needle; construct a second coordinate system with the identification point as the origin, the direction determined by the first key point and the second key point as the fourth coordinate axis, and the two directions perpendicular to the fourth coordinate axis as the fifth coordinate axis and the sixth coordinate axis respectively; and construct a three-dimensional space in the second coordinate system based on the attribute parameters of the ablation needle.

[0177] In one possible implementation, the module 114 for determining the space to be ablated is used to determine the shortest distance between the three-dimensional space and the second three-dimensional image in the process of determining the space to be ablated based on the positional relationship between the three-dimensional space and the second three-dimensional image; to determine whether the shortest distance is less than a preset value; if the shortest distance is less than the preset value, adjust the position of the ablation needle, and return to execute the step of constructing the three-dimensional space based on the position and attribute parameters of the ablation needle; if the shortest distance is greater than the preset value, use the area in the second three-dimensional image overlapping with the three-dimensional space as the space to be ablated.

[0178] In a possible implementation, it also includes an overlap rate calculation module, which is used to merge multiple spaces to be ablated after detecting the ablation overlap rate determination instruction, to obtain an ablated area, and the ablated area is displayed in a three-dimensional image; select any point from the second three-dimensional image as the origin, select any point from the ablated area as the origin, slice the ablated area at a set angle, and obtain multiple first section triangles included in the ablated area, slice the second three-dimensional image at a set angle, and obtain multiple second section triangles included in the second three-dimensional image; for the first section triangle and the second section triangle of the same slice, calculate the overlap rate between the first section triangle and the second section triangle; accumulate multiple overlap rates to obtain a total overlap rate.

[0179] In one possible implementation, the module 114 for determining the space to be ablated is used to select any point from the second three-dimensional image as the origin, slice the ablated area at a set angle, and obtain multiple first section triangles included in the ablated area. Specifically, it is used to select any point from the second three-dimensional image as the origin, divide the ablated area into multiple ablation parts in a manner where the dividing line passes through the origin; for each ablated part, divide the ablated part at a set angle to obtain multiple slices; for each slice, the two coordinate points farthest from the origin in the ablated area in the cut edge and the origin constitute a first section triangle.

[0180] The image processing device provided in the embodiment of the present application can execute the image processing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0181] The present application provides an image processing system, comprising: an ultrasonic detection device and an image processing device, wherein the ultrasonic detection device is used to obtain a scanning result for a target area and transmit it to the image processing device; the image processing device comprises: one or more processors; a storage device for storing one or more programs; the processor is used to implement the image processing method described in the above embodiment in the process of executing the one or more programs based on the scanning result obtained for the target area.

[0182] Fig.12 FIG. 1 is a schematic diagram of the structure of an image processing device provided by this embodiment. Fig.12 As shown, the image processing device 1200 includes a processor 1210, a memory 1220, an input device 1230, and an output device 1240; the number of processors 1210 in the electronic device can be one or more. Fig.12 A processor 1210 is taken as an example; the processor 1210, the memory 1220, the input device 1230 and the output device 1240 in the electronic device can be connected via a bus or other means. Fig.12 The example of connecting through bus is taken in the following.

[0183] The memory 1220 is a computer-readable storage medium that can be used to store software programs, computer executable programs and modules, such as program instructions / modules corresponding to the image processing method in the embodiment of the present invention. The processor 1210 executes various functional applications and data processing of the electronic device by running the software programs, instructions and modules stored in the memory 1220, that is, implements the image processing method provided in the embodiment of the present invention.

[0184] The memory 1220 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system and an application required for at least one function; the data storage area may store data created according to the use of the terminal, etc. In addition, the memory 1220 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 1220 may further include a memory remotely arranged relative to the processor 1210, and these remote memories may be connected to the electronic device via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0185] The input device 1230 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the electronic device, and may include a keyboard, a mouse, etc. The output device 1240 may include a display device such as a display screen.

[0186] This embodiment further provides a storage medium containing computer executable instructions, which are used to implement the image processing method provided by the embodiment of the present invention when executed by a computer processor.

[0187] Of course, the computer executable instructions of a storage medium including computer executable instructions provided by an embodiment of the present invention are not limited to the operations of the method described above, but can also execute related operations in the image processing method provided by any embodiment of the present invention.

[0188] Through the above description of the implementation methods, the technicians in the relevant field can clearly understand that the present invention can be implemented by means of software and necessary general hardware, and of course it can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as a computer floppy disk, read-only memory (ROM), random access memory (RAM), flash memory (FLASH), hard disk or optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, server, or network device, etc.) to execute the methods described in each embodiment of the present invention.

[0189] It is worth noting that in the embodiment of the above-mentioned search device, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0190] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.

[0191] The above description is only a specific implementation of the present application, so that those skilled in the art can understand or implement the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein can be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments described herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. An image processing method, characterized in that: The method comprises: constructing a first three-dimensional image based on the scanning result of the target area; determining a lesion boundary, and determining a second three-dimensional image of the lesion boundary in the first three-dimensional image based on the lesion boundary; After detecting that the ablation needle is inserted into the target area, constructing a three-dimensional space based on the position and attribute parameters of the ablation needle; A space to be ablated is determined based on a positional relationship between the three-dimensional space and the second three-dimensional image.

2. The method according to claim 1, characterized in that: The step of constructing a first three-dimensional image based on the scanning result of the target area includes: A first coordinate system is constructed with the center position of the ultrasonic probe as the origin, the first direction of the ultrasonic probe as the first coordinate axis, the second direction of the ultrasonic probe as the second coordinate axis, and the third direction of the ultrasonic probe as the third coordinate axis, wherein the first direction, the second direction, and the third direction are perpendicular to each other; Controlling the ultrasonic probe to scan the target area to obtain a two-dimensional image sequence; The two-dimensional image sequence is mapped into the first coordinate system to obtain a first three-dimensional image of the target area.

3. The method according to claim 2, characterized in that Determining the lesion boundary comprises: For at least one two-dimensional image, obtain the grayscale value of each pixel in the two-dimensional image; compare the grayscale value of each pixel with a first preset range; Constructing an initial boundary for all pixel points whose grayscale values ​​are within the first preset range; Acquire a Doppler image corresponding to the two-dimensional image, and identify multiple blood flow areas in the Doppler image; Processing the multiple blood flow areas to obtain auxiliary boundaries; The lesion boundary is determined based on the initial boundary and the auxiliary boundary.

4. The method according to claim 2, characterized in that: The constructing of a three-dimensional space based on the position and attribute parameters of the ablation needle comprises: identifying a first key point and a second key point of the ablation needle; Determining a marking point of the ablation needle based on the position of the first key point and the ablation length of the ablation needle; A second coordinate system is constructed by taking the identification point as the origin, taking the direction determined by the first key point and the second key point as the fourth coordinate axis, and taking two directions perpendicular to the fourth coordinate axis as the fifth coordinate axis and the sixth coordinate axis respectively; A three-dimensional space is constructed in the second coordinate system based on the attribute parameters of the ablation needle.

5. The method according to claim 1, characterized in that Determining a space to be ablated based on a positional relationship between the three-dimensional space and the second three-dimensional image includes: determining a shortest distance between the three-dimensional space and the second three-dimensional image; Determine whether the shortest distance is less than a preset value; When the shortest distance is less than the preset value, adjusting the position of the ablation needle, and returning to the step of constructing a three-dimensional space based on the position and attribute parameters of the ablation needle; When the shortest distance is greater than the preset value, a region in the second three-dimensional image overlapping with the three-dimensional space is used as the space to be ablated.

6. The method according to claim 1, characterized in that Also includes: After detecting the ablation coincidence rate determination instruction, merging the plurality of spaces to be ablated to obtain an ablated area, wherein the ablated area is displayed in a three-dimensional image; Selecting any point from the second three-dimensional image as the origin, selecting any point from the ablated area as the origin, slicing the ablated area at a set angle to obtain a plurality of first section triangles included in the ablated area, and slicing the second three-dimensional image at a set angle to obtain a plurality of second section triangles included in the second three-dimensional image; For the first cut surface triangle and the second cut surface triangle of the same slice, calculating the overlap rate between the first cut surface triangle and the second cut surface triangle; The multiple overlap rates are accumulated to obtain a total overlap rate.

7. The method according to claim 6, characterized in that An arbitrary point is selected from the second three-dimensional image as the origin, and the ablated area is sliced ​​according to a set angle to obtain a plurality of first section triangles included in the ablated area, including: Selecting any point from the second three-dimensional image as an origin, and dividing the ablated area into a plurality of ablated parts in a manner that a dividing line passes through the origin; For each of the ablated parts, dividing the ablated part according to a set angle to obtain a plurality of slices; For each of the slices, two coordinate points farthest from the origin in the ablated region of the slice and the origin form a first section triangle.

8. An image processing device, characterized in that: The device comprises: A first three-dimensional image construction module, used to construct a first three-dimensional image based on a scanning result of the target area; a second three-dimensional image determination module, configured to determine a lesion boundary, and determine a second three-dimensional image of the lesion boundary in the first three-dimensional image based on the lesion boundary; A three-dimensional space construction module, configured to construct a three-dimensional space based on the position and attribute parameters of the ablation needle after detecting that the ablation needle is inserted into the target area; The module for determining the space to be ablated is used to determine the space to be ablated based on the positional relationship between the three-dimensional space and the second three-dimensional image.

9. An image processing system, characterized in that: The image processing system comprises: an ablation needle, an ultrasonic detection device and an image processing device. The ultrasonic detection device is used to obtain the scanning result for the target area and transmit it to the image processing device; The image processing device comprises: one or more processors; a storage device for storing one or more programs; The processor is used to implement the image processing method according to any one of claims 1 to 7 in the process of executing the one or more programs based on the scanning result obtained for the target area.

10. A storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the image processing method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • High-intensity focused ultrasound treatment plan generation method based on three-dimensional focus mask

    CN121060014A

  • Method for high intensity focused ultrasound treatment planning based on three-dimensional lesion mask

    CN121060014B