A method and system for simulating real-time blood flow

By acquiring a three-dimensional vascular mesh model, constructing a directed distance field, and employing the PBD/SPH method to apply dynamics to blood fluid particles, the problems of inaccurate results and computational complexity in blood flow simulation were solved, achieving real-time and accurate blood flow simulation.

CN117635826BActive Publication Date: 2026-11-24SHENZHEN WISEMEN MEDICAL TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311531499.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-15
Publication Date
2026-11-24
Estimated Expiration
2043-11-15

AI Technical Summary

Technical Problem

In existing technologies, blood flow simulation in medical data analysis suffers from problems such as inaccurate results, inability to simulate in real time, and blood particles leaking out of blood vessel models, leading to distorted simulation results. Furthermore, existing methods have high computational complexity, making it difficult to meet the requirements of real-time performance and accuracy.

Method used

By acquiring a three-dimensional vascular mesh model, the initial position and flow direction of blood fluid particles are determined, a spatially segmented directed distance field is constructed, and position dynamics (PBD) and smoothed particle hydrodynamics (SPH) are used for simulation. Combining the vascular centerline and surface information, dynamics are applied to the blood fluid particles to perform collision detection and flow simulation.

Benefits of technology

It achieves real-time and accurate blood flow simulation, avoids simulation result distortion, ensures that blood particles flow correctly in blood vessels, reduces computational complexity and resource consumption, and guarantees the stability and real-time performance of the simulation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117635826B_ABST
    Figure CN117635826B_ABST
Patent Text Reader

Abstract

This invention relates to the field of medical engineering technology, specifically to a method and system for simulating real-time blood flow. This method fully utilizes the topological geometry of a mesh, determining the flow direction of blood fluid particles on the surface of a 3D vascular mesh model through simple interaction, and generating vascular centerline information. This provides flow direction information for blood fluid particles within the model, continuously providing propulsion for the particles and ensuring they flow in the correct direction. Furthermore, it constructs a spatially segmented directed distance field for rapid collision detection. Based on the collision detection results, the positions of blood fluid particles outside the model are redefined, ensuring that the particles remain within the blood vessels and guaranteeing the stability of the simulation process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of medical engineering technology, and more specifically, to a method and system for simulating real-time blood flow. Background Technology

[0002] Blood flow simulation is a common technique in medical data analysis and digital surgical simulation. In medical data analysis, blood flow simulation helps doctors simulate blood flow at the lesion site based on individualized patient data before surgery and analyze the simulation results, which serve as an important reference for surgical planning. In digital surgical simulation, blood flow simulation can enhance the realism of the simulation and provide trainees with a good sense of immersion when used for surgical skills training.

[0003] Currently, although blood flow simulation has wide applications and high importance in medicine, real-time blood flow simulation still faces several technical challenges that need to be addressed. First, blood flow simulations used for medical data analysis require high accuracy, thus often employing complex fluid dynamics models for calculations. These are typically used for offline analysis and cannot simulate blood flow in real time. Second, blood flows within blood vessels, whose complex geometry and morphology often lead to omissions or leakage of blood particles from the vessel model during collision detection, resulting in distorted simulation results. Finally, blood flow requires a driving force, and existing solutions typically require additional computation or information to maintain continuous blood flow within blood vessels, resulting in low complexity and adaptability of the simulation algorithms. Summary of the Invention

[0004] The purpose of this invention is to provide a method and system for simulating real-time blood flow, so as to solve the problem that the existing technology does not simulate blood flow well.

[0005] This invention provides a method for simulating real-time blood flow, comprising the following steps: acquiring a three-dimensional vascular mesh model; determining the initial position plane and initial flow direction of blood fluid particles; searching the mesh of the three-dimensional vascular mesh model along the initial flow direction starting from the initial position plane; determining the vascular centerline and the first flow direction of blood fluid particles on the vascular centerline and the second flow direction of blood fluid particles on the vascular surface based on the mesh adjacency relationship; constructing a directed distance field for spatial segmentation of the three-dimensional vascular mesh model; in the process of constructing the directed distance field, a higher sampling rate is used for subspaces with high geometric feature complexity in the three-dimensional vascular mesh model, and a lower sampling rate is used for subspaces with low geometric feature complexity; simulating blood flow based on position dynamics (PBD) and smooth particle hydrodynamics (SPH); during the simulation, collision detection between the blood fluid particles and the mesh is performed using the directed distance field; and the blood fluid particles are subjected to dynamics using the first flow direction and the second flow direction, respectively, when inside the blood vessel and flowing through the vascular surface.

[0006] Optionally, the step of searching the three-dimensional vascular mesh model along the initial flow direction from the initial position plane to determine the vascular centerline and the first flow direction of blood fluid particles on the vascular centerline includes: searching all adjacent meshes along the initial flow direction from the first mesh set corresponding to the initial position plane to form a second mesh set; searching all adjacent meshes not in the first mesh set from the second mesh set to form a third mesh set; and searching layer by layer to the end of the three-dimensional vascular mesh model to obtain all mesh sets; connecting the geometric centroids of each mesh set in ascending order of their corresponding mesh set numbers to obtain the vascular centerline; and determining the first flow direction of blood fluid particles on the vascular centerline from the direction of their corresponding mesh set numbers in ascending order of their corresponding mesh set numbers.

[0007] Optionally, after obtaining all the mesh sets, the method further includes: converting each of the mesh sets S... t Each can be decomposed into n unconnected annular bands X. t1 ~X tn Where t is the index of the grid set, and n is the index of each annular band in the same grid set; the step of connecting the geometric centroids of each grid set in ascending order of the corresponding grid set index to obtain the blood vessel centerline includes: connecting the geometric centroids of two adjacent annular bands in ascending order of the corresponding grid set index t to obtain the blood vessel centerline; the direction of the two adjacent geometric centroids in ascending order of the corresponding grid set index is the first flow direction of blood fluid particles on the blood vessel centerline.

[0008] Optionally, the second flow direction of the blood fluid particles on the surface of the blood vessel includes: determining the second flow direction of the blood fluid particles on the surface of the blood vessel in ascending order of the sequence number of each of the grid sets; or, determining the second flow direction of the blood fluid particles on the surface of the blood vessel by dividing two adjacent annular bands in ascending order of the sequence number t of the corresponding grid set; the second flow direction is coplanar with the first flow direction at the corresponding position.

[0009] Optionally, the construction of the directed distance field for spatial segmentation of the three-dimensional vascular mesh model includes: constructing a spatial segmentation tree for the three-dimensional vascular mesh model, and determining the sampling rate of the directed distance field based on the number of vertices and meshes of each tree node of the spatial segmentation tree; the number of vertices and meshes is positively correlated with the sampling rate; and constructing the directed distance field for spatial segmentation of the three-dimensional vascular mesh model based on the sampling rate of each tree node.

[0010] Optionally, determining the initial position plane and initial flow direction of the blood fluid particles includes: determining a first point in the three-dimensional vascular mesh model; determining a second point near the first point according to the initial flow direction of blood set by the user, wherein the direction of the vector from the first point to the second point is the initial flow direction of the blood fluid particles; and determining a plane containing the first point and with the vector as the normal, wherein the plane is the initial position plane of the blood fluid particles.

[0011] Optionally, the blood flow simulation based on position dynamics (PBD) and smooth particle hydrodynamics (SPH) includes: placing blood fluid particles at a speed of N particles per second on the initial position plane according to the initial blood flow rate; determining the initial force of the blood fluid particles located on the initial position plane, wherein the initial force satisfies the driving force required for the flow of the blood fluid particles, and the direction of the initial force is the same as the initial flow direction of the blood fluid particles.

[0012] Optionally, when the blood fluid particles flow through the blood vessel centerline and the blood vessel surface, the first flow direction and the second flow direction are used to apply power to the blood fluid particles, respectively, including: determining the direction of applying power to the internal blood fluid particles of the three-dimensional blood vessel mesh model based on the first flow direction of the blood fluid particles on the blood vessel centerline, wherein the direction of applying power to the internal blood fluid particles is the first flow direction of the blood fluid particles on the blood vessel centerline; determining the direction of applying power to the surface blood fluid particles of the three-dimensional blood vessel mesh model based on the second flow direction of the blood fluid particles on the blood vessel surface, wherein the direction of applying power to the surface blood fluid particles is the second flow direction of the blood fluid particles on the blood vessel surface; and determining the magnitude of the power applied to the blood fluid particles of the three-dimensional blood vessel mesh model based on the position dynamics (PBD) and the smooth particle hydrodynamics (SPH).

[0013] Optionally, determining the direction of applying power to the internal blood fluid particles of the three-dimensional vascular mesh model includes: obtaining a first flow direction of the blood fluid particles on the center line of the blood vessel that is closest to the blood fluid particles; and determining the direction of applying power to the internal blood fluid particles of the three-dimensional vascular mesh model as the first flow direction of the blood fluid particles on the center line of the blood vessel that is closest to the blood fluid particles.

[0014] Optionally, the blood flow simulation based on position dynamics (PBD) and smooth particle hydrodynamics (SPH) includes: setting a time step during the blood flow simulation; applying the dynamics to the blood fluid particles at the beginning of each time step; and obtaining the three-dimensional coordinates of all the blood fluid particles after the simulation of the time step ends.

[0015] Compared with existing technologies, the real-time blood flow simulation method provided by this invention has the following advantages:

[0016] The real-time blood flow simulation method provided in this invention obtains a three-dimensional vascular mesh model to determine the first flow direction of blood fluid particles on the vascular centerline and the second flow direction of blood fluid particles on the vascular surface. By constructing a spatially segmented directed distance field of the three-dimensional vascular mesh model, blood flow simulation is performed based on position dynamics (PBD) and smooth particle hydrodynamics (SPH). Collision detection is performed between blood fluid particles and the mesh to detect whether any blood fluid particles appear outside the three-dimensional vascular mesh model, thereby repositioning the external blood fluid particles to avoid distortion of the simulation results. During the simulation, the first and second flow directions apply power to the blood fluid particles inside the vascular vessel and as they flow across the vascular surface, respectively, continuously providing power for the flow of blood fluid particles and ensuring that the blood fluid particles flow in the correct direction.

[0017] This invention provides a real-time blood flow simulation system, comprising: an acquisition module for acquiring a three-dimensional vascular mesh model;

[0018] First determining module: used to determine the initial position plane and initial flow direction of blood fluid particles;

[0019] The second determining module is used to search the mesh of the three-dimensional blood vessel mesh model along the initial flow direction starting from the initial position plane, and to determine the blood vessel centerline and the first flow direction of blood fluid particles on the blood vessel centerline and the second flow direction of blood fluid particles on the blood vessel surface according to the mesh adjacency relationship.

[0020] Construction module: used to construct the directed distance field for spatial segmentation of the three-dimensional vascular mesh model; in the process of constructing the directed distance field, the subspaces with high geometric feature complexity in the three-dimensional vascular mesh model adopt a higher sampling rate, and the subspaces with low geometric feature complexity adopt a lower sampling rate;

[0021] Simulation module: used to simulate blood flow based on position dynamics (PBD) and smooth particle hydrodynamics (SPH); during the simulation, the directional distance field is used to detect collisions between the blood fluid particles and the mesh; and the blood fluid particles are subjected to dynamic forces by the first flow direction and the second flow direction respectively when they flow inside the blood vessel and across the surface of the blood vessel.

[0022] The real-time blood flow simulation system provided by this invention has the following advantages: it can achieve the same technical effect as the above-mentioned real-time blood flow simulation method. To avoid repetition, it will not be described again here. Attached Figure Description

[0023] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0024] Figure 1 A schematic flowchart illustrating a real-time blood flow simulation method provided in an embodiment of the present invention;

[0025] Figure 2 This is a schematic diagram of the real-time blood flow simulation process in an embodiment of the present invention;

[0026] Figure 3 This is a schematic diagram illustrating the initial position plane and initial flow direction of blood fluid particles in an embodiment of the present invention;

[0027] Figure 4 This is a schematic diagram of obtaining the first grid set S1 in an embodiment of the present invention;

[0028] Figure 5 This is a schematic diagram illustrating the acquisition of the complete mesh set of the three-dimensional blood vessel mesh model in an embodiment of the present invention;

[0029] Figure 6 This is a schematic diagram of obtaining the blood vessel centerline in an embodiment of the present invention;

[0030] Figure 7 This is a schematic diagram of the forces acting on blood fluid particles in an embodiment of the present invention;

[0031] Figure 8 This is a schematic diagram of a real-time blood flow simulation system according to an embodiment of the present invention;

[0032] Figure 9 This is a schematic diagram of the rendering of a three-dimensional blood vessel mesh model in an embodiment of the present invention;

[0033] Figure 10 This is a schematic diagram of blood flow simulation rendering of a three-dimensional blood vessel mesh model in an embodiment of the present invention. Detailed Implementation

[0034] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be described below in conjunction with the accompanying drawings. Obviously, the described embodiments are some embodiments of the present invention, but not all embodiments.

[0035] Real-time blood flow simulation is one of the practical applications of fluid simulation in the medical field, typically used in surgical procedure simulation and preoperative surgical planning. Real-time blood flow simulation first requires mathematical modeling of the blood fluid, then applying dynamics and constraints to the blood to calculate the positional changes of the blood within the vessels, thereby obtaining the simulation results.

[0036] Currently, real-time blood flow simulation typically includes blood flow simulation methods based on computational fluid dynamics (CFD), blood flow simulation methods based on smooth particle hydrodynamics (SPH), blood flow simulation methods based on position based dynamics (PBD), blood flow simulation methods based on meshes, and blood flow simulation methods based on artificial intelligence (AI).

[0037] A CFD-based method for simulating blood flow. This method models blood as a cluster of particles, models the behavior of these particles based on the Navier-Stokes equations of computational fluid dynamics, and solves for the positions of the blood particles. While the mathematical model used in this method is complex and computationally intensive, the results are more accurate. Therefore, it is often used in preoperative numerical analysis and surgical planning where high simulation accuracy is required, to facilitate the formulation of surgical plans and the selection of surgical instruments.

[0038] A blood flow simulation method based on SPH (Smooth Particle Hydrodynamics) is proposed. Similar to the first method, this method also models blood as particles. Based on integral interpolation theory, it approximates the values ​​and derivatives of continuous field quantities through discrete sampling points (particles). These particles themselves carry certain field quantities, which are obtained by weighted averaging from the values ​​of neighboring particles. This method essentially uses smooth particle hydrodynamics to solve the Navier-Stokes (NS) equations numerically, involving multiple steps such as neighborhood particle search, density calculation, and pressure calculation. This method is a Lagrangian simulation approach.

[0039] A PBD-based method for simulating blood flow is proposed. This method uses the Navier-Stokes equations for numerical solution within a position dynamics-based computational framework. Its steps include numerical integration based on external forces, neighborhood particle search, density constraints, and Jacobi iteration. Depending on the application scenario, this method can be applied to offline fluid numerical analysis simulations or to real-time coupled interactive motion simulations with other rigid objects. This method is a Lagrangian simulation approach.

[0040] A grid-based method for simulating blood flow. This method subdivides the space containing blood into equal-sized spatial grids, and blood fluid particles move between these grids. Unlike the methods mentioned above, this method is an Eulerian simulation method, which calculates gradients for various properties of liquid particles (such as velocity and density) on the spatial grid, thereby enabling the liquid particles to flow and move at different grid locations.

[0041] AI-based blood flow simulation method. This method has become increasingly popular in recent years with the development of artificial intelligence technology. This method constructs a predictive model of fluid particle motion through deep learning on massive amounts of standard data, thereby predicting the motion state of fluid particles in the actual simulation process based on their current state.

[0042] CFD-based methods employ complex mathematical models and formulas, typically used in applications requiring high simulation realism, but they cannot meet real-time requirements. SPH-based methods, needing to locate particles within the fluid particle's neighborhood to calculate pressure information, usually require CPU multi-threading and GPU acceleration to achieve real-time performance. PBD-based methods offer stability and speed advantages in simulating open fluid environments, but due to the complex geometry of blood vessels and the high viscosity of blood, ensuring the sustainability of flow and maintaining the positional constraints of blood particles is difficult. Mesh-based blood flow simulation methods and AI-based methods also suffer from insufficient dynamics due to blood viscosity.

[0043] The method proposed in this embodiment fully utilizes the topological geometry of the mesh, determines the flow direction information on the blood vessel surface through simple interaction, and generates tree-like centerline information of the blood vessel, providing internal blood flow information, continuously providing power for blood flow, and ensuring that the blood flows in the correct direction. Rapid collision detection is performed by constructing a spatially segmented directed distance field to ensure that blood particles remain inside the blood vessel, guaranteeing the stability of the simulation process.

[0044] This embodiment provides a method for simulating real-time blood flow. See [link to relevant documentation]. Figure 1 The schematic flowchart shown is a method for simulating real-time blood flow, which includes the following steps:

[0045] Step S110: Obtain a three-dimensional vascular mesh model.

[0046] For example, it can be done in the following way:

[0047] The above-mentioned three-dimensional vascular mesh model is obtained by performing image segmentation and three-dimensional reconstruction based on CT and / or MR images of the patient's blood vessels.

[0048] It should be noted that the mesh of the above-mentioned three-dimensional vascular mesh model can be a triangular mesh or a rectangular mesh; among them, the three-dimensional vascular mesh model using a triangular mesh can contain more information and has the advantages of good geometric strength, strong resistance to gross errors, and high reliability.

[0049] Step S120: Determine the initial position plane and initial flow direction of the blood fluid particles.

[0050] The initial position plane is determined at any position at the end or middle of the blood vessel in the above three-dimensional blood vessel mesh model. The initial position plane is the initial position of the blood fluid particles. The initial flow direction is the direction of movement of the blood fluid particles in the initial position plane.

[0051] Optionally, in this embodiment, a first point is determined in the aforementioned three-dimensional vascular mesh model; based on the user-defined initial blood flow direction, a second point is determined near the first point, and the direction of the vector from the first point to the second point is the initial flow direction of the blood fluid particles; based on the first point and the vector, a plane containing the first point and with the vector as its normal is determined, and this plane is the initial position plane of the blood fluid particles. Thus, by constructing a direction vector and a three-dimensional plane, the initial flow direction and initial position information of the blood fluid particles are determined in the three-dimensional vascular network model.

[0052] Step S130: Starting from the initial position plane, search the mesh of the three-dimensional blood vessel mesh model along the initial flow direction. Determine the blood vessel centerline and the first flow direction of blood fluid particles on the blood vessel centerline and the second flow direction of blood fluid particles on the blood vessel surface based on the mesh adjacency relationship.

[0053] Starting from the initial position plane, the mesh of the 3D vascular mesh model is searched along the initial flow direction, and the searched meshes are marked. After completing the mesh search of the 3D vascular mesh model, the mesh adjacency relationship can be obtained. Based on the order of the mesh adjacency relationship, the vascular centerline and the first flow direction of blood fluid particles on the vascular centerline and the second flow direction of blood fluid particles on the vascular surface are determined.

[0054] This embodiment provides a method for obtaining blood flow direction information from the surface triangles and the center line of a blood vessel mesh model.

[0055] Step S140: Construct the directed distance field for spatial segmentation of the three-dimensional vascular mesh model.

[0056] In this embodiment, during the construction of the directed distance field, a higher sampling rate is used for subspaces with high geometric feature complexity in the 3D vascular mesh model, while a lower sampling rate is used for subspaces with low geometric feature complexity. The number of vertices and triangles in each tree node represents the geometric feature complexity of each node; the more vertices and triangles a tree node has, the higher its geometric feature complexity; conversely, the fewer vertices and triangles a tree node has, the lower its geometric feature complexity.

[0057] This embodiment proposes a method to generate a directed distance field sampling rate by constructing a spatial segmentation tree of a blood vessel model and determining the sampling rate based on the number of vertices and triangles of the subspace nodes.

[0058] For example, a spatial segmentation tree of a three-dimensional vascular mesh model is constructed, and the sampling rate of the directed distance field is determined based on the number of vertices and triangles of each tree node in the spatial segmentation tree; the number of vertices and triangles is positively correlated with the sampling rate; and the directed distance field of the spatial segmentation of the three-dimensional vascular mesh model is constructed based on the sampling rate of each tree node.

[0059] Optionally, this example provides a method for particle and blood vessel model collision detection using a oriented distance field. When particle and blood vessel model collisions are detected using the above collision detection method, if blood fluid particles are detected outside the 3D blood vessel mesh model, the positions of these blood fluid particles are repositioned onto the surface of the 3D blood vessel mesh model.

[0060] This embodiment proposes a method for collision detection between blood fluid particles and a 3D vascular mesh model using a spatially segmented directed distance field. This method is fast, ensuring real-time blood flow simulation, and directly obtains the distance between blood fluid particles and the vessel wall, thus limiting the movement of blood fluid particles within the 3D vascular mesh model. Furthermore, because this embodiment uses a method based on subspace model complexity to generate the directed distance field, different sampling rates are applied to different subspaces, maximizing the conservation of computer memory resources.

[0061] Step S150: Perform blood flow simulation based on position dynamics (PBD) and smooth particle hydrodynamics (SPH).

[0062] In this embodiment, a directional distance field is used to detect collisions between blood fluid particles and the mesh during the simulation process. Furthermore, the blood fluid particles are subjected to dynamic force using a first flow direction and a second flow direction when they are inside the blood vessel and flowing through the surface of the blood vessel, respectively.

[0063] This embodiment provides a method for applying additional dynamics to blood fluid particles by referencing information on the surface and centerline of a blood vessel model during fluid simulation to maintain the sustainability of blood flow.

[0064] Specifically, the direction information of blood flow is generated on the surface of the three-dimensional vascular mesh model. Combined with the center line of the blood vessel, it can provide continuous additional power for blood fluid particles to overcome the velocity loss caused by the viscosity of blood fluid particles and ensure the continuity of blood fluid particles flowing inside narrow blood vessels.

[0065] The real-time blood flow simulation method provided in this invention obtains a three-dimensional vascular mesh model to determine the first flow direction of blood fluid particles on the vascular centerline and the second flow direction of blood fluid particles on the vascular surface. By constructing a spatially segmented directed distance field of the three-dimensional vascular mesh model, blood flow simulation is performed based on position dynamics (PBD) and smooth particle hydrodynamics (SPH). Collision detection is performed between blood fluid particles and the mesh to detect whether any blood fluid particles appear outside the three-dimensional vascular mesh model, thereby repositioning the external blood fluid particles to avoid distortion of the simulation results. During the simulation, the first and second flow directions apply power to the blood fluid particles inside the vascular vessel and as they flow across the vascular surface, respectively, continuously providing power for the flow of blood fluid particles and ensuring that the blood fluid particles flow in the correct direction.

[0066] In one embodiment, this embodiment provides an implementation method for determining the blood vessel centerline and the first flow direction of blood fluid particles on the blood vessel centerline and the second flow direction of blood fluid particles on the blood vessel surface based on the grid adjacency relationship.

[0067] This embodiment provides a method for constructing a tree-structured vascular centerline by searching a set of triangles and separating annular bands layer by layer based on neighborhood information.

[0068] Optionally, in this embodiment, starting from the first grid set corresponding to the initial position plane, all adjacent grids are searched along the initial flow direction to form the second grid set. Starting from the second grid set, all adjacent grids not in the first grid set are searched to form the third grid set. This search is repeated layer by layer until the end of the three-dimensional vascular mesh model to obtain all grid sets. The geometric centroids of each grid set are connected in ascending order according to the corresponding grid set number to obtain the vascular centerline. The connection direction of the geometric centroids in ascending order according to the corresponding grid set number is the first flow direction of blood fluid particles on the vascular centerline.

[0069] Specifically, this embodiment provides a method for generating blood flow direction information on the surface of a vascular mesh by searching the neighborhood of a set of triangles layer by layer. The first mesh set is a layer of meshes that intersects with the initial position plane. Starting from the first mesh set, the meshes are searched layer by layer along the initial flow direction to obtain the complete mesh set. In this embodiment, the geometric centroid is determined by calculation using existing mathematical methods, which will not be elaborated here.

[0070] Optionally, after obtaining all the mesh sets, the above mesh sets S are... t Each can be decomposed into n unconnected annular bands X. t1 ~X tn, where t is the index of the grid set, and n is the index of each annular zone in the same grid set; the geometric centroids of two adjacent annular zones are connected in ascending order according to the index t of the corresponding grid set to obtain the blood vessel centerline; the connection direction of two adjacent geometric centroids in ascending order according to the index of the corresponding grid set is the first flow direction of blood fluid particles on the blood vessel centerline.

[0071] Specifically, this embodiment provides a method for separating triangular annular bands on a set of triangles obtained through layer-by-layer search and calculating the geometric centroids of each band to obtain the vertices on the blood vessel centerline. The aforementioned mesh set is divided into multiple non-connected annular bands due to the branching of blood vessels. The first flow direction of blood fluid particles on the blood vessel centerline is determined based on the connection direction of the geometric centroids in the annular bands.

[0072] Optionally, the second flow direction of blood fluid particles on the blood vessel surface is determined according to the ascending order of the grid set index; or, the second flow direction of blood fluid particles on the blood vessel surface is determined by taking two adjacent annular bands according to the ascending order of the corresponding grid set index t. The second flow direction is coplanar with the first flow direction at the corresponding position.

[0073] For example, a planar bundle equation is established based on the first flow direction, and the intersection line with the surface of the three-dimensional vascular mesh model is obtained based on the planar bundle equation. The direction of the intersection line is determined according to the sequence of adjacent annular bands.

[0074] Optionally, the first flow direction of the blood fluid particles on the blood vessel centerline closest to the blood fluid particles is obtained; the direction in which the driving force is applied to the internal blood fluid particles of the three-dimensional blood vessel mesh model is determined as the first flow direction of the blood fluid particles on the blood vessel centerline closest to the blood fluid particles.

[0075] Thus, when two blood vessel centerlines appear in the same annular zone at the bifurcation position of the blood vessel model, the blood fluid particles in the same annular zone are prevented from incorrectly obtaining the first flow direction of the blood fluid particles on the blood vessel centerline, thereby ensuring that the blood fluid particles move in the correct direction.

[0076] This embodiment provides a specific implementation method for determining the blood vessel centerline and the first flow direction of blood fluid particles on the blood vessel centerline and the second flow direction of blood fluid particles on the blood vessel surface based on the grid adjacency relationship.

[0077] For example, a point A is selected at the initial position of the 3D vascular mesh model. Then, starting from point A, another point B is selected along the initial flow direction, resulting in vector AB. A 3D plane P1 can be constructed through point A with vector AB as the normal. This 3D plane P1 is the initial position plane. The intersection of this 3D plane P1 with the surface of the 3D vascular mesh model at point A yields a first mesh set S1, and the meshes in the first mesh set S1 are marked as visited. Starting from the first mesh set S1, all adjacent meshes along the initial direction to the first mesh set S1 are searched. These meshes form a second mesh set S2, and the meshes in the second mesh set S2 are marked as visited. Similarly, starting from mesh set S... t Starting from (t=2), find the grid set S. t Adjacent and unvisited grids constitute the grid set S. t+1 and the grid set S t+1 The visited meshes are marked, and this process is repeated until no new adjacent meshes are found, resulting in S1, S2...S... n There are a total of N mesh sets. During the generation of the mesh sets, for each generated mesh set S... t The grid is decomposed into n (n≥1) unconnected annular bands X. t1 ~X ti The position C of the geometric centroid of each annular zone is calculated. nk The subscript 'i' represents the index of the mesh set, while the subscript 'k' represents the index of the annular band. Adjacent geometric centroids are connected sequentially to form the vessel centerline, with the connection direction representing the first flow direction of blood fluid particles along the vessel centerline. For each annular band, each mesh forming that annular band is assigned an integer value 't'. The direction in which 't' increases represents the second flow direction of blood fluid particles on the vessel surface, and this direction is coplanar with the first flow direction of the blood fluid particles. This allows for the acquisition of blood flow direction information from the surface and the vessel centerline of the 3D vessel mesh model.

[0078] In one embodiment, this embodiment provides an implementation of blood flow simulation based on positional dynamics (PBD) and smooth particle hydrodynamics (SPH).

[0079] Optionally, based on the initial blood flow rate, blood fluid particles are placed at an initial position plane at a speed of N particles per second; the initial force on the blood fluid particles located at the initial position plane is determined, wherein the initial force satisfies the driving force required for the flow of the blood fluid particles, and the direction of the initial force is the same as the initial flow direction of the blood fluid particles. The initial force is typically determined based on empirical values ​​from existing technologies.

[0080] Optionally, the direction of applying force to the internal blood fluid particles of the 3D vascular mesh model is determined based on the first flow direction of blood fluid particles along the vessel centerline, and the direction of applying force to the internal blood fluid particles is the first flow direction of blood fluid particles along the vessel centerline; the direction of applying force to the surface blood fluid particles of the 3D vascular mesh model is determined based on the second flow direction of blood fluid particles on the vessel surface, and the direction of applying force to the surface blood fluid particles is the second flow direction of blood fluid particles on the vessel surface; the magnitude of the applied force to the blood fluid particles of the 3D vascular mesh model is determined based on PBD and SPH. Thus, during blood flow simulation, additional force is applied to the blood fluid particles by referring to information from the surface of the 3D vascular mesh model and the vessel centerline to maintain the sustainability of blood flow.

[0081] Optionally, during the blood flow simulation, a time step is set. At the beginning of each time step, a dynamic force is applied to the blood fluid particles. After the simulation of each time step ends, the three-dimensional coordinates of all blood fluid particles are obtained. In this way, by setting time steps and continuously correcting the dynamic force applied to the blood fluid particles, the blood fluid particles are ensured to move in the correct direction.

[0082] As a possible implementation method, such as Figure 2 The diagram shows a real-time blood flow simulation process. The above method includes the following steps: S202 obtaining a three-dimensional blood vessel mesh model, S204 mesh preprocessing, S206 determining the initial blood flow direction and velocity information, S208 constructing the blood vessel mesh centerline and flow direction information, S210 constructing a spatial style oriented distance field, S212 fluid simulation based on PBD, and S214 visualizing the simulation results.

[0083] Step 1: Obtain a 3D vascular mesh model

[0084] In this step, the patient's CT or MR images are first processed using techniques such as image segmentation and 3D reconstruction to obtain a 3D mesh model of the blood vessels. The image segmentation algorithm in this step employs a deep learning-based blood vessel segmentation model and a 3D reconstruction (Marching Cube, MC) mesh generation method.

[0085] Step 2: Mesh Preprocessing

[0086] In this step, the 3D vascular mesh model obtained in the first step needs to be processed. This processing includes four operations: surface smoothing, model simplification, repair of non-manifold edges, and cavity filling. Due to the limitations of CT and MRI image sampling rates, the model generated in the first step often has stepped defects, which are removed through surface smoothing. Additionally, the model generated in the first step typically has a large number of triangles and vertices, which increases the computational load of subsequent mesh-based simulation algorithms. Therefore, model simplification is needed to reduce the number of vertices and triangles to improve the execution speed and efficiency of subsequent algorithms. The subsequent steps in this embodiment are based on the correct topology of the vascular model; the presence of non-manifold edges will cause subsequent algorithms to fail, so non-manifold edges of the vascular system must be repaired before simulation. Finally, the subsequent simulation algorithm in this embodiment assumes that the vascular system is a closed tubular space, therefore, cavity filling operations are required.

[0087] The third step is to determine the initial blood flow direction and velocity.

[0088] In this step, such as Figure 3 The diagram shown illustrates the initial position plane and initial flow direction of blood fluid particles. By selecting point A at the root of the blood vessel with the mouse, and then immediately selecting point B near that point along the direction of blood flow, a three-dimensional plane P1 is constructed using point A and line segment AB. Figure 4 The diagram shown illustrates the acquisition of the first mesh set S1. The three-dimensional plane P1 performs intersection calculations on the blood vessels at point A to obtain a triangular band S1.

[0089] In this embodiment, blood fluid particles are used to model the fluid. During initialization, the initial position of the particles is placed on the three-dimensional plane P1, and the initial velocity of the blood fluid particles is kept consistent with the direction of vector AB.

[0090] The fourth step is to construct the vascular mesh centerline and flow direction information.

[0091] In this step, such as Figure 5 The diagram shown illustrates the acquisition of the complete mesh set of a 3D vascular mesh model. Starting with triangle set S1, it searches for all adjacent triangles in S1 and retains those triangles facing the front of the 3D plane P1. These triangles form triangle set S2. So far, this embodiment marks triangles belonging to triangle sets S1 and S2 as visited. Then, starting with triangle set S... t Starting from (t=2), find the triangle set S. t The set S of adjacent and unvisited triangles t+1 and set the triangles S t+1The triangles are marked as visited, and this process is repeated until no new set of adjacent triangles is found. Thus, we obtain S1, S2...S... N There are a total of N triangle sets. For each triangle set S... t Each triangle in the set of triangles is assigned an integer value t, and the direction in which the integer value t increases indicates the approximate direction of blood flow.

[0092] In the process of generating the triangle set, for each generated triangle set S t The set of triangles is decomposed into n (n≥1) disconnected triangular rings X. t1 ~X tn For each annular band, calculate the position C of the geometric centroid of all the vertices that make up it. ik The subscript 'i' represents the index of the triangle set, while the subscript 'k' represents the index of the ring of triangles. The centerline of the blood vessel is constructed based on a series of adjacency relationships of its center points.

[0093] like Figure 6 The diagram shown illustrates the acquisition of the vascular centerline. The triangles in triangle set S1 form a closed triangular annular band X. 11 Its geometric centroid is C. 11 Similarly, the C on the main blood vessel is obtained. 21 C m1 And C on the branch t1 and C t2 Since the triangle set obtained in this step has a sequential relationship during the generation process, and this sequential relationship is consistent with the direction of blood flow, these center lines form the tree-shaped center lines of the blood vessels, and each point on the line segment represents the direction of blood flow.

[0094] The fifth step is to construct a directed distance field for spatial segmentation.

[0095] In this step, blood fluid particles move within the blood vessel model. To ensure that the movement of these particles remains within the model, collision detection is performed between the particles and the model. Since fluid simulation is a computationally intensive application involving a large number of particles, the collision detection process needs to be as accurate and fast as possible.

[0096] This embodiment employs a spatially segmented directed distance field method for collision handling between blood fluid particles and the vascular mesh. The directed distance field collision detection method for the 3D model involves constructing a 3D array structure within the space containing the 3D model's bounding box. Each element in the array represents the shortest distance from that point to the surface of the 3D model. A positive value indicates the point is outside the model; a negative value indicates the point is inside the model; and a value of 0 indicates the point is at the model boundary. Therefore, by using the 3D coordinates of the blood fluid particles, their relative position to the vascular model can be quickly queried, ensuring that the blood fluid particles do not move outside the vascular area.

[0097] In the process of generating a directed distance field in a 3D space, a higher sampling rate generally preserves more details of the 3D model, but also requires more memory to represent the 3D data. If the blood vessel model has many details and a large span in 3D space, it may lead to excessive memory usage or even memory overflow. Conversely, to save memory for the directed distance field, the sampling rate needs to be reduced, which may result in the loss of some details in the 3D model and errors in collision detection results. To address these issues, this embodiment divides the 3D blood vessel model into several subspaces. A lower sampling rate is used for blood vessel models with simpler geometric features within a subspace, while a higher sampling rate is used for blood vessel models with richer details within a subspace.

[0098] Since the memory usage of the 3D data structure generated by the directed distance field is directly related to the sampling rate of the 3D space, this embodiment constructs a spatial segmentation tree for the 3D model of blood vessels to reduce memory consumption. The complexity of the internal model is estimated by calculating the number of vertices and triangles within each tree node. Higher sampling rates are used for tree nodes with higher complexity. This achieves the goal of preserving the geometric features of blood vessels as much as possible with a higher sampling rate while minimizing the memory consumption of the directed distance field.

[0099] Step 6: Perform fluid simulation based on PBD and SPH

[0100] In this step, at the start of fluid processing, this embodiment uniformly places blood fluid particles on the 3D plane P1 generated in the third step at a speed of N particles per second, and assigns them an initial force F. The direction of F is consistent with the normal vector direction of the 3D plane P1, pointing towards the branch blood vessels (blood flow direction). Then, the motion of the blood fluid particles is simulated using position-based PBD and SPH methods. During the simulation, the directed distance field generated in the fifth step is used to quickly perform collision detection on the blood fluid particles and the mesh, ensuring that the blood fluid particles move inside the blood vessels. In addition, this embodiment calculates the blood flow direction information on both the surface and centerline of the blood vessel model in the fourth step. Therefore, as Figure 7 The diagram illustrates the forces acting on blood fluid particles. Arrows on the blood fluid particles indicate the additional force applied to them at the beginning of each time step. The direction of this force is consistent with the direction of blood flow. Furthermore, at blood vessel branches, forces in different directions are applied to blood particles near different branches, aligned with the reference centerline. In this embodiment, an additional force F is applied to the blood fluid particles. e This drives blood fluid particles to move continuously in the correct direction of flow.

[0101] Step 7: Visualize the simulation results

[0102] In this step, a time step is set during the simulation. After the simulation of a time step is completed, the three-dimensional coordinates of all blood fluid particles can be obtained. Then, the simulation results can be rendered using a visualization algorithm to obtain the final visualized result.

[0103] It should be noted that the aforementioned blood fluid particles can be described as particles, blood particles, fluid particles, etc., which is understood by those skilled in the art.

[0104] Corresponding to the real-time blood flow simulation method provided in the above embodiments, this invention provides a real-time blood flow simulation system, such as... Figure 8 The diagram shows a real-time blood flow simulation system, which includes:

[0105] Acquisition module 802: Used to acquire a 3D vascular mesh model;

[0106] First determining module 804: used to determine the initial position plane and initial flow direction of blood fluid particles;

[0107] The second determining module 806 is used to search the mesh of the three-dimensional blood vessel mesh model along the initial flow direction starting from the initial position plane, and to determine the blood vessel centerline and the first flow direction of blood fluid particles on the blood vessel centerline and the second flow direction of blood fluid particles on the blood vessel surface according to the mesh adjacency relationship.

[0108] Module 808: Used to construct the directed distance field for spatial segmentation of the 3D vascular mesh model; during the construction of the directed distance field, the subspace with high geometric feature complexity in the 3D vascular mesh model adopts a higher sampling rate, while the subspace with low geometric feature complexity adopts a lower sampling rate.

[0109] Simulation module 810: used to simulate blood flow based on position dynamics (PBD) and smooth particle hydrodynamics (SPH); during the simulation, a directional distance field is used to detect collisions between blood fluid particles and the mesh; and, when blood fluid particles are inside the blood vessel and flowing through the surface of the blood vessel, the first flow direction and the second flow direction are used to apply dynamics to the blood fluid particles respectively.

[0110] The method of this embodiment will be further described below with reference to the accompanying drawings:

[0111] Figure 9 This is a rendering diagram of the three-dimensional blood vessel mesh model in this embodiment. Figure 10 This is a schematic diagram of the blood flow simulation rendering of the 3D blood vessel mesh model in this embodiment. Specifically, Figure 9 The image shows the effect of a 3D vascular mesh model without injected blood fluid particles. Blood fluid particles are injected from the initial plane on the right side of the model, and the real-time blood flow simulation method described in this embodiment is used for simulation. Figure 10 The simulation results show that blood fluid particles can flow along the main blood vessels to the branch blood vessels. The direction and effect of the blood fluid particle flow are realistic, and there is no situation where blood fluid particles fly out of the blood vessel model, which reflects the stability of the simulation. In addition, the frame rate is maintained at 60 frames per second during the simulation process, which reflects the efficiency of the simulation algorithm.

[0112] It should be noted that the real-time blood flow simulation method provided in this embodiment is also applicable to the simulation of fluid motion in other pipes with complex geometries, such as water pipeline simulation.

[0113] Of course, those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by computer-controlled devices. The program can be stored in a computer-readable storage medium. When the program is executed, it can include the processes of the above method embodiments. The storage medium can be a memory, a disk, an optical disk, etc.

[0114] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0115] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0116] While the present invention has been disclosed above, it is not limited thereto. Any person skilled in the art can make various modifications and alterations without departing from the spirit and scope of the invention; therefore, the scope of protection of the present invention should be determined by the scope defined in the claims.

Claims

1. A method of simulating real-time blood flow, characterized by, The method includes the following steps: Step S110: Obtain a three-dimensional vascular mesh model; Step S120: Determine the initial position plane and initial flow direction of the blood fluid particles; Step S130: Starting from the initial position plane, search the mesh of the three-dimensional blood vessel mesh model along the initial flow direction, and determine the blood vessel centerline and the first flow direction of blood fluid particles on the blood vessel centerline and the second flow direction of blood fluid particles on the blood vessel surface according to the mesh adjacency relationship. Step S140: Construct a directed distance field for spatial segmentation of the three-dimensional vascular mesh model; during the construction of the directed distance field, a high sampling rate is used for subspaces with high geometric feature complexity in the three-dimensional vascular mesh model, and a low sampling rate is used for subspaces with low geometric feature complexity. Step S150: Blood flow simulation is performed based on position dynamics (PBD) and smooth particle hydrodynamics (SPH); during the simulation, the directional distance field is used to detect collisions between the blood fluid particles and the mesh; and the blood fluid particles are subjected to dynamic force by the first flow direction and the second flow direction respectively when they flow inside the blood vessel and across the surface of the blood vessel. In step S130, the step of searching the mesh of the three-dimensional vascular mesh model along the initial flow direction with the initial position plane as the starting point, and determining the vascular centerline and the first flow direction of blood fluid particles on the vascular centerline, includes: Starting from the first grid set corresponding to the initial position plane, search all adjacent grids along the initial flow direction to obtain the second grid set. Starting from the second grid set, search all adjacent grids that are not in the first grid set to obtain the third grid set. Search layer by layer to the end of the three-dimensional blood vessel grid model to obtain the complete grid set. Each of the aforementioned mesh sets Each can be decomposed into n unconnected annular zones. ,in t The index of the grid set. n These are the sequence numbers of the annular zones within the same grid set; The geometric centroids of two adjacent annular zones are determined according to the sequence number of their corresponding grid sets. t Connecting them in ascending order yields the blood vessel centerline; the direction of blood flow particles along the blood vessel centerline is determined by the ascending order of the corresponding grid set numbers between two adjacent geometric centroids. In step 130, the second flow direction of the blood fluid particles on the surface of the blood vessel includes: The second flow direction of blood fluid particles on the blood vessel surface is determined according to the ascending order of the sequence numbers of the respective grid sets; or, adjacent annular bands are arranged according to the sequence numbers of their corresponding grid sets. t The second flow direction of blood fluid particles on the blood vessel surface is determined by the order from smallest to largest. The second flow direction is coplanar with the first flow direction at the corresponding position; In step 150, when the blood fluid particles flow through the centerline of the blood vessel and the surface of the blood vessel, the first flow direction and the second flow direction are used to apply power to the blood fluid particles, including: Based on the first flow direction of the blood fluid particles on the center line of the blood vessel, the direction of applying power to the internal blood fluid particles of the three-dimensional blood vessel mesh model is determined, and the direction of applying power to the internal blood fluid particles is the first flow direction of the blood fluid particles on the center line of the blood vessel. Based on the second flow direction of the blood fluid particles on the surface of the blood vessel, the direction in which the force is applied to the surface blood fluid particles of the three-dimensional blood vessel mesh model is determined, and the direction in which the force is applied to the blood fluid particles is the second flow direction of the blood fluid particles on the surface of the blood vessel. The magnitude of the force applied to the blood fluid particles of the three-dimensional vascular mesh model is determined based on the position dynamics (PBD) and the smooth particle hydrodynamics (SPH).

2. The method for simulating real-time blood flow according to claim 1, characterized in that, The directed distance field for spatial segmentation of the three-dimensional vascular mesh model includes: A spatial segmentation tree for the three-dimensional vascular mesh model is constructed, and the sampling rate of the directed distance field is determined based on the number of vertices and meshes in each node of the spatial segmentation tree; the number of vertices and meshes is positively correlated with the sampling rate. The directed distance field for spatial segmentation of the three-dimensional vascular mesh model is constructed based on the sampling rate of each tree node.

3. The method for simulating real-time blood flow according to claim 1, characterized in that, The determination of the initial position plane and initial flow direction of blood fluid particles includes: Determine the first point in the three-dimensional vascular mesh model; Based on the initial flow direction of blood set by the user, a second point is determined near the first point, and the direction of the vector from the first point to the second point is the initial flow direction of the blood fluid particles; Based on the first point and the vector, a plane containing the first point and with the vector as its normal is determined, and the plane is the initial position plane of the blood fluid particles.

4. The method for simulating real-time blood flow according to claim 1, characterized in that, The blood flow simulation based on positional dynamics (PBD) and smoothed particle hydrodynamics (SPH) includes: Based on the initial blood flow rate, the blood fluid particles are placed at the initial position plane at a rate of N particles per second; Determine the initial force of the blood fluid particles located on the initial position plane, the initial force satisfying the driving force required for the flow of the blood fluid particles, and the direction of the initial force being the same as the initial flow direction of the blood fluid particles.

5. The method for simulating real-time blood flow according to claim 1, characterized in that, Determining the direction in which the dynamic force is applied to the internal blood fluid particles of the three-dimensional vascular mesh model includes: Obtain the first flow direction of the blood fluid particle on the center line of the blood vessel that is closest to the blood fluid particle; The direction in which the driving force is applied to the internal blood fluid particles of the three-dimensional vascular mesh model is determined as the first flow direction of the blood fluid particles on the center line of the blood vessel that is closest to the blood fluid particles.

6. The method for simulating real-time blood flow according to claim 1, characterized in that, The blood flow simulation based on positional dynamics (PBD) and smoothed particle hydrodynamics (SPH) includes: In the process of the blood flow simulation, a time step is set for the simulation, and at the beginning of each time step, the power is applied to the blood fluid particles; After the simulation of the time step ends, the three-dimensional coordinates of all the blood fluid particles are obtained.

7. A real-time blood flow simulation system, characterized in that, For implementing the simulation method according to any one of claims 1-6, the simulation system comprises: Acquisition module: used to acquire 3D vascular mesh models; First determining module: used to determine the initial position plane and initial flow direction of blood fluid particles; The second determining module is used to search the mesh of the three-dimensional blood vessel mesh model along the initial flow direction starting from the initial position plane, and to determine the blood vessel centerline and the first flow direction of blood fluid particles on the blood vessel centerline and the second flow direction of blood fluid particles on the blood vessel surface according to the mesh adjacency relationship. Construction module: used to construct the directed distance field for spatial segmentation of the three-dimensional vascular mesh model; in the process of constructing the directed distance field, the subspace with high geometric feature complexity in the three-dimensional vascular mesh model adopts a high sampling rate, and the subspace with low geometric feature complexity adopts a low sampling rate; Simulation module: used to simulate blood flow based on position dynamics (PBD) and smooth particle hydrodynamics (SPH); during the simulation, the directional distance field is used to detect collisions between the blood fluid particles and the mesh; and the blood fluid particles are subjected to dynamic forces by the first flow direction and the second flow direction respectively when they flow inside the blood vessel and across the surface of the blood vessel.

Citation Information

Patent Citations

  • Method and device for simulating diffusion process of contrast agent

    CN104574503A

  • Grid collision detection method and device and electronic equipment

    CN117036642A