Conductivity solution method, imaging method, and storage medium considering electrode anomalies
By solving the conductivity distribution matrix σ, the abnormal electrode data is processed, the imaging interference problem caused by poor electrode contact is solved, data compensation and real-time update are realized, and imaging quality is improved.
Patent Information
- Application Number
- CN202310219837.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-09
- Publication Date
- 2024-09-20
- Estimated Expiration
- 2043-03-09
AI Technical Summary
The prior art is difficult to use data that is abnormally disturbed by electrodes for effective imaging, especially when subjects are inconvenient during clinical monitoring, and cannot effectively deal with data interference caused by poor electrode contact.
By inputting the boundary voltage difference matrix, contact poor electrode sequence number, Jacobian matrix and total number of electrodes, we solve the conductivity distribution matrix σ, using the formula σ=(JTWJ+λQ)-1JTWz, combining the acquisition and conductivity distribution of Jacobian matrix normalization processing to realize compensation and real-time update of electrode abnormal data.
It realizes effective processing and data compensation for electrode abnormalities, improves imaging quality, and can update data in real time, and is suitable for chest impedance detection and other tissue impedance detection.
Smart Images

Figure CN116269303B
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of bioelectrical impedance imaging technology and application, and specifically relates to a conductivity solution method, an imaging method and a storage medium taking electrode abnormalities into consideration. Background Art
[0002] As a new detection technology, EIT has certain applications in the field of lung function imaging (such as literature: CN110087540B, CN105025786B, CN113012250B, etc.).
[0003] The imaging of EIT detection is to solve the conductivity distribution through multiple electrode excitation and collected voltage signals, and then perform EIT imaging.
[0004] However, in the actual detection process, when abnormal electrodes (falling off, poor contact, etc.) appear, they need to be adjusted or re-worn. But in clinical monitoring applications, some subjects may be physically inconvenient, so it is of great research significance to use partially disturbed data for imaging.
[0005] Searching for "EIT, abnormality" in the database, the following documents were retrieved:
[0006] Document 1: CN103040466A, which uses the original data collected by the electrical impedance imaging system to determine whether the electrode connection is abnormal or the contact is poor.
[0007] Document 2: CN105997072A, this method uses the original transmission impedance data collected by the imaging system over a period of time, and detects the contact state between the electrode and the skin through statistical analysis.
[0008] It is known from the above search that the research depth of the prior art still stays on determining whether the electrode connection is abnormal. However, when an abnormality occurs, how to use part of the disturbed data for imaging has not been studied yet. Summary of the invention
[0009] The purpose of the present invention is to solve the problems existing in the above-mentioned prior art and to provide a conductivity solution method, an imaging method and a storage medium taking into account electrode anomalies.
[0010] A conductivity solution method considering electrode anomalies comprises the following steps:
[0011] Step 1, input data: boundary voltage difference matrix z (a set of E×(E-3) data is obtained in the mode of adjacent excitation and adjacent acquisition), the number of the electrode with poor contact P (for P, it can be obtained by the method of document 2 of the background technology), Jacobian matrix J, and the total number of electrodes E;
[0012] Step 2, according to the data of step 1, solve the conductivity distribution matrix σ:
[0013] The conductivity distribution matrix σ is solved using the following formula:
[0014] σ=(J T WJ+λQ) -1 J T W
[0015] Among them, J T is the transposed matrix of matrix J;
[0016] Among them, λ is 2;
[0017] Where, Q = diag (J T J);diag is to construct a diagonal matrix, which is a regular command of Matlab;
[0018] Wherein, W is calculated as follows: W0 is a unit matrix with E×(E-3) rows and E×(E-3) columns, and the elements from the (P-1)×(E-3)+1th row to the P×(E-3th row) of W0 are normalized to 0 to obtain W;
[0019]
[0020] Furthermore, the method for obtaining the boundary voltage difference matrix z in Step 1 is:
[0021] At breathing time t1, the boundary voltage data matrix V1 at breathing time t1 is obtained by sequentially exciting the current signal-measuring the voltage signal;
[0022] At breathing time t2, the boundary voltage data matrix V2 at breathing time t2 is obtained by sequentially exciting the current signal and measuring the voltage signal;
[0023] The boundary voltage difference matrix z from t1 to t2 is obtained by differential processing:
[0024] z=V2-V1
[0025] V1, V2, and z are matrices with 1 row and E×(E-3) columns. Correspondingly, σ is also a matrix with 1 row and E×(E-3) columns.
[0026] Furthermore, for the boundary voltage data Vt at any time t, it is obtained by the following method:
[0027] There are E electrodes, which are numbered as follows: 1, 2, ..., E;
[0028] First, the excitation current signal: the AC sinusoidal current signal set by the system is first injected from the signal electrode No. 1, and then flows out from the electrode No. 2, forming a current in-and-out loop;
[0029] Then, measure the voltage signal: measure the amplitude of E-3 boundary voltage signals between electrodes No. 3 and No. 4, No. 4 and No. 5, ..., E-1 and No. E in sequence;
[0030] Replace the signal electrodes No. 2 to 3, No. 3 to 4... No. i to No. i+1... No. E-1 to No. E, No. E to No. 1 in turn for stimulation, and measure the voltage signal amplitudes between adjacent electrodes of all remaining electrodes in turn until all electrodes are measured, and obtain an E×(E-3) boundary voltage data matrix Vt under the breathing state.
[0031] Furthermore, the Jacobian matrix J (which is associated with the shape of the organ) is obtained by:
[0032] The Jacobian matrix J is solved by the EIT forward problem, which defines the relationship between the change in conductivity of the kth pixel and the change in the voltage value measured at the boundary:
[0033]
[0034] Among them, V i,j represents the boundary voltage value obtained by selecting the i-th pair of electrodes for excitation and the j-th pair of electrodes for measurement; σ k Represents the conductivity value of the kth grid, where k is set according to the density of the grid;
[0035] The Jacobian matrix J is related to the shape of the organ; it is solved by the EIT forward problem: Specifically, it can be directly obtained in the comsol simulation software:
[0036] Set the field shape (corresponding to the organ), the internal tissue of the field (corresponding to the tissue inside the organ), the field electrode position, and the excitation current (generally 1 mA) (after setting the above four, it can produce the boundary voltage value of the field and generate the conductivity of the field). The Comsol simulation software automatically derives the required Jacobian matrix (the intermediate partial differential solution is automatically calculated by the software).
[0037] An imaging method comprising the following steps:
[0038] First, the conductivity distribution matrix σ obtained by the above method is used to calculate the conductivity σ of any i-th column in the conductivity distribution matrix σ. i All are normalized:
[0039]
[0040] Among them, max(σ) and min(σ) are the maximum and minimum values in the conductivity distribution matrix σ;
[0041] Secondly, according to σ norm Conductivity distribution, displayed in different colors.
[0042] A storage medium stores a program capable of executing the above method.
[0043] The advantages of the technical solution of the present invention are mainly reflected in:
[0044] First, the present application proposes a data processing method (ie, a conductivity solution method taking into account electrode anomalies), the core of which is how to achieve compensation.
[0045] In view of the above problems, the implementation methods are given:
[0046] σ=(J T WJ+λQ) -1 J T W
[0047] Second, the method of the present application can handle abnormal electrode conditions; at the same time, since the measurement of z is real-time, data compensation can also be updated in real time.
[0048] Third, the method of the present application can not only be used to compensate for poor contact of chest impedance detection bandage electrodes, but can also be used to compensate for poor contact of other tissue impedance detection electrodes (which is reflected in the Jacobian matrix J). BRIEF DESCRIPTION OF THE DRAWINGS
[0049] The present invention will be further described in detail below in conjunction with the embodiments in the accompanying drawings, but this does not constitute any limitation to the present invention.
[0050] Figure 1 The figure is a flow chart of the development of the data processing method of the present invention.
[0051] Figure 2 This is the electrode distribution diagram of the lung model of the present invention (Comsol simulation software model diagram).
[0052] Figure 3 This is the imaging effect after adding noise to the second electrode of the present invention.
[0053] Figure 4 This is the imaging effect obtained after compensating the data using the MAP method of the present invention. DETAILED DESCRIPTION
[0054] The purpose, advantages and features of the present invention will be explained by the non-limiting description of the following preferred embodiments. These embodiments are only typical examples of the application of the technical solution of the present invention, and any technical solution formed by equivalent replacement or equivalent transformation falls within the scope of protection claimed by the present invention.
[0055] Embodiment 1: A data compensation method for poor electrode contact.
[0056] A simulation method for verifying the effectiveness of an abnormal electrode compensation algorithm based on maximum a posteriori estimation is developed as follows:
[0057] Step 1: The EIT forward problem is numerically solved by the finite element method (FEM), and the potential distribution in the medium is approximated using piecewise linear interpolation to obtain a linearized approximate formula.
[0058] <1.1. Derivation process of linear approximate formula>
[0059] The conductivity and potential in each unit can be approximated to the same value, and we get:
[0060] V=f(σ)=Y -1 I
[0061] Where V represents the surface voltage measurement vector, σ represents the conductivity distribution vector, I represents the current density vector, and Y represents the dielectric admittance matrix depending on σ.
[0062] It is known that the reference conductivity distribution vector is σ0, and the Taylor formula is used to expand it to obtain:
[0063]
[0064] Wherein, V0 represents the empty field voltage measurement vector.
[0065] remember Δσ=σ-σ0, simplifying to get:
[0066] ΔV=JΔσ+n
[0067] Where n represents the measurement noise vector, J i,j ,i=1,...,m,j=1,...,n is a linear mapping between conductivity and voltage measurement values, which is actually the Jacobian matrix, which is calculated by inputting the given voltage parameters in the comsol simulation software (the solution of the Jacobian matrix can be referred to reference 1: Wang Huan. Research on electrical impedance imaging method for robot flexible skin [D]. Nanjing University of Aeronautics and Astronautics. 2021; reference 2: CN112798654 A).
[0068] <1.2. Method of obtaining ΔV>
[0069] At breathing time t1, the boundary voltage data matrix V1 at breathing time t1 is obtained by excitation current signal-measurement voltage signal;
[0070] At breathing time t2, the boundary voltage data matrix V2 at breathing time t2 is obtained by excitation current signal-measurement voltage signal;
[0071] The boundary voltage difference matrix ΔV from t1 to t2 is obtained by differential processing:
[0072] ΔV=V2-V1
[0073] For the boundary voltage data Vt at any time t, it is obtained by the following method:
[0074] There are E electrodes, which are numbered as follows: 1, 2, ..., E;
[0075] First, the excitation current signal: the AC sinusoidal current signal set by the system is first injected from the signal electrode No. 1, and then flows out from the electrode No. 2, forming a current in-and-out loop;
[0076] Then, measure the voltage signal: measure the amplitude of E-3 boundary voltage signals between electrodes No. 3 and No. 4, No. 4 and No. 5, ..., E-1 and No. E in sequence;
[0077] Replace the signal electrodes No. 2 to 3, No. 3 to 4... No. i to No. i+1... No. E-1 to No. E, No. E to No. 1 in turn for stimulation, and measure the voltage signal amplitudes between adjacent electrodes of all remaining electrodes in turn until all electrodes are measured, and obtain an E×(E-3) boundary voltage data matrix Vt under the breathing state.
[0078] Step 2: When using the Maximum A Posteriori (MAP) method to solve the inverse problem with abnormal electrode compensation, the problem needs to be simplified first.
[0079] For the convenience of description, the linearized formula of the EIT positive problem is expressed as follows:
[0080] z=Jx+n
[0081] Where z represents the boundary voltage measurement vector:
[0082] z=ΔV
[0083] x represents the conductivity distribution vector, n represents the measurement noise vector, J i,j ,i=1,...,m,j=1,...,n is a linear mapping between conductivity and voltage measurement values, which is actually the Jacobian matrix, which can be calculated by entering the given parameters in the Comsol simulation software.
[0084] The probability density function of the EIT reconstruction value and the posterior probability density function when the distribution of conductivity changes is known are described.
[0085] In order to simplify the EIT image reconstruction algorithm, it is first necessary to describe the probability density function f(x) of the EIT reconstruction value and the posterior probability density function f(z|x) when the conductivity change distribution x is known.
[0086] The change of conductivity tends to be stable. It can be assumed that the statistical characteristics of x and n satisfy the mean of 0 and the covariance of R. x The Gaussian distribution is 0 and the covariance is R n Gaussian distribution, that is, x~N(0,R x ), n~N(0,R n ). Then f(x) and f(z|x) can be expressed as follows:
[0087]
[0088]
[0089] Where N is the number of elements in the finite element model, M is the number of measured voltage data, and the value of z-Jx is determined by the noise n.
[0090] Step three, estimate the conductivity change distribution that maximizes the posterior probability density function, that is, find a set of conductivity change distributions that are most likely to produce a distribution of potential change values.
[0091] The core idea of the MAP algorithm is to estimate the conductivity distribution x of the maximum a posteriori probability density function f(x|z), that is, to find a set of x distributions that are most likely to obtain measured values of z.
[0092] According to Bayes' theorem, we get:
[0093]
[0094] When the negative exponential term of the numerator is the smallest, f(x|z) reaches its maximum value. Then the problem can be expressed as the following relationship:
[0095]
[0096] Among them, σ represents the conductivity distribution matrix, and the derivative calculation of the extreme value can be obtained:
[0097] σ=(J T R n -1 J+R x -1 ) -1 JT R n -1 z
[0098] Among them, R n Represents the covariance matrix of the system noise. Since the channel consistency of the system is good, in order to simplify the calculation process, it can be assumed that each measurement channel has the same measurement noise standard deviation σ n , and are independent of each other, then:
[0099]
[0100] Where W represents the weight matrix. When there is abnormal electrode measurement data, it will introduce a large error to the image reconstruction result. At this time, it can be considered that the measurement value of this channel has an infinite standard deviation. n -1 Set the elements at the corresponding positions in 0.
[0101] Here, the determination of W is explained:
[0102] Assume that there are 16 electrodes arranged in sequence, and W0 is a unit matrix of 208×208; if P=1 (i.e., the first electrode is detached), the elements in the 1st to 13th rows are all reset to 0 (in fact, the diagonal elements in the 1st to 13th rows are reset to 0); if P=2 (i.e., the second electrode is detached), the elements in the 14th to 26th rows are all reset to 0; if P=i (i.e., the i-th electrode is detached), the elements in the (12i+1)-13ith rows are all reset to 0.
[0103] It is further explained that: mathematically speaking, when there are two or more electrodes that have fallen off, the solution of the present application can also be used for calculation, for example, P is 1, 2 (that is, the first and second electrodes are both fallen off); the elements of the 1st to 26th rows of W0 are all returned to 0, which can reflect the impact. However, the data imaging effect is not good at this time. Therefore, the solution of the present application still focuses on the situation where the number of electrodes that have fallen off is 1.
[0104] R x Represents the covariance matrix of the reconstructed values of each unit. Due to the small number of measurements, the resolution of EIT image reconstruction is low, so R x is considered as a spatial low-pass filter. Then R x -1 It can be replaced by the Gaussian high-pass filter matrix Q.
[0105] R x -1 It can be expressed as:
[0106] R x -1 =σ x -1Q
[0107] Among them, σ x is the standard deviation of the reconstructed value; Q can be expressed as:
[0108] Q = diag(J T J)
[0109] Let λ=σ n 2 / σ x 2 is the regularization parameter, and λ=2, then the image reconstruction algorithm based on MAP can be finally expressed as follows:
[0110] σ=(J T WJ+λQ) -1 J T W
[0111] After obtaining σ, the calculated conductivity distribution is used to reconstruct the image and normalize the conductivity.
[0112]
[0113] Finally, according to σ norm Conductivity distribution, displayed in different colors.
[0114] like Figures 2 to 4 The results of the implementation of the method of this application:
[0115] Step 1: The abnormal electrode data is obtained by adding Gaussian white noise to electrode 2 and taking the absolute value. The corresponding signal-to-noise ratio after adding noise is 2 dB. Then, the Tikhonov-NOSER combined regularization algorithm is used for image reconstruction. The results are as follows: Figure 3 As shown;
[0116] Step 2: Use the MAP algorithm to compensate for abnormal electrode data and estimate the conductivity distribution σ of the maximum posterior probability density function through the boundary voltage z:
[0117] σ=(J T WJ+λQ) -1 J T W
[0118] Conductivity normalized:
[0119]
[0120] Step 3: Finally, according to the conductivity distribution σ norm Image reconstruction is performed, and the result is as follows Figure 4As shown, the imaging quality is evaluated by ICC and RMSE. The imaging quality obtained before and after the electrode data compensation of the present invention is shown in Table 1. The ICC is improved and the RMSE is reduced. This shows that the MAP algorithm has a better compensation effect on the data compensation of electrode abnormalities and has a certain compensation effect.
[0121] Table 1
[0122]
[0123] Table 2
[0124]
[0125] The above embodiments are preferred implementation modes of the present invention and are only used to facilitate the description of the present invention. They are not intended to limit the present invention in any form. Any person with ordinary knowledge in the relevant technical field, if they do not depart from the scope of the technical features of the present invention, can make equivalent embodiments by partial changes or modifications to the technical contents disclosed in the present invention, and they still fall within the scope of the technical features of the present invention without departing from the technical features of the present invention.
Claims
1. A conductivity solution method considering electrode anomalies, characterized in that: The following steps are involved: Step 1, input data: boundary voltage difference matrix z, poor contact electrode number P, Jacobian matrix J, total number of electrodes E; Among them, the method for obtaining the boundary voltage difference matrix z is: At breathing time t1, the boundary voltage data matrix V1 at breathing time t1 is obtained by excitation current signal-measurement voltage signal; At breathing time t2, the boundary voltage data matrix V2 at breathing time t2 is obtained by excitation current signal-measurement voltage signal; The boundary voltage difference matrix z from t1 to t2 is obtained by differential processing: z = V2 - V1; Step 2, according to the data of step 1, solve the conductivity distribution matrix σ; the conductivity distribution matrix σ is solved by the following formula: σ=(J T W J+λQ) -1 ·J T ·In·with Among them, J T is the transposed matrix of matrix J; Among them, λ is 2; Where, Q = diag (J T J); The weight matrix W is calculated as follows: W0 is a unit matrix with E×(E-3) rows and E×(E-3) columns, and W is obtained by normalizing the elements from the (P-1)×(E-3)+1th row to the P×(E-3)th row of W0 to 0.
2. The conductivity solution method considering electrode anomalies according to claim 1 is characterized in that: For the boundary voltage data Vt at any time t, it is obtained by the following method: There are E electrodes, which are numbered as follows: 1, 2, ..., E; First, the excitation current signal: the AC sinusoidal current signal set by the system is first injected from the signal electrode No. 1, and then flows out from the electrode No. 2, forming a current in-and-out loop; Then, measure the voltage signal: measure the amplitude of E-3 boundary voltage signals between electrodes No. 3 and No. 4, No. 4 and No. 5, ..., E-1 and No. E in sequence; Replace the signal electrodes No. 2 to 3, No. 3 to 4... No. i to No. i+1... No. E-1 to No. E, No. E to No. 1 in turn for stimulation, and measure the voltage signal amplitudes between adjacent electrodes of all remaining electrodes in turn until all electrodes are measured, and obtain a E×(E-3) boundary voltage data matrix Vt under the breathing state, that is, use the adjacent excitation-adjacent measurement method to obtain Vt.
3. An imaging method, characterized in that: First, the conductivity distribution matrix σ obtained by the method according to claim 1 or 2 is used to calculate the conductivity σ of any i-th column in the conductivity distribution matrix σ. i All are normalized: Among them, max(σ) and min(σ) are the maximum and minimum values in the conductivity distribution matrix σ; Secondly, according to σ i-norm Conductivity distribution, displayed in different colors.
4. A storage medium, characterized in that: The device stores a program capable of executing the imaging method according to claim 3.
Citation Information
Cited By
Three-dimensional EIT imaging method, imaging system and storage medium
CN120953503A
A three-dimensional EIT imaging method, imaging system, and storage medium
CN120953503B
