Lung electrical impedance tomography reconstruction method based on adaptive space regularization

Through the lung electrical impedance imaging reconstruction method with adaptive spatial regularization, combined with the constraints of L1 and L2 norms, the balance between accuracy and real-time performance in lung electrical impedance tomography technology is achieved, and the important problems in the existing technology are solved. It solves the problem of difficulty in balancing accuracy and speed during the construction process, and improves the quality and speed of reconstructed images.

CN118537422APending Publication Date: 2024-08-23ZHEJIANG UNIV OF TECH
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410402583.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-03
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing lung electrical impedance tomography imaging technology is difficult to achieve both accuracy and real-time performance when reconstructing imaging. Although the iterative reconstruction algorithm improves imaging quality, multiple iterations increase the time cost, and the a priori penalty term may destroy the image during the iteration process. detail.

Method used

The lung electrical impedance imaging reconstruction method based on adaptive spatial regularization is used to obtain the approximate value domain distribution through one-step solution, adaptively determine the shape edge threshold, and combine the spatial constraints of L1 and L2 norms to construct an objective function for few iterations to solve , to obtain the reconstruction results.

Benefits of technology

It achieves both accuracy and speed requirements in real-time lung monitoring, reduces the number of iterations, improves the quality of reconstructed images, retains real edge information, weakens background noise, and reduces reconstruction time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537422A
    Figure CN118537422A
Patent Text Reader

Abstract

The invention discloses a lung electrical impedance tomography reconstruction method based on self-adaptive spatial regularization, which comprises the following steps of: acquiring a thoracic cavity boundary measured voltage value, establishing a thoracic cavity finite element model, solving approximate real value domain distribution prior information through a one-step method, and adaptively judging a lung shape edge threshold according to approximate value domain distribution. According to the edge threshold value and the approximate value field distribution, a weighted variation value is obtained to carry out plane constraint of an L1 norm, weight information of background and foreground shapes is obtained to carry out longitudinal value field constraint of an L2 norm, in combination with space regularization constraint of the L1 norm and the L2 norm, an objective function is constructed, one-step or few-time iteration solving is carried out, and a reconstruction result is obtained. According to the method, more accurate constraint is applied according to the value domain distribution of an object during reconstruction, and certain accuracy and speed requirements can be met at the same time through few times of iterative solution.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of pulmonary electrical impedance tomography, and in particular to a pulmonary electrical impedance tomography reconstruction method based on adaptive spatial regularization. Background Art

[0002] Lungs are important organs of the human body. If they are not diagnosed and treated in time, diseases such as pulmonary air obstruction, emphysema, and pneumonia will affect human health and life safety. Different organs and tissues of the human body and when they are diseased, they have different impedance characteristics under the excitation of electric current. Electrical impedance tomography (EIT) technology inputs a safe excitation current to the object under test, and reconstructs the distribution of the object shape by measuring the voltage through electrodes. Pulmonary electrical impedance tomography can achieve non-destructive and real-time monitoring of human lung ventilation by reconstructing the shape of the lungs, and has great application prospects.

[0003] In the actual clinical needs of EIT systems, reconstructed imaging should have certain accuracy, real-time and noise resistance. However, in the current imaging reconstruction algorithms, real-time and imaging quality are often difficult to achieve at the same time. The one-step image reconstruction method can meet the real-time requirements, but the imaging quality needs to be improved. The reconstruction algorithm based on iteration can improve the imaging quality, but multiple iterations will increase the time cost. In addition, in the regularized iterative reconstruction based on the prior penalty term, the prior penalty term can guide the solution from an uncertain state to a relatively real stable state during the initial iteration, but as the iteration proceeds, it does not meet the real prior penalty constraints, and some details of the reconstructed image are damaged to a certain extent, thereby affecting the accuracy of the reconstruction. Therefore, by imposing more accurate regularization constraints and a small number of iterations, designing a reconstruction algorithm that can achieve accuracy and real-time performance is of great significance to the clinical application of EIT in real-time lung monitoring. Summary of the invention

[0004] The present invention provides a lung electrical impedance imaging reconstruction method based on adaptive spatial regularization. The method first obtains an approximate range distribution through a one-step solution, adaptively determines the edge threshold of the lung shape according to the approximate range distribution, obtains a weighted total variation value according to the edge threshold and the approximate range distribution, performs a plane constraint of the L1 norm, and obtains partial weight information of the background and foreground shapes, performs a longitudinal range constraint of the L2 norm, constructs an objective function based on the spatial constraints of the L1 and L2 norms, and performs a one-step or a few-times iterative solution to obtain a reconstruction result. The method applies more accurate constraints according to the range distribution of the shape itself during the reconstruction process, and solves through a few times of iteration, which can simultaneously meet certain accuracy and speed requirements.

[0005] The technical solution provided by the present invention is as follows:

[0006] A lung electrical impedance imaging reconstruction method based on adaptive spatial regularization comprises the following steps:

[0007] Step 1: Obtain voltage data measured by electrodes outside the human chest cavity under stimulation;

[0008] Step 2: Establish a finite element model of the chest shape to perform direct problem calculations;

[0009] Step 3: According to the voltage data obtained in step 1 and the finite element model in step 2, regularization based on total variation is adopted, and the prior information of the approximate true shape range distribution is obtained through Gauss-Newton one-step solution;

[0010] Step 4: Based on the obtained prior information of the approximate true shape value range distribution, adaptively determine the shape edge information and threshold to obtain edge threshold information;

[0011] Step 5: According to the prior information of the approximate true shape range distribution obtained in step 3 and the edge threshold information obtained in step 4, the total variation and weight information corresponding to the L1 norm, as well as the foreground shape and background part and weight information corresponding to the L2 norm are calculated, and the horizontal plane and vertical range of the reconstructed area are constrained respectively, and the spatial regularization constraint combining the horizontal plane and the vertical range is introduced to obtain the spatial regularization constraint information;

[0012] Step 6: Based on the spatial regularization constraint information in step 5, adaptively determine the weight coefficient ratio between the L1 norm constraint and the L2 norm constraint, construct the objective function according to the weight coefficient ratio and perform a one-step solution to obtain a new approximate true shape range distribution;

[0013] Step 7: Add 1 to the number of iterations iter in step 6. If the number of iterations after adding 1 is <= Iter thred , then return to step 4, otherwise the iteration ends, where It thred The threshold for the end of the iteration number can be 1 or a very small positive integer;

[0014] Step 8: After the iteration, the final solution is obtained and the reconstructed image is output according to the final solution.

[0015] The edge information determination in step 4 is specifically as follows:

[0016] (1) TV regularization matrix normalization

[0017]

[0018] Among them, L is the total variation regularization matrix, L ij is the element value corresponding to the i-th row and j-th column of the L matrix, L_ONE is the total variation regularized unit matrix after processing, L_ONE ijis the element value corresponding to the i-th row and j-th column of the L_ONE matrix;

[0019] (2) According to the approximate true distribution value Δρ init The variation information of the foreground image and the background is obtained by calculating the edge threshold T thred

[0020] T thred_id =Fun1(1(TV_mid de >γ1·TV_mid de_max ,;))

[0021] T thred =Mean(Δρ init (T thred_id ))

[0022] Among them, TV_mid de =|L_ONE·Δρ init | is the absolute value vector of the variation of adjacent elements of the finite element, TV_mid de_max for TV_mid de The maximum value of the vector element, γ1 is the ratio of the maximum value, which can be 2 / 3, TV_mid de >γ1·TV_mid de _ max is the larger variation judged, that is, the corresponding variation at the edge, L1(TV_mid de >γ1·TV_mid de _ max ,:) is the row in the L matrix corresponding to the adjacent elements at the edge. The Fun1(x) function can determine the position of the edge element in the solution vector according to the position of the non-zero elements in each row of the x matrix. thred_id , Δρ init (id) is the selected Δρ init The value at the vector id position, Mean() is the mean function, T thred is the average of the larger and smaller element values ​​corresponding to the edge, that is, the threshold for segmenting the foreground and background. The threshold is obtained based on the fact that the elements corresponding to the edge vary greatly.

[0023] The content of step 5 is as follows:

[0024] According to the approximate shape range information, calculate its variation information, normalize the variation information and calculate the weight of its variation matrix constraint through the inverse relationship, identify its background and foreground shape parts according to its approximate shape range information and edge threshold information, calculate the weight, and fine-tune the weight through the mean, standard deviation and other relationships corresponding to the foreground element values, and constrain the range of its L2 norm according to the fine-tuned weight and range. The specific formula steps are as follows:

[0025] (1) L1-norm weighted total variation transverse plane constraint

[0026] TV_con(TV de >γ2·TV de_max )=L·Δρ init (TV de >γ2·TV de_max )

[0027] TV_w_mid=((TV de -TV de_min ). / (TV de_max -TV de_min )). d

[0028] TV_w=1. / (TV_w_mid+b1)

[0029] Among them, TV de =|L·Δρ init |, TV de_min For TV de The minimum value of TV de_max For TV de The initial value of TV_con is the zero vector of n×1, n is the number of finite element decomposition elements, γ2 is the ratio of the maximum value, which can be 3 / 4, TV de >γ2·TV de_max To determine the variation position corresponding to the adjacent edge elements, TV_con finally retains the variation corresponding to the edge, and TV_w_mid is the normalized vector corresponding to the variation size, with a value range of [0,1], where (x). d To raise the elements of vector x to the power of d, d can be 3, TV_w is the constraint weight corresponding to the total variation matrix L, and b1 can be 0.001 to ensure that the upper limit of the weight is 1000;

[0030] The weight processing applies a larger weight to the part with smaller variation, i.e., the background and the inner part of the shape, to make it smoother, and applies a smaller weight to the part with larger variation, i.e., the edge, to prevent smoothing the edge, thereby retaining the shape contour;

[0031] (2) The range of the L2 norm is vertically weighted, and the range of the lung region is set to be negative;

[0032] Lung_w_mid i =(ρ i -T thred ) / (P min -T thred )+b2,i∈Lung_id

[0033]

[0034] back_w_mid i =(ρ i -T thred ) / (P max -T thred )+b3,i∈back_id

[0035]

[0036] Where Lung_id=(Δρ init <T thred ) represents the position of the element value corresponding to the lung area, back_id = (Δρ init >=T thred ) represents the position of the background area, ρ i Denotes Δρ init The value of the i-th element of min Denotes Δρ init The minimum value, P max Denotes Δρ init The maximum value of Lung_w_mid i Lung_w is the desired middle value of the weight corresponding to the lung element. i Represents the weight of the L2 norm constraint on the lungs, b2 can be 0.1, b3 can be 0.01, back_w_mid i is the middle value of the weight corresponding to the background element to be determined, back_w i Represents the weight of the background L2 norm constraint;

[0037] Std_lung=std(Δρ init (Lung_id)

[0038] Mean_lung=Mean(Δρ init (Lung_id)

[0039] Std_Mean_w=(|Mean_lung|-Std_lung) / Std_lung

[0040] Lung_w1 i =Lung_w i / (|Std_Mean_w|) d1 ,i∈Lung_id

[0041] Among them, std() is the standard deviation function, Mean is the mean function, Std_lung represents the standard deviation of the lung area element value, Mean_lung represents the mean of the lung area element value, Std_Mean_w represents the weight correction coefficient of the lung area, d1 can be 1, Lung_w1 i The weights corresponding to the modified lung area elements are represented, and the gradient or level of the area to be constructed is estimated by the standard deviation, etc., so as to fine-tune the weights;

[0042]

[0043]

[0044] Among them, Con_w i Represents the weight of the L2 norm constraint matrix, Con_init i Indicates the range correction value of the L2 norm constraint;

[0045] Get the edge variation TV_con and regularization weight TV_w of the horizontal plane of the L1 norm, and the weight Con_w of the constraint matrix of the vertical range of the L2 norm i And the range constraint base value Con_init i , forming spatial regularization constraint information.

[0046] This part of the weight processing imposes a larger weight constraint of 0 on the background area to remove background noise and solve the step effect caused by TV total variation. It imposes a fidelity constraint on the foreground shape to retain the true gradient information and prevent the shape value range from tending to be consistent. It imposes a smaller weight constraint on the edge to prevent inaccurate local edge constraints from damaging the reconstruction at the edge.

[0047] The content of step 6 is as follows:

[0048] (1) The adaptive determination of the weight coefficient ratio between the L1 norm and L2 norm constraints is as follows:

[0049] L2 norm The error is squared to make its value very small, so the weight coefficient of the L2 norm should be larger than that of the L1 norm; here, by calculating the size of the L1 and L2 norm errors, the ratio between the weights of the two is determined as follows:

[0050]

[0051] α2=γ4·1, α1=γ4·γ3·α2·A_w

[0052] Among them, ONE Con_w For Con_w iis a diagonal matrix of diagonal elements, γ3 is the weight ratio coefficient of the two constraints, which can make γ3 = 0.05, and γ4 is the iterative attenuation coefficient. As the number of iterations increases, the weights of the L1 and L2 constraints increase simultaneously.

[0053] (2) Construct the objective function based on L1 and L2 norm penalties and solve them as follows:

[0054]

[0055] Among them, J is the Jacobian matrix, α1 is the weight coefficient of the L1 norm constraint, α2 is the weight coefficient of the L2 norm constraint, L w =TV_w·L is the weighted L1 regularization matrix, TV_con is the variation corresponding to the preserved edge, ρ = Δρ init +Δρ, Δρ is the value to be evaluated in this iteration, Δρ rec is the result to be evaluated in this iteration;

[0056] Δρ rec =-[J T ·J+α1·L w T ·E.L. w +α2·ONE Con_w T ·ONE Con_w ] -1 ·[α1·L w T ·E·(L w Δρ init -

[0057] TV_con)+J T ·(J·Δρ init -y i )+α2·ONE Con_w T ·ONE Con_w ·(Δρ init -Con_init)]

[0058] Δρ init =Δρ init +Δρ rec

[0059] Among them, Δρ rec is Δρ init The updated value in this iteration, E is is a diagonal matrix with base n, where n is the number of rows of matrix L, beta is a positive constant, beta is 1×10 -4 , the updated Δρ init is the new approximate true shape range distribution.

[0060] Compared with the prior art, the present invention has the following advantages:

[0061] The method of the present invention adaptively determines the edge threshold information T of the lung shape thred , introduced into the reconstruction algorithm solution process, so that the reconstructed image has obvious edge information. By re-adjusting the weight coefficient TV_w of the regular term, the damage to the edge caused by the regular term constraint can be reduced, and a more realistic edge can be retained. By introducing a vertical range constraint on the background and adjusting the weight Con_w i , which can weaken the step effect caused by total variation regularization and reduce the background noise of the reconstructed shape edge, thereby improving the quality of the reconstructed image. This method solves the problem through a small number of iterations, usually 1 to 3 times. Compared with the common iterative methods in this field, it greatly reduces the number of iterations and improves the reconstruction speed. Therefore, this method can meet certain accuracy and speed requirements at the same time, which is of great significance to the clinical application of EIT in real-time lung monitoring. BRIEF DESCRIPTION OF THE DRAWINGS

[0062] Figure 1 It is a schematic diagram of the overall technical solution flow for the specific implementation of the present invention.

[0063] Figure 2 This is a hardware module diagram for obtaining boundary measurement voltage.

[0064] Figure 3 It is a flowchart of the reconstruction algorithm for solving the inverse problem.

[0065] Figure 4 is a discretized diagram of the finite element model of the lung shape.

[0066] Figure 5 It is the real graph of the constructed universal model and the reconstructed graph of the algorithm of the present invention.

[0067] Figure 6 Different reconstruction methods are Figure 5 Comparison of reconstruction error RE histograms of three models. DETAILED DESCRIPTION

[0068] The specific implementation modes of the present invention are described in detail below with reference to the accompanying drawings.

[0069] The overall implementation process of the present invention is as follows Figure 1 As shown, it involves the hardware part and the reconstruction algorithm part. The required hardware parts are as follows Figure 2 As shown, it includes a constant current excitation source, a multi-channel gate control module, a measuring electrode, a measured object, a multi-channel data acquisition module, and a communication transmission module. The boundary voltage sequence can be obtained through the hardware module.

[0070] The specific steps of the algorithm are as follows:

[0071] Step 1: Obtain voltage data measured by electrodes outside the human chest cavity under stimulation;

[0072] Step 2: Establish a finite element model of the chest shape to perform direct problem calculations;

[0073] Step 3: According to the measured voltage data obtained in step 1 and the finite element model in step 2, regularization based on total variation is adopted, and the prior information of the approximate true shape range distribution is obtained through Gauss-Newton one-step solution;

[0074] Step 4: Based on the obtained prior information of the approximate true shape value range distribution, adaptively determine the shape edge information and threshold to obtain edge threshold information;

[0075] Step 5: According to the prior information of the approximate true shape range distribution obtained in step 3 and the edge threshold information obtained in step 4, the total variation and weight information corresponding to the L1 norm, as well as the foreground shape and background part and weight information corresponding to the L2 norm are calculated, and the horizontal plane and vertical range of the reconstructed area are constrained respectively, and the spatial regularization constraint combining the horizontal plane and the vertical range is introduced to obtain the spatial regularization constraint information;

[0076] Step 6: Based on the spatial regularization constraint information in step 5, adaptively determine the weight coefficient ratio between the L1 norm constraint and the L2 norm constraint, construct the objective function according to the weight coefficient ratio and perform a one-step solution to obtain a new approximate true shape range distribution;

[0077] Step 7: Add 1 to the number of iterations iter in step 6. If the number of iterations after adding 1 is <= Iter thred , then return to step 4, otherwise the iteration ends, where It thred is the threshold for the number of iterations to end;

[0078] Step 8: After the iteration, the final solution is obtained and the reconstructed image is output according to the final solution.

[0079] The voltage measurement in step 1 adopts an adjacent drive model, and 208 measured voltage values ​​are collected in each group to obtain voltage data sequences of V1, V2, ..., Vn, where Vi represents the i-th group of measured voltage values.

[0080] The finite element model of the lungs in step 2 can discretize the real chest shape, or imitate the shape of the chest contour through a general shape, such as Figure 4 As shown, a two-dimensional finite element discrete model imitating the thorax is generated by the general two-dimensional model parameter 'e2t3' of the EIDORS software.

[0081] The specific contents of the reconstruction algorithm for the inverse problem are as follows Figure 3 As shown, it includes obtaining a priori approximation value in step 3, obtaining edge threshold value in step 4, obtaining spatial constraint information of L1 norm and L2 norm in step 5, and constructing and solving objective function in step 6;

[0082] The steps of reconstructing the image approximating the true shape in step 3 are as follows:

[0083] (1) The voltage V measured by the i-th frame to be reconstructed i The data is normalized by differential processing with the background reference frame (usually the end of exhalation) V0 to obtain the differential data y to be reconstructed i ,as follows:

[0084] y i =(V i -V0) / V0

[0085] (2) For the differential data y i The reconstruction is first initialized: Δρ i0 =[J; α 11 L] / [y i ; zeros], and then perform the total variation constrained Gauss-Newton one-step solution to obtain the update Δρ, as follows:

[0086]

[0087] Δρ0=-[J T ·J+α1·L T ·E0·L] -1 ·[α1·L·E0·L·Δρ i0 +J T ·(J·Δρ i0 -y i )]

[0088] Where ρ1 = Δρ i0 +Δρ0, L is the total variation regularization matrix, α 11 Can be 0.01, zeros is the zero vector, E0 is is a diagonal matrix with base n, where n is the number of rows in matrix L and beta is 1×10 -4 , let Δρ init =ρ1 is the approximate true distribution value.

[0089] The edge and threshold information in step 4 are as follows:

[0090] (1) TV regularization matrix normalization

[0091]

[0092] Among them, L_ONE is the TV regularized unit matrix after processing;

[0093] (2) According to the impedance distribution value Δρ init The variation information of the foreground image and the background is obtained by calculating the edge threshold T thred

[0094] TV_mid de =|L1·Δρ init |, TV_mid de_max =max(TV_mid de )

[0095] T thred_id = Fun1(L1(TV_mid de >γ1·TV_mid de_max ,;))

[0096] T thred =Mean(Δρ init (T thred_id ))

[0097] Among them, TV_mid de is the absolute value of the variation vector of the adjacent elements of the finite element model, TV_mid de_max for TV_mid de The maximum value of the vector element, γ1 is the ratio of the maximum value, which can be 2 / 3, TV_mid de >γ1·TV_mid de_max is the larger variation judged, that is, the corresponding variation at the edge, L1(TV_mid de >γ1·TV_mid de_max ,:) is the row in the L matrix corresponding to the adjacent elements at the edge. The Fun1(x) function determines the position of the edge element in the solution vector according to the position of the non-zero elements in each row of the x matrix. thred_id , Mean() is the mean function, T thred is the average of the larger and smaller element values ​​corresponding to the edge, that is, the threshold for segmenting the foreground and background. The threshold is obtained based on the fact that the elements corresponding to the edge vary greatly.

[0098] Here, according to the variation edge threshold, it is assumed that the corresponding value range of the lung area is negative, and the elements in the bones may produce large positive values. Therefore, when calculating TV_mid de Δρ can be removed before init The larger positive value in is assigned to zero to ensure the accuracy of edge thresholding. If the corresponding value range of the lung area is positive, the opposite is true.

[0099] The content of step 5 is as follows:

[0100] According to the approximate shape range information, calculate its variation information, normalize the variation information and calculate the weight of its variation matrix constraint through the inverse relationship, identify its background and foreground shape parts according to its approximate shape range information and edge threshold information, calculate the weight, and fine-tune the weight through the mean, standard deviation and other relationships corresponding to the foreground element values, and constrain the range of its L2 norm according to the fine-tuned weight and range. The specific formula steps are as follows:

[0101] (1) L1-norm weighted total variation transverse plane constraint

[0102] TV de =|L·Δρ init |, TV_con = 0 n×1

[0103] TV_con(TV de >γ2·TV de_max )=L·Δρ init (TV de >γ2·TV de_max )

[0104] TV_w_mid=((TV de -TVde_min). / TV de_max -TV de_min )). d

[0105] TV_w=1. / (TV_w_mid+0.001)

[0106] Among them, TV de_min For TV de The minimum value of TV de_max For TV de The initial value of TV_con is the zero vector of n×1, n is the number of finite element decomposition elements, γ2 is the ratio of the maximum value, which can be 3 / 4, TV de >γ2·TV de_max To determine the variation position corresponding to the adjacent edge elements, TV_con finally retains the variation corresponding to the edge, and TV_w_mid is the normalized vector corresponding to the variation size, with a value range of [0,1], where (x). d To raise the elements of vector x to the power of d, d can be 3, TV_w is the constraint weight corresponding to the total variation matrix L, and 0.001 ensures that the weight upper limit is 1000;

[0107] The weight processing applies a larger weight to the part with smaller variation, i.e., the background and the inner part of the shape, to make it smoother, and applies a smaller weight to the part with larger variation, i.e., the edge, to prevent smoothing the edge, thereby retaining the shape contour;

[0108] (2) Longitudinal weighted constraint on the range of the L2 norm (assuming the range of the lung region is negative)

[0109] Lung_id=Δρ init <T thred , back_id=Δρ init >=T thred

[0110] Lung_w_mid i =(ρ i -T thred ) / (P min -T thred )+0.1,i∈Lung_id

[0111]

[0112] back_w_mid i =(ρ i -T thred ) / (P max -T thred )+0.01,i∈back_id

[0113]

[0114] Among them, lung_id represents the position of the element value corresponding to the lung area, back_id represents the position of the background area, and ρ i Denotes Δρ init The i-th element value, P min Denotes Δρ init The minimum value, P max Denotes Δρ init The maximum value of Lung_w i represents the weight of the L2 norm constraint on the lungs, back_w i Represents the weight of the background L2 norm constraint;

[0115] In addition, for lung P max Can be Δρ init The maximum value after removing the larger interference point, and let the interference point pair use constraint weight equal to P after removing the interference max The weight corresponding to the value;

[0116] Std_lung=std(Δρ init (Lung_id)

[0117] Mean_lung=Mean(Δρ init (Lung_id)

[0118] Std_Mean_w=(|Mean_lung|-Std_lung) / Std_lung

[0119] Lung_w1 i =Lung_w i / Std_Mean_w,i∈Lung_id

[0120] Among them, std() is the standard deviation function, Mean is the mean function, Std_lung represents the standard deviation of the lung area element value, Mean_lung represents the mean of the lung area element value, Std_Mean_w represents the weight correction coefficient of the lung area, Lung_w1 i The weights corresponding to the modified lung area elements are represented, and the gradient or level of the area to be constructed is estimated by the standard deviation, etc., so as to fine-tune the weights;

[0121]

[0122]

[0123] Among them, Con_w i Represents the weight of the L2 norm constraint matrix, Con_init i Indicates the range correction value of the L2 norm constraint;

[0124] This part of the weight processing imposes a larger weight constraint of 0 on the background area to remove background noise and solve the step effect caused by TV total variation. It imposes a fidelity constraint on the foreground shape to retain the true gradient information and prevent the shape value range from tending to be consistent. It imposes a smaller weight constraint on the edge to prevent inaccurate local edge constraints from damaging the reconstruction at the edge.

[0125] The contents of the objective function construction and solution of step 6 and the adaptive selection of the weight coefficients of the L1 and L2 norm penalty terms are as follows:

[0126] (1) The adaptive determination of the weight coefficient ratio between the L1 norm and L2 norm constraints is as follows:

[0127] L2 norm The error is squared to make its value very small, so the weight coefficient of the L2 norm should be larger than that of the L1 norm; here, by calculating the size of the L1 and L2 norm errors, the ratio between the weights of the two is determined as follows:

[0128]

[0129] α2=γ4·1, α1=γ4·γ3·α2·A_w

[0130] Among them, ONE Con_w For Con_w i is a diagonal matrix of diagonal elements, γ3 is the weight ratio coefficient of the two constraints, which can make γ3 = 0.05, and γ4 is the iterative attenuation coefficient. As the number of iterations increases, the weights of the L1 and L2 constraints increase simultaneously.

[0131] (2) Construct the objective function based on L1 and L2 norm penalties and solve them as follows:

[0132]

[0133] Among them, J is the Jacobian matrix, α1 is the weight coefficient of the L1 norm constraint, α2 is the weight coefficient of the L2 norm constraint, L w =TV_w·L is the weighted L1 regularization matrix, TV_con is the variation corresponding to the preserved edge, ρ = Δρ init +Δρ, Δρ is the value to be evaluated in this iteration, Δρ rec is the result to be evaluated in this iteration;

[0134] Δρ rec =-[JT·J+α1·L w T ·E.L. w +α2·ONE Con_w T ·ONE Con_w ] -1 ·[α1·L w T ·E·(L w Δ ρinit -

[0135] TV_con)+J T ·(J·Δρ init -y i )+α2·ONE Con_w T ·ONE Con_w ·(Δρ init -Con_init)]

[0136] Δρ init =Δρ init +Δρ rec

[0137] Among them, Δρ rec is Δρ init The updated value in this iteration, E is is a diagonal matrix with base n, where n is the number of rows of matrix L, beta is a positive constant, beta is 1×10 -4, the updated Δρ init is the new approximate true shape range distribution.

[0138] Add 1 to the number of iterations iter. If the number of iterations after adding 1 is less than or equal to Iter, thred , then return to step 4, otherwise the iteration ends and the final solution is obtained.

[0139] According to the above reconstruction results, the value domain is projected to the element position corresponding to the finite element, and according to the correspondence between the element position and the pixel position, it is converted into a picture output to complete the image reconstruction of this frame, and the voltage measured in the next frame is differentially processed with the voltage measured in the reference frame, and reconstructed through the same steps as above, and the lung ventilation volume of the breathing process is reconstructed in turn.

[0140] Through the algorithm of the present invention, thred =2 iterations, three different model shapes on EIDORS, namely the gradient model, the mutation edge, and the lung shape, the model and the reconstruction results are shown in Figure 5 As shown in the figure, the reconstruction errors of different reconstruction methods on the three models are as follows Figure 6 As shown, it can be seen that the reconstruction error of the reconstruction algorithm of the present invention is very small, and good results are achieved in terms of the gradient of the graphics and the edge preservation.

[0141] It should be understood that the present invention is not limited to the contents disclosed in the embodiments and drawings, and any equivalents or modifications that do not deviate from the spirit disclosed in the present invention are within the scope of protection of the present invention.

Claims

1. A lung electrical impedance tomography reconstruction method based on adaptive spatial regularization, characterized in that: The following steps are involved: Step 1: Obtain voltage data measured by electrodes outside the human chest cavity under stimulation; Step 2: Establish a finite element model of the chest shape to perform direct problem calculations; Step 3: According to the voltage data obtained in step 1 and the finite element model in step 2, regularization based on total variation is adopted, and the prior information of the approximate true shape range distribution is obtained through Gauss-Newton one-step solution; Step 4: Based on the obtained prior information of the approximate true shape value range distribution, adaptively determine the shape edge information and threshold to obtain edge threshold information; Step 5: According to the prior information of the approximate true shape range distribution obtained in step 3 and the edge threshold information obtained in step 4, the total variation and weight information corresponding to the L1 norm, as well as the foreground shape and background part and weight information corresponding to the L2 norm are calculated, and the horizontal plane and vertical range of the reconstructed area are constrained respectively, and the spatial regularization constraint combining the horizontal plane and the vertical range is introduced to obtain the spatial regularization constraint information; Step 6: Based on the spatial regularization constraint information in step 5, adaptively determine the weight coefficient ratio between the L1 norm constraint and the L2 norm constraint, construct the objective function according to the weight coefficient ratio and perform a one-step solution to obtain a new approximate true shape range distribution; Step 7: Add 1 to the number of iterations iter in step 6. If the number of iterations after adding 1 is <= Iter thred , then return to step 4, otherwise the iteration ends, where It thred is the threshold for the number of iterations to end; Step 8: After the iteration, the final solution is obtained and the reconstructed image is output according to the final solution.

2. The method for lung electrical impedance imaging reconstruction based on adaptive spatial regularization according to claim 1, characterized in that: In step 4, based on the obtained prior information of the approximate true shape value range distribution, the shape edge information and threshold are adaptively determined to obtain edge threshold information, which specifically includes: (1) Total variation regularization matrix unitization processing; Among them, L is the total variation regularization matrix, L ij is the element value corresponding to the i-th row and j-th column of the L matrix, L_ONE is the total variation regularized unit matrix after processing, L_ONE ij is the element value corresponding to the i-th row and j-th column of the L_ONE matrix; (2) Based on the prior information Δρ of the approximate true shape range distribution init , find the edge threshold T between the foreground image and the background thred T thred_id =Fun1(L1(TV_mid de >γ1·TV_mid de_max ,:)) T thred =Mean(Δρ init (T thred_id )) Among them, TV_mid de =|L_ONE·Δρ init | is the absolute value vector of the variation of adjacent elements of the finite element, TV_mid de_max for TV_mid de The maximum value of the vector element, γ1 is the ratio of the maximum value, TB_mid de >γ1·TV_mid de_max is the corresponding strain difference at the edge, L1(TV_mid de >γ1·TV_mid de_max ,:) is the row in the L matrix corresponding to the adjacent elements at the edge. The Fun1(x) function determines the position of the edge element in the solution vector T according to the position of the non-zero elements in each row of the x matrix. thred_id , Δρ init (id) is the selected Δρ init The value at the vector id position, Mean() is the mean function, T thred is the edge threshold information.

3. The method for lung electrical impedance imaging reconstruction based on adaptive spatial regularization according to claim 1 is characterized in that : In step 5, according to the prior information of the approximate true shape range distribution obtained in step 3 and the edge threshold information obtained in step 4, the total variation and weight information corresponding to the L1 norm, as well as the foreground shape and background part and weight information corresponding to the L2 norm are calculated, and the horizontal plane and the vertical range of the reconstructed area are constrained respectively, and the spatial regularization constraint combining the horizontal plane and the vertical range is introduced to obtain the spatial regularization constraint information, which specifically includes: (1) L1-norm weighted total variation transverse plane constraint TV_con(TV de >γ2·TV de_max )=L·Dr init (TV de >γ2·TV de_max ) TV_w_mid=((TV de -TV de_min ). / (TV de_max -TV de_min )). d TV_w=1. / (TV_w_mid+b1) Among them, TV de =|L·Δρ init |, TV de_min For TV de The minimum value of TV de_max For TV de The maximum value of TV_con, the initial value is n×1 zero vector, n is the number of finite element mesh elements, γ2 is the ratio of the maximum value, TV de >γ2·TV de_max To determine the variation position corresponding to the adjacent edge elements, TV_con finally retains the variation corresponding to the edge, and TV_w_mid is the normalized vector corresponding to the variation size, with a value range of [0,1], where (x). d is to raise the elements of vector x to the power of d, TV_w is the constraint weight corresponding to the total variation matrix L, and b1 is the offset value; (2) The range of the L2 norm is vertically weighted, and the range of the lung region is set to be negative; Lung_w_mid i =(ρ i -T thred ) / (P min -T thred )+b2,i∈Lung_id back_w_mid i =(ρ i -T thred ) / (P max -T thred )+b3,i∈back_id Where Lung_id=(Δρ init <T thred ) represents the position of the element value corresponding to the lung area, back_id = (Δρ init >=T thred ) represents the position of the background area, ρ i Denotes Δρ init The value of the i-th element of min Denotes Δρ init The minimum value, P max Denotes Δρ init The maximum value of Lung_w_mid i Lung_w is the desired middle value of the weight corresponding to the lung element. i represents the weight of the L2 norm constraint on the lungs, b2 is the offset value, b3 is the offset value, back_w_mid i is the middle value of the weight corresponding to the background element to be determined, back_w i Represents the weight of the background L2 norm constraint; Std_lung=std(Δρ init (Lung_id)) Mean_lung=Mean(Δρ init (Lung_id)) Std_Mean_w=(|Mean_lung|-Std_lung) / Std_lung Lung_w1 i =Lung_w i / (|Std_Mean_w|) d1 ,i∈Lung_id Among them, std() is the standard deviation function, Mean is the mean function, |.| is the absolute value sign, Std_lung represents the standard deviation of the lung area element value, Mean_lung represents the mean of the lung area element value, Std_Mean_w represents the weight correction coefficient of the lung area, d1 can be 1, Lung_w1 i Represents the weight corresponding to the corrected lung area element; Among them, Con_w i Represents the weight of the L2 norm constraint matrix, Con_init i Represents the range constraint base value of the L2 norm constraint; Get the edge variation TV_con and regularization weight TV_w of the horizontal plane of the L1 norm, and the weight Con_w of the constraint matrix of the vertical range of the L2 norm i And the range constraint base value Con_init i , forming spatial regularization constraint information.

4. The method for lung electrical impedance imaging reconstruction based on adaptive spatial regularization according to claim 1 is characterized in that In step 6, based on the spatial regularization constraint information in step 5, the weight coefficient ratio between the L1 norm constraint and the L2 norm constraint is adaptively determined, and the objective function is constructed according to the weight coefficient ratio and solved in one step to obtain a new approximate true shape range distribution, which specifically includes: (1) The adaptive determination of the weight coefficient ratio between the L1 norm and L2 norm constraints is as follows: α2=γ4·1, α1=γ4·γ3·α2·A_w in, represents the L2 norm, ||.||1 represents the L1 norm, ONE Con_w For Con_w i is a diagonal matrix of diagonal elements, A_w is the ratio of the introduced L2 norm to the L1 norm term, γ3 is the weight proportional coefficient of the two constraints, and γ4 is the iterative attenuation coefficient; (2) Construct the objective function based on L1 and L2 norm penalties and solve them as follows: Where J is the Jacobian matrix, y i is the differential normalized data between the measured voltage of the i-th frame and the background frame, α1 is the weight coefficient of the constraint of the L1 norm, α2 is the weight coefficient of the constraint of the L2 norm, L w =TV_w·L is the weighted L1 regularization matrix, TV_con is the variation corresponding to the preserved edge, ρ = Δρ init +Δρ, Δρ is the value to be evaluated in this iteration; Dr. rec =-[J T ·J+α1·L w T ·E·L w +α2·ONE Con_w T ·ONE Con_w ] -1 ·[α1·L w T ·E·(L w Dr. init -TV_con)+J T ·(J·Dr init -y i )+α2·ONE Con_w T ·ONE Con_w ·(Dr. init -Con_init)] Dr. init =Dr. init +Dr rec Where [x] -1 To invert the matrix x, F T is the transpose of the matrix F, Δρ rec is Δρ init The updated value in this iteration, E is is a diagonal matrix with base L, where n is the number of rows of matrix L, beta is a positive constant, and the updated Δρ init is the new approximate true shape range distribution.

Citation Information

Cited By

  • Electrical impedance imaging method and imaging device for reconstructing lung gas spatial distribution

    CN115462774A

  • Electrical impedance imaging method and imaging device for reconstructing the spatial distribution of lung gas

    CN115462774B