Method and device for detecting moisture in plant organ, electronic equipment and medium
Through multi-echo image and T2 spectrum inversion technology, the problems of poor universality and insufficient accuracy of traditional moisture detection methods are solved, and the non-destructive and detailed detection of moisture inside plant organs is achieved, which improves the comprehensiveness and accuracy of the detection results. .
Patent Information
- Application Number
- CN202410911514.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-09
- Publication Date
- 2024-11-01
AI Technical Summary
Traditional plant organ moisture detection methods are poor in universality, inaccurate and comprehensive enough in the test results, and are prone to damage plant organs.
Using multi-echo image acquisition and T2 spectrum inversion methods, T2 and A2 spectrum are generated by voxel-by-point voxel point-by-point, and the LM weighting algorithm is set up in combination with heteroscedastic characteristics and detection background, to remove outliers and generate templates for key structures. Images to achieve lossless and accurate moisture detection.
It improves the universality and accuracy of moisture detection, and can obtain detailed distribution information of water inside plant organs under non-destructive conditions, enhancing the comprehensiveness and fine particle size of the detection results.
Smart Images

Figure CN118883607A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data detection technology, and in particular to a method, device, electronic equipment and medium for detecting moisture inside a plant organ. Background Art
[0002] Plant organs usually contain a large amount of water, which can better meet their growth and quality requirements. By testing the moisture content of plant organs, we can obtain the moisture content data of plant organs, which can provide important data basis for plant organ preservation and performance evaluation.
[0003] In the related technologies, on the one hand, the moisture content of plant organs can be determined by drying method, resistance method, spectroscopy method and microwave method. The above detection methods are prone to cause different degrees of damage to plant organs during the moisture detection process, and the detection effect is not ideal. On the other hand, non-destructive detection of the moisture content of plant organs can be achieved through hyperspectral images or Raman spectral images, but this detection method can only detect the local moisture content of plant organs, and the detection results are not accurate and comprehensive enough.
[0004] It can be seen that the traditional moisture detection methods have the problems of poor universality, insufficient accuracy and comprehensiveness of the detection results. Summary of the invention
[0005] The present invention provides a method, device, electronic equipment and medium for detecting water content inside plant organs, which are used to solve the defects of poor universality of traditional water content detection methods and insufficient accuracy and comprehensiveness of detection results.
[0006] In a first aspect, the present invention provides a method for detecting moisture inside a plant organ, the method comprising:
[0007] Acquire a multi-echo image corresponding to the plant organ to be detected;
[0008] According to the attenuation relationship between voxel points with the same two-dimensional coordinates in each layer sub-image of the multi-echo image, echo screening is performed on the voxel points in the multi-echo image to obtain an image to be detected after outliers are removed;
[0009] The T2 spectrum inversion is performed on the image to be detected in a voxel-by-voxel manner to generate a T2 spectrum and an A2 spectrum, and a water content detection result of the entire plant organ on a voxel-by-voxel scale is obtained.
[0010] According to the method for detecting water content in plant organs provided by the present invention, T2 spectrum inversion is performed on the image to be detected voxel by voxel to generate a T2 spectrum and an A2 spectrum, including:
[0011] Based on the heteroscedasticity characteristics and detection background, the initial value and weight factor in the LM weighting algorithm are set, and the weight factor and echo number selection algorithm based on the overall noise prior and individual T2 difference are constructed;
[0012] According to the weight factor and echo number selection algorithm, T2 spectrum inversion is performed on each voxel of the image to be detected to generate a T2 spectrum and an A2 spectrum.
[0013] According to the method for detecting moisture inside a plant organ provided by the present invention, the method further comprises:
[0014] generating a template image of each key structure inside the plant organ according to the multi-echo image;
[0015] An average moisture detection result of each of the key structures is generated according to the template image and the moisture detection result of the entire plant organ.
[0016] According to the method for detecting moisture inside a plant organ provided by the present invention, the method further comprises:
[0017] generating a template image of each key structure inside the plant organ according to the multi-echo image;
[0018] According to the template image, extracting average echo data of each key structure in the multi-echo image, wherein the average echo data is used to characterize average relaxation data of the key structure;
[0019] The echo data of each of the key structures is subjected to T2 spectrum inversion to obtain an average moisture detection result of each of the key structures.
[0020] According to the method for detecting moisture inside a plant organ provided by the present invention, generating a template image of each key structure inside the plant organ according to the multi-echo image includes:
[0021] extracting image feature points of each key structure from the multi-echo image;
[0022] Determine the contour information corresponding to each key structure according to the image feature points of each key structure;
[0023] Converting the image content except the key structure in the multi-echo image into an image background;
[0024] A template image of each key structure is generated according to the contour information and the image background.
[0025] According to the method for detecting water content inside plant organs provided by the present invention, performing T2 spectrum inversion on the average echo data of each of the key structures to obtain the average water content detection result of each of the key structures includes:
[0026] For each of the key structures, determining a component interval range of the key structure;
[0027] According to the component interval range, performing inversion iteration on the average echo data of the key structure;
[0028] When the local termination condition is met, the component interval range is updated according to a preset diffusion factor to obtain an updated component interval range;
[0029] According to the updated component interval range, performing inversion iteration on the average echo data of the key structure;
[0030] Until the iteration end condition is met, the average moisture detection result of the key structure is obtained.
[0031] According to the method for detecting water content inside a plant organ provided by the present invention, the diffusion factor includes an upper limit factor and a lower limit factor;
[0032] The updating of the component interval range according to the preset diffusion factor to obtain the updated component interval range includes:
[0033] Determining an upper limit correction value according to the upper limit factor and a preset correction coefficient;
[0034] Subtract the upper limit of the interval of the component interval from the upper limit correction value to obtain an updated interval upper limit;
[0035] Determining a lower limit correction value according to the lower limit factor and a preset correction coefficient;
[0036] Subtract the lower limit of the component interval from the lower limit correction value to obtain an updated lower limit of the interval;
[0037] The updated component interval range is obtained according to the updated interval upper limit and the updated interval lower limit.
[0038] In a second aspect, the present invention further provides a device for detecting moisture inside a plant organ, the device comprising:
[0039] An acquisition module, used for acquiring a multi-echo image corresponding to the plant organ to be detected;
[0040] An echo screening module, used for performing echo screening on voxel points in the multi-echo image according to the attenuation relationship between voxel points with the same two-dimensional coordinates in each layer sub-image of the multi-echo image, to obtain an image to be detected after removing outliers;
[0041] The voxel-by-voxel inversion module is used to perform T2 spectrum inversion on the image to be detected in a voxel-by-voxel manner, generate a T2 spectrum and an A2 spectrum, and obtain a water content detection result of the entire plant organ at a voxel-by-voxel scale.
[0042] In a third aspect, the present invention further provides an electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the program, the method for detecting internal moisture of a plant organ as described above is implemented.
[0043] In a fourth aspect, the present invention further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements any of the above-described methods for detecting internal moisture in plant organs.
[0044] The method, device, electronic device and medium for detecting water content in plant organs provided by the present invention can achieve non-destructive detection and be more universal because the water content detection result is mainly obtained by using the multi-echo image of the plant organ after a series of processing, without damaging the plant organ. At the same time, by performing echo screening on the voxel points in the multi-echo image, removing the outliers in the multi-echo image, and combining the method of performing T2 spectrum inversion on each voxel point, a more accurate, fine-grained and multi-dimensional inversion result can be obtained, so that the accuracy and comprehensiveness of the water content detection result are improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to more clearly illustrate the technical solutions in the present invention or the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0046] Figure 1 is a schematic flow chart of a method for detecting moisture inside a plant organ provided by an embodiment of the present invention;
[0047] Figure 2 This is a set of images collected by CPMG pulse sequence on the equatorial plane of winter jujube;
[0048] Figure 3 It is an image set consisting of all layer echo images corresponding to the tomato and multi-echo images of layers 1 to 20;
[0049] Figure 4 It is the quantitative map of the equatorial plane and the schematic diagram of data analysis corresponding to the winter jujube fruit in the white ripe stage;
[0050] Figure 5 It is a quantitative map of the equatorial plane and a schematic diagram of data analysis corresponding to winter jujube fruits in the crisp and ripe stage;
[0051] Figure 6 It is a data analysis diagram of the amplitude spectrum and relaxation time spectrum of Fortes tomatoes at the green ripe stage and the color change stage;
[0052] Figure 7 This is a schematic diagram of the data analysis of the amplitude spectrum and relaxation time spectrum of Fortes tomatoes at the ripe and fully ripe stages.
[0053] Figure 8 It is the echo image of a certain echo layer of cherry tomatoes;
[0054] Fig. 9 The template images corresponding to the exocarp, endocarp, septum, ovary tissue, seeds and placenta of the cherry tomato after segmentation;
[0055] Fig.10 is a schematic diagram of the structure of a plant organ internal moisture detection device provided by an embodiment of the present invention;
[0056] Fig.11 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0057] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be clearly and completely described below in conjunction with the drawings of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0058] This embodiment relates to the field of data detection, and can be specifically applied to the scene of detecting the water content inside plant organs. Plant organs are structures with certain functions composed of various tissues, including plant roots, stems, leaves, flowers, fruits, seeds, etc. For example, most of the common fruits and vegetables in life are plant organs.
[0059] Plant organs contain a large amount of water, which is a necessary condition for maintaining their growth and quality. The water binding state (including free water, semi-bound water and bound water) and water content in plant organs are important parameter standards for measuring the quality of plant organs. During the maturation, storage, and processing of plant organs, the water binding state and water content of various structures within the tissue undergo uniform and differential changes due to membrane damage and the redistribution of intracellular and extracellular water. By testing the moisture content of plant organs, its quality traits such as maturity and freshness can be determined, and its commodity characteristics and practical value can also be measured, which can provide effective data basis for timely harvesting, storage and preservation, cold chain transportation and sales.
[0060] At present, traditional moisture detection methods usually include drying method, resistance method, spectroscopy method, microwave method, etc. The drying method requires the destruction of the sample and can only be used for random inspection. The resistance method realizes moisture detection through the relationship between moisture and current intensity. The spectroscopy method can obtain moisture content information by absorption and reflection of the vibration of hydrogen-containing groups. The microwave method uses the phenomenon that water molecules will produce polarization loss in the microwave field to attenuate the electric field intensity of the microwave, thereby realizing the determination of moisture content. Since the above methods need to place the samples to be tested in different measurement environments, they will cause different degrees of damage to the samples to be tested, making it difficult to achieve non-destructive testing, and have poor universality. Moreover, they only measure the water content and cannot analyze the water binding state.
[0061] In order to achieve non-destructive testing, the technology of using hyperspectral images or Raman spectral images to detect moisture has emerged. However, hyperspectral images cannot analyze the water binding state, and Raman spectral images only analyze the scattered light on the tissue surface, which cannot measure the internal moisture of plant organs.
[0062] It is not difficult to find that traditional moisture detection methods have the problems of poor universality and inaccurate and incomplete detection results.
[0063] Accordingly, the embodiments of the present invention provide solutions to the above problems. Figures 1 to 11 The detailed scheme of the method, device, electronic equipment and medium for detecting water content inside plant organs provided by the embodiments of the present invention is described.
[0064] Figure 1 It is a flow chart of a method for detecting moisture inside a plant organ provided by an embodiment of the present invention.
[0065] like Figure 1 As shown, the method for detecting moisture inside a plant organ provided by an embodiment of the present invention can be performed by a hardware device such as a computer, a server, an industrial computer, etc. having data receiving and sending and data processing functions. The method mainly includes the following steps:
[0066] Step 110: Acquire a multi-echo image corresponding to the plant organ to be detected.
[0067] It can be understood that the plant organs mentioned in this embodiment can be parts of the plant such as roots, stems, leaves, flowers, fruits, seeds, etc. In actual applications, the detection objects can be fruits or vegetables, etc.
[0068] In this embodiment, a multi-echo image, that is, a multi-echo nuclear magnetic resonance image, can be obtained by a low-field nuclear magnetic resonance imaging device. By connecting the execution body of the method in this embodiment to the nuclear magnetic resonance imaging device, the multi-echo image collected by the nuclear magnetic resonance imaging device is obtained.
[0069] In some embodiments, the process of acquiring a multi-echo image corresponding to a plant organ to be detected may specifically include:
[0070] First, multi-echo nuclear magnetic resonance images corresponding to key sections of plant organs are collected through the CPMG (pulse spin echo magnetic resonance) sequence.
[0071] In this embodiment, the plant organ can be placed in an image acquisition tube, and the device sequence parameters are set as follows:
[0072] Among them, the repetition time TR = 4000ms, the pixel echo chain length ETL = 64, the echo time TE = 30, 60, 90, 120...1920, the layer thickness is about 1.3cm, and the magnetization signal intensity SI of the equatorial layer of the plant organ at different echo times per voxel is obtained to generate a 256×256 pixel data set under 64 echoes to obtain the initial nuclear magnetic image.
[0073] Then, the multi-echo nuclear magnetic resonance image is subjected to layer-by-layer denoising to obtain a multi-echo image corresponding to the plant organ to be detected.
[0074] In practical applications, the denoising algorithm can be used to perform denoising operations on the initial nuclear magnetic resonance images layer by layer. The denoising algorithm can be implemented by using Gaussian low-pass filtering, bilateral filtering, kernel regression and other algorithms. Alternatively, denoising can be implemented by machine learning.
[0075] For example, a neural network model can be initially constructed, and a sample data set can be constructed using the initial nuclear magnetic image samples before filtering and the corresponding multi-echo image samples after filtering. The sample data set can be further divided into a training sample set, a verification sample set, and a test sample set. The image filtering capability of the neural network model is trained through the training sample set, and the trained filtering model is verified through the verification sample set. After the verification is passed, the filtering model is further tested through the test sample set, and finally a filtering model that can be applied to the actual image filtering scene is obtained. After that, the initial nuclear magnetic image is input into the filtering model to obtain the multi-echo image output by the filtering model.
[0076] This embodiment can reduce noise interference in the multi-echo image through filtering operation, thereby improving the accuracy of the moisture detection process.
[0077] Figure 2 An image set acquired by the CPMG pulse sequence on the equatorial plane of winter jujube is shown as an example, which involves multi-echo images corresponding to layers 1 to 8. Figure 3 The image set consisting of all echo images of layers corresponding to a tomato and multi-echo images of layers 1 to 20 is shown as an example, wherein: Figure 3Part a corresponds to the echo images of all layers, specifically the echo images of layers 1 to 61, part b corresponds to the echo images of layers 1 to 10, and part c corresponds to the echo images of layers 11 to 20.
[0078] Step 120: According to the attenuation relationship between voxel points with the same two-dimensional coordinates in each layer sub-image of the multi-echo image, echo screening is performed on the voxel points in the multi-echo image to obtain an image to be detected after outliers are removed.
[0079] It is understandable that, considering that some outliers caused by interference or noise in the multi-echo image may affect subsequent processing results, this embodiment removes these bad voxel points, which can achieve a further filtering effect.
[0080] Step 130: Perform T2 spectrum inversion on the image to be detected voxel by voxel, generate T2 spectrum and A2 spectrum, and obtain the moisture detection result of the whole plant organ at a voxel scale.
[0081] It is understandable that the interaction between water molecules in plant organs will cause the magnetic moment to couple with each other, causing the signal to attenuate. T2 can be used as an indicator of water activity, and a shorter T2 value generally indicates a lower proton degree of freedom.
[0082] This embodiment is based on the accurate expression of water by T2 relaxation, and uses multi-echo images to obtain sample T2 relaxation information under tissue spatial information, so as to quantitatively present the active state, content and distribution of water.
[0083] The present invention obtains multi-echo images of the mid-plane of plant organs, improves tissue representation by image filtering and echo screening preprocessing combined with data characteristics, and performs voxel-by-voxel T2 inversion using an inversion algorithm combined with spatial regularization and an inversion evaluation model to obtain voxel-by-voxel T2 and A2 maps of plant organs. The T2 map can quantitatively present the water activity state of the sample voxel by voxel, and the A2 map can quantitatively present the water content of the sample voxel by voxel.
[0084] At the same time, the present invention utilizes the strict quantification and spatial expression of the H proton (hydrogen proton) relaxation process of MRI, as well as the advantages of continuous and non-destructive observation without being affected by the appearance of the sample, to monitor the relaxation state of each pixel, express the active state and moisture content of the water inside the sample, and provide a new and effective method for the study of plant organ phenotypes.
[0085] In one embodiment, the T2 spectrum inversion is performed on the image to be detected voxel by voxel to generate a T2 spectrum and an A2 spectrum, which specifically includes:
[0086] Firstly, based on the heteroscedasticity characteristics and detection background, the initial value and weight factor in the LM weighting algorithm are set, and the weight factor and echo number selection algorithm based on the overall noise prior and individual T2 difference are constructed.
[0087] Then, the T2 spectrum is inverted for each voxel of the image to be detected according to the weight factor and echo number selection algorithm to generate the T2 spectrum and A2 spectrum.
[0088] This embodiment improves the evaluation function according to the data characteristics of the multi-echo image, and the specific contents are as follows:
[0089] The data characteristics of multi-echo images are that as the echo time TE increases, the disturbance of noise to the signal increases, and different T2s are disturbed by noise differently, resulting in heteroscedasticity of weighted images collected by multi-echo sequences. The effectiveness of echo data in model calculation is affected by the echo layer and T2 size. The overall performance is: as the echo time TE increases, the signal-to-noise ratio becomes lower and lower. Therefore, in the process of T2 spectrum inversion, the importance of each echo data in the multi-echo sequence is treated equally, resulting in distorted evaluation of relaxation model parameters.
[0090] Without considering the influence of noise, the effective measurement signal of each voxel point j at time t can be expressed by a transverse relaxation signal multi-exponential decay model (i.e., signal model) s jt Specifically, it can be expressed as follows:
[0091]
[0092] Where e is the total number of exponential components, A (n,j) and T2 (n,j) is the amplitude and relaxation time of each index component n in voxel point j, t is the echo time of weighted image acquisition, which is set according to the acquisition parameters of the multi-echo image, for example, it can be set to t=30ms, 60ms,...
[0093] This embodiment selects data layers and weights of each layer suitable for model evaluation according to the prior signal-to-noise ratio data of each layer and the T2 signal-to-noise ratio, which can reduce the interference of outliers caused by low signal-to-noise ratio on relaxation model parameter estimation to a certain extent.
[0094] The classical assumption of Gaussian noise boils down to minimizing the LS criterion, which is the squared difference between the signal fitted by the signal model and the measured data. For each voxel j, the estimated model F j , the relevant expressions are as follows:
[0095]
[0096]
[0097] In the formula, represents the square difference between the collected value (ie, the measured value) of the multi-echo signal under heteroscedasticity. In this embodiment, the evaluation model adopts the classical evaluation function and the least squares criterion. jt corresponds to a vector of N samples containing the attenuated signal at voxel j, y jt S is the attenuation signal collected at voxel point j (a vector with a length of N). jt It is based on jt (θ j ,t) The echo signal data of voxel point j calculated at time t. Parameters are the estimated amplitude and relaxation time parameters.
[0098] In the single exponential decay model, e = 1, θ j ={A(1,j),T2(1,j)};
[0099] Under the triple exponential decay model, e=3,θ j ={A(1,j),T2(1,j),.A(2,j),T2(2,j),A(3,j),T2(3,j)}.
[0100] N is the number of sampling points used in the evaluation process, that is, the length of the echo chain used for model estimation. n is the weight factor, which determines the weight of each echo sampling data in the fitting process. The best N is controlled by T2NR, and the best W n Controlled by signal-to-noise conditions.
[0101] R(θ) is the spatial regularization function, defining the adjacent voxel set V j , for example, a 3×3 voxel window, β p is θ j ={A(e, j), T2(e, j)}, the cumulative influence of the parameters, the range of P for single-exponential inversion is 1:2e, that is, 1:2, and the range of p for triple-exponential inversion is 1:2e, that is, 1:6.
[0102] In addition, according to the data characteristics of the multi-echo image, this embodiment adds an initial value estimation strategy to the traditional LM algorithm, and corrects the values that exceed the reasonable value range according to the prior information of the detection object, as follows:
[0103] Since the data points calculated in the process of performing T2 inversion voxel by voxel are huge, the Levenberg-Marquardt optimization algorithm with high speed and accuracy can better meet the real-time and accurate calculation requirements of this embodiment.
[0104] In order to solve the problem that the calculation accuracy depends on the initial value, according to the physical characteristics of the test object and prior experience, the initial value under the single exponential fitting is set as follows:
[0105] The initial value of voxel point j under the single exponential decay model is:
[0106]
[0107] Since the following relationship is satisfied:
[0108]
[0109] The estimated values are as follows:
[0110]
[0111] T2(1,j)=30 / ln(y j (t=30) / y j (t=60))(9)
[0112] That is, the first echo data y of each voxel point j is used j (t=30) as the initial amplitude value; the first echo data y of each voxel point is used j (t=30) and the second echo data y j The calculated result of (t=60) was taken as the initial value of the relaxation time.
[0113] Due to the influence of noise, logarithmic calculations may have large deviations in some cases. Therefore, a certain range of relaxation data can be used to correct the relaxation time according to the sample situation, such as 100-250 in the winter jujube experiment.
[0114] In practical applications, the derivation process of T2NR is as follows:
[0115] Taking a single index as an example, the signals S1 and S2 detected by the first echo and the nth echo are calculated respectively. n , the calculation formula is as follows:
[0116]
[0117] but:
[0118]
[0119] The noise in the acquisition environment causes T2 measurement error. The standard deviation of T2 measurement error is σ T2 It is an important parameter to characterize noise propagation. According to the basic error analysis principle, σ T2 It can be expressed as S1 and S n The functions are as follows:
[0120]
[0121] T2NR is defined as the mean and standard deviation of T2 measurements σ T2 The ratio of , can be deduced as follows:
[0122]
[0123] According to the existing analysis results of the noise conditions of each layer, the mapping relationship between σ and ΔTE is established, and the following is obtained:
[0124] σ1=2.3788
[0125] σ n =2.53313492·10 -5 ·ΔTE^2+0.0092·ΔTE+2.3788
[0126] Finally, the T2 signal-to-noise ratio is:
[0127]
[0128] Based on the above improvement scheme, this embodiment can design reasonable initial values and weight factors for the LM weighted algorithm based on heteroscedasticity characteristics and detection background, and construct a weight factor and echo number selection algorithm based on overall noise prior and individual T2 difference. The implementation process of the improved algorithm is as follows:
[0129] The first step is to calculate the initial value of the fitting iteration of each voxel using the above equations (8) and (9): And make corrections.
[0130] The second step is to 20 The maximum ΔTE that makes T2NR less than a certain value (for example, less than 0.016) during the attenuation process after reaching the peak value is obtained, and the optimal echo train length N for curve fitting of each voxel is obtained.
[0131] The third step is to obtain the signal standard deviation in the noise area of each layer of the image a priori and use it as the echo inversion weight factor W of each layer. N .
[0132] The fourth step is to get the function value based on the current parameters And find the weighted initial residual
[0133] Step 5: Calculate the weighted Jacobian matrix J w =JW N , according to the damping coefficient λ, the approximate weighted Hessian matrix H is obtained w =J w T ×J w+λI, and then obtain the iteration step size dp=inv(H w )×(J w T ×d(:)).
[0134] Step 6: Obtain by parameter iteration Update the parameters based on the weighted error and trust region method and the damping coefficient λ.
[0135] The seventh step is to iterate the calculation in sequence. When the absolute value of the difference between the regression coefficients of two adjacent steps is less than the set standard error ε, that is, Or the iteration reaches the maximum number of iterations and the iteration ends.
[0136] Figure 4 and Figure 5 The inversion results of winter jujube fruits in the white-ripe stage and the crisp-ripe stage after single-exponential T2 spectrum inversion in the above-mentioned voxel-by-voxel manner are respectively shown.
[0137] The development of jujube fruit can generally be divided into: young fruit stage, swelling stage, hard core stage and mature stage, and the mature stage includes white ripe stage and crisp ripe stage. In this embodiment, multi-echo nuclear magnetic resonance imaging is performed on the fruits of winter jujube in the white ripe stage and crisp ripe stage, and quantitative MRI processing is performed using the above-mentioned moisture detection method to obtain relaxation amplitude A2 spectrum and relaxation time T2 spectrum, which can intuitively observe the water content and water activity state of each voxel inside the fruit, and the inversion results are analyzed to obtain T2 average amplitude map and T2 histogram, showing the overall water activity content distribution and water activity distribution of the fruit.
[0138] The imaging clearly distinguished the physiological changes between different tissues and during the ripening process of the fruit. The lack of T2 signal in the seeds and endocarp in the middle of the fruit is due to the low H content and weak MRI signal in this part. The total amount of water in ripe red fruit increases, and the water with short relaxation time is located in the exocarp. In some areas of the mesocarp close to the endocarp and exocarp, T2 is short, less than about 120ms, indicating that the interaction between H at this location is enhanced, the content of bound water is high, and the fluidity is poor.
[0139] Comparison of the T2 average amplitude diagram and different T2 histograms in the two mature stages of winter jujube shows that T2 in the white-ripe stage is centered at 185ms, mainly concentrated around 100-250ms; T2 in the crisp-ripe stage is centered at 160ms, with the main area concentrated around 85-200ms.
[0140] By comparing the quantitative maps and data analysis of the white-ripe stage and the crisp-ripe stage, it can be seen that from the white-ripe stage to the crisp-ripe stage, the T2 time of the fruit becomes shorter overall, and the short T2 tissue signal increases significantly, indicating that as the fruit gradually matures, the water status of the tissue inside the fruit is constrained.
[0141] also, Figure 6 Also shown are the data analysis results of the amplitude spectrum and relaxation time spectrum of Fortes tomatoes at the green ripe stage and the color change stage. Figure 7 Also shown are the data analysis results of the amplitude spectra and relaxation time spectra of Fortes tomatoes at the ripe and fully ripe stages.
[0142] In one embodiment, the method for detecting moisture inside a plant organ provided by the embodiment of the present invention may further include:
[0143] Firstly, a template image of each key structure inside the plant organ is generated based on the multi-echo image.
[0144] It can be understood that the template image can characterize the structural contour and morphology of the key structure in the multi-echo image. In actual applications, the size of the template image is consistent with the size of the multi-echo image, and only the image content is different. The multi-echo image can display the cross-sectional morphology of the entire plant organ, while the template image can only display the contour morphology of the corresponding key structure.
[0145] In some embodiments, the key structure inside the plant organ may be one or more. Taking the plant organ of cherry tomato as an example, the key structure may include the exocarp, endocarp, partition, ovary tissue, seeds, placenta and other parts.
[0146] Then, the moisture detection result of each key structure is generated based on the template image and the moisture detection result of the whole plant organ.
[0147] It is understandable that the moisture detection result of the whole plant organ can be the T2 and A2 atlas obtained by performing a single exponential inversion on each voxel of the image to be detected, thereby obtaining the moisture activity and moisture content distribution map of the whole plant organ. It can also be the T21, A21, T22, A22, T23, A23 atlas obtained by performing a three-exponential inversion on each voxel of the image to be detected, thereby obtaining the respective activity and moisture content distribution map of the three types of water, namely, bound water, semi-bound water, and free water, of the whole plant organ. It is understandable that since the larger T2 is, the freer it is, this embodiment uses T23 to represent a large number, representing the highest degree of freedom.
[0148] Under single-exponential inversion, the T2 and A2 spectra of each key structure can be generated based on the template image and the single-exponential inversion results, and the water activity and water content distribution diagram of each key structure can be obtained. Under triple-exponential inversion, the T21, A21, T22, A22, T23, and A23 spectra of each key structure can be generated based on the template image and the triple-exponential inversion results, and the respective activity and water content distribution diagrams of the three types of water, bound water, semi-bound water, and free water, can be obtained for each key structure.
[0149] In other embodiments, the method for detecting moisture inside a plant organ provided by the embodiment of the present invention may further include:
[0150] Firstly, a template image of each key structure inside the plant organ is generated based on the multi-echo image.
[0151] Then, according to the template image, average echo data of each key structure in the multi-echo image is extracted, wherein the average echo data is used to characterize average relaxation data of the key structure.
[0152] The multi-echo image contains echo data of the entire plant organ. In order to specifically analyze the average echo data of each key structure, this embodiment uses a template image to extract the average echo data of each key structure from the multi-echo image, thereby providing an effective data basis for the average moisture detection of each key structure.
[0153] Specifically, the echo data carries the spatial information and relaxation information of each voxel in the key structure. Therefore, the echo data can characterize the spatial state and relaxation state of each voxel in the key structure.
[0154] It can be understood that the spatial information can represent the position state of each voxel, and the relaxation information can represent the process of each voxel gradually recovering from a certain state to an equilibrium state.
[0155] Finally, the T2 spectrum inversion is performed on the echo data of each key structure to obtain the average moisture detection result of each key structure.
[0156] In this embodiment, by performing T2 spectrum inversion on the average echo data of each key structure, relevant parameters that can characterize the water binding state and water content can be obtained, and then the average water detection results of each key structure can be obtained, thereby realizing the targeted water detection function of each key structure inside the plant organ in a non-destructive state. The detection process is more universal, and the detection accuracy and comprehensiveness are improved.
[0157] It should be noted that the average moisture test results for key structures present the average value of each key structure, that is, each key structure presents a set of results, which can be understood as the moisture test results at the structural scale.
[0158] In one embodiment, a template image of each key structure inside a plant organ is generated based on the multi-echo image, specifically including:
[0159] In the first step, the image feature points of each key structure are extracted from the multi-echo image.
[0160] In this embodiment, the image feature points of each key structure in the multi-echo image can be located according to basic information such as the spatial position, structure shape and structure size of each key structure inside the plant organ.
[0161] In some embodiments, the image feature points of the key structure may include all boundary points of the key structure and at least part of the internal feature points inside the key structure.
[0162] In the second step, the contour information corresponding to each key structure is determined based on the image feature points of each key structure.
[0163] It is understandable that, since the extracted key feature points can characterize the edge shape and internal structure shape of the key structure, the contour information of the key structure can be determined according to the image feature points. It should be noted that the contour information includes both the external edge contour of the key structure and the internal area contour of the key structure.
[0164] The third step is to convert the image content except the key structure in the multi-echo image into the image background.
[0165] In this embodiment, after the contour information of the key structure is extracted and analyzed from the multi-echo image, all image points corresponding to the key structure can be located from the multi-echo image according to the contour information, and then the remaining image points in the multi-echo image except all the image points of the key structure are uniformly set to grayscale values, so as to obtain an image background with uniform color. For example, the grayscale values of the remaining image points can be uniformly set to 0, so as to obtain a black image background.
[0166] The fourth step is to generate a template image of each key structure based on the contour information and image background.
[0167] It can be understood that all image points of the key structure can be located according to the contour information, and the contour and shape of the key structure can be displayed by setting a uniform grayscale value for all image points of the key structure.
[0168] It should be noted that when uniformly setting the grayscale values of all image points of the key structure and the remaining image points in the multi-echo image, the difference between the grayscale values of the two parts of the image points can be set as large as possible, so that the template image can show the key structure more clearly.
[0169] For example, if the grayscale values of the remaining image points in the multi-echo image are uniformly set to 0, the grayscale values of all image points of the key structure can be uniformly set to 255, so that the shape and outline of the key structure can be highlighted in white.
[0170] This embodiment still takes cherry tomatoes as an example. The echo image of a certain echo layer of cherry tomatoes is as follows: Figure 8As shown in the figure, the template images of the six key structures of the cherry tomato after segmentation, namely the exocarp, endocarp, septum, ovary tissue, seed and placenta, can be seen in Fig. 9 The images corresponding to a, b, c, d, e, and f respectively.
[0171] It is not difficult to find that this embodiment can extend the moisture detection from plant organs to the internal key structures by constructing template images of various key structures inside plant organs, thereby providing reliable data basis for deeper moisture detection.
[0172] In one embodiment, extracting average echo data of each key structure in the multi-echo image according to the template image includes:
[0173] Firstly, according to the template image, the average value of the magnetization signal intensity of each key structure is extracted echo by echo from the multi-echo image.
[0174] Then, the average echo data of each key structure is determined according to the average value of the magnetization signal intensities extracted from each echo corresponding to each key structure.
[0175] It can be understood that by constructing echo data through the average value of the magnetization signal intensity, the spatial information and relaxation information of each voxel in the key structure can be analyzed and obtained.
[0176] This embodiment can extract the average echo data corresponding to each key structure in the multi-echo image through the template image, which can be specifically quantified as the average value of the magnetization signal intensity of each key structure. This processing method not only retains the differences between the key structures, but also filters the noise between voxels, reduces the complexity of the echo data in the multi-echo image, and improves the accuracy of the structural data.
[0177] In one embodiment, T2 spectrum inversion is performed on the average echo data of each key structure to obtain the average moisture detection result of each key structure, including:
[0178] Step 210, for each key structure, determine the component interval range of the key structure.
[0179] In some embodiments, determining the component interval range of the key structure specifically includes:
[0180] First, multiple relaxation interval data and amplitude data corresponding to each relaxation interval data may be extracted from the echo data of the key structure.
[0181] Then, the upper limit and the lower limit of the interval are determined according to the relaxation interval data and the amplitude data, respectively.
[0182] Finally, based on the upper and lower limits of the interval, the component interval range is obtained.
[0183] Taking the three-exponential signal model as an example, the upper and lower limits of the interval specifically include three non-overlapping relaxation interval data and corresponding amplitude data, where the upper limit of the interval can be expressed as follows:
[0184] θ max =[a 11 ,t 11 ,a 12 ,t 12 ,a 13 ,t 13 ] max (17)
[0185] The lower limit of the interval can be expressed as follows:
[0186] θ min =[a 21 ,t 21 ,a 22 ,t 22 ,a 23 ,t 23 ] min (18)
[0187] In the above expression, θ max represents the upper limit of the interval, θ min represents the lower limit of the interval, t 11 ,t 12 ,t 13 ,t 21 ,t 22 ,t 23 All represent relaxation interval data, a 11 、a 12 、a 13 、a 21 、a 22 、a 23 All represent amplitude data.
[0188] In practical applications, the component interval range can be determined based on the group physical meaning and individual characteristics of the key structure. If the component interval range is set unreasonably, it will fall into the local optimal solution.
[0189] Step 220: Invert and iterate the average echo data of the key structure according to the component interval range.
[0190] In this embodiment, the inversion iterative process is as follows:
[0191] Calculate the affinity of a single particle in the key structure through the component interval range, and combine to obtain the next generation population through cloning, crossover, and mutation. Modify the population data through the receiver, and then determine whether the current particle affinity meets the local termination condition, that is, determine whether the particle affinity meets the termination condition. If the local termination condition is not met, return to the calculation step to continue calculating the affinity of a single particle. If the local termination condition is met, the current inversion iteration process is terminated.
[0192] Step 230: When the local termination condition is met, update the component interval range according to a preset pressure expansion factor to obtain the updated component interval range.
[0193] In this embodiment, the pressure expansion factor m satisfies the value requirement of 1 < m < s.
[0194] In some embodiments, the pressure expansion factor specifically includes an upper limit factor and a lower limit factor; the upper limit factor is used to characterize the deviation state between the component parameter value of the current round and the upper limit of the component interval range, and the lower limit factor is used to characterize the deviation state between the component parameter value of the current round and the lower limit of the component interval range.
[0195] Updating the component interval range according to a preset pressure expansion factor to obtain the updated component interval range specifically includes:
[0196] On the one hand, first, determine the upper limit correction value according to the upper limit factor and a preset correction coefficient.
[0197] Then, subtract the upper limit correction value from the upper limit of the component interval range to obtain the updated upper limit of the interval.
[0198] In this embodiment, the upper limit factor and the updated upper limit of the interval can be calculated by the following formula:
[0199]
[0200] In the above expression, m1 represents the upper limit factor, θ max (n) represents the upper limit of the interval in the nth inversion round, θ(n) represents the component parameter value in the nth inversion round, θ max (n + 1) represents the updated upper limit of the interval, and γ represents the preset correction coefficient. Among them, the upper limit factor m1 needs to meet the value range of the pressure expansion factor, that is, between 1 and s, where s can be reasonably set according to the actual application scenario requirements.
[0201] On the other hand, first, determine the lower limit correction value according to the lower limit factor and a preset correction coefficient.
[0202] Then, subtract the lower limit correction value from the lower limit of the component interval range to obtain the updated lower limit of the interval.
[0203] In this embodiment, the lower limit factor and the updated interval lower limit can be calculated by the following formula:
[0204]
[0205] In the above expression, m2 represents the lower limit factor, θ min (n) represents the lower limit of the interval of the nth inversion round, θ(n) represents the component parameter value of the nth inversion round, and θ min (n+1) represents the updated lower limit of the interval, and γ represents the preset correction coefficient. The lower limit factor m2 also needs to satisfy the value range of the diffusion factor, that is, between 1 and s.
[0206] Finally, the updated component interval range is obtained based on the updated interval upper limit and the updated interval lower limit.
[0207] This embodiment adopts a peak correction strategy, and corrects the upper and lower limits of the component interval range through the diffusion factor, and then updates the component interval range, which can overcome the influence of the fluctuation of the component interval range of individual samples on the inversion results.
[0208] Afterwards, the average echo data of the key structure are inverted and iterated according to the updated component interval range.
[0209] In this embodiment, the inversion iteration process is basically the same as the second step, except that the component interval range is updated.
[0210] Step 240: until the iteration end condition is met, the result is output, and the average moisture detection result of the key structure can be obtained.
[0211] In practical applications, when the maximum number of iterations is reached or the optimal inversion result is obtained, the iteration end condition can be considered to be met.
[0212] It is not difficult to find that in order to optimize the inversion effect, this embodiment adopts "adaptive components" to improve the chaotic particle swarm immune algorithm, which can adaptively adjust the particle traversal interval in multiple dimensions, thereby overcoming the influence of the fluctuation of the individual sample component interval range on the inversion result and improving the inversion iteration quality.
[0213] In one embodiment, T2 spectrum inversion is performed on the average echo data of each key structure to obtain the average moisture detection result of each key structure, including:
[0214] Perform T2 single exponential inversion on the average echo data of each key structure to obtain the ratio of water activity and overall water content of each key structure, and use the ratio of water activity and overall water content as the single water detection result at the sample structure scale; and / or,
[0215] Perform T2 three-exponential inversion on the average echo data of each key structure to obtain the water binding state of each key structure and the individual water content ratio of each water binding state, and use the water binding state and the individual water content ratio of each water binding state as the sample structure scale three water detection results; and / or,
[0216] The average echo data of each key structure is inverted by T2 continuous spectrum to obtain the water binding state of each key structure and the individual water content ratio of each water binding state. The water binding state and the individual water content ratio of each water binding state are used as the sample structure scale continuous spectrum moisture detection result;
[0217] Among them, the water binding state is used to characterize the distribution state of free water, immobile water and bound water.
[0218] In this embodiment, any one of the above three methods or any combination of them can be selected to realize T2 spectrum inversion, among which T2 single exponential inversion can obtain two parameters: the overall water activity level (i.e., water activity) T2 of the key structure and the overall water content ratio A.
[0219] The T2 three-exponential inversion can obtain six parameters: bound water T21, individual water content ratio A1 of bound water, immobile water T22, individual water content ratio A2 of immobile water, free water T23 and individual water content ratio A3 of free water. Among them, bound water T21, immobile water T22 and free water T23 can be determined according to the relaxation time respectively. In practical applications, the relaxation time corresponding to free water T23 is the longest, and the relaxation time corresponding to bound water T21 is the shortest.
[0220] T2 continuous wave spectrum inversion can obtain three continuous T2 spectra. According to the length of relaxation time, the three water binding states of free water, immobile water and bound water can be determined. According to the area ratio among the three, the ratio of individual water content in different states in the key structure can be further determined.
[0221] This embodiment achieves rich presentation effects through three optional inversion methods: T2 single exponential inversion, T2 triple exponential inversion, and T2 continuous spectrum inversion. It can present the water binding state and the overall water content of each key structure inside the plant organ at a voxel scale through the ratio of water activity and overall water content, and present three types of water binding states and corresponding contents through the three water binding states of free water, non-flowing water, and bound water and the corresponding individual water content ratios.
[0222] It should be noted that after performing T2 inversion on each voxel of the multi-echo image, in order to further realize the zoning display of the moisture status of multiple key structures in the plant organs, the present embodiment also uses the template image to extract the average echo data of each key structure in the multi-echo image, and performs T2 spectrum inversion on the echo data of each key structure to obtain the average moisture detection result of each key structure, thereby making the display of the moisture detection results more multidimensional.
[0223] In summary, the method for detecting moisture inside plant organs provided in this embodiment can perform non-destructive detection on the distribution of moisture content and moisture binding state of key structures inside living plant organs, and obtains relatively reliable quantitative measurement results of different moisture binding states and moisture content at the internal structure scale and voxel scale of plant organs in a visual imaging manner, which solves the current problem that the moisture changes of key internal structures of plant organs, such as fruits and vegetables, cannot be non-destructively detected and evaluated during processing, and has good application prospects in the fields of breeding, identification, processing, storage, and transportation.
[0224] Based on the same general inventive concept, the present invention also protects a device for detecting internal moisture of a plant organ. The device for detecting internal moisture of a plant organ provided by the present invention is described below. The device for detecting internal moisture of a plant organ described below and the method for detecting internal moisture of a plant organ described above can be referred to each other.
[0225] Fig.10 It is a schematic diagram of the structure of a device for detecting moisture inside a plant organ provided by an embodiment of the present invention.
[0226] See also Fig.10 The plant organ internal moisture detection device provided by the embodiment of the present invention specifically comprises:
[0227] An acquisition module 310 is used to acquire a multi-echo image corresponding to the plant organ to be detected;
[0228] The echo screening module 320 is used to perform echo screening on the voxel points in the multi-echo image according to the attenuation relationship between the voxel points with the same two-dimensional coordinates in each layer sub-image of the multi-echo image, so as to obtain the image to be detected after removing the outliers;
[0229] The voxel-by-voxel inversion module 330 is used to perform T2 spectrum inversion on the image to be detected in a voxel-by-voxel manner, generate a T2 spectrum and an A2 spectrum, and obtain a water content detection result of the entire plant organ at a voxel-by-voxel scale.
[0230] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated again here.
[0231] Fig.11 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present invention.
[0232] like Fig.11 As shown, the electronic device may include: a processor 410, a communication interface 420, a memory 430 and a communication bus 440, wherein the processor 410, the communication interface 420 and the memory 430 communicate with each other through the communication bus 440. The processor 410 may call the logic instructions in the memory 430 to execute the plant organ internal moisture detection method provided by the above-mentioned embodiments, the method comprising: obtaining a multi-echo image corresponding to the plant organ to be detected; performing echo screening on the voxel points in the multi-echo image according to the attenuation relationship between the voxel points with the same two-dimensional coordinates in each layer of the sub-image in the multi-echo image, and obtaining the image to be detected after removing the outliers; performing T2 spectrum inversion on the image to be detected in a voxel-by-voxel manner, generating a T2 spectrum and an A2 spectrum, and obtaining the moisture detection result of the whole plant organ on a voxel-by-voxel basis.
[0233] In addition, the logic instructions in the above-mentioned memory 430 can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on such an understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.
[0234] On the other hand, the present invention also provides a computer program product, which includes a computer program. The computer program can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the plant organ internal moisture detection method provided by the above-mentioned embodiments, and the method includes: obtaining a multi-echo image corresponding to the plant organ to be detected; performing echo screening on the voxel points in the multi-echo image according to the attenuation relationship between voxel points with the same two-dimensional coordinates in each layer of sub-images in the multi-echo image, so as to obtain the image to be detected after removing outliers; performing T2 spectrum inversion on the image to be detected voxel by voxel, generating a T2 spectrum and an A2 spectrum, and obtaining the moisture detection result of the entire plant organ on a voxel-by-voxel basis.
[0235] On the other hand, the present invention also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for detecting internal moisture in plant organs provided by the above-mentioned embodiments is implemented. The method includes: obtaining a multi-echo image corresponding to the plant organ to be detected; performing echo screening on the voxel points in the multi-echo image according to the attenuation relationship between voxel points with the same two-dimensional coordinates in each layer of sub-images in the multi-echo image, so as to obtain the image to be detected after removing outliers; performing T2 spectrum inversion on the image to be detected voxel by voxel, generating a T2 spectrum and an A2 spectrum, and obtaining a voxel-by-voxel moisture detection result of the entire plant organ.
[0236] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0237] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0238] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for detecting moisture inside a plant organ, characterized in that: include: Acquire a multi-echo image corresponding to the plant organ to be detected; According to the attenuation relationship between voxel points with the same two-dimensional coordinates in each layer sub-image of the multi-echo image, echo screening is performed on the voxel points in the multi-echo image to obtain an image to be detected after outliers are removed; The T2 spectrum inversion is performed on the image to be detected in a voxel-by-voxel manner to generate a T2 spectrum and an A2 spectrum, and a water content detection result of the entire plant organ on a voxel-by-voxel scale is obtained.
2. The method for detecting moisture inside a plant organ according to claim 1, characterized in that: Performing T2 spectrum inversion on the image to be detected voxel by voxel to generate a T2 spectrum and an A2 spectrum, including: Based on the heteroscedasticity characteristics and detection background, the initial value and weight factor in the LM weighting algorithm are set, and the weight factor and echo number selection algorithm based on the overall noise prior and individual T2 difference are constructed; According to the weight factor and echo number selection algorithm, T2 spectrum inversion is performed on each voxel of the image to be detected to generate a T2 spectrum and an A2 spectrum.
3. The method for detecting moisture inside a plant organ according to claim 1, characterized in that: The method further comprises: generating a template image of each key structure inside the plant organ according to the multi-echo image; The moisture detection result of each of the key structures is generated according to the template image and the moisture detection result of the entire plant organ.
4. The method for detecting moisture inside a plant organ according to claim 1, characterized in that: The method further comprises: generating a template image of each key structure inside the plant organ according to the multi-echo image; According to the template image, extracting average echo data of each key structure in the multi-echo image, wherein the average echo data is used to characterize average relaxation data of the key structure; The average echo data of each of the key structures is subjected to T2 spectrum inversion to obtain the average moisture detection result of each of the key structures.
5. The method for detecting moisture inside a plant organ according to claim 3 or 4, characterized in that: Generating a template image of each key structure inside the plant organ according to the multi-echo image comprises: extracting image feature points of each key structure from the multi-echo image; Determine the contour information corresponding to each key structure according to the image feature points of each key structure; Converting the image content except the key structure in the multi-echo image into an image background; A template image of each key structure is generated according to the contour information and the image background.
6. The method for detecting moisture inside plant organs according to claim 4, characterized in that: The T2 spectrum inversion is performed on the average echo data of each of the key structures to obtain the average moisture detection result of each of the key structures, including: For each of the key structures, determining a component interval range of the key structure; According to the component interval range, performing inversion iteration on the average echo data of the key structure; When the local termination condition is met, the component interval range is updated according to a preset diffusion factor to obtain an updated component interval range; According to the updated component interval range, performing inversion iteration on the average echo data of the key structure; Until the iteration end condition is met, the average moisture detection result of the key structure is obtained.
7. The method for detecting moisture inside a plant organ according to claim 6, characterized in that: The diffusion factor includes an upper limit factor and a lower limit factor; The updating of the component interval range according to the preset diffusion factor to obtain the updated component interval range includes: Determining an upper limit correction value according to the upper limit factor and a preset correction coefficient; Subtract the upper limit of the interval of the component interval from the upper limit correction value to obtain an updated interval upper limit; Determining a lower limit correction value according to the lower limit factor and a preset correction coefficient; Subtract the lower limit of the component interval from the lower limit correction value to obtain an updated lower limit of the interval; The updated component interval range is obtained according to the updated interval upper limit and the updated interval lower limit.
8. A device for detecting moisture inside a plant organ, characterized in that: include: An acquisition module, used for acquiring a multi-echo image corresponding to the plant organ to be detected; An echo screening module, used for performing echo screening on voxel points in the multi-echo image according to the attenuation relationship between voxel points with the same two-dimensional coordinates in each layer sub-image of the multi-echo image, to obtain an image to be detected after removing outliers; The voxel-by-voxel inversion module is used to perform T2 spectrum inversion on the image to be detected in a voxel-by-voxel manner, generate a T2 spectrum and an A2 spectrum, and obtain a water content detection result of the entire plant organ at a voxel-by-voxel scale.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the program, the method for detecting internal moisture of a plant organ as claimed in any one of claims 1 to 7 is implemented.
10. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for detecting moisture inside a plant organ as claimed in any one of claims 1 to 7 is implemented.
