Boundary Element Method (BEM) is widely used in electrocardiographic (ECG) problem. Formulations of these problems based on mathematical and numerical approximations of the known source in heart and the volume conductor that can transfer voltages on the surface of the body. To analyze the electric potentials on body surface or epicardial surface, a set of discrete equations derived from a boundary integral equations need to be solved. Solving these equations means to get the potential distribution eventually. In the process of solving, transfer matrix of discrete equations has received considerable attention, how to get an appropriate transfer matrix is an important issue. This paper found that the direction of normal vector could affect the results when calculating the transfer matrix and presents a method analogous to Mesh Current Method to deal with this direction problem. Several simulations have been carried out to verify the accurate results with the correct direction of normal vector using new method within a torso model given simultaneous epicardial and body surface potential recordings.
Electrocardiographic problem, namely given the potential distribution at epicardial surface to calculate the distribution at body surface (Forward Problem), or vice versa (Inverse Problem), draws lots of attentions in biomedical area these years, as electrocardiography can be a powerful tool for diagnosis in clinic [
The boundary element method (BEM) is often an appropriate way to compute the transfer matrix, despite the different inner physical properties of the conductor medium when the medium is isotropic [
The transfer matrix plays an important role in both forward problem and inverse problem. In the calculation of the matrix, the direction of normal vector of the triangle segments should be paid attention to carefully. Some methods are designed to deal with this issue by the commercial programs. Take one method as an example, first, it finds a point that is definitely outside the mesh, and calculates the centers of the triangles. Then, it computes the distances between the centers of the triangles and the outer point which was found previously. After that, it finds the triangle closest to the point that is for sure outside the mesh based on the distances that have been calculated before. Next, the normal vector n ¯ of this triangle is computed out based on right hand’s rule according to index sequence of the three vertexes, and also the vector from the center of the nearest triangle to the outer point P ¯ o u t . If P ¯ o u t ⋅ n ¯ is negative, the order of the vertex index of each triangle would be adjusted to invert n ¯ . However, this approach lets mistakes occur sometimes, it can’t make all the directions turn into right in some cases, which results in incorrect potential distribution eventually.
Therefore, this paper presents a new method to figure out the correct triangle normal direction to get the accurate potential distribution on surface.
First, deriving the integral equations. The potential ϕ o at point O can be expressed as Equation (1) using Green’s second law, and the point O is assumed as an observation point which inside the volume but very close to surface,
ϕ o = − 1 4 π ∫ S H ϕ H r ¯ ⋅ n ¯ r 2 d S H − 1 4 π ∫ S H ∇ ϕ H ⋅ n ¯ r d S H + 1 4 π ∫ S B ϕ B r ¯ ⋅ n ¯ r 2 d S B . (1)
where S B is the body surface, S H is the epicardial surface. r is the distance that extends from the observer to elements of integration dS. ϕ B is the potential distribution on body surface, ϕ H is the potential distribution on epicardial surface. r ¯ is an unit vector in the direction of r. n ¯ is an outward pointing vector of unit magnitude normal to surface element dS.
So, two equations can be obtained from Equation (1) for observation positions located on body and epicardial surface, respectively,
− ϕ B + 1 4 π ∫ S B ϕ B r ¯ ⋅ n ¯ r 2 d S B − 1 4 π ∫ S H ϕ H r ¯ ⋅ n ¯ r 2 d S H − 1 4 π ∫ S H ∇ ϕ H ⋅ n ¯ r d S H = 0 , (2)
1 4 π ∫ S B ϕ B r ¯ ⋅ n ¯ r 2 d S B − ϕ H − 1 4 π ∫ S H ϕ H r ¯ ⋅ n ¯ r 2 d S H − 1 4 π ∫ S H ∇ ϕ H ⋅ n ¯ r d S H = 0 . (3)
To solve the Equation (2) and Equation (3) numerically, these equations should convert to simultaneous linear equations. Therefore, the surface S, consist of S B and S H , need to subdivide in small triangles, which means the integration area will be partitioned into triangle elements. And Equations (2) and Equation (3) can be simplified by the element of solid angle d Ω e f i which is subtended at an observation point of the i-th location on surface e by an area element on surface f:
d Ω e f i = r ¯ ⋅ n ¯ r 2 d S f . (4)
As it can be seen here, if the direction of n ¯ is wrong, the sign of r ¯ ⋅ n ¯ wouldn’t be correct, therefore, it will have influence on the solid angle, which means the result of potential distribution may not be right.
Substituting Equation (4) in Equation (2) and Equation (3), and calculating the surface solid angle integration approximately by discretized triangle solid angle summation as the way shown in Equation (5). The coefficients of the components of gradients term are noted in Equation (6).
1 4 π ∫ S Y ϕ Y d Ω X Y = ∑ 1 N Y P X Y Φ Y , (5)
1 4 π ∫ S Y ∇ ϕ Y ⋅ n ¯ r d S Y = ∑ 1 N Y G X Y Γ Y . (6)
The different rows of matrices P X Y and G X Y corresponds to different locations of the observer on surface X. As the theory showing, each of the P’s and G’s is a matrix of coefficients depending entirely on the geometry. In all cases the number of columns corresponds to the number of locations on the surface Y of integration [
Z B H = ( P B B − G B H G H H − 1 P H B ) − 1 ( G B H G H H − 1 P H H − P B H ) . (7)
As it has been shown in the theory, the direction of n ¯ is very important, the method of Barnard et al. requires the additional computation of the normal to the plane triangle to establish the correct sign. So the direction of n ¯ must be confirmed before any further calculation.
A new method is proposed to ensure the direction of n ¯ of each triangle element to be outward. The basic idea of this method comes from the application of Kirchhoff’s laws. There are two applications of Kirchhoff’s laws and Ohm’s law, the Branch Current method and the Mesh Current method. The Mesh Current method can solve a circuit with less variables and less equations by simply determine unknown currents of each mesh in a network. Like its name, mesh current, means a current that loops around the essential mesh. It encompasses all the component of the mesh. First, there are some loops need to be identified within the circuit. As can be seen in
In the theory of Mesh Current method, if all mesh currents are chosen in a same direction, either clockwise or counterclockwise, the direction of two mesh currents that go through the intersecting side of two meshes must be opposite. So, that kind of law can be used in determining the direction of n ¯ in turn. In other words, if applying the theory of Mesh Current method to determine the direction of n ¯ , some principles should be followed: the direction of n ¯ gives the direction of rotation according to the right-hand rule, the direction of rotation of each triangle element shows a direction of each side of the triangle. If two triangles have contrary direction on their common side, it means the directions of n ¯ of them are at the same side. This can be seen in
In that case, if the direction of n ¯ of a triangle could be determined, the direction of n ¯ of the neighborhood of this triangle also could be determined. Therefore, in this new method, it needs to figure out a reference normal vector (RNV) at first, then determine the others’ direction according to the direction of
the RNV. The triangle element of which n ¯ is ensured correct and is referred as reference triangle (RT). Check the n ¯ of triangle elements in the neighborhood, which share one of RT’s sides, and then check the neighborhood of these three triangles, and so on. Eventually, we can finish examination on all triangle elements of the model.
The result of simulation can be carried out when using the one auto-solid angle approximation [
The simple model this paper chooses to simulate has 602 epicardial points and 771 body surface points, with a cylinder-shaped heart, which is shown in
The simulation on simple model shows in
As it can be seen in
To verify the feasibility of the new method, a more genuine heart model is used for compares. The simulation results on comparatively complex model are shown in
potential distribution of body surface calculated by a commercial program and program of the new method are show in
The results shown in
The direction of the normal vector of discretized triangle element is quite
important for transfer matrix calculation in the electrocardiographic problem. It could be wrong sometimes if we do not deal with it appropriately. This paper presents a method analogous to mesh current method to judge the normal direction of triangles. Principle and process of this method are analyzed and explained in detail. The new method shows its accuracy in a simple and a more realistic heart shape model in the electrocardiographic problem. This method also has an inconvenient part, namely, an initial n ¯ of a triangle element needs to be determined first. Sometimes it should be checked manually if needed. What’s more, though the method does not require that either surface has any particular shape such as that of a sphere, it can’t work correctly when geometry is extremely complex. However, the new method this paper presented can deal with most situations with high accuracy.
Tang, C.C., Wu, J. and Chen, R.Q. (2018) A Method for Normal Direction Judge Applied in Electrocardiographic Problem. Journal of Biosciences and Medicines, 6, 1-8. https://doi.org/10.4236/jbm.2018.61001