A method and system for three-dimensional stress reconstruction of a garnet crystal
By using a method that shares multi-scale features for three-dimensional principal stress difference field reconstruction and core structure localization, the problem of non-destructive testing of stress distribution inside garnet crystals was solved, achieving accurate reconstruction of the stress field and accurate localization of the core region.
Patent Information
- Application Number
- CN202611646616.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-23
- Publication Date
- 2026-11-20
AI Technical Summary
Existing technologies are difficult to effectively perform non-destructive testing and reconstruction of the three-dimensional stress distribution inside garnet crystals, especially in multi-angle measurements where measurement blind spots and difficulties in identifying local stress concentration structures exist.
A method that shares multi-scale features for three-dimensional principal stress difference field reconstruction and core structure localization is adopted. By using a polarization tomography forward model and sparse system matrix, combined with shared multi-scale feature extraction and core structure supervised training, the synchronous reconstruction of the three-dimensional stress field and the core region is achieved.
It achieves accurate reconstruction of the internal stress field of garnet crystals, simultaneously acquiring the stress numerical distribution and the location, range, and depth of the core region, reducing prediction numerical deviations and local oscillations, and improving the accuracy of core region identification.
Smart Images

Figure CN123139700A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of internal stress detection in crystals, and in particular to a method and system for three-dimensional stress reconstruction of garnet crystals. Background Technology
[0002] Garnet crystals are a class of crystalline materials with excellent optical and mechanical properties. The internal stress distribution of these crystals affects their optical characteristics, structural stability, and subsequent performance. Non-uniform stress distributions may form during crystal growth, processing, heat treatment, and use, and localized stress concentration structures may exist in some areas. Therefore, non-destructive testing and reconstruction of the three-dimensional stress state inside garnet crystals are of great significance for analyzing their internal structural state.
[0003] Existing crystal stress detection methods involve acquiring light intensity matrices under three sets of orthogonal polarization settings and one set of parallel polarization settings. After normalization, phase calculation, and average background subtraction, the same pixel from multiple phase matrices is weighted and fused to reduce the measurement blind zone and obtain residual stress distribution information. Its multi-angle measurement mainly changes the angle of the polarization element, and the weighted fusion is performed at the two-dimensional pixel level. Summary of the Invention
[0004] Based on this, this application provides a method and system for three-dimensional stress reconstruction of garnet crystals, which sets the reconstruction of the three-dimensional principal stress difference field and the localization of the core structure as two tasks sharing multi-scale features. Under the same projection input and voxel correspondence, the reconstruction branch is trained with stress values, projection relationships and spatial smoothness constraints, and the localization branch is trained with core region overlap and voxel classification supervision. The shared features are jointly optimized through joint loss to obtain the three-dimensional principal stress difference distribution and the location, range and depth of the core region.
[0005] In a first aspect, this application provides a method for three-dimensional stress reconstruction of garnet crystals, including: The three-dimensional stress field inside the garnet crystal and the core structure monitoring label corresponding to its voxel spatial position are obtained; the three-dimensional stress field includes the principal stress difference of each voxel, and the core structure monitoring label is obtained according to the preset high stress region or the pre-set structural region; Construct a target optical path and collect first polarization light intensity projection data of garnet crystal under multiple projection views based on the target optical path; A forward polarization tomography model is established based on the propagation process of polarized light in the crystal. Based on the forward polarization tomography model, the intensity projection data of the second polarized light is calculated according to the principal stress difference of each voxel through which the target light path passes. Based on the first polarization intensity projection data and the second polarization intensity projection data, sample data containing multi-view polarization projection input, corresponding three-dimensional principal stress difference true values, and core structure supervision labels are constructed. The propagation length of light in each voxel is obtained, and the projection relationship between the second polarization intensity projection data and the three-dimensional stress field is established based on the propagation length of light in each voxel. A 3D encoder-decoder model is constructed, comprising a shared multi-scale feature extraction part, a stress reconstruction branch, and a core structure localization branch. The 3D encoder-decoder model is trained using sample data. The stress reconstruction branch outputs a 3D principal stress difference field, and the core structure localization branch outputs a core structure probability map on the same voxel grid. A stress reconstruction loss is constructed based on the predicted principal stress difference and its corresponding ground truth value. A spatial smoothing constraint loss is constructed based on the 3D spatial gradient of the predicted principal stress difference. Under scalar approximation conditions, a projection consistency loss is constructed between the predicted projection features and the corresponding sample projection features based on the projection relationship. A segmentation loss is constructed based on the core structure probability map and its corresponding supervision label. The reconstruction composite loss and the segmentation loss are weighted to form a joint loss. The parameters of the shared multi-scale feature extraction part and its corresponding branch are updated through backpropagation to obtain the target 3D encoder-decoder model. The data to be detected is input into the target 3D encoding-decoding model, and the 3D principal stress difference field and core structure probability map of the garnet crystal are output simultaneously. The core structure probability map is thresholded to obtain the core structure mask, and the position of the core region and its depth relative to the preset reference surface are determined according to the voxel coordinates.
[0006] In one embodiment, obtaining the three-dimensional stress field inside a garnet crystal includes: Establish a finite element model of garnet crystal, and set the geometric structure, material parameters and stress boundary conditions of garnet crystal; Stress field calculations were performed based on the finite element model to obtain the stress components at various locations inside the garnet crystal. Calculate the principal stress at each location based on the stress components, and determine the principal stress difference of the corresponding voxel based on the principal stress. The principal stress differences of each voxel are arranged according to the three-dimensional voxel spatial positions of the garnet crystal to obtain a three-dimensional stress field.
[0007] In one embodiment, constructing the target optical path includes: The garnet crystal is placed in an immersion liquid with a refractive index matching that of the garnet crystal, so that the incident light enters the garnet crystal in a predetermined direction; The garnet crystal is set to rotate around a preset rotation axis, and corresponding projection angles are formed at multiple rotation angles; Polarized light is propagated along the target optical path at various projection angles, and polarized light intensity images are acquired after the polarized light passes through the garnet crystal to obtain the first polarized light intensity projection data.
[0008] In one embodiment, a multi-step phase shift method is used to change the phase shift state of polarized light at each projection viewpoint, and polarized light intensity images at different phase shift states are acquired respectively. The polarization projection features of the corresponding projection viewpoint are obtained based on the polarization light intensity images at different phase shift states, and the first polarization light intensity projection data are formed according to the arrangement order of multiple projection viewpoints.
[0009] In one embodiment, establishing a forward polarization tomography model includes: A Jones matrix cascade model was established based on the propagation process of polarized light in garnet crystals. The garnet crystal is divided into multiple voxels along the target optical path, and the stress-related polarization parameters of each voxel are determined based on the propagation process of light in each voxel. Based on the cascaded Jones matrix, the polarization state of the polarized light after passing through the garnet crystal is calculated according to the principal stress difference of each voxel, the stress-related polarization parameters, and the light propagation path corresponding to the target light path. The intensity projection data of the second polarized light is then obtained based on the polarization state.
[0010] In one embodiment, establishing the projection relationship between the second polarization intensity projection data and the three-dimensional stress field based on the propagation length of light in each voxel includes: Determine the intersection relationship between each ray and each voxel in the three-dimensional stress field based on the target optical path; The propagation length of the corresponding ray in each voxel is determined based on the intersection position of each ray with each voxel; A sparse system matrix is constructed based on the voxel propagation length corresponding to each ray; the rows of the sparse system matrix correspond to the projected rays, the columns correspond to the voxels in the three-dimensional stress field, and the matrix elements are used to characterize the propagation length of the corresponding ray in the corresponding voxel. The projection relationship between the second polarization intensity projection data and the principal stress difference of each voxel is established based on the sparse system matrix.
[0011] In one embodiment, applying projection consistency constraints based on the projection relationship between the second polarization intensity projection data and the three-dimensional stress field includes: The predicted three-dimensional stress field output by the three-dimensional encoder-decoder model is arranged into a predicted three-dimensional stress vector according to the voxel spatial position. Based on the sparse system matrix, the predicted three-dimensional stress vector is mapped to the projection domain under the scalar approximation condition to obtain the predicted projection features. The difference between the predicted projection features and the projection features obtained from the corresponding second polarization intensity projection data is calculated, and the projection consistency loss is constructed. The 3D encoder-decoder model is trained based on the projection consistency loss.
[0012] In one embodiment, training a 3D encoder-decoder model using sample data includes: The multi-view polarization projection in the sample data is used as the model input, and the corresponding three-dimensional principal stress difference true value and the core structure supervision label are used as the supervision of the two branches respectively. The stress reconstruction loss is constructed based on the difference between the predicted principal stress difference and the corresponding true value, and the spatial smoothing constraint loss is constructed based on the three-dimensional spatial gradient of the predicted principal stress difference. Dice loss and Focal loss are constructed based on the core structure probability map and the core structure supervision label, and the two are weighted to form the segmentation loss; The stress reconstruction loss, projection consistency loss, and spatial smoothness constraint loss are weighted to form the reconstruction composite loss, and the reconstruction composite loss is weighted with the segmentation loss to form the joint loss. By using joint loss to jointly update the parameters of the shared multi-scale feature extraction part and its corresponding branch, the shared features are simultaneously supervised by stress reconstruction and core structure localization until the preset training conditions are met, thus obtaining the target 3D encoding-decoding model.
[0013] Secondly, this application also provides a three-dimensional stress reconstruction system for garnet crystals, comprising: A three-dimensional stress field simulation module is used to obtain the three-dimensional stress field inside the garnet crystal and the core structure monitoring label corresponding to its voxel spatial position; the three-dimensional stress field includes the principal stress difference of each voxel, and the core structure monitoring label is obtained according to a preset high-stress region or a pre-set structural region; The first polarization intensity projection data acquisition module is used to construct the target optical path and acquire the first polarization intensity projection data of the garnet crystal under multiple projection angles based on the target optical path. The second polarization intensity projection data acquisition module is used to establish a polarization tomography forward model based on the propagation process of polarized light in the crystal, and to calculate the second polarization intensity projection data based on the principal stress difference of each voxel through which the target light path passes based on the polarization tomography forward model. The sample data construction module is used to construct sample data containing multi-view polarization projection input, corresponding three-dimensional principal stress difference true values, and core structure supervision labels based on the first polarization light intensity projection data and the second polarization light intensity projection data. The projection relationship construction module is used to obtain the propagation length of light in each voxel and establish the projection relationship between the second polarization intensity projection data and the three-dimensional stress field based on the propagation length of light in each voxel. The model building module is used to construct a 3D encoder-decoder model, including a shared multi-scale feature extraction part, a stress reconstruction branch, and a core structure localization branch. The 3D encoder-decoder model is trained using sample data. The stress reconstruction branch outputs a 3D principal stress difference field, and the core structure localization branch outputs a core structure probability map on the same voxel grid. A stress reconstruction loss is constructed based on the predicted principal stress difference and its corresponding ground truth value. A spatial smoothing constraint loss is constructed based on the 3D spatial gradient of the predicted principal stress difference. Under scalar approximation conditions, a projection consistency loss is constructed between the predicted projection features and the corresponding sample projection features based on the projection relationship. A segmentation loss is constructed based on the core structure probability map and its corresponding supervision label. The reconstruction composite loss and the segmentation loss are weighted to form a joint loss. The parameters of the shared multi-scale feature extraction part and its corresponding branch are updated jointly through backpropagation to obtain the target 3D encoder-decoder model. The result generation module is used to input the data to be detected into the target 3D encoding-decoding model and simultaneously output the 3D principal stress difference field and core structure probability map of the garnet crystal; the core structure probability map is thresholded to obtain the core structure mask, and the position of the core region and its depth relative to the preset reference surface are determined according to the voxel coordinates.
[0014] Thirdly, this application also provides a computer device. The computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to perform the following steps: The three-dimensional stress field inside the garnet crystal and the core structure monitoring label corresponding to its voxel spatial position are obtained; the three-dimensional stress field includes the principal stress difference of each voxel, and the core structure monitoring label is obtained according to the preset high stress region or the pre-set structural region; Construct a target optical path and collect first polarization light intensity projection data of garnet crystal under multiple projection views based on the target optical path; A forward polarization tomography model is established based on the propagation process of polarized light in the crystal. Based on the forward polarization tomography model, the intensity projection data of the second polarized light is calculated according to the principal stress difference of each voxel through which the target light path passes. Based on the first polarization intensity projection data and the second polarization intensity projection data, sample data containing multi-view polarization projection input, corresponding three-dimensional principal stress difference true values, and core structure supervision labels are constructed. The propagation length of light in each voxel is obtained, and the projection relationship between the second polarization intensity projection data and the three-dimensional stress field is established based on the propagation length of light in each voxel. A 3D encoder-decoder model is constructed, comprising a shared multi-scale feature extraction part, a stress reconstruction branch, and a core structure localization branch. The 3D encoder-decoder model is trained using sample data. The stress reconstruction branch outputs a 3D principal stress difference field, and the core structure localization branch outputs a core structure probability map on the same voxel grid. A stress reconstruction loss is constructed based on the predicted principal stress difference and its corresponding ground truth value. A spatial smoothing constraint loss is constructed based on the 3D spatial gradient of the predicted principal stress difference. Under scalar approximation conditions, a projection consistency loss is constructed between the predicted projection features and the corresponding sample projection features based on the projection relationship. A segmentation loss is constructed based on the core structure probability map and its corresponding supervision label. The reconstruction composite loss and the segmentation loss are weighted to form a joint loss. The parameters of the shared multi-scale feature extraction part and its corresponding branch are updated through backpropagation to obtain the target 3D encoder-decoder model. The data to be detected is input into the target 3D encoding-decoding model, and the 3D principal stress difference field and core structure probability map of the garnet crystal are output simultaneously. The core structure probability map is thresholded to obtain the core structure mask, and the position of the core region and its depth relative to the preset reference surface are determined according to the voxel coordinates.
[0015] This application employs the aforementioned method and system for three-dimensional stress reconstruction of garnet crystals, which has the following beneficial effects: 1. By incorporating principal stress difference field reconstruction and core region localization into the same network, and through the same multi-view polarization input and same grid supervision, the output stress field and core probability map have corresponding spatial coordinate basis, and the stress numerical distribution and the location, range and depth of the core region can be obtained simultaneously.
[0016] 2. The Jones forward model and sparse system matrix are constructed based on the corresponding ray propagation path and voxel travel length, respectively, and are used for polarization projection data generation and projection constraints under scalar approximation, so that the training samples and projection loss have corresponding geometric basis.
[0017] 3. Stress reconstruction loss, projection consistency loss, and spatial smoothing loss constrain voxel values, projection relationships along the optical path, and local spatial variations, respectively, and work together to reduce prediction numerical bias, projection differences, and unnecessary local oscillations.
[0018] 4. Core structure supervision involves shared feature training through Dice and Focal losses, ensuring that the region identification target not only contributes to the final segmentation result but also participates in the learning of features used in the stress reconstruction branch. The reconstruction task simultaneously imposes numerical and projection constraints on the shared features. Compared to the approach of extracting features independently for two tasks, this structure-based shared feature extraction process incorporates stress estimation and core localization into a joint optimization. Attached Figure Description
[0019] Figure 1A flowchart of a three-dimensional stress reconstruction method for garnet crystals in one embodiment; Figure 2 This is a schematic diagram of the target optical path in one embodiment; Figure 3 This is a schematic diagram of the structure of a three-dimensional encoder-decoder model in one embodiment; Figure 4 This is a schematic diagram comparing the results of the method of this application and the prior art method in one embodiment.
[0020] Reference numerals in the attached figures: 1. Polarizer; 2. First quarter-wave plate; 3. Garnet crystal; 4. Second quarter-wave plate; 5. Analyzer; 6. Light source; 7. Detector. Detailed Implementation
[0021] To make the objectives, technical solutions, and advantages of this application clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this application.
[0022] For schemes that focus solely on stress field reconstruction as the training objective, the overall prime value error is not equivalent to the core region localization error. Even if the overall reconstruction error is small, it cannot be concluded that the location, extent, and boundaries of the core region have been accurately recovered. If independent segmentation is performed after reconstruction, the core region identification target does not participate in the training of the front-end feature extraction part. Therefore, it is necessary to incorporate stress field reconstruction and core structure localization into the same training framework, so that region identification supervision and stress reconstruction supervision work together on shared features.
[0023] This application uses YAG garnet crystal 3 as the object and completes finite element stress field solution, polarization projection data generation, network training, 3D stress reconstruction, core structure localization, and performance evaluation in a numerical simulation environment. The method in this application uses the principal stress difference of each voxel in the 3D stress field inside the garnet crystal 3 as the specific output of the stress reconstruction branch, and simultaneously completes the core structure localization. Multi-view polarization projection data is input into a physically constrained 3D encoder-decoder network, and the projection consistency loss is calculated using the corresponding system matrix. The network is trained jointly using truth-monitored loss, projection consistency loss, and spatial smoothing loss to output the 3D stress field inside the crystal. A core structure localization branch is connected in the shared feature extraction part to perform 3D segmentation of the core structure inside the crystal and obtain its spatial position and depth.
[0024] Based on the above, in a first aspect, this application provides a method for three-dimensional stress reconstruction of garnet crystals, comprising: S100, obtain the three-dimensional stress field inside the garnet crystal 3 and the core structure monitoring label corresponding to its voxel spatial position; the three-dimensional stress field includes the principal stress difference of each voxel, and the core structure monitoring label is obtained according to the preset high stress region or the pre-set structural region.
[0025] In one embodiment, obtaining the three-dimensional stress field inside the garnet crystal 3 includes: establishing a finite element model of the garnet crystal 3, setting the geometric structure, material parameters, and stress boundary conditions of the garnet crystal 3; performing stress field calculations based on the finite element model to obtain the stress components at each location inside the garnet crystal 3; calculating the principal stress at the corresponding location based on the stress components at each location, and determining the principal stress difference of the corresponding voxel based on the principal stress; arranging the principal stress differences of each voxel according to the three-dimensional voxel spatial position of the garnet crystal 3 to obtain the three-dimensional stress field.
[0026] In this embodiment, the object to be tested is a cylindrical YAG garnet crystal 3. First, a three-dimensional finite element model of the garnet crystal 3 is established. Finite element modeling is completed based on the crystal's geometry, material parameters, and actual or preset stress boundary conditions. The three-dimensional stress distribution inside the crystal is obtained through finite element analysis. Each calculation position in the finite element model corresponds to a corresponding position in the three-dimensional voxel space. The principal stress at each position is calculated based on the stress components obtained, and the principal stress difference of the corresponding voxel is determined based on the principal stress. The principal stress differences of each voxel are arranged according to the three-dimensional voxel space position of the garnet crystal 3 to obtain the three-dimensional stress field inside the crystal. The principal stress differences of each voxel in the three-dimensional stress field are used as the supervisory truth value for three-dimensional stress reconstruction.
[0027] Specifically, a numerical model of stress birefringence in a YAG crystal is constructed based on the COMSOL multiphysics simulation platform to simulate three types of stress fields: uniform distribution, radial gradient distribution, and complex distribution with multiple cores. Different stress gradients, defect sizes, and burial depths are set to form three-dimensional stress fields with different spatial distribution characteristics. For the three-dimensional stress field obtained by finite element method, the reconstructed true value is obtained based on the principal stress difference of each voxel. The mean and standard deviation are calculated based on the positive value regions in the true value of the principal stress difference. Using the mean plus twice the standard deviation as a threshold, voxels whose principal stress difference is greater than the threshold are identified as high-stress regions, generating a core structure mask. The core structure annotation can also be obtained based on a preset high-stress region or a pre-defined structural region in the finite element stress field. It should be noted that the core structure positioning object in this embodiment is used to characterize the high-stress region or preset structural region corresponding to the core structure inside the crystal, and is not equivalent to the physical core entity boundary obtained by direct observation through a physical sample.
[0028] S200, construct the target optical path, and collect the first polarization light intensity projection data of garnet crystal 3 under multiple projection perspectives based on the target optical path; In one embodiment, constructing a target optical path includes: placing a garnet crystal 3 in an immersion liquid with a refractive index matching that of the garnet crystal 3, and allowing incident light to enter the garnet crystal 3 along a preset direction; setting the garnet crystal 3 to rotate around a preset rotation axis and forming corresponding projection angles at multiple rotation angles; allowing polarized light to propagate along the target optical path at each projection angle, and acquiring polarized light intensity images after the polarized light passes through the garnet crystal 3 to obtain first polarized light intensity projection data.
[0029] After obtaining the three-dimensional stress field, a target optical path is constructed for polarization projection data acquisition and generation. The cylindrical garnet crystal 3 to be tested is placed in a refractive index matching liquid, making the refractive index of the matching liquid close to the crystal's reference refractive index to reduce the influence of the crystal's curved surface on the direction of incident light propagation. In one specific embodiment, the reference refractive index of the YAG crystal is approximately 1.82, and the refractive index of the refractive index matching liquid is set to be close to 1.82, thereby reducing the light deflection caused by the refractive index difference at the curved surface of the cylindrical crystal. A He-Ne laser with a wavelength of 632.8 nm is used as the light source 6, causing the incident light to propagate along the horizontal y-direction of the crystal, and the crystal is controlled to rotate around the z-axis, where the z-axis is the crystal's growth axis and rotation axis.
[0030] In this embodiment, the crystal rotation angle range is set to 30°–150°, with an angle interval of 5°, forming a total of 25 independent sparse projection viewpoints. For each projection viewpoint, polarized light is propagated along the corresponding target optical path, and the polarization intensity image of the polarized light after passing through the garnet crystal 3 is acquired using detector 7, thereby obtaining the first polarization intensity projection data under the corresponding projection viewpoint. Since different projection viewpoints correspond to different crystal rotation states, the spatial paths of light passing through the interior of the crystal are different under different projection viewpoints, thus obtaining different directional projection information about the three-dimensional stress distribution inside the crystal.
[0031] In one embodiment, a multi-step phase shift method is used to change the phase shift state of polarized light at each projection viewpoint, and polarized light intensity images at different phase shift states are acquired respectively. The polarization projection features of the corresponding projection viewpoint are obtained based on the polarization light intensity images at different phase shift states, and the first polarization light intensity projection data are formed according to the arrangement order of multiple projection viewpoints.
[0032] In this embodiment, the polarization optical path used is a five-element polarization optical path: P→Q1→Crystal→Q2→A. Here, P is polarizer 1, Q1 is the first quarter-wave plate 2, Crystal is a YAG garnet crystal 3, Q2 is the second quarter-wave plate 4, and A is analyzer 5. With the angles of polarizer 1 and analyzer 5 fixed, six-step phase shift acquisition is completed by rotating the quarter-wave plate Q2. The six Q2 phase shift settings are 0°, 30°, 60°, 90°, 120°, and 150°. Polarization intensity images corresponding to the above six phase shift states are acquired under each set of geometric projection views, and noise reduction and anti-interference correction are achieved using a six-step redundant equation.
[0033] For each set of geometric projection viewpoints, six polarization intensity maps obtained under six Q2 phase shift settings are calculated according to a pre-defined six-step phase shift demodulation procedure to obtain the projection feature map corresponding to that projection viewpoint. Twenty-five two-dimensional projection feature maps are obtained from each of the 25 sets of geometric projection viewpoints, and these maps are stacked in the order of the projection viewpoints to form the network input tensor B×25×N. x ×N z Where B represents the batch size, 25 represents the number of projection angles, and N x and N z These represent the number of pixels in the projected image in the x and z directions, respectively. The projection feature maps from each viewpoint are arranged in order of light rays and projection viewpoints to form the projection feature vector b, which is the first polarization intensity projection data.
[0034] S300: A forward polarization tomography model is established based on the propagation process of polarized light in the crystal. Based on the forward polarization tomography model, the projection data of the second polarized light intensity is calculated according to the principal stress difference of each voxel through which the target light path passes.
[0035] In one embodiment, establishing a forward polarization tomography model includes: establishing a Jones matrix cascade model based on the propagation process of polarized light in the garnet crystal 3; dividing the garnet crystal 3 into multiple voxels along the target optical path, determining the stress-related polarization parameters corresponding to each voxel based on the propagation process of light in each voxel; calculating the polarization state of the polarized light after passing through the garnet crystal 3 based on the principal stress difference of each voxel, the stress-related polarization parameters, and the light propagation path corresponding to the target optical path, and obtaining the second polarized light intensity projection data based on the polarization state.
[0036] In the numerical simulation, 25 sets of second-polarization light intensity projection data corresponding to different viewpoints are generated based on the three-dimensional stress field obtained from the aforementioned finite element method. Noise conditions are set according to the actual measurement environment. Specifically, three levels of Gaussian noise—20dB, 30dB, and 40dB—can be superimposed to form second-polarization light intensity projection data under different signal-to-noise ratio conditions. The generated second-polarization light intensity projection data, principal stress difference ground truth data, and core structure labels are sizing to ensure that the projection data meets the network input size and that the three-dimensional stress ground truth and core structure labels correspond to the three-dimensional voxel mesh. The loss function terms are calculated according to the unified data scale after training data preprocessing. This allows the formation of training, validation, and test sets, and can be further combined with measured first-polarization light intensity projection data to construct a simulation-measurement hybrid dataset.
[0037] After obtaining the aforementioned multi-view polarization projection data and the true value of the three-dimensional stress field, a forward polarization tomography model is established to describe the physical relationship between the internal stress state of the crystal and the propagation state of polarized light. Specifically, a Jones matrix cascade model is established to convert the true value of the three-dimensional stress field into simulated polarized light intensity under corresponding measurement conditions, generating second polarization light intensity projection data corresponding to the first polarization light intensity projection data.
[0038] The crystal computational region is discretized into voxels, each voxel corresponding to a crystal element with local stress information. For the k-th element through which the target ray passes, according to the stress optics relation, its phase delay is:
[0039] Where λ is the incident light wavelength, and C is the stress optical constant. Let the principal stress difference corresponding to the k-th infinitesimal element in the current light propagation direction be denoted as . Let be the length of light traveling through the kth infinitesimal element.
[0040] Let the angle between the k-th infinitesimal optical principal axis and the transverse reference coordinate axis of the ray be . Light acquires phase factors in the two local principal axis directions respectively. and Transform the electric field back to the reference coordinates, and ignore any factors that do not affect the light intensity. The overall phase is obtained by the differential Jones matrix:
[0041] in, and For intermediate parameters, , i is the imaginary unit; Determined by the direction of the local principal axis in the stress model; the semicolons before and after the semicolons in the matrix represent the first and second rows, respectively.
[0042] Because light satisfies the following when passing through each infinitesimal element. By substituting the N infinitesimal elements through which the target light ray passes layer by layer, the overall Jones matrix of the crystal is obtained:
[0043] Further, following the actual optical path sequence, the crystal matrix is cascaded with each polarization element matrix:
[0044] in, , , and These are the Jones matrices for polarizer 1, first quarter-wave plate 2, second quarter-wave plate 4, and analyzer 5, respectively. , β and γ are the setting angles of the corresponding elements, which are consistent with the actual acquisition conditions.
[0045] Given the incident Jones vector Output electric field and normalized light intensity They are respectively:
[0046]
[0047] in, and These are the x-direction and y-direction components of the output electric field. The square of the modulus represents the electric field strength of the component, i.e., the x and y components of the output electric field are both complex numbers.
[0048] By substituting the angle settings of the second quarter-wave plate 4 corresponding to the six-step phase shift, and repeating the above calculations for all target rays under each projection viewpoint, second polarized light intensity projection data corresponding to the first polarized light intensity projection data in terms of viewpoint, ray path, and polarization element settings can be generated, establishing the correspondence between the true value of the three-dimensional stress field and the simulated projection. The second polarized light intensity projection data is the simulated polarization projection data calculated based on the three-dimensional stress field and the forward polarization tomography model obtained from the finite element method, while the first polarized light intensity projection data is the polarization projection data acquired through the target optical path.
[0049] S400 constructs sample data containing multi-view polarization projection input, corresponding three-dimensional principal stress difference true values, and core structure supervision labels based on the first polarization intensity projection data and the second polarization intensity projection data.
[0050] After obtaining the first and second polarization intensity projection data, sample data is constructed based on these data. For the first polarization intensity projection data acquired using a six-step phase-shift acquisition method, the first projection feature data is obtained through the same phase-shift demodulation process as the simulation data. For the second polarization intensity projection data obtained based on the polarization tomography forward model, the second projection feature data is obtained using the corresponding projection feature calculation process, ensuring that the actual acquired data and the simulation data have corresponding data representations in the projection domain. This results in the construction of sample data containing multi-view polarization projection inputs, three-dimensional stress field monitoring ground truth, and core structure monitoring labels.
[0051] S500 obtains the propagation length of light in each voxel, and establishes the projection relationship between the second polarization intensity projection data and the three-dimensional stress field based on the propagation length of light in each voxel.
[0052] In one embodiment, establishing the projection relationship between the second polarization intensity projection data and the three-dimensional stress field based on the propagation length of light rays in each voxel includes: determining the intersection relationship between each ray and each voxel in the three-dimensional stress field according to the target optical path; determining the propagation length of the corresponding ray in each voxel according to the intersection position of each ray and each voxel; constructing a sparse system matrix according to the voxel propagation length corresponding to each ray; wherein the rows of the sparse system matrix correspond to the projected rays, the columns correspond to the voxels in the three-dimensional stress field, and the matrix elements are used to characterize the propagation length of the corresponding ray in the corresponding voxel; and establishing the projection relationship between the second polarization intensity projection data and the principal stress difference of each voxel based on the sparse system matrix.
[0053] For each projected ray, the intersection relationship between the ray and each voxel in the three-dimensional stress field is determined according to the target ray path, and the propagation length of the ray in the corresponding voxel is determined according to the intersection position of the ray and each voxel.
[0054] In one specific embodiment, the Siddon ray tracing algorithm is used to calculate the intersection points of the ray and the voxel mesh, thereby obtaining the cut-off length of the ray within the a-th voxel. :
[0055] in, and Here, represents the ray parameters corresponding to the intersection of adjacent grid points, and d is the ray direction vector. It is an L2 norm.
[0056] Furthermore, for the m-th projected ray and the j-th voxel, let This represents the propagation length of the projected ray within the voxel, and a sparse system matrix is constructed based on the propagation length of the ray in each voxel. Specifically, the elements of the system matrix can be represented as:
[0057] A sparse system matrix A is composed of matrix elements corresponding to all projected rays and voxels. The rows of the sparse system matrix correspond to projected rays or projected features, and the columns correspond to voxels in the three-dimensional stress field. The matrix elements are used to characterize the propagation length of the corresponding projected ray in the corresponding voxel and the weight determined by the stress-optics relationship.
[0058] The principal stress differences of each voxel in the three-dimensional stress field are arranged according to a preset voxel order to obtain the three-dimensional stress vector to be reconstructed. The projection features calculated from the polarization intensity data are arranged according to the order of projection rays and projection angles to obtain the projection feature vector b. Under the scalar approximation conditions adopted, the following projection relationship can be established between the second polarization projection data and the three-dimensional stress field:
[0059] Where b is the projection feature vector calculated from the polarization intensity data, i.e., the second polarization projection data; Let be the vector obtained by arranging the principal stress differences of each voxel in the three-dimensional stress field to be reconstructed according to voxel order; A is a sparse system matrix composed of light propagation length and stress optical parameters. Matrix A is used for projection consistency constraints in subsequent network training, with its rows corresponding to projection features and its columns corresponding to three-dimensional voxels; the projection feature vector b and the principal stress difference vector... Arrange them according to the row and column order of matrix A.
[0060] It should be noted that the Jones matrix cascade model is used to calculate the polarized light intensity and its projection characteristics based on the principal stress difference of each voxel, stress-related polarization parameters, and light propagation path; the scalar projection relationship mentioned above is used to establish consistency constraints between the projection characteristics and the network reconstruction results under the adopted scalar approximation conditions. The above projection relationship is used to calculate the projection consistency loss and does not imply that the Jones matrix cascade is strictly equivalent to scalar linear projection in general.
[0061] The Jones matrix cascade model and the sparse system matrix employ corresponding projection perspectives, ray propagation paths, and voxel grids. The ray travel length in each voxel is used, on the one hand, to calculate the local phase delay in the Jones forward model, and on the other hand, to construct the projection weights of the system matrix, giving data generation and training constraints a corresponding geometric basis. Under the adopted scalar approximation, the projected features of the predicted stress field obtained by mapping through the system matrix are compared with the projected features of the corresponding samples. This geometric correspondence does not eliminate the differences between the complete polarization propagation model and the scalar linear approximation.
[0062] S600: Construct a 3D encoder-decoder model including a shared multi-scale feature extraction part, a stress reconstruction branch, and a core structure localization branch. Train the 3D encoder-decoder model using sample data. Output a 3D principal stress difference field from the stress reconstruction branch, and output a core structure probability map on the same voxel grid from the core structure localization branch. Construct a stress reconstruction loss based on the predicted principal stress difference and its corresponding ground truth value. Construct a spatial smoothing constraint loss based on the 3D spatial gradient of the predicted principal stress difference. Under scalar approximation conditions, construct a projection consistency loss between the predicted projection features and the corresponding sample projection features based on the projection relationship. Construct a segmentation loss based on the core structure probability map and its corresponding supervision label. Weight the reconstruction composite loss and the segmentation loss to form a joint loss. Update the parameters of the shared multi-scale feature extraction part and its corresponding branch through backpropagation to obtain the target 3D encoder-decoder model. The S700 inputs the data to be detected into the target 3D encoding-decoding model and simultaneously outputs the 3D principal stress difference field and core structure probability map of the garnet crystal. The core structure probability map is thresholded to obtain the core structure mask, and the position of the core region and its depth relative to the preset reference surface are determined according to the voxel coordinates.
[0063] After constructing the sample data, a 3D encoder-decoder model is built. In this embodiment, a 3D encoder-decoder network with four feature scales is constructed. For 25 sets of 2D polarization projection data obtained from different projection viewpoints, the 2D projection features are converted into initial volume features suitable for processing by the 3D encoder through a projection feature mapping module. The projection feature mapping module maps the 25 2D projection feature maps into initial volume features that can be processed by the 3D encoder based on the correspondence between the projection viewpoint, the light propagation path, and the reconstructed voxel mesh. After stacking the multi-view projection features in the channel dimension, the initial volume features are mapped through a linear transformation of the channel dimension per spatial location, and then the shallow features are fused by residual skip connections before being output to the 3D encoder.
[0064] The 3D encoder performs multi-scale feature extraction on the initial volumetric features, while the decoder, combined with skip connections, restores the spatial resolution and outputs a 3D stress field. The encoder consists of multiple sets of 3×3×3 3D convolutions, normalization units, and nonlinear activation units to extract local texture, edge variations, and spatial structure features from the polarization projection data. During the encoding stage, three levels of 2×2×2 max pooling progressively compress the spatial size and expand the feature receptive field. The decoder progressively restores the 3D spatial resolution and uses skip connections to transfer shallow spatial details from the encoding stage to the corresponding decoding layer, minimizing the loss of localization information caused by downsampling. Finally, a 1×1×1 3D convolution maps the fused features to a single-channel 3D stress field.
[0065] In one specific embodiment, the network input is multi-view polarization projection data, and the input tensor is represented as follows: The output tensor is represented as Where B represents the batch size and 25 represents the number of projection angles. , and These represent the number of voxels in the model reconstruction region in the x, y, and z directions, respectively. The encoder channel numbers are set to 32, 64, 128, and 256, respectively.
[0066] In one embodiment, applying a projection consistency constraint based on the projection relationship between the second polarization intensity projection data and the three-dimensional stress field includes: arranging the predicted three-dimensional stress field output by the three-dimensional encoding-decoding model into a predicted three-dimensional stress vector according to the voxel spatial position; mapping the predicted three-dimensional stress vector to the projection domain based on a sparse system matrix under scalar approximation conditions to obtain predicted projection features; calculating the difference between the predicted projection features and the projection features obtained from the corresponding second polarization intensity projection data, and constructing a projection consistency loss; and training the three-dimensional encoding-decoding model based on the projection consistency loss.
[0067] In one embodiment, training a 3D encoder-decoder model using sample data includes: using multi-view polarization projections from the sample data as model input, and using the ground truth values of the corresponding 3D principal stress differences and the core structure supervision labels as supervision for two branches respectively; constructing a stress reconstruction loss based on the difference between the predicted principal stress differences and the corresponding ground truth values, and constructing a spatial smoothing constraint loss based on the 3D spatial gradient of the predicted principal stress differences; constructing Dice loss and Focal loss based on the core structure probability map and the core structure supervision labels, and weighting the two to form a segmentation loss; weighting the stress reconstruction loss, projection consistency loss, and spatial smoothing constraint loss to form a reconstruction composite loss, and then weighting the reconstruction composite loss and the segmentation loss to form a joint loss; using the joint loss to jointly update the parameters of the shared multi-scale feature extraction part and the corresponding branch, so that the shared features are simultaneously supervised by stress reconstruction and core structure localization, until the preset training conditions are met, and the target 3D encoder-decoder model is obtained.
[0068] During training, sample data is used as input to the 3D encoder-decoder model, and the corresponding 3D stress field is used as a supervision label to supervise the training of the 3D encoder-decoder model and obtain the predicted 3D stress field. A stress reconstruction loss is constructed based on the difference between the predicted 3D stress field and the corresponding true 3D stress value; a spatial smoothing constraint loss is constructed based on the 3D spatial gradient of the predicted 3D stress field; simultaneously, a projection consistency constraint is established based on the sparse system matrix, mapping the network prediction results to the projection domain and comparing them with the corresponding projection features.
[0069] Specifically, the predicted three-dimensional stress field output by the three-dimensional encoding-decoding model is arranged into a predicted three-dimensional stress vector according to the voxel spatial position. The predicted three-dimensional stress vector is mapped to the projection domain using the sparse system matrix A to obtain the predicted projection features. The predicted projection features are compared with the corresponding second polarization intensity projection data or the second projection features obtained from the second polarization intensity projection data. The projection difference between the two is calculated, and a projection consistency loss is constructed based on the projection difference. The three-dimensional stress field predicted by the projection consistency loss constraint network is consistent with the polarization projection physical model.
[0070] In this embodiment, a composite loss function is used during training:
[0071] in, This represents the mean square error between the principal stress differences of each voxel output by the network and the corresponding principal stress differences in the finite element results. For projection consistency loss, For spatial smoothing constraints, α and β are the weights of the two constraint losses, respectively.
[0072] The stress reconstruction loss compares the predicted principal stress difference with the corresponding voxel true values, constraining the numerical estimation; the projection consistency loss compares the projected characteristics of the predicted stress field after mapping by the system matrix with the corresponding sample characteristics, constraining the cumulative relationship along the optical path; the spatial smoothing loss penalizes the local gradient of the predicted field to suppress unnecessary spatial oscillations. These three losses act on the same predicted stress field, providing complementary constraints from the perspectives of voxel values, projection relationships, and local spatial variations. Their relative effects are adjusted by the loss weights. Spatial smoothing is a regularization prior and does not replace material constitutive relations or mechanical equilibrium equations.
[0073] Among them, stress reconstruction loss Represented as:
[0074] Projection consistency loss Represented as:
[0075] Spatial smoothing constraint loss Represented as:
[0076] Where N is the total number of three-dimensional voxels, and M is the total number of elements of the projected feature quantity. This represents the principal stress difference vector of each voxel output by the network. Let be the true vector of the corresponding principal stress difference obtained from the finite element method, A be the sparse system matrix obtained based on the propagation length of each projected ray in each voxel, and b be the projection eigenvector calculated from the polarization intensity data. This represents the gradient in three-dimensional space. This is used to constrain the reconstruction results to approximate the true finite element values. This is used to ensure that the reconstruction results match the physical model of polarization projection. Used to suppress local oscillations in the reconstruction results.
[0077] In this embodiment, the Siddon ray tracing algorithm is used to calculate the geometric cut-off length of each voxel on a ray-by-ray basis. and substitute Construct sparse physical system matrices for projection consistency constraints and projection consistency losses under scalar approximation conditions. The calculation involves inputting 25 two-dimensional projection feature maps into the projection feature mapping module according to the projection viewpoint order to generate initial volume features corresponding to the voxel mesh of the reconstructed region, which are then input into the three-dimensional encoder.
[0078] In a specific training implementation, a four-level encoder-decoder 3D U-Net network is constructed, with the input tensor dimension being [missing information]. The output is A three-dimensional stress field is used, and a composite loss function is configured. For the core structure localization task, a core structure localization branch is connected to the shared feature extraction part. This branch outputs the voxel-level location of the core structure and the region segmentation results. The segmentation branch is jointly trained using Dice loss and Focal loss. Dice loss measures the overlap between the predicted core region and the ground truth region, while Focal loss reduces the impact of easily classified samples on training, making the network focus more on difficult-to-classify regions such as the core boundary.
[0079] The reconstruction branch and the core structure localization branch use the same shared feature extraction part. During training, the reconstruction composite loss is backpropagated through the reconstruction branch, while the Dice loss and Focal loss are backpropagated through the localization branch. Both types of training signals jointly update the shared parameters. Therefore, compared to training only on the stress reconstruction task, joint training adds supervision on core region overlap and voxel classification, allowing the region identification target to participate in the feature learning used by the reconstruction branch. Simultaneously, the shared features used by the localization branch are also constrained by stress values and projection relationships. This association occurs during the parameter update process of the shared features, without relying on handing the predicted stress field to an independent segmentation network. The reconstruction branch uses the aforementioned reconstruction composite loss, and the segmentation branch uses a combination of Dice and Focal losses. The overall joint loss is expressed as:
[0080] in, This is the weighting coefficient of the segmentation loss relative to the reconstruction composite loss, used to balance the contributions of the stress field reconstruction task and the core structure localization task in joint training.
[0081] The aforementioned reconstruction composite loss:
[0082] For branching loss:
[0083] μ is the weighting coefficient of Focal loss relative to Dice loss.
[0084] Dice loss Represented as:
[0085] in, Let voxel j be the predicted probability that it belongs to the core structure, as output by the network. The core structure truth label for voxel j. A smoothing constant is set to prevent the denominator from being zero. Dice loss measures the degree of overlap between the predicted core region and the ground truth core region. The smaller the value, the higher the degree of overlap between the two.
[0086] Focal loss Represented as:
[0087] in, This represents the predicted probability corresponding to the true value category. γ is the class balance factor, and γ is the focusing parameter. Focal loss introduces a modulation factor on top of cross-entropy. This reduces the loss contribution of easily classified samples, allowing the network training to focus more on difficult-to-classify regions such as core boundaries, and together with the Dice loss, constitutes the supervision signal for the segmentation branch.
[0088] The Dice loss evaluates the core localization results from the perspective of region overlap, while the Focal loss reduces the relative contribution of correctly classified voxels, causing training to focus more on voxels that have not yet been correctly distinguished. Both losses use core structure labels on the same grid as the principal stress difference ground truth and update shared features through the localization branch. The Focal loss focuses on hard-to-classify voxels that can appear inside the region, at the edge, or in the background, and its effect is not equivalent to boundary supervision alone; the aforementioned segmentation supervision does not change the voxel weights of the stress reconstruction loss.
[0089] In the specific training process, the Adam optimizer can be set with an initial learning rate of 1e-4, a batch size of 4, and 200 iterations of training. Cosine annealing is used to schedule the learning rate to achieve model convergence. During training, the model parameters of the 3D encoder-decoder are updated according to the model training loss function until the preset training conditions are met, thereby obtaining the target 3D encoder-decoder model.
[0090] After model training is complete, the data to be detected is input into the target 3D encoding-decoding model. The data to be detected can be multi-view polarization projection data obtained using the same projection acquisition method as the training data, or it can be 25 sets of sparse view polarization projection data after phase-shift demodulation and preprocessing. The target 3D encoding-decoding model first performs volume feature mapping on the multi-view projection data through the projection feature mapping module, then extracts multi-scale spatial features through the shared 3D encoder, and obtains the detection results through the reconstruction branch and the core structure localization branch, respectively.
[0091] The reconstruction branch outputs the principal stress difference distribution of each voxel in the three-dimensional stress field inside the crystal, thus obtaining the three-dimensional stress data of the garnet crystal. The core structure localization branch outputs the voxel-level segmentation results and core probability map of the core structure. Thresholding is applied to the core probability map output by the core structure localization branch to obtain the core structure mask, and the position and depth of the core structure relative to the preset reference plane are calculated according to the coordinate definition of the reconstructed voxel mesh. This achieves simultaneous detection of the three-dimensional stress field reconstruction and core structure localization inside the crystal.
[0092] During the model inference phase, the projection consistency constraint only participates in network parameter optimization through a composite loss function during the training phase. During the testing phase, the network directly outputs the 3D stress reconstruction results and core structure localization results based on the input multi-view polarization projection data. For the output 3D stress field, the spatial distribution of principal stress differences and the location of the core region can be displayed in the form of volume data and isosurfaces, thus intuitively expressing the stress concentration areas inside the crystal and the spatial location of the core structure.
[0093] In this embodiment, the 3D stress field reconstruction results and core structure positioning results output by the network are post-processed and quantitatively evaluated. The principal stress differences of each voxel are compared with the corresponding true values of the finite element method to evaluate the stress reconstruction quality. The location and geometric range of the core region are determined based on the segmentation results of the core structure positioning branch and compared with the corresponding supervision labels. Specifically, the PSNR of the reconstruction results can be calculated, and the Dice coefficient and Hausdorff distance can be calculated based on the core structure supervision labels to evaluate the stress reconstruction quality and the core structure positioning accuracy.
[0094] In a specific implementation verification, under conditions of 64×64×32 voxel mesh, 25 projection viewpoints, and a signal-to-noise ratio of 30dB, the method of the present invention achieved a PSNR of 26.29dB and a Dice coefficient of 0.801 for core structure segmentation. Compared with the control method used in this embodiment, the results show that, under the current finite element simulation data and projection sampling conditions, the method of the present invention can complete the three-dimensional stress field reconstruction and high-stress region location.
[0095] In another embodiment, a new finite element model can be established based on different crystal sizes, material parameters, stress boundary conditions, and stress field distributions. Corresponding multi-view polarization projection data can then be generated using the same polarization tomography forward model. The stress field can be a uniform stress field, a radial gradient stress field, or a complex stress field containing multiple core regions. The size, location, and burial depth of the core regions can be changed according to preset conditions. Furthermore, training samples under different signal-to-noise ratio conditions can be obtained by changing the noise level, thereby improving the model's adaptability to different three-dimensional stress distributions and noise conditions.
[0096] In another embodiment, the number of projection angles, the range of projection angles, and the number of phase shift steps of the garnet crystal 3 can be adjusted according to specific detection requirements, as long as multiple polarization projection data with different propagation directions can be formed, and a projection relationship corresponding to the three-dimensional voxel stress field can be established based on the polarization projection data. The refractive index of the refractive index matching liquid can also be set according to the reference refractive index of the actual crystal material to reduce the influence of the curved surface of the crystal on the light propagation path.
[0097] In another embodiment, the three-dimensional encoder-decoder model is not limited to the above-mentioned four-level 3D U-Net structure. Other encoder-decoder network structures with three-dimensional feature extraction and three-dimensional decoding capabilities can also be used, as long as they can map multi-view polarization projection data into stress data in the three-dimensional voxel space inside the crystal and can optimize parameters using three-dimensional stress supervision information, projection consistency information and spatial smoothing information during training.
[0098] In another embodiment, the core structure localization branch can generate supervision labels based on preset high-stress regions in the finite element stress field, or based on pre-set core structure regions. For the method of generating core structure labels using statistical thresholds, a high-stress threshold can be determined based on the statistical characteristics of the positive value regions in the principal stress difference true values, and voxels exceeding the threshold can be designated as the corresponding regions of the core structure. After obtaining the core probability map through the core structure localization branch, the probability map can be converted into a core structure mask based on the preset threshold, and then the position, range, and depth relative to the preset reference surface of the core structure can be determined based on the three-dimensional voxel coordinates.
[0099] This application obtains the three-dimensional stress field inside the garnet crystal 3 using a finite element model, with the principal stress difference of each voxel as the true value for three-dimensional stress reconstruction. Multi-view polarization projection data is obtained through refractive index matching immersion, multiple projection angles, and six-step phase-shifting polarization acquisition. A positive physical relationship between the principal stress difference and polarized light intensity is established using a Jones matrix cascade model of a five-element polarization optical path (P→Q1→Crystal→Q2→A). A sparse system matrix is established using the propagation length between light rays and voxels, and a projection correspondence between polarization projection features and the three-dimensional stress field is established under scalar approximation conditions. Furthermore, a projection feature mapping module and a three-dimensional encoder-decoder network are used to reconstruct the three-dimensional stress field, and model parameters are jointly optimized through stress reconstruction loss, projection consistency loss, and spatial smoothness constraint loss. Simultaneously, a core structure localization branch is set using shared multi-scale features to achieve synchronous processing of three-dimensional stress reconstruction and core structure localization.
[0100] The modules described above are interconnected through a shared multi-view projection input, voxel mesh, and shared feature extraction. The finite element model provides principal stress difference supervision and corresponding core region labels, while the polarization-forward model and phase-shift processing provide paired projection features. Ray tracing determines the geometric weights required for projection constraints. The three loss terms in the reconstruction branch check for numerical, projection, and local spatial variations, respectively, while the Dice and Focal losses in the localization branch check for region overlap and voxel classification. Both types of tasks update shared parameters through their respective branches, enabling the core localization target and the stress reconstruction target to participate in feature learning simultaneously. After model training, the principal stress difference field and core probability map are output synchronously based on the same polarization input, and the location, extent, and depth of the core region are obtained through probability thresholding and voxel coordinate conversion.
[0101] S700 inputs the data to be detected into the target 3D encoding-decoding model, generates the 3D principal stress difference field and core probability map of garnet crystal 3, and determines the position, range and depth of the core region based on the probability map and voxel coordinates.
[0102] This embodiment uses a 64×64×32 voxel grid, 25 projection viewpoints, and a 30 dB signal-to-noise ratio as examples for comparison and illustration. (Refer to...) Figure 4 The method described in this application achieves a PSNR of 26.29 dB and a Dice coefficient of 0.801 for core structure segmentation. Compared with the control method used in this embodiment, the results show that, under current finite element simulation data and projection sampling conditions, the method described in this application can accurately complete the three-dimensional stress field reconstruction and high-stress region location.
[0103] Secondly, this application also provides a three-dimensional stress reconstruction system for garnet crystals, comprising: A three-dimensional stress field simulation module is used to obtain the three-dimensional stress field inside the garnet crystal and the core structure monitoring label corresponding to its voxel spatial position; the three-dimensional stress field includes the principal stress difference of each voxel, and the core structure monitoring label is obtained according to a preset high-stress region or a pre-set structural region; The first polarization intensity projection data acquisition module is used to construct the target optical path and acquire the first polarization intensity projection data of the garnet crystal under multiple projection angles based on the target optical path. The second polarization intensity projection data acquisition module is used to establish a polarization tomography forward model based on the propagation process of polarized light in the crystal, and to calculate the second polarization intensity projection data based on the principal stress difference of each voxel through which the target light path passes based on the polarization tomography forward model. The sample data construction module is used to construct sample data containing multi-view polarization projection input, corresponding three-dimensional principal stress difference true values, and core structure supervision labels based on the first polarization light intensity projection data and the second polarization light intensity projection data. The projection relationship construction module is used to obtain the propagation length of light in each voxel and establish the projection relationship between the second polarization intensity projection data and the three-dimensional stress field based on the propagation length of light in each voxel. The model building module is used to construct a 3D encoder-decoder model, including a shared multi-scale feature extraction part, a stress reconstruction branch, and a core structure localization branch. The 3D encoder-decoder model is trained using sample data. The stress reconstruction branch outputs a 3D principal stress difference field, and the core structure localization branch outputs a core structure probability map on the same voxel grid. A stress reconstruction loss is constructed based on the predicted principal stress difference and its corresponding ground truth value. A spatial smoothing constraint loss is constructed based on the 3D spatial gradient of the predicted principal stress difference. Under scalar approximation conditions, a projection consistency loss is constructed between the predicted projection features and the corresponding sample projection features based on the projection relationship. A segmentation loss is constructed based on the core structure probability map and its corresponding supervision label. The reconstruction composite loss and the segmentation loss are weighted to form a joint loss. The parameters of the shared multi-scale feature extraction part and its corresponding branch are updated jointly through backpropagation to obtain the target 3D encoder-decoder model. The result generation module is used to input the data to be detected into the target 3D encoding-decoding model and simultaneously output the 3D principal stress difference field and core structure probability map of the garnet crystal; the core structure probability map is thresholded to obtain the core structure mask, and the position of the core region and its depth relative to the preset reference surface are determined according to the voxel coordinates.
[0104] In one embodiment, a computer device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above-described method embodiments.
[0105] In one embodiment, a computer-readable storage medium is provided having a computer program stored thereon, which, when executed by a processor, implements the steps in the above method embodiments.
[0106] In one embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above method embodiments.
[0107] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, data stored, data displayed, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties.
[0108] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the embodiments described above. Any references to memory, databases, or other media used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this application may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this application may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0109] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0110] The embodiments described above are merely illustrative of several implementation methods of this application, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent application. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this application, and these all fall within the protection scope of this application. Therefore, the protection scope of this application should be determined by the appended claims.
Claims
1. A method for three-dimensional stress reconstruction of garnet crystals, characterized in that, include: Obtain the three-dimensional stress field inside the garnet crystal and the core structure monitoring tags corresponding to its voxel spatial position; The three-dimensional stress field includes the principal stress difference of each voxel, and the core structure monitoring label is obtained based on the preset high stress region or the pre-set structural region. Construct a target optical path and collect first polarization light intensity projection data of garnet crystal under multiple projection perspectives based on the target optical path; A forward polarization tomography model is established based on the propagation process of polarized light in the crystal. Based on the forward polarization tomography model, the intensity projection data of the second polarized light is calculated according to the principal stress difference of each voxel through which the target light path passes. Based on the first polarization intensity projection data and the second polarization intensity projection data, sample data containing multi-view polarization projection input, corresponding three-dimensional principal stress difference true values, and core structure supervision labels are constructed. The propagation length of light in each voxel is obtained, and the projection relationship between the second polarization intensity projection data and the three-dimensional stress field is established based on the propagation length of light in each voxel. A three-dimensional encoder-decoder model is constructed, which includes a shared multi-scale feature extraction part, a stress reconstruction branch, and a core structure localization branch. The three-dimensional encoder-decoder model is trained using sample data. The stress reconstruction branch outputs a three-dimensional principal stress difference field, and the core structure localization branch outputs a core structure probability map on the same voxel mesh. A stress reconstruction loss is constructed based on the predicted principal stress difference and its corresponding ground truth value. A spatial smoothing constraint loss is constructed based on the three-dimensional spatial gradient of the predicted principal stress difference. Under scalar approximation conditions, a projection consistency loss is constructed between the predicted projection features and the corresponding sample projection features based on the projection relationship. A segmentation loss is constructed based on the core structure probability map and its corresponding supervision label. The reconstruction composite loss and the segmentation loss are weighted to form a joint loss. The parameters of the shared multi-scale feature extraction part and its corresponding branch are updated through backpropagation to obtain the target three-dimensional encoding-decoding model. The data to be detected is input into the target 3D encoding-decoding model, and the 3D principal stress difference field and core structure probability map of the garnet crystal are output simultaneously. The core structure probability map is thresholded to obtain the core structure mask, and the position of the core region and its depth relative to the preset reference surface are determined according to the voxel coordinates.
2. The method according to claim 1, characterized in that, Obtaining the three-dimensional stress field inside the garnet crystal, including: Establish a finite element model of garnet crystal, and set the geometric structure, material parameters and stress boundary conditions of garnet crystal; Stress field calculations were performed based on the finite element model to obtain the stress components at various locations inside the garnet crystal. Calculate the principal stress at each location based on the stress components, and determine the principal stress difference of the corresponding voxel based on the principal stress. The principal stress differences of each voxel are arranged according to the three-dimensional voxel spatial positions of the garnet crystal to obtain a three-dimensional stress field.
3. The method according to claim 1, characterized in that, Constructing the target optical path includes: The garnet crystal is placed in an immersion liquid with a refractive index matching that of the garnet crystal, so that the incident light enters the garnet crystal in a predetermined direction; The garnet crystal is set to rotate around a preset rotation axis, and corresponding projection angles are formed at multiple rotation angles; Polarized light is propagated along the target optical path at various projection angles, and polarized light intensity images are acquired after the polarized light passes through the garnet crystal to obtain the first polarized light intensity projection data.
4. The method according to claim 3, characterized in that, The phase shift state of polarized light is changed by a multi-step phase shift method under each projection viewpoint, and polarized light intensity images under different phase shift states are collected respectively. The polarization projection characteristics of the corresponding projection viewpoint are obtained based on the polarization light intensity images under different phase shift states, and the first polarization light intensity projection data are formed according to the arrangement order of multiple projection viewpoints.
5. The method according to claim 1, characterized in that, Establishing a forward model for polarization tomography, including: A Jones matrix cascade model was established based on the propagation process of polarized light in garnet crystals. The garnet crystal is divided into multiple voxels along the target optical path, and the stress-related polarization parameters of each voxel are determined based on the propagation process of light in each voxel. Based on the cascaded Jones matrix, the polarization state of the polarized light after passing through the garnet crystal is calculated according to the principal stress difference of each voxel, the stress-related polarization parameters, and the light propagation path corresponding to the target light path. The intensity projection data of the second polarized light is then obtained based on the polarization state.
6. The method according to claim 1, characterized in that, The projection relationship between the second polarization intensity projection data and the three-dimensional stress field is established based on the propagation length of light in each voxel, including: Determine the intersection relationship between each ray and each voxel in the three-dimensional stress field based on the target optical path; The propagation length of the corresponding ray in each voxel is determined based on the intersection position of each ray with each voxel; A sparse system matrix is constructed based on the voxel propagation length corresponding to each ray; the rows of the sparse system matrix correspond to the projected rays, the columns correspond to the voxels in the three-dimensional stress field, and the matrix elements are used to characterize the propagation length of the corresponding ray in the corresponding voxel. The projection relationship between the second polarization intensity projection data and the principal stress difference of each voxel is established based on the sparse system matrix.
7. The method according to claim 1, characterized in that, Projection consistency constraints are applied based on the projection relationship between the second polarization intensity projection data and the three-dimensional stress field, including: The predicted three-dimensional stress field output by the three-dimensional encoder-decoder model is arranged into a predicted three-dimensional stress vector according to the voxel spatial position. Based on the sparse system matrix, the predicted three-dimensional stress vector is mapped to the projection domain under the scalar approximation condition to obtain the predicted projection features. The difference between the predicted projection features and the projection features obtained from the corresponding second polarization intensity projection data is calculated, and the projection consistency loss is constructed. The 3D encoder-decoder model is trained based on the projection consistency loss.
8. The method according to claim 7, characterized in that, Training a 3D encoder-decoder model using sample data includes: The multi-view polarization projection in the sample data is used as the model input, and the corresponding three-dimensional principal stress difference true value and the core structure supervision label are used as the supervision of the two branches respectively. The stress reconstruction loss is constructed based on the difference between the predicted principal stress difference and the corresponding true value, and the spatial smoothing constraint loss is constructed based on the three-dimensional spatial gradient of the predicted principal stress difference. Dice loss and Focal loss are constructed based on the core structure probability map and the core structure supervision label, and the two are weighted to form the segmentation loss; The stress reconstruction loss, projection consistency loss, and spatial smoothness constraint loss are weighted to form the reconstruction composite loss, and the reconstruction composite loss is weighted with the segmentation loss to form the joint loss. By using joint loss to jointly update the parameters of the shared multi-scale feature extraction part and its corresponding branch, the shared features are simultaneously supervised by stress reconstruction and core structure localization until the preset training conditions are met, thus obtaining the target 3D encoding-decoding model.
9. A three-dimensional stress reconstruction system for garnet crystals, characterized in that, include: The three-dimensional stress field simulation module is used to obtain the three-dimensional stress field inside the garnet crystal and the core structure supervision label corresponding to its voxel spatial position. The three-dimensional stress field includes the principal stress difference of each voxel, and the core structure monitoring label is obtained based on the preset high stress region or the pre-set structural region. The first polarization intensity projection data acquisition module is used to construct the target optical path and acquire the first polarization intensity projection data of the garnet crystal under multiple projection angles based on the target optical path. The second polarization intensity projection data acquisition module is used to establish a polarization tomography forward model based on the propagation process of polarized light in the crystal, and to calculate the second polarization intensity projection data based on the principal stress difference of each voxel through which the target light path passes based on the polarization tomography forward model. The sample data construction module is used to construct sample data containing multi-view polarization projection input, corresponding three-dimensional principal stress difference true values, and core structure supervision labels based on the first polarization light intensity projection data and the second polarization light intensity projection data. The projection relationship construction module is used to obtain the propagation length of light in each voxel and establish the projection relationship between the second polarization intensity projection data and the three-dimensional stress field based on the propagation length of light in each voxel. The model building module is used to build a 3D encoder-decoder model that includes a shared multi-scale feature extraction part, a stress reconstruction branch and a core structure localization branch, and to train the 3D encoder-decoder model using sample data; The stress reconstruction branch outputs a three-dimensional principal stress difference field, and the core structure localization branch outputs a core structure probability map on the same voxel mesh. A stress reconstruction loss is constructed based on the predicted principal stress difference and its corresponding ground truth value. A spatial smoothing constraint loss is constructed based on the three-dimensional spatial gradient of the predicted principal stress difference. Under scalar approximation conditions, a projection consistency loss is constructed between the predicted projection features and the corresponding sample projection features based on the projection relationship. A segmentation loss is constructed based on the core structure probability map and its corresponding supervision label. The reconstruction composite loss and the segmentation loss are weighted to form a joint loss. The parameters of the shared multi-scale feature extraction part and the corresponding branch are updated jointly through backpropagation to obtain the target three-dimensional encoding-decoding model. The result generation module is used to input the data to be detected into the target 3D encoding-decoding model and simultaneously output the 3D principal stress difference field and core structure probability map of the garnet crystal; the core structure probability map is thresholded to obtain the core structure mask, and the position of the core region and its depth relative to the preset reference surface are determined according to the voxel coordinates.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 8.
