Backflow enema path planning method based on intestinal curve trend simulation
Through the reflux enema path planning method based on the simulation of intestinal tortuosity, B-RRT and APF algorithms are used to construct an enema path that avoids interference with the intestinal wall, which solves the problem in the existing technology that the enema process cannot simultaneously penetrate deep into the intestine, close to the lesion and avoid damage. , realizing safe enema path planning.
Patent Information
- Application Number
- CN202410630659.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-21
- Publication Date
- 2024-09-06
Smart Images

Figure CN118593121A
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of medical imaging, and in particular to a reflux enema path planning method based on intestinal curvature simulation. Background Art
[0002] Inserting an enema tube through the anus and injecting laxatives into the rectum through the enema tube can stimulate intestinal peristalsis, promote the excretion of feces, and have the effect of cleaning the intestines. In addition, injecting specific drugs into the intestines through the enema tube can also treat diseases such as ulcerative colitis, radiation enteritis, and pelvic inflammatory disease. The enema method is simply divided into retention enema and non-retention enema. Retention enema is a mixture of a small amount of liquid and medicine, inserted into the rectal ampulla 15-20cm; non-retention enema is generally inserted into the rectum 7-10cm, and irrigated in several times; for patients who are fasting or have difficulty eating after surgery for certain upper gastrointestinal diseases, in order to supply nutrition, water, etc., the method of drip enema can be used. The enema tube is inserted into the anus 20-25cm, and the enema is connected to the enema device and slowly drips into the intestine; in addition, when patients with pelvic inflammatory disease undergo enema treatment, the depth of the enema tube is generally 20-30cm, and enema is used to expel the contents of the intestine from the body.
[0003] As can be seen from various situations such as the above, depending on the location of the lesion inside the intestine, the corresponding enema method and enema tube insertion depth are different.
[0004] In medical operation specifications, the enema tube is mainly inserted into the intestine gradually according to the direction of the intestine. The intestinal path is curved, and the shape of the enema tube itself cannot be completely consistent with the direction of the intestine. The enema tube contacts and squeezes the intestinal wall and moves forward guided by the intestinal wall. The enema tube may damage the intestinal tissue and cause intestinal bleeding or intestinal perforation. To solve the above problems, there is a method in the prior art to calculate the optimal path according to the direction of the intestinal curve, which provides an indication for the operation during enema, colonoscopy and other operations inside the intestine, thereby reducing the probability of intestinal rupture caused by the pipe or colonoscope structure.
[0005] The optimal path in the prior art usually only limits the path to maintain a safe distance from both sides of the intestinal wall. During the actual enema operation, when the intestinal lesion site is uncertain and the lesion area is too deep into the intestine, the end point of the enema path cannot be determined, and the enema tube needs to be repeatedly adjusted to directly irrigate the lesion area. However, the repeated adjustment process will damage the intestine itself. Therefore, the enema path in the prior art cannot simultaneously meet the conditions of going deep into the intestine to approach and face the lesion site and avoid damaging the intestine. Summary of the invention
[0006] To this end, the present invention provides a reflux enema path planning method based on intestinal curvature simulation, which effectively solves the problem that the enema process in the prior art cannot simultaneously meet the conditions of penetrating deep into the intestine to approach the lesion site and avoid damaging the intestine.
[0007] In order to solve the above technical problems, the present invention specifically provides the following technical solutions: a reflux enema path planning method based on intestinal curve direction simulation, comprising:
[0008] Acquire an intestinal CT image, identify a lesion area on the intestinal CT image, segment and identify the intestinal CT image based on a three-dimensional segmentation model, obtain a segmentation identification mark of the intestinal structure, and mark the segmentation identification mark on the intestinal CT image to construct an intestinal curvature direction model;
[0009] Marking injection points and target points on the intestinal curvature model based on the lesion area identified by the intestinal CT image;
[0010] Based on the B-RRT algorithm, several random nodes with equal spacing are derived from the entry point and the target point one by one, forming a random tree S1 and a random tree S2 centered on the entry point and the target point respectively;
[0011] The APF algorithm is used to analyze the stress state of each random node, and the position of the random node on the random tree S1 and the random tree S2 is adjusted according to the stress state of the random node. The position of the extended node is calculated under the condition that the random nodes at the far end of the random tree S1 and the random tree S2 are close to each other and the distance between them is less than the distance threshold, and the position is interpolated between the random nodes at the far end to form a reflux enema path;
[0012] The parameters of the head action range of the enema tube are obtained, and the target point is corrected so that the head action range of the enema tube coincides with the lesion area when the enema tube is located at the new target point. At the same time, the original target point and redundant random nodes are removed to correct the reflux enema path.
[0013] Further,
[0014] The random tree S1 takes the entry point as a starting point, and first random nodes are derived one by one from the entry point;
[0015] The random tree S2 takes the target point as the starting point, and the second random nodes are derived one by one from the target point;
[0016] Among them, the extended node is inserted between the first random node and the second random node that are close to each other, and are connected by the extended node. The first node spacing between adjacent first random nodes is equal, the second node spacing between adjacent second random nodes is equal, and the first node spacing and the second node spacing are equal.
[0017] Further,
[0018] Each of the first random node, the second random node and the extended node satisfies: at least one-dimensional in-plane force balance.
[0019] Further,
[0020] Adjusting the positions of random nodes on the random tree S1 and the random tree S2 according to the stress state of the random nodes specifically includes the following steps:
[0021] Take the entry point and target point as the center and the first node distance as the radius to get the first estimated node set;
[0022] Calculate the gravitational dimension surface force of each estimated node based on the gravitational field function;
[0023] Calculate the force situation of the repulsive dimension surface of each estimated node based on the repulsive field function;
[0024] Select the estimated nodes that meet the following conditions from the estimated node set as the new first random node and second random node:
[0025] (a) estimating that the node is within the intestinal curvature model;
[0026] (b) The repulsive dimension surface force of the estimated node is in a balanced state;
[0027] (c) The gravitational dimension surface force of the estimated node is reduced compared with the previous random node;
[0028] The second estimated node set is obtained by taking the first new first random node and the second random node as the center and the first node spacing as the radius, and repeating the above steps to extend the new first random node and the second random node one by one.
[0029] Further,
[0030] The gravitational field function is defined as:
[0031]
[0032]
[0033] Among them, q represents the estimated node, U1(q) represents the gravitational field of the estimated node, k1 is the gravitational field gain coefficient in APF, ρ1 is the distance from the estimated node to the target point on the random tree S1 or the distance from the estimated node to the entry point on the random tree S2, and F1(q) is the gravitational dimension surface force of the estimated node. is the gradient;
[0034] The repulsive field function is defined as:
[0035]
[0036]
[0037] Among them, U2(q) represents the repulsive field of the estimated node, ρ0 is the influence distance of the intestinal wall, ρ0 is greater than the width of the intestine, ρ2 is the distance between the estimated node and the intestinal wall, k2 is the repulsive scale factor, and F2(q) is the repulsive dimension surface force of the estimated node. is the gradient.
[0038] Further,
[0039] Under the condition that the random nodes at the far ends of the random trees S1 and S2 are close to each other and the distance between them is less than the distance threshold, the position of the extended node is calculated, and interpolated between the random nodes at the far ends to form a reflux enema path, which specifically includes the following steps:
[0040] Obtaining a first random node and a second random node located at a far end and having completed adjustment on the random tree S1 and the random tree S2;
[0041] Calculating the real-time node distance between the first random node and the second random node, and establishing a connection line between the real-time nodes when the distance between the real-time nodes is less than a distance threshold;
[0042] Detect whether the connection line collides with the intestinal wall;
[0043] If there is a collision, continue to extend the next random node of the random tree S1 and the random tree S2, and repeat the above steps. If there is no collision, the first random node X1 and the second random node X2 with no collision in the connecting line are obtained;
[0044] Calculate the distance between the first random node X1 and the second random node X2;
[0045] If the spacing is smaller than the first node spacing, the first random node X1 and the second random node X2 are directly connected to form a reflux enema path;
[0046] If the distance between them is greater than the first node distance, the location of the expanded node is calculated and interpolated between the distal random nodes to form a reflux enema path.
[0047] Further,
[0048] The calculation process of the point position of the expansion node includes:
[0049] Connect the first random node X1 and the second random node X2, and make a node plane passing through the midpoint of the connection line and perpendicular to the connection line;
[0050] Calculate the repulsive dimension surface force of all points in the node plane based on the repulsive field function;
[0051] Select points where the repulsive dimension surface is in a balanced state as expansion nodes, and connect the expansion nodes with the first random node X1 and the second random node X2;
[0052] The distances between the extended node point and the first random node X1 and the second random node X2 are equal.
[0053] Further,
[0054] The parameters of the head action range of the enema tube are obtained, and the target point is corrected so that the head action range of the enema tube coincides with the lesion area when the enema tube is located at the new target point. At the same time, the original target point and redundant random nodes are removed to correct the reflux enema path, which specifically includes the following steps:
[0055] Starting from the target point, it is judged in sequence whether the lesion area is within the action range of the enema tube head when the enema tube head is placed at a number of second random nodes behind the target point;
[0056] The second random nodes that meet the conditions are combined to form a correction node set;
[0057] Select the second random node farthest from the target in the correction node set as the new target;
[0058] The original target point and redundant random nodes were eliminated to correct the reflux enema path.
[0059] The second random node in the correction node set should satisfy the condition that when the enema tube head is placed at the second random node, the lesion area is within the action range of the enema tube head.
[0060] Further,
[0061] The construction process of the intestinal curvature model specifically includes the following steps:
[0062] Acquire sample image data of multiple groups of intestinal CT images having the same lesion area as the patient to be enema in the case database;
[0063] Constructing a 3D segmentation deep neural network, preprocessing the sample image data, and inputting the preprocessed sample image data as training sample data into the 3D segmentation deep neural network for learning to obtain a 3D segmentation model;
[0064] Acquiring preliminary image data of an intestinal CT image of a patient to be given an enema, preprocessing the preliminary image data, inputting the preprocessed preliminary image data into the three-dimensional segmentation model, and segmenting and identifying different intestinal structures using the three-dimensional segmentation model to obtain a segmentation and recognition result of the intestinal structure;
[0065] A bowel curvature direction model is constructed based on the segmentation and recognition results and the preliminary image data.
[0066] Compared with the prior art, the present invention has the following beneficial effects:
[0067] In the present invention, an intestinal CT image is obtained, a lesion area is identified on the intestinal CT image, and an intestinal curvature trend model is constructed. Based on the B-RRT algorithm combined with the APF algorithm, a random tree S1 and a random tree S2 far away from the intestinal wall are respectively constructed, and the positions of random nodes on the random tree S1 and the random tree S2 are adjusted. The far ends of the random tree S1 and the random tree S2 are connected by interpolation to obtain a reflux enema path that avoids interference between the enema tube and the intestinal wall. The reflux enema path can keep a certain distance from the intestinal wall. In addition, the reflux enema path is automatically corrected according to the action range of the head of the enema tube and the position of the lesion area, so as to shorten the reflux enema path while ensuring that the lesion area can be irrigated, and to avoid further penetration of the path to damage the intestine, so as to achieve planning of the reflux enema path, and to provide guidance and reference for the insertion process of the enema tube. On the one hand, it is convenient for the enema tube to penetrate into the intestine close to the lesion area, and on the other hand, it is reduced to reduce the interference between the enema tube and the intestinal wall and cause damage. BRIEF DESCRIPTION OF THE DRAWINGS
[0068] In order to more clearly illustrate the implementation methods of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for the implementation methods or the description of the prior art. Obviously, the drawings in the following description are only exemplary, and for ordinary technicians in this field, other implementation drawings can be derived from the provided drawings without creative work.
[0069] Figure 1 A flow chart of a reflux enema path planning method based on intestinal curve direction simulation provided by an embodiment of the present invention;
[0070] Figure 2 Schematic diagram of the structure of the random tree S1 and the random tree S2 in the embodiment of the present invention;
[0071] Figure 3 for Figure 2 Schematic diagram of the cross-sectional structure along the AA direction;
[0072] Figure 4 for Figure 2 Schematic diagram of the cross-sectional structure along the middle BB direction;
[0073] Figure 5 Schematic diagram of a random tree connection structure in which the distance between the first random node X1 and the second random node X2 is smaller than the first node distance in an embodiment of the present invention;
[0074] Figure 6A schematic diagram of a random tree connection structure in which the distance between the first random node X1 and the second random node X2 is greater than the first node distance in an embodiment of the present invention;
[0075] Figure 7 is a schematic diagram of the effective range of the enema tube in an embodiment of the present invention;
[0076] Figure 8 Schematic diagram of a corrected reflux enema path in an embodiment of the present invention. DETAILED DESCRIPTION
[0077] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0078] like Figure 1 and Figure 2 As shown, the present invention provides a reflux enema path planning method based on intestinal curve direction simulation, which is characterized by comprising:
[0079] Acquire an intestinal CT image, identify the lesion area on the intestinal CT image, segment and identify the intestinal CT image based on a three-dimensional segmentation model, obtain segmentation identification marks of the intestinal structure, and mark the segmentation identification marks on the intestinal CT image to construct an intestinal curvature direction model;
[0080] The injection points and targets are marked on the intestinal curvature model based on the lesion area identified by intestinal CT images;
[0081] Based on the B-RRT algorithm, several random nodes with equal spacing are derived from the entry point and the target point one by one, forming a random tree S1 and a random tree S2 centered on the entry point and the target point respectively;
[0082] The APF algorithm is used to analyze the stress state of each random node, and the position of the random nodes on the random tree S1 and the random tree S2 is adjusted according to the stress state of the random nodes. The position of the extended node is calculated under the condition that the random nodes at the far end of the random tree S1 and the random tree S2 are close to each other and the distance between them is less than the distance threshold, and the position is interpolated between the random nodes at the far end to form a reflux enema path;
[0083] The parameters of the head action range of the enema tube are obtained, and the target point is corrected so that the head action range of the enema tube coincides with the lesion area when the enema tube is located at the new target point. At the same time, the original target point and redundant random nodes are removed to correct the reflux enema path.
[0084] In the present invention, an intestinal CT image is obtained, a lesion area is identified on the intestinal CT image, and an intestinal curvature trend model is constructed. Based on the B-RRT algorithm combined with the APF algorithm, a random tree S1 and a random tree S2 far away from the intestinal wall are respectively constructed, and the positions of random nodes on the random tree S1 and the random tree S2 are adjusted. The far ends of the random tree S1 and the random tree S2 are connected by interpolation to obtain a reflux enema path that avoids interference between the enema tube and the intestinal wall. The reflux enema path can keep a certain distance from the intestinal wall. In addition, the reflux enema path is automatically corrected according to the action range of the head of the enema tube and the position of the lesion area, so as to shorten the reflux enema path while ensuring that the lesion area can be irrigated, and to avoid further penetration of the path to damage the intestine, so as to achieve planning of the reflux enema path, and to provide guidance and reference for the insertion process of the enema tube. On the one hand, it is convenient for the enema tube to penetrate into the intestine close to the lesion area, and on the other hand, it is reduced to reduce the interference between the enema tube and the intestinal wall and cause damage.
[0085] Among them, a point is taken at the center of the cross section of the model area containing the lesion area as the target point, such as Figure 3 As shown, a point is taken at the center of the cross section of the model area corresponding to the location of the lesion area and is used as the initial target point. Subsequent target points need to be adjusted according to actual conditions.
[0086] In the present invention, the process of constructing the intestinal curvature model specifically includes the following steps:
[0087] Acquire sample image data of multiple groups of intestinal CT images having the same lesion area as the patient to be enema in the case database;
[0088] Constructing a 3D segmentation deep neural network, preprocessing sample image data, and inputting the preprocessed sample image data as training sample data into the 3D segmentation deep neural network for learning to obtain a 3D segmentation model;
[0089] Acquire preliminary image data of the intestinal CT image of the patient to be enema, preprocess the preliminary image data, input the preprocessed preliminary image data into the three-dimensional segmentation model, segment and identify different intestinal structures using the three-dimensional segmentation model, and obtain the segmentation and recognition results of the intestinal structure;
[0090] A bowel curvature orientation model was constructed based on the segmentation and recognition results and preliminary image data.
[0091] The case library is needed in the above process to obtain samples. A three-dimensional segmentation model can be obtained based on the samples. The preprocessed preliminary image data is input into the three-dimensional segmentation model to obtain the segmentation and recognition results of the intestinal structure. Based on the segmentation and recognition results and the preliminary image data, an intestinal curvature direction model can be constructed. The intestinal curvature direction model is roughly the same as the intestinal direction of the patient to be enema.
[0092] In the present invention, the reflux enema path needs to be formed by a random tree:
[0093] The random tree S1 takes the entry point as the starting point, and the first random nodes are derived from the entry point one by one;
[0094] The random tree S2 takes the target point as the starting point, and the second random nodes are derived from the target point one by one;
[0095] Among them, an expansion node is inserted between the mutually approaching first random nodes and second random nodes, and the first node spacings between adjacent first random nodes are equal, the second node spacings between adjacent second random nodes are equal, and the first node spacings and the second node spacings are equal.
[0096] In the present invention, each of the first random node, the second random node and the extended node satisfies: at least one-dimensional in-plane force balance.
[0097] In the present invention, adjusting the positions of random nodes on the random tree S1 and the random tree S2 according to the stress state of the random nodes specifically includes the following steps:
[0098] Take the entry point and target point as the center and the first node distance as the radius to get the first estimated node set;
[0099] Calculate the gravitational dimension surface force of each estimated node based on the gravitational field function;
[0100] Calculate the force situation of the repulsive dimension surface of each estimated node based on the repulsive field function;
[0101] Select the estimated nodes that meet the following conditions from the estimated node set as the new first random node and second random node:
[0102] (a) The estimated node is within the intestinal curvature model;
[0103] (b) The repulsive dimension surface force of the estimated node is in a balanced state;
[0104] (c) The gravitational dimension surface force of the estimated node is reduced compared with the previous random node;
[0105] The second estimated node set is obtained by taking the first new first random node and the second random node as the center and the first node spacing as the radius, and repeating the above steps to extend the new first random node and the second random node one by one.
[0106] In the above embodiment, the gravitational field function is defined as:
[0107]
[0108]
[0109] Among them, q represents the estimated node, U1(q) represents the gravitational field of the estimated node, k1 is the gravitational field gain coefficient in APF, ρ1 is the distance from the estimated node to the target point on the random tree S1 or the distance from the estimated node to the entry point on the random tree S2, and F1(q) is the gravitational dimension surface force of the estimated node. is the gradient;
[0110] The repulsive field function is defined as:
[0111]
[0112]
[0113] Among them, U2(q) represents the repulsive field of the estimated node, ρ0 is the influence distance of the intestinal wall, ρ0 is greater than the width of the intestine, ρ2 is the distance between the estimated node and the intestinal wall, k2 is the repulsive scale factor, and F2(q) is the repulsive dimension surface force of the estimated node. is the gradient.
[0114] Among them, the value of ρ0 is greater than the internal width of the intestine, so the condition of ρ2≤ρ0 must be satisfied. The larger the distance between the estimated node and the intestinal wall, the smaller the repulsive force.
[0115] like Figure 2 and Figure 4 As shown, taking one of the estimated nodes Y as an example, the gravitational dimension surface force F1(q) is positively correlated with the distance between the estimated node and the entry point, satisfying the following conditions: the estimated node is in the intestinal trend model; the gravitational dimension surface force of the estimated node is reduced compared to the previous random node.
[0116] Among them, the estimated node is closer to the entry point than the previous second random node in the random tree S2, and the distance between it and the entry point is smaller. Therefore, the force on its gravitational dimension surface is smaller than that on the previous second random node, thus satisfying the condition: the gravitational dimension surface force of the estimated node is smaller than that of the previous random node.
[0117] In addition, from the cross-section of the model at the estimated node Y, in the vertical direction, the second random node is subject to the upward repulsion of the lower intestinal wall and the downward repulsion of the upper intestinal wall. When the second random node is at the same distance from the upper and lower intestinal walls, the upward and downward repulsions can reach a state of equilibrium, achieving force offset. The same is true from other directions (in addition to the repulsion of the upper and lower intestinal walls, there are also repulsions in other directions). Therefore, in order to achieve force balance on the repulsive dimension surface, the balance node needs to be located at a position inside the intestine where the distance from the intestinal wall is equal everywhere. The estimated node Y also meets the condition: the repulsive dimension surface force of the estimated node is in a balanced state.
[0118] From the above, it can be seen that the condition "the repulsive dimension surface force of the estimated node is in a balanced state" is to screen the point at the center of the cross-section at a certain position in the intestine, and the condition "the gravitational dimension surface force of the estimated node is reduced compared with the previous random node" is to screen and guide the adjusted first random node and the second random node to extend close to each other to form a final reflux enema path.
[0119] In the present invention, the position of the extended node is calculated under the condition that the random nodes at the far ends of the random tree S1 and the random tree S2 are close to each other and the distance between them is less than the distance threshold, and is interpolated between the random nodes at the far ends to form a reflux enema path, which specifically includes the following steps:
[0120] Obtaining a first random node and a second random node located at a far end and having completed adjustment on the random tree S1 and the random tree S2;
[0121] Calculating the real-time node distance between the first random node and the second random node, and establishing a connection line between the real-time nodes when the distance between the real-time nodes is less than a distance threshold;
[0122] Detect whether the connection line collides with the intestinal wall;
[0123] If there is a collision, continue to extend the next random node of the random tree S1 and the random tree S2, and repeat the above steps. If there is no collision, the first random node X1 and the second random node X2 with no collision in the connecting line are obtained;
[0124] Calculate the distance between the first random node X1 and the second random node X2;
[0125] like Figure 5 As shown, if the spacing is smaller than the first node spacing, the first random node X1 and the second random node X2 are directly connected to form a reflux enema path;
[0126] like Figure 6 As shown, if the distance is greater than the first node distance, the location of the expanded node is calculated and interpolated between the distal random nodes to form a reflux enema path.
[0127] Among them, Figure 6 As shown in the figure, the calculation process of the extended node position includes:
[0128] Connect the first random node X1 and the second random node X2, and make a node plane passing through the midpoint of the connection line and perpendicular to the connection line (the dotted line perpendicular to the connection line in the figure represents the node plane);
[0129] Calculate the repulsive dimension surface force of all points in the node plane based on the repulsive field function;
[0130] Select points where the repulsive dimension surface is in a balanced state as expansion nodes, and connect the expansion nodes with the first random node X1 and the second random node X2;
[0131] Among them, the distance between the expansion node point and the first random node X1 and the second random node X2 is equal. When the expansion node satisfies the condition of "the force on the repulsive dimension surface is in a balanced state", it is also located in the center of the intestine.
[0132] The parameters of the head action range of the enema tube are obtained, and the target point is corrected so that the head action range of the enema tube coincides with the lesion area when the enema tube is located at the new target point. At the same time, the original target point and redundant random nodes are removed to correct the reflux enema path, which specifically includes the following steps:
[0133] Starting from the target point, it is judged in sequence whether the lesion area is within the action range of the enema tube head when the enema tube head is placed at a number of second random nodes behind the target point;
[0134] The second random nodes that meet the conditions are combined to form a correction node set;
[0135] Select the second random node farthest from the target in the correction node set as the new target;
[0136] The original target point and redundant random nodes were eliminated to correct the reflux enema path.
[0137] The second random node in the correction node set should satisfy the condition that when the enema tube head is placed at the second random node, the lesion area is within the action range of the enema tube head.
[0138] Correspondingly, if Figure 7 As shown, starting from the target point, it is determined whether the lesion area is within the action range (whether the lesion area overlaps with the action range) by placing the enema tube at several second random nodes behind the target point. Figure 7 The dotted line on the second random node in the figure shows the virtual range area at each random node. It can be seen that the range area of the first and second second random nodes starting from the target point can act on the lesion area. The second random node (the second second random node) farthest from the target point in the correction node set is selected as the new target. Figure 8 As shown, redundant random nodes and original targets on the random tree S1 are removed to correct the reflux enema path.
[0139] The above embodiments are only exemplary embodiments of the present application and are not intended to limit the present application. The protection scope of the present application is defined by the claims. Those skilled in the art may make various modifications or equivalent substitutions to the present application within the essence and protection scope of the present application, and such modifications or equivalent substitutions shall also be deemed to fall within the protection scope of the present application.
Claims
1. A reflux enema path planning method based on intestinal curve simulation, characterized in that: include: Acquire an intestinal CT image, identify a lesion area on the intestinal CT image, segment and identify the intestinal CT image based on a three-dimensional segmentation model, obtain a segmentation identification mark of the intestinal structure, and mark the segmentation identification mark on the intestinal CT image to construct an intestinal curvature direction model; Marking injection points and target points on the intestinal curvature model based on the lesion area identified by the intestinal CT image; Based on the B-RRT algorithm, several random nodes with equal spacing are derived from the entry point and the target point one by one, forming a random tree S1 and a random tree S2 centered on the entry point and the target point respectively; The APF algorithm is used to analyze the stress state of each random node, and the position of the random node on the random tree S1 and the random tree S2 is adjusted according to the stress state of the random node. The position of the extended node is calculated under the condition that the random nodes at the far end of the random tree S1 and the random tree S2 are close to each other and the distance between them is less than the distance threshold, and the position is interpolated between the random nodes at the far end to form a reflux enema path; The parameters of the head action range of the enema tube are obtained, and the target point is corrected so that the head action range of the enema tube coincides with the lesion area when the enema tube is located at the new target point. At the same time, the original target point and redundant random nodes are removed to correct the reflux enema path.
2. The reflux enema path planning method based on intestinal curve simulation according to claim 1 is characterized in that: The random tree S1 takes the entry point as a starting point, and first random nodes are derived one by one from the entry point; The random tree S2 takes the target point as the starting point, and the second random nodes are derived one by one from the target point; Among them, the extended node is inserted between the first random node and the second random node that are close to each other, and are connected by the extended node. The first node spacing between adjacent first random nodes is equal, the second node spacing between adjacent second random nodes is equal, and the first node spacing and the second node spacing are equal.
3. The reflux enema path planning method based on intestinal curve simulation according to claim 2 is characterized in that: Each of the first random node, the second random node and the extended node satisfies: at least one-dimensional in-plane force balance.
4. The reflux enema path planning method based on intestinal curve simulation according to claim 2 is characterized in that: Adjusting the positions of random nodes on the random tree S1 and the random tree S2 according to the stress state of the random nodes specifically includes the following steps: Take the entry point and target point as the center and the first node distance as the radius to get the first estimated node set; Calculate the gravitational dimension surface force of each estimated node based on the gravitational field function; Calculate the force situation of the repulsive dimension surface of each estimated node based on the repulsive field function; Select the estimated nodes that meet the following conditions from the estimated node set as the new first random node and second random node: (a) estimating that the node is within the intestinal curvature model; (b) The repulsive dimension surface force of the estimated node is in a balanced state; (c) The gravitational dimension surface force of the estimated node is reduced compared with the previous random node; The second estimated node set is obtained by taking the first new first random node and the second random node as the center and the first node spacing as the radius, and repeating the above steps to extend the new first random node and the second random node one by one.
5. The method for planning a reflux enema path based on intestinal curve simulation according to claim 4, characterized in that: The gravitational field function is defined as: Among them, q represents the estimated node, U1(q) represents the gravitational field of the estimated node, k1 is the gravitational field gain coefficient in APF, ρ1 is the distance from the estimated node to the target point on the random tree S1 or the distance from the estimated node to the entry point on the random tree S2, and F1(q) is the gravitational dimension surface force of the estimated node. is the gradient; The repulsive field function is defined as: Among them, U2(q) represents the repulsive field of the estimated node, ρ0 is the influence distance of the intestinal wall, ρ0 is greater than the width of the intestine, ρ2 is the distance between the estimated node and the intestinal wall, k2 is the repulsive scale factor, and F2(q) is the repulsive dimension surface force of the estimated node. is the gradient.
6. The method for planning a reflux enema path based on intestinal curve simulation according to claim 4, characterized in that: Under the condition that the random nodes at the far ends of the random trees S1 and S2 are close to each other and the distance between them is less than the distance threshold, the position of the extended node is calculated, and interpolated between the random nodes at the far ends to form a reflux enema path, which specifically includes the following steps: Obtaining a first random node and a second random node located at a far end and having completed adjustment on the random tree S1 and the random tree S2; Calculating the real-time node distance between the first random node and the second random node, and establishing a connection line between the real-time nodes when the distance between the real-time nodes is less than a distance threshold; Detect whether the connection line collides with the intestinal wall; If there is a collision, continue to extend the next random node of the random tree S1 and the random tree S2, and repeat the above steps. If there is no collision, the first random node X1 and the second random node X2 with no collision in the connecting line are obtained; Calculate the distance between the first random node X1 and the second random node X2; If the spacing is smaller than the first node spacing, the first random node X1 and the second random node X2 are directly connected to form a reflux enema path; If the distance between them is greater than the first node distance, the location of the expanded node is calculated and interpolated between the distal random nodes to form a reflux enema path.
7. The method for planning a reflux enema path based on intestinal curve simulation according to claim 6, characterized in that: The calculation process of the point position of the expansion node includes: Connect the first random node X1 and the second random node X2, and make a node plane passing through the midpoint of the connection line and perpendicular to the connection line; Calculate the repulsive dimension surface force of all points in the node plane based on the repulsive field function; Select points where the repulsive dimension surface is in a balanced state as expansion nodes, and connect the expansion nodes with the first random node X1 and the second random node X2; The distances between the extended node point and the first random node X1 and the second random node X2 are equal.
8. The method for planning a reflux enema path based on intestinal curve simulation according to claim 7, characterized in that: The parameters of the head action range of the enema tube are obtained, and the target point is corrected so that the head action range of the enema tube coincides with the lesion area when the enema tube is located at the new target point. At the same time, the original target point and redundant random nodes are removed to correct the reflux enema path, which specifically includes the following steps: Starting from the target point, it is judged in sequence whether the lesion area is within the action range of the enema tube head when the enema tube head is placed at a number of second random nodes behind the target point; The second random nodes that meet the conditions are combined to form a correction node set; Select the second random node farthest from the target in the correction node set as the new target; The original target point and redundant random nodes were eliminated to correct the reflux enema path. The second random node in the correction node set should satisfy the condition that when the enema tube head is placed at the second random node, the lesion area is within the action range of the enema tube head.
9. The method for planning a reflux enema path based on intestinal curve simulation according to claim 1, characterized in that: The construction process of the intestinal curvature model specifically includes the following steps: Acquire sample image data of multiple groups of intestinal CT images having the same lesion area as the patient to be enema in the case database; Constructing a 3D segmentation deep neural network, preprocessing the sample image data, and inputting the preprocessed sample image data as training sample data into the 3D segmentation deep neural network for learning to obtain a 3D segmentation model; Acquiring preliminary image data of an intestinal CT image of a patient to be given an enema, preprocessing the preliminary image data, inputting the preprocessed preliminary image data into the three-dimensional segmentation model, and segmenting and identifying different intestinal structures using the three-dimensional segmentation model to obtain a segmentation and recognition result of the intestinal structure; A bowel curvature direction model is constructed based on the segmentation and recognition results and the preliminary image data.
