Abstract:
A process and an apparatus for measuring the biocurrent distribution call for initially assuming a number of multiple currents which is more than the number of isolated currents possibly existing in a living body and calculating the virtual magnetic field created by the assumed currents at actual measuring points. The estimated location and current vectors of said assumed currents are consecutively changed to decrease the difference between said virtual and actual magnetic fields so that the estimated location and current vectors of the assumed currents having the number corresponding to the true isolated currents substantially approximate the true values and the estimates of the other assumed currents approximate zero. This enables the biocurrent distribution to be exactly determined even when the number of isolated currents is not preliminarily known.

Description:
BACKGROUND OF THE INVENTION 
     The present invention relates to a process and an apparatus for measuring the biocurrent distribution and in particular to a process and an apparatus for indirectly determining the biocurrent distribution by measuring the biomagnetic field and estimating the distribution of the biocurrents which are sources of the magnetic field based upon the measured data. 
     Estimation of the biocurrent distribution from the measured values of the biomagnetic field is usually performed as follows: 
     Description will be made by way of a neuromagnetic measurement which is a typical biomagnetic field measurement. 
     The coordinate system is defined as shown in FIG. 1. It is assumed that a current represented as a vector q n  exists at a position r n  in the drawing. Such an isolated current vector can be assumed as far as the interface of the brain can be considered as a spherical surface in the field of neuromagnetic field measurement and this current vector will be referred to as a current dipole. A reference r m  in FIG. 1 denotes the coordinate of the measuring point. 
     If it is assumed that N current dipoles exist in the brain, the magnetic flux density vector B m  at point r m  can be expressed from Biot-Savart&#39;s law as follows: ##EQU1## 
     The magnetic field component which can be measured by a magnetometer is the component of B m  normal to the surface of the brain. The actual value measured at r m  is denoted as D m . 
     If the estimated location and current vectors of each dipole are expressed by superscripting a reference mark  , the virtual measured value  D m  which is calculated from the estimates is expressed as follows: ##EQU2## A cost function is herein defined as follows: ##EQU3## 
     Equation (3) shows the degree of matching between estimated data and actually measured data. 
     Optimum estimated values have heretofore been determined as  r l  , . . . ,  r N , . . . ,  q 1 , . . . ,  q N  which minimize the cost function defined by the equation (3). 
     It is found from the foregoing that the number N of the biomagnetic field sources, that is, the current dipoles should be known in order to carry out the conventional measuring method. In other words, the conventional method can be carried out only if the number of the current dipoles is known. 
     If N which is different from the number of actual current dipoles is preset and a solution of  r l , . . . ,  r N ,  q l , . . . ,  q N  which minimizes the cost function is determined, the solution would then show a distribution different from the actual biocurrent distribution. 
     SUMMARY OF THE INVENTION 
     It is an object of the present invention to provide a process and an apparatus for measuring the biocurrent distribution of a living body to obtain a solution exactly showing the biocurrent distribution even if the number of the magnetic field sources, that is, the exact number of the current dipoles in a living body to be measured is not known. 
     In order to accomplish the above-mentioned object, in accordance with the present invention, multiple currents larger in number than the numbers of the isolated currents which are expected to exist in a living body are assumed, and a virtual magnetic field created by each assumed current at an actually measured point is calculated. The estimated location and current vectors of the assumed currents are changed to reduce the difference between the virtual magnetic field and the actual magnetic field for determining the optimum estimates. In this case, the absolute values of the excess assumed current vectors are approximated to zero. 
     If multiple isolated currents, for example, current dipoles larger in number than the number of currents actually existing are assumed and the estimates ar changed so that the matching between the distribution of the magnetic field calculated from the assumed current dipoles and the distribution of the actually measured magnetic field is enhanced, an excessive degree of freedom would be introduced. Accordingly, there is the high possibility that a solution,, different from the actual current distribution will be obtained. In other words, it is presumed that the magnetic field formed at the measuring point may be substantially equal to the magnetic field formed by the current dipole assumed as a true current dipole (refer to equation (1)), if the current vector of the current dipole which is assumed to be located at a position closer to the measuring point than the position of the true current dipole is smaller than the true current dipole. 
     Hence, in accordance with the present invention, a fact is considered that the assumed current dipoles are more than the true current dipoles in magnitude by the number of the assumed current dipoles over the number of true current vectors of the assumed current dipoles if the assumed current dipoles are compared with the true current dipoles in only the magnitude or the energy (for example, magnetic field) which they give. 
     That is, when optimum values of the estimated locations and current vectors of the currents are determined so that the difference between the magnetic field calculated from the assumed currents and the actual magnetic field becomes smaller, the excessive degree of freedom of the optimum values is restricted by decreasing the magnitude of the current dipoles or the energy that they give so that the optimum values of the current vectors of the assumed currents which are an excess over the number of the true currents approximate to zero. 
     In accordance with the present invention, an excessive freedom degree of freedom is restricted by using the total sum or the total sum of the α-th power of the absolute values of the current vectors of the assumed current dipoles, or the total sum of the magnitudes of the magnetic fields, each formed solely by each assumed current dipole or the total sum of the α-th power of the magnitudes thereof. 
    
    
     BRIEF DESCRIPTION THE DRAWINGS 
     FIG. 1 a schematic view illustrating an embodiment of neuromagnetic field measuring of the present invention and the coordinate system used for estimation of ; and 
     FIGS. 2A and 2B are flow charts showing a process of simulated annealing of the present embodiment. 
    
    
     DESCRIPTION OF THE PREFERRED EMBODIMENTS 
     Embodiments of the present invention will be described with reference to a neuromagnetic field measurement. 
     The neuromagnetic field measurement is conducted by measuring the component of the magnetic field in a direction normal to the brain surface at measuring points around a head while moving a magnetic flux meter 10 from points, 12-1 to 12-M as shown in FIG. 1. A presumption of the space coordinates and current vectors of current dipoles in the brain which are sources generating magnetic fields can be conducted based upon the measured values obtained at measuring points around the head to accordance with the present invention as follows: 
     The number of the measuring points on the surface of the head is assumed to be M and the measuring points are numbered from 1 to M. The position of the m-th measuring point is represented by a vector at position r m . The measured value of the magnetic field at that point is represented as D m . 
     It is assumed that N current dipoles are contained in the brain. The present invention is applicable to a case in which an exact number of the dipoles are not known. The selected value N is for a time preset to be larger than the number of the dipoles which are expected to exist in the brain. 
     The estimated location and current vectors of the thus assumed current dipoles are represented by r n  and  q n , respectively wherein n=1, 2, . . . , N. The magnetic field  D m  (m=1, 2, . . . , M) which is created at the measuring points by the thus assumed current dipoles is determined by a calculation. That is,  D m  can be referred to as the measured value of a virtual magnetic field determined from the assumed current dipoles. If the surface of the head is approximated by a spherical surface and the center of the sphere is assumed as an origin of the coordinates,  D m  is calculated by an equation as follows: ##EQU4## 
     By an optimization operation which will be described in detail, the estimated location and current vectors of the assumed current dipoles are changed so that a minimum value which the cost function assumes is determined. Following equation is used as the cost function in the present embodiment. ##EQU5## 
     The first term of the right formula of equation (4) denotes matching between the distribution of the actually measured magnetic field and the distribution of the magnetic field created by the assumed current dipoles. If the respective distributions are represented by row vectors, G and  G, the first term can be represented as |G- G| 2  wherein ##EQU6## 
     On the other hand, the second term in equation (4) is assumed as the sum total of the magnetic fields, each created by an individual assumed current dipole. The detailed form of Es (q 1 , q2 . . . , q N ) is as follows: ##EQU7## The component g m   n  in a direction normal to the surface of the brain (the component vertical to the face of a detecting coil) of the magnetic field created at the m-th measuring point by the n-th current dipole is calculated by equation (7) for each position m=1, 2, . . . , M. The magnitude of the row vector g n  having respective components, that is, the norm |g n  | of the magnetic field created by the n-th current dipole is calculated. Specifically, the root of the sum of the square of the normal component of the magnetic field created by the n-th current dipole at each measuring point is calculated. The magnetic field |q n  | individually created by each current dipole is determined in such a manner and the sum total with respect to n assumed current dipoles is determined to provide Es in equation (5). 
     Es (q 1 , . . . ,  q N ) represented by equation (5) serves to suppress the excessive degree of freedom introduced by assuming that the dipoles are more in number than the number of actually contained dipoles. Although it is hard to logically and exactly verify this in case of a non-linear inverse problem like the estimation of the magnetic field source in the brain, which in an object of the present invention, the linear inverse problem can be mathematically verified. This verification is discussed in H. Haneishi et al. &#34;An analysis of cost function used in simulated annealing for CT image reconstruction&#34;, Applied Optics in Press. 
     &#34;w&#34; in equation (5) is a constant for weighting the first and second terms in the right expression of the equation (4). &#34;w&#34; is preset by preliminarily calculating Δ E as a trial so that the contribution is not biased to only one of the first and second terms in equation (4) when a change in the cost function ΔE is calculated for optimization operation which will be described hereafter. 
     Although equation (5) may be directly used as the term of Es in equation (4), it is more preferable to use a reformed equation as follows: ##EQU8## wherein an index of power α is a positive real number. 
     The role of α in equation (5&#39;) is as follows: 
     The true current distribution is estimated by assuming that the current dipoles are more in number than the number of the current dipoles which are expected to exist in the brain, in accordance with invention. Accordingly, there is the possibility that a plurality of current dipoles are estimated in substantially the same position. α in the equation (5&#39;) determines the nature of the solution obtained in such a case. A case in which two current dipoles u-th and v-th are estimated in substantially the same position, that is, a case in which  r u  ≈ r v  will now be exemplarily described. 
     (1) In case of 0 &lt;α&lt;1, either one of the current vectors q u  and q v  of the u-th and v-th current dipoles becomes very small. That is, | q u  |≈0 or | q v  |≈0. In other words, one current vector of a plurality of current vectors having interposed space coordinates approximates the current vector of a current dipole which inherently exists in that position and the magnitudes of the current vectors of the other current dipoles become substantially zero. 
     (2) In case or α&gt;1,  q u  ≈ q v . These values are about a half of the value of the current vector of the current dipole which inherently exists in position r u  ≈r v . 
     (3) In case of α=1, a value  q u  + q v  approximates a current vector value of the curren the dipole which exists in position r u  ≈r v . Which value a ratio | q u  | to | q v  | assumes cannot be predicted. 
     Briefly, it is preferable that α be other than 1, and 0 &lt;α&lt;1 is most preferable (for example, α=1/2). 
     An optimization operation which determines estimates  r n ,  q n  (n=1, . . . , N) for making minimum the cost function E (r 1 , . . . , r N  ;  q 1 , . . . ,  q N ) defined by equation (4), more specifically equation (5) or (5&#39;) will be described in detail. The cost function E is non-linear with respect to the variable and has a localized minimum value. Accordingly, it is impossible to determine a true minimum value (a global minimum value) by known non-linear optimization approaches. The present embodiment adopts a recently proposed simulated annealing method which can determine a global minimum value even in such a case. 
     This method will now be described with reference to FIGS. 2 A and B. 
     The above-mentioned N current dipoles are assumed and a proper value is preset as an initial value for each respective coordinate r n  (n=1, . . . , N) and current vector q n  (n=1, . . . , N) is preset as a variable X n  (n=1, 2 . . . , N) and the current vector q n  (n=1, 2, . . . , N) of each current dipole is preset as a variable X n  (n=N+1, N+2, . . . , 2N). The values of the cost function E which has been described in detail are calculated by using the actually measured and recorded values D m  (m=1, . . . , M) of the magnetic field (step 101). 
     Thereafter, the value of X n  is changed by a very small amount (this is referred to as trial). Whether or not the trial is accepted is determined with reference to a change ΔE which in the cost function E occurred as a result of the trial. The value of each X n  is gradually approximated to the true value. 
     Firstly, a sufficiently high parameter T is preset. The parameter T determines the probability that the change is accepted even if ΔE &gt;0, and is referred to as temperature. 
     ΔE is calculated by a trial calculation and T is preset so that exp (-ΔE/T) =0.8 to 0.9. The changes |Δ r| and |Δ q| in one trial are preset for variables r 1 , . . . ,  r N  and  q 1 ,  q 2 , . . . ,  q N  respectively. (step 102) 
     It is adequate that the value of |Δ r| be about 1 mm to 10 mm and the value of |{·q| be about 1/10 to 1/1000 of a predicted maximum value of | q|. 
     Then, respective initial values zero are preset for parameters N T , N 1 , N 2  for repeated control of the trial operation (step 103). 
     One variable X n  which will be an object of the trial is then chosen (step 106) to determine a change in vector ΔX n  (step 107). If the variable X n  is a coordinate, the following equations are used. ##EQU9## 
     If the variable X n  is a current vector, the following equations are used. ##EQU10## 
     The change in vector is determined by generating uniform random numbers θ and ψin the ranges of 0 ≦θ&lt;2πand 0 ≦ψπ, respectively. 
     The variable X n  is replaced with X n  +ΔX n  in step 108. In other words, a trial is executed. 
     In step 109, the difference ΔE between previous and subsequent cost functions E which give a change ΔX n  is calculated as follows: 
     
         ΔE =E(x.sub.1, . . . , x.sub.n +Δx.sub.n. . . , x.sub.2N) -E(x.sub.1, . . . , x.sub.n. . . , x.sub.2N)              (10) 
    
     If ΔE &lt;0, the change ΔX n  is then accepted in step 111. That is, calculation program is returned to step 106 for trial of next variable X n+1  via steps 112 and 105 while X n  +ΔX n  is taken as X n . If ΔE &gt;0, whether the change ΔX n  is accepted or refused is determined according to a probability P(ΔE) =exp (-ΔE/T) depending upon temperature as shown in steps 113, 114 and 116. If it is determined that the change is accepted, the calculation program returns to step 106 via steps 115 and 105 while taking X n  +ΔX n  as new X n . If the change is determined to be refused, X n  and the cost function E are returned to original values in step 117 and the program is returned to step 106 via steps 118 and 105. 
     Such a series of steps are executed for each variable, that is, for n =1 through 2N. This operation is repeated a total of N T   max  times. It is adequate that, for example, a value of about 100 to 400 is adequate as N T   max . 
     N 1  in step 112 of a flow chart of FIG. 2A denotes a number of changes accepted in such a direction that the cost function is decreased, N 2  in step 115 denotes the number of changes accepted in such a direction that the cost function is increased. N 3  in step 105 denotes the number of the refused changes. When it is found in step 105 that N T   max  trials are completed, the program proceeds to a step at which determination of whether or not the temperature T determining the probability of acceptance of change is lowered is performed. That is, it is determined based on a value of |N 1  -N 2  | whether or not the number N 1  of increases of the cost function of the accepted trials approximates the number of decreases of the cost function. If this value is not less than ε (for example, about 0.02), the program is returned to step 103 without changing the temperature and trials will be repeated N T   max  times. If the value of |N 1  -N 2  |/N is lower than ε, the program proceeds to step 120. By lowering the temperature T, the probability that the change to make ΔE &gt;0 is accepted is decreased and thereafter the program proceeds to step 103 and the trials are similarly repeated N T   max  times. 
     An approach to make T k  =ξT k-1 , as a k-th temperature step is adopted in the present embodiment to lower the temperature T in step 120. A value of about 0.9 through 0.95 is used as ξ at this time. Another approach to lower the temperature by T k  =T o  /(l+k) or T k  =T o  /log (e+k) is also proposed in a publication Vol. 122, p157, 1987 (H. Szu et al., &#34;Fast Simulated Annealing&#34;, Physics Letters A, Vol. 122, p157, 1987). 
     As N T   max  trials of changes of each variable and are repeated in some cycles while gradually lowering the temperature T, as mentioned above, each variable approximates an optimum value and the accepted change is gradually decreased. When it is determined that N 1  +N 2  =0, in step 118, that is, there is no accepted change of the tried changes, a variable which minimizes the cost function, that is, optimum location and current vectors of a current dipole are obtained. Therefore, the simulated annealing operation is ended. 
     Although the present embodiment has been described with reference to a case in which simulated annealing is used for an optimization operation, the present invention is not limited- to this case. The other algorithms which can determine a true minimum value from a function containing a localized minimum value, such as the Genetic Algorithm proposed by J. H. Holland can be used. 
     If areas at which dipoles exist are a priory known in advance, the priory information can be incorporated into the optimization operation as follows: 
     In this case, each estimate which minimizes E which is calculated by the following equation (11) in lieu of equation (4) is determined. ##EQU11## E L  is defined as follows: 
     1) If all  r 1 , . . . ,  r N  exist in preliminarily preset areas, EL(r 1 , . . . ,  r N ) =0 
     2) If any of  r 1 , . . . ,  r N  moves out of the preliminarily preset areas, E L  (r 1 , . . . ,  r N ) =Λ wherein is a value which is sufficiently high for the current temperature T 1  that is, such a value that exp (-Λ/T)≈0. By defining E L  in such a manner, the probability that a change by which each  r n  moves out of the preliminarily preset area is accepted is approximately zero. An estimate which minimizes ##EQU12## can be determined in preliminarily preset area. 
     Although a case has been described in which the second amount expressed by equation (5) or (5&#39;), that is, the magnetic field created by the assumed current dipole is used as the second term of equation (4) for restricting the degree of freedom, equation (5&#34;) of the total sum of absolute values of current vectors of the presumed current dipoles or equation (5&#39;&#34;) of the α-th power of the total sum may be used in lieu of equation (5) or (5&#39;). ##EQU13## In equation (5&#34;) and 5&#39;&#34;), the meaning of w and α are sames as those of equations (5) and (5&#39;). 
     Since terms of position vectors are included in equations (5) and (5&#34;), the degree of freedom is more restricted than in equations (5&#34;) and (5&#39;&#34;).